diff --git a/assets/index-P_x1mBrq.js b/assets/index-AHHzxnuD.js similarity index 69% rename from assets/index-P_x1mBrq.js rename to assets/index-AHHzxnuD.js index 6aa47738..1319415d 100644 --- a/assets/index-P_x1mBrq.js +++ b/assets/index-AHHzxnuD.js @@ -1,4 +1,4 @@ -var Ywe=Object.defineProperty;var qwe=(e,t,n)=>t in e?Ywe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Gwe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ks=(e,t,n)=>(qwe(e,typeof t!="symbol"?t+"":t,n),n),Q7=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Fe=(e,t,n)=>(Q7(e,t,"read from private field"),n?n.call(e):t.get(e)),Tn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sn=(e,t,n,r)=>(Q7(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var WA=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Fe(e,t,r)}}),fr=(e,t,n)=>(Q7(e,t,"access private method"),n);var Mkt=Gwe((Zkt,B5)=>{function noe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zwe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var roe={exports:{}},qI={},ioe={exports:{}},Br={};/** +var cTe=Object.defineProperty;var dTe=(e,t,n)=>t in e?cTe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fTe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ks=(e,t,n)=>(dTe(e,typeof t!="symbol"?t+"":t,n),n),Y7=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Fe=(e,t,n)=>(Y7(e,t,"read from private field"),n?n.call(e):t.get(e)),Tn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sn=(e,t,n,r)=>(Y7(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var XA=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Fe(e,t,r)}}),fr=(e,t,n)=>(Y7(e,t,"access private method"),n);var BCt=fTe((e_t,W5)=>{function boe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hTe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var yoe={exports:{}},JI={},voe={exports:{}},Ur={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Ywe=Object.defineProperty;var qwe=(e,t,n)=>t in e?Ywe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ik=Symbol.for("react.element"),Xwe=Symbol.for("react.portal"),Kwe=Symbol.for("react.fragment"),Jwe=Symbol.for("react.strict_mode"),e2e=Symbol.for("react.profiler"),t2e=Symbol.for("react.provider"),n2e=Symbol.for("react.context"),r2e=Symbol.for("react.forward_ref"),i2e=Symbol.for("react.suspense"),a2e=Symbol.for("react.memo"),s2e=Symbol.for("react.lazy"),AZ=Symbol.iterator;function o2e(e){return e===null||typeof e!="object"?null:(e=AZ&&e[AZ]||e["@@iterator"],typeof e=="function"?e:null)}var aoe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},soe=Object.assign,ooe={};function XS(e,t,n){this.props=e,this.context=t,this.refs=ooe,this.updater=n||aoe}XS.prototype.isReactComponent={};XS.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};XS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function loe(){}loe.prototype=XS.prototype;function ZB(e,t,n){this.props=e,this.context=t,this.refs=ooe,this.updater=n||aoe}var XB=ZB.prototype=new loe;XB.constructor=ZB;soe(XB,XS.prototype);XB.isPureReactComponent=!0;var RZ=Array.isArray,uoe=Object.prototype.hasOwnProperty,KB={current:null},coe={key:!0,ref:!0,__self:!0,__source:!0};function doe(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)uoe.call(t,r)&&!coe.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1t in e?Ywe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var f2e=M,h2e=Symbol.for("react.element"),p2e=Symbol.for("react.fragment"),m2e=Object.prototype.hasOwnProperty,g2e=f2e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b2e={key:!0,ref:!0,__self:!0,__source:!0};function foe(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)m2e.call(t,r)&&!b2e.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:h2e,type:e,key:a,ref:s,props:i,_owner:g2e.current}}qI.Fragment=p2e;qI.jsx=foe;qI.jsxs=foe;roe.exports=qI;var D=roe.exports,ML={},hoe={exports:{}},gc={},poe={exports:{}},moe={};/** + */var ATe=P,RTe=Symbol.for("react.element"),ITe=Symbol.for("react.fragment"),DTe=Object.prototype.hasOwnProperty,NTe=ATe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,PTe={key:!0,ref:!0,__self:!0,__source:!0};function Coe(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)DTe.call(t,r)&&!PTe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:RTe,type:e,key:a,ref:s,props:i,_owner:NTe.current}}JI.Fragment=ITe;JI.jsx=Coe;JI.jsxs=Coe;yoe.exports=JI;var D=yoe.exports,PL={},_oe={exports:{}},gc={},Aoe={exports:{}},Roe={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Ywe=Object.defineProperty;var qwe=(e,t,n)=>t in e?Ywe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(K,ne){var j=K.length;K.push(ne);e:for(;0>>1,ye=K[Ce];if(0>>1;Cei(Se,j))hei(Ne,Se)?(K[Ce]=Ne,K[he]=j,Ce=he):(K[Ce]=Se,K[ve]=j,Ce=ve);else if(hei(Ne,j))K[Ce]=Ne,K[he]=j,Ce=he;else break e}}return ne}function i(K,ne){var j=K.sortIndex-ne.sortIndex;return j!==0?j:K.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],c=[],d=1,h=null,p=3,b=!1,v=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(K){for(var ne=n(c);ne!==null;){if(ne.callback===null)r(c);else if(ne.startTime<=K)r(c),ne.sortIndex=ne.expirationTime,t(l,ne);else break;ne=n(c)}}function C(K){if(S=!1,k(K),!v)if(n(l)!==null)v=!0,ee(I);else{var ne=n(c);ne!==null&&J(C,ne.startTime-K)}}function I(K,ne){v=!1,S&&(S=!1,T(U),U=-1),b=!0;var j=p;try{for(k(ne),h=n(l);h!==null&&(!(h.expirationTime>ne)||K&&!V());){var Ce=h.callback;if(typeof Ce=="function"){h.callback=null,p=h.priorityLevel;var ye=Ce(h.expirationTime<=ne);ne=e.unstable_now(),typeof ye=="function"?h.callback=ye:h===n(l)&&r(l),k(ne)}else r(l);h=n(l)}if(h!==null)var te=!0;else{var ve=n(c);ve!==null&&J(C,ve.startTime-ne),te=!1}return te}finally{h=null,p=j,b=!1}}var _=!1,A=null,U=-1,F=5,P=-1;function V(){return!(e.unstable_now()-PK||125Ce?(K.sortIndex=j,t(c,K),n(l)===null&&K===n(c)&&(S?(T(U),U=-1):S=!0,J(C,j-Ce))):(K.sortIndex=ye,t(l,K),v||b||(v=!0,ee(I))),K},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(K){var ne=p;return function(){var j=p;p=ne;try{return K.apply(this,arguments)}finally{p=j}}}})(moe);poe.exports=moe;var y2e=poe.exports;/** + */(function(e){function t(K,ne){var j=K.length;K.push(ne);e:for(;0>>1,ye=K[Ce];if(0>>1;Cei(Se,j))hei(Pe,Se)?(K[Ce]=Pe,K[he]=j,Ce=he):(K[Ce]=Se,K[ve]=j,Ce=ve);else if(hei(Pe,j))K[Ce]=Pe,K[he]=j,Ce=he;else break e}}return ne}function i(K,ne){var j=K.sortIndex-ne.sortIndex;return j!==0?j:K.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],c=[],d=1,h=null,p=3,b=!1,v=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(K){for(var ne=n(c);ne!==null;){if(ne.callback===null)r(c);else if(ne.startTime<=K)r(c),ne.sortIndex=ne.expirationTime,t(l,ne);else break;ne=n(c)}}function C(K){if(S=!1,k(K),!v)if(n(l)!==null)v=!0,ee(I);else{var ne=n(c);ne!==null&&J(C,ne.startTime-K)}}function I(K,ne){v=!1,S&&(S=!1,T(U),U=-1),b=!0;var j=p;try{for(k(ne),h=n(l);h!==null&&(!(h.expirationTime>ne)||K&&!V());){var Ce=h.callback;if(typeof Ce=="function"){h.callback=null,p=h.priorityLevel;var ye=Ce(h.expirationTime<=ne);ne=e.unstable_now(),typeof ye=="function"?h.callback=ye:h===n(l)&&r(l),k(ne)}else r(l);h=n(l)}if(h!==null)var te=!0;else{var ve=n(c);ve!==null&&J(C,ve.startTime-ne),te=!1}return te}finally{h=null,p=j,b=!1}}var _=!1,A=null,U=-1,F=5,M=-1;function V(){return!(e.unstable_now()-MK||125Ce?(K.sortIndex=j,t(c,K),n(l)===null&&K===n(c)&&(S?(T(U),U=-1):S=!0,J(C,j-Ce))):(K.sortIndex=ye,t(l,K),v||b||(v=!0,ee(I))),K},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(K){var ne=p;return function(){var j=p;p=ne;try{return K.apply(this,arguments)}finally{p=j}}}})(Roe);Aoe.exports=Roe;var MTe=Aoe.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var Ywe=Object.defineProperty;var qwe=(e,t,n)=>t in e?Ywe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var goe=M,dc=y2e;function zt(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"),LL=Object.prototype.hasOwnProperty,v2e=/^[: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]*$/,DZ={},NZ={};function O2e(e){return LL.call(NZ,e)?!0:LL.call(DZ,e)?!1:v2e.test(e)?NZ[e]=!0:(DZ[e]=!0,!1)}function S2e(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E2e(e,t,n,r){if(t===null||typeof t>"u"||S2e(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yl(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var ho={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ho[e]=new yl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ho[t]=new yl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ho[e]=new yl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ho[e]=new yl(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){ho[e]=new yl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ho[e]=new yl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ho[e]=new yl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ho[e]=new yl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ho[e]=new yl(e,5,!1,e.toLowerCase(),null,!1,!1)});var eU=/[\-:]([a-z])/g;function tU(e){return e[1].toUpperCase()}"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(eU,tU);ho[t]=new yl(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(eU,tU);ho[t]=new yl(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(eU,tU);ho[t]=new yl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ho[e]=new yl(e,1,!1,e.toLowerCase(),null,!1,!1)});ho.xlinkHref=new yl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ho[e]=new yl(e,1,!1,e.toLowerCase(),null,!0,!0)});function nU(e,t,n,r){var i=ho.hasOwnProperty(t)?ho[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ML=Object.prototype.hasOwnProperty,LTe=/^[: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]*$/,FZ={},BZ={};function $Te(e){return ML.call(BZ,e)?!0:ML.call(FZ,e)?!1:LTe.test(e)?BZ[e]=!0:(FZ[e]=!0,!1)}function FTe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function BTe(e,t,n,r){if(t===null||typeof t>"u"||FTe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yl(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var ho={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ho[e]=new yl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ho[t]=new yl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ho[e]=new yl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ho[e]=new yl(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){ho[e]=new yl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ho[e]=new yl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ho[e]=new yl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ho[e]=new yl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ho[e]=new yl(e,5,!1,e.toLowerCase(),null,!1,!1)});var eU=/[\-:]([a-z])/g;function tU(e){return e[1].toUpperCase()}"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(eU,tU);ho[t]=new yl(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(eU,tU);ho[t]=new yl(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(eU,tU);ho[t]=new yl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ho[e]=new yl(e,1,!1,e.toLowerCase(),null,!1,!1)});ho.xlinkHref=new yl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ho[e]=new yl(e,1,!1,e.toLowerCase(),null,!0,!0)});function nU(e,t,n,r){var i=ho.hasOwnProperty(t)?ho[t]:null;(i!==null?i.type!==0:r||!(2o||i[s]!==a[o]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{G7=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?P2(e):""}function w2e(e){switch(e.tag){case 5:return P2(e.type);case 16:return P2("Lazy");case 13:return P2("Suspense");case 19:return P2("SuspenseList");case 0:case 2:case 15:return e=Z7(e.type,!1),e;case 11:return e=Z7(e.type.render,!1),e;case 1:return e=Z7(e.type,!0),e;default:return""}}function UL(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case eO:return"Fragment";case Jv:return"Portal";case $L:return"Profiler";case rU:return"StrictMode";case FL:return"Suspense";case BL:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case voe:return(e.displayName||"Context")+".Consumer";case yoe:return(e._context.displayName||"Context")+".Provider";case iU:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case aU:return t=e.displayName||null,t!==null?t:UL(e.type)||"Memo";case T0:t=e._payload,e=e._init;try{return UL(e(t))}catch{}}return null}function T2e(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=t.render,e=e.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 UL(t);case 8:return t===rU?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gg(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Soe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x2e(e){var t=Soe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qA(e){e._valueTracker||(e._valueTracker=x2e(e))}function Eoe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Soe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function U5(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zL(e,t){var n=t.checked;return va({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function MZ(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gg(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function woe(e,t){t=t.checked,t!=null&&nU(e,"checked",t,!1)}function jL(e,t){woe(e,t);var n=gg(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?HL(e,t.type,n):t.hasOwnProperty("defaultValue")&&HL(e,t.type,gg(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function LZ(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function HL(e,t,n){(t!=="number"||U5(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var M2=Array.isArray;function xO(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=GA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ZT(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var nT={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},k2e=["Webkit","ms","Moz","O"];Object.keys(nT).forEach(function(e){k2e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nT[t]=nT[e]})});function Coe(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||nT.hasOwnProperty(e)&&nT[e]?(""+t).trim():t+"px"}function _oe(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Coe(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var C2e=va({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 QL(e,t){if(t){if(C2e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(zt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(zt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(zt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(zt(62))}}function YL(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 qL=null;function sU(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var GL=null,kO=null,CO=null;function BZ(e){if(e=Pk(e)){if(typeof GL!="function")throw Error(zt(280));var t=e.stateNode;t&&(t=JI(t),GL(e.stateNode,e.type,t))}}function Aoe(e){kO?CO?CO.push(e):CO=[e]:kO=e}function Roe(){if(kO){var e=kO,t=CO;if(CO=kO=null,BZ(e),t)for(e=0;e>>=0,e===0?32:31-(F2e(e)/B2e|0)|0}var ZA=64,XA=4194304;function L2(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function V5(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=L2(o):(a&=s,a!==0&&(r=L2(a)))}else s=n&~i,s!==0?r=L2(s):a!==0&&(r=L2(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Dk(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gf(t),e[t]=n}function H2e(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;0=iT),qZ=" ",GZ=!1;function Zoe(e,t){switch(e){case"keyup":return bTe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xoe(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tO=!1;function vTe(e,t){switch(e){case"compositionend":return Xoe(t);case"keypress":return t.which!==32?null:(GZ=!0,qZ);case"textInput":return e=t.data,e===qZ&&GZ?null:e;default:return null}}function OTe(e,t){if(tO)return e==="compositionend"||!pU&&Zoe(e,t)?(e=qoe(),P3=dU=H0=null,tO=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=JZ(n)}}function tle(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tle(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nle(){for(var e=window,t=U5();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=U5(e.document)}return t}function mU(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ATe(e){var t=nle(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tle(n.ownerDocument.documentElement,n)){if(r!==null&&mU(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=eX(n,a);var s=eX(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nO=null,t9=null,sT=null,n9=!1;function tX(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;n9||nO==null||nO!==U5(r)||(r=nO,"selectionStart"in r&&mU(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),sT&&nx(sT,r)||(sT=r,r=Y5(t9,"onSelect"),0aO||(e.current=l9[aO],l9[aO]=null,aO--)}function Bi(e,t){aO++,l9[aO]=e.current,e.current=t}var bg={},$o=Lg(bg),ru=Lg(!1),$b=bg;function yS(e,t){var n=e.type.contextTypes;if(!n)return bg;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function iu(e){return e=e.childContextTypes,e!=null}function G5(){Gi(ru),Gi($o)}function lX(e,t,n){if($o.current!==bg)throw Error(zt(168));Bi($o,t),Bi(ru,n)}function dle(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(zt(108,T2e(e)||"Unknown",i));return va({},n,r)}function Z5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bg,$b=$o.current,Bi($o,e),Bi(ru,ru.current),!0}function uX(e,t,n){var r=e.stateNode;if(!r)throw Error(zt(169));n?(e=dle(e,t,$b),r.__reactInternalMemoizedMergedChildContext=e,Gi(ru),Gi($o),Bi($o,e)):Gi(ru),Bi(ru,n)}var Bp=null,eD=!1,c8=!1;function fle(e){Bp===null?Bp=[e]:Bp.push(e)}function zTe(e){eD=!0,fle(e)}function $g(){if(!c8&&Bp!==null){c8=!0;var e=0,t=Oi;try{var n=Bp;for(Oi=1;e>=s,i-=s,Wp=1<<32-gf(t)+i|n<U?(F=A,A=null):F=A.sibling;var P=p(T,A,k[U],C);if(P===null){A===null&&(A=F);break}e&&A&&P.alternate===null&&t(T,A),x=a(P,x,U),_===null?I=P:_.sibling=P,_=P,A=F}if(U===k.length)return n(T,A),ua&&J1(T,U),I;if(A===null){for(;UU?(F=A,A=null):F=A.sibling;var V=p(T,A,P.value,C);if(V===null){A===null&&(A=F);break}e&&A&&V.alternate===null&&t(T,A),x=a(V,x,U),_===null?I=V:_.sibling=V,_=V,A=F}if(P.done)return n(T,A),ua&&J1(T,U),I;if(A===null){for(;!P.done;U++,P=k.next())P=h(T,P.value,C),P!==null&&(x=a(P,x,U),_===null?I=P:_.sibling=P,_=P);return ua&&J1(T,U),I}for(A=r(T,A);!P.done;U++,P=k.next())P=b(A,T,U,P.value,C),P!==null&&(e&&P.alternate!==null&&A.delete(P.key===null?U:P.key),x=a(P,x,U),_===null?I=P:_.sibling=P,_=P);return e&&A.forEach(function(Q){return t(T,Q)}),ua&&J1(T,U),I}function w(T,x,k,C){if(typeof k=="object"&&k!==null&&k.type===eO&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case YA:e:{for(var I=k.key,_=x;_!==null;){if(_.key===I){if(I=k.type,I===eO){if(_.tag===7){n(T,_.sibling),x=i(_,k.props.children),x.return=T,T=x;break e}}else if(_.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===T0&&gX(I)===_.type){n(T,_.sibling),x=i(_,k.props),x.ref=qw(T,_,k),x.return=T,T=x;break e}n(T,_);break}else t(T,_);_=_.sibling}k.type===eO?(x=Nb(k.props.children,T.mode,C,k.key),x.return=T,T=x):(C=j3(k.type,k.key,k.props,null,T.mode,C),C.ref=qw(T,x,k),C.return=T,T=C)}return s(T);case Jv:e:{for(_=k.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(T,x.sibling),x=i(x,k.children||[]),x.return=T,T=x;break e}else{n(T,x);break}else t(T,x);x=x.sibling}x=y8(k,T.mode,C),x.return=T,T=x}return s(T);case T0:return _=k._init,w(T,x,_(k._payload),C)}if(M2(k))return v(T,x,k,C);if(Hw(k))return S(T,x,k,C);i4(T,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(T,x.sibling),x=i(x,k),x.return=T,T=x):(n(T,x),x=b8(k,T.mode,C),x.return=T,T=x),s(T)):n(T,x)}return w}var OS=Ole(!0),Sle=Ole(!1),Mk={},Uh=Lg(Mk),sx=Lg(Mk),ox=Lg(Mk);function fb(e){if(e===Mk)throw Error(zt(174));return e}function TU(e,t){switch(Bi(ox,t),Bi(sx,e),Bi(Uh,Mk),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:WL(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=WL(t,e)}Gi(Uh),Bi(Uh,t)}function SS(){Gi(Uh),Gi(sx),Gi(ox)}function Ele(e){fb(ox.current);var t=fb(Uh.current),n=WL(t,e.type);t!==n&&(Bi(sx,e),Bi(Uh,n))}function xU(e){sx.current===e&&(Gi(Uh),Gi(sx))}var ma=Lg(0);function nR(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var d8=[];function kU(){for(var e=0;en?n:4,e(!0);var r=f8.transition;f8.transition={};try{e(!1),t()}finally{Oi=n,f8.transition=r}}function Fle(){return vd().memoizedState}function WTe(e,t,n){var r=ag(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ble(e))Ule(t,n);else if(n=gle(e,t,n,r),n!==null){var i=fl();bf(n,e,r,i),zle(n,t,r)}}function QTe(e,t,n){var r=ag(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ble(e))Ule(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Of(o,s)){var l=t.interleaved;l===null?(i.next=i,EU(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=gle(e,t,i,r),n!==null&&(i=fl(),bf(n,e,r,i),zle(n,t,r))}}function Ble(e){var t=e.alternate;return e===ya||t!==null&&t===ya}function Ule(e,t){oT=rR=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zle(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lU(e,n)}}var iR={readContext:yd,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},YTe={readContext:yd,useCallback:function(e,t){return hh().memoizedState=[e,t===void 0?null:t],e},useContext:yd,useEffect:yX,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,F3(4194308,4,Nle.bind(null,t,e),n)},useLayoutEffect:function(e,t){return F3(4194308,4,e,t)},useInsertionEffect:function(e,t){return F3(4,2,e,t)},useMemo:function(e,t){var n=hh();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hh();return t=n!==void 0?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=WTe.bind(null,ya,e),[r.memoizedState,e]},useRef:function(e){var t=hh();return e={current:e},t.memoizedState=e},useState:bX,useDebugValue:IU,useDeferredValue:function(e){return hh().memoizedState=e},useTransition:function(){var e=bX(!1),t=e[0];return e=VTe.bind(null,e[1]),hh().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ya,i=hh();if(ua){if(n===void 0)throw Error(zt(407));n=n()}else{if(n=t(),Ms===null)throw Error(zt(349));Bb&30||xle(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,yX(Cle.bind(null,r,a,e),[e]),r.flags|=2048,cx(9,kle.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=hh(),t=Ms.identifierPrefix;if(ua){var n=Qp,r=Wp;n=(r&~(1<<32-gf(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=lx++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{Z7=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?MT(e):""}function UTe(e){switch(e.tag){case 5:return MT(e.type);case 16:return MT("Lazy");case 13:return MT("Suspense");case 19:return MT("SuspenseList");case 0:case 2:case 15:return e=X7(e.type,!1),e;case 11:return e=X7(e.type.render,!1),e;case 1:return e=X7(e.type,!0),e;default:return""}}function BL(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case tO:return"Fragment";case eO:return"Portal";case LL:return"Profiler";case rU:return"StrictMode";case $L:return"Suspense";case FL:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Poe:return(e.displayName||"Context")+".Consumer";case Noe:return(e._context.displayName||"Context")+".Provider";case iU:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case aU:return t=e.displayName||null,t!==null?t:BL(e.type)||"Memo";case T0:t=e._payload,e=e._init;try{return BL(e(t))}catch{}}return null}function zTe(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=t.render,e=e.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 BL(t);case 8:return t===rU?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mg(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Loe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jTe(e){var t=Loe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function e4(e){e._valueTracker||(e._valueTracker=jTe(e))}function $oe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Loe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Q5(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function UL(e,t){var n=t.checked;return Ea({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zZ(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mg(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Foe(e,t){t=t.checked,t!=null&&nU(e,"checked",t,!1)}function zL(e,t){Foe(e,t);var n=mg(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jL(e,t.type,n):t.hasOwnProperty("defaultValue")&&jL(e,t.type,mg(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jZ(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jL(e,t,n){(t!=="number"||Q5(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var LT=Array.isArray;function kO(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=t4.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function X2(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var r2={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},HTe=["Webkit","ms","Moz","O"];Object.keys(r2).forEach(function(e){HTe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),r2[t]=r2[e]})});function joe(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||r2.hasOwnProperty(e)&&r2[e]?(""+t).trim():t+"px"}function Hoe(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=joe(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var VTe=Ea({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 WL(e,t){if(t){if(VTe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Vt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Vt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Vt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Vt(62))}}function QL(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 YL=null;function sU(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qL=null,CO=null,_O=null;function WZ(e){if(e=Lk(e)){if(typeof qL!="function")throw Error(Vt(280));var t=e.stateNode;t&&(t=iD(t),qL(e.stateNode,e.type,t))}}function Voe(e){CO?_O?_O.push(e):_O=[e]:CO=e}function Woe(){if(CO){var e=CO,t=_O;if(_O=CO=null,WZ(e),t)for(e=0;e>>=0,e===0?32:31-(t2e(e)/n2e|0)|0}var n4=64,r4=4194304;function $T(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Z5(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=$T(o):(a&=s,a!==0&&(r=$T(a)))}else s=n&~i,s!==0?r=$T(s):a!==0&&(r=$T(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Pk(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gf(t),e[t]=n}function s2e(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;0=a2),eX=" ",tX=!1;function dle(e,t){switch(e){case"keyup":return P2e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fle(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nO=!1;function L2e(e,t){switch(e){case"compositionend":return fle(t);case"keypress":return t.which!==32?null:(tX=!0,eX);case"textInput":return e=t.data,e===eX&&tX?null:e;default:return null}}function $2e(e,t){if(nO)return e==="compositionend"||!pU&&dle(e,t)?(e=ule(),U3=dU=H0=null,nO=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aX(n)}}function gle(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gle(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ble(){for(var e=window,t=Q5();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Q5(e.document)}return t}function mU(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q2e(e){var t=ble(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gle(n.ownerDocument.documentElement,n)){if(r!==null&&mU(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=sX(n,a);var s=sX(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,rO=null,e9=null,o2=null,t9=!1;function oX(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;t9||rO==null||rO!==Q5(r)||(r=rO,"selectionStart"in r&&mU(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),o2&&rx(o2,r)||(o2=r,r=J5(e9,"onSelect"),0sO||(e.current=o9[sO],o9[sO]=null,sO--)}function Bi(e,t){sO++,o9[sO]=e.current,e.current=t}var gg={},$o=Mg(gg),ru=Mg(!1),Fb=gg;function OS(e,t){var n=e.type.contextTypes;if(!n)return gg;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function iu(e){return e=e.childContextTypes,e!=null}function tR(){Zi(ru),Zi($o)}function pX(e,t,n){if($o.current!==gg)throw Error(Vt(168));Bi($o,t),Bi(ru,n)}function kle(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Vt(108,zTe(e)||"Unknown",i));return Ea({},n,r)}function nR(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gg,Fb=$o.current,Bi($o,e),Bi(ru,ru.current),!0}function mX(e,t,n){var r=e.stateNode;if(!r)throw Error(Vt(169));n?(e=kle(e,t,Fb),r.__reactInternalMemoizedMergedChildContext=e,Zi(ru),Zi($o),Bi($o,e)):Zi(ru),Bi(ru,n)}var Up=null,aD=!1,d8=!1;function Cle(e){Up===null?Up=[e]:Up.push(e)}function ixe(e){aD=!0,Cle(e)}function Lg(){if(!d8&&Up!==null){d8=!0;var e=0,t=Oi;try{var n=Up;for(Oi=1;e>=s,i-=s,Qp=1<<32-gf(t)+i|n<U?(F=A,A=null):F=A.sibling;var M=p(T,A,k[U],C);if(M===null){A===null&&(A=F);break}e&&A&&M.alternate===null&&t(T,A),x=a(M,x,U),_===null?I=M:_.sibling=M,_=M,A=F}if(U===k.length)return n(T,A),ca&&eb(T,U),I;if(A===null){for(;UU?(F=A,A=null):F=A.sibling;var V=p(T,A,M.value,C);if(V===null){A===null&&(A=F);break}e&&A&&V.alternate===null&&t(T,A),x=a(V,x,U),_===null?I=V:_.sibling=V,_=V,A=F}if(M.done)return n(T,A),ca&&eb(T,U),I;if(A===null){for(;!M.done;U++,M=k.next())M=h(T,M.value,C),M!==null&&(x=a(M,x,U),_===null?I=M:_.sibling=M,_=M);return ca&&eb(T,U),I}for(A=r(T,A);!M.done;U++,M=k.next())M=b(A,T,U,M.value,C),M!==null&&(e&&M.alternate!==null&&A.delete(M.key===null?U:M.key),x=a(M,x,U),_===null?I=M:_.sibling=M,_=M);return e&&A.forEach(function(Q){return t(T,Q)}),ca&&eb(T,U),I}function w(T,x,k,C){if(typeof k=="object"&&k!==null&&k.type===tO&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case JA:e:{for(var I=k.key,_=x;_!==null;){if(_.key===I){if(I=k.type,I===tO){if(_.tag===7){n(T,_.sibling),x=i(_,k.props.children),x.return=T,T=x;break e}}else if(_.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===T0&&EX(I)===_.type){n(T,_.sibling),x=i(_,k.props),x.ref=Gw(T,_,k),x.return=T,T=x;break e}n(T,_);break}else t(T,_);_=_.sibling}k.type===tO?(x=Pb(k.props.children,T.mode,C,k.key),x.return=T,T=x):(C=q3(k.type,k.key,k.props,null,T.mode,C),C.ref=Gw(T,x,k),C.return=T,T=C)}return s(T);case eO:e:{for(_=k.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(T,x.sibling),x=i(x,k.children||[]),x.return=T,T=x;break e}else{n(T,x);break}else t(T,x);x=x.sibling}x=v8(k,T.mode,C),x.return=T,T=x}return s(T);case T0:return _=k._init,w(T,x,_(k._payload),C)}if(LT(k))return v(T,x,k,C);if(Vw(k))return S(T,x,k,C);c4(T,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(T,x.sibling),x=i(x,k),x.return=T,T=x):(n(T,x),x=y8(k,T.mode,C),x.return=T,T=x),s(T)):n(T,x)}return w}var ES=Mle(!0),Lle=Mle(!1),$k={},Uh=Mg($k),ox=Mg($k),lx=Mg($k);function hb(e){if(e===$k)throw Error(Vt(174));return e}function TU(e,t){switch(Bi(lx,t),Bi(ox,e),Bi(Uh,$k),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:VL(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=VL(t,e)}Zi(Uh),Bi(Uh,t)}function wS(){Zi(Uh),Zi(ox),Zi(lx)}function $le(e){hb(lx.current);var t=hb(Uh.current),n=VL(t,e.type);t!==n&&(Bi(ox,e),Bi(Uh,n))}function xU(e){ox.current===e&&(Zi(Uh),Zi(ox))}var ya=Mg(0);function lR(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var f8=[];function kU(){for(var e=0;en?n:4,e(!0);var r=h8.transition;h8.transition={};try{e(!1),t()}finally{Oi=n,h8.transition=r}}function Jle(){return yd().memoizedState}function lxe(e,t,n){var r=ag(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eue(e))tue(t,n);else if(n=Ile(e,t,n,r),n!==null){var i=fl();bf(n,e,r,i),nue(n,t,r)}}function uxe(e,t,n){var r=ag(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eue(e))tue(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Sf(o,s)){var l=t.interleaved;l===null?(i.next=i,EU(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ile(e,t,i,r),n!==null&&(i=fl(),bf(n,e,r,i),nue(n,t,r))}}function eue(e){var t=e.alternate;return e===Sa||t!==null&&t===Sa}function tue(e,t){l2=uR=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nue(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lU(e,n)}}var cR={readContext:bd,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},cxe={readContext:bd,useCallback:function(e,t){return hh().memoizedState=[e,t===void 0?null:t],e},useContext:bd,useEffect:TX,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,V3(4194308,4,qle.bind(null,t,e),n)},useLayoutEffect:function(e,t){return V3(4194308,4,e,t)},useInsertionEffect:function(e,t){return V3(4,2,e,t)},useMemo:function(e,t){var n=hh();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hh();return t=n!==void 0?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=lxe.bind(null,Sa,e),[r.memoizedState,e]},useRef:function(e){var t=hh();return e={current:e},t.memoizedState=e},useState:wX,useDebugValue:IU,useDeferredValue:function(e){return hh().memoizedState=e},useTransition:function(){var e=wX(!1),t=e[0];return e=oxe.bind(null,e[1]),hh().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Sa,i=hh();if(ca){if(n===void 0)throw Error(Vt(407));n=n()}else{if(n=t(),Ps===null)throw Error(Vt(349));Ub&30||Ule(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,TX(jle.bind(null,r,a,e),[e]),r.flags|=2048,dx(9,zle.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=hh(),t=Ps.identifierPrefix;if(ca){var n=Yp,r=Qp;n=(r&~(1<<32-gf(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ux++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[xh]=t,e[ax]=r,Zle(e,t,!1,!1),t.stateNode=e;e:{switch(s=YL(n,r),n){case"dialog":Vi("cancel",e),Vi("close",e),i=r;break;case"iframe":case"object":case"embed":Vi("load",e),i=r;break;case"video":case"audio":for(i=0;i<$2.length;i++)Vi($2[i],e);i=r;break;case"source":Vi("error",e),i=r;break;case"img":case"image":case"link":Vi("error",e),Vi("load",e),i=r;break;case"details":Vi("toggle",e),i=r;break;case"input":MZ(e,r),i=zL(e,r),Vi("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=va({},r,{value:void 0}),Vi("invalid",e);break;case"textarea":$Z(e,r),i=VL(e,r),Vi("invalid",e);break;default:i=r}QL(n,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?_oe(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&koe(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ZT(e,l):typeof l=="number"&&ZT(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(GT.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Vi("scroll",e):l!=null&&nU(e,a,l,s))}switch(n){case"input":qA(e),LZ(e,r,!1);break;case"textarea":qA(e),FZ(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gg(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?xO(e,!!r.multiple,a,!1):r.defaultValue!=null&&xO(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=q5)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Co(t),null;case 6:if(e&&t.stateNode!=null)Kle(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(zt(166));if(n=fb(ox.current),fb(Uh.current),r4(t)){if(r=t.stateNode,n=t.memoizedProps,r[xh]=t,(a=r.nodeValue!==n)&&(e=lc,e!==null))switch(e.tag){case 3:n4(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&n4(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[xh]=t,t.stateNode=r}return Co(t),null;case 13:if(Gi(ma),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ua&&ic!==null&&t.mode&1&&!(t.flags&128))mle(),vS(),t.flags|=98560,a=!1;else if(a=r4(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(zt(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(zt(317));a[xh]=t}else vS(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Co(t),a=!1}else af!==null&&(C9(af),af=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ma.current&1?ms===0&&(ms=3):FU())),t.updateQueue!==null&&(t.flags|=4),Co(t),null);case 4:return SS(),v9(e,t),e===null&&rx(t.stateNode.containerInfo),Co(t),null;case 10:return SU(t.type._context),Co(t),null;case 17:return iu(t.type)&&G5(),Co(t),null;case 19:if(Gi(ma),a=t.memoizedState,a===null)return Co(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)Gw(a,!1);else{if(ms!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=nR(e),s!==null){for(t.flags|=128,Gw(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Bi(ma,ma.current&1|2),t.child}e=e.sibling}a.tail!==null&&Va()>wS&&(t.flags|=128,r=!0,Gw(a,!1),t.lanes=4194304)}else{if(!r)if(e=nR(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gw(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ua)return Co(t),null}else 2*Va()-a.renderingStartTime>wS&&n!==1073741824&&(t.flags|=128,r=!0,Gw(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Va(),t.sibling=null,n=ma.current,Bi(ma,r?n&1|2:n&1),t):(Co(t),null);case 22:case 23:return $U(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qu&1073741824&&(Co(t),t.subtreeFlags&6&&(t.flags|=8192)):Co(t),null;case 24:return null;case 25:return null}throw Error(zt(156,t.tag))}function txe(e,t){switch(bU(t),t.tag){case 1:return iu(t.type)&&G5(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return SS(),Gi(ru),Gi($o),kU(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xU(t),null;case 13:if(Gi(ma),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(zt(340));vS()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gi(ma),null;case 4:return SS(),null;case 10:return SU(t.type._context),null;case 22:case 23:return $U(),null;case 24:return null;default:return null}}var s4=!1,Io=!1,nxe=typeof WeakSet=="function"?WeakSet:Set,En=null;function uO(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Da(e,t,r)}else n.current=null}function O9(e,t,n){try{n()}catch(r){Da(e,t,r)}}var CX=!1;function rxe(e,t){if(r9=W5,e=nle(),mU(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var b;h!==n||i!==0&&h.nodeType!==3||(o=s+i),h!==a||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(b=h.firstChild)!==null;)p=h,h=b;for(;;){if(h===e)break t;if(p===n&&++c===i&&(o=s),p===a&&++d===r&&(l=s),(b=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=b}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(i9={focusedElem:e,selectionRange:n},W5=!1,En=t;En!==null;)if(t=En,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,En=e;else for(;En!==null;){t=En;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,w=v.memoizedState,T=t.stateNode,x=T.getSnapshotBeforeUpdate(t.elementType===t.type?S:Kd(t.type,S),w);T.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(zt(163))}}catch(C){Da(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,En=e;break}En=t.return}return v=CX,CX=!1,v}function lT(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&O9(t,n,a)}i=i.next}while(i!==r)}}function rD(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 S9(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Jle(e){var t=e.alternate;t!==null&&(e.alternate=null,Jle(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xh],delete t[ax],delete t[o9],delete t[BTe],delete t[UTe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function eue(e){return e.tag===5||e.tag===3||e.tag===4}function _X(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eue(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function E9(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=q5));else if(r!==4&&(e=e.child,e!==null))for(E9(e,t,n),e=e.sibling;e!==null;)E9(e,t,n),e=e.sibling}function w9(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(w9(e,t,n),e=e.sibling;e!==null;)w9(e,t,n),e=e.sibling}var to=null,ef=!1;function f0(e,t,n){for(n=n.child;n!==null;)tue(e,t,n),n=n.sibling}function tue(e,t,n){if(Bh&&typeof Bh.onCommitFiberUnmount=="function")try{Bh.onCommitFiberUnmount(GI,n)}catch{}switch(n.tag){case 5:Io||uO(n,t);case 6:var r=to,i=ef;to=null,f0(e,t,n),to=r,ef=i,to!==null&&(ef?(e=to,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):to.removeChild(n.stateNode));break;case 18:to!==null&&(ef?(e=to,n=n.stateNode,e.nodeType===8?u8(e.parentNode,n):e.nodeType===1&&u8(e,n),ex(e)):u8(to,n.stateNode));break;case 4:r=to,i=ef,to=n.stateNode.containerInfo,ef=!0,f0(e,t,n),to=r,ef=i;break;case 0:case 11:case 14:case 15:if(!Io&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&O9(n,t,s),i=i.next}while(i!==r)}f0(e,t,n);break;case 1:if(!Io&&(uO(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Da(n,t,o)}f0(e,t,n);break;case 21:f0(e,t,n);break;case 22:n.mode&1?(Io=(r=Io)||n.memoizedState!==null,f0(e,t,n),Io=r):f0(e,t,n);break;default:f0(e,t,n)}}function AX(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nxe),t.forEach(function(r){var i=fxe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Xd(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Va()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*axe(r/1960))-r,10e?16:e,V0===null)var r=!1;else{if(e=V0,V0=null,oR=0,Zr&6)throw Error(zt(331));var i=Zr;for(Zr|=4,En=e.current;En!==null;){var a=En,s=a.child;if(En.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lVa()-MU?Db(e,0):PU|=n),au(e,t)}function uue(e,t){t===0&&(e.mode&1?(t=XA,XA<<=1,!(XA&130023424)&&(XA=4194304)):t=1);var n=fl();e=sm(e,t),e!==null&&(Dk(e,t,n),au(e,n))}function dxe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uue(e,n)}function fxe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(zt(314))}r!==null&&r.delete(t),uue(e,n)}var cue;cue=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ru.current)tu=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tu=!1,JTe(e,t,n);tu=!!(e.flags&131072)}else tu=!1,ua&&t.flags&1048576&&hle(t,K5,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;B3(e,t),e=t.pendingProps;var i=yS(t,$o.current);AO(t,n),i=_U(null,t,r,e,i,n);var a=AU();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,iu(r)?(a=!0,Z5(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wU(t),i.updater=tD,t.stateNode=i,i._reactInternals=t,h9(t,r,e,n),t=g9(null,t,r,!0,a,n)):(t.tag=0,ua&&a&&gU(t),sl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(B3(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=pxe(r),e=Kd(r,e),i){case 0:t=m9(null,t,r,e,n);break e;case 1:t=TX(null,t,r,e,n);break e;case 11:t=EX(null,t,r,e,n);break e;case 14:t=wX(null,t,r,Kd(r.type,e),n);break e}throw Error(zt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Kd(r,i),m9(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Kd(r,i),TX(e,t,r,i,n);case 3:e:{if(Yle(t),e===null)throw Error(zt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,ble(e,t),tR(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=ES(Error(zt(423)),t),t=xX(e,t,r,n,i);break e}else if(r!==i){i=ES(Error(zt(424)),t),t=xX(e,t,r,n,i);break e}else for(ic=ng(t.stateNode.containerInfo.firstChild),lc=t,ua=!0,af=null,n=Sle(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vS(),r===i){t=om(e,t,n);break e}sl(e,t,r,n)}t=t.child}return t;case 5:return Ele(t),e===null&&c9(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,a9(r,i)?s=null:a!==null&&a9(r,a)&&(t.flags|=32),Qle(e,t),sl(e,t,s,n),t.child;case 6:return e===null&&c9(t),null;case 13:return qle(e,t,n);case 4:return TU(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=OS(t,null,r,n):sl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Kd(r,i),EX(e,t,r,i,n);case 7:return sl(e,t,t.pendingProps,n),t.child;case 8:return sl(e,t,t.pendingProps.children,n),t.child;case 12:return sl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Bi(J5,r._currentValue),r._currentValue=s,a!==null)if(Of(a.value,s)){if(a.children===i.children&&!ru.current){t=om(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Xp(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),d9(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(zt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),d9(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}sl(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,AO(t,n),i=yd(i),r=r(i),t.flags|=1,sl(e,t,r,n),t.child;case 14:return r=t.type,i=Kd(r,t.pendingProps),i=Kd(r.type,i),wX(e,t,r,i,n);case 15:return Vle(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Kd(r,i),B3(e,t),t.tag=1,iu(r)?(e=!0,Z5(t)):e=!1,AO(t,n),vle(t,r,i),h9(t,r,i,n),g9(null,t,r,!0,e,n);case 19:return Gle(e,t,n);case 22:return Wle(e,t,n)}throw Error(zt(156,t.tag))};function due(e,t){return $oe(e,t)}function hxe(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 ad(e,t,n,r){return new hxe(e,t,n,r)}function BU(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pxe(e){if(typeof e=="function")return BU(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iU)return 11;if(e===aU)return 14}return 2}function sg(e,t){var n=e.alternate;return n===null?(n=ad(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function j3(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")BU(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case eO:return Nb(n.children,i,a,t);case rU:s=8,i|=8;break;case $L:return e=ad(12,n,t,i|2),e.elementType=$L,e.lanes=a,e;case FL:return e=ad(13,n,t,i),e.elementType=FL,e.lanes=a,e;case BL:return e=ad(19,n,t,i),e.elementType=BL,e.lanes=a,e;case Ooe:return aD(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yoe:s=10;break e;case voe:s=9;break e;case iU:s=11;break e;case aU:s=14;break e;case T0:s=16,r=null;break e}throw Error(zt(130,e==null?e:typeof e,""))}return t=ad(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Nb(e,t,n,r){return e=ad(7,e,r,t),e.lanes=n,e}function aD(e,t,n,r){return e=ad(22,e,r,t),e.elementType=Ooe,e.lanes=n,e.stateNode={isHidden:!1},e}function b8(e,t,n){return e=ad(6,e,null,t),e.lanes=n,e}function y8(e,t,n){return t=ad(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mxe(e,t,n,r,i){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=K7(0),this.expirationTimes=K7(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=K7(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function UU(e,t,n,r,i,a,s,o,l){return e=new mxe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ad(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wU(a),e}function gxe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mue)}catch(e){console.error(e)}}mue(),hoe.exports=gc;var sy=hoe.exports;const F2=kf(sy),Sxe=noe({__proto__:null,default:F2},[sy]);var $X=sy;ML.createRoot=$X.createRoot,ML.hydrateRoot=$X.hydrateRoot;const Exe={black:"#000",white:"#fff"},fx=Exe,wxe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ev=wxe,Txe={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},wv=Txe,xxe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Tv=xxe,kxe={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xv=kxe,Cxe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},kv=Cxe,_xe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Xw=_xe,Axe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Rxe=Axe;function yg(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function gue(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ixe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dxe=gue(function(e){return Ixe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Nxe(e){if(e.sheet)return e.sheet;for(var t=0;t0?ro(eE,--uu):0,TS--,Ja===10&&(TS=1,dD--),Ja}function uc(){return Ja=uu2||px(Ja)>3?"":" "}function Qxe(e,t){for(;--t&&uc()&&!(Ja<48||Ja>102||Ja>57&&Ja<65||Ja>70&&Ja<97););return Lk(e,H3()+(t<6&&zh()==32&&uc()==32))}function A9(e){for(;uc();)switch(Ja){case e:return uu;case 34:case 39:e!==34&&e!==39&&A9(Ja);break;case 40:e===41&&A9(e);break;case 92:uc();break}return uu}function Yxe(e,t){for(;uc()&&e+Ja!==57;)if(e+Ja===84&&zh()===47)break;return"/*"+Lk(t,uu-1)+"*"+cD(e===47?e:uc())}function qxe(e){for(;!px(zh());)uc();return Lk(e,uu)}function Gxe(e){return Eue(W3("",null,null,null,[""],e=Sue(e),0,[0],e))}function W3(e,t,n,r,i,a,s,o,l){for(var c=0,d=0,h=s,p=0,b=0,v=0,S=1,w=1,T=1,x=0,k="",C=i,I=a,_=r,A=k;w;)switch(v=x,x=uc()){case 40:if(v!=108&&ro(A,h-1)==58){_9(A+=oi(V3(x),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:A+=V3(x);break;case 9:case 10:case 13:case 32:A+=Wxe(v);break;case 92:A+=Qxe(H3()-1,7);continue;case 47:switch(zh()){case 42:case 47:u4(Zxe(Yxe(uc(),H3()),t,n),l);break;default:A+="/"}break;case 123*S:o[c++]=Sh(A)*T;case 125*S:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+d:T==-1&&(A=oi(A,/\f/g,"")),b>0&&Sh(A)-h&&u4(b>32?BX(A+";",r,n,h-1):BX(oi(A," ","")+";",r,n,h-2),l);break;case 59:A+=";";default:if(u4(_=FX(A,t,n,c,d,i,o,k,C=[],I=[],h),a),x===123)if(d===0)W3(A,t,_,_,C,a,h,o,I);else switch(p===99&&ro(A,3)===110?100:p){case 100:case 108:case 109:case 115:W3(e,_,_,r&&u4(FX(e,_,_,0,0,i,o,k,i,C=[],h),I),i,I,h,o,r?C:I);break;default:W3(A,_,_,_,[""],I,0,o,I)}}c=d=b=0,S=T=1,k=A="",h=s;break;case 58:h=1+Sh(A),b=v;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&Vxe()==125)continue}switch(A+=cD(x),x*S){case 38:T=d>0?1:(A+="\f",-1);break;case 44:o[c++]=(Sh(A)-1)*T,T=1;break;case 64:zh()===45&&(A+=V3(uc())),p=zh(),d=h=Sh(k=A+=qxe(H3())),x++;break;case 45:v===45&&Sh(A)==2&&(S=0)}}return a}function FX(e,t,n,r,i,a,s,o,l,c,d){for(var h=i-1,p=i===0?a:[""],b=QU(p),v=0,S=0,w=0;v0?p[T]+" "+x:oi(x,/&\f/g,p[T])))&&(l[w++]=k);return fD(e,t,n,i===0?VU:o,l,c,d)}function Zxe(e,t,n){return fD(e,t,n,bue,cD(Hxe()),hx(e,2,-2),0)}function BX(e,t,n,r){return fD(e,t,n,WU,hx(e,0,r),hx(e,r+1,-1),r)}function IO(e,t){for(var n="",r=QU(e),i=0;i6)switch(ro(e,t+1)){case 109:if(ro(e,t+4)!==45)break;case 102:return oi(e,/(.+:)(.+)-([^]+)/,"$1"+si+"$2-$3$1"+cR+(ro(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_9(e,"stretch")?wue(oi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ro(e,t+1)!==115)break;case 6444:switch(ro(e,Sh(e)-3-(~_9(e,"!important")&&10))){case 107:return oi(e,":",":"+si)+e;case 101:return oi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+si+(ro(e,14)===45?"inline-":"")+"box$3$1"+si+"$2$3$1"+Ao+"$2box$3")+e}break;case 5936:switch(ro(e,t+11)){case 114:return si+e+Ao+oi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return si+e+Ao+oi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return si+e+Ao+oi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return si+e+Ao+e+e}return e}var ake=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case WU:t.return=wue(t.value,t.length);break;case yue:return IO([Kw(t,{value:oi(t.value,"@","@"+si)})],i);case VU:if(t.length)return jxe(t.props,function(a){switch(zxe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return IO([Kw(t,{props:[oi(a,/:(read-\w+)/,":"+cR+"$1")]})],i);case"::placeholder":return IO([Kw(t,{props:[oi(a,/:(plac\w+)/,":"+si+"input-$1")]}),Kw(t,{props:[oi(a,/:(plac\w+)/,":"+cR+"$1")]}),Kw(t,{props:[oi(a,/:(plac\w+)/,Ao+"input-$1")]})],i)}return""})}},ske=[ake],oke=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||ske,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),T=1;T<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[xh]=t,e[sx]=r,due(e,t,!1,!1),t.stateNode=e;e:{switch(s=QL(n,r),n){case"dialog":Wi("cancel",e),Wi("close",e),i=r;break;case"iframe":case"object":case"embed":Wi("load",e),i=r;break;case"video":case"audio":for(i=0;ixS&&(t.flags|=128,r=!0,Zw(a,!1),t.lanes=4194304)}else{if(!r)if(e=lR(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zw(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ca)return Co(t),null}else 2*Wa()-a.renderingStartTime>xS&&n!==1073741824&&(t.flags|=128,r=!0,Zw(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Wa(),t.sibling=null,n=ya.current,Bi(ya,r?n&1|2:n&1),t):(Co(t),null);case 22:case 23:return $U(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qu&1073741824&&(Co(t),t.subtreeFlags&6&&(t.flags|=8192)):Co(t),null;case 24:return null;case 25:return null}throw Error(Vt(156,t.tag))}function yxe(e,t){switch(bU(t),t.tag){case 1:return iu(t.type)&&tR(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wS(),Zi(ru),Zi($o),kU(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xU(t),null;case 13:if(Zi(ya),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Vt(340));SS()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zi(ya),null;case 4:return wS(),null;case 10:return SU(t.type._context),null;case 22:case 23:return $U(),null;case 24:return null;default:return null}}var f4=!1,Io=!1,vxe=typeof WeakSet=="function"?WeakSet:Set,En=null;function cO(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pa(e,t,r)}else n.current=null}function v9(e,t,n){try{n()}catch(r){Pa(e,t,r)}}var NX=!1;function Oxe(e,t){if(n9=X5,e=ble(),mU(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var b;h!==n||i!==0&&h.nodeType!==3||(o=s+i),h!==a||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(b=h.firstChild)!==null;)p=h,h=b;for(;;){if(h===e)break t;if(p===n&&++c===i&&(o=s),p===a&&++d===r&&(l=s),(b=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=b}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(r9={focusedElem:e,selectionRange:n},X5=!1,En=t;En!==null;)if(t=En,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,En=e;else for(;En!==null;){t=En;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,w=v.memoizedState,T=t.stateNode,x=T.getSnapshotBeforeUpdate(t.elementType===t.type?S:Kd(t.type,S),w);T.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Vt(163))}}catch(C){Pa(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,En=e;break}En=t.return}return v=NX,NX=!1,v}function u2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&v9(t,n,a)}i=i.next}while(i!==r)}}function lD(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 O9(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pue(e){var t=e.alternate;t!==null&&(e.alternate=null,pue(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xh],delete t[sx],delete t[s9],delete t[nxe],delete t[rxe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mue(e){return e.tag===5||e.tag===3||e.tag===4}function PX(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mue(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function S9(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=eR));else if(r!==4&&(e=e.child,e!==null))for(S9(e,t,n),e=e.sibling;e!==null;)S9(e,t,n),e=e.sibling}function E9(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(E9(e,t,n),e=e.sibling;e!==null;)E9(e,t,n),e=e.sibling}var to=null,ef=!1;function f0(e,t,n){for(n=n.child;n!==null;)gue(e,t,n),n=n.sibling}function gue(e,t,n){if(Bh&&typeof Bh.onCommitFiberUnmount=="function")try{Bh.onCommitFiberUnmount(eD,n)}catch{}switch(n.tag){case 5:Io||cO(n,t);case 6:var r=to,i=ef;to=null,f0(e,t,n),to=r,ef=i,to!==null&&(ef?(e=to,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):to.removeChild(n.stateNode));break;case 18:to!==null&&(ef?(e=to,n=n.stateNode,e.nodeType===8?c8(e.parentNode,n):e.nodeType===1&&c8(e,n),tx(e)):c8(to,n.stateNode));break;case 4:r=to,i=ef,to=n.stateNode.containerInfo,ef=!0,f0(e,t,n),to=r,ef=i;break;case 0:case 11:case 14:case 15:if(!Io&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&v9(n,t,s),i=i.next}while(i!==r)}f0(e,t,n);break;case 1:if(!Io&&(cO(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Pa(n,t,o)}f0(e,t,n);break;case 21:f0(e,t,n);break;case 22:n.mode&1?(Io=(r=Io)||n.memoizedState!==null,f0(e,t,n),Io=r):f0(e,t,n);break;default:f0(e,t,n)}}function MX(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vxe),t.forEach(function(r){var i=Axe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Xd(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Wa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Exe(r/1960))-r,10e?16:e,V0===null)var r=!1;else{if(e=V0,V0=null,hR=0,Xr&6)throw Error(Vt(331));var i=Xr;for(Xr|=4,En=e.current;En!==null;){var a=En,s=a.child;if(En.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lWa()-MU?Nb(e,0):PU|=n),au(e,t)}function Tue(e,t){t===0&&(e.mode&1?(t=r4,r4<<=1,!(r4&130023424)&&(r4=4194304)):t=1);var n=fl();e=sm(e,t),e!==null&&(Pk(e,t,n),au(e,n))}function _xe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tue(e,n)}function Axe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Vt(314))}r!==null&&r.delete(t),Tue(e,n)}var xue;xue=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ru.current)tu=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tu=!1,gxe(e,t,n);tu=!!(e.flags&131072)}else tu=!1,ca&&t.flags&1048576&&_le(t,iR,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;W3(e,t),e=t.pendingProps;var i=OS(t,$o.current);RO(t,n),i=_U(null,t,r,e,i,n);var a=AU();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,iu(r)?(a=!0,nR(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wU(t),i.updater=sD,t.stateNode=i,i._reactInternals=t,f9(t,r,e,n),t=m9(null,t,r,!0,a,n)):(t.tag=0,ca&&a&&gU(t),sl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(W3(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ixe(r),e=Kd(r,e),i){case 0:t=p9(null,t,r,e,n);break e;case 1:t=RX(null,t,r,e,n);break e;case 11:t=_X(null,t,r,e,n);break e;case 14:t=AX(null,t,r,Kd(r.type,e),n);break e}throw Error(Vt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Kd(r,i),p9(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Kd(r,i),RX(e,t,r,i,n);case 3:e:{if(lue(t),e===null)throw Error(Vt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Dle(e,t),oR(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=TS(Error(Vt(423)),t),t=IX(e,t,r,n,i);break e}else if(r!==i){i=TS(Error(Vt(424)),t),t=IX(e,t,r,n,i);break e}else for(ic=ng(t.stateNode.containerInfo.firstChild),lc=t,ca=!0,af=null,n=Lle(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(SS(),r===i){t=om(e,t,n);break e}sl(e,t,r,n)}t=t.child}return t;case 5:return $le(t),e===null&&u9(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,i9(r,i)?s=null:a!==null&&i9(r,a)&&(t.flags|=32),oue(e,t),sl(e,t,s,n),t.child;case 6:return e===null&&u9(t),null;case 13:return uue(e,t,n);case 4:return TU(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ES(t,null,r,n):sl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Kd(r,i),_X(e,t,r,i,n);case 7:return sl(e,t,t.pendingProps,n),t.child;case 8:return sl(e,t,t.pendingProps.children,n),t.child;case 12:return sl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Bi(aR,r._currentValue),r._currentValue=s,a!==null)if(Sf(a.value,s)){if(a.children===i.children&&!ru.current){t=om(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Xp(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),c9(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(Vt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),c9(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}sl(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,RO(t,n),i=bd(i),r=r(i),t.flags|=1,sl(e,t,r,n),t.child;case 14:return r=t.type,i=Kd(r,t.pendingProps),i=Kd(r.type,i),AX(e,t,r,i,n);case 15:return aue(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Kd(r,i),W3(e,t),t.tag=1,iu(r)?(e=!0,nR(t)):e=!1,RO(t,n),Ple(t,r,i),f9(t,r,i,n),m9(null,t,r,!0,e,n);case 19:return cue(e,t,n);case 22:return sue(e,t,n)}throw Error(Vt(156,t.tag))};function kue(e,t){return Koe(e,t)}function Rxe(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 ad(e,t,n,r){return new Rxe(e,t,n,r)}function BU(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ixe(e){if(typeof e=="function")return BU(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iU)return 11;if(e===aU)return 14}return 2}function sg(e,t){var n=e.alternate;return n===null?(n=ad(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function q3(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")BU(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case tO:return Pb(n.children,i,a,t);case rU:s=8,i|=8;break;case LL:return e=ad(12,n,t,i|2),e.elementType=LL,e.lanes=a,e;case $L:return e=ad(13,n,t,i),e.elementType=$L,e.lanes=a,e;case FL:return e=ad(19,n,t,i),e.elementType=FL,e.lanes=a,e;case Moe:return cD(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Noe:s=10;break e;case Poe:s=9;break e;case iU:s=11;break e;case aU:s=14;break e;case T0:s=16,r=null;break e}throw Error(Vt(130,e==null?e:typeof e,""))}return t=ad(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Pb(e,t,n,r){return e=ad(7,e,r,t),e.lanes=n,e}function cD(e,t,n,r){return e=ad(22,e,r,t),e.elementType=Moe,e.lanes=n,e.stateNode={isHidden:!1},e}function y8(e,t,n){return e=ad(6,e,null,t),e.lanes=n,e}function v8(e,t,n){return t=ad(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dxe(e,t,n,r,i){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=J7(0),this.expirationTimes=J7(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=J7(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function UU(e,t,n,r,i,a,s,o,l){return e=new Dxe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ad(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wU(a),e}function Nxe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rue)}catch(e){console.error(e)}}Rue(),_oe.exports=gc;var ly=_oe.exports;const BT=Cf(ly),Fxe=boe({__proto__:null,default:BT},[ly]);var HX=ly;PL.createRoot=HX.createRoot,PL.hydrateRoot=HX.hydrateRoot;const Bxe={black:"#000",white:"#fff"},hx=Bxe,Uxe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},wv=Uxe,zxe={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Tv=zxe,jxe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},xv=jxe,Hxe={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},kv=Hxe,Vxe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Cv=Vxe,Wxe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Kw=Wxe,Qxe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yxe=Qxe;function bg(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function Iue(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qxe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gxe=Iue(function(e){return qxe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Zxe(e){if(e.sheet)return e.sheet;for(var t=0;t0?ro(nE,--uu):0,kS--,es===10&&(kS=1,gD--),es}function uc(){return es=uu2||mx(es)>3?"":" "}function uke(e,t){for(;--t&&uc()&&!(es<48||es>102||es>57&&es<65||es>70&&es<97););return Fk(e,G3()+(t<6&&zh()==32&&uc()==32))}function _9(e){for(;uc();)switch(es){case e:return uu;case 34:case 39:e!==34&&e!==39&&_9(es);break;case 40:e===41&&_9(e);break;case 92:uc();break}return uu}function cke(e,t){for(;uc()&&e+es!==57;)if(e+es===84&&zh()===47)break;return"/*"+Fk(t,uu-1)+"*"+mD(e===47?e:uc())}function dke(e){for(;!mx(zh());)uc();return Fk(e,uu)}function fke(e){return $ue(X3("",null,null,null,[""],e=Lue(e),0,[0],e))}function X3(e,t,n,r,i,a,s,o,l){for(var c=0,d=0,h=s,p=0,b=0,v=0,S=1,w=1,T=1,x=0,k="",C=i,I=a,_=r,A=k;w;)switch(v=x,x=uc()){case 40:if(v!=108&&ro(A,h-1)==58){C9(A+=oi(Z3(x),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:A+=Z3(x);break;case 9:case 10:case 13:case 32:A+=lke(v);break;case 92:A+=uke(G3()-1,7);continue;case 47:switch(zh()){case 42:case 47:m4(hke(cke(uc(),G3()),t,n),l);break;default:A+="/"}break;case 123*S:o[c++]=Sh(A)*T;case 125*S:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+d:T==-1&&(A=oi(A,/\f/g,"")),b>0&&Sh(A)-h&&m4(b>32?WX(A+";",r,n,h-1):WX(oi(A," ","")+";",r,n,h-2),l);break;case 59:A+=";";default:if(m4(_=VX(A,t,n,c,d,i,o,k,C=[],I=[],h),a),x===123)if(d===0)X3(A,t,_,_,C,a,h,o,I);else switch(p===99&&ro(A,3)===110?100:p){case 100:case 108:case 109:case 115:X3(e,_,_,r&&m4(VX(e,_,_,0,0,i,o,k,i,C=[],h),I),i,I,h,o,r?C:I);break;default:X3(A,_,_,_,[""],I,0,o,I)}}c=d=b=0,S=T=1,k=A="",h=s;break;case 58:h=1+Sh(A),b=v;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&oke()==125)continue}switch(A+=mD(x),x*S){case 38:T=d>0?1:(A+="\f",-1);break;case 44:o[c++]=(Sh(A)-1)*T,T=1;break;case 64:zh()===45&&(A+=Z3(uc())),p=zh(),d=h=Sh(k=A+=dke(G3())),x++;break;case 45:v===45&&Sh(A)==2&&(S=0)}}return a}function VX(e,t,n,r,i,a,s,o,l,c,d){for(var h=i-1,p=i===0?a:[""],b=QU(p),v=0,S=0,w=0;v0?p[T]+" "+x:oi(x,/&\f/g,p[T])))&&(l[w++]=k);return bD(e,t,n,i===0?VU:o,l,c,d)}function hke(e,t,n){return bD(e,t,n,Due,mD(ske()),px(e,2,-2),0)}function WX(e,t,n,r){return bD(e,t,n,WU,px(e,0,r),px(e,r+1,-1),r)}function DO(e,t){for(var n="",r=QU(e),i=0;i6)switch(ro(e,t+1)){case 109:if(ro(e,t+4)!==45)break;case 102:return oi(e,/(.+:)(.+)-([^]+)/,"$1"+si+"$2-$3$1"+gR+(ro(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~C9(e,"stretch")?Fue(oi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ro(e,t+1)!==115)break;case 6444:switch(ro(e,Sh(e)-3-(~C9(e,"!important")&&10))){case 107:return oi(e,":",":"+si)+e;case 101:return oi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+si+(ro(e,14)===45?"inline-":"")+"box$3$1"+si+"$2$3$1"+Ao+"$2box$3")+e}break;case 5936:switch(ro(e,t+11)){case 114:return si+e+Ao+oi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return si+e+Ao+oi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return si+e+Ao+oi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return si+e+Ao+e+e}return e}var Eke=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case WU:t.return=Fue(t.value,t.length);break;case Nue:return DO([Jw(t,{value:oi(t.value,"@","@"+si)})],i);case VU:if(t.length)return ake(t.props,function(a){switch(ike(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return DO([Jw(t,{props:[oi(a,/:(read-\w+)/,":"+gR+"$1")]})],i);case"::placeholder":return DO([Jw(t,{props:[oi(a,/:(plac\w+)/,":"+si+"input-$1")]}),Jw(t,{props:[oi(a,/:(plac\w+)/,":"+gR+"$1")]}),Jw(t,{props:[oi(a,/:(plac\w+)/,Ao+"input-$1")]})],i)}return""})}},wke=[Eke],Tke=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||wke,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),T=1;T=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vke={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,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},Oke=/[A-Z]|^ms/g,Ske=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rue=function(t){return t.charCodeAt(1)===45},zX=function(t){return t!=null&&typeof t!="boolean"},v8=gue(function(e){return Rue(e)?e:e.replace(Oke,"-$&").toLowerCase()}),jX=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ske,function(r,i,a){return Eh={name:i,styles:a,next:Eh},i})}return vke[t]!==1&&!Rue(t)&&typeof n=="number"&&n!==0?n+"px":n};function mx(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Eh={name:n.name,styles:n.styles,next:Eh},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Eh={name:r.name,styles:r.styles,next:Eh},r=r.next;var i=n.styles+";";return i}return Eke(e,t,n)}case"function":{if(e!==void 0){var a=Eh,s=n(e);return Eh=a,mx(e,t,s)}break}}if(t==null)return n;var o=t[n];return o!==void 0?o:n}function Eke(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?kke:Cke},QX=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},_ke=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return _ue(n,r,i),Tke(function(){return Aue(n,r,i)}),null},Ake=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=QX(t,n,r),l=o||WX(i),c=!l("as");return function(){var d=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{h.push(d[0][0]);for(var p=d.length,b=1;bt(Lke(i)?n:i):t;return D.jsx(xke,{styles:r})}function $ue(e,t){return R9(e,t)}const Fke=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Vp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fue(e){if(!Vp(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Fue(e[n])}),t}function Po(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return Vp(e)&&Vp(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Vp(t[i])&&i in e&&Vp(e[i])?r[i]=Po(e[i],t[i],n):n.clone?r[i]=Vp(t[i])?Fue(t[i]):t[i]:r[i]=t[i])}),r}var xi={};/** + */var Fs=typeof Symbol=="function"&&Symbol.for,YU=Fs?Symbol.for("react.element"):60103,qU=Fs?Symbol.for("react.portal"):60106,yD=Fs?Symbol.for("react.fragment"):60107,vD=Fs?Symbol.for("react.strict_mode"):60108,OD=Fs?Symbol.for("react.profiler"):60114,SD=Fs?Symbol.for("react.provider"):60109,ED=Fs?Symbol.for("react.context"):60110,GU=Fs?Symbol.for("react.async_mode"):60111,wD=Fs?Symbol.for("react.concurrent_mode"):60111,TD=Fs?Symbol.for("react.forward_ref"):60112,xD=Fs?Symbol.for("react.suspense"):60113,xke=Fs?Symbol.for("react.suspense_list"):60120,kD=Fs?Symbol.for("react.memo"):60115,CD=Fs?Symbol.for("react.lazy"):60116,kke=Fs?Symbol.for("react.block"):60121,Cke=Fs?Symbol.for("react.fundamental"):60117,_ke=Fs?Symbol.for("react.responder"):60118,Ake=Fs?Symbol.for("react.scope"):60119;function yc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case YU:switch(e=e.type,e){case GU:case wD:case yD:case OD:case vD:case xD:return e;default:switch(e=e&&e.$$typeof,e){case ED:case TD:case CD:case kD:case SD:return e;default:return t}}case qU:return t}}}function Uue(e){return yc(e)===wD}Si.AsyncMode=GU;Si.ConcurrentMode=wD;Si.ContextConsumer=ED;Si.ContextProvider=SD;Si.Element=YU;Si.ForwardRef=TD;Si.Fragment=yD;Si.Lazy=CD;Si.Memo=kD;Si.Portal=qU;Si.Profiler=OD;Si.StrictMode=vD;Si.Suspense=xD;Si.isAsyncMode=function(e){return Uue(e)||yc(e)===GU};Si.isConcurrentMode=Uue;Si.isContextConsumer=function(e){return yc(e)===ED};Si.isContextProvider=function(e){return yc(e)===SD};Si.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===YU};Si.isForwardRef=function(e){return yc(e)===TD};Si.isFragment=function(e){return yc(e)===yD};Si.isLazy=function(e){return yc(e)===CD};Si.isMemo=function(e){return yc(e)===kD};Si.isPortal=function(e){return yc(e)===qU};Si.isProfiler=function(e){return yc(e)===OD};Si.isStrictMode=function(e){return yc(e)===vD};Si.isSuspense=function(e){return yc(e)===xD};Si.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yD||e===wD||e===OD||e===vD||e===xD||e===xke||typeof e=="object"&&e!==null&&(e.$$typeof===CD||e.$$typeof===kD||e.$$typeof===SD||e.$$typeof===ED||e.$$typeof===TD||e.$$typeof===Cke||e.$$typeof===_ke||e.$$typeof===Ake||e.$$typeof===kke)};Si.typeOf=yc;Bue.exports=Si;var Rke=Bue.exports,zue=Rke,Ike={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Dke={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jue={};jue[zue.ForwardRef]=Ike;jue[zue.Memo]=Dke;var Nke=!0;function Pke(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Hue=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Nke===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Vue=function(t,n,r){Hue(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Mke(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Lke={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,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},$ke=/[A-Z]|^ms/g,Fke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wue=function(t){return t.charCodeAt(1)===45},YX=function(t){return t!=null&&typeof t!="boolean"},O8=Iue(function(e){return Wue(e)?e:e.replace($ke,"-$&").toLowerCase()}),qX=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Fke,function(r,i,a){return Eh={name:i,styles:a,next:Eh},i})}return Lke[t]!==1&&!Wue(t)&&typeof n=="number"&&n!==0?n+"px":n};function gx(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Eh={name:n.name,styles:n.styles,next:Eh},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Eh={name:r.name,styles:r.styles,next:Eh},r=r.next;var i=n.styles+";";return i}return Bke(e,t,n)}case"function":{if(e!==void 0){var a=Eh,s=n(e);return Eh=a,gx(e,t,s)}break}}if(t==null)return n;var o=t[n];return o!==void 0?o:n}function Bke(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Hke:Vke},KX=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Wke=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Hue(n,r,i),zke(function(){return Vue(n,r,i)}),null},Qke=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=KX(t,n,r),l=o||XX(i),c=!l("as");return function(){var d=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{h.push(d[0][0]);for(var p=d.length,b=1;bt(Jke(i)?n:i):t;return D.jsx(jke,{styles:r})}function Kue(e,t){return A9(e,t)}const tCe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Wp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jue(e){if(!Wp(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jue(e[n])}),t}function Po(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return Wp(e)&&Wp(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Wp(t[i])&&i in e&&Wp(e[i])?r[i]=Po(e[i],t[i],n):n.clone?r[i]=Wp(t[i])?Jue(t[i]):t[i]:r[i]=t[i])}),r}var xi={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var KU=Symbol.for("react.element"),JU=Symbol.for("react.portal"),TD=Symbol.for("react.fragment"),xD=Symbol.for("react.strict_mode"),kD=Symbol.for("react.profiler"),CD=Symbol.for("react.provider"),_D=Symbol.for("react.context"),Bke=Symbol.for("react.server_context"),AD=Symbol.for("react.forward_ref"),RD=Symbol.for("react.suspense"),ID=Symbol.for("react.suspense_list"),DD=Symbol.for("react.memo"),ND=Symbol.for("react.lazy"),Uke=Symbol.for("react.offscreen"),Bue;Bue=Symbol.for("react.module.reference");function xd(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case KU:switch(e=e.type,e){case TD:case kD:case xD:case RD:case ID:return e;default:switch(e=e&&e.$$typeof,e){case Bke:case _D:case AD:case ND:case DD:case CD:return e;default:return t}}case JU:return t}}}xi.ContextConsumer=_D;xi.ContextProvider=CD;xi.Element=KU;xi.ForwardRef=AD;xi.Fragment=TD;xi.Lazy=ND;xi.Memo=DD;xi.Portal=JU;xi.Profiler=kD;xi.StrictMode=xD;xi.Suspense=RD;xi.SuspenseList=ID;xi.isAsyncMode=function(){return!1};xi.isConcurrentMode=function(){return!1};xi.isContextConsumer=function(e){return xd(e)===_D};xi.isContextProvider=function(e){return xd(e)===CD};xi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===KU};xi.isForwardRef=function(e){return xd(e)===AD};xi.isFragment=function(e){return xd(e)===TD};xi.isLazy=function(e){return xd(e)===ND};xi.isMemo=function(e){return xd(e)===DD};xi.isPortal=function(e){return xd(e)===JU};xi.isProfiler=function(e){return xd(e)===kD};xi.isStrictMode=function(e){return xd(e)===xD};xi.isSuspense=function(e){return xd(e)===RD};xi.isSuspenseList=function(e){return xd(e)===ID};xi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===TD||e===kD||e===xD||e===RD||e===ID||e===Uke||typeof e=="object"&&e!==null&&(e.$$typeof===ND||e.$$typeof===DD||e.$$typeof===CD||e.$$typeof===_D||e.$$typeof===AD||e.$$typeof===Bue||e.getModuleId!==void 0)};xi.typeOf=xd;const zke=G.oneOfType([G.func,G.object]),tE=zke;function vt(e){if(typeof e!="string")throw new Error(yg(7));return e.charAt(0).toUpperCase()+e.slice(1)}function dR(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function nE(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function jke(e,t){return()=>null}function dT(e,t){var n,r;return M.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function _i(e){return e&&e.ownerDocument||document}function Od(e){return _i(e).defaultView||window}function Hke(e,t){return()=>null}function gx(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Oa=typeof window<"u"?M.useLayoutEffect:M.useEffect;let YX=0;function Vke(e){const[t,n]=M.useState(e),r=e||t;return M.useEffect(()=>{t==null&&(YX+=1,n(`mui-${YX}`))},[t]),r}const qX=gS.useId;function Cf(e){if(qX!==void 0){const t=qX();return e??t}return Vke(e)}function Wke(e,t,n,r,i){return null}function Ls({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=M.useRef(e!==void 0),[a,s]=M.useState(t),o=i?e:a,l=M.useCallback(c=>{i||s(c)},[]);return[o,l]}function on(e){const t=M.useRef(e);return Oa(()=>{t.current=e}),M.useRef((...n)=>(0,t.current)(...n)).current}function rr(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{gx(n,t)})},e)}const GX={};function Qke(e,t){const n=M.useRef(GX);return n.current===GX&&(n.current=e(t)),n}const Yke=[];function qke(e){M.useEffect(e,Yke)}class Fk{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Fk}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function hb(){const e=Qke(Fk.create).current;return qke(e.disposeEffect),e}let PD=!0,I9=!1;const Gke=new Fk,Zke={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Xke(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Zke[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Kke(e){e.metaKey||e.altKey||e.ctrlKey||(PD=!0)}function O8(){PD=!1}function Jke(){this.visibilityState==="hidden"&&I9&&(PD=!0)}function eCe(e){e.addEventListener("keydown",Kke,!0),e.addEventListener("mousedown",O8,!0),e.addEventListener("pointerdown",O8,!0),e.addEventListener("touchstart",O8,!0),e.addEventListener("visibilitychange",Jke,!0)}function tCe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return PD||Xke(t)}function MD(){const e=M.useCallback(i=>{i!=null&&eCe(i.ownerDocument)},[]),t=M.useRef(!1);function n(){return t.current?(I9=!0,Gke.start(100,()=>{I9=!1}),t.current=!1,!0):!1}function r(i){return tCe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Uue(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Cv;function zue(){if(Cv)return Cv;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Cv="reverse",e.scrollLeft>0?Cv="default":(e.scrollLeft=1,e.scrollLeft===0&&(Cv="negative")),document.body.removeChild(e),Cv}function nCe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(zue()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const rCe=e=>{const t=M.useRef({});return M.useEffect(()=>{t.current=e}),t.current};function iCe(e){return M.Children.toArray(e).filter(t=>M.isValidElement(t))}const aCe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},sCe=aCe;function LD(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=$({},a),Object.keys(i).forEach(s=>{n[r][s]=LD(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Wt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}const ZX=e=>e,oCe=()=>{let e=ZX;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ZX}}},ez=oCe(),jue={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qt(e,t,n="Mui"){const r=jue[t];return r?`${n}-${r}`:`${ez.generate(e)}-${t}`}function Gt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=qt(e,i,n)}),r}function Fv(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const lCe=["values","unit","step"],uCe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>$({},n,{[r.key]:r.val}),{})};function cCe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=ut(e,lCe),a=uCe(t),s=Object.keys(a);function o(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,b){const v=s.indexOf(b);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:b)-r/100}${n})`}function d(p){return s.indexOf(p)+1`@media (min-width:${tz[e]}px)`};function cu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||XX;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||XX;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||tz).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function Hue(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function Vue(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function hCe(e,...t){const n=Hue(e),r=[n,...t].reduce((i,a)=>Po(i,a),{});return Vue(Object.keys(n),r)}function pCe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function Pb({values:e,breakpoints:t,base:n}){const r=n||pCe(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function $D(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function fR(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=$D(e,n)||r,t&&(i=t(i,r,e)),i}function qa(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,c=$D(l,r)||{};return cu(s,o,h=>{let p=fR(c,i,h);return h===p&&typeof h=="string"&&(p=fR(c,i,`${t}${h==="default"?"":vt(h)}`,h)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function mCe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const gCe={m:"margin",p:"padding"},bCe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},KX={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yCe=mCe(e=>{if(e.length>2)if(KX[e])e=KX[e];else return[e];const[t,n]=e.split(""),r=gCe[t],i=bCe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),nz=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rz=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nz,...rz];function Bk(e,t,n,r){var i;const a=(i=$D(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function iz(e){return Bk(e,"spacing",8)}function Hb(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function vCe(e,t){return n=>e.reduce((r,i)=>(r[i]=Hb(t,n),r),{})}function OCe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=yCe(n),a=vCe(i,r),s=e[n];return cu(e,s,a)}function Wue(e,t){const n=iz(e.theme);return Object.keys(e).map(r=>OCe(e,t,r,n)).reduce(fT,{})}function Aa(e){return Wue(e,nz)}Aa.propTypes={};Aa.filterProps=nz;function Ra(e){return Wue(e,rz)}Ra.propTypes={};Ra.filterProps=rz;function SCe(e=8){if(e.mui)return e;const t=iz({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function FD(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?fT(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ed(e){return typeof e!="number"?e:`${e}px solid`}function kd(e,t){return qa({prop:e,themeKey:"borders",transform:t})}const ECe=kd("border",ed),wCe=kd("borderTop",ed),TCe=kd("borderRight",ed),xCe=kd("borderBottom",ed),kCe=kd("borderLeft",ed),CCe=kd("borderColor"),_Ce=kd("borderTopColor"),ACe=kd("borderRightColor"),RCe=kd("borderBottomColor"),ICe=kd("borderLeftColor"),DCe=kd("outline",ed),NCe=kd("outlineColor"),BD=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Bk(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Hb(t,r)});return cu(e,e.borderRadius,n)}return null};BD.propTypes={};BD.filterProps=["borderRadius"];FD(ECe,wCe,TCe,xCe,kCe,CCe,_Ce,ACe,RCe,ICe,BD,DCe,NCe);const UD=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Bk(e.theme,"spacing",8),n=r=>({gap:Hb(t,r)});return cu(e,e.gap,n)}return null};UD.propTypes={};UD.filterProps=["gap"];const zD=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Bk(e.theme,"spacing",8),n=r=>({columnGap:Hb(t,r)});return cu(e,e.columnGap,n)}return null};zD.propTypes={};zD.filterProps=["columnGap"];const jD=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Bk(e.theme,"spacing",8),n=r=>({rowGap:Hb(t,r)});return cu(e,e.rowGap,n)}return null};jD.propTypes={};jD.filterProps=["rowGap"];const PCe=qa({prop:"gridColumn"}),MCe=qa({prop:"gridRow"}),LCe=qa({prop:"gridAutoFlow"}),$Ce=qa({prop:"gridAutoColumns"}),FCe=qa({prop:"gridAutoRows"}),BCe=qa({prop:"gridTemplateColumns"}),UCe=qa({prop:"gridTemplateRows"}),zCe=qa({prop:"gridTemplateAreas"}),jCe=qa({prop:"gridArea"});FD(UD,zD,jD,PCe,MCe,LCe,$Ce,FCe,BCe,UCe,zCe,jCe);function DO(e,t){return t==="grey"?t:e}const HCe=qa({prop:"color",themeKey:"palette",transform:DO}),VCe=qa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:DO}),WCe=qa({prop:"backgroundColor",themeKey:"palette",transform:DO});FD(HCe,VCe,WCe);function tc(e){return e<=1&&e!==0?`${e*100}%`:e}const QCe=qa({prop:"width",transform:tc}),az=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||tz[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:tc(n)}};return cu(e,e.maxWidth,t)}return null};az.filterProps=["maxWidth"];const YCe=qa({prop:"minWidth",transform:tc}),qCe=qa({prop:"height",transform:tc}),GCe=qa({prop:"maxHeight",transform:tc}),ZCe=qa({prop:"minHeight",transform:tc});qa({prop:"size",cssProperty:"width",transform:tc});qa({prop:"size",cssProperty:"height",transform:tc});const XCe=qa({prop:"boxSizing"});FD(QCe,az,YCe,qCe,GCe,ZCe,XCe);const KCe={border:{themeKey:"borders",transform:ed},borderTop:{themeKey:"borders",transform:ed},borderRight:{themeKey:"borders",transform:ed},borderBottom:{themeKey:"borders",transform:ed},borderLeft:{themeKey:"borders",transform:ed},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ed},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:BD},color:{themeKey:"palette",transform:DO},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:DO},backgroundColor:{themeKey:"palette",transform:DO},p:{style:Ra},pt:{style:Ra},pr:{style:Ra},pb:{style:Ra},pl:{style:Ra},px:{style:Ra},py:{style:Ra},padding:{style:Ra},paddingTop:{style:Ra},paddingRight:{style:Ra},paddingBottom:{style:Ra},paddingLeft:{style:Ra},paddingX:{style:Ra},paddingY:{style:Ra},paddingInline:{style:Ra},paddingInlineStart:{style:Ra},paddingInlineEnd:{style:Ra},paddingBlock:{style:Ra},paddingBlockStart:{style:Ra},paddingBlockEnd:{style:Ra},m:{style:Aa},mt:{style:Aa},mr:{style:Aa},mb:{style:Aa},ml:{style:Aa},mx:{style:Aa},my:{style:Aa},margin:{style:Aa},marginTop:{style:Aa},marginRight:{style:Aa},marginBottom:{style:Aa},marginLeft:{style:Aa},marginX:{style:Aa},marginY:{style:Aa},marginInline:{style:Aa},marginInlineStart:{style:Aa},marginInlineEnd:{style:Aa},marginBlock:{style:Aa},marginBlockStart:{style:Aa},marginBlockEnd:{style:Aa},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:UD},rowGap:{style:jD},columnGap:{style:zD},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tc},maxWidth:{style:az},minWidth:{transform:tc},height:{transform:tc},maxHeight:{transform:tc},minHeight:{transform:tc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},HD=KCe;function JCe(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function e_e(e,t){return typeof e=="function"?e(t):e}function t_e(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:h}=o;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=$D(i,c)||{};return h?h(s):cu(s,r,v=>{let S=fR(p,d,v);return v===S&&typeof v=="string"&&(S=fR(p,d,`${n}${v==="default"?"":vt(v)}`,v)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:HD;function o(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const d=Hue(a.breakpoints),h=Object.keys(d);let p=d;return Object.keys(c).forEach(b=>{const v=e_e(c[b],a);if(v!=null)if(typeof v=="object")if(s[b])p=fT(p,e(b,v,a,s));else{const S=cu({theme:a},v,w=>({[b]:w}));JCe(S,v)?p[b]=t({sx:v,theme:a}):p=fT(p,S)}else p=fT(p,e(b,v,a,s))}),Vue(h,p)}return Array.isArray(i)?i.map(o):o(i)}return t}const Uk=t_e();Uk.filterProps=["sx"];function n_e(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const r_e=["breakpoints","palette","spacing","shape"];function zk(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=ut(e,r_e),o=cCe(n),l=SCe(i);let c=Po({breakpoints:o,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:l,shape:$({},fCe,a)},s);return c.applyStyles=n_e,c=t.reduce((d,h)=>Po(d,h),c),c.unstable_sxConfig=$({},HD,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(h){return Uk({sx:h,theme:this})},c}function i_e(e){return Object.keys(e).length===0}function VD(e=null){const t=M.useContext(wD);return!t||i_e(t)?e:t}const a_e=zk();function rE(e=a_e){return VD(e)}function s_e({styles:e,themeId:t,defaultTheme:n={}}){const r=rE(n),i=typeof e=="function"?e(t&&r[t]||r):e;return D.jsx($ke,{styles:i})}const o_e=["sx"],l_e=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:HD;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function WD(e){const{sx:t}=e,n=ut(e,o_e),{systemProps:r,otherProps:i}=l_e(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return Vp(o)?$({},r,o):r}:a=$({},r,t),$({},i,{sx:a})}function Que(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;to!=="theme"&&o!=="sx"&&o!=="as"})(Uk);return M.forwardRef(function(l,c){const d=rE(n),h=WD(l),{className:p,component:b="div"}=h,v=ut(h,u_e);return D.jsx(a,$({as:b,ref:c,className:bt(p,i?i(r):r),theme:t&&d[t]||d},v))})}const d_e=["variant"];function JX(e){return e.length===0}function Yue(e){const{variant:t}=e,n=ut(e,d_e);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=JX(r)?e[i]:vt(e[i]):r+=`${JX(r)?i:vt(i)}${vt(e[i].toString())}`}),r}const f_e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h_e(e){return Object.keys(e).length===0}function p_e(e){return typeof e=="string"&&e.charCodeAt(0)>96}const m_e=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,hR=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=Yue(r.props),n[i]=r.style}),n},g_e=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),hR(n)},pR=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let a=0;return n&&n.forEach(s=>{let o=!0;if(typeof s.props=="function"){const l=$({},e,r);o=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(o=!1)});o&&(typeof s.props=="function"?i.push(t[`callback${a}`]):i.push(t[Yue(s.props)])),typeof s.props=="function"&&(a+=1)}),i},b_e=(e,t,n,r)=>{var i;const a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return pR(e,t,a)};function hT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const y_e=zk(),v_e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Q3({defaultTheme:e,theme:t,themeId:n}){return h_e(t)?e:t[n]||t}function O_e(e){return e?(t,n)=>n[e]:null}const eK=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e($({},t,{theme:Q3($({},t,{defaultTheme:n,themeId:r}))}));let a;if(i&&i.variants&&(a=i.variants,delete i.variants),a){const s=pR(t,hR(a),a);return[i,...s]}return i};function que(e={}){const{themeId:t,defaultTheme:n=y_e,rootShouldForwardProp:r=hT,slotShouldForwardProp:i=hT}=e,a=s=>Uk($({},s,{theme:Q3($({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{Fke(s,C=>C.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:h,overridesResolver:p=O_e(v_e(c))}=o,b=ut(o,f_e),v=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,S=h||!1;let w,T=hT;c==="Root"||c==="root"?T=r:c?T=i:p_e(s)&&(T=void 0);const x=$ue(s,$({shouldForwardProp:T,label:w},b)),k=(C,...I)=>{const _=I?I.map(P=>{if(typeof P=="function"&&P.__emotion_real!==P)return V=>eK({styledArg:P,props:V,defaultTheme:n,themeId:t});if(Vp(P)){let V=P,Q;return P&&P.variants&&(Q=P.variants,delete V.variants,V=X=>{let Y=P;return pR(X,hR(Q),Q).forEach(ee=>{Y=Po(Y,ee)}),Y}),V}return P}):[];let A=C;if(Vp(C)){let P;C&&C.variants&&(P=C.variants,delete A.variants,A=V=>{let Q=C;return pR(V,hR(P),P).forEach(Y=>{Q=Po(Q,Y)}),Q})}else typeof C=="function"&&C.__emotion_real!==C&&(A=P=>eK({styledArg:C,props:P,defaultTheme:n,themeId:t}));l&&p&&_.push(P=>{const V=Q3($({},P,{defaultTheme:n,themeId:t})),Q=m_e(l,V);if(Q){const X={};return Object.entries(Q).forEach(([Y,W])=>{X[Y]=typeof W=="function"?W($({},P,{theme:V})):W}),p(P,X)}return null}),l&&!v&&_.push(P=>{const V=Q3($({},P,{defaultTheme:n,themeId:t}));return b_e(P,g_e(l,V),V,l)}),S||_.push(a);const U=_.length-I.length;if(Array.isArray(C)&&U>0){const P=new Array(U).fill("");A=[...C,...P],A.raw=[...C.raw,...P]}const F=x(A,..._);return s.muiName&&(F.muiName=s.muiName),F};return x.withConfig&&(k.withConfig=x.withConfig),k}}const Gue=que();function Zue(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:LD(t.components[n].defaultProps,r)}function sz({props:e,name:t,defaultTheme:n,themeId:r}){let i=rE(n);return r&&(i=i[r]||i),Zue({theme:i,name:t,props:e})}function oz(e,t=0,n=1){return Fv(e,t,n)}function S_e(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Vb(e){if(e.type)return e;if(e.charAt(0)==="#")return Vb(S_e(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(yg(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(yg(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function QD(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function E_e(e){e=Vb(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),QD({type:o,values:l})}function D9(e){e=Vb(e);let t=e.type==="hsl"||e.type==="hsla"?Vb(E_e(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function w_e(e,t){const n=D9(e),r=D9(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Bn(e,t){return e=Vb(e),t=oz(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,QD(e)}function YD(e,t){if(e=Vb(e),t=oz(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return QD(e)}function qD(e,t){if(e=Vb(e),t=oz(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return QD(e)}function T_e(e,t=.15){return D9(e)>.5?YD(e,t):qD(e,t)}const x_e=M.createContext(null),Xue=x_e;function Kue(){return M.useContext(Xue)}const k_e=typeof Symbol=="function"&&Symbol.for,C_e=k_e?Symbol.for("mui.nested"):"__THEME_NESTED__";function __e(e,t){return typeof t=="function"?t(e):$({},e,t)}function A_e(e){const{children:t,theme:n}=e,r=Kue(),i=M.useMemo(()=>{const a=r===null?n:__e(r,n);return a!=null&&(a[C_e]=r!==null),a},[n,r]);return D.jsx(Xue.Provider,{value:i,children:t})}const tK={};function nK(e,t,n,r=!1){return M.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?$({},t,{[e]:a}):a;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function R_e(e){const{children:t,theme:n,themeId:r}=e,i=VD(tK),a=Kue()||tK,s=nK(r,i,n),o=nK(r,a,n,!0);return D.jsx(A_e,{theme:o,children:D.jsx(wD.Provider,{value:s,children:t})})}const I_e=["className","component","disableGutters","fixed","maxWidth","classes"],D_e=zk(),N_e=Gue("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${vt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),P_e=e=>sz({props:e,name:"MuiContainer",defaultTheme:D_e}),M_e=(e,t)=>{const n=l=>qt(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${vt(String(s))}`,i&&"fixed",a&&"disableGutters"]};return Wt(o,n,r)};function L_e(e={}){const{createStyledComponent:t=N_e,useThemeProps:n=P_e,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>$({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const d=c,h=s.breakpoints.values[d];return h!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${h}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>$({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return M.forwardRef(function(o,l){const c=n(o),{className:d,component:h="div",disableGutters:p=!1,fixed:b=!1,maxWidth:v="lg"}=c,S=ut(c,I_e),w=$({},c,{component:h,disableGutters:p,fixed:b,maxWidth:v}),T=M_e(w,r);return D.jsx(i,$({as:h,ownerState:w,className:bt(T.root,d),ref:l},S))})}const $_e=["component","direction","spacing","divider","children","className","useFlexGap"],F_e=zk(),B_e=Gue("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function U_e(e){return sz({props:e,name:"MuiStack",defaultTheme:F_e})}function z_e(e,t){const n=M.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],H_e=({ownerState:e,theme:t})=>{let n=$({display:"flex",flexDirection:"column"},cu({theme:t},Pb({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=iz(t),i=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Pb({values:e.direction,base:i}),s=Pb({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,c,d)=>{if(!a[l]){const p=c>0?a[d[c-1]]:"column";a[l]=p}}),n=Po(n,cu({theme:t},s,(l,c)=>e.useFlexGap?{gap:Hb(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${j_e(c?a[c]:e.direction)}`]:Hb(r,l)}}))}return n=hCe(t.breakpoints,n),n};function V_e(e={}){const{createStyledComponent:t=B_e,useThemeProps:n=U_e,componentName:r="MuiStack"}=e,i=()=>Wt({root:["root"]},l=>qt(r,l),{}),a=t(H_e);return M.forwardRef(function(l,c){const d=n(l),h=WD(d),{component:p="div",direction:b="column",spacing:v=0,divider:S,children:w,className:T,useFlexGap:x=!1}=h,k=ut(h,$_e),C={direction:b,spacing:v,useFlexGap:x},I=i();return D.jsx(a,$({as:p,ownerState:C,ref:c,className:bt(I.root,T)},k,{children:S?z_e(w,S):w}))})}function W_e(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Q_e=["mode","contrastThreshold","tonalOffset"],rK={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fx.white,default:fx.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S8={text:{primary:fx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:fx.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function iK(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=qD(e.main,i):t==="dark"&&(e.dark=YD(e.main,a)))}function Y_e(e="light"){return e==="dark"?{main:Tv[200],light:Tv[50],dark:Tv[400]}:{main:Tv[700],light:Tv[400],dark:Tv[800]}}function q_e(e="light"){return e==="dark"?{main:wv[200],light:wv[50],dark:wv[400]}:{main:wv[500],light:wv[300],dark:wv[700]}}function G_e(e="light"){return e==="dark"?{main:Ev[500],light:Ev[300],dark:Ev[700]}:{main:Ev[700],light:Ev[400],dark:Ev[800]}}function Z_e(e="light"){return e==="dark"?{main:xv[400],light:xv[300],dark:xv[700]}:{main:xv[700],light:xv[500],dark:xv[900]}}function X_e(e="light"){return e==="dark"?{main:kv[400],light:kv[300],dark:kv[700]}:{main:kv[800],light:kv[500],dark:kv[900]}}function K_e(e="light"){return e==="dark"?{main:Xw[400],light:Xw[300],dark:Xw[700]}:{main:"#ed6c02",light:Xw[500],dark:Xw[900]}}function J_e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=ut(e,Q_e),a=e.primary||Y_e(t),s=e.secondary||q_e(t),o=e.error||G_e(t),l=e.info||Z_e(t),c=e.success||X_e(t),d=e.warning||K_e(t);function h(S){return w_e(S,S8.text.primary)>=n?S8.text.primary:rK.text.primary}const p=({color:S,name:w,mainShade:T=500,lightShade:x=300,darkShade:k=700})=>{if(S=$({},S),!S.main&&S[T]&&(S.main=S[T]),!S.hasOwnProperty("main"))throw new Error(yg(11,w?` (${w})`:"",T));if(typeof S.main!="string")throw new Error(yg(12,w?` (${w})`:"",JSON.stringify(S.main)));return iK(S,"light",x,r),iK(S,"dark",k,r),S.contrastText||(S.contrastText=h(S.main)),S},b={dark:S8,light:rK};return Po($({common:$({},fx),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:o,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Rxe,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},b[t]),i)}const eAe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function tAe(e){return Math.round(e*1e5)/1e5}const aK={textTransform:"uppercase"},sK='"Roboto", "Helvetica", "Arial", sans-serif';function nAe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=sK,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:h}=n,p=ut(n,eAe),b=i/14,v=h||(T=>`${T/c*b}rem`),S=(T,x,k,C,I)=>$({fontFamily:r,fontWeight:T,fontSize:v(x),lineHeight:k},r===sK?{letterSpacing:`${tAe(C/x)}em`}:{},I,d),w={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,aK),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,aK),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Po($({htmlFontSize:c,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},w),p,{clone:!1})}const rAe=.2,iAe=.14,aAe=.12;function aa(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rAe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iAe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${aAe})`].join(",")}const sAe=["none",aa(0,2,1,-1,0,1,1,0,0,1,3,0),aa(0,3,1,-2,0,2,2,0,0,1,5,0),aa(0,3,3,-2,0,3,4,0,0,1,8,0),aa(0,2,4,-1,0,4,5,0,0,1,10,0),aa(0,3,5,-1,0,5,8,0,0,1,14,0),aa(0,3,5,-1,0,6,10,0,0,1,18,0),aa(0,4,5,-2,0,7,10,1,0,2,16,1),aa(0,5,5,-3,0,8,10,1,0,3,14,2),aa(0,5,6,-3,0,9,12,1,0,3,16,2),aa(0,6,6,-3,0,10,14,1,0,4,18,3),aa(0,6,7,-4,0,11,15,1,0,4,20,3),aa(0,7,8,-4,0,12,17,2,0,5,22,4),aa(0,7,8,-4,0,13,19,2,0,5,24,4),aa(0,7,9,-4,0,14,21,2,0,5,26,4),aa(0,8,9,-5,0,15,22,2,0,6,28,5),aa(0,8,10,-5,0,16,24,2,0,6,30,5),aa(0,8,11,-5,0,17,26,2,0,6,32,5),aa(0,9,11,-5,0,18,28,2,0,7,34,6),aa(0,9,12,-6,0,19,29,2,0,7,36,6),aa(0,10,13,-6,0,20,31,3,0,8,38,7),aa(0,10,13,-6,0,21,33,3,0,8,40,7),aa(0,10,14,-6,0,22,35,3,0,8,42,7),aa(0,11,14,-7,0,23,36,3,0,9,44,8),aa(0,11,15,-7,0,24,38,3,0,9,46,8)],oAe=["duration","easing","delay"],lAe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Jue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function oK(e){return`${Math.round(e)}ms`}function uAe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function cAe(e){const t=$({},lAe,e.easing),n=$({},Jue,e.duration);return $({getAutoHeightDuration:uAe,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return ut(a,oAe),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:oK(s)} ${o} ${typeof l=="string"?l:oK(l)}`).join(",")}},e,{easing:t,duration:n})}const dAe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},fAe=dAe,hAe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function lz(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=ut(e,hAe);if(e.vars)throw new Error(yg(18));const o=J_e(r),l=zk(e);let c=Po(l,{mixins:W_e(l.breakpoints,n),palette:o,shadows:sAe.slice(),typography:nAe(o,a),transitions:cAe(i),zIndex:$({},fAe)});return c=Po(c,s),c=t.reduce((d,h)=>Po(d,h),c),c.unstable_sxConfig=$({},HD,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(h){return Uk({sx:h,theme:this})},c}const pAe=lz(),GD=pAe;function Ki(){const e=rE(GD);return e[jb]||e}function Pt({props:e,name:t}){return sz({props:e,name:t,defaultTheme:GD,themeId:jb})}const Bs=e=>hT(e)&&e!=="classes",uz=hT,Le=que({themeId:jb,defaultTheme:GD,rootShouldForwardProp:Bs}),mAe=["theme"];function gAe(e){let{theme:t}=e,n=ut(e,mAe);const r=t[jb];return D.jsx(R_e,$({},n,{themeId:r?jb:void 0,theme:r||t}))}const lK=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function bAe(e){return qt("MuiSvgIcon",e)}Gt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yAe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],vAe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${vt(t)}`,`fontSize${vt(n)}`]};return Wt(i,bAe,r)},OAe=Le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${vt(n.color)}`],t[`fontSize${vt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,c,d,h,p,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),vg=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,b=ut(r,yAe),v=M.isValidElement(i)&&i.type==="svg",S=$({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:v}),w={};d||(w.viewBox=p);const T=vAe(S);return D.jsxs(OAe,$({as:o,className:bt(T.root,a),focusable:"false",color:c,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},w,b,v&&i.props,{ownerState:S,children:[v?i.props.children:i,h?D.jsx("title",{children:h}):null]}))});vg.muiName="SvgIcon";function ts(e,t){function n(r,i){return D.jsx(vg,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=vg.muiName,M.memo(M.forwardRef(n))}const SAe={configure:e=>{ez.configure(e)}},EAe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:vt,createChainedFunction:dR,createSvgIcon:ts,debounce:nE,deprecatedPropType:jke,isMuiElement:dT,ownerDocument:_i,ownerWindow:Od,requirePropFactory:Hke,setRef:gx,unstable_ClassNameGenerator:SAe,unstable_useEnhancedEffect:Oa,unstable_useId:Cf,unsupportedProp:Wke,useControlled:Ls,useEventCallback:on,useForkRef:rr,useIsFocusVisible:MD},Symbol.toStringTag,{value:"Module"}));function N9(e,t){return N9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},N9(e,t)}function cz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,N9(e,t)}function wAe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function TAe(e,t){e.classList?e.classList.add(t):wAe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function uK(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function xAe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=uK(e.className,t):e.setAttribute("class",uK(e.className&&e.className.baseVal||"",t))}const cK={disabled:!1},mR=gn.createContext(null);var ece=function(t){return t.scrollTop},B2="unmounted",tb="exited",nb="entering",Bv="entered",P9="exiting",wm=function(e){cz(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=tb,a.appearStatus=nb):l=Bv:r.unmountOnExit||r.mountOnEnter?l=B2:l=tb,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===B2?{status:tb}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==nb&&s!==Bv&&(a=nb):(s===nb||s===Bv)&&(a=P9)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===nb){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:F2.findDOMNode(this);s&&ece(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tb&&this.setState({status:B2})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[F2.findDOMNode(this),o],c=l[0],d=l[1],h=this.getTimeouts(),p=o?h.appear:h.enter;if(!i&&!s||cK.disabled){this.safeSetState({status:Bv},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:nb},function(){a.props.onEntering(c,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Bv},function(){a.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:F2.findDOMNode(this);if(!a||cK.disabled){this.safeSetState({status:tb},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:P9},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:tb},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:F2.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===B2)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=ut(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gn.createElement(mR.Provider,{value:null},typeof s=="function"?s(i,o):gn.cloneElement(gn.Children.only(s),o))},t}(gn.Component);wm.contextType=mR;wm.propTypes={};function _v(){}wm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_v,onEntering:_v,onEntered:_v,onExit:_v,onExiting:_v,onExited:_v};wm.UNMOUNTED=B2;wm.EXITED=tb;wm.ENTERING=nb;wm.ENTERED=Bv;wm.EXITING=P9;const jk=wm;var kAe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return TAe(t,r)})},E8=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return xAe(t,r)})},dz=function(e){cz(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),s=0;se.scrollTop;function Og(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function PAe(e){return qt("MuiCollapse",e)}Gt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const MAe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],LAe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Wt(r,PAe,n)},$Ae=Le("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),FAe=Le("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),BAe=Le("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),tce=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:c,in:d,onEnter:h,onEntered:p,onEntering:b,onExit:v,onExited:S,onExiting:w,orientation:T="vertical",style:x,timeout:k=Jue.standard,TransitionComponent:C=jk}=r,I=ut(r,MAe),_=$({},r,{orientation:T,collapsedSize:o}),A=LAe(_),U=Ki(),F=hb(),P=M.useRef(null),V=M.useRef(),Q=typeof o=="number"?`${o}px`:o,X=T==="horizontal",Y=X?"width":"height",W=M.useRef(null),ee=rr(n,W),J=he=>Ne=>{if(he){const Pe=W.current;Ne===void 0?he(Pe):he(Pe,Ne)}},K=()=>P.current?P.current[X?"clientWidth":"clientHeight"]:0,ne=J((he,Ne)=>{P.current&&X&&(P.current.style.position="absolute"),he.style[Y]=Q,h&&h(he,Ne)}),j=J((he,Ne)=>{const Pe=K();P.current&&X&&(P.current.style.position="");const{duration:Ze,easing:st}=Og({style:x,timeout:k,easing:c},{mode:"enter"});if(k==="auto"){const Qe=U.transitions.getAutoHeightDuration(Pe);he.style.transitionDuration=`${Qe}ms`,V.current=Qe}else he.style.transitionDuration=typeof Ze=="string"?Ze:`${Ze}ms`;he.style[Y]=`${Pe}px`,he.style.transitionTimingFunction=st,b&&b(he,Ne)}),Ce=J((he,Ne)=>{he.style[Y]="auto",p&&p(he,Ne)}),ye=J(he=>{he.style[Y]=`${K()}px`,v&&v(he)}),te=J(S),ve=J(he=>{const Ne=K(),{duration:Pe,easing:Ze}=Og({style:x,timeout:k,easing:c},{mode:"exit"});if(k==="auto"){const st=U.transitions.getAutoHeightDuration(Ne);he.style.transitionDuration=`${st}ms`,V.current=st}else he.style.transitionDuration=typeof Pe=="string"?Pe:`${Pe}ms`;he.style[Y]=Q,he.style.transitionTimingFunction=Ze,w&&w(he)}),Se=he=>{k==="auto"&&F.start(V.current||0,he),i&&i(W.current,he)};return D.jsx(C,$({in:d,onEnter:ne,onEntered:Ce,onEntering:j,onExit:ye,onExited:te,onExiting:ve,addEndListener:Se,nodeRef:W,timeout:k==="auto"?null:k},I,{children:(he,Ne)=>D.jsx($Ae,$({as:l,className:bt(A.root,s,{entered:A.entered,exited:!d&&Q==="0px"&&A.hidden}[he]),style:$({[X?"minWidth":"minHeight"]:Q},x),ownerState:$({},_,{state:he}),ref:ee},Ne,{children:D.jsx(FAe,{ownerState:$({},_,{state:he}),className:A.wrapper,ref:P,children:D.jsx(BAe,{ownerState:$({},_,{state:he}),className:A.wrapperInner,children:a})})}))}))});tce.muiSupportAuto=!0;const UAe=tce;function zAe(e){return qt("MuiPaper",e)}Gt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jAe=["className","component","elevation","square","variant"],HAe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Wt(a,zAe,i)},VAe=Le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Bn("#fff",lK(t.elevation))}, ${Bn("#fff",lK(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),WAe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,c=ut(r,jAe),d=$({},r,{component:a,elevation:s,square:o,variant:l}),h=HAe(d);return D.jsx(VAe,$({as:a,ownerState:d,className:bt(h.root,i),ref:n},c))}),po=WAe;function jh(e){return typeof e=="string"}function U2(e,t,n){return e===void 0||jh(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function QAe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const YAe={disableDefaultClasses:!1},qAe=M.createContext(YAe);function GAe(e){const{disableDefaultClasses:t}=M.useContext(qAe);return n=>t?"":e(n)}function pT(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Fg(e,t,n){return typeof e=="function"?e(t,n):e}function dK(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function ZAe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const b=bt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),v=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=$({},n,i,r);return b.length>0&&(S.className=b),Object.keys(v).length>0&&(S.style=v),{props:S,internalRef:void 0}}const s=pT($({},i,r)),o=dK(r),l=dK(i),c=t(s),d=bt(c==null?void 0:c.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),h=$({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},c,n,l,o);return d.length>0&&(p.className=d),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:c.ref}}const XAe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=ut(e,XAe),o=a?{}:Fg(r,i),{props:l,internalRef:c}=ZAe($({},s,{externalSlotProps:o})),d=rr(c,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return U2(n,$({},l,{ref:d}),i)}function KAe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:c}=e,[d,h]=M.useState(!1),p=bt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},v=bt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!o&&!d&&h(!0),M.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,c);return()=>{clearTimeout(S)}}},[l,o,c]),D.jsx("span",{className:p,style:b,children:D.jsx("span",{className:v})})}const Xc=Gt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),JAe=["center","classes","className"];let ZD=e=>e,fK,hK,pK,mK;const M9=550,e4e=80,t4e=$k(fK||(fK=ZD` + */var KU=Symbol.for("react.element"),JU=Symbol.for("react.portal"),AD=Symbol.for("react.fragment"),RD=Symbol.for("react.strict_mode"),ID=Symbol.for("react.profiler"),DD=Symbol.for("react.provider"),ND=Symbol.for("react.context"),nCe=Symbol.for("react.server_context"),PD=Symbol.for("react.forward_ref"),MD=Symbol.for("react.suspense"),LD=Symbol.for("react.suspense_list"),$D=Symbol.for("react.memo"),FD=Symbol.for("react.lazy"),rCe=Symbol.for("react.offscreen"),ece;ece=Symbol.for("react.module.reference");function Td(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case KU:switch(e=e.type,e){case AD:case ID:case RD:case MD:case LD:return e;default:switch(e=e&&e.$$typeof,e){case nCe:case ND:case PD:case FD:case $D:case DD:return e;default:return t}}case JU:return t}}}xi.ContextConsumer=ND;xi.ContextProvider=DD;xi.Element=KU;xi.ForwardRef=PD;xi.Fragment=AD;xi.Lazy=FD;xi.Memo=$D;xi.Portal=JU;xi.Profiler=ID;xi.StrictMode=RD;xi.Suspense=MD;xi.SuspenseList=LD;xi.isAsyncMode=function(){return!1};xi.isConcurrentMode=function(){return!1};xi.isContextConsumer=function(e){return Td(e)===ND};xi.isContextProvider=function(e){return Td(e)===DD};xi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===KU};xi.isForwardRef=function(e){return Td(e)===PD};xi.isFragment=function(e){return Td(e)===AD};xi.isLazy=function(e){return Td(e)===FD};xi.isMemo=function(e){return Td(e)===$D};xi.isPortal=function(e){return Td(e)===JU};xi.isProfiler=function(e){return Td(e)===ID};xi.isStrictMode=function(e){return Td(e)===RD};xi.isSuspense=function(e){return Td(e)===MD};xi.isSuspenseList=function(e){return Td(e)===LD};xi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===AD||e===ID||e===RD||e===MD||e===LD||e===rCe||typeof e=="object"&&e!==null&&(e.$$typeof===FD||e.$$typeof===$D||e.$$typeof===DD||e.$$typeof===ND||e.$$typeof===PD||e.$$typeof===ece||e.getModuleId!==void 0)};xi.typeOf=Td;const iCe=G.oneOfType([G.func,G.object]),rE=iCe;function yt(e){if(typeof e!="string")throw new Error(bg(7));return e.charAt(0).toUpperCase()+e.slice(1)}function bR(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function iE(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function aCe(e,t){return()=>null}function f2(e,t){var n,r;return P.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function _i(e){return e&&e.ownerDocument||document}function vd(e){return _i(e).defaultView||window}function sCe(e,t){return()=>null}function bx(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const wa=typeof window<"u"?P.useLayoutEffect:P.useEffect;let JX=0;function oCe(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(JX+=1,n(`mui-${JX}`))},[t]),r}const eK=yS.useId;function _f(e){if(eK!==void 0){const t=eK();return e??t}return oCe(e)}function lCe(e,t,n,r,i){return null}function Ms({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=P.useRef(e!==void 0),[a,s]=P.useState(t),o=i?e:a,l=P.useCallback(c=>{i||s(c)},[]);return[o,l]}function on(e){const t=P.useRef(e);return wa(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function rr(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{bx(n,t)})},e)}const tK={};function uCe(e,t){const n=P.useRef(tK);return n.current===tK&&(n.current=e(t)),n}const cCe=[];function dCe(e){P.useEffect(e,cCe)}class Uk{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Uk}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function pb(){const e=uCe(Uk.create).current;return dCe(e.disposeEffect),e}let BD=!0,R9=!1;const fCe=new Uk,hCe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function pCe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&hCe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function mCe(e){e.metaKey||e.altKey||e.ctrlKey||(BD=!0)}function S8(){BD=!1}function gCe(){this.visibilityState==="hidden"&&R9&&(BD=!0)}function bCe(e){e.addEventListener("keydown",mCe,!0),e.addEventListener("mousedown",S8,!0),e.addEventListener("pointerdown",S8,!0),e.addEventListener("touchstart",S8,!0),e.addEventListener("visibilitychange",gCe,!0)}function yCe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return BD||pCe(t)}function UD(){const e=P.useCallback(i=>{i!=null&&bCe(i.ownerDocument)},[]),t=P.useRef(!1);function n(){return t.current?(R9=!0,fCe.start(100,()=>{R9=!1}),t.current=!1,!0):!1}function r(i){return yCe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function tce(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let _v;function nce(){if(_v)return _v;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),_v="reverse",e.scrollLeft>0?_v="default":(e.scrollLeft=1,e.scrollLeft===0&&(_v="negative")),document.body.removeChild(e),_v}function vCe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(nce()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const OCe=e=>{const t=P.useRef({});return P.useEffect(()=>{t.current=e}),t.current};function SCe(e){return P.Children.toArray(e).filter(t=>P.isValidElement(t))}const ECe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},wCe=ECe;function zD(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=$({},a),Object.keys(i).forEach(s=>{n[r][s]=zD(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function $t(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}const nK=e=>e,TCe=()=>{let e=nK;return{configure(t){e=t},generate(t){return e(t)},reset(){e=nK}}},ez=TCe(),rce={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ut(e,t,n="Mui"){const r=rce[t];return r?`${n}-${r}`:`${ez.generate(e)}-${t}`}function zt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ut(e,i,n)}),r}function Uv(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const xCe=["values","unit","step"],kCe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>$({},n,{[r.key]:r.val}),{})};function CCe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=st(e,xCe),a=kCe(t),s=Object.keys(a);function o(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,b){const v=s.indexOf(b);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:b)-r/100}${n})`}function d(p){return s.indexOf(p)+1`@media (min-width:${tz[e]}px)`};function cu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||rK;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||rK;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||tz).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function ice(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function ace(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function RCe(e,...t){const n=ice(e),r=[n,...t].reduce((i,a)=>Po(i,a),{});return ace(Object.keys(n),r)}function ICe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function Mb({values:e,breakpoints:t,base:n}){const r=n||ICe(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function jD(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function yR(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=jD(e,n)||r,t&&(i=t(i,r,e)),i}function Ga(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,c=jD(l,r)||{};return cu(s,o,h=>{let p=yR(c,i,h);return h===p&&typeof h=="string"&&(p=yR(c,i,`${t}${h==="default"?"":yt(h)}`,h)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function DCe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const NCe={m:"margin",p:"padding"},PCe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},iK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},MCe=DCe(e=>{if(e.length>2)if(iK[e])e=iK[e];else return[e];const[t,n]=e.split(""),r=NCe[t],i=PCe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),nz=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rz=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nz,...rz];function zk(e,t,n,r){var i;const a=(i=jD(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function iz(e){return zk(e,"spacing",8)}function Vb(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function LCe(e,t){return n=>e.reduce((r,i)=>(r[i]=Vb(t,n),r),{})}function $Ce(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=MCe(n),a=LCe(i,r),s=e[n];return cu(e,s,a)}function sce(e,t){const n=iz(e.theme);return Object.keys(e).map(r=>$Ce(e,t,r,n)).reduce(h2,{})}function Ia(e){return sce(e,nz)}Ia.propTypes={};Ia.filterProps=nz;function Da(e){return sce(e,rz)}Da.propTypes={};Da.filterProps=rz;function FCe(e=8){if(e.mui)return e;const t=iz({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function HD(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?h2(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ed(e){return typeof e!="number"?e:`${e}px solid`}function xd(e,t){return Ga({prop:e,themeKey:"borders",transform:t})}const BCe=xd("border",ed),UCe=xd("borderTop",ed),zCe=xd("borderRight",ed),jCe=xd("borderBottom",ed),HCe=xd("borderLeft",ed),VCe=xd("borderColor"),WCe=xd("borderTopColor"),QCe=xd("borderRightColor"),YCe=xd("borderBottomColor"),qCe=xd("borderLeftColor"),GCe=xd("outline",ed),ZCe=xd("outlineColor"),VD=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=zk(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Vb(t,r)});return cu(e,e.borderRadius,n)}return null};VD.propTypes={};VD.filterProps=["borderRadius"];HD(BCe,UCe,zCe,jCe,HCe,VCe,WCe,QCe,YCe,qCe,VD,GCe,ZCe);const WD=e=>{if(e.gap!==void 0&&e.gap!==null){const t=zk(e.theme,"spacing",8),n=r=>({gap:Vb(t,r)});return cu(e,e.gap,n)}return null};WD.propTypes={};WD.filterProps=["gap"];const QD=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=zk(e.theme,"spacing",8),n=r=>({columnGap:Vb(t,r)});return cu(e,e.columnGap,n)}return null};QD.propTypes={};QD.filterProps=["columnGap"];const YD=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=zk(e.theme,"spacing",8),n=r=>({rowGap:Vb(t,r)});return cu(e,e.rowGap,n)}return null};YD.propTypes={};YD.filterProps=["rowGap"];const XCe=Ga({prop:"gridColumn"}),KCe=Ga({prop:"gridRow"}),JCe=Ga({prop:"gridAutoFlow"}),e_e=Ga({prop:"gridAutoColumns"}),t_e=Ga({prop:"gridAutoRows"}),n_e=Ga({prop:"gridTemplateColumns"}),r_e=Ga({prop:"gridTemplateRows"}),i_e=Ga({prop:"gridTemplateAreas"}),a_e=Ga({prop:"gridArea"});HD(WD,QD,YD,XCe,KCe,JCe,e_e,t_e,n_e,r_e,i_e,a_e);function NO(e,t){return t==="grey"?t:e}const s_e=Ga({prop:"color",themeKey:"palette",transform:NO}),o_e=Ga({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:NO}),l_e=Ga({prop:"backgroundColor",themeKey:"palette",transform:NO});HD(s_e,o_e,l_e);function tc(e){return e<=1&&e!==0?`${e*100}%`:e}const u_e=Ga({prop:"width",transform:tc}),az=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||tz[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:tc(n)}};return cu(e,e.maxWidth,t)}return null};az.filterProps=["maxWidth"];const c_e=Ga({prop:"minWidth",transform:tc}),d_e=Ga({prop:"height",transform:tc}),f_e=Ga({prop:"maxHeight",transform:tc}),h_e=Ga({prop:"minHeight",transform:tc});Ga({prop:"size",cssProperty:"width",transform:tc});Ga({prop:"size",cssProperty:"height",transform:tc});const p_e=Ga({prop:"boxSizing"});HD(u_e,az,c_e,d_e,f_e,h_e,p_e);const m_e={border:{themeKey:"borders",transform:ed},borderTop:{themeKey:"borders",transform:ed},borderRight:{themeKey:"borders",transform:ed},borderBottom:{themeKey:"borders",transform:ed},borderLeft:{themeKey:"borders",transform:ed},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ed},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:VD},color:{themeKey:"palette",transform:NO},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:NO},backgroundColor:{themeKey:"palette",transform:NO},p:{style:Da},pt:{style:Da},pr:{style:Da},pb:{style:Da},pl:{style:Da},px:{style:Da},py:{style:Da},padding:{style:Da},paddingTop:{style:Da},paddingRight:{style:Da},paddingBottom:{style:Da},paddingLeft:{style:Da},paddingX:{style:Da},paddingY:{style:Da},paddingInline:{style:Da},paddingInlineStart:{style:Da},paddingInlineEnd:{style:Da},paddingBlock:{style:Da},paddingBlockStart:{style:Da},paddingBlockEnd:{style:Da},m:{style:Ia},mt:{style:Ia},mr:{style:Ia},mb:{style:Ia},ml:{style:Ia},mx:{style:Ia},my:{style:Ia},margin:{style:Ia},marginTop:{style:Ia},marginRight:{style:Ia},marginBottom:{style:Ia},marginLeft:{style:Ia},marginX:{style:Ia},marginY:{style:Ia},marginInline:{style:Ia},marginInlineStart:{style:Ia},marginInlineEnd:{style:Ia},marginBlock:{style:Ia},marginBlockStart:{style:Ia},marginBlockEnd:{style:Ia},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:WD},rowGap:{style:YD},columnGap:{style:QD},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tc},maxWidth:{style:az},minWidth:{transform:tc},height:{transform:tc},maxHeight:{transform:tc},minHeight:{transform:tc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qD=m_e;function g_e(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function b_e(e,t){return typeof e=="function"?e(t):e}function y_e(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:h}=o;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=jD(i,c)||{};return h?h(s):cu(s,r,v=>{let S=yR(p,d,v);return v===S&&typeof v=="string"&&(S=yR(p,d,`${n}${v==="default"?"":yt(v)}`,v)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:qD;function o(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const d=ice(a.breakpoints),h=Object.keys(d);let p=d;return Object.keys(c).forEach(b=>{const v=b_e(c[b],a);if(v!=null)if(typeof v=="object")if(s[b])p=h2(p,e(b,v,a,s));else{const S=cu({theme:a},v,w=>({[b]:w}));g_e(S,v)?p[b]=t({sx:v,theme:a}):p=h2(p,S)}else p=h2(p,e(b,v,a,s))}),ace(h,p)}return Array.isArray(i)?i.map(o):o(i)}return t}const jk=y_e();jk.filterProps=["sx"];function v_e(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const O_e=["breakpoints","palette","spacing","shape"];function Hk(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=st(e,O_e),o=CCe(n),l=FCe(i);let c=Po({breakpoints:o,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:l,shape:$({},ACe,a)},s);return c.applyStyles=v_e,c=t.reduce((d,h)=>Po(d,h),c),c.unstable_sxConfig=$({},qD,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(h){return jk({sx:h,theme:this})},c}function S_e(e){return Object.keys(e).length===0}function GD(e=null){const t=P.useContext(_D);return!t||S_e(t)?e:t}const E_e=Hk();function aE(e=E_e){return GD(e)}function w_e({styles:e,themeId:t,defaultTheme:n={}}){const r=aE(n),i=typeof e=="function"?e(t&&r[t]||r):e;return D.jsx(eCe,{styles:i})}const T_e=["sx"],x_e=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qD;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function ZD(e){const{sx:t}=e,n=st(e,T_e),{systemProps:r,otherProps:i}=x_e(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return Wp(o)?$({},r,o):r}:a=$({},r,t),$({},i,{sx:a})}function oce(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;to!=="theme"&&o!=="sx"&&o!=="as"})(jk);return P.forwardRef(function(l,c){const d=aE(n),h=ZD(l),{className:p,component:b="div"}=h,v=st(h,k_e);return D.jsx(a,$({as:b,ref:c,className:gt(p,i?i(r):r),theme:t&&d[t]||d},v))})}const __e=["variant"];function aK(e){return e.length===0}function lce(e){const{variant:t}=e,n=st(e,__e);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=aK(r)?e[i]:yt(e[i]):r+=`${aK(r)?i:yt(i)}${yt(e[i].toString())}`}),r}const A_e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function R_e(e){return Object.keys(e).length===0}function I_e(e){return typeof e=="string"&&e.charCodeAt(0)>96}const D_e=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,vR=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=lce(r.props),n[i]=r.style}),n},N_e=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),vR(n)},OR=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let a=0;return n&&n.forEach(s=>{let o=!0;if(typeof s.props=="function"){const l=$({},e,r);o=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(o=!1)});o&&(typeof s.props=="function"?i.push(t[`callback${a}`]):i.push(t[lce(s.props)])),typeof s.props=="function"&&(a+=1)}),i},P_e=(e,t,n,r)=>{var i;const a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return OR(e,t,a)};function p2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const M_e=Hk(),L_e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function K3({defaultTheme:e,theme:t,themeId:n}){return R_e(t)?e:t[n]||t}function $_e(e){return e?(t,n)=>n[e]:null}const sK=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e($({},t,{theme:K3($({},t,{defaultTheme:n,themeId:r}))}));let a;if(i&&i.variants&&(a=i.variants,delete i.variants),a){const s=OR(t,vR(a),a);return[i,...s]}return i};function uce(e={}){const{themeId:t,defaultTheme:n=M_e,rootShouldForwardProp:r=p2,slotShouldForwardProp:i=p2}=e,a=s=>jk($({},s,{theme:K3($({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{tCe(s,C=>C.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:h,overridesResolver:p=$_e(L_e(c))}=o,b=st(o,A_e),v=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,S=h||!1;let w,T=p2;c==="Root"||c==="root"?T=r:c?T=i:I_e(s)&&(T=void 0);const x=Kue(s,$({shouldForwardProp:T,label:w},b)),k=(C,...I)=>{const _=I?I.map(M=>{if(typeof M=="function"&&M.__emotion_real!==M)return V=>sK({styledArg:M,props:V,defaultTheme:n,themeId:t});if(Wp(M)){let V=M,Q;return M&&M.variants&&(Q=M.variants,delete V.variants,V=X=>{let Y=M;return OR(X,vR(Q),Q).forEach(ee=>{Y=Po(Y,ee)}),Y}),V}return M}):[];let A=C;if(Wp(C)){let M;C&&C.variants&&(M=C.variants,delete A.variants,A=V=>{let Q=C;return OR(V,vR(M),M).forEach(Y=>{Q=Po(Q,Y)}),Q})}else typeof C=="function"&&C.__emotion_real!==C&&(A=M=>sK({styledArg:C,props:M,defaultTheme:n,themeId:t}));l&&p&&_.push(M=>{const V=K3($({},M,{defaultTheme:n,themeId:t})),Q=D_e(l,V);if(Q){const X={};return Object.entries(Q).forEach(([Y,W])=>{X[Y]=typeof W=="function"?W($({},M,{theme:V})):W}),p(M,X)}return null}),l&&!v&&_.push(M=>{const V=K3($({},M,{defaultTheme:n,themeId:t}));return P_e(M,N_e(l,V),V,l)}),S||_.push(a);const U=_.length-I.length;if(Array.isArray(C)&&U>0){const M=new Array(U).fill("");A=[...C,...M],A.raw=[...C.raw,...M]}const F=x(A,..._);return s.muiName&&(F.muiName=s.muiName),F};return x.withConfig&&(k.withConfig=x.withConfig),k}}const cce=uce();function dce(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:zD(t.components[n].defaultProps,r)}function sz({props:e,name:t,defaultTheme:n,themeId:r}){let i=aE(n);return r&&(i=i[r]||i),dce({theme:i,name:t,props:e})}function oz(e,t=0,n=1){return Uv(e,t,n)}function F_e(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Wb(e){if(e.type)return e;if(e.charAt(0)==="#")return Wb(F_e(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(bg(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(bg(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function XD(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function B_e(e){e=Wb(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),XD({type:o,values:l})}function I9(e){e=Wb(e);let t=e.type==="hsl"||e.type==="hsla"?Wb(B_e(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function U_e(e,t){const n=I9(e),r=I9(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function In(e,t){return e=Wb(e),t=oz(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,XD(e)}function Vk(e,t){if(e=Wb(e),t=oz(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return XD(e)}function Wk(e,t){if(e=Wb(e),t=oz(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return XD(e)}function z_e(e,t=.15){return I9(e)>.5?Vk(e,t):Wk(e,t)}const j_e=P.createContext(null),fce=j_e;function hce(){return P.useContext(fce)}const H_e=typeof Symbol=="function"&&Symbol.for,V_e=H_e?Symbol.for("mui.nested"):"__THEME_NESTED__";function W_e(e,t){return typeof t=="function"?t(e):$({},e,t)}function Q_e(e){const{children:t,theme:n}=e,r=hce(),i=P.useMemo(()=>{const a=r===null?n:W_e(r,n);return a!=null&&(a[V_e]=r!==null),a},[n,r]);return D.jsx(fce.Provider,{value:i,children:t})}const oK={};function lK(e,t,n,r=!1){return P.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?$({},t,{[e]:a}):a;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function Y_e(e){const{children:t,theme:n,themeId:r}=e,i=GD(oK),a=hce()||oK,s=lK(r,i,n),o=lK(r,a,n,!0);return D.jsx(Q_e,{theme:o,children:D.jsx(_D.Provider,{value:s,children:t})})}const q_e=["className","component","disableGutters","fixed","maxWidth","classes"],G_e=Hk(),Z_e=cce("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${yt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),X_e=e=>sz({props:e,name:"MuiContainer",defaultTheme:G_e}),K_e=(e,t)=>{const n=l=>Ut(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${yt(String(s))}`,i&&"fixed",a&&"disableGutters"]};return $t(o,n,r)};function J_e(e={}){const{createStyledComponent:t=Z_e,useThemeProps:n=X_e,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>$({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const d=c,h=s.breakpoints.values[d];return h!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${h}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>$({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return P.forwardRef(function(o,l){const c=n(o),{className:d,component:h="div",disableGutters:p=!1,fixed:b=!1,maxWidth:v="lg"}=c,S=st(c,q_e),w=$({},c,{component:h,disableGutters:p,fixed:b,maxWidth:v}),T=K_e(w,r);return D.jsx(i,$({as:h,ownerState:w,className:gt(T.root,d),ref:l},S))})}const eAe=["component","direction","spacing","divider","children","className","useFlexGap"],tAe=Hk(),nAe=cce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function rAe(e){return sz({props:e,name:"MuiStack",defaultTheme:tAe})}function iAe(e,t){const n=P.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sAe=({ownerState:e,theme:t})=>{let n=$({display:"flex",flexDirection:"column"},cu({theme:t},Mb({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=iz(t),i=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Mb({values:e.direction,base:i}),s=Mb({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,c,d)=>{if(!a[l]){const p=c>0?a[d[c-1]]:"column";a[l]=p}}),n=Po(n,cu({theme:t},s,(l,c)=>e.useFlexGap?{gap:Vb(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${aAe(c?a[c]:e.direction)}`]:Vb(r,l)}}))}return n=RCe(t.breakpoints,n),n};function oAe(e={}){const{createStyledComponent:t=nAe,useThemeProps:n=rAe,componentName:r="MuiStack"}=e,i=()=>$t({root:["root"]},l=>Ut(r,l),{}),a=t(sAe);return P.forwardRef(function(l,c){const d=n(l),h=ZD(d),{component:p="div",direction:b="column",spacing:v=0,divider:S,children:w,className:T,useFlexGap:x=!1}=h,k=st(h,eAe),C={direction:b,spacing:v,useFlexGap:x},I=i();return D.jsx(a,$({as:p,ownerState:C,ref:c,className:gt(I.root,T)},k,{children:S?iAe(w,S):w}))})}function lAe(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const uAe=["mode","contrastThreshold","tonalOffset"],uK={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:hx.white,default:hx.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},E8={text:{primary:hx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:hx.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cK(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wk(e.main,i):t==="dark"&&(e.dark=Vk(e.main,a)))}function cAe(e="light"){return e==="dark"?{main:xv[200],light:xv[50],dark:xv[400]}:{main:xv[700],light:xv[400],dark:xv[800]}}function dAe(e="light"){return e==="dark"?{main:Tv[200],light:Tv[50],dark:Tv[400]}:{main:Tv[500],light:Tv[300],dark:Tv[700]}}function fAe(e="light"){return e==="dark"?{main:wv[500],light:wv[300],dark:wv[700]}:{main:wv[700],light:wv[400],dark:wv[800]}}function hAe(e="light"){return e==="dark"?{main:kv[400],light:kv[300],dark:kv[700]}:{main:kv[700],light:kv[500],dark:kv[900]}}function pAe(e="light"){return e==="dark"?{main:Cv[400],light:Cv[300],dark:Cv[700]}:{main:Cv[800],light:Cv[500],dark:Cv[900]}}function mAe(e="light"){return e==="dark"?{main:Kw[400],light:Kw[300],dark:Kw[700]}:{main:"#ed6c02",light:Kw[500],dark:Kw[900]}}function gAe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=st(e,uAe),a=e.primary||cAe(t),s=e.secondary||dAe(t),o=e.error||fAe(t),l=e.info||hAe(t),c=e.success||pAe(t),d=e.warning||mAe(t);function h(S){return U_e(S,E8.text.primary)>=n?E8.text.primary:uK.text.primary}const p=({color:S,name:w,mainShade:T=500,lightShade:x=300,darkShade:k=700})=>{if(S=$({},S),!S.main&&S[T]&&(S.main=S[T]),!S.hasOwnProperty("main"))throw new Error(bg(11,w?` (${w})`:"",T));if(typeof S.main!="string")throw new Error(bg(12,w?` (${w})`:"",JSON.stringify(S.main)));return cK(S,"light",x,r),cK(S,"dark",k,r),S.contrastText||(S.contrastText=h(S.main)),S},b={dark:E8,light:uK};return Po($({common:$({},hx),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:o,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Yxe,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},b[t]),i)}const bAe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function yAe(e){return Math.round(e*1e5)/1e5}const dK={textTransform:"uppercase"},fK='"Roboto", "Helvetica", "Arial", sans-serif';function vAe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=fK,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:h}=n,p=st(n,bAe),b=i/14,v=h||(T=>`${T/c*b}rem`),S=(T,x,k,C,I)=>$({fontFamily:r,fontWeight:T,fontSize:v(x),lineHeight:k},r===fK?{letterSpacing:`${yAe(C/x)}em`}:{},I,d),w={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,dK),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,dK),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Po($({htmlFontSize:c,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},w),p,{clone:!1})}const OAe=.2,SAe=.14,EAe=.12;function sa(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${OAe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${SAe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${EAe})`].join(",")}const wAe=["none",sa(0,2,1,-1,0,1,1,0,0,1,3,0),sa(0,3,1,-2,0,2,2,0,0,1,5,0),sa(0,3,3,-2,0,3,4,0,0,1,8,0),sa(0,2,4,-1,0,4,5,0,0,1,10,0),sa(0,3,5,-1,0,5,8,0,0,1,14,0),sa(0,3,5,-1,0,6,10,0,0,1,18,0),sa(0,4,5,-2,0,7,10,1,0,2,16,1),sa(0,5,5,-3,0,8,10,1,0,3,14,2),sa(0,5,6,-3,0,9,12,1,0,3,16,2),sa(0,6,6,-3,0,10,14,1,0,4,18,3),sa(0,6,7,-4,0,11,15,1,0,4,20,3),sa(0,7,8,-4,0,12,17,2,0,5,22,4),sa(0,7,8,-4,0,13,19,2,0,5,24,4),sa(0,7,9,-4,0,14,21,2,0,5,26,4),sa(0,8,9,-5,0,15,22,2,0,6,28,5),sa(0,8,10,-5,0,16,24,2,0,6,30,5),sa(0,8,11,-5,0,17,26,2,0,6,32,5),sa(0,9,11,-5,0,18,28,2,0,7,34,6),sa(0,9,12,-6,0,19,29,2,0,7,36,6),sa(0,10,13,-6,0,20,31,3,0,8,38,7),sa(0,10,13,-6,0,21,33,3,0,8,40,7),sa(0,10,14,-6,0,22,35,3,0,8,42,7),sa(0,11,14,-7,0,23,36,3,0,9,44,8),sa(0,11,15,-7,0,24,38,3,0,9,46,8)],TAe=["duration","easing","delay"],xAe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},pce={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hK(e){return`${Math.round(e)}ms`}function kAe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function CAe(e){const t=$({},xAe,e.easing),n=$({},pce,e.duration);return $({getAutoHeightDuration:kAe,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return st(a,TAe),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:hK(s)} ${o} ${typeof l=="string"?l:hK(l)}`).join(",")}},e,{easing:t,duration:n})}const _Ae={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},AAe=_Ae,RAe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function lz(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=st(e,RAe);if(e.vars)throw new Error(bg(18));const o=gAe(r),l=Hk(e);let c=Po(l,{mixins:lAe(l.breakpoints,n),palette:o,shadows:wAe.slice(),typography:vAe(o,a),transitions:CAe(i),zIndex:$({},AAe)});return c=Po(c,s),c=t.reduce((d,h)=>Po(d,h),c),c.unstable_sxConfig=$({},qD,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(h){return jk({sx:h,theme:this})},c}const IAe=lz(),KD=IAe;function ji(){const e=aE(KD);return e[Hb]||e}function Rt({props:e,name:t}){return sz({props:e,name:t,defaultTheme:KD,themeId:Hb})}const Bs=e=>p2(e)&&e!=="classes",uz=p2,Ne=uce({themeId:Hb,defaultTheme:KD,rootShouldForwardProp:Bs}),DAe=["theme"];function NAe(e){let{theme:t}=e,n=st(e,DAe);const r=t[Hb];return D.jsx(Y_e,$({},n,{themeId:r?Hb:void 0,theme:r||t}))}const pK=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function PAe(e){return Ut("MuiSvgIcon",e)}zt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const MAe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],LAe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${yt(t)}`,`fontSize${yt(n)}`]};return $t(i,PAe,r)},$Ae=Ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${yt(n.color)}`],t[`fontSize${yt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,c,d,h,p,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),yg=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,b=st(r,MAe),v=P.isValidElement(i)&&i.type==="svg",S=$({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:v}),w={};d||(w.viewBox=p);const T=LAe(S);return D.jsxs($Ae,$({as:o,className:gt(T.root,a),focusable:"false",color:c,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},w,b,v&&i.props,{ownerState:S,children:[v?i.props.children:i,h?D.jsx("title",{children:h}):null]}))});yg.muiName="SvgIcon";function ns(e,t){function n(r,i){return D.jsx(yg,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=yg.muiName,P.memo(P.forwardRef(n))}const FAe={configure:e=>{ez.configure(e)}},BAe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:yt,createChainedFunction:bR,createSvgIcon:ns,debounce:iE,deprecatedPropType:aCe,isMuiElement:f2,ownerDocument:_i,ownerWindow:vd,requirePropFactory:sCe,setRef:bx,unstable_ClassNameGenerator:FAe,unstable_useEnhancedEffect:wa,unstable_useId:_f,unsupportedProp:lCe,useControlled:Ms,useEventCallback:on,useForkRef:rr,useIsFocusVisible:UD},Symbol.toStringTag,{value:"Module"}));function D9(e,t){return D9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},D9(e,t)}function cz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,D9(e,t)}function UAe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function zAe(e,t){e.classList?e.classList.add(t):UAe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function mK(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function jAe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=mK(e.className,t):e.setAttribute("class",mK(e.className&&e.className.baseVal||"",t))}const gK={disabled:!1},SR=gn.createContext(null);var mce=function(t){return t.scrollTop},UT="unmounted",nb="exited",rb="entering",zv="entered",N9="exiting",Tm=function(e){cz(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=nb,a.appearStatus=rb):l=zv:r.unmountOnExit||r.mountOnEnter?l=UT:l=nb,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===UT?{status:nb}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==rb&&s!==zv&&(a=rb):(s===rb||s===zv)&&(a=N9)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===rb){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:BT.findDOMNode(this);s&&mce(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nb&&this.setState({status:UT})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[BT.findDOMNode(this),o],c=l[0],d=l[1],h=this.getTimeouts(),p=o?h.appear:h.enter;if(!i&&!s||gK.disabled){this.safeSetState({status:zv},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:rb},function(){a.props.onEntering(c,d),a.onTransitionEnd(p,function(){a.safeSetState({status:zv},function(){a.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:BT.findDOMNode(this);if(!a||gK.disabled){this.safeSetState({status:nb},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:N9},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:nb},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:BT.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===UT)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=st(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gn.createElement(SR.Provider,{value:null},typeof s=="function"?s(i,o):gn.cloneElement(gn.Children.only(s),o))},t}(gn.Component);Tm.contextType=SR;Tm.propTypes={};function Av(){}Tm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Av,onEntering:Av,onEntered:Av,onExit:Av,onExiting:Av,onExited:Av};Tm.UNMOUNTED=UT;Tm.EXITED=nb;Tm.ENTERING=rb;Tm.ENTERED=zv;Tm.EXITING=N9;const Qk=Tm;var HAe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return zAe(t,r)})},w8=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return jAe(t,r)})},dz=function(e){cz(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),s=0;se.scrollTop;function vg(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function XAe(e){return Ut("MuiCollapse",e)}zt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const KAe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],JAe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return $t(r,XAe,n)},e4e=Ne("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),t4e=Ne("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),n4e=Ne("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),gce=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:c,in:d,onEnter:h,onEntered:p,onEntering:b,onExit:v,onExited:S,onExiting:w,orientation:T="vertical",style:x,timeout:k=pce.standard,TransitionComponent:C=Qk}=r,I=st(r,KAe),_=$({},r,{orientation:T,collapsedSize:o}),A=JAe(_),U=ji(),F=pb(),M=P.useRef(null),V=P.useRef(),Q=typeof o=="number"?`${o}px`:o,X=T==="horizontal",Y=X?"width":"height",W=P.useRef(null),ee=rr(n,W),J=he=>Pe=>{if(he){const Me=W.current;Pe===void 0?he(Me):he(Me,Pe)}},K=()=>M.current?M.current[X?"clientWidth":"clientHeight"]:0,ne=J((he,Pe)=>{M.current&&X&&(M.current.style.position="absolute"),he.style[Y]=Q,h&&h(he,Pe)}),j=J((he,Pe)=>{const Me=K();M.current&&X&&(M.current.style.position="");const{duration:Ze,easing:ot}=vg({style:x,timeout:k,easing:c},{mode:"enter"});if(k==="auto"){const Qe=U.transitions.getAutoHeightDuration(Me);he.style.transitionDuration=`${Qe}ms`,V.current=Qe}else he.style.transitionDuration=typeof Ze=="string"?Ze:`${Ze}ms`;he.style[Y]=`${Me}px`,he.style.transitionTimingFunction=ot,b&&b(he,Pe)}),Ce=J((he,Pe)=>{he.style[Y]="auto",p&&p(he,Pe)}),ye=J(he=>{he.style[Y]=`${K()}px`,v&&v(he)}),te=J(S),ve=J(he=>{const Pe=K(),{duration:Me,easing:Ze}=vg({style:x,timeout:k,easing:c},{mode:"exit"});if(k==="auto"){const ot=U.transitions.getAutoHeightDuration(Pe);he.style.transitionDuration=`${ot}ms`,V.current=ot}else he.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;he.style[Y]=Q,he.style.transitionTimingFunction=Ze,w&&w(he)}),Se=he=>{k==="auto"&&F.start(V.current||0,he),i&&i(W.current,he)};return D.jsx(C,$({in:d,onEnter:ne,onEntered:Ce,onEntering:j,onExit:ye,onExited:te,onExiting:ve,addEndListener:Se,nodeRef:W,timeout:k==="auto"?null:k},I,{children:(he,Pe)=>D.jsx(e4e,$({as:l,className:gt(A.root,s,{entered:A.entered,exited:!d&&Q==="0px"&&A.hidden}[he]),style:$({[X?"minWidth":"minHeight"]:Q},x),ownerState:$({},_,{state:he}),ref:ee},Pe,{children:D.jsx(t4e,{ownerState:$({},_,{state:he}),className:A.wrapper,ref:M,children:D.jsx(n4e,{ownerState:$({},_,{state:he}),className:A.wrapperInner,children:a})})}))}))});gce.muiSupportAuto=!0;const r4e=gce;function i4e(e){return Ut("MuiPaper",e)}zt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const a4e=["className","component","elevation","square","variant"],s4e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return $t(a,i4e,i)},o4e=Ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${In("#fff",pK(t.elevation))}, ${In("#fff",pK(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),l4e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,c=st(r,a4e),d=$({},r,{component:a,elevation:s,square:o,variant:l}),h=s4e(d);return D.jsx(o4e,$({as:a,ownerState:d,className:gt(h.root,i),ref:n},c))}),po=l4e;function jh(e){return typeof e=="string"}function zT(e,t,n){return e===void 0||jh(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function u4e(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const c4e={disableDefaultClasses:!1},d4e=P.createContext(c4e);function f4e(e){const{disableDefaultClasses:t}=P.useContext(d4e);return n=>t?"":e(n)}function m2(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function $g(e,t,n){return typeof e=="function"?e(t,n):e}function bK(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function h4e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const b=gt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),v=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=$({},n,i,r);return b.length>0&&(S.className=b),Object.keys(v).length>0&&(S.style=v),{props:S,internalRef:void 0}}const s=m2($({},i,r)),o=bK(r),l=bK(i),c=t(s),d=gt(c==null?void 0:c.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),h=$({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},c,n,l,o);return d.length>0&&(p.className=d),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:c.ref}}const p4e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=st(e,p4e),o=a?{}:$g(r,i),{props:l,internalRef:c}=h4e($({},s,{externalSlotProps:o})),d=rr(c,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return zT(n,$({},l,{ref:d}),i)}function m4e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:c}=e,[d,h]=P.useState(!1),p=gt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},v=gt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!o&&!d&&h(!0),P.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,c);return()=>{clearTimeout(S)}}},[l,o,c]),D.jsx("span",{className:p,style:b,children:D.jsx("span",{className:v})})}const Xc=zt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),g4e=["center","classes","className"];let JD=e=>e,yK,vK,OK,SK;const P9=550,b4e=80,y4e=Bk(yK||(yK=JD` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+a.message+` transform: scale(1); opacity: 0.3; } -`)),n4e=$k(hK||(hK=ZD` +`)),v4e=Bk(vK||(vK=JD` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+a.message+` 100% { opacity: 0; } -`)),r4e=$k(pK||(pK=ZD` +`)),O4e=Bk(OK||(OK=JD` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+a.message+` 100% { transform: scale(1); } -`)),i4e=Le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),a4e=Le(KAe,{name:"MuiTouchRipple",slot:"Ripple"})(mK||(mK=ZD` +`)),S4e=Ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),E4e=Ne(m4e,{name:"MuiTouchRipple",slot:"Ripple"})(SK||(SK=JD` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+a.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Xc.rippleVisible,t4e,M9,({theme:e})=>e.transitions.easing.easeInOut,Xc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xc.child,Xc.childLeaving,n4e,M9,({theme:e})=>e.transitions.easing.easeInOut,Xc.childPulsate,r4e,({theme:e})=>e.transitions.easing.easeInOut),s4e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=ut(r,JAe),[l,c]=M.useState([]),d=M.useRef(0),h=M.useRef(null);M.useEffect(()=>{h.current&&(h.current(),h.current=null)},[l]);const p=M.useRef(!1),b=hb(),v=M.useRef(null),S=M.useRef(null),w=M.useCallback(C=>{const{pulsate:I,rippleX:_,rippleY:A,rippleSize:U,cb:F}=C;c(P=>[...P,D.jsx(a4e,{classes:{ripple:bt(a.ripple,Xc.ripple),rippleVisible:bt(a.rippleVisible,Xc.rippleVisible),ripplePulsate:bt(a.ripplePulsate,Xc.ripplePulsate),child:bt(a.child,Xc.child),childLeaving:bt(a.childLeaving,Xc.childLeaving),childPulsate:bt(a.childPulsate,Xc.childPulsate)},timeout:M9,pulsate:I,rippleX:_,rippleY:A,rippleSize:U},d.current)]),d.current+=1,h.current=F},[a]),T=M.useCallback((C={},I={},_=()=>{})=>{const{pulsate:A=!1,center:U=i||I.pulsate,fakeElement:F=!1}=I;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const P=F?null:S.current,V=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Q,X,Y;if(U||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)Q=Math.round(V.width/2),X=Math.round(V.height/2);else{const{clientX:W,clientY:ee}=C.touches&&C.touches.length>0?C.touches[0]:C;Q=Math.round(W-V.left),X=Math.round(ee-V.top)}if(U)Y=Math.sqrt((2*V.width**2+V.height**2)/3),Y%2===0&&(Y+=1);else{const W=Math.max(Math.abs((P?P.clientWidth:0)-Q),Q)*2+2,ee=Math.max(Math.abs((P?P.clientHeight:0)-X),X)*2+2;Y=Math.sqrt(W**2+ee**2)}C!=null&&C.touches?v.current===null&&(v.current=()=>{w({pulsate:A,rippleX:Q,rippleY:X,rippleSize:Y,cb:_})},b.start(e4e,()=>{v.current&&(v.current(),v.current=null)})):w({pulsate:A,rippleX:Q,rippleY:X,rippleSize:Y,cb:_})},[i,w,b]),x=M.useCallback(()=>{T({},{pulsate:!0})},[T]),k=M.useCallback((C,I)=>{if(b.clear(),(C==null?void 0:C.type)==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{k(C,I)});return}v.current=null,c(_=>_.length>0?_.slice(1):_),h.current=I},[b]);return M.useImperativeHandle(n,()=>({pulsate:x,start:T,stop:k}),[x,T,k]),D.jsx(i4e,$({className:bt(Xc.root,a.root,s),ref:S},o,{children:D.jsx(pz,{component:null,exit:!0,children:l})}))}),o4e=s4e;function l4e(e){return qt("MuiButtonBase",e)}const u4e=Gt("MuiButtonBase",["root","disabled","focusVisible"]),c4e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],d4e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Wt({root:["root",t&&"disabled",n&&"focusVisible"]},l4e,i);return n&&r&&(s.root+=` ${r}`),s},f4e=Le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${u4e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),h4e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:b="a",onBlur:v,onClick:S,onContextMenu:w,onDragLeave:T,onFocus:x,onFocusVisible:k,onKeyDown:C,onKeyUp:I,onMouseDown:_,onMouseLeave:A,onMouseUp:U,onTouchEnd:F,onTouchMove:P,onTouchStart:V,tabIndex:Q=0,TouchRippleProps:X,touchRippleRef:Y,type:W}=r,ee=ut(r,c4e),J=M.useRef(null),K=M.useRef(null),ne=rr(K,Y),{isFocusVisibleRef:j,onFocus:Ce,onBlur:ye,ref:te}=MD(),[ve,Se]=M.useState(!1);c&&ve&&Se(!1),M.useImperativeHandle(i,()=>({focusVisible:()=>{Se(!0),J.current.focus()}}),[]);const[he,Ne]=M.useState(!1);M.useEffect(()=>{Ne(!0)},[]);const Pe=he&&!d&&!c;M.useEffect(()=>{ve&&p&&!d&&he&&K.current.pulsate()},[d,p,ve,he]);function Ze(je,Ot,Bt=h){return on(Xt=>(Ot&&Ot(Xt),!Bt&&K.current&&K.current[je](Xt),!0))}const st=Ze("start",_),Qe=Ze("stop",w),Je=Ze("stop",T),Ye=Ze("stop",U),nt=Ze("stop",je=>{ve&&je.preventDefault(),A&&A(je)}),tt=Ze("start",V),ht=Ze("stop",F),_t=Ze("stop",P),ot=Ze("stop",je=>{ye(je),j.current===!1&&Se(!1),v&&v(je)},!1),ge=on(je=>{J.current||(J.current=je.currentTarget),Ce(je),j.current===!0&&(Se(!0),k&&k(je)),x&&x(je)}),ue=()=>{const je=J.current;return l&&l!=="button"&&!(je.tagName==="A"&&je.href)},me=M.useRef(!1),We=on(je=>{p&&!me.current&&ve&&K.current&&je.key===" "&&(me.current=!0,K.current.stop(je,()=>{K.current.start(je)})),je.target===je.currentTarget&&ue()&&je.key===" "&&je.preventDefault(),C&&C(je),je.target===je.currentTarget&&ue()&&je.key==="Enter"&&!c&&(je.preventDefault(),S&&S(je))}),et=on(je=>{p&&je.key===" "&&K.current&&ve&&!je.defaultPrevented&&(me.current=!1,K.current.stop(je,()=>{K.current.pulsate(je)})),I&&I(je),S&&je.target===je.currentTarget&&ue()&&je.key===" "&&!je.defaultPrevented&&S(je)});let qe=l;qe==="button"&&(ee.href||ee.to)&&(qe=b);const pe={};qe==="button"?(pe.type=W===void 0?"button":W,pe.disabled=c):(!ee.href&&!ee.to&&(pe.role="button"),c&&(pe["aria-disabled"]=c));const Te=rr(n,te,J),Oe=$({},r,{centerRipple:a,component:l,disabled:c,disableRipple:d,disableTouchRipple:h,focusRipple:p,tabIndex:Q,focusVisible:ve}),De=d4e(Oe);return D.jsxs(f4e,$({as:qe,className:bt(De.root,o),ownerState:Oe,onBlur:ot,onClick:S,onContextMenu:Qe,onFocus:ge,onKeyDown:We,onKeyUp:et,onMouseDown:st,onMouseLeave:nt,onMouseUp:Ye,onDragLeave:Je,onTouchEnd:ht,onTouchMove:_t,onTouchStart:tt,ref:Te,tabIndex:c?-1:Q,type:W},pe,ee,{children:[s,Pe?D.jsx(o4e,$({ref:ne,center:a},X)):null]}))}),fc=h4e;function p4e(e){return qt("MuiIconButton",e)}const m4e=Gt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),g4e=["edge","children","className","color","disabled","disableFocusRipple","size"],b4e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${vt(r)}`,i&&`edge${vt(i)}`,`size${vt(a)}`]};return Wt(s,p4e,t)},y4e=Le(fc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${vt(n.color)}`],n.edge&&t[`edge${vt(n.edge)}`],t[`size${vt(n.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":$({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${m4e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),v4e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,h=ut(r,g4e),p=$({},r,{edge:i,color:o,disabled:l,disableFocusRipple:c,size:d}),b=b4e(p);return D.jsx(y4e,$({className:bt(b.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},h,{children:a}))}),ys=v4e,O4e=ts(D.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function S4e(e){return qt("MuiTypography",e)}Gt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const E4e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],w4e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${vt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Wt(o,S4e,s)},T4e=Le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${vt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),gK={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},x4e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},k4e=e=>x4e[e]||e,C4e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiTypography"}),i=k4e(r.color),a=WD($({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:h=!1,variant:p="body1",variantMapping:b=gK}=a,v=ut(a,E4e),S=$({},a,{align:s,color:i,className:o,component:l,gutterBottom:c,noWrap:d,paragraph:h,variant:p,variantMapping:b}),w=l||(h?"p":b[p]||gK[p])||"span",T=w4e(S);return D.jsx(T4e,$({as:w,ref:n,ownerState:S,className:bt(T.root,o)},v))}),Xr=C4e;function _4e(e){return qt("MuiAppBar",e)}Gt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const A4e=["className","color","enableColorOnDark","position"],R4e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${vt(t)}`,`position${vt(n)}`]};return Wt(i,_4e,r)},c4=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,I4e=Le(po,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${vt(n.position)}`],t[`color${vt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:c4(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:c4(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:c4(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:c4(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),D4e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=ut(r,A4e),c=$({},r,{color:a,position:o,enableColorOnDark:s}),d=R4e(c);return D.jsx(I4e,$({square:!0,component:"header",ownerState:c,elevation:4,className:bt(d.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))}),nce=D4e,rce="base";function N4e(e){return`${rce}--${e}`}function P4e(e,t){return`${rce}-${e}-${t}`}function ice(e,t){const n=jue[t];return n?N4e(n):P4e(e,t)}function M4e(e,t){const n={};return t.forEach(r=>{n[r]=ice(e,r)}),n}function bK(e){return e.substring(2).toLowerCase()}function L4e(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=rr(t.ref,o),h=on(v=>{const S=c.current;c.current=!1;const w=_i(o.current);if(!l.current||!o.current||"clientX"in v&&L4e(v,w))return;if(s.current){s.current=!1;return}let T;v.composedPath?T=v.composedPath().indexOf(o.current)>-1:T=!w.documentElement.contains(v.target)||o.current.contains(v.target),!T&&(n||!S)&&i(v)}),p=v=>S=>{c.current=!0;const w=t.props[v];w&&w(S)},b={ref:d};return a!==!1&&(b[a]=p(a)),M.useEffect(()=>{if(a!==!1){const v=bK(a),S=_i(o.current),w=()=>{s.current=!0};return S.addEventListener(v,h),S.addEventListener("touchmove",w),()=>{S.removeEventListener(v,h),S.removeEventListener("touchmove",w)}}},[h,a]),r!==!1&&(b[r]=p(r)),M.useEffect(()=>{if(r!==!1){const v=bK(r),S=_i(o.current);return S.addEventListener(v,h),()=>{S.removeEventListener(v,h)}}},[h,r]),D.jsx(M.Fragment,{children:M.cloneElement(t,b)})}const F4e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function B4e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function U4e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function z4e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||U4e(e))}function j4e(e){const t=[],n=[];return Array.from(e.querySelectorAll(F4e)).forEach((r,i)=>{const a=B4e(r);a===-1||!z4e(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function H4e(){return!0}function ace(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=j4e,isEnabled:s=H4e,open:o}=e,l=M.useRef(!1),c=M.useRef(null),d=M.useRef(null),h=M.useRef(null),p=M.useRef(null),b=M.useRef(!1),v=M.useRef(null),S=rr(t.ref,v),w=M.useRef(null);M.useEffect(()=>{!o||!v.current||(b.current=!n)},[n,o]),M.useEffect(()=>{if(!o||!v.current)return;const k=_i(v.current);return v.current.contains(k.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),b.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(l.current=!0,h.current.focus()),h.current=null)}},[o]),M.useEffect(()=>{if(!o||!v.current)return;const k=_i(v.current),C=A=>{w.current=A,!(r||!s()||A.key!=="Tab")&&k.activeElement===v.current&&A.shiftKey&&(l.current=!0,d.current&&d.current.focus())},I=()=>{const A=v.current;if(A===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(A.contains(k.activeElement)||r&&k.activeElement!==c.current&&k.activeElement!==d.current)return;if(k.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!b.current)return;let U=[];if((k.activeElement===c.current||k.activeElement===d.current)&&(U=a(v.current)),U.length>0){var F,P;const V=!!((F=w.current)!=null&&F.shiftKey&&((P=w.current)==null?void 0:P.key)==="Tab"),Q=U[0],X=U[U.length-1];typeof Q!="string"&&typeof X!="string"&&(V?X.focus():Q.focus())}else A.focus()};k.addEventListener("focusin",I),k.addEventListener("keydown",C,!0);const _=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(_),k.removeEventListener("focusin",I),k.removeEventListener("keydown",C,!0)}},[n,r,i,s,o,a]);const T=k=>{h.current===null&&(h.current=k.relatedTarget),b.current=!0,p.current=k.target;const C=t.props.onFocus;C&&C(k)},x=k=>{h.current===null&&(h.current=k.relatedTarget),b.current=!0};return D.jsxs(M.Fragment,{children:[D.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:c,"data-testid":"sentinelStart"}),M.cloneElement(t,{ref:S,onFocus:T}),D.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}var su="top",Sd="bottom",Ed="right",ou="left",gz="auto",Hk=[su,Sd,Ed,ou],xS="start",bx="end",V4e="clippingParents",sce="viewport",Jw="popper",W4e="reference",yK=Hk.reduce(function(e,t){return e.concat([t+"-"+xS,t+"-"+bx])},[]),oce=[].concat(Hk,[gz]).reduce(function(e,t){return e.concat([t,t+"-"+xS,t+"-"+bx])},[]),Q4e="beforeRead",Y4e="read",q4e="afterRead",G4e="beforeMain",Z4e="main",X4e="afterMain",K4e="beforeWrite",J4e="write",e3e="afterWrite",t3e=[Q4e,Y4e,q4e,G4e,Z4e,X4e,K4e,J4e,e3e];function Zh(e){return e?(e.nodeName||"").toLowerCase():null}function hc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wb(e){var t=hc(e).Element;return e instanceof t||e instanceof Element}function fd(e){var t=hc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bz(e){if(typeof ShadowRoot>"u")return!1;var t=hc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function n3e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!fd(a)||!Zh(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function r3e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,c){return l[c]="",l},{});!fd(i)||!Zh(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const i3e={name:"applyStyles",enabled:!0,phase:"write",fn:n3e,effect:r3e,requires:["computeStyles"]};function Hh(e){return e.split("-")[0]}var Mb=Math.max,gR=Math.min,kS=Math.round;function L9(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function lce(){return!/^((?!chrome|android).)*safari/i.test(L9())}function CS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&fd(e)&&(i=e.offsetWidth>0&&kS(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kS(r.height)/e.offsetHeight||1);var s=Wb(e)?hc(e):window,o=s.visualViewport,l=!lce()&&n,c=(r.left+(l&&o?o.offsetLeft:0))/i,d=(r.top+(l&&o?o.offsetTop:0))/a,h=r.width/i,p=r.height/a;return{width:h,height:p,top:d,right:c+h,bottom:d+p,left:c,x:c,y:d}}function yz(e){var t=CS(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function uce(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bz(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function lm(e){return hc(e).getComputedStyle(e)}function a3e(e){return["table","td","th"].indexOf(Zh(e))>=0}function Bg(e){return((Wb(e)?e.ownerDocument:e.document)||window.document).documentElement}function XD(e){return Zh(e)==="html"?e:e.assignedSlot||e.parentNode||(bz(e)?e.host:null)||Bg(e)}function vK(e){return!fd(e)||lm(e).position==="fixed"?null:e.offsetParent}function s3e(e){var t=/firefox/i.test(L9()),n=/Trident/i.test(L9());if(n&&fd(e)){var r=lm(e);if(r.position==="fixed")return null}var i=XD(e);for(bz(i)&&(i=i.host);fd(i)&&["html","body"].indexOf(Zh(i))<0;){var a=lm(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Vk(e){for(var t=hc(e),n=vK(e);n&&a3e(n)&&lm(n).position==="static";)n=vK(n);return n&&(Zh(n)==="html"||Zh(n)==="body"&&lm(n).position==="static")?t:n||s3e(e)||t}function vz(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mT(e,t,n){return Mb(e,gR(t,n))}function o3e(e,t,n){var r=mT(e,t,n);return r>n?n:r}function cce(){return{top:0,right:0,bottom:0,left:0}}function dce(e){return Object.assign({},cce(),e)}function fce(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var l3e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,dce(typeof t!="number"?t:fce(t,Hk))};function u3e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Hh(n.placement),l=vz(o),c=[ou,Ed].indexOf(o)>=0,d=c?"height":"width";if(!(!a||!s)){var h=l3e(i.padding,n),p=yz(a),b=l==="y"?su:ou,v=l==="y"?Sd:Ed,S=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],w=s[l]-n.rects.reference[l],T=Vk(a),x=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,k=S/2-w/2,C=h[b],I=x-p[d]-h[v],_=x/2-p[d]/2+k,A=mT(C,_,I),U=l;n.modifiersData[r]=(t={},t[U]=A,t.centerOffset=A-_,t)}}function c3e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||uce(t.elements.popper,i)&&(t.elements.arrow=i))}const d3e={name:"arrow",enabled:!0,phase:"main",fn:u3e,effect:c3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _S(e){return e.split("-")[1]}var f3e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h3e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:kS(n*i)/i||0,y:kS(r*i)/i||0}}function OK(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=s.x,b=p===void 0?0:p,v=s.y,S=v===void 0?0:v,w=typeof d=="function"?d({x:b,y:S}):{x:b,y:S};b=w.x,S=w.y;var T=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=ou,C=su,I=window;if(c){var _=Vk(n),A="clientHeight",U="clientWidth";if(_===hc(n)&&(_=Bg(n),lm(_).position!=="static"&&o==="absolute"&&(A="scrollHeight",U="scrollWidth")),_=_,i===su||(i===ou||i===Ed)&&a===bx){C=Sd;var F=h&&_===I&&I.visualViewport?I.visualViewport.height:_[A];S-=F-r.height,S*=l?1:-1}if(i===ou||(i===su||i===Sd)&&a===bx){k=Ed;var P=h&&_===I&&I.visualViewport?I.visualViewport.width:_[U];b-=P-r.width,b*=l?1:-1}}var V=Object.assign({position:o},c&&f3e),Q=d===!0?h3e({x:b,y:S},hc(n)):{x:b,y:S};if(b=Q.x,S=Q.y,l){var X;return Object.assign({},V,(X={},X[C]=x?"0":"",X[k]=T?"0":"",X.transform=(I.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",X))}return Object.assign({},V,(t={},t[C]=x?S+"px":"",t[k]=T?b+"px":"",t.transform="",t))}function p3e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,c={placement:Hh(t.placement),variation:_S(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OK(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OK(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const m3e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p3e,data:{}};var d4={passive:!0};function g3e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=hc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,d4)}),o&&l.addEventListener("resize",n.update,d4),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,d4)}),o&&l.removeEventListener("resize",n.update,d4)}}const b3e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:g3e,data:{}};var y3e={left:"right",right:"left",bottom:"top",top:"bottom"};function Y3(e){return e.replace(/left|right|bottom|top/g,function(t){return y3e[t]})}var v3e={start:"end",end:"start"};function SK(e){return e.replace(/start|end/g,function(t){return v3e[t]})}function Oz(e){var t=hc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sz(e){return CS(Bg(e)).left+Oz(e).scrollLeft}function O3e(e,t){var n=hc(e),r=Bg(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var c=lce();(c||!c&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+Sz(e),y:l}}function S3e(e){var t,n=Bg(e),r=Oz(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Mb(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Mb(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+Sz(e),l=-r.scrollTop;return lm(i||n).direction==="rtl"&&(o+=Mb(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function Ez(e){var t=lm(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function hce(e){return["html","body","#document"].indexOf(Zh(e))>=0?e.ownerDocument.body:fd(e)&&Ez(e)?e:hce(XD(e))}function gT(e,t){var n;t===void 0&&(t=[]);var r=hce(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=hc(r),s=i?[a].concat(a.visualViewport||[],Ez(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(gT(XD(s)))}function $9(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function E3e(e,t){var n=CS(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function EK(e,t,n){return t===sce?$9(O3e(e,n)):Wb(t)?E3e(t,n):$9(S3e(Bg(e)))}function w3e(e){var t=gT(XD(e)),n=["absolute","fixed"].indexOf(lm(e).position)>=0,r=n&&fd(e)?Vk(e):e;return Wb(r)?t.filter(function(i){return Wb(i)&&uce(i,r)&&Zh(i)!=="body"}):[]}function T3e(e,t,n,r){var i=t==="clippingParents"?w3e(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,c){var d=EK(e,c,r);return l.top=Mb(d.top,l.top),l.right=gR(d.right,l.right),l.bottom=gR(d.bottom,l.bottom),l.left=Mb(d.left,l.left),l},EK(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function pce(e){var t=e.reference,n=e.element,r=e.placement,i=r?Hh(r):null,a=r?_S(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case su:l={x:s,y:t.y-n.height};break;case Sd:l={x:s,y:t.y+t.height};break;case Ed:l={x:t.x+t.width,y:o};break;case ou:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var c=i?vz(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case xS:l[c]=l[c]-(t[d]/2-n[d]/2);break;case bx:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function yx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?V4e:o,c=n.rootBoundary,d=c===void 0?sce:c,h=n.elementContext,p=h===void 0?Jw:h,b=n.altBoundary,v=b===void 0?!1:b,S=n.padding,w=S===void 0?0:S,T=dce(typeof w!="number"?w:fce(w,Hk)),x=p===Jw?W4e:Jw,k=e.rects.popper,C=e.elements[v?x:p],I=T3e(Wb(C)?C:C.contextElement||Bg(e.elements.popper),l,d,s),_=CS(e.elements.reference),A=pce({reference:_,element:k,strategy:"absolute",placement:i}),U=$9(Object.assign({},k,A)),F=p===Jw?U:_,P={top:I.top-F.top+T.top,bottom:F.bottom-I.bottom+T.bottom,left:I.left-F.left+T.left,right:F.right-I.right+T.right},V=e.modifiersData.offset;if(p===Jw&&V){var Q=V[i];Object.keys(P).forEach(function(X){var Y=[Ed,Sd].indexOf(X)>=0?1:-1,W=[su,Sd].indexOf(X)>=0?"y":"x";P[X]+=Q[W]*Y})}return P}function x3e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?oce:l,d=_S(r),h=d?o?yK:yK.filter(function(v){return _S(v)===d}):Hk,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var b=p.reduce(function(v,S){return v[S]=yx(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[Hh(S)],v},{});return Object.keys(b).sort(function(v,S){return b[v]-b[S]})}function k3e(e){if(Hh(e)===gz)return[];var t=Y3(e);return[SK(e),t,SK(t)]}function C3e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,p=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,S=n.allowedAutoPlacements,w=t.options.placement,T=Hh(w),x=T===w,k=l||(x||!v?[Y3(w)]:k3e(w)),C=[w].concat(k).reduce(function(ve,Se){return ve.concat(Hh(Se)===gz?x3e(t,{placement:Se,boundary:d,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:S}):Se)},[]),I=t.rects.reference,_=t.rects.popper,A=new Map,U=!0,F=C[0],P=0;P=0,W=Y?"width":"height",ee=yx(t,{placement:V,boundary:d,rootBoundary:h,altBoundary:p,padding:c}),J=Y?X?Ed:ou:X?Sd:su;I[W]>_[W]&&(J=Y3(J));var K=Y3(J),ne=[];if(a&&ne.push(ee[Q]<=0),o&&ne.push(ee[J]<=0,ee[K]<=0),ne.every(function(ve){return ve})){F=V,U=!1;break}A.set(V,ne)}if(U)for(var j=v?3:1,Ce=function(Se){var he=C.find(function(Ne){var Pe=A.get(Ne);if(Pe)return Pe.slice(0,Se).every(function(Ze){return Ze})});if(he)return F=he,"break"},ye=j;ye>0;ye--){var te=Ce(ye);if(te==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const _3e={name:"flip",enabled:!0,phase:"main",fn:C3e,requiresIfExists:["offset"],data:{_skip:!1}};function wK(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function TK(e){return[su,Ed,Sd,ou].some(function(t){return e[t]>=0})}function A3e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=yx(t,{elementContext:"reference"}),o=yx(t,{altBoundary:!0}),l=wK(s,r),c=wK(o,i,a),d=TK(l),h=TK(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const R3e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:A3e};function I3e(e,t,n){var r=Hh(e),i=[ou,su].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[ou,Ed].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function D3e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=oce.reduce(function(d,h){return d[h]=I3e(h,t.rects,a),d},{}),o=s[t.placement],l=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const N3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:D3e};function P3e(e){var t=e.state,n=e.name;t.modifiersData[n]=pce({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const M3e={name:"popperOffsets",enabled:!0,phase:"read",fn:P3e,data:{}};function L3e(e){return e==="x"?"y":"x"}function $3e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,p=n.tether,b=p===void 0?!0:p,v=n.tetherOffset,S=v===void 0?0:v,w=yx(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),T=Hh(t.placement),x=_S(t.placement),k=!x,C=vz(T),I=L3e(C),_=t.modifiersData.popperOffsets,A=t.rects.reference,U=t.rects.popper,F=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,P=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(_){if(a){var X,Y=C==="y"?su:ou,W=C==="y"?Sd:Ed,ee=C==="y"?"height":"width",J=_[C],K=J+w[Y],ne=J-w[W],j=b?-U[ee]/2:0,Ce=x===xS?A[ee]:U[ee],ye=x===xS?-U[ee]:-A[ee],te=t.elements.arrow,ve=b&&te?yz(te):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cce(),he=Se[Y],Ne=Se[W],Pe=mT(0,A[ee],ve[ee]),Ze=k?A[ee]/2-j-Pe-he-P.mainAxis:Ce-Pe-he-P.mainAxis,st=k?-A[ee]/2+j+Pe+Ne+P.mainAxis:ye+Pe+Ne+P.mainAxis,Qe=t.elements.arrow&&Vk(t.elements.arrow),Je=Qe?C==="y"?Qe.clientTop||0:Qe.clientLeft||0:0,Ye=(X=V==null?void 0:V[C])!=null?X:0,nt=J+Ze-Ye-Je,tt=J+st-Ye,ht=mT(b?gR(K,nt):K,J,b?Mb(ne,tt):ne);_[C]=ht,Q[C]=ht-J}if(o){var _t,ot=C==="x"?su:ou,ge=C==="x"?Sd:Ed,ue=_[I],me=I==="y"?"height":"width",We=ue+w[ot],et=ue-w[ge],qe=[su,ou].indexOf(T)!==-1,pe=(_t=V==null?void 0:V[I])!=null?_t:0,Te=qe?We:ue-A[me]-U[me]-pe+P.altAxis,Oe=qe?ue+A[me]+U[me]-pe-P.altAxis:et,De=b&&qe?o3e(Te,ue,Oe):mT(b?Te:We,ue,b?Oe:et);_[I]=De,Q[I]=De-ue}t.modifiersData[r]=Q}}const F3e={name:"preventOverflow",enabled:!0,phase:"main",fn:$3e,requiresIfExists:["offset"]};function B3e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function U3e(e){return e===hc(e)||!fd(e)?Oz(e):B3e(e)}function z3e(e){var t=e.getBoundingClientRect(),n=kS(t.width)/e.offsetWidth||1,r=kS(t.height)/e.offsetHeight||1;return n!==1||r!==1}function j3e(e,t,n){n===void 0&&(n=!1);var r=fd(t),i=fd(t)&&z3e(t),a=Bg(t),s=CS(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Zh(t)!=="body"||Ez(a))&&(o=U3e(t)),fd(t)?(l=CS(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Sz(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function H3e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function V3e(e){var t=H3e(e);return t3e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function W3e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Q3e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var xK={placement:"bottom",modifiers:[],strategy:"absolute"};function kK(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(Z3e(i)||document.body)},[i,a]),Oa(()=>{if(s&&!a)return gx(n,s),()=>{gx(n,null)}},[n,s,a]),a){if(M.isValidElement(r)){const c={ref:l};return M.cloneElement(r,c)}return D.jsx(M.Fragment,{children:r})}return D.jsx(M.Fragment,{children:s&&sy.createPortal(r,s)})}),gce="Popper";function X3e(e){return ice(gce,e)}M4e(gce,["root"]);const K3e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],J3e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function e5e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function F9(e){return typeof e=="function"?e():e}function t5e(e){return e.nodeType!==void 0}const n5e=()=>Wt({root:["root"]},GAe(X3e)),r5e={},i5e=M.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:c,placement:d,popperOptions:h,popperRef:p,slotProps:b={},slots:v={},TransitionProps:S}=t,w=ut(t,K3e),T=M.useRef(null),x=rr(T,n),k=M.useRef(null),C=rr(k,p),I=M.useRef(C);Oa(()=>{I.current=C},[C]),M.useImperativeHandle(p,()=>k.current,[]);const _=e5e(d,s),[A,U]=M.useState(_),[F,P]=M.useState(F9(i));M.useEffect(()=>{k.current&&k.current.forceUpdate()}),M.useEffect(()=>{i&&P(F9(i))},[i]),Oa(()=>{if(!F||!c)return;const W=K=>{U(K.placement)};let ee=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{W(K)}}];l!=null&&(ee=ee.concat(l)),h&&h.modifiers!=null&&(ee=ee.concat(h.modifiers));const J=G3e(F,T.current,$({placement:_},h,{modifiers:ee}));return I.current(J),()=>{J.destroy(),I.current(null)}},[F,o,l,c,h,_]);const V={placement:A};S!==null&&(V.TransitionProps=S);const Q=n5e(),X=(r=v.root)!=null?r:"div",Y=mr({elementType:X,externalSlotProps:b.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:Q.root});return D.jsx(X,$({},Y,{children:typeof a=="function"?a(V):a}))}),a5e=M.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:p=r5e,popperRef:b,style:v,transition:S=!1,slotProps:w={},slots:T={}}=t,x=ut(t,J3e),[k,C]=M.useState(!0),I=()=>{C(!1)},_=()=>{C(!0)};if(!l&&!d&&(!S||k))return null;let A;if(a)A=a;else if(r){const P=F9(r);A=P&&t5e(P)?_i(P).body:_i(null).body}const U=!d&&l&&(!S||k)?"none":void 0,F=S?{in:d,onEnter:I,onExited:_}:void 0;return D.jsx(mce,{disablePortal:o,container:A,children:D.jsx(i5e,$({anchorEl:r,direction:s,disablePortal:o,modifiers:c,ref:n,open:S?!k:d,placement:h,popperOptions:p,popperRef:b,slotProps:w,slots:T},x,{style:$({position:"fixed",top:0,left:0,display:U},v),TransitionProps:F,children:i}))})});function s5e(e){const t=_i(e);return t.body===e?Od(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function bT(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function CK(e){return parseInt(Od(e).getComputedStyle(e).paddingRight,10)||0}function o5e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function _K(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!o5e(s);o&&l&&bT(s,i)})}function w8(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function l5e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(s5e(r)){const s=Uue(_i(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${CK(r)+s}px`;const o=_i(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${CK(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=_i(r).body;else{const s=r.parentElement,o=Od(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function u5e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class c5e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&bT(t.modalRef,!1);const i=u5e(n);_K(n,t.mount,t.modalRef,i,!0);const a=w8(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=w8(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=l5e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=w8(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&bT(t.modalRef,n),_K(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&bT(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function d5e(e){return typeof e=="function"?e():e}function f5e(e){return e?e.props.hasOwnProperty("in"):!1}const h5e=new c5e;function p5e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=h5e,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:c,open:d,rootRef:h}=e,p=M.useRef({}),b=M.useRef(null),v=M.useRef(null),S=rr(v,h),[w,T]=M.useState(!d),x=f5e(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const C=()=>_i(b.current),I=()=>(p.current.modalRef=v.current,p.current.mount=b.current,p.current),_=()=>{i.mount(I(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},A=on(()=>{const ee=d5e(t)||C().body;i.add(I(),ee),v.current&&_()}),U=M.useCallback(()=>i.isTopModal(I()),[i]),F=on(ee=>{b.current=ee,ee&&(d&&U()?_():v.current&&bT(v.current,k))}),P=M.useCallback(()=>{i.remove(I(),k)},[k,i]);M.useEffect(()=>()=>{P()},[P]),M.useEffect(()=>{d?A():(!x||!a)&&P()},[d,P,x,a,A]);const V=ee=>J=>{var K;(K=ee.onKeyDown)==null||K.call(ee,J),!(J.key!=="Escape"||J.which===229||!U())&&(n||(J.stopPropagation(),c&&c(J,"escapeKeyDown")))},Q=ee=>J=>{var K;(K=ee.onClick)==null||K.call(ee,J),J.target===J.currentTarget&&c&&c(J,"backdropClick")};return{getRootProps:(ee={})=>{const J=pT(e);delete J.onTransitionEnter,delete J.onTransitionExited;const K=$({},J,ee);return $({role:"presentation"},K,{onKeyDown:V(K),ref:S})},getBackdropProps:(ee={})=>{const J=ee;return $({"aria-hidden":!0},J,{onClick:Q(J),open:d})},getTransitionProps:()=>{const ee=()=>{T(!1),s&&s()},J=()=>{T(!0),o&&o(),a&&P()};return{onEnter:dR(ee,l==null?void 0:l.props.onEnter),onExited:dR(J,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:F,isTopModal:U,exited:w,hasTransition:x}}const m5e=2;function bce(e,t){return e-t}function AK(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},O5e=e=>e;let m4;function IK(){return m4===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?m4=CSS.supports("touch-action","none"):m4=!0),m4}function S5e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:c,onChange:d,onChangeCommitted:h,orientation:p="horizontal",rootRef:b,scale:v=O5e,step:S=1,tabIndex:w,value:T}=e,x=M.useRef(),[k,C]=M.useState(-1),[I,_]=M.useState(-1),[A,U]=M.useState(!1),F=M.useRef(0),[P,V]=Ls({controlled:T,default:n??l,name:"Slider"}),Q=d&&((pe,Te,Oe)=>{const De=pe.nativeEvent||pe,je=new De.constructor(De.type,De);Object.defineProperty(je,"target",{writable:!0,value:{value:Te,name:c}}),d(je,Te,Oe)}),X=Array.isArray(P);let Y=X?P.slice().sort(bce):[P];Y=Y.map(pe=>pe==null?l:Fv(pe,l,o));const W=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((pe,Te)=>({value:l+S*Te})):s||[],ee=W.map(pe=>pe.value),{isFocusVisibleRef:J,onBlur:K,onFocus:ne,ref:j}=MD(),[Ce,ye]=M.useState(-1),te=M.useRef(),ve=rr(j,te),Se=rr(b,ve),he=pe=>Te=>{var Oe;const De=Number(Te.currentTarget.getAttribute("data-index"));ne(Te),J.current===!0&&ye(De),_(De),pe==null||(Oe=pe.onFocus)==null||Oe.call(pe,Te)},Ne=pe=>Te=>{var Oe;K(Te),J.current===!1&&ye(-1),_(-1),pe==null||(Oe=pe.onBlur)==null||Oe.call(pe,Te)};Oa(()=>{if(r&&te.current.contains(document.activeElement)){var pe;(pe=document.activeElement)==null||pe.blur()}},[r]),r&&k!==-1&&C(-1),r&&Ce!==-1&&ye(-1);const Pe=pe=>Te=>{var Oe;(Oe=pe.onChange)==null||Oe.call(pe,Te);const De=Number(Te.currentTarget.getAttribute("data-index")),je=Y[De],Ot=ee.indexOf(je);let Bt=Te.target.valueAsNumber;if(W&&S==null){const Xt=ee[ee.length-1];Bt>Xt?Bt=Xt:Bt{const{current:Oe}=te,{width:De,height:je,bottom:Ot,left:Bt}=Oe.getBoundingClientRect();let Xt;st.indexOf("vertical")===0?Xt=(Ot-pe.y)/je:Xt=(pe.x-Bt)/De,st.indexOf("-reverse")!==-1&&(Xt=1-Xt);let St;if(St=g5e(Xt,l,o),S)St=y5e(St,S,l);else{const pt=AK(ee,St);St=ee[pt]}St=Fv(St,l,o);let Kt=0;if(X){Te?Kt=Ze.current:Kt=AK(Y,St),i&&(St=Fv(St,Y[Kt-1]||-1/0,Y[Kt+1]||1/0));const pt=St;St=RK({values:Y,newValue:St,index:Kt}),i&&Te||(Kt=St.indexOf(pt),Ze.current=Kt)}return{newValue:St,activeIndex:Kt}},Je=on(pe=>{const Te=f4(pe,x);if(!Te)return;if(F.current+=1,pe.type==="mousemove"&&pe.buttons===0){Ye(pe);return}const{newValue:Oe,activeIndex:De}=Qe({finger:Te,move:!0});h4({sliderRef:te,activeIndex:De,setActive:C}),V(Oe),!A&&F.current>m5e&&U(!0),Q&&!p4(Oe,P)&&Q(pe,Oe,De)}),Ye=on(pe=>{const Te=f4(pe,x);if(U(!1),!Te)return;const{newValue:Oe}=Qe({finger:Te,move:!0});C(-1),pe.type==="touchend"&&_(-1),h&&h(pe,Oe),x.current=void 0,tt()}),nt=on(pe=>{if(r)return;IK()||pe.preventDefault();const Te=pe.changedTouches[0];Te!=null&&(x.current=Te.identifier);const Oe=f4(pe,x);if(Oe!==!1){const{newValue:je,activeIndex:Ot}=Qe({finger:Oe});h4({sliderRef:te,activeIndex:Ot,setActive:C}),V(je),Q&&!p4(je,P)&&Q(pe,je,Ot)}F.current=0;const De=_i(te.current);De.addEventListener("touchmove",Je,{passive:!0}),De.addEventListener("touchend",Ye,{passive:!0})}),tt=M.useCallback(()=>{const pe=_i(te.current);pe.removeEventListener("mousemove",Je),pe.removeEventListener("mouseup",Ye),pe.removeEventListener("touchmove",Je),pe.removeEventListener("touchend",Ye)},[Ye,Je]);M.useEffect(()=>{const{current:pe}=te;return pe.addEventListener("touchstart",nt,{passive:IK()}),()=>{pe.removeEventListener("touchstart",nt),tt()}},[tt,nt]),M.useEffect(()=>{r&&tt()},[r,tt]);const ht=pe=>Te=>{var Oe;if((Oe=pe.onMouseDown)==null||Oe.call(pe,Te),r||Te.defaultPrevented||Te.button!==0)return;Te.preventDefault();const De=f4(Te,x);if(De!==!1){const{newValue:Ot,activeIndex:Bt}=Qe({finger:De});h4({sliderRef:te,activeIndex:Bt,setActive:C}),V(Ot),Q&&!p4(Ot,P)&&Q(Te,Ot,Bt)}F.current=0;const je=_i(te.current);je.addEventListener("mousemove",Je,{passive:!0}),je.addEventListener("mouseup",Ye)},_t=bR(X?Y[0]:l,l,o),ot=bR(Y[Y.length-1],l,o)-_t,ge=(pe={})=>{const Te=pT(pe),Oe={onMouseDown:ht(Te||{})},De=$({},Te,Oe);return $({},pe,{ref:Se},De)},ue=pe=>Te=>{var Oe;(Oe=pe.onMouseOver)==null||Oe.call(pe,Te);const De=Number(Te.currentTarget.getAttribute("data-index"));_(De)},me=pe=>Te=>{var Oe;(Oe=pe.onMouseLeave)==null||Oe.call(pe,Te),_(-1)};return{active:k,axis:st,axisProps:v5e,dragging:A,focusedThumbIndex:Ce,getHiddenInputProps:(pe={})=>{var Te;const Oe=pT(pe),De={onChange:Pe(Oe||{}),onFocus:he(Oe||{}),onBlur:Ne(Oe||{})},je=$({},Oe,De);return $({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(o),"aria-valuemin":v(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Te=e.step)!=null?Te:void 0,disabled:r},pe,je,{style:$({},sCe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ge,getThumbProps:(pe={})=>{const Te=pT(pe),Oe={onMouseOver:ue(Te||{}),onMouseLeave:me(Te||{})};return $({},pe,Te,Oe)},marks:W,open:I,range:X,rootRef:Se,trackLeap:ot,trackOffset:_t,values:Y,getThumbStyle:pe=>({pointerEvents:k!==-1&&k!==pe?"none":void 0})}}const E5e=["onChange","maxRows","minRows","style","value"];function g4(e){return parseInt(e,10)||0}const w5e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DK(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const yce=M.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=ut(t,E5e),{current:c}=M.useRef(o!=null),d=M.useRef(null),h=rr(n,d),p=M.useRef(null),b=M.useRef(0),[v,S]=M.useState({outerHeightStyle:0}),w=M.useCallback(()=>{const C=d.current,_=Od(C).getComputedStyle(C);if(_.width==="0px")return{outerHeightStyle:0};const A=p.current;A.style.width=_.width,A.value=C.value||t.placeholder||"x",A.value.slice(-1)===` -`&&(A.value+=" ");const U=_.boxSizing,F=g4(_.paddingBottom)+g4(_.paddingTop),P=g4(_.borderBottomWidth)+g4(_.borderTopWidth),V=A.scrollHeight;A.value="x";const Q=A.scrollHeight;let X=V;a&&(X=Math.max(Number(a)*Q,X)),i&&(X=Math.min(Number(i)*Q,X)),X=Math.max(X,Q);const Y=X+(U==="border-box"?F+P:0),W=Math.abs(X-V)<=1;return{outerHeightStyle:Y,overflow:W}},[i,a,t.placeholder]),T=(C,I)=>{const{outerHeightStyle:_,overflow:A}=I;return b.current<20&&(_>0&&Math.abs((C.outerHeightStyle||0)-_)>1||C.overflow!==A)?(b.current+=1,{overflow:A,outerHeightStyle:_}):C},x=M.useCallback(()=>{const C=w();DK(C)||S(I=>T(I,C))},[w]);Oa(()=>{const C=()=>{const V=w();DK(V)||sy.flushSync(()=>{S(Q=>T(Q,V))})},I=()=>{b.current=0,C()};let _;const A=nE(I),U=d.current,F=Od(U);F.addEventListener("resize",A);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(I),P.observe(U)),()=>{A.clear(),cancelAnimationFrame(_),F.removeEventListener("resize",A),P&&P.disconnect()}},[w]),Oa(()=>{x()}),M.useEffect(()=>{b.current=0},[o]);const k=C=>{b.current=0,c||x(),r&&r(C)};return D.jsxs(M.Fragment,{children:[D.jsx("textarea",$({value:o,onChange:k,ref:h,rows:a,style:$({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},l)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},w5e.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function NK(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function T5e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:c})=>{let d=s?l.trim():l;n&&(d=d.toLowerCase()),t&&(d=NK(d));const h=d?o.filter(p=>{let b=(a||c)(p);return n&&(b=b.toLowerCase()),t&&(b=NK(b)),i==="start"?b.indexOf(d)===0:b.indexOf(d)>-1}):o;return typeof r=="number"?h.slice(0,r):h}}function T8(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function C5e(e){const{unstable_isActiveElementInListbox:t=k5e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:p=!1,disabled:b,disabledItemsFocusable:v=!1,disableListWrap:S=!1,filterOptions:w=x5e,filterSelectedOptions:T=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:C,getOptionLabel:I=it=>{var Ue;return(Ue=it.label)!=null?Ue:it},groupBy:_,handleHomeEndKeys:A=!e.freeSolo,id:U,includeInputInList:F=!1,inputValue:P,isOptionEqualToValue:V=(it,Ue)=>it===Ue,multiple:Q=!1,onChange:X,onClose:Y,onHighlightChange:W,onInputChange:ee,onOpen:J,open:K,openOnFocus:ne=!1,options:j,readOnly:Ce=!1,selectOnFocus:ye=!e.freeSolo,value:te}=e,ve=Cf(U);let Se=I;Se=it=>{const Ue=I(it);return typeof Ue!="string"?String(Ue):Ue};const he=M.useRef(!1),Ne=M.useRef(!0),Pe=M.useRef(null),Ze=M.useRef(null),[st,Qe]=M.useState(null),[Je,Ye]=M.useState(-1),nt=i?0:-1,tt=M.useRef(nt),[ht,_t]=Ls({controlled:te,default:d,name:c}),[ot,ge]=Ls({controlled:P,default:"",name:c,state:"inputValue"}),[ue,me]=M.useState(!1),We=M.useCallback((it,Ue)=>{if(!(Q?ht.length!(T&&(Q?ht:[ht]).some(Ue=>Ue!==null&&V(it,Ue)))),{inputValue:Oe&&pe?"":ot,getOptionLabel:Se}):[],Ot=rCe({filteredOptions:je,value:ht,inputValue:ot});M.useEffect(()=>{const it=ht!==Ot.value;ue&&!it||x&&!it||We(null,ht)},[ht,We,ue,Ot.value,x]);const Bt=et&&je.length>0&&!Ce,Xt=on(it=>{it===-1?Pe.current.focus():st.querySelector(`[data-tag-index="${it}"]`).focus()});M.useEffect(()=>{Q&&Je>ht.length-1&&(Ye(-1),Xt(-1))},[ht,Q,Je,Xt]);function St(it,Ue){if(!Ze.current||it<0||it>=je.length)return-1;let ke=it;for(;;){const ln=Ze.current.querySelector(`[data-option-index="${ke}"]`),qn=v?!1:!ln||ln.disabled||ln.getAttribute("aria-disabled")==="true";if(ln&&ln.hasAttribute("tabindex")&&!qn)return ke;if(Ue==="next"?ke=(ke+1)%je.length:ke=(ke-1+je.length)%je.length,ke===it)return-1}}const Kt=on(({event:it,index:Ue,reason:ke="auto"})=>{if(tt.current=Ue,Ue===-1?Pe.current.removeAttribute("aria-activedescendant"):Pe.current.setAttribute("aria-activedescendant",`${ve}-option-${Ue}`),W&&W(it,Ue===-1?null:je[Ue],ke),!Ze.current)return;const ln=Ze.current.querySelector(`[role="option"].${n}-focused`);ln&&(ln.classList.remove(`${n}-focused`),ln.classList.remove(`${n}-focusVisible`));let qn=Ze.current;if(Ze.current.getAttribute("role")!=="listbox"&&(qn=Ze.current.parentElement.querySelector('[role="listbox"]')),!qn)return;if(Ue===-1){qn.scrollTop=0;return}const Jr=Ze.current.querySelector(`[data-option-index="${Ue}"]`);if(Jr&&(Jr.classList.add(`${n}-focused`),ke==="keyboard"&&Jr.classList.add(`${n}-focusVisible`),qn.scrollHeight>qn.clientHeight&&ke!=="mouse"&&ke!=="touch")){const Ie=Jr,Dn=qn.clientHeight+qn.scrollTop,Gn=Ie.offsetTop+Ie.offsetHeight;Gn>Dn?qn.scrollTop=Gn-qn.clientHeight:Ie.offsetTop-Ie.offsetHeight*(_?1.3:0){if(!De)return;const Jr=St((()=>{const Ie=je.length-1;if(Ue==="reset")return nt;if(Ue==="start")return 0;if(Ue==="end")return Ie;const Dn=tt.current+Ue;return Dn<0?Dn===-1&&F?-1:S&&tt.current!==-1||Math.abs(Ue)>1?0:Ie:Dn>Ie?Dn===Ie+1&&F?-1:S||Math.abs(Ue)>1?Ie:0:Dn})(),ke);if(Kt({index:Jr,reason:ln,event:it}),r&&Ue!=="reset")if(Jr===-1)Pe.current.value=ot;else{const Ie=Se(je[Jr]);Pe.current.value=Ie,Ie.toLowerCase().indexOf(ot.toLowerCase())===0&&ot.length>0&&Pe.current.setSelectionRange(ot.length,Ie.length)}}),At=()=>{const it=(Ue,ke)=>{const ln=Ue?Se(Ue):"",qn=ke?Se(ke):"";return ln===qn};if(tt.current!==-1&&Ot.filteredOptions&&Ot.filteredOptions.length!==je.length&&Ot.inputValue===ot&&(Q?ht.length===Ot.value.length&&Ot.value.every((Ue,ke)=>Se(ht[ke])===Se(Ue)):it(Ot.value,ht))){const Ue=Ot.filteredOptions[tt.current];if(Ue&&je.some(ln=>Se(ln)===Se(Ue)))return!0}return!1},en=M.useCallback(()=>{if(!De||At())return;const it=Q?ht[0]:ht;if(je.length===0||it==null){pt({diff:"reset"});return}if(Ze.current){if(it!=null){const Ue=je[tt.current];if(Q&&Ue&&T8(ht,ln=>V(Ue,ln))!==-1)return;const ke=T8(je,ln=>V(ln,it));ke===-1?pt({diff:"reset"}):Kt({index:ke});return}if(tt.current>=je.length-1){Kt({index:je.length-1});return}Kt({index:tt.current})}},[je.length,Q?!1:ht,T,pt,Kt,De,ot,Q]),In=on(it=>{gx(Ze,it),it&&en()});M.useEffect(()=>{en()},[en]);const Ln=it=>{et||(qe(!0),Te(!0),J&&J(it))},Qn=(it,Ue)=>{et&&(qe(!1),Y&&Y(it,Ue))},ur=(it,Ue,ke,ln)=>{if(Q){if(ht.length===Ue.length&&ht.every((qn,Jr)=>qn===Ue[Jr]))return}else if(ht===Ue)return;X&&X(it,Ue,ke,ln),_t(Ue)},Wr=M.useRef(!1),$e=(it,Ue,ke="selectOption",ln="options")=>{let qn=ke,Jr=Ue;if(Q){Jr=Array.isArray(ht)?ht.slice():[];const Ie=T8(Jr,Dn=>V(Ue,Dn));Ie===-1?Jr.push(Ue):ln!=="freeSolo"&&(Jr.splice(Ie,1),qn="removeOption")}We(it,Jr),ur(it,Jr,qn,{option:Ue}),!p&&(!it||!it.ctrlKey&&!it.metaKey)&&Qn(it,qn),(s===!0||s==="touch"&&Wr.current||s==="mouse"&&!Wr.current)&&Pe.current.blur()};function Ve(it,Ue){if(it===-1)return-1;let ke=it;for(;;){if(Ue==="next"&&ke===ht.length||Ue==="previous"&&ke===-1)return-1;const ln=st.querySelector(`[data-tag-index="${ke}"]`);if(!ln||!ln.hasAttribute("tabindex")||ln.disabled||ln.getAttribute("aria-disabled")==="true")ke+=Ue==="next"?1:-1;else return ke}}const ct=(it,Ue)=>{if(!Q)return;ot===""&&Qn(it,"toggleInput");let ke=Je;Je===-1?ot===""&&Ue==="previous"&&(ke=ht.length-1):(ke+=Ue==="next"?1:-1,ke<0&&(ke=0),ke===ht.length&&(ke=-1)),ke=Ve(ke,Ue),Ye(ke),Xt(ke)},Dt=it=>{he.current=!0,ge(""),ee&&ee(it,"","clear"),ur(it,Q?[]:null,"clear")},Qt=it=>Ue=>{if(it.onKeyDown&&it.onKeyDown(Ue),!Ue.defaultMuiPrevented&&(Je!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ue.key)===-1&&(Ye(-1),Xt(-1)),Ue.which!==229))switch(Ue.key){case"Home":De&&A&&(Ue.preventDefault(),pt({diff:"start",direction:"next",reason:"keyboard",event:Ue}));break;case"End":De&&A&&(Ue.preventDefault(),pt({diff:"end",direction:"previous",reason:"keyboard",event:Ue}));break;case"PageUp":Ue.preventDefault(),pt({diff:-PK,direction:"previous",reason:"keyboard",event:Ue}),Ln(Ue);break;case"PageDown":Ue.preventDefault(),pt({diff:PK,direction:"next",reason:"keyboard",event:Ue}),Ln(Ue);break;case"ArrowDown":Ue.preventDefault(),pt({diff:1,direction:"next",reason:"keyboard",event:Ue}),Ln(Ue);break;case"ArrowUp":Ue.preventDefault(),pt({diff:-1,direction:"previous",reason:"keyboard",event:Ue}),Ln(Ue);break;case"ArrowLeft":ct(Ue,"previous");break;case"ArrowRight":ct(Ue,"next");break;case"Enter":if(tt.current!==-1&&De){const ke=je[tt.current],ln=k?k(ke):!1;if(Ue.preventDefault(),ln)return;$e(Ue,ke,"selectOption"),r&&Pe.current.setSelectionRange(Pe.current.value.length,Pe.current.value.length)}else x&&ot!==""&&Oe===!1&&(Q&&Ue.preventDefault(),$e(Ue,ot,"createOption","freeSolo"));break;case"Escape":De?(Ue.preventDefault(),Ue.stopPropagation(),Qn(Ue,"escape")):l&&(ot!==""||Q&&ht.length>0)&&(Ue.preventDefault(),Ue.stopPropagation(),Dt(Ue));break;case"Backspace":if(Q&&!Ce&&ot===""&&ht.length>0){const ke=Je===-1?ht.length-1:Je,ln=ht.slice();ln.splice(ke,1),ur(Ue,ln,"removeOption",{option:ht[ke]})}break;case"Delete":if(Q&&!Ce&&ot===""&&ht.length>0&&Je!==-1){const ke=Je,ln=ht.slice();ln.splice(ke,1),ur(Ue,ln,"removeOption",{option:ht[ke]})}break}},Fn=it=>{me(!0),ne&&!he.current&&Ln(it)},yn=it=>{if(t(Ze)){Pe.current.focus();return}me(!1),Ne.current=!0,he.current=!1,a&&tt.current!==-1&&De?$e(it,je[tt.current],"blur"):a&&x&&ot!==""?$e(it,ot,"blur","freeSolo"):o&&We(it,ht),Qn(it,"blur")},rn=it=>{const Ue=it.target.value;ot!==Ue&&(ge(Ue),Te(!1),ee&&ee(it,Ue,"input")),Ue===""?!h&&!Q&&ur(it,null,"clear"):Ln(it)},Zt=it=>{const Ue=Number(it.currentTarget.getAttribute("data-option-index"));tt.current!==Ue&&Kt({event:it,index:Ue,reason:"mouse"})},$n=it=>{Kt({event:it,index:Number(it.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Wr.current=!0},Ge=it=>{const Ue=Number(it.currentTarget.getAttribute("data-option-index"));$e(it,je[Ue],"selectOption"),Wr.current=!1},Ke=it=>Ue=>{const ke=ht.slice();ke.splice(it,1),ur(Ue,ke,"removeOption",{option:ht[it]})},dt=it=>{et?Qn(it,"toggleInput"):Ln(it)},Et=it=>{it.currentTarget.contains(it.target)&&it.target.getAttribute("id")!==ve&&it.preventDefault()},Jn=it=>{it.currentTarget.contains(it.target)&&(Pe.current.focus(),ye&&Ne.current&&Pe.current.selectionEnd-Pe.current.selectionStart===0&&Pe.current.select(),Ne.current=!1)},bn=it=>{!b&&(ot===""||!et)&&dt(it)};let Yn=x&&ot.length>0;Yn=Yn||(Q?ht.length>0:ht!==null);let mi=je;return _&&(mi=je.reduce((it,Ue,ke)=>{const ln=_(Ue);return it.length>0&&it[it.length-1].group===ln?it[it.length-1].options.push(Ue):it.push({key:ke,index:ke,group:ln,options:[Ue]}),it},[])),b&&ue&&yn(),{getRootProps:(it={})=>$({"aria-owns":Bt?`${ve}-listbox`:null},it,{onKeyDown:Qt(it),onMouseDown:Et,onClick:Jn}),getInputLabelProps:()=>({id:`${ve}-label`,htmlFor:ve}),getInputProps:()=>({id:ve,value:ot,onBlur:yn,onFocus:Fn,onChange:rn,onMouseDown:bn,"aria-activedescendant":De?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Bt?`${ve}-listbox`:void 0,"aria-expanded":Bt,autoComplete:"off",ref:Pe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Dt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:dt}),getTagProps:({index:it})=>$({key:it,"data-tag-index":it,tabIndex:-1},!Ce&&{onDelete:Ke(it)}),getListboxProps:()=>({role:"listbox",id:`${ve}-listbox`,"aria-labelledby":`${ve}-label`,ref:In,onMouseDown:it=>{it.preventDefault()}}),getOptionProps:({index:it,option:Ue})=>{var ke;const ln=(Q?ht:[ht]).some(Jr=>Jr!=null&&V(Ue,Jr)),qn=k?k(Ue):!1;return{key:(ke=C==null?void 0:C(Ue))!=null?ke:Se(Ue),tabIndex:-1,role:"option",id:`${ve}-option-${it}`,onMouseMove:Zt,onClick:Ge,onTouchStart:$n,"data-option-index":it,"aria-disabled":qn,"aria-selected":ln}},id:ve,inputValue:ot,value:ht,dirty:Yn,expanded:De&&st,popupOpen:De,focused:ue||Je!==-1,anchorEl:st,setAnchorEl:Qe,focusedTag:Je,groupedOptions:mi}}const _5e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],A5e=Le(a5e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),R5e=M.forwardRef(function(t,n){var r;const i=VD(),a=Pt({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:c,container:d,disablePortal:h,keepMounted:p,modifiers:b,open:v,placement:S,popperOptions:w,popperRef:T,transition:x,slots:k,slotProps:C}=a,I=ut(a,_5e),_=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,A=$({anchorEl:s,container:d,disablePortal:h,keepMounted:p,modifiers:b,open:v,placement:S,popperOptions:w,popperRef:T,transition:x},I);return D.jsx(A5e,$({as:o,direction:i==null?void 0:i.direction,slots:{root:_},slotProps:C??c},A,{ref:n}))}),iE=R5e;function I5e(e){return qt("MuiListSubheader",e)}Gt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const D5e=["className","color","component","disableGutters","disableSticky","inset"],N5e=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${vt(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return Wt(s,I5e,t)},P5e=Le("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${vt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>$({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),vce=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:c=!1}=r,d=ut(r,D5e),h=$({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:c}),p=N5e(h);return D.jsx(P5e,$({as:s,className:bt(p.root,i),ref:n,ownerState:h},d))});vce.muiSkipListHighlight=!0;const M5e=vce,L5e=ts(D.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function $5e(e){return qt("MuiChip",e)}const F5e=Gt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),ti=F5e,B5e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],U5e=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,c={root:["root",l,n&&"disabled",`size${vt(r)}`,`color${vt(i)}`,o&&"clickable",o&&`clickableColor${vt(i)}`,s&&"deletable",s&&`deletableColor${vt(i)}`,`${l}${vt(i)}`],label:["label",`label${vt(r)}`],avatar:["avatar",`avatar${vt(r)}`,`avatarColor${vt(i)}`],icon:["icon",`icon${vt(r)}`,`iconColor${vt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${vt(r)}`,`deleteIconColor${vt(i)}`,`deleteIcon${vt(l)}Color${vt(i)}`]};return Wt(c,$5e,t)},z5e=Le("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${ti.avatar}`]:t.avatar},{[`& .${ti.avatar}`]:t[`avatar${vt(o)}`]},{[`& .${ti.avatar}`]:t[`avatarColor${vt(r)}`]},{[`& .${ti.icon}`]:t.icon},{[`& .${ti.icon}`]:t[`icon${vt(o)}`]},{[`& .${ti.icon}`]:t[`iconColor${vt(i)}`]},{[`& .${ti.deleteIcon}`]:t.deleteIcon},{[`& .${ti.deleteIcon}`]:t[`deleteIcon${vt(o)}`]},{[`& .${ti.deleteIcon}`]:t[`deleteIconColor${vt(r)}`]},{[`& .${ti.deleteIcon}`]:t[`deleteIcon${vt(l)}Color${vt(r)}`]},t.root,t[`size${vt(o)}`],t[`color${vt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${vt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${vt(r)}`],t[l],t[`${l}${vt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return $({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ti.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ti.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${ti.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ti.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ti.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ti.icon}`]:$({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&$({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${ti.deleteIcon}`]:$({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Bn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Bn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Bn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${ti.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${ti.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>$({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ti.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${ti.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>$({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ti.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ti.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ti.avatar}`]:{marginLeft:4},[`& .${ti.avatarSmall}`]:{marginLeft:2},[`& .${ti.icon}`]:{marginLeft:4},[`& .${ti.iconSmall}`]:{marginLeft:2},[`& .${ti.deleteIcon}`]:{marginRight:5},[`& .${ti.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Bn(e.palette[t.color].main,.7)}`,[`&.${ti.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${ti.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Bn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${ti.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Bn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),j5e=Le("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${vt(r)}`]]}})(({ownerState:e})=>$({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function MK(e){return e.key==="Backspace"||e.key==="Delete"}const H5e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:c,disabled:d=!1,icon:h,label:p,onClick:b,onDelete:v,onKeyDown:S,onKeyUp:w,size:T="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:C=!1}=r,I=ut(r,B5e),_=M.useRef(null),A=rr(_,n),U=ne=>{ne.stopPropagation(),v&&v(ne)},F=ne=>{ne.currentTarget===ne.target&&MK(ne)&&ne.preventDefault(),S&&S(ne)},P=ne=>{ne.currentTarget===ne.target&&(v&&MK(ne)?v(ne):ne.key==="Escape"&&_.current&&_.current.blur()),w&&w(ne)},V=s!==!1&&b?!0:s,Q=V||v?fc:l||"div",X=$({},r,{component:Q,disabled:d,size:T,color:o,iconColor:M.isValidElement(h)&&h.props.color||o,onDelete:!!v,clickable:V,variant:x}),Y=U5e(X),W=Q===fc?$({component:l||"div",focusVisibleClassName:Y.focusVisible},v&&{disableRipple:!0}):{};let ee=null;v&&(ee=c&&M.isValidElement(c)?M.cloneElement(c,{className:bt(c.props.className,Y.deleteIcon),onClick:U}):D.jsx(L5e,{className:bt(Y.deleteIcon),onClick:U}));let J=null;i&&M.isValidElement(i)&&(J=M.cloneElement(i,{className:bt(Y.avatar,i.props.className)}));let K=null;return h&&M.isValidElement(h)&&(K=M.cloneElement(h,{className:bt(Y.icon,h.props.className)})),D.jsxs(z5e,$({as:Q,className:bt(Y.root,a),disabled:V&&d?!0:void 0,onClick:b,onKeyDown:F,onKeyUp:P,ref:A,tabIndex:C&&d?-1:k,ownerState:X},W,I,{children:[J||K,D.jsx(j5e,{className:bt(Y.label),ownerState:X,children:p}),ee]}))}),wz=H5e;function Ug({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const V5e=M.createContext(void 0),KD=V5e;function Jh(){return M.useContext(KD)}function Oce(e){return D.jsx(s_e,$({},e,{defaultTheme:GD,themeId:jb}))}function LK(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function yR(e,t=!1){return e&&(LK(e.value)&&e.value!==""||t&&LK(e.defaultValue)&&e.defaultValue!=="")}function W5e(e){return e.startAdornment}function Q5e(e){return qt("MuiInputBase",e)}const Y5e=Gt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Gu=Y5e,q5e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],JD=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${vt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},eN=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},G5e=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:h,size:p,startAdornment:b,type:v}=e,S={root:["root",`color${vt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${vt(p)}`,d&&"multiline",b&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return Wt(S,Q5e,t)},tN=Le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:JD})(({theme:e,ownerState:t})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Gu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),nN=Le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:eN})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return $({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Gu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Z5e=D.jsx(Oce,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),X5e=M.forwardRef(function(t,n){var r;const i=Pt({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:c={},componentsProps:d={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:b,endAdornment:v,fullWidth:S=!1,id:w,inputComponent:T="input",inputProps:x={},inputRef:k,maxRows:C,minRows:I,multiline:_=!1,name:A,onBlur:U,onChange:F,onClick:P,onFocus:V,onKeyDown:Q,onKeyUp:X,placeholder:Y,readOnly:W,renderSuffix:ee,rows:J,slotProps:K={},slots:ne={},startAdornment:j,type:Ce="text",value:ye}=i,te=ut(i,q5e),ve=x.value!=null?x.value:ye,{current:Se}=M.useRef(ve!=null),he=M.useRef(),Ne=M.useCallback(De=>{},[]),Pe=rr(he,k,x.ref,Ne),[Ze,st]=M.useState(!1),Qe=Jh(),Je=Ug({props:i,muiFormControl:Qe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Je.focused=Qe?Qe.focused:Ze,M.useEffect(()=>{!Qe&&p&&Ze&&(st(!1),U&&U())},[Qe,p,Ze,U]);const Ye=Qe&&Qe.onFilled,nt=Qe&&Qe.onEmpty,tt=M.useCallback(De=>{yR(De)?Ye&&Ye():nt&&nt()},[Ye,nt]);Oa(()=>{Se&&tt({value:ve})},[ve,tt,Se]);const ht=De=>{if(Je.disabled){De.stopPropagation();return}V&&V(De),x.onFocus&&x.onFocus(De),Qe&&Qe.onFocus?Qe.onFocus(De):st(!0)},_t=De=>{U&&U(De),x.onBlur&&x.onBlur(De),Qe&&Qe.onBlur?Qe.onBlur(De):st(!1)},ot=(De,...je)=>{if(!Se){const Ot=De.target||he.current;if(Ot==null)throw new Error(yg(1));tt({value:Ot.value})}x.onChange&&x.onChange(De,...je),F&&F(De,...je)};M.useEffect(()=>{tt(he.current)},[]);const ge=De=>{he.current&&De.currentTarget===De.target&&he.current.focus(),P&&P(De)};let ue=T,me=x;_&&ue==="input"&&(J?me=$({type:void 0,minRows:J,maxRows:J},me):me=$({type:void 0,maxRows:C,minRows:I},me),ue=yce);const We=De=>{tt(De.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};M.useEffect(()=>{Qe&&Qe.setAdornedStart(!!j)},[Qe,j]);const et=$({},i,{color:Je.color||"primary",disabled:Je.disabled,endAdornment:v,error:Je.error,focused:Je.focused,formControl:Qe,fullWidth:S,hiddenLabel:Je.hiddenLabel,multiline:_,size:Je.size,startAdornment:j,type:Ce}),qe=G5e(et),pe=ne.root||c.Root||tN,Te=K.root||d.root||{},Oe=ne.input||c.Input||nN;return me=$({},me,(r=K.input)!=null?r:d.input),D.jsxs(M.Fragment,{children:[!b&&Z5e,D.jsxs(pe,$({},Te,!jh(pe)&&{ownerState:$({},et,Te.ownerState)},{ref:n,onClick:ge},te,{className:bt(qe.root,Te.className,l,W&&"MuiInputBase-readOnly"),children:[j,D.jsx(KD.Provider,{value:null,children:D.jsx(Oe,$({ownerState:et,"aria-invalid":Je.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:h,disabled:Je.disabled,id:w,onAnimationStart:We,name:A,placeholder:Y,readOnly:W,required:Je.required,rows:J,value:ve,onKeyDown:Q,onKeyUp:X,type:Ce},me,!jh(Oe)&&{as:ue,ownerState:$({},et,me.ownerState)},{ref:Pe,className:bt(qe.input,me.className,W&&"MuiInputBase-readOnly"),onBlur:_t,onChange:ot,onFocus:ht}))}),v,ee?ee($({},Je,{startAdornment:j})):null]}))]})}),Tz=X5e;function K5e(e){return qt("MuiInput",e)}const J5e=$({},Gu,Gt("MuiInput",["root","underline","input"])),I0=J5e;function eRe(e){return qt("MuiOutlinedInput",e)}const tRe=$({},Gu,Gt("MuiOutlinedInput",["root","notchedOutline","input"])),ph=tRe;function nRe(e){return qt("MuiFilledInput",e)}const rRe=$({},Gu,Gt("MuiFilledInput",["root","underline","input"])),Zu=rRe,Sce=ts(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function iRe(e){return qt("MuiAutocomplete",e)}const aRe=Gt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Pr=aRe;var $K,FK;const sRe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],oRe=["ref"],lRe=["key"],uRe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:c,size:d}=e,h={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${vt(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Wt(h,iRe,t)},cRe=Le("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${Pr.tag}`]:t.tag},{[`& .${Pr.tag}`]:t[`tagSize${vt(o)}`]},{[`& .${Pr.inputRoot}`]:t.inputRoot},{[`& .${Pr.input}`]:t.input},{[`& .${Pr.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>$({[`&.${Pr.focused} .${Pr.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Pr.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Pr.tag}`]:$({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Pr.inputRoot}`]:{flexWrap:"wrap",[`.${Pr.hasPopupIcon}&, .${Pr.hasClearIcon}&`]:{paddingRight:30},[`.${Pr.hasPopupIcon}.${Pr.hasClearIcon}&`]:{paddingRight:56},[`& .${Pr.input}`]:{width:0,minWidth:30}},[`& .${I0.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${I0.root}.${Gu.sizeSmall}`]:{[`& .${I0.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ph.root}`]:{padding:9,[`.${Pr.hasPopupIcon}&, .${Pr.hasClearIcon}&`]:{paddingRight:39},[`.${Pr.hasPopupIcon}.${Pr.hasClearIcon}&`]:{paddingRight:65},[`& .${Pr.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Pr.endAdornment}`]:{right:9}},[`& .${ph.root}.${Gu.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Pr.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Zu.root}`]:{paddingTop:19,paddingLeft:8,[`.${Pr.hasPopupIcon}&, .${Pr.hasClearIcon}&`]:{paddingRight:39},[`.${Pr.hasPopupIcon}.${Pr.hasClearIcon}&`]:{paddingRight:65},[`& .${Zu.input}`]:{padding:"7px 4px"},[`& .${Pr.endAdornment}`]:{right:9}},[`& .${Zu.root}.${Gu.sizeSmall}`]:{paddingBottom:1,[`& .${Zu.input}`]:{padding:"2.5px 4px"}},[`& .${Gu.hiddenLabel}`]:{paddingTop:8},[`& .${Zu.root}.${Gu.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Pr.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Zu.root}.${Gu.hiddenLabel}.${Gu.sizeSmall}`]:{[`& .${Pr.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Pr.input}`]:$({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),dRe=Le("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),fRe=Le(ys,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),hRe=Le(ys,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>$({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>$({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),pRe=Le(iE,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pr.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>$({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),mRe=Le(po,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>$({},e.typography.body1,{overflow:"auto"})),gRe=Le("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),bRe=Le("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),yRe=Le("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Pr.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Pr.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Pr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Pr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),vRe=Le(M5e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),ORe=Le("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Pr.option}`]:{paddingLeft:24}}),SRe=M.forwardRef(function(t,n){var r,i,a,s;const o=Pt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:d=!1,blurOnSelect:h=!1,ChipProps:p,className:b,clearIcon:v=$K||($K=D.jsx(O4e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:w=!1,clearText:T="Clear",closeText:x="Close",componentsProps:k={},defaultValue:C=o.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:_=!1,disabled:A=!1,disabledItemsFocusable:U=!1,disableListWrap:F=!1,disablePortal:P=!1,filterSelectedOptions:V=!1,forcePopupIcon:Q="auto",freeSolo:X=!1,fullWidth:Y=!1,getLimitTagsText:W=Ue=>`+${Ue}`,getOptionLabel:ee,groupBy:J,handleHomeEndKeys:K=!o.freeSolo,includeInputInList:ne=!1,limitTags:j=-1,ListboxComponent:Ce="ul",ListboxProps:ye,loading:te=!1,loadingText:ve="Loading…",multiple:Se=!1,noOptionsText:he="No options",openOnFocus:Ne=!1,openText:Pe="Open",PaperComponent:Ze=po,PopperComponent:st=iE,popupIcon:Qe=FK||(FK=D.jsx(Sce,{})),readOnly:Je=!1,renderGroup:Ye,renderInput:nt,renderOption:tt,renderTags:ht,selectOnFocus:_t=!o.freeSolo,size:ot="medium",slotProps:ge={}}=o,ue=ut(o,sRe),{getRootProps:me,getInputProps:We,getInputLabelProps:et,getPopupIndicatorProps:qe,getClearProps:pe,getTagProps:Te,getListboxProps:Oe,getOptionProps:De,value:je,dirty:Ot,expanded:Bt,id:Xt,popupOpen:St,focused:Kt,focusedTag:pt,anchorEl:At,setAnchorEl:en,inputValue:In,groupedOptions:Ln}=C5e($({},o,{componentName:"Autocomplete"})),Qn=!I&&!A&&Ot&&!Je,ur=(!X||Q===!0)&&Q!==!1,{onMouseDown:Wr}=We(),{ref:$e}=ye??{},Ve=Oe(),{ref:ct}=Ve,Dt=ut(Ve,oRe),Qt=rr(ct,$e),yn=ee||(Ue=>{var ke;return(ke=Ue.label)!=null?ke:Ue}),rn=$({},o,{disablePortal:P,expanded:Bt,focused:Kt,fullWidth:Y,getOptionLabel:yn,hasClearIcon:Qn,hasPopupIcon:ur,inputFocused:pt===-1,popupOpen:St,size:ot}),Zt=uRe(rn);let $n;if(Se&&je.length>0){const Ue=ke=>$({className:Zt.tag,disabled:A},Te(ke));ht?$n=ht(je,Ue,rn):$n=je.map((ke,ln)=>D.jsx(wz,$({label:yn(ke),size:ot},Ue({index:ln}),p)))}if(j>-1&&Array.isArray($n)){const Ue=$n.length-j;!Kt&&Ue>0&&($n=$n.splice(0,j),$n.push(D.jsx("span",{className:Zt.tag,children:W(Ue)},$n.length)))}const Ke=Ye||(Ue=>D.jsxs("li",{children:[D.jsx(vRe,{className:Zt.groupLabel,ownerState:rn,component:"div",children:Ue.group}),D.jsx(ORe,{className:Zt.groupUl,ownerState:rn,children:Ue.children})]},Ue.key)),Et=tt||((Ue,ke)=>{const{key:ln}=Ue,qn=ut(Ue,lRe);return D.jsx("li",$({},qn,{children:yn(ke)}),ln)}),Jn=(Ue,ke)=>{const ln=De({option:Ue,index:ke});return Et($({},ln,{className:Zt.option}),Ue,{selected:ln["aria-selected"],index:ke,inputValue:In},rn)},bn=(r=ge.clearIndicator)!=null?r:k.clearIndicator,Yn=(i=ge.paper)!=null?i:k.paper,mi=(a=ge.popper)!=null?a:k.popper,it=(s=ge.popupIndicator)!=null?s:k.popupIndicator;return D.jsxs(M.Fragment,{children:[D.jsx(cRe,$({ref:n,className:bt(Zt.root,b),ownerState:rn},me(ue),{children:nt({id:Xt,disabled:A,fullWidth:!0,size:ot==="small"?"small":void 0,InputLabelProps:et(),InputProps:$({ref:en,className:Zt.inputRoot,startAdornment:$n,onClick:Ue=>{Ue.target===Ue.currentTarget&&Wr(Ue)}},(Qn||ur)&&{endAdornment:D.jsxs(dRe,{className:Zt.endAdornment,ownerState:rn,children:[Qn?D.jsx(fRe,$({},pe(),{"aria-label":T,title:T,ownerState:rn},bn,{className:bt(Zt.clearIndicator,bn==null?void 0:bn.className),children:v})):null,ur?D.jsx(hRe,$({},qe(),{disabled:A,"aria-label":St?x:Pe,title:St?x:Pe,ownerState:rn},it,{className:bt(Zt.popupIndicator,it==null?void 0:it.className),children:Qe})):null]})}),inputProps:$({className:Zt.input,disabled:A,readOnly:Je},We())})})),At?D.jsx(pRe,$({as:st,disablePortal:P,style:{width:At?At.clientWidth:null},ownerState:rn,role:"presentation",anchorEl:At,open:St},mi,{className:bt(Zt.popper,mi==null?void 0:mi.className),children:D.jsxs(mRe,$({ownerState:rn,as:Ze},Yn,{className:bt(Zt.paper,Yn==null?void 0:Yn.className),children:[te&&Ln.length===0?D.jsx(gRe,{className:Zt.loading,ownerState:rn,children:ve}):null,Ln.length===0&&!X&&!te?D.jsx(bRe,{className:Zt.noOptions,ownerState:rn,role:"presentation",onMouseDown:Ue=>{Ue.preventDefault()},children:he}):null,Ln.length>0?D.jsx(yRe,$({as:Ce,className:Zt.listbox,ownerState:rn},Dt,ye,{ref:Qt,children:Ln.map((Ue,ke)=>J?Ke({key:Ue.key,group:Ue.group,children:Ue.options.map((ln,qn)=>Jn(ln,Ue.index+qn))}):Jn(Ue,ke))})):null]}))})):null]})}),ERe=SRe,wRe=ts(D.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function TRe(e){return qt("MuiAvatar",e)}const xRe=Gt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),kRe=xRe,CRe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],_Re=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Wt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},TRe,t)},ARe=Le("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:$({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:$({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),RRe=Le("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),IRe=Le(wRe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function DRe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=M.useState(!1);return M.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const NRe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",imgProps:l,sizes:c,src:d,srcSet:h,variant:p="circular"}=r,b=ut(r,CRe);let v=null;const S=DRe($({},l,{src:d,srcSet:h})),w=d||h,T=w&&S!=="error",x=$({},r,{colorDefault:!T,component:o,variant:p}),k=_Re(x);return T?v=D.jsx(RRe,$({alt:i,srcSet:h,src:d,sizes:c,ownerState:x,className:k.img},l)):a!=null&&a!==""&&typeof a!="boolean"?v=a:w&&i?v=i[0]:v=D.jsx(IRe,{ownerState:x,className:k.fallback}),D.jsx(ARe,$({as:o,ownerState:x,className:bt(k.root,s),ref:n},b,{children:v}))}),rN=NRe;function PRe(e){return qt("MuiAvatarGroup",e)}const MRe=Gt("MuiAvatarGroup",["root","avatar"]),LRe=MRe,$Re=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],BK={small:-16,medium:null},FRe=e=>{const{classes:t}=e;return Wt({root:["root"],avatar:["avatar"]},PRe,t)},BRe=Le("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>$({[`& .${LRe.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&BK[t.spacing]!==void 0?BK[t.spacing]:-t.spacing;return{[`& .${kRe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),URe=M.forwardRef(function(t,n){var r;const i=Pt({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:c=5,renderSurplus:d,slotProps:h={},spacing:p="medium",total:b,variant:v="circular"}=i,S=ut(i,$Re);let w=c<2?2:c;const T=$({},i,{max:c,spacing:p,component:o,variant:v}),x=FRe(T),k=M.Children.toArray(a).filter(F=>M.isValidElement(F)),C=b||k.length;C===w&&(w+=1),w=Math.min(C+1,w);const I=Math.min(k.length,w-1),_=Math.max(C-w,C-I,0),A=d?d(_):`+${_}`,U=(r=h.additionalAvatar)!=null?r:l.additionalAvatar;return D.jsxs(BRe,$({as:o,ownerState:T,className:bt(x.root,s),ref:n},S,{children:[_?D.jsx(rN,$({variant:v},U,{className:bt(x.avatar,U==null?void 0:U.className),children:A})):null,k.slice(0,I).reverse().map(F=>M.cloneElement(F,{className:bt(F.props.className,x.avatar),variant:F.props.variant||v}))]}))}),zRe=URe,jRe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],HRe={entering:{opacity:1},entered:{opacity:1}},VRe=M.forwardRef(function(t,n){const r=Ki(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:c,onEnter:d,onEntered:h,onEntering:p,onExit:b,onExited:v,onExiting:S,style:w,timeout:T=i,TransitionComponent:x=jk}=t,k=ut(t,jRe),C=M.useRef(null),I=rr(C,o.ref,n),_=Y=>W=>{if(Y){const ee=C.current;W===void 0?Y(ee):Y(ee,W)}},A=_(p),U=_((Y,W)=>{mz(Y);const ee=Og({style:w,timeout:T,easing:l},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("opacity",ee),Y.style.transition=r.transitions.create("opacity",ee),d&&d(Y,W)}),F=_(h),P=_(S),V=_(Y=>{const W=Og({style:w,timeout:T,easing:l},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("opacity",W),Y.style.transition=r.transitions.create("opacity",W),b&&b(Y)}),Q=_(v),X=Y=>{a&&a(C.current,Y)};return D.jsx(x,$({appear:s,in:c,nodeRef:C,onEnter:U,onEntered:F,onEntering:A,onExit:V,onExited:Q,onExiting:P,addEndListener:X,timeout:T},k,{children:(Y,W)=>M.cloneElement(o,$({style:$({opacity:0,visibility:Y==="exited"&&!c?"hidden":void 0},HRe[Y],w,o.props.style),ref:I},W))}))}),um=VRe;function WRe(e){return qt("MuiBackdrop",e)}Gt("MuiBackdrop",["root","invisible"]);const QRe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],YRe=e=>{const{classes:t,invisible:n}=e;return Wt({root:["root",n&&"invisible"]},WRe,t)},qRe=Le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),GRe=M.forwardRef(function(t,n){var r,i,a;const s=Pt({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:c="div",components:d={},componentsProps:h={},invisible:p=!1,open:b,slotProps:v={},slots:S={},TransitionComponent:w=um,transitionDuration:T}=s,x=ut(s,QRe),k=$({},s,{component:c,invisible:p}),C=YRe(k),I=(r=v.root)!=null?r:h.root;return D.jsx(w,$({in:b,timeout:T},x,{children:D.jsx(qRe,$({"aria-hidden":!0},I,{as:(i=(a=S.root)!=null?a:d.Root)!=null?i:c,className:bt(C.root,l,I==null?void 0:I.className),ownerState:$({},k,I==null?void 0:I.ownerState),classes:C,ref:n,children:o}))}))}),Wk=GRe,ZRe=Gt("MuiBox",["root"]),XRe=ZRe,KRe=lz(),JRe=c_e({themeId:jb,defaultTheme:KRe,defaultClassName:XRe.root,generateClassName:ez.generate}),bs=JRe;function eIe(e){return qt("MuiButton",e)}const tIe=Gt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),b4=tIe,nIe=M.createContext({}),rIe=nIe,iIe=M.createContext(void 0),aIe=iIe,sIe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],oIe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${vt(t)}`,`size${vt(i)}`,`${a}Size${vt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${vt(i)}`],endIcon:["endIcon",`iconSize${vt(i)}`]},l=Wt(o,eIe,s);return $({},s,l)},Ece=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),lIe=Le(fc,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${vt(n.color)}`],t[`size${vt(n.size)}`],t[`${n.variant}Size${vt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${b4.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${b4.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Bn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${b4.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${b4.disabled}`]:{boxShadow:"none"}}),uIe=Le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${vt(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Ece(e))),cIe=Le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${vt(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Ece(e))),dIe=M.forwardRef(function(t,n){const r=M.useContext(rIe),i=M.useContext(aIe),a=LD(r,t),s=Pt({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:c="button",className:d,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:S,fullWidth:w=!1,size:T="medium",startIcon:x,type:k,variant:C="text"}=s,I=ut(s,sIe),_=$({},s,{color:l,component:c,disabled:h,disableElevation:p,disableFocusRipple:b,fullWidth:w,size:T,type:k,variant:C}),A=oIe(_),U=x&&D.jsx(uIe,{className:A.startIcon,ownerState:_,children:x}),F=v&&D.jsx(cIe,{className:A.endIcon,ownerState:_,children:v}),P=i||"";return D.jsxs(lIe,$({ownerState:_,className:bt(r.className,A.root,d,P),component:c,disabled:h,focusRipple:!b,focusVisibleClassName:bt(A.focusVisible,S),ref:n,type:k},I,{classes:A,children:[U,o,F]}))}),lo=dIe;function fIe(e){return qt("MuiCard",e)}Gt("MuiCard",["root"]);const hIe=["className","raised"],pIe=e=>{const{classes:t}=e;return Wt({root:["root"]},fIe,t)},mIe=Le(po,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),gIe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=ut(r,hIe),o=$({},r,{raised:a}),l=pIe(o);return D.jsx(mIe,$({className:bt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))}),xz=gIe;function bIe(e){return qt("MuiCardActionArea",e)}const yIe=Gt("MuiCardActionArea",["root","focusVisible","focusHighlight"]),x8=yIe,vIe=["children","className","focusVisibleClassName"],OIe=e=>{const{classes:t}=e;return Wt({root:["root"],focusHighlight:["focusHighlight"]},bIe,t)},SIe=Le(fc,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${x8.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${x8.focusVisible} .${x8.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),EIe=Le("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),wIe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=ut(r,vIe),l=r,c=OIe(l);return D.jsxs(SIe,$({className:bt(c.root,a),focusVisibleClassName:bt(s,c.focusVisible),ref:n,ownerState:l},o,{children:[i,D.jsx(EIe,{className:c.focusHighlight,ownerState:l})]}))}),wce=wIe;function TIe(e){return qt("MuiCardContent",e)}Gt("MuiCardContent",["root"]);const xIe=["className","component"],kIe=e=>{const{classes:t}=e;return Wt({root:["root"]},TIe,t)},CIe=Le("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),_Ie=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=ut(r,xIe),o=$({},r,{component:a}),l=kIe(o);return D.jsx(CIe,$({as:a,className:bt(l.root,i),ownerState:o,ref:n},s))}),AIe=_Ie;function RIe(e){return qt("PrivateSwitchBase",e)}Gt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const IIe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],DIe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${vt(i)}`],input:["input"]};return Wt(a,RIe,t)},NIe=Le(fc)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),PIe=Le("input",{shouldForwardProp:Bs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),MIe=M.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:h,id:p,inputProps:b,inputRef:v,name:S,onBlur:w,onChange:T,onFocus:x,readOnly:k,required:C=!1,tabIndex:I,type:_,value:A}=t,U=ut(t,IIe),[F,P]=Ls({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),V=Jh(),Q=ne=>{x&&x(ne),V&&V.onFocus&&V.onFocus(ne)},X=ne=>{w&&w(ne),V&&V.onBlur&&V.onBlur(ne)},Y=ne=>{if(ne.nativeEvent.defaultPrevented)return;const j=ne.target.checked;P(j),T&&T(ne,j)};let W=l;V&&typeof W>"u"&&(W=V.disabled);const ee=_==="checkbox"||_==="radio",J=$({},t,{checked:F,disabled:W,disableFocusRipple:c,edge:d}),K=DIe(J);return D.jsxs(NIe,$({component:"span",className:bt(K.root,s),centerRipple:!0,focusRipple:!c,disabled:W,tabIndex:null,role:void 0,onFocus:Q,onBlur:X,ownerState:J,ref:n},U,{children:[D.jsx(PIe,$({autoFocus:r,checked:i,defaultChecked:o,className:K.input,disabled:W,id:ee?p:void 0,name:S,onChange:Y,readOnly:k,ref:v,required:C,ownerState:J,tabIndex:I,type:_},_==="checkbox"&&A===void 0?{}:{value:A},b)),F?a:h]}))}),kz=MIe,LIe=ts(D.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),$Ie=ts(D.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),FIe=ts(D.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function BIe(e){return qt("MuiCheckbox",e)}const UIe=Gt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),k8=UIe,zIe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],jIe=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${vt(r)}`,`size${vt(i)}`]},s=Wt(a,BIe,t);return $({},t,s)},HIe=Le(kz,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${vt(n.size)}`],n.color!=="default"&&t[`color${vt(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${k8.checked}, &.${k8.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${k8.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),VIe=D.jsx($Ie,{}),WIe=D.jsx(LIe,{}),QIe=D.jsx(FIe,{}),YIe=M.forwardRef(function(t,n){var r,i;const a=Pt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=VIe,color:o="primary",icon:l=WIe,indeterminate:c=!1,indeterminateIcon:d=QIe,inputProps:h,size:p="medium",className:b}=a,v=ut(a,zIe),S=c?d:l,w=c?d:s,T=$({},a,{color:o,indeterminate:c,size:p}),x=jIe(T);return D.jsx(HIe,$({type:"checkbox",inputProps:$({"data-indeterminate":c},h),icon:M.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(w,{fontSize:(i=w.props.fontSize)!=null?i:p}),ownerState:T,ref:n,className:bt(x.root,b)},v,{classes:x}))}),iN=YIe;function qIe(e){return qt("MuiCircularProgress",e)}Gt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const GIe=["className","color","disableShrink","size","style","thickness","value","variant"];let aN=e=>e,UK,zK,jK,HK;const h0=44,ZIe=$k(UK||(UK=aN` +`),Xc.rippleVisible,y4e,P9,({theme:e})=>e.transitions.easing.easeInOut,Xc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xc.child,Xc.childLeaving,v4e,P9,({theme:e})=>e.transitions.easing.easeInOut,Xc.childPulsate,O4e,({theme:e})=>e.transitions.easing.easeInOut),w4e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=st(r,g4e),[l,c]=P.useState([]),d=P.useRef(0),h=P.useRef(null);P.useEffect(()=>{h.current&&(h.current(),h.current=null)},[l]);const p=P.useRef(!1),b=pb(),v=P.useRef(null),S=P.useRef(null),w=P.useCallback(C=>{const{pulsate:I,rippleX:_,rippleY:A,rippleSize:U,cb:F}=C;c(M=>[...M,D.jsx(E4e,{classes:{ripple:gt(a.ripple,Xc.ripple),rippleVisible:gt(a.rippleVisible,Xc.rippleVisible),ripplePulsate:gt(a.ripplePulsate,Xc.ripplePulsate),child:gt(a.child,Xc.child),childLeaving:gt(a.childLeaving,Xc.childLeaving),childPulsate:gt(a.childPulsate,Xc.childPulsate)},timeout:P9,pulsate:I,rippleX:_,rippleY:A,rippleSize:U},d.current)]),d.current+=1,h.current=F},[a]),T=P.useCallback((C={},I={},_=()=>{})=>{const{pulsate:A=!1,center:U=i||I.pulsate,fakeElement:F=!1}=I;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const M=F?null:S.current,V=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Q,X,Y;if(U||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)Q=Math.round(V.width/2),X=Math.round(V.height/2);else{const{clientX:W,clientY:ee}=C.touches&&C.touches.length>0?C.touches[0]:C;Q=Math.round(W-V.left),X=Math.round(ee-V.top)}if(U)Y=Math.sqrt((2*V.width**2+V.height**2)/3),Y%2===0&&(Y+=1);else{const W=Math.max(Math.abs((M?M.clientWidth:0)-Q),Q)*2+2,ee=Math.max(Math.abs((M?M.clientHeight:0)-X),X)*2+2;Y=Math.sqrt(W**2+ee**2)}C!=null&&C.touches?v.current===null&&(v.current=()=>{w({pulsate:A,rippleX:Q,rippleY:X,rippleSize:Y,cb:_})},b.start(b4e,()=>{v.current&&(v.current(),v.current=null)})):w({pulsate:A,rippleX:Q,rippleY:X,rippleSize:Y,cb:_})},[i,w,b]),x=P.useCallback(()=>{T({},{pulsate:!0})},[T]),k=P.useCallback((C,I)=>{if(b.clear(),(C==null?void 0:C.type)==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{k(C,I)});return}v.current=null,c(_=>_.length>0?_.slice(1):_),h.current=I},[b]);return P.useImperativeHandle(n,()=>({pulsate:x,start:T,stop:k}),[x,T,k]),D.jsx(S4e,$({className:gt(Xc.root,a.root,s),ref:S},o,{children:D.jsx(pz,{component:null,exit:!0,children:l})}))}),T4e=w4e;function x4e(e){return Ut("MuiButtonBase",e)}const k4e=zt("MuiButtonBase",["root","disabled","focusVisible"]),C4e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],_4e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=$t({root:["root",t&&"disabled",n&&"focusVisible"]},x4e,i);return n&&r&&(s.root+=` ${r}`),s},A4e=Ne("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${k4e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),R4e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:b="a",onBlur:v,onClick:S,onContextMenu:w,onDragLeave:T,onFocus:x,onFocusVisible:k,onKeyDown:C,onKeyUp:I,onMouseDown:_,onMouseLeave:A,onMouseUp:U,onTouchEnd:F,onTouchMove:M,onTouchStart:V,tabIndex:Q=0,TouchRippleProps:X,touchRippleRef:Y,type:W}=r,ee=st(r,C4e),J=P.useRef(null),K=P.useRef(null),ne=rr(K,Y),{isFocusVisibleRef:j,onFocus:Ce,onBlur:ye,ref:te}=UD(),[ve,Se]=P.useState(!1);c&&ve&&Se(!1),P.useImperativeHandle(i,()=>({focusVisible:()=>{Se(!0),J.current.focus()}}),[]);const[he,Pe]=P.useState(!1);P.useEffect(()=>{Pe(!0)},[]);const Me=he&&!d&&!c;P.useEffect(()=>{ve&&p&&!d&&he&&K.current.pulsate()},[d,p,ve,he]);function Ze(je,Ot,jt=h){return on(Xt=>(Ot&&Ot(Xt),!jt&&K.current&&K.current[je](Xt),!0))}const ot=Ze("start",_),Qe=Ze("stop",w),Je=Ze("stop",T),Ye=Ze("stop",U),nt=Ze("stop",je=>{ve&&je.preventDefault(),A&&A(je)}),tt=Ze("start",V),ht=Ze("stop",F),_t=Ze("stop",M),lt=Ze("stop",je=>{ye(je),j.current===!1&&Se(!1),v&&v(je)},!1),ge=on(je=>{J.current||(J.current=je.currentTarget),Ce(je),j.current===!0&&(Se(!0),k&&k(je)),x&&x(je)}),ue=()=>{const je=J.current;return l&&l!=="button"&&!(je.tagName==="A"&&je.href)},me=P.useRef(!1),We=on(je=>{p&&!me.current&&ve&&K.current&&je.key===" "&&(me.current=!0,K.current.stop(je,()=>{K.current.start(je)})),je.target===je.currentTarget&&ue()&&je.key===" "&&je.preventDefault(),C&&C(je),je.target===je.currentTarget&&ue()&&je.key==="Enter"&&!c&&(je.preventDefault(),S&&S(je))}),et=on(je=>{p&&je.key===" "&&K.current&&ve&&!je.defaultPrevented&&(me.current=!1,K.current.stop(je,()=>{K.current.pulsate(je)})),I&&I(je),S&&je.target===je.currentTarget&&ue()&&je.key===" "&&!je.defaultPrevented&&S(je)});let qe=l;qe==="button"&&(ee.href||ee.to)&&(qe=b);const pe={};qe==="button"?(pe.type=W===void 0?"button":W,pe.disabled=c):(!ee.href&&!ee.to&&(pe.role="button"),c&&(pe["aria-disabled"]=c));const Te=rr(n,te,J),Oe=$({},r,{centerRipple:a,component:l,disabled:c,disableRipple:d,disableTouchRipple:h,focusRipple:p,tabIndex:Q,focusVisible:ve}),De=_4e(Oe);return D.jsxs(A4e,$({as:qe,className:gt(De.root,o),ownerState:Oe,onBlur:lt,onClick:S,onContextMenu:Qe,onFocus:ge,onKeyDown:We,onKeyUp:et,onMouseDown:ot,onMouseLeave:nt,onMouseUp:Ye,onDragLeave:Je,onTouchEnd:ht,onTouchMove:_t,onTouchStart:tt,ref:Te,tabIndex:c?-1:Q,type:W},pe,ee,{children:[s,Me?D.jsx(T4e,$({ref:ne,center:a},X)):null]}))}),fc=R4e;function I4e(e){return Ut("MuiIconButton",e)}const D4e=zt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),N4e=["edge","children","className","color","disabled","disableFocusRipple","size"],P4e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${yt(r)}`,i&&`edge${yt(i)}`,`size${yt(a)}`]};return $t(s,I4e,t)},M4e=Ne(fc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${yt(n.color)}`],n.edge&&t[`edge${yt(n.edge)}`],t[`size${yt(n.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":$({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${D4e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),L4e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,h=st(r,N4e),p=$({},r,{edge:i,color:o,disabled:l,disableFocusRipple:c,size:d}),b=P4e(p);return D.jsx(M4e,$({className:gt(b.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},h,{children:a}))}),$a=L4e,$4e=ns(D.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function F4e(e){return Ut("MuiTypography",e)}zt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const B4e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],U4e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${yt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return $t(o,F4e,s)},z4e=Ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${yt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),EK={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},j4e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},H4e=e=>j4e[e]||e,V4e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTypography"}),i=H4e(r.color),a=ZD($({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:h=!1,variant:p="body1",variantMapping:b=EK}=a,v=st(a,B4e),S=$({},a,{align:s,color:i,className:o,component:l,gutterBottom:c,noWrap:d,paragraph:h,variant:p,variantMapping:b}),w=l||(h?"p":b[p]||EK[p])||"span",T=U4e(S);return D.jsx(z4e,$({as:w,ref:n,ownerState:S,className:gt(T.root,o)},v))}),Ar=V4e;function W4e(e){return Ut("MuiAppBar",e)}zt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Q4e=["className","color","enableColorOnDark","position"],Y4e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${yt(t)}`,`position${yt(n)}`]};return $t(i,W4e,r)},g4=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,q4e=Ne(po,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${yt(n.position)}`],t[`color${yt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:g4(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:g4(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:g4(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:g4(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),G4e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=st(r,Q4e),c=$({},r,{color:a,position:o,enableColorOnDark:s}),d=Y4e(c);return D.jsx(q4e,$({square:!0,component:"header",ownerState:c,elevation:4,className:gt(d.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))}),bce=G4e,yce="base";function Z4e(e){return`${yce}--${e}`}function X4e(e,t){return`${yce}-${e}-${t}`}function vce(e,t){const n=rce[t];return n?Z4e(n):X4e(e,t)}function K4e(e,t){const n={};return t.forEach(r=>{n[r]=vce(e,r)}),n}function wK(e){return e.substring(2).toLowerCase()}function J4e(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=rr(t.ref,o),h=on(v=>{const S=c.current;c.current=!1;const w=_i(o.current);if(!l.current||!o.current||"clientX"in v&&J4e(v,w))return;if(s.current){s.current=!1;return}let T;v.composedPath?T=v.composedPath().indexOf(o.current)>-1:T=!w.documentElement.contains(v.target)||o.current.contains(v.target),!T&&(n||!S)&&i(v)}),p=v=>S=>{c.current=!0;const w=t.props[v];w&&w(S)},b={ref:d};return a!==!1&&(b[a]=p(a)),P.useEffect(()=>{if(a!==!1){const v=wK(a),S=_i(o.current),w=()=>{s.current=!0};return S.addEventListener(v,h),S.addEventListener("touchmove",w),()=>{S.removeEventListener(v,h),S.removeEventListener("touchmove",w)}}},[h,a]),r!==!1&&(b[r]=p(r)),P.useEffect(()=>{if(r!==!1){const v=wK(r),S=_i(o.current);return S.addEventListener(v,h),()=>{S.removeEventListener(v,h)}}},[h,r]),D.jsx(P.Fragment,{children:P.cloneElement(t,b)})}const t3e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function n3e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function r3e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function i3e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||r3e(e))}function a3e(e){const t=[],n=[];return Array.from(e.querySelectorAll(t3e)).forEach((r,i)=>{const a=n3e(r);a===-1||!i3e(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function s3e(){return!0}function Oce(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=a3e,isEnabled:s=s3e,open:o}=e,l=P.useRef(!1),c=P.useRef(null),d=P.useRef(null),h=P.useRef(null),p=P.useRef(null),b=P.useRef(!1),v=P.useRef(null),S=rr(t.ref,v),w=P.useRef(null);P.useEffect(()=>{!o||!v.current||(b.current=!n)},[n,o]),P.useEffect(()=>{if(!o||!v.current)return;const k=_i(v.current);return v.current.contains(k.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),b.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(l.current=!0,h.current.focus()),h.current=null)}},[o]),P.useEffect(()=>{if(!o||!v.current)return;const k=_i(v.current),C=A=>{w.current=A,!(r||!s()||A.key!=="Tab")&&k.activeElement===v.current&&A.shiftKey&&(l.current=!0,d.current&&d.current.focus())},I=()=>{const A=v.current;if(A===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(A.contains(k.activeElement)||r&&k.activeElement!==c.current&&k.activeElement!==d.current)return;if(k.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!b.current)return;let U=[];if((k.activeElement===c.current||k.activeElement===d.current)&&(U=a(v.current)),U.length>0){var F,M;const V=!!((F=w.current)!=null&&F.shiftKey&&((M=w.current)==null?void 0:M.key)==="Tab"),Q=U[0],X=U[U.length-1];typeof Q!="string"&&typeof X!="string"&&(V?X.focus():Q.focus())}else A.focus()};k.addEventListener("focusin",I),k.addEventListener("keydown",C,!0);const _=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(_),k.removeEventListener("focusin",I),k.removeEventListener("keydown",C,!0)}},[n,r,i,s,o,a]);const T=k=>{h.current===null&&(h.current=k.relatedTarget),b.current=!0,p.current=k.target;const C=t.props.onFocus;C&&C(k)},x=k=>{h.current===null&&(h.current=k.relatedTarget),b.current=!0};return D.jsxs(P.Fragment,{children:[D.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:c,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:S,onFocus:T}),D.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}var su="top",Od="bottom",Sd="right",ou="left",gz="auto",Yk=[su,Od,Sd,ou],CS="start",yx="end",o3e="clippingParents",Sce="viewport",eT="popper",l3e="reference",TK=Yk.reduce(function(e,t){return e.concat([t+"-"+CS,t+"-"+yx])},[]),Ece=[].concat(Yk,[gz]).reduce(function(e,t){return e.concat([t,t+"-"+CS,t+"-"+yx])},[]),u3e="beforeRead",c3e="read",d3e="afterRead",f3e="beforeMain",h3e="main",p3e="afterMain",m3e="beforeWrite",g3e="write",b3e="afterWrite",y3e=[u3e,c3e,d3e,f3e,h3e,p3e,m3e,g3e,b3e];function Zh(e){return e?(e.nodeName||"").toLowerCase():null}function hc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qb(e){var t=hc(e).Element;return e instanceof t||e instanceof Element}function fd(e){var t=hc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bz(e){if(typeof ShadowRoot>"u")return!1;var t=hc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function v3e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!fd(a)||!Zh(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function O3e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,c){return l[c]="",l},{});!fd(i)||!Zh(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const S3e={name:"applyStyles",enabled:!0,phase:"write",fn:v3e,effect:O3e,requires:["computeStyles"]};function Hh(e){return e.split("-")[0]}var Lb=Math.max,ER=Math.min,_S=Math.round;function M9(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wce(){return!/^((?!chrome|android).)*safari/i.test(M9())}function AS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&fd(e)&&(i=e.offsetWidth>0&&_S(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_S(r.height)/e.offsetHeight||1);var s=Qb(e)?hc(e):window,o=s.visualViewport,l=!wce()&&n,c=(r.left+(l&&o?o.offsetLeft:0))/i,d=(r.top+(l&&o?o.offsetTop:0))/a,h=r.width/i,p=r.height/a;return{width:h,height:p,top:d,right:c+h,bottom:d+p,left:c,x:c,y:d}}function yz(e){var t=AS(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Tce(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bz(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function lm(e){return hc(e).getComputedStyle(e)}function E3e(e){return["table","td","th"].indexOf(Zh(e))>=0}function Fg(e){return((Qb(e)?e.ownerDocument:e.document)||window.document).documentElement}function eN(e){return Zh(e)==="html"?e:e.assignedSlot||e.parentNode||(bz(e)?e.host:null)||Fg(e)}function xK(e){return!fd(e)||lm(e).position==="fixed"?null:e.offsetParent}function w3e(e){var t=/firefox/i.test(M9()),n=/Trident/i.test(M9());if(n&&fd(e)){var r=lm(e);if(r.position==="fixed")return null}var i=eN(e);for(bz(i)&&(i=i.host);fd(i)&&["html","body"].indexOf(Zh(i))<0;){var a=lm(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function qk(e){for(var t=hc(e),n=xK(e);n&&E3e(n)&&lm(n).position==="static";)n=xK(n);return n&&(Zh(n)==="html"||Zh(n)==="body"&&lm(n).position==="static")?t:n||w3e(e)||t}function vz(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function g2(e,t,n){return Lb(e,ER(t,n))}function T3e(e,t,n){var r=g2(e,t,n);return r>n?n:r}function xce(){return{top:0,right:0,bottom:0,left:0}}function kce(e){return Object.assign({},xce(),e)}function Cce(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var x3e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,kce(typeof t!="number"?t:Cce(t,Yk))};function k3e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Hh(n.placement),l=vz(o),c=[ou,Sd].indexOf(o)>=0,d=c?"height":"width";if(!(!a||!s)){var h=x3e(i.padding,n),p=yz(a),b=l==="y"?su:ou,v=l==="y"?Od:Sd,S=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],w=s[l]-n.rects.reference[l],T=qk(a),x=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,k=S/2-w/2,C=h[b],I=x-p[d]-h[v],_=x/2-p[d]/2+k,A=g2(C,_,I),U=l;n.modifiersData[r]=(t={},t[U]=A,t.centerOffset=A-_,t)}}function C3e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Tce(t.elements.popper,i)&&(t.elements.arrow=i))}const _3e={name:"arrow",enabled:!0,phase:"main",fn:k3e,effect:C3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function RS(e){return e.split("-")[1]}var A3e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function R3e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:_S(n*i)/i||0,y:_S(r*i)/i||0}}function kK(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=s.x,b=p===void 0?0:p,v=s.y,S=v===void 0?0:v,w=typeof d=="function"?d({x:b,y:S}):{x:b,y:S};b=w.x,S=w.y;var T=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=ou,C=su,I=window;if(c){var _=qk(n),A="clientHeight",U="clientWidth";if(_===hc(n)&&(_=Fg(n),lm(_).position!=="static"&&o==="absolute"&&(A="scrollHeight",U="scrollWidth")),_=_,i===su||(i===ou||i===Sd)&&a===yx){C=Od;var F=h&&_===I&&I.visualViewport?I.visualViewport.height:_[A];S-=F-r.height,S*=l?1:-1}if(i===ou||(i===su||i===Od)&&a===yx){k=Sd;var M=h&&_===I&&I.visualViewport?I.visualViewport.width:_[U];b-=M-r.width,b*=l?1:-1}}var V=Object.assign({position:o},c&&A3e),Q=d===!0?R3e({x:b,y:S},hc(n)):{x:b,y:S};if(b=Q.x,S=Q.y,l){var X;return Object.assign({},V,(X={},X[C]=x?"0":"",X[k]=T?"0":"",X.transform=(I.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",X))}return Object.assign({},V,(t={},t[C]=x?S+"px":"",t[k]=T?b+"px":"",t.transform="",t))}function I3e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,c={placement:Hh(t.placement),variation:RS(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kK(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kK(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const D3e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:I3e,data:{}};var b4={passive:!0};function N3e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=hc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,b4)}),o&&l.addEventListener("resize",n.update,b4),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,b4)}),o&&l.removeEventListener("resize",n.update,b4)}}const P3e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:N3e,data:{}};var M3e={left:"right",right:"left",bottom:"top",top:"bottom"};function J3(e){return e.replace(/left|right|bottom|top/g,function(t){return M3e[t]})}var L3e={start:"end",end:"start"};function CK(e){return e.replace(/start|end/g,function(t){return L3e[t]})}function Oz(e){var t=hc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sz(e){return AS(Fg(e)).left+Oz(e).scrollLeft}function $3e(e,t){var n=hc(e),r=Fg(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var c=wce();(c||!c&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+Sz(e),y:l}}function F3e(e){var t,n=Fg(e),r=Oz(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Lb(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Lb(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+Sz(e),l=-r.scrollTop;return lm(i||n).direction==="rtl"&&(o+=Lb(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function Ez(e){var t=lm(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _ce(e){return["html","body","#document"].indexOf(Zh(e))>=0?e.ownerDocument.body:fd(e)&&Ez(e)?e:_ce(eN(e))}function b2(e,t){var n;t===void 0&&(t=[]);var r=_ce(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=hc(r),s=i?[a].concat(a.visualViewport||[],Ez(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(b2(eN(s)))}function L9(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function B3e(e,t){var n=AS(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _K(e,t,n){return t===Sce?L9($3e(e,n)):Qb(t)?B3e(t,n):L9(F3e(Fg(e)))}function U3e(e){var t=b2(eN(e)),n=["absolute","fixed"].indexOf(lm(e).position)>=0,r=n&&fd(e)?qk(e):e;return Qb(r)?t.filter(function(i){return Qb(i)&&Tce(i,r)&&Zh(i)!=="body"}):[]}function z3e(e,t,n,r){var i=t==="clippingParents"?U3e(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,c){var d=_K(e,c,r);return l.top=Lb(d.top,l.top),l.right=ER(d.right,l.right),l.bottom=ER(d.bottom,l.bottom),l.left=Lb(d.left,l.left),l},_K(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ace(e){var t=e.reference,n=e.element,r=e.placement,i=r?Hh(r):null,a=r?RS(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case su:l={x:s,y:t.y-n.height};break;case Od:l={x:s,y:t.y+t.height};break;case Sd:l={x:t.x+t.width,y:o};break;case ou:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var c=i?vz(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case CS:l[c]=l[c]-(t[d]/2-n[d]/2);break;case yx:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function vx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?o3e:o,c=n.rootBoundary,d=c===void 0?Sce:c,h=n.elementContext,p=h===void 0?eT:h,b=n.altBoundary,v=b===void 0?!1:b,S=n.padding,w=S===void 0?0:S,T=kce(typeof w!="number"?w:Cce(w,Yk)),x=p===eT?l3e:eT,k=e.rects.popper,C=e.elements[v?x:p],I=z3e(Qb(C)?C:C.contextElement||Fg(e.elements.popper),l,d,s),_=AS(e.elements.reference),A=Ace({reference:_,element:k,strategy:"absolute",placement:i}),U=L9(Object.assign({},k,A)),F=p===eT?U:_,M={top:I.top-F.top+T.top,bottom:F.bottom-I.bottom+T.bottom,left:I.left-F.left+T.left,right:F.right-I.right+T.right},V=e.modifiersData.offset;if(p===eT&&V){var Q=V[i];Object.keys(M).forEach(function(X){var Y=[Sd,Od].indexOf(X)>=0?1:-1,W=[su,Od].indexOf(X)>=0?"y":"x";M[X]+=Q[W]*Y})}return M}function j3e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Ece:l,d=RS(r),h=d?o?TK:TK.filter(function(v){return RS(v)===d}):Yk,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var b=p.reduce(function(v,S){return v[S]=vx(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[Hh(S)],v},{});return Object.keys(b).sort(function(v,S){return b[v]-b[S]})}function H3e(e){if(Hh(e)===gz)return[];var t=J3(e);return[CK(e),t,CK(t)]}function V3e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,p=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,S=n.allowedAutoPlacements,w=t.options.placement,T=Hh(w),x=T===w,k=l||(x||!v?[J3(w)]:H3e(w)),C=[w].concat(k).reduce(function(ve,Se){return ve.concat(Hh(Se)===gz?j3e(t,{placement:Se,boundary:d,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:S}):Se)},[]),I=t.rects.reference,_=t.rects.popper,A=new Map,U=!0,F=C[0],M=0;M=0,W=Y?"width":"height",ee=vx(t,{placement:V,boundary:d,rootBoundary:h,altBoundary:p,padding:c}),J=Y?X?Sd:ou:X?Od:su;I[W]>_[W]&&(J=J3(J));var K=J3(J),ne=[];if(a&&ne.push(ee[Q]<=0),o&&ne.push(ee[J]<=0,ee[K]<=0),ne.every(function(ve){return ve})){F=V,U=!1;break}A.set(V,ne)}if(U)for(var j=v?3:1,Ce=function(Se){var he=C.find(function(Pe){var Me=A.get(Pe);if(Me)return Me.slice(0,Se).every(function(Ze){return Ze})});if(he)return F=he,"break"},ye=j;ye>0;ye--){var te=Ce(ye);if(te==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const W3e={name:"flip",enabled:!0,phase:"main",fn:V3e,requiresIfExists:["offset"],data:{_skip:!1}};function AK(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function RK(e){return[su,Sd,Od,ou].some(function(t){return e[t]>=0})}function Q3e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=vx(t,{elementContext:"reference"}),o=vx(t,{altBoundary:!0}),l=AK(s,r),c=AK(o,i,a),d=RK(l),h=RK(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const Y3e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Q3e};function q3e(e,t,n){var r=Hh(e),i=[ou,su].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[ou,Sd].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function G3e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=Ece.reduce(function(d,h){return d[h]=q3e(h,t.rects,a),d},{}),o=s[t.placement],l=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Z3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G3e};function X3e(e){var t=e.state,n=e.name;t.modifiersData[n]=Ace({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const K3e={name:"popperOffsets",enabled:!0,phase:"read",fn:X3e,data:{}};function J3e(e){return e==="x"?"y":"x"}function e5e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,p=n.tether,b=p===void 0?!0:p,v=n.tetherOffset,S=v===void 0?0:v,w=vx(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),T=Hh(t.placement),x=RS(t.placement),k=!x,C=vz(T),I=J3e(C),_=t.modifiersData.popperOffsets,A=t.rects.reference,U=t.rects.popper,F=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,M=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(_){if(a){var X,Y=C==="y"?su:ou,W=C==="y"?Od:Sd,ee=C==="y"?"height":"width",J=_[C],K=J+w[Y],ne=J-w[W],j=b?-U[ee]/2:0,Ce=x===CS?A[ee]:U[ee],ye=x===CS?-U[ee]:-A[ee],te=t.elements.arrow,ve=b&&te?yz(te):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xce(),he=Se[Y],Pe=Se[W],Me=g2(0,A[ee],ve[ee]),Ze=k?A[ee]/2-j-Me-he-M.mainAxis:Ce-Me-he-M.mainAxis,ot=k?-A[ee]/2+j+Me+Pe+M.mainAxis:ye+Me+Pe+M.mainAxis,Qe=t.elements.arrow&&qk(t.elements.arrow),Je=Qe?C==="y"?Qe.clientTop||0:Qe.clientLeft||0:0,Ye=(X=V==null?void 0:V[C])!=null?X:0,nt=J+Ze-Ye-Je,tt=J+ot-Ye,ht=g2(b?ER(K,nt):K,J,b?Lb(ne,tt):ne);_[C]=ht,Q[C]=ht-J}if(o){var _t,lt=C==="x"?su:ou,ge=C==="x"?Od:Sd,ue=_[I],me=I==="y"?"height":"width",We=ue+w[lt],et=ue-w[ge],qe=[su,ou].indexOf(T)!==-1,pe=(_t=V==null?void 0:V[I])!=null?_t:0,Te=qe?We:ue-A[me]-U[me]-pe+M.altAxis,Oe=qe?ue+A[me]+U[me]-pe-M.altAxis:et,De=b&&qe?T3e(Te,ue,Oe):g2(b?Te:We,ue,b?Oe:et);_[I]=De,Q[I]=De-ue}t.modifiersData[r]=Q}}const t5e={name:"preventOverflow",enabled:!0,phase:"main",fn:e5e,requiresIfExists:["offset"]};function n5e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function r5e(e){return e===hc(e)||!fd(e)?Oz(e):n5e(e)}function i5e(e){var t=e.getBoundingClientRect(),n=_S(t.width)/e.offsetWidth||1,r=_S(t.height)/e.offsetHeight||1;return n!==1||r!==1}function a5e(e,t,n){n===void 0&&(n=!1);var r=fd(t),i=fd(t)&&i5e(t),a=Fg(t),s=AS(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Zh(t)!=="body"||Ez(a))&&(o=r5e(t)),fd(t)?(l=AS(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Sz(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function s5e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function o5e(e){var t=s5e(e);return y3e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function l5e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function u5e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var IK={placement:"bottom",modifiers:[],strategy:"absolute"};function DK(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(h5e(i)||document.body)},[i,a]),wa(()=>{if(s&&!a)return bx(n,s),()=>{bx(n,null)}},[n,s,a]),a){if(P.isValidElement(r)){const c={ref:l};return P.cloneElement(r,c)}return D.jsx(P.Fragment,{children:r})}return D.jsx(P.Fragment,{children:s&&ly.createPortal(r,s)})}),Ice="Popper";function p5e(e){return vce(Ice,e)}K4e(Ice,["root"]);const m5e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],g5e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function b5e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function $9(e){return typeof e=="function"?e():e}function y5e(e){return e.nodeType!==void 0}const v5e=()=>$t({root:["root"]},f4e(p5e)),O5e={},S5e=P.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:c,placement:d,popperOptions:h,popperRef:p,slotProps:b={},slots:v={},TransitionProps:S}=t,w=st(t,m5e),T=P.useRef(null),x=rr(T,n),k=P.useRef(null),C=rr(k,p),I=P.useRef(C);wa(()=>{I.current=C},[C]),P.useImperativeHandle(p,()=>k.current,[]);const _=b5e(d,s),[A,U]=P.useState(_),[F,M]=P.useState($9(i));P.useEffect(()=>{k.current&&k.current.forceUpdate()}),P.useEffect(()=>{i&&M($9(i))},[i]),wa(()=>{if(!F||!c)return;const W=K=>{U(K.placement)};let ee=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{W(K)}}];l!=null&&(ee=ee.concat(l)),h&&h.modifiers!=null&&(ee=ee.concat(h.modifiers));const J=f5e(F,T.current,$({placement:_},h,{modifiers:ee}));return I.current(J),()=>{J.destroy(),I.current(null)}},[F,o,l,c,h,_]);const V={placement:A};S!==null&&(V.TransitionProps=S);const Q=v5e(),X=(r=v.root)!=null?r:"div",Y=gr({elementType:X,externalSlotProps:b.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:Q.root});return D.jsx(X,$({},Y,{children:typeof a=="function"?a(V):a}))}),E5e=P.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:p=O5e,popperRef:b,style:v,transition:S=!1,slotProps:w={},slots:T={}}=t,x=st(t,g5e),[k,C]=P.useState(!0),I=()=>{C(!1)},_=()=>{C(!0)};if(!l&&!d&&(!S||k))return null;let A;if(a)A=a;else if(r){const M=$9(r);A=M&&y5e(M)?_i(M).body:_i(null).body}const U=!d&&l&&(!S||k)?"none":void 0,F=S?{in:d,onEnter:I,onExited:_}:void 0;return D.jsx(Rce,{disablePortal:o,container:A,children:D.jsx(S5e,$({anchorEl:r,direction:s,disablePortal:o,modifiers:c,ref:n,open:S?!k:d,placement:h,popperOptions:p,popperRef:b,slotProps:w,slots:T},x,{style:$({position:"fixed",top:0,left:0,display:U},v),TransitionProps:F,children:i}))})});function w5e(e){const t=_i(e);return t.body===e?vd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function y2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function NK(e){return parseInt(vd(e).getComputedStyle(e).paddingRight,10)||0}function T5e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function PK(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!T5e(s);o&&l&&y2(s,i)})}function T8(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function x5e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(w5e(r)){const s=tce(_i(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${NK(r)+s}px`;const o=_i(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${NK(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=_i(r).body;else{const s=r.parentElement,o=vd(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function k5e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class C5e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&y2(t.modalRef,!1);const i=k5e(n);PK(n,t.mount,t.modalRef,i,!0);const a=T8(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=T8(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=x5e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=T8(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&y2(t.modalRef,n),PK(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&y2(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function _5e(e){return typeof e=="function"?e():e}function A5e(e){return e?e.props.hasOwnProperty("in"):!1}const R5e=new C5e;function I5e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=R5e,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:c,open:d,rootRef:h}=e,p=P.useRef({}),b=P.useRef(null),v=P.useRef(null),S=rr(v,h),[w,T]=P.useState(!d),x=A5e(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const C=()=>_i(b.current),I=()=>(p.current.modalRef=v.current,p.current.mount=b.current,p.current),_=()=>{i.mount(I(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},A=on(()=>{const ee=_5e(t)||C().body;i.add(I(),ee),v.current&&_()}),U=P.useCallback(()=>i.isTopModal(I()),[i]),F=on(ee=>{b.current=ee,ee&&(d&&U()?_():v.current&&y2(v.current,k))}),M=P.useCallback(()=>{i.remove(I(),k)},[k,i]);P.useEffect(()=>()=>{M()},[M]),P.useEffect(()=>{d?A():(!x||!a)&&M()},[d,M,x,a,A]);const V=ee=>J=>{var K;(K=ee.onKeyDown)==null||K.call(ee,J),!(J.key!=="Escape"||J.which===229||!U())&&(n||(J.stopPropagation(),c&&c(J,"escapeKeyDown")))},Q=ee=>J=>{var K;(K=ee.onClick)==null||K.call(ee,J),J.target===J.currentTarget&&c&&c(J,"backdropClick")};return{getRootProps:(ee={})=>{const J=m2(e);delete J.onTransitionEnter,delete J.onTransitionExited;const K=$({},J,ee);return $({role:"presentation"},K,{onKeyDown:V(K),ref:S})},getBackdropProps:(ee={})=>{const J=ee;return $({"aria-hidden":!0},J,{onClick:Q(J),open:d})},getTransitionProps:()=>{const ee=()=>{T(!1),s&&s()},J=()=>{T(!0),o&&o(),a&&M()};return{onEnter:bR(ee,l==null?void 0:l.props.onEnter),onExited:bR(J,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:F,isTopModal:U,exited:w,hasTransition:x}}const D5e=2;function Dce(e,t){return e-t}function MK(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},$5e=e=>e;let S4;function $K(){return S4===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?S4=CSS.supports("touch-action","none"):S4=!0),S4}function F5e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:c,onChange:d,onChangeCommitted:h,orientation:p="horizontal",rootRef:b,scale:v=$5e,step:S=1,tabIndex:w,value:T}=e,x=P.useRef(),[k,C]=P.useState(-1),[I,_]=P.useState(-1),[A,U]=P.useState(!1),F=P.useRef(0),[M,V]=Ms({controlled:T,default:n??l,name:"Slider"}),Q=d&&((pe,Te,Oe)=>{const De=pe.nativeEvent||pe,je=new De.constructor(De.type,De);Object.defineProperty(je,"target",{writable:!0,value:{value:Te,name:c}}),d(je,Te,Oe)}),X=Array.isArray(M);let Y=X?M.slice().sort(Dce):[M];Y=Y.map(pe=>pe==null?l:Uv(pe,l,o));const W=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((pe,Te)=>({value:l+S*Te})):s||[],ee=W.map(pe=>pe.value),{isFocusVisibleRef:J,onBlur:K,onFocus:ne,ref:j}=UD(),[Ce,ye]=P.useState(-1),te=P.useRef(),ve=rr(j,te),Se=rr(b,ve),he=pe=>Te=>{var Oe;const De=Number(Te.currentTarget.getAttribute("data-index"));ne(Te),J.current===!0&&ye(De),_(De),pe==null||(Oe=pe.onFocus)==null||Oe.call(pe,Te)},Pe=pe=>Te=>{var Oe;K(Te),J.current===!1&&ye(-1),_(-1),pe==null||(Oe=pe.onBlur)==null||Oe.call(pe,Te)};wa(()=>{if(r&&te.current.contains(document.activeElement)){var pe;(pe=document.activeElement)==null||pe.blur()}},[r]),r&&k!==-1&&C(-1),r&&Ce!==-1&&ye(-1);const Me=pe=>Te=>{var Oe;(Oe=pe.onChange)==null||Oe.call(pe,Te);const De=Number(Te.currentTarget.getAttribute("data-index")),je=Y[De],Ot=ee.indexOf(je);let jt=Te.target.valueAsNumber;if(W&&S==null){const Xt=ee[ee.length-1];jt>Xt?jt=Xt:jt{const{current:Oe}=te,{width:De,height:je,bottom:Ot,left:jt}=Oe.getBoundingClientRect();let Xt;ot.indexOf("vertical")===0?Xt=(Ot-pe.y)/je:Xt=(pe.x-jt)/De,ot.indexOf("-reverse")!==-1&&(Xt=1-Xt);let St;if(St=N5e(Xt,l,o),S)St=M5e(St,S,l);else{const pt=MK(ee,St);St=ee[pt]}St=Uv(St,l,o);let Kt=0;if(X){Te?Kt=Ze.current:Kt=MK(Y,St),i&&(St=Uv(St,Y[Kt-1]||-1/0,Y[Kt+1]||1/0));const pt=St;St=LK({values:Y,newValue:St,index:Kt}),i&&Te||(Kt=St.indexOf(pt),Ze.current=Kt)}return{newValue:St,activeIndex:Kt}},Je=on(pe=>{const Te=y4(pe,x);if(!Te)return;if(F.current+=1,pe.type==="mousemove"&&pe.buttons===0){Ye(pe);return}const{newValue:Oe,activeIndex:De}=Qe({finger:Te,move:!0});v4({sliderRef:te,activeIndex:De,setActive:C}),V(Oe),!A&&F.current>D5e&&U(!0),Q&&!O4(Oe,M)&&Q(pe,Oe,De)}),Ye=on(pe=>{const Te=y4(pe,x);if(U(!1),!Te)return;const{newValue:Oe}=Qe({finger:Te,move:!0});C(-1),pe.type==="touchend"&&_(-1),h&&h(pe,Oe),x.current=void 0,tt()}),nt=on(pe=>{if(r)return;$K()||pe.preventDefault();const Te=pe.changedTouches[0];Te!=null&&(x.current=Te.identifier);const Oe=y4(pe,x);if(Oe!==!1){const{newValue:je,activeIndex:Ot}=Qe({finger:Oe});v4({sliderRef:te,activeIndex:Ot,setActive:C}),V(je),Q&&!O4(je,M)&&Q(pe,je,Ot)}F.current=0;const De=_i(te.current);De.addEventListener("touchmove",Je,{passive:!0}),De.addEventListener("touchend",Ye,{passive:!0})}),tt=P.useCallback(()=>{const pe=_i(te.current);pe.removeEventListener("mousemove",Je),pe.removeEventListener("mouseup",Ye),pe.removeEventListener("touchmove",Je),pe.removeEventListener("touchend",Ye)},[Ye,Je]);P.useEffect(()=>{const{current:pe}=te;return pe.addEventListener("touchstart",nt,{passive:$K()}),()=>{pe.removeEventListener("touchstart",nt),tt()}},[tt,nt]),P.useEffect(()=>{r&&tt()},[r,tt]);const ht=pe=>Te=>{var Oe;if((Oe=pe.onMouseDown)==null||Oe.call(pe,Te),r||Te.defaultPrevented||Te.button!==0)return;Te.preventDefault();const De=y4(Te,x);if(De!==!1){const{newValue:Ot,activeIndex:jt}=Qe({finger:De});v4({sliderRef:te,activeIndex:jt,setActive:C}),V(Ot),Q&&!O4(Ot,M)&&Q(Te,Ot,jt)}F.current=0;const je=_i(te.current);je.addEventListener("mousemove",Je,{passive:!0}),je.addEventListener("mouseup",Ye)},_t=wR(X?Y[0]:l,l,o),lt=wR(Y[Y.length-1],l,o)-_t,ge=(pe={})=>{const Te=m2(pe),Oe={onMouseDown:ht(Te||{})},De=$({},Te,Oe);return $({},pe,{ref:Se},De)},ue=pe=>Te=>{var Oe;(Oe=pe.onMouseOver)==null||Oe.call(pe,Te);const De=Number(Te.currentTarget.getAttribute("data-index"));_(De)},me=pe=>Te=>{var Oe;(Oe=pe.onMouseLeave)==null||Oe.call(pe,Te),_(-1)};return{active:k,axis:ot,axisProps:L5e,dragging:A,focusedThumbIndex:Ce,getHiddenInputProps:(pe={})=>{var Te;const Oe=m2(pe),De={onChange:Me(Oe||{}),onFocus:he(Oe||{}),onBlur:Pe(Oe||{})},je=$({},Oe,De);return $({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(o),"aria-valuemin":v(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Te=e.step)!=null?Te:void 0,disabled:r},pe,je,{style:$({},wCe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ge,getThumbProps:(pe={})=>{const Te=m2(pe),Oe={onMouseOver:ue(Te||{}),onMouseLeave:me(Te||{})};return $({},pe,Te,Oe)},marks:W,open:I,range:X,rootRef:Se,trackLeap:lt,trackOffset:_t,values:Y,getThumbStyle:pe=>({pointerEvents:k!==-1&&k!==pe?"none":void 0})}}const B5e=["onChange","maxRows","minRows","style","value"];function E4(e){return parseInt(e,10)||0}const U5e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function FK(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Nce=P.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=st(t,B5e),{current:c}=P.useRef(o!=null),d=P.useRef(null),h=rr(n,d),p=P.useRef(null),b=P.useRef(0),[v,S]=P.useState({outerHeightStyle:0}),w=P.useCallback(()=>{const C=d.current,_=vd(C).getComputedStyle(C);if(_.width==="0px")return{outerHeightStyle:0};const A=p.current;A.style.width=_.width,A.value=C.value||t.placeholder||"x",A.value.slice(-1)===` +`&&(A.value+=" ");const U=_.boxSizing,F=E4(_.paddingBottom)+E4(_.paddingTop),M=E4(_.borderBottomWidth)+E4(_.borderTopWidth),V=A.scrollHeight;A.value="x";const Q=A.scrollHeight;let X=V;a&&(X=Math.max(Number(a)*Q,X)),i&&(X=Math.min(Number(i)*Q,X)),X=Math.max(X,Q);const Y=X+(U==="border-box"?F+M:0),W=Math.abs(X-V)<=1;return{outerHeightStyle:Y,overflow:W}},[i,a,t.placeholder]),T=(C,I)=>{const{outerHeightStyle:_,overflow:A}=I;return b.current<20&&(_>0&&Math.abs((C.outerHeightStyle||0)-_)>1||C.overflow!==A)?(b.current+=1,{overflow:A,outerHeightStyle:_}):C},x=P.useCallback(()=>{const C=w();FK(C)||S(I=>T(I,C))},[w]);wa(()=>{const C=()=>{const V=w();FK(V)||ly.flushSync(()=>{S(Q=>T(Q,V))})},I=()=>{b.current=0,C()};let _;const A=iE(I),U=d.current,F=vd(U);F.addEventListener("resize",A);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(I),M.observe(U)),()=>{A.clear(),cancelAnimationFrame(_),F.removeEventListener("resize",A),M&&M.disconnect()}},[w]),wa(()=>{x()}),P.useEffect(()=>{b.current=0},[o]);const k=C=>{b.current=0,c||x(),r&&r(C)};return D.jsxs(P.Fragment,{children:[D.jsx("textarea",$({value:o,onChange:k,ref:h,rows:a,style:$({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},l)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},U5e.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function BK(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function z5e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:c})=>{let d=s?l.trim():l;n&&(d=d.toLowerCase()),t&&(d=BK(d));const h=d?o.filter(p=>{let b=(a||c)(p);return n&&(b=b.toLowerCase()),t&&(b=BK(b)),i==="start"?b.indexOf(d)===0:b.indexOf(d)>-1}):o;return typeof r=="number"?h.slice(0,r):h}}function x8(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function V5e(e){const{unstable_isActiveElementInListbox:t=H5e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:p=!1,disabled:b,disabledItemsFocusable:v=!1,disableListWrap:S=!1,filterOptions:w=j5e,filterSelectedOptions:T=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:C,getOptionLabel:I=it=>{var Ue;return(Ue=it.label)!=null?Ue:it},groupBy:_,handleHomeEndKeys:A=!e.freeSolo,id:U,includeInputInList:F=!1,inputValue:M,isOptionEqualToValue:V=(it,Ue)=>it===Ue,multiple:Q=!1,onChange:X,onClose:Y,onHighlightChange:W,onInputChange:ee,onOpen:J,open:K,openOnFocus:ne=!1,options:j,readOnly:Ce=!1,selectOnFocus:ye=!e.freeSolo,value:te}=e,ve=_f(U);let Se=I;Se=it=>{const Ue=I(it);return typeof Ue!="string"?String(Ue):Ue};const he=P.useRef(!1),Pe=P.useRef(!0),Me=P.useRef(null),Ze=P.useRef(null),[ot,Qe]=P.useState(null),[Je,Ye]=P.useState(-1),nt=i?0:-1,tt=P.useRef(nt),[ht,_t]=Ms({controlled:te,default:d,name:c}),[lt,ge]=Ms({controlled:M,default:"",name:c,state:"inputValue"}),[ue,me]=P.useState(!1),We=P.useCallback((it,Ue)=>{if(!(Q?ht.length!(T&&(Q?ht:[ht]).some(Ue=>Ue!==null&&V(it,Ue)))),{inputValue:Oe&&pe?"":lt,getOptionLabel:Se}):[],Ot=OCe({filteredOptions:je,value:ht,inputValue:lt});P.useEffect(()=>{const it=ht!==Ot.value;ue&&!it||x&&!it||We(null,ht)},[ht,We,ue,Ot.value,x]);const jt=et&&je.length>0&&!Ce,Xt=on(it=>{it===-1?Me.current.focus():ot.querySelector(`[data-tag-index="${it}"]`).focus()});P.useEffect(()=>{Q&&Je>ht.length-1&&(Ye(-1),Xt(-1))},[ht,Q,Je,Xt]);function St(it,Ue){if(!Ze.current||it<0||it>=je.length)return-1;let ke=it;for(;;){const ln=Ze.current.querySelector(`[data-option-index="${ke}"]`),qn=v?!1:!ln||ln.disabled||ln.getAttribute("aria-disabled")==="true";if(ln&&ln.hasAttribute("tabindex")&&!qn)return ke;if(Ue==="next"?ke=(ke+1)%je.length:ke=(ke-1+je.length)%je.length,ke===it)return-1}}const Kt=on(({event:it,index:Ue,reason:ke="auto"})=>{if(tt.current=Ue,Ue===-1?Me.current.removeAttribute("aria-activedescendant"):Me.current.setAttribute("aria-activedescendant",`${ve}-option-${Ue}`),W&&W(it,Ue===-1?null:je[Ue],ke),!Ze.current)return;const ln=Ze.current.querySelector(`[role="option"].${n}-focused`);ln&&(ln.classList.remove(`${n}-focused`),ln.classList.remove(`${n}-focusVisible`));let qn=Ze.current;if(Ze.current.getAttribute("role")!=="listbox"&&(qn=Ze.current.parentElement.querySelector('[role="listbox"]')),!qn)return;if(Ue===-1){qn.scrollTop=0;return}const Jr=Ze.current.querySelector(`[data-option-index="${Ue}"]`);if(Jr&&(Jr.classList.add(`${n}-focused`),ke==="keyboard"&&Jr.classList.add(`${n}-focusVisible`),qn.scrollHeight>qn.clientHeight&&ke!=="mouse"&&ke!=="touch")){const Ie=Jr,Nn=qn.clientHeight+qn.scrollTop,Gn=Ie.offsetTop+Ie.offsetHeight;Gn>Nn?qn.scrollTop=Gn-qn.clientHeight:Ie.offsetTop-Ie.offsetHeight*(_?1.3:0){if(!De)return;const Jr=St((()=>{const Ie=je.length-1;if(Ue==="reset")return nt;if(Ue==="start")return 0;if(Ue==="end")return Ie;const Nn=tt.current+Ue;return Nn<0?Nn===-1&&F?-1:S&&tt.current!==-1||Math.abs(Ue)>1?0:Ie:Nn>Ie?Nn===Ie+1&&F?-1:S||Math.abs(Ue)>1?Ie:0:Nn})(),ke);if(Kt({index:Jr,reason:ln,event:it}),r&&Ue!=="reset")if(Jr===-1)Me.current.value=lt;else{const Ie=Se(je[Jr]);Me.current.value=Ie,Ie.toLowerCase().indexOf(lt.toLowerCase())===0&<.length>0&&Me.current.setSelectionRange(lt.length,Ie.length)}}),At=()=>{const it=(Ue,ke)=>{const ln=Ue?Se(Ue):"",qn=ke?Se(ke):"";return ln===qn};if(tt.current!==-1&&Ot.filteredOptions&&Ot.filteredOptions.length!==je.length&&Ot.inputValue===lt&&(Q?ht.length===Ot.value.length&&Ot.value.every((Ue,ke)=>Se(ht[ke])===Se(Ue)):it(Ot.value,ht))){const Ue=Ot.filteredOptions[tt.current];if(Ue&&je.some(ln=>Se(ln)===Se(Ue)))return!0}return!1},en=P.useCallback(()=>{if(!De||At())return;const it=Q?ht[0]:ht;if(je.length===0||it==null){pt({diff:"reset"});return}if(Ze.current){if(it!=null){const Ue=je[tt.current];if(Q&&Ue&&x8(ht,ln=>V(Ue,ln))!==-1)return;const ke=x8(je,ln=>V(ln,it));ke===-1?pt({diff:"reset"}):Kt({index:ke});return}if(tt.current>=je.length-1){Kt({index:je.length-1});return}Kt({index:tt.current})}},[je.length,Q?!1:ht,T,pt,Kt,De,lt,Q]),Dn=on(it=>{bx(Ze,it),it&&en()});P.useEffect(()=>{en()},[en]);const $n=it=>{et||(qe(!0),Te(!0),J&&J(it))},Qn=(it,Ue)=>{et&&(qe(!1),Y&&Y(it,Ue))},ur=(it,Ue,ke,ln)=>{if(Q){if(ht.length===Ue.length&&ht.every((qn,Jr)=>qn===Ue[Jr]))return}else if(ht===Ue)return;X&&X(it,Ue,ke,ln),_t(Ue)},Qr=P.useRef(!1),$e=(it,Ue,ke="selectOption",ln="options")=>{let qn=ke,Jr=Ue;if(Q){Jr=Array.isArray(ht)?ht.slice():[];const Ie=x8(Jr,Nn=>V(Ue,Nn));Ie===-1?Jr.push(Ue):ln!=="freeSolo"&&(Jr.splice(Ie,1),qn="removeOption")}We(it,Jr),ur(it,Jr,qn,{option:Ue}),!p&&(!it||!it.ctrlKey&&!it.metaKey)&&Qn(it,qn),(s===!0||s==="touch"&&Qr.current||s==="mouse"&&!Qr.current)&&Me.current.blur()};function Ve(it,Ue){if(it===-1)return-1;let ke=it;for(;;){if(Ue==="next"&&ke===ht.length||Ue==="previous"&&ke===-1)return-1;const ln=ot.querySelector(`[data-tag-index="${ke}"]`);if(!ln||!ln.hasAttribute("tabindex")||ln.disabled||ln.getAttribute("aria-disabled")==="true")ke+=Ue==="next"?1:-1;else return ke}}const ct=(it,Ue)=>{if(!Q)return;lt===""&&Qn(it,"toggleInput");let ke=Je;Je===-1?lt===""&&Ue==="previous"&&(ke=ht.length-1):(ke+=Ue==="next"?1:-1,ke<0&&(ke=0),ke===ht.length&&(ke=-1)),ke=Ve(ke,Ue),Ye(ke),Xt(ke)},Nt=it=>{he.current=!0,ge(""),ee&&ee(it,"","clear"),ur(it,Q?[]:null,"clear")},qt=it=>Ue=>{if(it.onKeyDown&&it.onKeyDown(Ue),!Ue.defaultMuiPrevented&&(Je!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ue.key)===-1&&(Ye(-1),Xt(-1)),Ue.which!==229))switch(Ue.key){case"Home":De&&A&&(Ue.preventDefault(),pt({diff:"start",direction:"next",reason:"keyboard",event:Ue}));break;case"End":De&&A&&(Ue.preventDefault(),pt({diff:"end",direction:"previous",reason:"keyboard",event:Ue}));break;case"PageUp":Ue.preventDefault(),pt({diff:-UK,direction:"previous",reason:"keyboard",event:Ue}),$n(Ue);break;case"PageDown":Ue.preventDefault(),pt({diff:UK,direction:"next",reason:"keyboard",event:Ue}),$n(Ue);break;case"ArrowDown":Ue.preventDefault(),pt({diff:1,direction:"next",reason:"keyboard",event:Ue}),$n(Ue);break;case"ArrowUp":Ue.preventDefault(),pt({diff:-1,direction:"previous",reason:"keyboard",event:Ue}),$n(Ue);break;case"ArrowLeft":ct(Ue,"previous");break;case"ArrowRight":ct(Ue,"next");break;case"Enter":if(tt.current!==-1&&De){const ke=je[tt.current],ln=k?k(ke):!1;if(Ue.preventDefault(),ln)return;$e(Ue,ke,"selectOption"),r&&Me.current.setSelectionRange(Me.current.value.length,Me.current.value.length)}else x&<!==""&&Oe===!1&&(Q&&Ue.preventDefault(),$e(Ue,lt,"createOption","freeSolo"));break;case"Escape":De?(Ue.preventDefault(),Ue.stopPropagation(),Qn(Ue,"escape")):l&&(lt!==""||Q&&ht.length>0)&&(Ue.preventDefault(),Ue.stopPropagation(),Nt(Ue));break;case"Backspace":if(Q&&!Ce&<===""&&ht.length>0){const ke=Je===-1?ht.length-1:Je,ln=ht.slice();ln.splice(ke,1),ur(Ue,ln,"removeOption",{option:ht[ke]})}break;case"Delete":if(Q&&!Ce&<===""&&ht.length>0&&Je!==-1){const ke=Je,ln=ht.slice();ln.splice(ke,1),ur(Ue,ln,"removeOption",{option:ht[ke]})}break}},Bn=it=>{me(!0),ne&&!he.current&&$n(it)},yn=it=>{if(t(Ze)){Me.current.focus();return}me(!1),Pe.current=!0,he.current=!1,a&&tt.current!==-1&&De?$e(it,je[tt.current],"blur"):a&&x&<!==""?$e(it,lt,"blur","freeSolo"):o&&We(it,ht),Qn(it,"blur")},rn=it=>{const Ue=it.target.value;lt!==Ue&&(ge(Ue),Te(!1),ee&&ee(it,Ue,"input")),Ue===""?!h&&!Q&&ur(it,null,"clear"):$n(it)},Zt=it=>{const Ue=Number(it.currentTarget.getAttribute("data-option-index"));tt.current!==Ue&&Kt({event:it,index:Ue,reason:"mouse"})},Fn=it=>{Kt({event:it,index:Number(it.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Qr.current=!0},Ge=it=>{const Ue=Number(it.currentTarget.getAttribute("data-option-index"));$e(it,je[Ue],"selectOption"),Qr.current=!1},Ke=it=>Ue=>{const ke=ht.slice();ke.splice(it,1),ur(Ue,ke,"removeOption",{option:ht[it]})},dt=it=>{et?Qn(it,"toggleInput"):$n(it)},Et=it=>{it.currentTarget.contains(it.target)&&it.target.getAttribute("id")!==ve&&it.preventDefault()},Jn=it=>{it.currentTarget.contains(it.target)&&(Me.current.focus(),ye&&Pe.current&&Me.current.selectionEnd-Me.current.selectionStart===0&&Me.current.select(),Pe.current=!1)},bn=it=>{!b&&(lt===""||!et)&&dt(it)};let Yn=x&<.length>0;Yn=Yn||(Q?ht.length>0:ht!==null);let mi=je;return _&&(mi=je.reduce((it,Ue,ke)=>{const ln=_(Ue);return it.length>0&&it[it.length-1].group===ln?it[it.length-1].options.push(Ue):it.push({key:ke,index:ke,group:ln,options:[Ue]}),it},[])),b&&ue&&yn(),{getRootProps:(it={})=>$({"aria-owns":jt?`${ve}-listbox`:null},it,{onKeyDown:qt(it),onMouseDown:Et,onClick:Jn}),getInputLabelProps:()=>({id:`${ve}-label`,htmlFor:ve}),getInputProps:()=>({id:ve,value:lt,onBlur:yn,onFocus:Bn,onChange:rn,onMouseDown:bn,"aria-activedescendant":De?"":null,"aria-autocomplete":r?"both":"list","aria-controls":jt?`${ve}-listbox`:void 0,"aria-expanded":jt,autoComplete:"off",ref:Me,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Nt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:dt}),getTagProps:({index:it})=>$({key:it,"data-tag-index":it,tabIndex:-1},!Ce&&{onDelete:Ke(it)}),getListboxProps:()=>({role:"listbox",id:`${ve}-listbox`,"aria-labelledby":`${ve}-label`,ref:Dn,onMouseDown:it=>{it.preventDefault()}}),getOptionProps:({index:it,option:Ue})=>{var ke;const ln=(Q?ht:[ht]).some(Jr=>Jr!=null&&V(Ue,Jr)),qn=k?k(Ue):!1;return{key:(ke=C==null?void 0:C(Ue))!=null?ke:Se(Ue),tabIndex:-1,role:"option",id:`${ve}-option-${it}`,onMouseMove:Zt,onClick:Ge,onTouchStart:Fn,"data-option-index":it,"aria-disabled":qn,"aria-selected":ln}},id:ve,inputValue:lt,value:ht,dirty:Yn,expanded:De&&ot,popupOpen:De,focused:ue||Je!==-1,anchorEl:ot,setAnchorEl:Qe,focusedTag:Je,groupedOptions:mi}}const W5e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Q5e=Ne(E5e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y5e=P.forwardRef(function(t,n){var r;const i=GD(),a=Rt({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:c,container:d,disablePortal:h,keepMounted:p,modifiers:b,open:v,placement:S,popperOptions:w,popperRef:T,transition:x,slots:k,slotProps:C}=a,I=st(a,W5e),_=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,A=$({anchorEl:s,container:d,disablePortal:h,keepMounted:p,modifiers:b,open:v,placement:S,popperOptions:w,popperRef:T,transition:x},I);return D.jsx(Q5e,$({as:o,direction:i==null?void 0:i.direction,slots:{root:_},slotProps:C??c},A,{ref:n}))}),sE=Y5e;function q5e(e){return Ut("MuiListSubheader",e)}zt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const G5e=["className","color","component","disableGutters","disableSticky","inset"],Z5e=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${yt(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return $t(s,q5e,t)},X5e=Ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${yt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>$({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Pce=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:c=!1}=r,d=st(r,G5e),h=$({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:c}),p=Z5e(h);return D.jsx(X5e,$({as:s,className:gt(p.root,i),ref:n,ownerState:h},d))});Pce.muiSkipListHighlight=!0;const K5e=Pce,J5e=ns(D.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function eRe(e){return Ut("MuiChip",e)}const tRe=zt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),ti=tRe,nRe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],rRe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,c={root:["root",l,n&&"disabled",`size${yt(r)}`,`color${yt(i)}`,o&&"clickable",o&&`clickableColor${yt(i)}`,s&&"deletable",s&&`deletableColor${yt(i)}`,`${l}${yt(i)}`],label:["label",`label${yt(r)}`],avatar:["avatar",`avatar${yt(r)}`,`avatarColor${yt(i)}`],icon:["icon",`icon${yt(r)}`,`iconColor${yt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${yt(r)}`,`deleteIconColor${yt(i)}`,`deleteIcon${yt(l)}Color${yt(i)}`]};return $t(c,eRe,t)},iRe=Ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${ti.avatar}`]:t.avatar},{[`& .${ti.avatar}`]:t[`avatar${yt(o)}`]},{[`& .${ti.avatar}`]:t[`avatarColor${yt(r)}`]},{[`& .${ti.icon}`]:t.icon},{[`& .${ti.icon}`]:t[`icon${yt(o)}`]},{[`& .${ti.icon}`]:t[`iconColor${yt(i)}`]},{[`& .${ti.deleteIcon}`]:t.deleteIcon},{[`& .${ti.deleteIcon}`]:t[`deleteIcon${yt(o)}`]},{[`& .${ti.deleteIcon}`]:t[`deleteIconColor${yt(r)}`]},{[`& .${ti.deleteIcon}`]:t[`deleteIcon${yt(l)}Color${yt(r)}`]},t.root,t[`size${yt(o)}`],t[`color${yt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${yt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${yt(r)}`],t[l],t[`${l}${yt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return $({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ti.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ti.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${ti.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ti.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ti.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ti.icon}`]:$({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&$({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${ti.deleteIcon}`]:$({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:In(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:In(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:In(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${ti.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${ti.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>$({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ti.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${ti.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>$({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ti.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ti.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ti.avatar}`]:{marginLeft:4},[`& .${ti.avatarSmall}`]:{marginLeft:2},[`& .${ti.icon}`]:{marginLeft:4},[`& .${ti.iconSmall}`]:{marginLeft:2},[`& .${ti.deleteIcon}`]:{marginRight:5},[`& .${ti.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:In(e.palette[t.color].main,.7)}`,[`&.${ti.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${ti.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${ti.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:In(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),aRe=Ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${yt(r)}`]]}})(({ownerState:e})=>$({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function zK(e){return e.key==="Backspace"||e.key==="Delete"}const sRe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:c,disabled:d=!1,icon:h,label:p,onClick:b,onDelete:v,onKeyDown:S,onKeyUp:w,size:T="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:C=!1}=r,I=st(r,nRe),_=P.useRef(null),A=rr(_,n),U=ne=>{ne.stopPropagation(),v&&v(ne)},F=ne=>{ne.currentTarget===ne.target&&zK(ne)&&ne.preventDefault(),S&&S(ne)},M=ne=>{ne.currentTarget===ne.target&&(v&&zK(ne)?v(ne):ne.key==="Escape"&&_.current&&_.current.blur()),w&&w(ne)},V=s!==!1&&b?!0:s,Q=V||v?fc:l||"div",X=$({},r,{component:Q,disabled:d,size:T,color:o,iconColor:P.isValidElement(h)&&h.props.color||o,onDelete:!!v,clickable:V,variant:x}),Y=rRe(X),W=Q===fc?$({component:l||"div",focusVisibleClassName:Y.focusVisible},v&&{disableRipple:!0}):{};let ee=null;v&&(ee=c&&P.isValidElement(c)?P.cloneElement(c,{className:gt(c.props.className,Y.deleteIcon),onClick:U}):D.jsx(J5e,{className:gt(Y.deleteIcon),onClick:U}));let J=null;i&&P.isValidElement(i)&&(J=P.cloneElement(i,{className:gt(Y.avatar,i.props.className)}));let K=null;return h&&P.isValidElement(h)&&(K=P.cloneElement(h,{className:gt(Y.icon,h.props.className)})),D.jsxs(iRe,$({as:Q,className:gt(Y.root,a),disabled:V&&d?!0:void 0,onClick:b,onKeyDown:F,onKeyUp:M,ref:A,tabIndex:C&&d?-1:k,ownerState:X},W,I,{children:[J||K,D.jsx(aRe,{className:gt(Y.label),ownerState:X,children:p}),ee]}))}),wz=sRe;function Bg({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const oRe=P.createContext(void 0),tN=oRe;function Jh(){return P.useContext(tN)}function Mce(e){return D.jsx(w_e,$({},e,{defaultTheme:KD,themeId:Hb}))}function jK(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function TR(e,t=!1){return e&&(jK(e.value)&&e.value!==""||t&&jK(e.defaultValue)&&e.defaultValue!=="")}function lRe(e){return e.startAdornment}function uRe(e){return Ut("MuiInputBase",e)}const cRe=zt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Gu=cRe,dRe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],nN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${yt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rN=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},fRe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:h,size:p,startAdornment:b,type:v}=e,S={root:["root",`color${yt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${yt(p)}`,d&&"multiline",b&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return $t(S,uRe,t)},iN=Ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nN})(({theme:e,ownerState:t})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Gu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),aN=Ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rN})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return $({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Gu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),hRe=D.jsx(Mce,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),pRe=P.forwardRef(function(t,n){var r;const i=Rt({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:c={},componentsProps:d={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:b,endAdornment:v,fullWidth:S=!1,id:w,inputComponent:T="input",inputProps:x={},inputRef:k,maxRows:C,minRows:I,multiline:_=!1,name:A,onBlur:U,onChange:F,onClick:M,onFocus:V,onKeyDown:Q,onKeyUp:X,placeholder:Y,readOnly:W,renderSuffix:ee,rows:J,slotProps:K={},slots:ne={},startAdornment:j,type:Ce="text",value:ye}=i,te=st(i,dRe),ve=x.value!=null?x.value:ye,{current:Se}=P.useRef(ve!=null),he=P.useRef(),Pe=P.useCallback(De=>{},[]),Me=rr(he,k,x.ref,Pe),[Ze,ot]=P.useState(!1),Qe=Jh(),Je=Bg({props:i,muiFormControl:Qe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Je.focused=Qe?Qe.focused:Ze,P.useEffect(()=>{!Qe&&p&&Ze&&(ot(!1),U&&U())},[Qe,p,Ze,U]);const Ye=Qe&&Qe.onFilled,nt=Qe&&Qe.onEmpty,tt=P.useCallback(De=>{TR(De)?Ye&&Ye():nt&&nt()},[Ye,nt]);wa(()=>{Se&&tt({value:ve})},[ve,tt,Se]);const ht=De=>{if(Je.disabled){De.stopPropagation();return}V&&V(De),x.onFocus&&x.onFocus(De),Qe&&Qe.onFocus?Qe.onFocus(De):ot(!0)},_t=De=>{U&&U(De),x.onBlur&&x.onBlur(De),Qe&&Qe.onBlur?Qe.onBlur(De):ot(!1)},lt=(De,...je)=>{if(!Se){const Ot=De.target||he.current;if(Ot==null)throw new Error(bg(1));tt({value:Ot.value})}x.onChange&&x.onChange(De,...je),F&&F(De,...je)};P.useEffect(()=>{tt(he.current)},[]);const ge=De=>{he.current&&De.currentTarget===De.target&&he.current.focus(),M&&M(De)};let ue=T,me=x;_&&ue==="input"&&(J?me=$({type:void 0,minRows:J,maxRows:J},me):me=$({type:void 0,maxRows:C,minRows:I},me),ue=Nce);const We=De=>{tt(De.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};P.useEffect(()=>{Qe&&Qe.setAdornedStart(!!j)},[Qe,j]);const et=$({},i,{color:Je.color||"primary",disabled:Je.disabled,endAdornment:v,error:Je.error,focused:Je.focused,formControl:Qe,fullWidth:S,hiddenLabel:Je.hiddenLabel,multiline:_,size:Je.size,startAdornment:j,type:Ce}),qe=fRe(et),pe=ne.root||c.Root||iN,Te=K.root||d.root||{},Oe=ne.input||c.Input||aN;return me=$({},me,(r=K.input)!=null?r:d.input),D.jsxs(P.Fragment,{children:[!b&&hRe,D.jsxs(pe,$({},Te,!jh(pe)&&{ownerState:$({},et,Te.ownerState)},{ref:n,onClick:ge},te,{className:gt(qe.root,Te.className,l,W&&"MuiInputBase-readOnly"),children:[j,D.jsx(tN.Provider,{value:null,children:D.jsx(Oe,$({ownerState:et,"aria-invalid":Je.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:h,disabled:Je.disabled,id:w,onAnimationStart:We,name:A,placeholder:Y,readOnly:W,required:Je.required,rows:J,value:ve,onKeyDown:Q,onKeyUp:X,type:Ce},me,!jh(Oe)&&{as:ue,ownerState:$({},et,me.ownerState)},{ref:Me,className:gt(qe.input,me.className,W&&"MuiInputBase-readOnly"),onBlur:_t,onChange:lt,onFocus:ht}))}),v,ee?ee($({},Je,{startAdornment:j})):null]}))]})}),Tz=pRe;function mRe(e){return Ut("MuiInput",e)}const gRe=$({},Gu,zt("MuiInput",["root","underline","input"])),I0=gRe;function bRe(e){return Ut("MuiOutlinedInput",e)}const yRe=$({},Gu,zt("MuiOutlinedInput",["root","notchedOutline","input"])),ph=yRe;function vRe(e){return Ut("MuiFilledInput",e)}const ORe=$({},Gu,zt("MuiFilledInput",["root","underline","input"])),Zu=ORe,Lce=ns(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function SRe(e){return Ut("MuiAutocomplete",e)}const ERe=zt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Mr=ERe;var HK,VK;const wRe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],TRe=["ref"],xRe=["key"],kRe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:c,size:d}=e,h={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${yt(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $t(h,SRe,t)},CRe=Ne("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${Mr.tag}`]:t.tag},{[`& .${Mr.tag}`]:t[`tagSize${yt(o)}`]},{[`& .${Mr.inputRoot}`]:t.inputRoot},{[`& .${Mr.input}`]:t.input},{[`& .${Mr.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>$({[`&.${Mr.focused} .${Mr.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Mr.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Mr.tag}`]:$({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Mr.inputRoot}`]:{flexWrap:"wrap",[`.${Mr.hasPopupIcon}&, .${Mr.hasClearIcon}&`]:{paddingRight:30},[`.${Mr.hasPopupIcon}.${Mr.hasClearIcon}&`]:{paddingRight:56},[`& .${Mr.input}`]:{width:0,minWidth:30}},[`& .${I0.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${I0.root}.${Gu.sizeSmall}`]:{[`& .${I0.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ph.root}`]:{padding:9,[`.${Mr.hasPopupIcon}&, .${Mr.hasClearIcon}&`]:{paddingRight:39},[`.${Mr.hasPopupIcon}.${Mr.hasClearIcon}&`]:{paddingRight:65},[`& .${Mr.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Mr.endAdornment}`]:{right:9}},[`& .${ph.root}.${Gu.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Mr.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Zu.root}`]:{paddingTop:19,paddingLeft:8,[`.${Mr.hasPopupIcon}&, .${Mr.hasClearIcon}&`]:{paddingRight:39},[`.${Mr.hasPopupIcon}.${Mr.hasClearIcon}&`]:{paddingRight:65},[`& .${Zu.input}`]:{padding:"7px 4px"},[`& .${Mr.endAdornment}`]:{right:9}},[`& .${Zu.root}.${Gu.sizeSmall}`]:{paddingBottom:1,[`& .${Zu.input}`]:{padding:"2.5px 4px"}},[`& .${Gu.hiddenLabel}`]:{paddingTop:8},[`& .${Zu.root}.${Gu.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Mr.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Zu.root}.${Gu.hiddenLabel}.${Gu.sizeSmall}`]:{[`& .${Mr.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Mr.input}`]:$({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),_Re=Ne("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),ARe=Ne($a,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),RRe=Ne($a,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>$({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>$({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),IRe=Ne(sE,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mr.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>$({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),DRe=Ne(po,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>$({},e.typography.body1,{overflow:"auto"})),NRe=Ne("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),PRe=Ne("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),MRe=Ne("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Mr.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Mr.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Mr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Mr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),LRe=Ne(K5e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),$Re=Ne("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Mr.option}`]:{paddingLeft:24}}),FRe=P.forwardRef(function(t,n){var r,i,a,s;const o=Rt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:d=!1,blurOnSelect:h=!1,ChipProps:p,className:b,clearIcon:v=HK||(HK=D.jsx($4e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:w=!1,clearText:T="Clear",closeText:x="Close",componentsProps:k={},defaultValue:C=o.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:_=!1,disabled:A=!1,disabledItemsFocusable:U=!1,disableListWrap:F=!1,disablePortal:M=!1,filterSelectedOptions:V=!1,forcePopupIcon:Q="auto",freeSolo:X=!1,fullWidth:Y=!1,getLimitTagsText:W=Ue=>`+${Ue}`,getOptionLabel:ee,groupBy:J,handleHomeEndKeys:K=!o.freeSolo,includeInputInList:ne=!1,limitTags:j=-1,ListboxComponent:Ce="ul",ListboxProps:ye,loading:te=!1,loadingText:ve="Loading…",multiple:Se=!1,noOptionsText:he="No options",openOnFocus:Pe=!1,openText:Me="Open",PaperComponent:Ze=po,PopperComponent:ot=sE,popupIcon:Qe=VK||(VK=D.jsx(Lce,{})),readOnly:Je=!1,renderGroup:Ye,renderInput:nt,renderOption:tt,renderTags:ht,selectOnFocus:_t=!o.freeSolo,size:lt="medium",slotProps:ge={}}=o,ue=st(o,wRe),{getRootProps:me,getInputProps:We,getInputLabelProps:et,getPopupIndicatorProps:qe,getClearProps:pe,getTagProps:Te,getListboxProps:Oe,getOptionProps:De,value:je,dirty:Ot,expanded:jt,id:Xt,popupOpen:St,focused:Kt,focusedTag:pt,anchorEl:At,setAnchorEl:en,inputValue:Dn,groupedOptions:$n}=V5e($({},o,{componentName:"Autocomplete"})),Qn=!I&&!A&&Ot&&!Je,ur=(!X||Q===!0)&&Q!==!1,{onMouseDown:Qr}=We(),{ref:$e}=ye??{},Ve=Oe(),{ref:ct}=Ve,Nt=st(Ve,TRe),qt=rr(ct,$e),yn=ee||(Ue=>{var ke;return(ke=Ue.label)!=null?ke:Ue}),rn=$({},o,{disablePortal:M,expanded:jt,focused:Kt,fullWidth:Y,getOptionLabel:yn,hasClearIcon:Qn,hasPopupIcon:ur,inputFocused:pt===-1,popupOpen:St,size:lt}),Zt=kRe(rn);let Fn;if(Se&&je.length>0){const Ue=ke=>$({className:Zt.tag,disabled:A},Te(ke));ht?Fn=ht(je,Ue,rn):Fn=je.map((ke,ln)=>D.jsx(wz,$({label:yn(ke),size:lt},Ue({index:ln}),p)))}if(j>-1&&Array.isArray(Fn)){const Ue=Fn.length-j;!Kt&&Ue>0&&(Fn=Fn.splice(0,j),Fn.push(D.jsx("span",{className:Zt.tag,children:W(Ue)},Fn.length)))}const Ke=Ye||(Ue=>D.jsxs("li",{children:[D.jsx(LRe,{className:Zt.groupLabel,ownerState:rn,component:"div",children:Ue.group}),D.jsx($Re,{className:Zt.groupUl,ownerState:rn,children:Ue.children})]},Ue.key)),Et=tt||((Ue,ke)=>{const{key:ln}=Ue,qn=st(Ue,xRe);return D.jsx("li",$({},qn,{children:yn(ke)}),ln)}),Jn=(Ue,ke)=>{const ln=De({option:Ue,index:ke});return Et($({},ln,{className:Zt.option}),Ue,{selected:ln["aria-selected"],index:ke,inputValue:Dn},rn)},bn=(r=ge.clearIndicator)!=null?r:k.clearIndicator,Yn=(i=ge.paper)!=null?i:k.paper,mi=(a=ge.popper)!=null?a:k.popper,it=(s=ge.popupIndicator)!=null?s:k.popupIndicator;return D.jsxs(P.Fragment,{children:[D.jsx(CRe,$({ref:n,className:gt(Zt.root,b),ownerState:rn},me(ue),{children:nt({id:Xt,disabled:A,fullWidth:!0,size:lt==="small"?"small":void 0,InputLabelProps:et(),InputProps:$({ref:en,className:Zt.inputRoot,startAdornment:Fn,onClick:Ue=>{Ue.target===Ue.currentTarget&&Qr(Ue)}},(Qn||ur)&&{endAdornment:D.jsxs(_Re,{className:Zt.endAdornment,ownerState:rn,children:[Qn?D.jsx(ARe,$({},pe(),{"aria-label":T,title:T,ownerState:rn},bn,{className:gt(Zt.clearIndicator,bn==null?void 0:bn.className),children:v})):null,ur?D.jsx(RRe,$({},qe(),{disabled:A,"aria-label":St?x:Me,title:St?x:Me,ownerState:rn},it,{className:gt(Zt.popupIndicator,it==null?void 0:it.className),children:Qe})):null]})}),inputProps:$({className:Zt.input,disabled:A,readOnly:Je},We())})})),At?D.jsx(IRe,$({as:ot,disablePortal:M,style:{width:At?At.clientWidth:null},ownerState:rn,role:"presentation",anchorEl:At,open:St},mi,{className:gt(Zt.popper,mi==null?void 0:mi.className),children:D.jsxs(DRe,$({ownerState:rn,as:Ze},Yn,{className:gt(Zt.paper,Yn==null?void 0:Yn.className),children:[te&&$n.length===0?D.jsx(NRe,{className:Zt.loading,ownerState:rn,children:ve}):null,$n.length===0&&!X&&!te?D.jsx(PRe,{className:Zt.noOptions,ownerState:rn,role:"presentation",onMouseDown:Ue=>{Ue.preventDefault()},children:he}):null,$n.length>0?D.jsx(MRe,$({as:Ce,className:Zt.listbox,ownerState:rn},Nt,ye,{ref:qt,children:$n.map((Ue,ke)=>J?Ke({key:Ue.key,group:Ue.group,children:Ue.options.map((ln,qn)=>Jn(ln,Ue.index+qn))}):Jn(Ue,ke))})):null]}))})):null]})}),BRe=FRe,URe=ns(D.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function zRe(e){return Ut("MuiAvatar",e)}const jRe=zt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),HRe=jRe,VRe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],WRe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return $t({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},zRe,t)},QRe=Ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:$({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:$({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),YRe=Ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qRe=Ne(URe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GRe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=P.useState(!1);return P.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const ZRe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",imgProps:l,sizes:c,src:d,srcSet:h,variant:p="circular"}=r,b=st(r,VRe);let v=null;const S=GRe($({},l,{src:d,srcSet:h})),w=d||h,T=w&&S!=="error",x=$({},r,{colorDefault:!T,component:o,variant:p}),k=WRe(x);return T?v=D.jsx(YRe,$({alt:i,srcSet:h,src:d,sizes:c,ownerState:x,className:k.img},l)):a!=null&&a!==""&&typeof a!="boolean"?v=a:w&&i?v=i[0]:v=D.jsx(qRe,{ownerState:x,className:k.fallback}),D.jsx(QRe,$({as:o,ownerState:x,className:gt(k.root,s),ref:n},b,{children:v}))}),xz=ZRe;function XRe(e){return Ut("MuiAvatarGroup",e)}const KRe=zt("MuiAvatarGroup",["root","avatar"]),JRe=KRe,eIe=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],WK={small:-16,medium:null},tIe=e=>{const{classes:t}=e;return $t({root:["root"],avatar:["avatar"]},XRe,t)},nIe=Ne("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>$({[`& .${JRe.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&WK[t.spacing]!==void 0?WK[t.spacing]:-t.spacing;return{[`& .${HRe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),rIe=P.forwardRef(function(t,n){var r;const i=Rt({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:c=5,renderSurplus:d,slotProps:h={},spacing:p="medium",total:b,variant:v="circular"}=i,S=st(i,eIe);let w=c<2?2:c;const T=$({},i,{max:c,spacing:p,component:o,variant:v}),x=tIe(T),k=P.Children.toArray(a).filter(F=>P.isValidElement(F)),C=b||k.length;C===w&&(w+=1),w=Math.min(C+1,w);const I=Math.min(k.length,w-1),_=Math.max(C-w,C-I,0),A=d?d(_):`+${_}`,U=(r=h.additionalAvatar)!=null?r:l.additionalAvatar;return D.jsxs(nIe,$({as:o,ownerState:T,className:gt(x.root,s),ref:n},S,{children:[_?D.jsx(xz,$({variant:v},U,{className:gt(x.avatar,U==null?void 0:U.className),children:A})):null,k.slice(0,I).reverse().map(F=>P.cloneElement(F,{className:gt(F.props.className,x.avatar),variant:F.props.variant||v}))]}))}),iIe=rIe,aIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sIe={entering:{opacity:1},entered:{opacity:1}},oIe=P.forwardRef(function(t,n){const r=ji(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:c,onEnter:d,onEntered:h,onEntering:p,onExit:b,onExited:v,onExiting:S,style:w,timeout:T=i,TransitionComponent:x=Qk}=t,k=st(t,aIe),C=P.useRef(null),I=rr(C,o.ref,n),_=Y=>W=>{if(Y){const ee=C.current;W===void 0?Y(ee):Y(ee,W)}},A=_(p),U=_((Y,W)=>{mz(Y);const ee=vg({style:w,timeout:T,easing:l},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("opacity",ee),Y.style.transition=r.transitions.create("opacity",ee),d&&d(Y,W)}),F=_(h),M=_(S),V=_(Y=>{const W=vg({style:w,timeout:T,easing:l},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("opacity",W),Y.style.transition=r.transitions.create("opacity",W),b&&b(Y)}),Q=_(v),X=Y=>{a&&a(C.current,Y)};return D.jsx(x,$({appear:s,in:c,nodeRef:C,onEnter:U,onEntered:F,onEntering:A,onExit:V,onExited:Q,onExiting:M,addEndListener:X,timeout:T},k,{children:(Y,W)=>P.cloneElement(o,$({style:$({opacity:0,visibility:Y==="exited"&&!c?"hidden":void 0},sIe[Y],w,o.props.style),ref:I},W))}))}),um=oIe;function lIe(e){return Ut("MuiBackdrop",e)}zt("MuiBackdrop",["root","invisible"]);const uIe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],cIe=e=>{const{classes:t,invisible:n}=e;return $t({root:["root",n&&"invisible"]},lIe,t)},dIe=Ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),fIe=P.forwardRef(function(t,n){var r,i,a;const s=Rt({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:c="div",components:d={},componentsProps:h={},invisible:p=!1,open:b,slotProps:v={},slots:S={},TransitionComponent:w=um,transitionDuration:T}=s,x=st(s,uIe),k=$({},s,{component:c,invisible:p}),C=cIe(k),I=(r=v.root)!=null?r:h.root;return D.jsx(w,$({in:b,timeout:T},x,{children:D.jsx(dIe,$({"aria-hidden":!0},I,{as:(i=(a=S.root)!=null?a:d.Root)!=null?i:c,className:gt(C.root,l,I==null?void 0:I.className),ownerState:$({},k,I==null?void 0:I.ownerState),classes:C,ref:n,children:o}))}))}),Gk=fIe,hIe=zt("MuiBox",["root"]),pIe=hIe,mIe=lz(),gIe=C_e({themeId:Hb,defaultTheme:mIe,defaultClassName:pIe.root,generateClassName:ez.generate}),$s=gIe;function bIe(e){return Ut("MuiButton",e)}const yIe=zt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),w4=yIe,vIe=P.createContext({}),OIe=vIe,SIe=P.createContext(void 0),EIe=SIe,wIe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],TIe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${yt(t)}`,`size${yt(i)}`,`${a}Size${yt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${yt(i)}`],endIcon:["endIcon",`iconSize${yt(i)}`]},l=$t(o,bIe,s);return $({},s,l)},$ce=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),xIe=Ne(fc,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${yt(n.color)}`],t[`size${yt(n.size)}`],t[`${n.variant}Size${yt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${w4.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${w4.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${In(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${w4.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${w4.disabled}`]:{boxShadow:"none"}}),kIe=Ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${yt(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},$ce(e))),CIe=Ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${yt(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},$ce(e))),_Ie=P.forwardRef(function(t,n){const r=P.useContext(OIe),i=P.useContext(EIe),a=zD(r,t),s=Rt({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:c="button",className:d,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:S,fullWidth:w=!1,size:T="medium",startIcon:x,type:k,variant:C="text"}=s,I=st(s,wIe),_=$({},s,{color:l,component:c,disabled:h,disableElevation:p,disableFocusRipple:b,fullWidth:w,size:T,type:k,variant:C}),A=TIe(_),U=x&&D.jsx(kIe,{className:A.startIcon,ownerState:_,children:x}),F=v&&D.jsx(CIe,{className:A.endIcon,ownerState:_,children:v}),M=i||"";return D.jsxs(xIe,$({ownerState:_,className:gt(r.className,A.root,d,M),component:c,disabled:h,focusRipple:!b,focusVisibleClassName:gt(A.focusVisible,S),ref:n,type:k},I,{classes:A,children:[U,o,F]}))}),lo=_Ie;function AIe(e){return Ut("MuiCard",e)}zt("MuiCard",["root"]);const RIe=["className","raised"],IIe=e=>{const{classes:t}=e;return $t({root:["root"]},AIe,t)},DIe=Ne(po,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),NIe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=st(r,RIe),o=$({},r,{raised:a}),l=IIe(o);return D.jsx(DIe,$({className:gt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))}),kz=NIe;function PIe(e){return Ut("MuiCardActionArea",e)}const MIe=zt("MuiCardActionArea",["root","focusVisible","focusHighlight"]),k8=MIe,LIe=["children","className","focusVisibleClassName"],$Ie=e=>{const{classes:t}=e;return $t({root:["root"],focusHighlight:["focusHighlight"]},PIe,t)},FIe=Ne(fc,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${k8.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${k8.focusVisible} .${k8.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),BIe=Ne("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),UIe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=st(r,LIe),l=r,c=$Ie(l);return D.jsxs(FIe,$({className:gt(c.root,a),focusVisibleClassName:gt(s,c.focusVisible),ref:n,ownerState:l},o,{children:[i,D.jsx(BIe,{className:c.focusHighlight,ownerState:l})]}))}),Fce=UIe;function zIe(e){return Ut("MuiCardContent",e)}zt("MuiCardContent",["root"]);const jIe=["className","component"],HIe=e=>{const{classes:t}=e;return $t({root:["root"]},zIe,t)},VIe=Ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),WIe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=st(r,jIe),o=$({},r,{component:a}),l=HIe(o);return D.jsx(VIe,$({as:a,className:gt(l.root,i),ownerState:o,ref:n},s))}),QIe=WIe;function YIe(e){return Ut("PrivateSwitchBase",e)}zt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qIe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],GIe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${yt(i)}`],input:["input"]};return $t(a,YIe,t)},ZIe=Ne(fc)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),XIe=Ne("input",{shouldForwardProp:Bs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),KIe=P.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:h,id:p,inputProps:b,inputRef:v,name:S,onBlur:w,onChange:T,onFocus:x,readOnly:k,required:C=!1,tabIndex:I,type:_,value:A}=t,U=st(t,qIe),[F,M]=Ms({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),V=Jh(),Q=ne=>{x&&x(ne),V&&V.onFocus&&V.onFocus(ne)},X=ne=>{w&&w(ne),V&&V.onBlur&&V.onBlur(ne)},Y=ne=>{if(ne.nativeEvent.defaultPrevented)return;const j=ne.target.checked;M(j),T&&T(ne,j)};let W=l;V&&typeof W>"u"&&(W=V.disabled);const ee=_==="checkbox"||_==="radio",J=$({},t,{checked:F,disabled:W,disableFocusRipple:c,edge:d}),K=GIe(J);return D.jsxs(ZIe,$({component:"span",className:gt(K.root,s),centerRipple:!0,focusRipple:!c,disabled:W,tabIndex:null,role:void 0,onFocus:Q,onBlur:X,ownerState:J,ref:n},U,{children:[D.jsx(XIe,$({autoFocus:r,checked:i,defaultChecked:o,className:K.input,disabled:W,id:ee?p:void 0,name:S,onChange:Y,readOnly:k,ref:v,required:C,ownerState:J,tabIndex:I,type:_},_==="checkbox"&&A===void 0?{}:{value:A},b)),F?a:h]}))}),Cz=KIe,JIe=ns(D.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),eDe=ns(D.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),tDe=ns(D.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function nDe(e){return Ut("MuiCheckbox",e)}const rDe=zt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),C8=rDe,iDe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],aDe=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${yt(r)}`,`size${yt(i)}`]},s=$t(a,nDe,t);return $({},t,s)},sDe=Ne(Cz,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${yt(n.size)}`],n.color!=="default"&&t[`color${yt(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${C8.checked}, &.${C8.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${C8.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),oDe=D.jsx(eDe,{}),lDe=D.jsx(JIe,{}),uDe=D.jsx(tDe,{}),cDe=P.forwardRef(function(t,n){var r,i;const a=Rt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=oDe,color:o="primary",icon:l=lDe,indeterminate:c=!1,indeterminateIcon:d=uDe,inputProps:h,size:p="medium",className:b}=a,v=st(a,iDe),S=c?d:l,w=c?d:s,T=$({},a,{color:o,indeterminate:c,size:p}),x=aDe(T);return D.jsx(sDe,$({type:"checkbox",inputProps:$({"data-indeterminate":c},h),icon:P.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:p}),checkedIcon:P.cloneElement(w,{fontSize:(i=w.props.fontSize)!=null?i:p}),ownerState:T,ref:n,className:gt(x.root,b)},v,{classes:x}))}),sN=cDe;function dDe(e){return Ut("MuiCircularProgress",e)}zt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fDe=["className","color","disableShrink","size","style","thickness","value","variant"];let oN=e=>e,QK,YK,qK,GK;const h0=44,hDe=Bk(QK||(QK=oN` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+a.message+` 100% { transform: rotate(360deg); } -`)),XIe=$k(zK||(zK=aN` +`)),pDe=Bk(YK||(YK=oN` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,11 +149,12 @@ Error generating stack: `+a.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),KIe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${vt(r)}`],svg:["svg"],circle:["circle",`circle${vt(n)}`,i&&"circleDisableShrink"]};return Wt(a,qIe,t)},JIe=Le("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${vt(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&XU(jK||(jK=aN` +`)),mDe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${yt(r)}`],svg:["svg"],circle:["circle",`circle${yt(n)}`,i&&"circleDisableShrink"]};return $t(a,dDe,t)},gDe=Ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${yt(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&XU(qK||(qK=oN` animation: ${0} 1.4s linear infinite; - `),ZIe)),eDe=Le("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),tDe=Le("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${vt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&XU(HK||(HK=aN` + `),hDe)),bDe=Ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),yDe=Ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${yt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&XU(GK||(GK=oN` animation: ${0} 1.4s ease-in-out infinite; - `),XIe)),nDe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:c=3.6,value:d=0,variant:h="indeterminate"}=r,p=ut(r,GIe),b=$({},r,{color:a,disableShrink:s,size:o,thickness:c,value:d,variant:h}),v=KIe(b),S={},w={},T={};if(h==="determinate"){const x=2*Math.PI*((h0-c)/2);S.strokeDasharray=x.toFixed(3),T["aria-valuenow"]=Math.round(d),S.strokeDashoffset=`${((100-d)/100*x).toFixed(3)}px`,w.transform="rotate(-90deg)"}return D.jsx(JIe,$({className:bt(v.root,i),style:$({width:o,height:o},w,l),ownerState:b,ref:n,role:"progressbar"},T,p,{children:D.jsx(eDe,{className:v.svg,ownerState:b,viewBox:`${h0/2} ${h0/2} ${h0} ${h0}`,children:D.jsx(tDe,{className:v.circle,style:S,ownerState:b,cx:h0,cy:h0,r:(h0-c)/2,fill:"none",strokeWidth:c})})}))}),Tm=nDe,rDe=L_e({createStyledComponent:Le("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${vt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Pt({props:e,name:"MuiContainer"})}),iDe=rDe,aDe=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),sDe=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),oDe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=$({html:aDe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},sDe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function lDe(e){const t=Pt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return D.jsxs(M.Fragment,{children:[D.jsx(Oce,{styles:i=>oDe(i,r)}),n]})}function uDe(e){return qt("MuiModal",e)}Gt("MuiModal",["root","hidden","backdrop"]);const cDe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],dDe=e=>{const{open:t,exited:n,classes:r}=e;return Wt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},uDe,r)},fDe=Le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),hDe=Le(Wk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),pDe=M.forwardRef(function(t,n){var r,i,a,s,o,l;const c=Pt({name:"MuiModal",props:t}),{BackdropComponent:d=hDe,BackdropProps:h,className:p,closeAfterTransition:b=!1,children:v,container:S,component:w,components:T={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:I=!1,disablePortal:_=!1,disableRestoreFocus:A=!1,disableScrollLock:U=!1,hideBackdrop:F=!1,keepMounted:P=!1,onBackdropClick:V,open:Q,slotProps:X,slots:Y}=c,W=ut(c,cDe),ee=$({},c,{closeAfterTransition:b,disableAutoFocus:k,disableEnforceFocus:C,disableEscapeKeyDown:I,disablePortal:_,disableRestoreFocus:A,disableScrollLock:U,hideBackdrop:F,keepMounted:P}),{getRootProps:J,getBackdropProps:K,getTransitionProps:ne,portalRef:j,isTopModal:Ce,exited:ye,hasTransition:te}=p5e($({},ee,{rootRef:n})),ve=$({},ee,{exited:ye}),Se=dDe(ve),he={};if(v.props.tabIndex===void 0&&(he.tabIndex="-1"),te){const{onEnter:Ye,onExited:nt}=ne();he.onEnter=Ye,he.onExited=nt}const Ne=(r=(i=Y==null?void 0:Y.root)!=null?i:T.Root)!=null?r:fDe,Pe=(a=(s=Y==null?void 0:Y.backdrop)!=null?s:T.Backdrop)!=null?a:d,Ze=(o=X==null?void 0:X.root)!=null?o:x.root,st=(l=X==null?void 0:X.backdrop)!=null?l:x.backdrop,Qe=mr({elementType:Ne,externalSlotProps:Ze,externalForwardedProps:W,getSlotProps:J,additionalProps:{ref:n,as:w},ownerState:ve,className:bt(p,Ze==null?void 0:Ze.className,Se==null?void 0:Se.root,!ve.open&&ve.exited&&(Se==null?void 0:Se.hidden))}),Je=mr({elementType:Pe,externalSlotProps:st,additionalProps:h,getSlotProps:Ye=>K($({},Ye,{onClick:nt=>{V&&V(nt),Ye!=null&&Ye.onClick&&Ye.onClick(nt)}})),className:bt(st==null?void 0:st.className,h==null?void 0:h.className,Se==null?void 0:Se.backdrop),ownerState:ve});return!P&&!Q&&(!te||ye)?null:D.jsx(mce,{ref:j,container:S,disablePortal:_,children:D.jsxs(Ne,$({},Qe,{children:[!F&&d?D.jsx(Pe,$({},Je)):null,D.jsx(ace,{disableEnforceFocus:C,disableAutoFocus:k,disableRestoreFocus:A,isEnabled:Ce,open:Q,children:M.cloneElement(v,he)})]}))})}),zg=pDe;function mDe(e){return qt("MuiDialog",e)}const yT=Gt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),gDe=M.createContext({}),bDe=gDe,yDe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],vDe=Le(Wk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ODe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${vt(n)}`],paper:["paper",`paperScroll${vt(n)}`,`paperWidth${vt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Wt(s,mDe,t)},SDe=Le(zg,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),EDe=Le("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${vt(n.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),wDe=Le(po,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${vt(n.scroll)}`],t[`paperWidth${vt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${yT.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${yT.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${yT.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),TDe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiDialog"}),i=Ki(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,BackdropComponent:l,BackdropProps:c,children:d,className:h,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:S="sm",onBackdropClick:w,onClose:T,open:x,PaperComponent:k=po,PaperProps:C={},scroll:I="paper",TransitionComponent:_=um,transitionDuration:A=a,TransitionProps:U}=r,F=ut(r,yDe),P=$({},r,{disableEscapeKeyDown:p,fullScreen:b,fullWidth:v,maxWidth:S,scroll:I}),V=ODe(P),Q=M.useRef(),X=J=>{Q.current=J.target===J.currentTarget},Y=J=>{Q.current&&(Q.current=null,w&&w(J),T&&T(J,"backdropClick"))},W=Cf(o),ee=M.useMemo(()=>({titleId:W}),[W]);return D.jsx(SDe,$({className:bt(V.root,h),closeAfterTransition:!0,components:{Backdrop:vDe},componentsProps:{backdrop:$({transitionDuration:A,as:l},c)},disableEscapeKeyDown:p,onClose:T,open:x,ref:n,onClick:Y,ownerState:P},F,{children:D.jsx(_,$({appear:!0,in:x,timeout:A,role:"presentation"},U,{children:D.jsx(EDe,{className:bt(V.container),onMouseDown:X,ownerState:P,children:D.jsx(wDe,$({as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":W},C,{className:bt(V.paper,C.className),ownerState:P,children:D.jsx(bDe.Provider,{value:ee,children:d})}))})}))}))}),xDe=TDe;function kDe(e){return qt("MuiDialogActions",e)}Gt("MuiDialogActions",["root","spacing"]);const CDe=["className","disableSpacing"],_De=e=>{const{classes:t,disableSpacing:n}=e;return Wt({root:["root",!n&&"spacing"]},kDe,t)},ADe=Le("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>$({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),RDe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,s=ut(r,CDe),o=$({},r,{disableSpacing:a}),l=_De(o);return D.jsx(ADe,$({className:bt(l.root,i),ownerState:o,ref:n},s))}),IDe=RDe;function DDe(e){return qt("MuiDialogContent",e)}Gt("MuiDialogContent",["root","dividers"]);const NDe=Gt("MuiDialogTitle",["root"]),PDe=NDe,MDe=["className","dividers"],LDe=e=>{const{classes:t,dividers:n}=e;return Wt({root:["root",n&&"dividers"]},DDe,t)},$De=Le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>$({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${PDe.root} + &`]:{paddingTop:0}})),FDe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,s=ut(r,MDe),o=$({},r,{dividers:a}),l=LDe(o);return D.jsx($De,$({className:bt(l.root,i),ownerState:o,ref:n},s))}),BDe=FDe;function UDe(e){return qt("MuiDivider",e)}const zDe=Gt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),VK=zDe,jDe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],HDe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return Wt({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},UDe,r)},VDe=Le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Bn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),WDe=Le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Tce=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:d="horizontal",role:h=o!=="hr"?"separator":void 0,textAlign:p="center",variant:b="fullWidth"}=r,v=ut(r,jDe),S=$({},r,{absolute:i,component:o,flexItem:l,light:c,orientation:d,role:h,textAlign:p,variant:b}),w=HDe(S);return D.jsx(VDe,$({as:o,className:bt(w.root,s),role:h,ref:n,ownerState:S},v,{children:a?D.jsx(WDe,{className:w.wrapper,ownerState:S,children:a}):null}))});Tce.muiSkipListHighlight=!0;const Yp=Tce,QDe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function YDe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Od(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=a.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");o=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function qDe(e){return typeof e=="function"?e():e}function y4(e,t,n){const r=qDe(n),i=YDe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const GDe=M.forwardRef(function(t,n){const r=Ki(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:c,direction:d="down",easing:h=i,in:p,onEnter:b,onEntered:v,onEntering:S,onExit:w,onExited:T,onExiting:x,style:k,timeout:C=a,TransitionComponent:I=jk}=t,_=ut(t,QDe),A=M.useRef(null),U=rr(l.ref,A,n),F=K=>ne=>{K&&(ne===void 0?K(A.current):K(A.current,ne))},P=F((K,ne)=>{y4(d,K,c),mz(K),b&&b(K,ne)}),V=F((K,ne)=>{const j=Og({timeout:C,style:k,easing:h},{mode:"enter"});K.style.webkitTransition=r.transitions.create("-webkit-transform",$({},j)),K.style.transition=r.transitions.create("transform",$({},j)),K.style.webkitTransform="none",K.style.transform="none",S&&S(K,ne)}),Q=F(v),X=F(x),Y=F(K=>{const ne=Og({timeout:C,style:k,easing:h},{mode:"exit"});K.style.webkitTransition=r.transitions.create("-webkit-transform",ne),K.style.transition=r.transitions.create("transform",ne),y4(d,K,c),w&&w(K)}),W=F(K=>{K.style.webkitTransition="",K.style.transition="",T&&T(K)}),ee=K=>{s&&s(A.current,K)},J=M.useCallback(()=>{A.current&&y4(d,A.current,c)},[d,c]);return M.useEffect(()=>{if(p||d==="down"||d==="right")return;const K=nE(()=>{A.current&&y4(d,A.current,c)}),ne=Od(A.current);return ne.addEventListener("resize",K),()=>{K.clear(),ne.removeEventListener("resize",K)}},[d,p,c]),M.useEffect(()=>{p||J()},[p,J]),D.jsx(I,$({nodeRef:A,onEnter:P,onEntered:Q,onEntering:V,onExit:Y,onExited:W,onExiting:X,addEndListener:ee,appear:o,in:p,timeout:C},_,{children:(K,ne)=>M.cloneElement(l,$({ref:U,style:$({visibility:K==="exited"&&!p?"hidden":void 0},k,l.props.style)},ne))}))}),xce=GDe;function ZDe(e){return qt("MuiDrawer",e)}Gt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const XDe=["BackdropProps"],KDe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],kce=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},JDe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${vt(n)}`,r!=="temporary"&&`paperAnchorDocked${vt(n)}`]};return Wt(i,ZDe,t)},eNe=Le(zg,{name:"MuiDrawer",slot:"Root",overridesResolver:kce})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),WK=Le("div",{shouldForwardProp:Bs,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:kce})({flex:"0 0 auto"}),tNe=Le(po,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${vt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${vt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>$({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Cce={left:"right",right:"left",top:"down",bottom:"up"};function nNe(e){return["left","right"].indexOf(e)!==-1}function rNe(e,t){return e.direction==="rtl"&&nNe(t)?Cce[t]:t}const iNe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiDrawer"}),i=Ki(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:o,children:l,className:c,elevation:d=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:p}={},onClose:b,open:v=!1,PaperProps:S={},SlideProps:w,TransitionComponent:T=xce,transitionDuration:x=a,variant:k="temporary"}=r,C=ut(r.ModalProps,XDe),I=ut(r,KDe),_=M.useRef(!1);M.useEffect(()=>{_.current=!0},[]);const A=rNe(i,s),F=$({},r,{anchor:s,elevation:d,open:v,variant:k},I),P=JDe(F),V=D.jsx(tNe,$({elevation:k==="temporary"?d:0,square:!0},S,{className:bt(P.paper,S.className),ownerState:F,children:l}));if(k==="permanent")return D.jsx(WK,$({className:bt(P.root,P.docked,c),ownerState:F,ref:n},I,{children:V}));const Q=D.jsx(T,$({in:v,direction:Cce[A],timeout:x,appear:_.current},w,{children:V}));return k==="persistent"?D.jsx(WK,$({className:bt(P.root,P.docked,c),ownerState:F,ref:n},I,{children:Q})):D.jsx(eNe,$({BackdropProps:$({},o,p,{transitionDuration:x}),className:bt(P.root,P.modal,c),open:v,ownerState:F,onClose:b,hideBackdrop:h,ref:n},I,C,{children:Q}))}),aNe=iNe,sNe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],oNe=e=>{const{classes:t,disableUnderline:n}=e,i=Wt({root:["root",!n&&"underline"],input:["input"]},nRe,t);return $({},t,i)},lNe=Le(tN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...JD(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Zu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Zu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Zu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Zu.disabled}, .${Zu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Zu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),uNe=Le(nN,{name:"MuiFilledInput",slot:"Input",overridesResolver:eN})(({theme:e,ownerState:t})=>$({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),_ce=M.forwardRef(function(t,n){var r,i,a,s;const o=Pt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:p=!1,slotProps:b,slots:v={},type:S="text"}=o,w=ut(o,sNe),T=$({},o,{fullWidth:d,inputComponent:h,multiline:p,type:S}),x=oNe(o),k={root:{ownerState:T},input:{ownerState:T}},C=b??c?Po(k,b??c):k,I=(r=(i=v.root)!=null?i:l.Root)!=null?r:lNe,_=(a=(s=v.input)!=null?s:l.Input)!=null?a:uNe;return D.jsx(Tz,$({slots:{root:I,input:_},componentsProps:C,fullWidth:d,inputComponent:h,multiline:p,ref:n,type:S},w,{classes:x}))});_ce.muiName="Input";const Ace=_ce;function cNe(e){return qt("MuiFormControl",e)}Gt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const dNe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],fNe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${vt(n)}`,r&&"fullWidth"]};return Wt(i,cNe,t)},hNe=Le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${vt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),pNe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:p=!1,margin:b="none",required:v=!1,size:S="medium",variant:w="outlined"}=r,T=ut(r,dNe),x=$({},r,{color:s,component:o,disabled:l,error:c,fullWidth:h,hiddenLabel:p,margin:b,required:v,size:S,variant:w}),k=fNe(x),[C,I]=M.useState(()=>{let X=!1;return i&&M.Children.forEach(i,Y=>{if(!dT(Y,["Input","Select"]))return;const W=dT(Y,["Select"])?Y.props.input:Y;W&&W5e(W.props)&&(X=!0)}),X}),[_,A]=M.useState(()=>{let X=!1;return i&&M.Children.forEach(i,Y=>{dT(Y,["Input","Select"])&&(yR(Y.props,!0)||yR(Y.props.inputProps,!0))&&(X=!0)}),X}),[U,F]=M.useState(!1);l&&U&&F(!1);const P=d!==void 0&&!l?d:U;let V;const Q=M.useMemo(()=>({adornedStart:C,setAdornedStart:I,color:s,disabled:l,error:c,filled:_,focused:P,fullWidth:h,hiddenLabel:p,size:S,onBlur:()=>{F(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{F(!0)},registerEffect:V,required:v,variant:w}),[C,s,l,c,_,P,h,p,V,v,S,w]);return D.jsx(KD.Provider,{value:Q,children:D.jsx(hNe,$({as:o,ownerState:x,className:bt(k.root,a),ref:n},T,{children:i}))})}),_f=pNe,mNe=V_e({createStyledComponent:Le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Pt({props:e,name:"MuiStack"})}),kr=mNe;function gNe(e){return qt("MuiFormControlLabel",e)}const bNe=Gt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),z2=bNe,yNe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],vNe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${vt(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Wt(s,gNe,t)},ONe=Le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${z2.label}`]:t.label},t.root,t[`labelPlacement${vt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${z2.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${z2.label}`]:{[`&.${z2.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),SNe=Le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${z2.error}`]:{color:(e.vars||e).palette.error.main}})),ENe=M.forwardRef(function(t,n){var r,i;const a=Pt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:h,labelPlacement:p="end",required:b,slotProps:v={}}=a,S=ut(a,yNe),w=Jh(),T=(r=c??l.props.disabled)!=null?r:w==null?void 0:w.disabled,x=b??l.props.required,k={disabled:T,required:x};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof l.props[F]>"u"&&typeof a[F]<"u"&&(k[F]=a[F])});const C=Ug({props:a,muiFormControl:w,states:["error"]}),I=$({},a,{disabled:T,labelPlacement:p,required:x,error:C.error}),_=vNe(I),A=(i=v.typography)!=null?i:o.typography;let U=h;return U!=null&&U.type!==Xr&&!d&&(U=D.jsx(Xr,$({component:"span"},A,{className:bt(_.label,A==null?void 0:A.className),children:U}))),D.jsxs(ONe,$({className:bt(_.root,s),ownerState:I,ref:n},S,{children:[M.cloneElement(l,k),x?D.jsxs(kr,{display:"block",children:[U,D.jsxs(SNe,{ownerState:I,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):U]}))}),vx=ENe;function wNe(e){return qt("MuiFormGroup",e)}Gt("MuiFormGroup",["root","row","error"]);const TNe=["className","row"],xNe=e=>{const{classes:t,row:n,error:r}=e;return Wt({root:["root",n&&"row",r&&"error"]},wNe,t)},kNe=Le("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>$({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),CNe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=ut(r,TNe),o=Jh(),l=Ug({props:r,muiFormControl:o,states:["error"]}),c=$({},r,{row:a,error:l.error}),d=xNe(c);return D.jsx(kNe,$({className:bt(d.root,i),ownerState:c,ref:n},s))}),Cz=CNe;function _Ne(e){return qt("MuiFormHelperText",e)}const ANe=Gt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),QK=ANe;var YK;const RNe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],INe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,c={root:["root",i&&"disabled",a&&"error",r&&`size${vt(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return Wt(c,_Ne,t)},DNe=Le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${vt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${QK.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${QK.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),NNe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=ut(r,RNe),l=Jh(),c=Ug({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=$({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),h=INe(d);return D.jsx(DNe,$({as:s,ownerState:d,className:bt(h.root,a),ref:n},o,{children:i===" "?YK||(YK=D.jsx("span",{className:"notranslate",children:"​"})):i}))}),aE=NNe;function PNe(e){return qt("MuiFormLabel",e)}const vT=Gt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),MNe=["children","className","color","component","disabled","error","filled","focused","required"],LNe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${vt(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return Wt(l,PNe,t)},$Ne=Le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${vT.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${vT.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vT.error}`]:{color:(e.vars||e).palette.error.main}})),FNe=Le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${vT.error}`]:{color:(e.vars||e).palette.error.main}})),BNe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=ut(r,MNe),l=Jh(),c=Ug({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=$({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),h=LNe(d);return D.jsxs($Ne,$({as:s,ownerState:d,className:bt(h.root,a),ref:n},o,{children:[i,c.required&&D.jsxs(FNe,{ownerState:d,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),sN=BNe,UNe=M.createContext(),qK=UNe;function zNe(e){return qt("MuiGrid",e)}const jNe=[0,1,2,3,4,5,6,7,8,9,10],HNe=["column-reverse","column","row-reverse","row"],VNe=["nowrap","wrap-reverse","wrap"],e2=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ox=Gt("MuiGrid",["root","container","item","zeroMinWidth",...jNe.map(e=>`spacing-xs-${e}`),...HNe.map(e=>`direction-xs-${e}`),...VNe.map(e=>`wrap-xs-${e}`),...e2.map(e=>`grid-xs-${e}`),...e2.map(e=>`grid-sm-${e}`),...e2.map(e=>`grid-md-${e}`),...e2.map(e=>`grid-lg-${e}`),...e2.map(e=>`grid-xl-${e}`)]),WNe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function NO(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function QNe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Pb({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const h=`calc(${l} + ${NO(d)})`;c={flexBasis:h,maxWidth:h}}}a=$({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function YNe({theme:e,ownerState:t}){const n=Pb({values:t.direction,breakpoints:e.breakpoints.values});return cu({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Ox.item}`]={maxWidth:"none"}),i})}function Rce({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function qNe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=Pb({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Rce({breakpoints:e.breakpoints.values,values:a})),i=cu({theme:e},a,(o,l)=>{var c;const d=e.spacing(o);return d!=="0px"?{marginTop:`-${NO(d)}`,[`& > .${Ox.item}`]:{paddingTop:NO(d)}}:(c=s)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Ox.item}`]:{paddingTop:0}}})}return i}function GNe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=Pb({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Rce({breakpoints:e.breakpoints.values,values:a})),i=cu({theme:e},a,(o,l)=>{var c;const d=e.spacing(o);return d!=="0px"?{width:`calc(100% + ${NO(d)})`,marginLeft:`-${NO(d)}`,[`& > .${Ox.item}`]:{paddingLeft:NO(d)}}:(c=s)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Ox.item}`]:{paddingLeft:0}}})}return i}function ZNe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const XNe=Le("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:c}=n;let d=[];r&&(d=ZNe(s,c,t));const h=[];return c.forEach(p=>{const b=n[p];b&&h.push(t[`grid-${p}-${String(b)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...h]}})(({ownerState:e})=>$({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),YNe,qNe,GNe,QNe);function KNe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const JNe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let c=[];n&&(c=KNe(a,l));const d=[];l.forEach(p=>{const b=e[p];b&&d.push(`grid-${p}-${String(b)}`)});const h={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return Wt(h,zNe,t)},e6e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiGrid"}),{breakpoints:i}=Ki(),a=WD(r),{className:s,columns:o,columnSpacing:l,component:c="div",container:d=!1,direction:h="row",item:p=!1,rowSpacing:b,spacing:v=0,wrap:S="wrap",zeroMinWidth:w=!1}=a,T=ut(a,WNe),x=b||v,k=l||v,C=M.useContext(qK),I=d?o||12:C,_={},A=$({},T);i.keys.forEach(P=>{T[P]!=null&&(_[P]=T[P],delete A[P])});const U=$({},a,{columns:I,container:d,direction:h,item:p,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:w,spacing:v},_,{breakpoints:i.keys}),F=JNe(U);return D.jsx(qK.Provider,{value:I,children:D.jsx(XNe,$({ownerState:U,className:bt(F.root,s),as:c,ref:n},A))})}),dO=e6e,t6e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function B9(e){return`scale(${e}, ${e**2})`}const n6e={entering:{opacity:1,transform:B9(1)},entered:{opacity:1,transform:"none"}},C8=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ice=M.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:p,onExiting:b,style:v,timeout:S="auto",TransitionComponent:w=jk}=t,T=ut(t,t6e),x=hb(),k=M.useRef(),C=Ki(),I=M.useRef(null),_=rr(I,a.ref,n),A=W=>ee=>{if(W){const J=I.current;ee===void 0?W(J):W(J,ee)}},U=A(d),F=A((W,ee)=>{mz(W);const{duration:J,delay:K,easing:ne}=Og({style:v,timeout:S,easing:s},{mode:"enter"});let j;S==="auto"?(j=C.transitions.getAutoHeightDuration(W.clientHeight),k.current=j):j=J,W.style.transition=[C.transitions.create("opacity",{duration:j,delay:K}),C.transitions.create("transform",{duration:C8?j:j*.666,delay:K,easing:ne})].join(","),l&&l(W,ee)}),P=A(c),V=A(b),Q=A(W=>{const{duration:ee,delay:J,easing:K}=Og({style:v,timeout:S,easing:s},{mode:"exit"});let ne;S==="auto"?(ne=C.transitions.getAutoHeightDuration(W.clientHeight),k.current=ne):ne=ee,W.style.transition=[C.transitions.create("opacity",{duration:ne,delay:J}),C.transitions.create("transform",{duration:C8?ne:ne*.666,delay:C8?J:J||ne*.333,easing:K})].join(","),W.style.opacity=0,W.style.transform=B9(.75),h&&h(W)}),X=A(p),Y=W=>{S==="auto"&&x.start(k.current||0,W),r&&r(I.current,W)};return D.jsx(w,$({appear:i,in:o,nodeRef:I,onEnter:F,onEntered:P,onEntering:U,onExit:Q,onExited:X,onExiting:V,addEndListener:Y,timeout:S==="auto"?null:S},T,{children:(W,ee)=>M.cloneElement(a,$({style:$({opacity:0,transform:B9(.75),visibility:W==="exited"&&!o?"hidden":void 0},n6e[W],v,a.props.style),ref:_},ee))}))});Ice.muiSupportAuto=!0;const vR=Ice;function r6e(e,t,n,r,i){const[a,s]=M.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Oa(()=>{let o=!0;if(!n)return;const l=n(e),c=()=>{o&&s(l.matches)};return c(),l.addListener(c),()=>{o=!1,l.removeListener(c)}},[e,n]),a}const Dce=M.useSyncExternalStore;function i6e(e,t,n,r,i){const a=M.useCallback(()=>t,[t]),s=M.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[o,l]=M.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,h=>(d.addListener(h),()=>{d.removeListener(h)})]},[a,n,e]);return Dce(l,o,s)}function sE(e,t={}){const n=VD(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=Zue({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(Dce!==void 0?i6e:r6e)(l,i,a,s,o)}const a6e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],s6e=e=>{const{classes:t,disableUnderline:n}=e,i=Wt({root:["root",!n&&"underline"],input:["input"]},K5e,t);return $({},t,i)},o6e=Le(tN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...JD(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${I0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${I0.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${I0.disabled}, .${I0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${I0.disabled}:before`]:{borderBottomStyle:"dotted"}})}),l6e=Le(nN,{name:"MuiInput",slot:"Input",overridesResolver:eN})({}),Nce=M.forwardRef(function(t,n){var r,i,a,s;const o=Pt({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:d,fullWidth:h=!1,inputComponent:p="input",multiline:b=!1,slotProps:v,slots:S={},type:w="text"}=o,T=ut(o,a6e),x=s6e(o),C={root:{ownerState:{disableUnderline:l}}},I=v??d?Po(v??d,C):C,_=(r=(i=S.root)!=null?i:c.Root)!=null?r:o6e,A=(a=(s=S.input)!=null?s:c.Input)!=null?a:l6e;return D.jsx(Tz,$({slots:{root:_,input:A},slotProps:I,fullWidth:h,inputComponent:p,multiline:b,ref:n,type:w},T,{classes:x}))});Nce.muiName="Input";const Pce=Nce;function u6e(e){return qt("MuiInputAdornment",e)}const c6e=Gt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),GK=c6e;var ZK;const d6e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],f6e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${vt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},h6e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${vt(i)}`,s,r&&"hiddenLabel",a&&`size${vt(a)}`]};return Wt(o,u6e,t)},p6e=Le("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:f6e})(({theme:e,ownerState:t})=>$({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${GK.positionStart}&:not(.${GK.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),m6e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:c,variant:d}=r,h=ut(r,d6e),p=Jh()||{};let b=d;d&&p.variant,p&&!b&&(b=p.variant);const v=$({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:o,position:c,variant:b}),S=h6e(v);return D.jsx(KD.Provider,{value:null,children:D.jsx(p6e,$({as:s,ownerState:v,className:bt(S.root,a),ref:n},h,{children:typeof i=="string"&&!l?D.jsx(Xr,{color:"text.secondary",children:i}):D.jsxs(M.Fragment,{children:[c==="start"?ZK||(ZK=D.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),Sx=m6e;function g6e(e){return qt("MuiInputLabel",e)}Gt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const b6e=["disableAnimation","margin","shrink","variant","className"],y6e=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${vt(r)}`,s],asterisk:[o&&"asterisk"]},c=Wt(l,g6e,t);return $({},t,c)},v6e=Le(sN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vT.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),O6e=M.forwardRef(function(t,n){const r=Pt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=ut(r,b6e),l=Jh();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const d=Ug({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),h=$({},r,{disableAnimation:i,formControl:l,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=y6e(h);return D.jsx(v6e,$({"data-shrink":c,ownerState:h,ref:n,className:bt(p.root,s)},o,{classes:p}))}),Mce=O6e,S6e=M.createContext({}),hd=S6e;function E6e(e){return qt("MuiList",e)}Gt("MuiList",["root","padding","dense","subheader"]);const w6e=["children","className","component","dense","disablePadding","subheader"],T6e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Wt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},E6e,t)},x6e=Le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),k6e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:c}=r,d=ut(r,w6e),h=M.useMemo(()=>({dense:o}),[o]),p=$({},r,{component:s,dense:o,disablePadding:l}),b=T6e(p);return D.jsx(hd.Provider,{value:h,children:D.jsxs(x6e,$({as:s,className:bt(b.root,a),ref:n,ownerState:p},d,{children:[c,i]}))})}),Lce=k6e;function C6e(e){return qt("MuiListItem",e)}const _6e=Gt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Uv=_6e;function A6e(e){return qt("MuiListItemButton",e)}const R6e=Gt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),zv=R6e,I6e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],D6e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},N6e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,c=Wt({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},A6e,n);return $({},n,c)},P6e=Le(fc,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:D6e})(({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),M6e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:c=!1,divider:d=!1,focusVisibleClassName:h,selected:p=!1,className:b}=r,v=ut(r,I6e),S=M.useContext(hd),w=M.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:c}),[i,S.dense,l,c]),T=M.useRef(null);Oa(()=>{a&&T.current&&T.current.focus()},[a]);const x=$({},r,{alignItems:i,dense:w.dense,disableGutters:c,divider:d,selected:p}),k=N6e(x),C=rr(T,n);return D.jsx(hd.Provider,{value:w,children:D.jsx(P6e,$({ref:C,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:bt(k.focusVisible,h),ownerState:x,className:bt(k.root,b)},v,{classes:k,children:o}))})}),_8=M6e;function L6e(e){return qt("MuiListItemSecondaryAction",e)}Gt("MuiListItemSecondaryAction",["root","disableGutters"]);const $6e=["className"],F6e=e=>{const{disableGutters:t,classes:n}=e;return Wt({root:["root",t&&"disableGutters"]},L6e,n)},B6e=Le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),$ce=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=ut(r,$6e),s=M.useContext(hd),o=$({},r,{disableGutters:s.disableGutters}),l=F6e(o);return D.jsx(B6e,$({className:bt(l.root,i),ownerState:o,ref:n},a))});$ce.muiName="ListItemSecondaryAction";const OR=$ce,U6e=["className"],z6e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],j6e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},H6e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:c,selected:d}=e;return Wt({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},C6e,r)},V6e=Le("div",{name:"MuiListItem",slot:"Root",overridesResolver:j6e})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${zv.root}`]:{paddingRight:48}},{[`&.${Uv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Uv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Uv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Uv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),W6e=Le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Q6e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:c,components:d={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:b}={},dense:v=!1,disabled:S=!1,disableGutters:w=!1,disablePadding:T=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:C,selected:I=!1,slotProps:_={},slots:A={}}=r,U=ut(r.ContainerProps,U6e),F=ut(r,z6e),P=M.useContext(hd),V=M.useMemo(()=>({dense:v||P.dense||!1,alignItems:i,disableGutters:w}),[i,P.dense,v,w]),Q=M.useRef(null);Oa(()=>{a&&Q.current&&Q.current.focus()},[a]);const X=M.Children.toArray(o),Y=X.length&&dT(X[X.length-1],["ListItemSecondaryAction"]),W=$({},r,{alignItems:i,autoFocus:a,button:s,dense:V.dense,disabled:S,disableGutters:w,disablePadding:T,divider:x,hasSecondaryAction:Y,selected:I}),ee=H6e(W),J=rr(Q,n),K=A.root||d.Root||V6e,ne=_.root||h.root||{},j=$({className:bt(ee.root,ne.className,l),disabled:S},F);let Ce=c||"li";return s&&(j.component=c||"div",j.focusVisibleClassName=bt(Uv.focusVisible,k),Ce=fc),Y?(Ce=!j.component&&!c?"div":Ce,p==="li"&&(Ce==="li"?Ce="div":j.component==="li"&&(j.component="div")),D.jsx(hd.Provider,{value:V,children:D.jsxs(W6e,$({as:p,className:bt(ee.container,b),ref:J,ownerState:W},U,{children:[D.jsx(K,$({},ne,!jh(K)&&{as:Ce,ownerState:$({},W,ne.ownerState)},j,{children:X})),X.pop()]}))})):D.jsx(hd.Provider,{value:V,children:D.jsxs(K,$({},ne,{as:Ce,ref:J},!jh(K)&&{ownerState:$({},W,ne.ownerState)},j,{children:[X,C&&D.jsx(OR,{children:C})]}))})}),jv=Q6e;function Y6e(e){return qt("MuiListItemAvatar",e)}Gt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const q6e=["className"],G6e=e=>{const{alignItems:t,classes:n}=e;return Wt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Y6e,n)},Z6e=Le("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>$({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),X6e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,a=ut(r,q6e),s=M.useContext(hd),o=$({},r,{alignItems:s.alignItems}),l=G6e(o);return D.jsx(Z6e,$({className:bt(l.root,i),ownerState:o,ref:n},a))}),K6e=X6e;function J6e(e){return qt("MuiListItemIcon",e)}const ePe=Gt("MuiListItemIcon",["root","alignItemsFlexStart"]),XK=ePe,tPe=["className"],nPe=e=>{const{alignItems:t,classes:n}=e;return Wt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},J6e,n)},rPe=Le("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),iPe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=ut(r,tPe),s=M.useContext(hd),o=$({},r,{alignItems:s.alignItems}),l=nPe(o);return D.jsx(rPe,$({className:bt(l.root,i),ownerState:o,ref:n},a))}),oN=iPe;function aPe(e){return qt("MuiListItemText",e)}const sPe=Gt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),SR=sPe,oPe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],lPe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Wt({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},aPe,t)},uPe=Le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${SR.primary}`]:t.primary},{[`& .${SR.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),cPe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:h}=r,p=ut(r,oPe),{dense:b}=M.useContext(hd);let v=l??i,S=d;const w=$({},r,{disableTypography:s,inset:o,primary:!!v,secondary:!!S,dense:b}),T=lPe(w);return v!=null&&v.type!==Xr&&!s&&(v=D.jsx(Xr,$({variant:b?"body2":"body1",className:T.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:v}))),S!=null&&S.type!==Xr&&!s&&(S=D.jsx(Xr,$({variant:"body2",className:T.secondary,color:"text.secondary",display:"block"},h,{children:S}))),D.jsxs(uPe,$({className:bt(T.root,a),ownerState:w,ref:n},p,{children:[v,S]}))}),og=cPe,dPe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function A8(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function KK(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Fce(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function t2(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Fce(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const fPe=M.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu"}=t,p=ut(t,dPe),b=M.useRef(null),v=M.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Oa(()=>{i&&b.current.focus()},[i]),M.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,C)=>{const I=!b.current.style.width;if(k.clientHeight{const C=b.current,I=k.key,_=_i(C).activeElement;if(I==="ArrowDown")k.preventDefault(),t2(C,_,c,l,A8);else if(I==="ArrowUp")k.preventDefault(),t2(C,_,c,l,KK);else if(I==="Home")k.preventDefault(),t2(C,null,c,l,A8);else if(I==="End")k.preventDefault(),t2(C,null,c,l,KK);else if(I.length===1){const A=v.current,U=I.toLowerCase(),F=performance.now();A.keys.length>0&&(F-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&U!==A.keys[0]&&(A.repeating=!1)),A.lastTime=F,A.keys.push(U);const P=_&&!A.repeating&&Fce(_,A);A.previousKeyMatched&&(P||t2(C,_,!1,l,A8,A))?k.preventDefault():A.previousKeyMatched=!1}d&&d(k)},w=rr(b,n);let T=-1;M.Children.forEach(s,(k,C)=>{if(!M.isValidElement(k)){T===C&&(T+=1,T>=s.length&&(T=-1));return}k.props.disabled||(h==="selectedMenu"&&k.props.selected||T===-1)&&(T=C),T===C&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const x=M.Children.map(s,(k,C)=>{if(C===T){const I={};return a&&(I.autoFocus=!0),k.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),M.cloneElement(k,I)}return k});return D.jsx(Lce,$({role:"menu",ref:w,className:o,onKeyDown:S,tabIndex:i?0:-1},p,{children:x}))}),oE=fPe;function hPe(e){return qt("MuiPopover",e)}Gt("MuiPopover",["root","paper"]);const pPe=["onEntering"],mPe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gPe=["slotProps"];function JK(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function eJ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function tJ(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function R8(e){return typeof e=="function"?e():e}const bPe=e=>{const{classes:t}=e;return Wt({root:["root"],paper:["paper"]},hPe,t)},yPe=Le(zg,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bce=Le(po,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vPe=M.forwardRef(function(t,n){var r,i,a;const s=Pt({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:p,className:b,container:v,elevation:S=8,marginThreshold:w=16,open:T,PaperProps:x={},slots:k,slotProps:C,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:_=vR,transitionDuration:A="auto",TransitionProps:{onEntering:U}={},disableScrollLock:F=!1}=s,P=ut(s.TransitionProps,pPe),V=ut(s,mPe),Q=(r=C==null?void 0:C.paper)!=null?r:x,X=M.useRef(),Y=rr(X,Q.ref),W=$({},s,{anchorOrigin:c,anchorReference:h,elevation:S,marginThreshold:w,externalPaperSlotProps:Q,transformOrigin:I,TransitionComponent:_,transitionDuration:A,TransitionProps:P}),ee=bPe(W),J=M.useCallback(()=>{if(h==="anchorPosition")return d;const Ye=R8(l),tt=(Ye&&Ye.nodeType===1?Ye:_i(X.current).body).getBoundingClientRect();return{top:tt.top+JK(tt,c.vertical),left:tt.left+eJ(tt,c.horizontal)}},[l,c.horizontal,c.vertical,d,h]),K=M.useCallback(Ye=>({vertical:JK(Ye,I.vertical),horizontal:eJ(Ye,I.horizontal)}),[I.horizontal,I.vertical]),ne=M.useCallback(Ye=>{const nt={width:Ye.offsetWidth,height:Ye.offsetHeight},tt=K(nt);if(h==="none")return{top:null,left:null,transformOrigin:tJ(tt)};const ht=J();let _t=ht.top-tt.vertical,ot=ht.left-tt.horizontal;const ge=_t+nt.height,ue=ot+nt.width,me=Od(R8(l)),We=me.innerHeight-w,et=me.innerWidth-w;if(w!==null&&_tWe){const qe=ge-We;_t-=qe,tt.vertical+=qe}if(w!==null&&otet){const qe=ue-et;ot-=qe,tt.horizontal+=qe}return{top:`${Math.round(_t)}px`,left:`${Math.round(ot)}px`,transformOrigin:tJ(tt)}},[l,h,J,K,w]),[j,Ce]=M.useState(T),ye=M.useCallback(()=>{const Ye=X.current;if(!Ye)return;const nt=ne(Ye);nt.top!==null&&(Ye.style.top=nt.top),nt.left!==null&&(Ye.style.left=nt.left),Ye.style.transformOrigin=nt.transformOrigin,Ce(!0)},[ne]);M.useEffect(()=>(F&&window.addEventListener("scroll",ye),()=>window.removeEventListener("scroll",ye)),[l,F,ye]);const te=(Ye,nt)=>{U&&U(Ye,nt),ye()},ve=()=>{Ce(!1)};M.useEffect(()=>{T&&ye()}),M.useImperativeHandle(o,()=>T?{updatePosition:()=>{ye()}}:null,[T,ye]),M.useEffect(()=>{if(!T)return;const Ye=nE(()=>{ye()}),nt=Od(l);return nt.addEventListener("resize",Ye),()=>{Ye.clear(),nt.removeEventListener("resize",Ye)}},[l,T,ye]);let Se=A;A==="auto"&&!_.muiSupportAuto&&(Se=void 0);const he=v||(l?_i(R8(l)).body:void 0),Ne=(i=k==null?void 0:k.root)!=null?i:yPe,Pe=(a=k==null?void 0:k.paper)!=null?a:Bce,Ze=mr({elementType:Pe,externalSlotProps:$({},Q,{style:j?Q.style:$({},Q.style,{opacity:0})}),additionalProps:{elevation:S,ref:Y},ownerState:W,className:bt(ee.paper,Q==null?void 0:Q.className)}),st=mr({elementType:Ne,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:V,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:he,open:T},ownerState:W,className:bt(ee.root,b)}),{slotProps:Qe}=st,Je=ut(st,gPe);return D.jsx(Ne,$({},Je,!jh(Ne)&&{slotProps:Qe,disableScrollLock:F},{children:D.jsx(_,$({appear:!0,in:T,onEntering:te,onExited:ve,timeout:Se},P,{children:D.jsx(Pe,$({},Ze,{children:p}))}))}))}),lN=vPe;function OPe(e){return qt("MuiMenu",e)}Gt("MuiMenu",["root","paper","list"]);const SPe=["onEntering"],EPe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wPe={vertical:"top",horizontal:"right"},TPe={vertical:"top",horizontal:"left"},xPe=e=>{const{classes:t}=e;return Wt({root:["root"],paper:["paper"],list:["list"]},OPe,t)},kPe=Le(lN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CPe=Le(Bce,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_Pe=Le(oE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),APe=M.forwardRef(function(t,n){var r,i;const a=Pt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:h,open:p,PaperProps:b={},PopoverClasses:v,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},variant:T="selectedMenu",slots:x={},slotProps:k={}}=a,C=ut(a.TransitionProps,SPe),I=ut(a,EPe),_=Ki(),A=_.direction==="rtl",U=$({},a,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:w,PaperProps:b,transitionDuration:S,TransitionProps:C,variant:T}),F=xPe(U),P=s&&!c&&p,V=M.useRef(null),Q=(ne,j)=>{V.current&&V.current.adjustStyleForScrollbar(ne,_),w&&w(ne,j)},X=ne=>{ne.key==="Tab"&&(ne.preventDefault(),h&&h(ne,"tabKeyDown"))};let Y=-1;M.Children.map(o,(ne,j)=>{M.isValidElement(ne)&&(ne.props.disabled||(T==="selectedMenu"&&ne.props.selected||Y===-1)&&(Y=j))});const W=(r=x.paper)!=null?r:CPe,ee=(i=k.paper)!=null?i:b,J=mr({elementType:x.root,externalSlotProps:k.root,ownerState:U,className:[F.root,l]}),K=mr({elementType:W,externalSlotProps:ee,ownerState:U,className:F.paper});return D.jsx(kPe,$({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?wPe:TPe,slots:{paper:W,root:x.root},slotProps:{root:J,paper:K},open:p,ref:n,transitionDuration:S,TransitionProps:$({onEntering:Q},C),ownerState:U},I,{classes:v,children:D.jsx(_Pe,$({onKeyDown:X,actions:V,autoFocus:s&&(Y===-1||c),autoFocusItem:P,variant:T},d,{className:bt(F.list,d.className),children:o}))}))}),RPe=APe;function IPe(e){return qt("MuiMenuItem",e)}const DPe=Gt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),n2=DPe,NPe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PPe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},MPe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=Wt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},IPe,s);return $({},s,l)},LPe=Le(fc,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PPe})(({theme:e,ownerState:t})=>$({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${n2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${n2.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${n2.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${n2.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${n2.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VK.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VK.inset}`]:{marginLeft:52},[`& .${SR.root}`]:{marginTop:0,marginBottom:0},[`& .${SR.inset}`]:{paddingLeft:36},[`& .${XK.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${XK.root} svg`]:{fontSize:"1.25rem"}}))),$Pe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:p}=r,b=ut(r,NPe),v=M.useContext(hd),S=M.useMemo(()=>({dense:s||v.dense||!1,disableGutters:l}),[v.dense,s,l]),w=M.useRef(null);Oa(()=>{i&&w.current&&w.current.focus()},[i]);const T=$({},r,{dense:S.dense,divider:o,disableGutters:l}),x=MPe(r),k=rr(w,n);let C;return r.disabled||(C=h!==void 0?h:-1),D.jsx(hd.Provider,{value:S,children:D.jsx(LPe,$({ref:k,role:d,tabIndex:C,component:a,focusVisibleClassName:bt(x.focusVisible,c),className:bt(x.root,p)},b,{ownerState:T,classes:x}))})}),Sg=$Pe;function FPe(e){return qt("MuiNativeSelect",e)}const BPe=Gt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_z=BPe,UPe=["className","disabled","error","IconComponent","inputRef","variant"],zPe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${vt(n)}`,a&&"iconOpen",r&&"disabled"]};return Wt(o,FPe,t)},Uce=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${_z.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),jPe=Le("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Bs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_z.multiple}`]:t.multiple}]}})(Uce),zce=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${_z.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),HPe=Le("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${vt(n.variant)}`],n.open&&t.iconOpen]}})(zce),VPe=M.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,c=ut(t,UPe),d=$({},t,{disabled:i,variant:l,error:a}),h=zPe(d);return D.jsxs(M.Fragment,{children:[D.jsx(jPe,$({ownerState:d,className:bt(h.select,r),disabled:i,ref:o||n},c)),t.multiple?null:D.jsx(HPe,{as:s,ownerState:d,className:h.icon})]})}),WPe=VPe;var nJ;const QPe=["children","classes","className","label","notched"],YPe=Le("fieldset",{shouldForwardProp:Bs})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),qPe=Le("legend",{shouldForwardProp:Bs})(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function GPe(e){const{className:t,label:n,notched:r}=e,i=ut(e,QPe),a=n!=null&&n!=="",s=$({},e,{notched:r,withLabel:a});return D.jsx(YPe,$({"aria-hidden":!0,className:t,ownerState:s},i,{children:D.jsx(qPe,{ownerState:s,children:a?D.jsx("span",{children:n}):nJ||(nJ=D.jsx("span",{className:"notranslate",children:"​"}))})}))}const ZPe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],XPe=e=>{const{classes:t}=e,r=Wt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},eRe,t);return $({},t,r)},KPe=Le(tN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:JD})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ph.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ph.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ph.focused} .${ph.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ph.error} .${ph.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ph.disabled} .${ph.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),JPe=Le(GPe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),e7e=Le(nN,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:eN})(({theme:e,ownerState:t})=>$({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),jce=M.forwardRef(function(t,n){var r,i,a,s,o;const l=Pt({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:h="input",label:p,multiline:b=!1,notched:v,slots:S={},type:w="text"}=l,T=ut(l,ZPe),x=XPe(l),k=Jh(),C=Ug({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=$({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:k,fullWidth:d,hiddenLabel:C.hiddenLabel,multiline:b,size:C.size,type:w}),_=(r=(i=S.root)!=null?i:c.Root)!=null?r:KPe,A=(a=(s=S.input)!=null?s:c.Input)!=null?a:e7e;return D.jsx(Tz,$({slots:{root:_,input:A},renderSuffix:U=>D.jsx(JPe,{ownerState:I,className:x.notchedOutline,label:p!=null&&p!==""&&C.required?o||(o=D.jsxs(M.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(U.startAdornment||U.filled||U.focused)}),fullWidth:d,inputComponent:h,multiline:b,ref:n,type:w},T,{classes:$({},x,{notchedOutline:null})}))});jce.muiName="Input";const Hce=jce,t7e=ts(D.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),n7e=ts(D.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),r7e=Le("span",{shouldForwardProp:Bs})({position:"relative",display:"flex"}),i7e=Le(t7e)({transform:"scale(1)"}),a7e=Le(n7e)(({theme:e,ownerState:t})=>$({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function Vce(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=$({},e,{checked:t});return D.jsxs(r7e,{className:n.root,ownerState:i,children:[D.jsx(i7e,{fontSize:r,className:n.background,ownerState:i}),D.jsx(a7e,{fontSize:r,className:n.dot,ownerState:i})]})}const s7e=M.createContext(void 0),Wce=s7e;function o7e(){return M.useContext(Wce)}function l7e(e){return qt("MuiRadio",e)}const rJ=Gt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),u7e=["checked","checkedIcon","color","icon","name","onChange","size","className"],c7e=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${vt(n)}`,r!=="medium"&&`size${vt(r)}`]};return $({},t,Wt(i,l7e,t))},d7e=Le(kz,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${vt(n.size)}`],t[`color${vt(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${rJ.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${rJ.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function f7e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const iJ=D.jsx(Vce,{checked:!0}),aJ=D.jsx(Vce,{}),h7e=M.forwardRef(function(t,n){var r,i;const a=Pt({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=iJ,color:l="primary",icon:c=aJ,name:d,onChange:h,size:p="medium",className:b}=a,v=ut(a,u7e),S=$({},a,{color:l,size:p}),w=c7e(S),T=o7e();let x=s;const k=dR(h,T&&T.onChange);let C=d;return T&&(typeof x>"u"&&(x=f7e(T.value,a.value)),typeof C>"u"&&(C=T.name)),D.jsx(d7e,$({type:"radio",icon:M.cloneElement(c,{fontSize:(r=aJ.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(o,{fontSize:(i=iJ.props.fontSize)!=null?i:p}),ownerState:S,classes:w,name:C,checked:x,onChange:k,ref:n,className:bt(w.root,b)},v))}),sJ=h7e,p7e=["actions","children","defaultValue","name","onChange","value"],m7e=M.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:a,name:s,onChange:o,value:l}=t,c=ut(t,p7e),d=M.useRef(null),[h,p]=Ls({controlled:l,default:a,name:"RadioGroup"});M.useImperativeHandle(r,()=>({focus:()=>{let w=d.current.querySelector("input:not(:disabled):checked");w||(w=d.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const b=rr(n,d),v=Cf(s),S=M.useMemo(()=>({name:v,onChange(w){p(w.target.value),o&&o(w,w.target.value)},value:h}),[v,o,p,h]);return D.jsx(Wce.Provider,{value:S,children:D.jsx(Cz,$({role:"radiogroup",ref:b},c,{children:i}))})}),g7e=m7e;function b7e(e){return qt("MuiSelect",e)}const r2=Gt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oJ;const y7e=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],v7e=Le("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${r2.select}`]:t.select},{[`&.${r2.select}`]:t[n.variant]},{[`&.${r2.error}`]:t.error},{[`&.${r2.multiple}`]:t.multiple}]}})(Uce,{[`&.${r2.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),O7e=Le("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${vt(n.variant)}`],n.open&&t.iconOpen]}})(zce),S7e=Le("input",{shouldForwardProp:e=>uz(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lJ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function E7e(e){return e==null||typeof e=="string"&&!e.trim()}const w7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${vt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Wt(o,b7e,t)},T7e=M.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:c,defaultOpen:d,defaultValue:h,disabled:p,displayEmpty:b,error:v=!1,IconComponent:S,inputRef:w,labelId:T,MenuProps:x={},multiple:k,name:C,onBlur:I,onChange:_,onClose:A,onFocus:U,onOpen:F,open:P,readOnly:V,renderValue:Q,SelectDisplayProps:X={},tabIndex:Y,value:W,variant:ee="standard"}=t,J=ut(t,y7e),[K,ne]=Ls({controlled:W,default:h,name:"Select"}),[j,Ce]=Ls({controlled:P,default:d,name:"Select"}),ye=M.useRef(null),te=M.useRef(null),[ve,Se]=M.useState(null),{current:he}=M.useRef(P!=null),[Ne,Pe]=M.useState(),Ze=rr(n,w),st=M.useCallback(St=>{te.current=St,St&&Se(St)},[]),Qe=ve==null?void 0:ve.parentNode;M.useImperativeHandle(Ze,()=>({focus:()=>{te.current.focus()},node:ye.current,value:K}),[K]),M.useEffect(()=>{d&&j&&ve&&!he&&(Pe(o?null:Qe.clientWidth),te.current.focus())},[ve,o]),M.useEffect(()=>{s&&te.current.focus()},[s]),M.useEffect(()=>{if(!T)return;const St=_i(te.current).getElementById(T);if(St){const Kt=()=>{getSelection().isCollapsed&&te.current.focus()};return St.addEventListener("click",Kt),()=>{St.removeEventListener("click",Kt)}}},[T]);const Je=(St,Kt)=>{St?F&&F(Kt):A&&A(Kt),he||(Pe(o?null:Qe.clientWidth),Ce(St))},Ye=St=>{St.button===0&&(St.preventDefault(),te.current.focus(),Je(!0,St))},nt=St=>{Je(!1,St)},tt=M.Children.toArray(l),ht=St=>{const Kt=tt.find(pt=>pt.props.value===St.target.value);Kt!==void 0&&(ne(Kt.props.value),_&&_(St,Kt))},_t=St=>Kt=>{let pt;if(Kt.currentTarget.hasAttribute("tabindex")){if(k){pt=Array.isArray(K)?K.slice():[];const At=K.indexOf(St.props.value);At===-1?pt.push(St.props.value):pt.splice(At,1)}else pt=St.props.value;if(St.props.onClick&&St.props.onClick(Kt),K!==pt&&(ne(pt),_)){const At=Kt.nativeEvent||Kt,en=new At.constructor(At.type,At);Object.defineProperty(en,"target",{writable:!0,value:{value:pt,name:C}}),_(en,St)}k||Je(!1,Kt)}},ot=St=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(St.key)!==-1&&(St.preventDefault(),Je(!0,St))},ge=ve!==null&&j,ue=St=>{!ge&&I&&(Object.defineProperty(St,"target",{writable:!0,value:{value:K,name:C}}),I(St))};delete J["aria-invalid"];let me,We;const et=[];let qe=!1;(yR({value:K})||b)&&(Q?me=Q(K):qe=!0);const pe=tt.map(St=>{if(!M.isValidElement(St))return null;let Kt;if(k){if(!Array.isArray(K))throw new Error(yg(2));Kt=K.some(pt=>lJ(pt,St.props.value)),Kt&&qe&&et.push(St.props.children)}else Kt=lJ(K,St.props.value),Kt&&qe&&(We=St.props.children);return M.cloneElement(St,{"aria-selected":Kt?"true":"false",onClick:_t(St),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),St.props.onKeyUp&&St.props.onKeyUp(pt)},role:"option",selected:Kt,value:void 0,"data-value":St.props.value})});qe&&(k?et.length===0?me=null:me=et.reduce((St,Kt,pt)=>(St.push(Kt),pt{const{classes:t}=e;return t},Az={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Bs(e)&&e!=="variant",slot:"Root"},A7e=Le(Pce,Az)(""),R7e=Le(Hce,Az)(""),I7e=Le(Ace,Az)(""),Qce=M.forwardRef(function(t,n){const r=Pt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Sce,id:h,input:p,inputProps:b,label:v,labelId:S,MenuProps:w,multiple:T=!1,native:x=!1,onClose:k,onOpen:C,open:I,renderValue:_,SelectDisplayProps:A,variant:U="outlined"}=r,F=ut(r,k7e),P=x?WPe:x7e,V=Jh(),Q=Ug({props:r,muiFormControl:V,states:["variant","error"]}),X=Q.variant||U,Y=$({},r,{variant:X,classes:s}),W=_7e(Y),ee=ut(W,C7e),J=p||{standard:D.jsx(A7e,{ownerState:Y}),outlined:D.jsx(R7e,{label:v,ownerState:Y}),filled:D.jsx(I7e,{ownerState:Y})}[X],K=rr(n,J.ref);return D.jsx(M.Fragment,{children:M.cloneElement(J,$({inputComponent:P,inputProps:$({children:a,error:Q.error,IconComponent:d,variant:X,type:void 0,multiple:T},x?{id:h}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:S,MenuProps:w,onClose:k,onOpen:C,open:I,renderValue:_,SelectDisplayProps:$({id:h},A)},b,{classes:b?Po(ee,b.classes):ee},p?p.props.inputProps:{})},(T&&x||c)&&X==="outlined"?{notched:!0}:{},{ref:K,className:bt(J.props.className,o,W.root)},!p&&{variant:X},F))})});Qce.muiName="Select";const Yce=Qce,D7e=e=>!e||!jh(e);function N7e(e){return qt("MuiSlider",e)}const hf=Gt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),P7e=e=>{const{open:t}=e;return{offset:bt(t&&hf.valueLabelOpen),circle:hf.valueLabelCircle,label:hf.valueLabelLabel}};function M7e(e){const{children:t,className:n,value:r}=e,i=P7e(e);return t?M.cloneElement(t,{className:bt(t.props.className)},D.jsxs(M.Fragment,{children:[t.props.children,D.jsx("span",{className:bt(i.offset,n),"aria-hidden":!0,children:D.jsx("span",{className:i.circle,children:D.jsx("span",{className:i.label,children:r})})})]})):null}const L7e=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function uJ(e){return e}const $7e=Le("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${vt(n.color)}`],n.size!=="medium"&&t[`size${vt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>$({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&$({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&$({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${hf.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${hf.dragging}`]:{[`& .${hf.thumb}, & .${hf.track}`]:{transition:"none"}}})),F7e=Le("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>$({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),B7e=Le("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?qD(e.palette[t.color].main,.62):YD(e.palette[t.color].main,.5);return $({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),U7e=Le("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${vt(n.color)}`],n.size!=="medium"&&t[`thumbSize${vt(n.size)}`]]}})(({theme:e,ownerState:t})=>$({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":$({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${hf.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Bn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${hf.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Bn(e.palette[t.color].main,.16)}`},[`&.${hf.disabled}`]:{"&:hover":{boxShadow:"none"}}})),z7e=Le(M7e,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>$({[`&.${hf.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),j7e=Le("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>uz(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>$({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),H7e=Le("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>uz(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),V7e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${vt(o)}`,l&&`size${vt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${vt(l)}`,o&&`thumbColor${vt(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Wt(c,N7e,s)},W7e=({children:e})=>e,Q7e=M.forwardRef(function(t,n){var r,i,a,s,o,l,c,d,h,p,b,v,S,w,T,x,k,C,I,_,A,U,F,P;const V=Pt({props:t,name:"MuiSlider"}),X=Ki().direction==="rtl",{"aria-label":Y,"aria-valuetext":W,"aria-labelledby":ee,component:J="span",components:K={},componentsProps:ne={},color:j="primary",classes:Ce,className:ye,disableSwap:te=!1,disabled:ve=!1,getAriaLabel:Se,getAriaValueText:he,marks:Ne=!1,max:Pe=100,min:Ze=0,orientation:st="horizontal",size:Qe="medium",step:Je=1,scale:Ye=uJ,slotProps:nt,slots:tt,track:ht="normal",valueLabelDisplay:_t="off",valueLabelFormat:ot=uJ}=V,ge=ut(V,L7e),ue=$({},V,{isRtl:X,max:Pe,min:Ze,classes:Ce,disabled:ve,disableSwap:te,orientation:st,marks:Ne,color:j,size:Qe,step:Je,scale:Ye,track:ht,valueLabelDisplay:_t,valueLabelFormat:ot}),{axisProps:me,getRootProps:We,getHiddenInputProps:et,getThumbProps:qe,open:pe,active:Te,axis:Oe,focusedThumbIndex:De,range:je,dragging:Ot,marks:Bt,values:Xt,trackOffset:St,trackLeap:Kt,getThumbStyle:pt}=S5e($({},ue,{rootRef:n}));ue.marked=Bt.length>0&&Bt.some(it=>it.label),ue.dragging=Ot,ue.focusedThumbIndex=De;const At=V7e(ue),en=(r=(i=tt==null?void 0:tt.root)!=null?i:K.Root)!=null?r:$7e,In=(a=(s=tt==null?void 0:tt.rail)!=null?s:K.Rail)!=null?a:F7e,Ln=(o=(l=tt==null?void 0:tt.track)!=null?l:K.Track)!=null?o:B7e,Qn=(c=(d=tt==null?void 0:tt.thumb)!=null?d:K.Thumb)!=null?c:U7e,ur=(h=(p=tt==null?void 0:tt.valueLabel)!=null?p:K.ValueLabel)!=null?h:z7e,Wr=(b=(v=tt==null?void 0:tt.mark)!=null?v:K.Mark)!=null?b:j7e,$e=(S=(w=tt==null?void 0:tt.markLabel)!=null?w:K.MarkLabel)!=null?S:H7e,Ve=(T=(x=tt==null?void 0:tt.input)!=null?x:K.Input)!=null?T:"input",ct=(k=nt==null?void 0:nt.root)!=null?k:ne.root,Dt=(C=nt==null?void 0:nt.rail)!=null?C:ne.rail,Qt=(I=nt==null?void 0:nt.track)!=null?I:ne.track,Fn=(_=nt==null?void 0:nt.thumb)!=null?_:ne.thumb,yn=(A=nt==null?void 0:nt.valueLabel)!=null?A:ne.valueLabel,rn=(U=nt==null?void 0:nt.mark)!=null?U:ne.mark,Zt=(F=nt==null?void 0:nt.markLabel)!=null?F:ne.markLabel,$n=(P=nt==null?void 0:nt.input)!=null?P:ne.input,Ge=mr({elementType:en,getSlotProps:We,externalSlotProps:ct,externalForwardedProps:ge,additionalProps:$({},D7e(en)&&{as:J}),ownerState:$({},ue,ct==null?void 0:ct.ownerState),className:[At.root,ye]}),Ke=mr({elementType:In,externalSlotProps:Dt,ownerState:ue,className:At.rail}),dt=mr({elementType:Ln,externalSlotProps:Qt,additionalProps:{style:$({},me[Oe].offset(St),me[Oe].leap(Kt))},ownerState:$({},ue,Qt==null?void 0:Qt.ownerState),className:At.track}),Et=mr({elementType:Qn,getSlotProps:qe,externalSlotProps:Fn,ownerState:$({},ue,Fn==null?void 0:Fn.ownerState),className:At.thumb}),Jn=mr({elementType:ur,externalSlotProps:yn,ownerState:$({},ue,yn==null?void 0:yn.ownerState),className:At.valueLabel}),bn=mr({elementType:Wr,externalSlotProps:rn,ownerState:ue,className:At.mark}),Yn=mr({elementType:$e,externalSlotProps:Zt,ownerState:ue,className:At.markLabel}),mi=mr({elementType:Ve,getSlotProps:et,externalSlotProps:$n,ownerState:ue});return D.jsxs(en,$({},Ge,{children:[D.jsx(In,$({},Ke)),D.jsx(Ln,$({},dt)),Bt.filter(it=>it.value>=Ze&&it.value<=Pe).map((it,Ue)=>{const ke=bR(it.value,Ze,Pe),ln=me[Oe].offset(ke);let qn;return ht===!1?qn=Xt.indexOf(it.value)!==-1:qn=ht==="normal"&&(je?it.value>=Xt[0]&&it.value<=Xt[Xt.length-1]:it.value<=Xt[0])||ht==="inverted"&&(je?it.value<=Xt[0]||it.value>=Xt[Xt.length-1]:it.value>=Xt[0]),D.jsxs(M.Fragment,{children:[D.jsx(Wr,$({"data-index":Ue},bn,!jh(Wr)&&{markActive:qn},{style:$({},ln,bn.style),className:bt(bn.className,qn&&At.markActive)})),it.label!=null?D.jsx($e,$({"aria-hidden":!0,"data-index":Ue},Yn,!jh($e)&&{markLabelActive:qn},{style:$({},ln,Yn.style),className:bt(At.markLabel,Yn.className,qn&&At.markLabelActive),children:it.label})):null]},Ue)}),Xt.map((it,Ue)=>{const ke=bR(it,Ze,Pe),ln=me[Oe].offset(ke),qn=_t==="off"?W7e:ur;return D.jsx(qn,$({},!jh(qn)&&{valueLabelFormat:ot,valueLabelDisplay:_t,value:typeof ot=="function"?ot(Ye(it),Ue):ot,index:Ue,open:pe===Ue||Te===Ue||_t==="on",disabled:ve},Jn,{children:D.jsx(Qn,$({"data-index":Ue},Et,{className:bt(At.thumb,Et.className,Te===Ue&&At.active,De===Ue&&At.focusVisible),style:$({},ln,pt(Ue),Et.style),children:D.jsx(Ve,$({"data-index":Ue,"aria-label":Se?Se(Ue):Y,"aria-valuenow":Ye(it),"aria-labelledby":ee,"aria-valuetext":he?he(Ye(it),Ue):W,value:Xt[Ue]},mi))}))}),Ue)})]}))}),Y7e=Q7e;function q7e(e){return qt("MuiTooltip",e)}const G7e=Gt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),W0=G7e,Z7e=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function X7e(e){return Math.round(e*1e5)/1e5}const K7e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${vt(a.split("-")[0])}`],arrow:["arrow"]};return Wt(s,q7e,t)},J7e=Le(iE,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${W0.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${W0.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${W0.arrow}`]:$({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${W0.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),e8e=Le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${vt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Bn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${X7e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${W0.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${W0.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${W0.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${W0.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),t8e=Le("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Bn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let v4=!1;const cJ=new Fk;let i2={x:0,y:0};function O4(e,t){return n=>{t&&t(n),e(n)}}const n8e=M.forwardRef(function(t,n){var r,i,a,s,o,l,c,d,h,p,b,v,S,w,T,x,k,C,I;const _=Pt({props:t,name:"MuiTooltip"}),{arrow:A=!1,children:U,components:F={},componentsProps:P={},describeChild:V=!1,disableFocusListener:Q=!1,disableHoverListener:X=!1,disableInteractive:Y=!1,disableTouchListener:W=!1,enterDelay:ee=100,enterNextDelay:J=0,enterTouchDelay:K=700,followCursor:ne=!1,id:j,leaveDelay:Ce=0,leaveTouchDelay:ye=1500,onClose:te,onOpen:ve,open:Se,placement:he="bottom",PopperComponent:Ne,PopperProps:Pe={},slotProps:Ze={},slots:st={},title:Qe,TransitionComponent:Je=vR,TransitionProps:Ye}=_,nt=ut(_,Z7e),tt=M.isValidElement(U)?U:D.jsx("span",{children:U}),ht=Ki(),_t=ht.direction==="rtl",[ot,ge]=M.useState(),[ue,me]=M.useState(null),We=M.useRef(!1),et=Y||ne,qe=hb(),pe=hb(),Te=hb(),Oe=hb(),[De,je]=Ls({controlled:Se,default:!1,name:"Tooltip",state:"open"});let Ot=De;const Bt=Cf(j),Xt=M.useRef(),St=on(()=>{Xt.current!==void 0&&(document.body.style.WebkitUserSelect=Xt.current,Xt.current=void 0),Oe.clear()});M.useEffect(()=>St,[St]);const Kt=Dn=>{cJ.clear(),v4=!0,je(!0),ve&&!Ot&&ve(Dn)},pt=on(Dn=>{cJ.start(800+Ce,()=>{v4=!1}),je(!1),te&&Ot&&te(Dn),qe.start(ht.transitions.duration.shortest,()=>{We.current=!1})}),At=Dn=>{We.current&&Dn.type!=="touchstart"||(ot&&ot.removeAttribute("title"),pe.clear(),Te.clear(),ee||v4&&J?pe.start(v4?J:ee,()=>{Kt(Dn)}):Kt(Dn))},en=Dn=>{pe.clear(),Te.start(Ce,()=>{pt(Dn)})},{isFocusVisibleRef:In,onBlur:Ln,onFocus:Qn,ref:ur}=MD(),[,Wr]=M.useState(!1),$e=Dn=>{Ln(Dn),In.current===!1&&(Wr(!1),en(Dn))},Ve=Dn=>{ot||ge(Dn.currentTarget),Qn(Dn),In.current===!0&&(Wr(!0),At(Dn))},ct=Dn=>{We.current=!0;const Gn=tt.props;Gn.onTouchStart&&Gn.onTouchStart(Dn)},Dt=At,Qt=en,Fn=Dn=>{ct(Dn),Te.clear(),qe.clear(),St(),Xt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Oe.start(K,()=>{document.body.style.WebkitUserSelect=Xt.current,At(Dn)})},yn=Dn=>{tt.props.onTouchEnd&&tt.props.onTouchEnd(Dn),St(),Te.start(ye,()=>{pt(Dn)})};M.useEffect(()=>{if(!Ot)return;function Dn(Gn){(Gn.key==="Escape"||Gn.key==="Esc")&&pt(Gn)}return document.addEventListener("keydown",Dn),()=>{document.removeEventListener("keydown",Dn)}},[pt,Ot]);const rn=rr(tt.ref,ur,ge,n);!Qe&&Qe!==0&&(Ot=!1);const Zt=M.useRef(),$n=Dn=>{const Gn=tt.props;Gn.onMouseMove&&Gn.onMouseMove(Dn),i2={x:Dn.clientX,y:Dn.clientY},Zt.current&&Zt.current.update()},Ge={},Ke=typeof Qe=="string";V?(Ge.title=!Ot&&Ke&&!X?Qe:null,Ge["aria-describedby"]=Ot?Bt:null):(Ge["aria-label"]=Ke?Qe:null,Ge["aria-labelledby"]=Ot&&!Ke?Bt:null);const dt=$({},Ge,nt,tt.props,{className:bt(nt.className,tt.props.className),onTouchStart:ct,ref:rn},ne?{onMouseMove:$n}:{}),Et={};W||(dt.onTouchStart=Fn,dt.onTouchEnd=yn),X||(dt.onMouseOver=O4(Dt,dt.onMouseOver),dt.onMouseLeave=O4(Qt,dt.onMouseLeave),et||(Et.onMouseOver=Dt,Et.onMouseLeave=Qt)),Q||(dt.onFocus=O4(Ve,dt.onFocus),dt.onBlur=O4($e,dt.onBlur),et||(Et.onFocus=Ve,Et.onBlur=$e));const Jn=M.useMemo(()=>{var Dn;let Gn=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(Dn=Pe.popperOptions)!=null&&Dn.modifiers&&(Gn=Gn.concat(Pe.popperOptions.modifiers)),$({},Pe.popperOptions,{modifiers:Gn})},[ue,Pe]),bn=$({},_,{isRtl:_t,arrow:A,disableInteractive:et,placement:he,PopperComponentProp:Ne,touch:We.current}),Yn=K7e(bn),mi=(r=(i=st.popper)!=null?i:F.Popper)!=null?r:J7e,it=(a=(s=(o=st.transition)!=null?o:F.Transition)!=null?s:Je)!=null?a:vR,Ue=(l=(c=st.tooltip)!=null?c:F.Tooltip)!=null?l:e8e,ke=(d=(h=st.arrow)!=null?h:F.Arrow)!=null?d:t8e,ln=U2(mi,$({},Pe,(p=Ze.popper)!=null?p:P.popper,{className:bt(Yn.popper,Pe==null?void 0:Pe.className,(b=(v=Ze.popper)!=null?v:P.popper)==null?void 0:b.className)}),bn),qn=U2(it,$({},Ye,(S=Ze.transition)!=null?S:P.transition),bn),Jr=U2(Ue,$({},(w=Ze.tooltip)!=null?w:P.tooltip,{className:bt(Yn.tooltip,(T=(x=Ze.tooltip)!=null?x:P.tooltip)==null?void 0:T.className)}),bn),Ie=U2(ke,$({},(k=Ze.arrow)!=null?k:P.arrow,{className:bt(Yn.arrow,(C=(I=Ze.arrow)!=null?I:P.arrow)==null?void 0:C.className)}),bn);return D.jsxs(M.Fragment,{children:[M.cloneElement(tt,dt),D.jsx(mi,$({as:Ne??iE,placement:he,anchorEl:ne?{getBoundingClientRect:()=>({top:i2.y,left:i2.x,right:i2.x,bottom:i2.y,width:0,height:0})}:ot,popperRef:Zt,open:ot?Ot:!1,id:Bt,transition:!0},Et,ln,{popperOptions:Jn,children:({TransitionProps:Dn})=>D.jsx(it,$({timeout:ht.transitions.duration.shorter},Dn,qn,{children:D.jsxs(Ue,$({},Jr,{children:[Qe,A?D.jsx(ke,$({},Ie,{ref:me})):null]}))}))}))]})}),ab=n8e;function r8e(e){return qt("MuiSwitch",e)}const i8e=Gt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),il=i8e,a8e=["className","color","edge","size","sx"],s8e=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${vt(n)}`,`size${vt(r)}`],switchBase:["switchBase",`color${vt(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Wt(o,r8e,t);return $({},t,l)},o8e=Le("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${vt(n.edge)}`],t[`size${vt(n.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${il.thumb}`]:{width:16,height:16},[`& .${il.switchBase}`]:{padding:4,[`&.${il.checked}`]:{transform:"translateX(16px)"}}})),l8e=Le(kz,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${il.input}`]:t.input},n.color!=="default"&&t[`color${vt(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${il.checked}`]:{transform:"translateX(20px)"},[`&.${il.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${il.checked} + .${il.track}`]:{opacity:.5},[`&.${il.disabled} + .${il.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${il.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${il.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${il.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?qD(e.palette[t.color].main,.62):YD(e.palette[t.color].main,.55)}`}},[`&.${il.checked} + .${il.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),u8e=Le("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),c8e=Le("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),d8e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,c=ut(r,a8e),d=$({},r,{color:a,edge:s,size:o}),h=s8e(d),p=D.jsx(c8e,{className:h.thumb,ownerState:d});return D.jsxs(o8e,{className:bt(h.root,i),sx:l,ownerState:d,children:[D.jsx(l8e,$({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:d},c,{classes:$({},h,{root:h.switchBase})})),D.jsx(u8e,{className:h.track,ownerState:d})]})}),f8e=d8e;function h8e(e){return qt("MuiTab",e)}const p8e=Gt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),H1=p8e,m8e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],g8e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:s,selected:o,disabled:l}=e,c={root:["root",a&&s&&"labelIcon",`textColor${vt(n)}`,r&&"fullWidth",i&&"wrapped",o&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Wt(c,h8e,t)},b8e=Le(fc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${vt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${H1.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${H1.selected}`]:{opacity:1},[`&.${H1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${H1.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${H1.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${H1.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${H1.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),y8e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:o,icon:l,iconPosition:c="top",indicator:d,label:h,onChange:p,onClick:b,onFocus:v,selected:S,selectionFollowsFocus:w,textColor:T="inherit",value:x,wrapped:k=!1}=r,C=ut(r,m8e),I=$({},r,{disabled:a,disableFocusRipple:s,selected:S,icon:!!l,iconPosition:c,label:!!h,fullWidth:o,textColor:T,wrapped:k}),_=g8e(I),A=l&&h&&M.isValidElement(l)?M.cloneElement(l,{className:bt(_.iconWrapper,l.props.className)}):l,U=P=>{!S&&p&&p(P,x),b&&b(P)},F=P=>{w&&!S&&p&&p(P,x),v&&v(P)};return D.jsxs(b8e,$({focusRipple:!s,className:bt(_.root,i),ref:n,role:"tab","aria-selected":S,disabled:a,onClick:U,onFocus:F,ownerState:I,tabIndex:S?0:-1},C,{children:[c==="top"||c==="start"?D.jsxs(M.Fragment,{children:[A,h]}):D.jsxs(M.Fragment,{children:[h,A]}),d]}))}),dJ=y8e;function v8e(e){return qt("MuiToolbar",e)}Gt("MuiToolbar",["root","gutters","regular","dense"]);const O8e=["className","component","disableGutters","variant"],S8e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Wt({root:["root",!n&&"gutters",r]},v8e,t)},E8e=Le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),w8e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=ut(r,O8e),c=$({},r,{component:a,disableGutters:s,variant:o}),d=S8e(c);return D.jsx(E8e,$({as:a,className:bt(d.root,i),ref:n,ownerState:c},l))}),qce=w8e,T8e=ts(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),x8e=ts(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function k8e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function C8e(e,t,n,r={},i=()=>{}){const{ease:a=k8e,duration:s=300}=r;let o=null;const l=t[e];let c=!1;const d=()=>{c=!0},h=p=>{if(c){i(new Error("Animation cancelled"));return}o===null&&(o=p);const b=Math.min(1,(p-o)/s);if(t[e]=a(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return l===n?(i(new Error("Element already at target position")),d):(requestAnimationFrame(h),d)}const _8e=["onChange"],A8e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function R8e(e){const{onChange:t}=e,n=ut(e,_8e),r=M.useRef(),i=M.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Oa(()=>{const s=nE(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),o=Od(i.current);return o.addEventListener("resize",s),()=>{s.clear(),o.removeEventListener("resize",s)}},[t]),M.useEffect(()=>{a(),t(r.current)},[t]),D.jsx("div",$({style:A8e,ref:i},n))}function I8e(e){return qt("MuiTabScrollButton",e)}const D8e=Gt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),N8e=D8e,P8e=["className","slots","slotProps","direction","orientation","disabled"],M8e=e=>{const{classes:t,orientation:n,disabled:r}=e;return Wt({root:["root",n,r&&"disabled"]},I8e,t)},L8e=Le(fc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${N8e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),$8e=M.forwardRef(function(t,n){var r,i;const a=Pt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:o={},slotProps:l={},direction:c}=a,d=ut(a,P8e),p=Ki().direction==="rtl",b=$({isRtl:p},a),v=M8e(b),S=(r=o.StartScrollButtonIcon)!=null?r:T8e,w=(i=o.EndScrollButtonIcon)!=null?i:x8e,T=mr({elementType:S,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),x=mr({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return D.jsx(L8e,$({component:"div",className:bt(v.root,s),ref:n,role:null,ownerState:b,tabIndex:null},d,{children:c==="left"?D.jsx(S,$({},T)):D.jsx(w,$({},x))}))}),F8e=$8e;function B8e(e){return qt("MuiTabs",e)}const U8e=Gt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),q3=U8e,z8e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],fJ=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,hJ=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,S4=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},j8e=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:s,scrollButtonsHideMobile:o,classes:l}=e;return Wt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",o&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},B8e,l)},H8e=Le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${q3.scrollButtons}`]:t.scrollButtons},{[`& .${q3.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${q3.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),V8e=Le("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),W8e=Le("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Q8e=Le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Y8e=Le(R8e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pJ={},q8e=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiTabs"}),i=Ki(),a=i.direction==="rtl",{"aria-label":s,"aria-labelledby":o,action:l,centered:c=!1,children:d,className:h,component:p="div",allowScrollButtonsMobile:b=!1,indicatorColor:v="primary",onChange:S,orientation:w="horizontal",ScrollButtonComponent:T=F8e,scrollButtons:x="auto",selectionFollowsFocus:k,slots:C={},slotProps:I={},TabIndicatorProps:_={},TabScrollButtonProps:A={},textColor:U="primary",value:F,variant:P="standard",visibleScrollbar:V=!1}=r,Q=ut(r,z8e),X=P==="scrollable",Y=w==="vertical",W=Y?"scrollTop":"scrollLeft",ee=Y?"top":"left",J=Y?"bottom":"right",K=Y?"clientHeight":"clientWidth",ne=Y?"height":"width",j=$({},r,{component:p,allowScrollButtonsMobile:b,indicatorColor:v,orientation:w,vertical:Y,scrollButtons:x,textColor:U,variant:P,visibleScrollbar:V,fixed:!X,hideScrollbar:X&&!V,scrollableX:X&&!Y,scrollableY:X&&Y,centered:c&&!X,scrollButtonsHideMobile:!b}),Ce=j8e(j),ye=mr({elementType:C.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:j}),te=mr({elementType:C.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:j}),[ve,Se]=M.useState(!1),[he,Ne]=M.useState(pJ),[Pe,Ze]=M.useState(!1),[st,Qe]=M.useState(!1),[Je,Ye]=M.useState(!1),[nt,tt]=M.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,_t=M.useRef(null),ot=M.useRef(null),ge=()=>{const pt=_t.current;let At;if(pt){const In=pt.getBoundingClientRect();At={clientWidth:pt.clientWidth,scrollLeft:pt.scrollLeft,scrollTop:pt.scrollTop,scrollLeftNormalized:nCe(pt,i.direction),scrollWidth:pt.scrollWidth,top:In.top,bottom:In.bottom,left:In.left,right:In.right}}let en;if(pt&&F!==!1){const In=ot.current.children;if(In.length>0){const Ln=In[ht.get(F)];en=Ln?Ln.getBoundingClientRect():null}}return{tabsMeta:At,tabMeta:en}},ue=on(()=>{const{tabsMeta:pt,tabMeta:At}=ge();let en=0,In;if(Y)In="top",At&&pt&&(en=At.top-pt.top+pt.scrollTop);else if(In=a?"right":"left",At&&pt){const Qn=a?pt.scrollLeftNormalized+pt.clientWidth-pt.scrollWidth:pt.scrollLeft;en=(a?-1:1)*(At[In]-pt[In]+Qn)}const Ln={[In]:en,[ne]:At?At[ne]:0};if(isNaN(he[In])||isNaN(he[ne]))Ne(Ln);else{const Qn=Math.abs(he[In]-Ln[In]),ur=Math.abs(he[ne]-Ln[ne]);(Qn>=1||ur>=1)&&Ne(Ln)}}),me=(pt,{animation:At=!0}={})=>{At?C8e(W,_t.current,pt,{duration:i.transitions.duration.standard}):_t.current[W]=pt},We=pt=>{let At=_t.current[W];Y?At+=pt:(At+=pt*(a?-1:1),At*=a&&zue()==="reverse"?-1:1),me(At)},et=()=>{const pt=_t.current[K];let At=0;const en=Array.from(ot.current.children);for(let In=0;Inpt){In===0&&(At=pt);break}At+=Ln[K]}return At},qe=()=>{We(-1*et())},pe=()=>{We(et())},Te=M.useCallback(pt=>{tt({overflow:null,scrollbarWidth:pt})},[]),Oe=()=>{const pt={};pt.scrollbarSizeListener=X?D.jsx(Y8e,{onChange:Te,className:bt(Ce.scrollableX,Ce.hideScrollbar)}):null;const en=X&&(x==="auto"&&(Pe||st)||x===!0);return pt.scrollButtonStart=en?D.jsx(T,$({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ye},orientation:w,direction:a?"right":"left",onClick:qe,disabled:!Pe},A,{className:bt(Ce.scrollButtons,A.className)})):null,pt.scrollButtonEnd=en?D.jsx(T,$({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:te},orientation:w,direction:a?"left":"right",onClick:pe,disabled:!st},A,{className:bt(Ce.scrollButtons,A.className)})):null,pt},De=on(pt=>{const{tabsMeta:At,tabMeta:en}=ge();if(!(!en||!At)){if(en[ee]At[J]){const In=At[W]+(en[J]-At[J]);me(In,{animation:pt})}}}),je=on(()=>{X&&x!==!1&&Ye(!Je)});M.useEffect(()=>{const pt=nE(()=>{_t.current&&ue()});let At;const en=Qn=>{Qn.forEach(ur=>{ur.removedNodes.forEach(Wr=>{var $e;($e=At)==null||$e.unobserve(Wr)}),ur.addedNodes.forEach(Wr=>{var $e;($e=At)==null||$e.observe(Wr)})}),pt(),je()},In=Od(_t.current);In.addEventListener("resize",pt);let Ln;return typeof ResizeObserver<"u"&&(At=new ResizeObserver(pt),Array.from(ot.current.children).forEach(Qn=>{At.observe(Qn)})),typeof MutationObserver<"u"&&(Ln=new MutationObserver(en),Ln.observe(ot.current,{childList:!0})),()=>{var Qn,ur;pt.clear(),In.removeEventListener("resize",pt),(Qn=Ln)==null||Qn.disconnect(),(ur=At)==null||ur.disconnect()}},[ue,je]),M.useEffect(()=>{const pt=Array.from(ot.current.children),At=pt.length;if(typeof IntersectionObserver<"u"&&At>0&&X&&x!==!1){const en=pt[0],In=pt[At-1],Ln={root:_t.current,threshold:.99},Qn=Ve=>{Ze(!Ve[0].isIntersecting)},ur=new IntersectionObserver(Qn,Ln);ur.observe(en);const Wr=Ve=>{Qe(!Ve[0].isIntersecting)},$e=new IntersectionObserver(Wr,Ln);return $e.observe(In),()=>{ur.disconnect(),$e.disconnect()}}},[X,x,Je,d==null?void 0:d.length]),M.useEffect(()=>{Se(!0)},[]),M.useEffect(()=>{ue()}),M.useEffect(()=>{De(pJ!==he)},[De,he]),M.useImperativeHandle(l,()=>({updateIndicator:ue,updateScrollButtons:je}),[ue,je]);const Ot=D.jsx(Q8e,$({},_,{className:bt(Ce.indicator,_.className),ownerState:j,style:$({},he,_.style)}));let Bt=0;const Xt=M.Children.map(d,pt=>{if(!M.isValidElement(pt))return null;const At=pt.props.value===void 0?Bt:pt.props.value;ht.set(At,Bt);const en=At===F;return Bt+=1,M.cloneElement(pt,$({fullWidth:P==="fullWidth",indicator:en&&!ve&&Ot,selected:en,selectionFollowsFocus:k,onChange:S,textColor:U,value:At},Bt===1&&F===!1&&!pt.props.tabIndex?{tabIndex:0}:{}))}),St=pt=>{const At=ot.current,en=_i(At).activeElement;if(en.getAttribute("role")!=="tab")return;let Ln=w==="horizontal"?"ArrowLeft":"ArrowUp",Qn=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&a&&(Ln="ArrowRight",Qn="ArrowLeft"),pt.key){case Ln:pt.preventDefault(),S4(At,en,hJ);break;case Qn:pt.preventDefault(),S4(At,en,fJ);break;case"Home":pt.preventDefault(),S4(At,null,fJ);break;case"End":pt.preventDefault(),S4(At,null,hJ);break}},Kt=Oe();return D.jsxs(H8e,$({className:bt(Ce.root,h),ownerState:j,ref:n,as:p},Q,{children:[Kt.scrollButtonStart,Kt.scrollbarSizeListener,D.jsxs(V8e,{className:Ce.scroller,ownerState:j,style:{overflow:nt.overflow,[Y?`margin${a?"Left":"Right"}`:"marginBottom"]:V?void 0:-nt.scrollbarWidth},ref:_t,children:[D.jsx(W8e,{"aria-label":s,"aria-labelledby":o,"aria-orientation":w==="vertical"?"vertical":null,className:Ce.flexContainer,ownerState:j,onKeyDown:St,ref:ot,role:"tablist",children:Xt}),ve&&Ot]}),Kt.scrollButtonEnd]}))}),G8e=q8e;function Z8e(e){return qt("MuiTextField",e)}Gt("MuiTextField",["root"]);const X8e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],K8e={standard:Pce,filled:Ace,outlined:Hce},J8e=e=>{const{classes:t}=e;return Wt({root:["root"]},Z8e,t)},eMe=Le(_f,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tMe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:c,disabled:d=!1,error:h=!1,FormHelperTextProps:p,fullWidth:b=!1,helperText:v,id:S,InputLabelProps:w,inputProps:T,InputProps:x,inputRef:k,label:C,maxRows:I,minRows:_,multiline:A=!1,name:U,onBlur:F,onChange:P,onFocus:V,placeholder:Q,required:X=!1,rows:Y,select:W=!1,SelectProps:ee,type:J,value:K,variant:ne="outlined"}=r,j=ut(r,X8e),Ce=$({},r,{autoFocus:a,color:l,disabled:d,error:h,fullWidth:b,multiline:A,required:X,select:W,variant:ne}),ye=J8e(Ce),te={};ne==="outlined"&&(w&&typeof w.shrink<"u"&&(te.notched=w.shrink),te.label=C),W&&((!ee||!ee.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const ve=Cf(S),Se=v&&ve?`${ve}-helper-text`:void 0,he=C&&ve?`${ve}-label`:void 0,Ne=K8e[ne],Pe=D.jsx(Ne,$({"aria-describedby":Se,autoComplete:i,autoFocus:a,defaultValue:c,fullWidth:b,multiline:A,name:U,rows:Y,maxRows:I,minRows:_,type:J,value:K,id:ve,inputRef:k,onBlur:F,onChange:P,onFocus:V,placeholder:Q,inputProps:T},te,x));return D.jsxs(eMe,$({className:bt(ye.root,o),disabled:d,error:h,fullWidth:b,ref:n,required:X,color:l,variant:ne,ownerState:Ce},j,{children:[C!=null&&C!==""&&D.jsx(Mce,$({htmlFor:ve,id:he},w,{children:C})),W?D.jsx(Yce,$({"aria-describedby":Se,id:ve,labelId:he,value:K,input:Pe},ee,{children:s})):Pe,v&&D.jsx(aE,$({id:Se},p,{children:v}))]}))}),jg=tMe;function nMe(e){return qt("MuiToggleButton",e)}const rMe=Gt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),fO=rMe,iMe=M.createContext({}),Gce=iMe,aMe=M.createContext(void 0),Zce=aMe;function sMe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const oMe=["value"],lMe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],uMe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${vt(a)}`,s]};return Wt(o,nMe,t)},cMe=Le(fc,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${vt(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),$({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${fO.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fO.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Bn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Bn(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),dMe=M.forwardRef(function(t,n){const r=M.useContext(Gce),{value:i}=r,a=ut(r,oMe),s=M.useContext(Zce),o=LD($({},a,{selected:sMe(t.value,i)}),t),l=Pt({props:o,name:"MuiToggleButton"}),{children:c,className:d,color:h="standard",disabled:p=!1,disableFocusRipple:b=!1,fullWidth:v=!1,onChange:S,onClick:w,selected:T,size:x="medium",value:k}=l,C=ut(l,lMe),I=$({},l,{color:h,disabled:p,disableFocusRipple:b,fullWidth:v,size:x}),_=uMe(I),A=F=>{w&&(w(F,k),F.defaultPrevented)||S&&S(F,k)},U=s||"";return D.jsx(cMe,$({className:bt(a.className,_.root,d,U),disabled:p,focusRipple:!b,ref:n,onClick:A,onChange:S,value:k,ownerState:I,"aria-pressed":T},C,{children:c}))}),I8=dMe;function fMe(e){return qt("MuiToggleButtonGroup",e)}const hMe=Gt("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),sa=hMe,pMe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],mMe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${vt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Wt(a,fMe,t)},gMe=Le("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sa.grouped}`]:t.grouped},{[`& .${sa.grouped}`]:t[`grouped${vt(n.orientation)}`]},{[`& .${sa.firstButton}`]:t.firstButton},{[`& .${sa.lastButton}`]:t.lastButton},{[`& .${sa.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>$({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${sa.grouped}`]:$({},e.orientation==="horizontal"?{[`&.${sa.selected} + .${sa.grouped}.${sa.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${sa.selected} + .${sa.grouped}.${sa.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${sa.firstButton},& .${sa.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${sa.lastButton},& .${sa.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${sa.firstButton},& .${sa.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${sa.lastButton},& .${sa.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${sa.lastButton}.${fO.disabled},& .${sa.middleButton}.${fO.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${sa.lastButton}.${fO.disabled},& .${sa.middleButton}.${fO.disabled}`]:{borderTop:"1px solid transparent"}})),bMe=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:h="horizontal",size:p="medium",value:b}=r,v=ut(r,pMe),S=$({},r,{disabled:o,fullWidth:c,orientation:h,size:p}),w=mMe(S),T=M.useCallback((A,U)=>{if(!d)return;const F=b&&b.indexOf(U);let P;b&&F>=0?(P=b.slice(),P.splice(F,1)):P=b?b.concat(U):[U],d(A,P)},[d,b]),x=M.useCallback((A,U)=>{d&&d(A,b===U?null:U)},[d,b]),k=M.useMemo(()=>({className:w.grouped,onChange:l?x:T,value:b,size:p,fullWidth:c,color:s,disabled:o}),[w.grouped,l,x,T,b,p,c,s,o]),C=iCe(i),I=C.length,_=A=>{const U=A===0,F=A===I-1;return U&&F?"":U?w.firstButton:F?w.lastButton:w.middleButton};return D.jsx(gMe,$({role:"group",className:bt(w.root,a),ref:n,ownerState:S},v,{children:D.jsx(Gce.Provider,{value:k,children:C.map((A,U)=>D.jsx(Zce.Provider,{value:_(U),children:A},U))})}))}),yMe=bMe;var Xce={exports:{}},Kce={};/** + `),pDe)),vDe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:c=3.6,value:d=0,variant:h="indeterminate"}=r,p=st(r,fDe),b=$({},r,{color:a,disableShrink:s,size:o,thickness:c,value:d,variant:h}),v=mDe(b),S={},w={},T={};if(h==="determinate"){const x=2*Math.PI*((h0-c)/2);S.strokeDasharray=x.toFixed(3),T["aria-valuenow"]=Math.round(d),S.strokeDashoffset=`${((100-d)/100*x).toFixed(3)}px`,w.transform="rotate(-90deg)"}return D.jsx(gDe,$({className:gt(v.root,i),style:$({width:o,height:o},w,l),ownerState:b,ref:n,role:"progressbar"},T,p,{children:D.jsx(bDe,{className:v.svg,ownerState:b,viewBox:`${h0/2} ${h0/2} ${h0} ${h0}`,children:D.jsx(yDe,{className:v.circle,style:S,ownerState:b,cx:h0,cy:h0,r:(h0-c)/2,fill:"none",strokeWidth:c})})}))}),xm=vDe,ODe=J_e({createStyledComponent:Ne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${yt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Rt({props:e,name:"MuiContainer"})}),Bce=ODe,SDe=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),EDe=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),wDe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=$({html:SDe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},EDe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function TDe(e){const t=Rt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return D.jsxs(P.Fragment,{children:[D.jsx(Mce,{styles:i=>wDe(i,r)}),n]})}function xDe(e){return Ut("MuiModal",e)}zt("MuiModal",["root","hidden","backdrop"]);const kDe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],CDe=e=>{const{open:t,exited:n,classes:r}=e;return $t({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},xDe,r)},_De=Ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ADe=Ne(Gk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),RDe=P.forwardRef(function(t,n){var r,i,a,s,o,l;const c=Rt({name:"MuiModal",props:t}),{BackdropComponent:d=ADe,BackdropProps:h,className:p,closeAfterTransition:b=!1,children:v,container:S,component:w,components:T={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:I=!1,disablePortal:_=!1,disableRestoreFocus:A=!1,disableScrollLock:U=!1,hideBackdrop:F=!1,keepMounted:M=!1,onBackdropClick:V,open:Q,slotProps:X,slots:Y}=c,W=st(c,kDe),ee=$({},c,{closeAfterTransition:b,disableAutoFocus:k,disableEnforceFocus:C,disableEscapeKeyDown:I,disablePortal:_,disableRestoreFocus:A,disableScrollLock:U,hideBackdrop:F,keepMounted:M}),{getRootProps:J,getBackdropProps:K,getTransitionProps:ne,portalRef:j,isTopModal:Ce,exited:ye,hasTransition:te}=I5e($({},ee,{rootRef:n})),ve=$({},ee,{exited:ye}),Se=CDe(ve),he={};if(v.props.tabIndex===void 0&&(he.tabIndex="-1"),te){const{onEnter:Ye,onExited:nt}=ne();he.onEnter=Ye,he.onExited=nt}const Pe=(r=(i=Y==null?void 0:Y.root)!=null?i:T.Root)!=null?r:_De,Me=(a=(s=Y==null?void 0:Y.backdrop)!=null?s:T.Backdrop)!=null?a:d,Ze=(o=X==null?void 0:X.root)!=null?o:x.root,ot=(l=X==null?void 0:X.backdrop)!=null?l:x.backdrop,Qe=gr({elementType:Pe,externalSlotProps:Ze,externalForwardedProps:W,getSlotProps:J,additionalProps:{ref:n,as:w},ownerState:ve,className:gt(p,Ze==null?void 0:Ze.className,Se==null?void 0:Se.root,!ve.open&&ve.exited&&(Se==null?void 0:Se.hidden))}),Je=gr({elementType:Me,externalSlotProps:ot,additionalProps:h,getSlotProps:Ye=>K($({},Ye,{onClick:nt=>{V&&V(nt),Ye!=null&&Ye.onClick&&Ye.onClick(nt)}})),className:gt(ot==null?void 0:ot.className,h==null?void 0:h.className,Se==null?void 0:Se.backdrop),ownerState:ve});return!M&&!Q&&(!te||ye)?null:D.jsx(Rce,{ref:j,container:S,disablePortal:_,children:D.jsxs(Pe,$({},Qe,{children:[!F&&d?D.jsx(Me,$({},Je)):null,D.jsx(Oce,{disableEnforceFocus:C,disableAutoFocus:k,disableRestoreFocus:A,isEnabled:Ce,open:Q,children:P.cloneElement(v,he)})]}))})}),Ug=RDe;function IDe(e){return Ut("MuiDialog",e)}const v2=zt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DDe=P.createContext({}),NDe=DDe,PDe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],MDe=Ne(Gk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),LDe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${yt(n)}`],paper:["paper",`paperScroll${yt(n)}`,`paperWidth${yt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return $t(s,IDe,t)},$De=Ne(Ug,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),FDe=Ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${yt(n.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),BDe=Ne(po,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${yt(n.scroll)}`],t[`paperWidth${yt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${v2.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${v2.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${v2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),UDe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDialog"}),i=ji(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,BackdropComponent:l,BackdropProps:c,children:d,className:h,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:S="sm",onBackdropClick:w,onClose:T,open:x,PaperComponent:k=po,PaperProps:C={},scroll:I="paper",TransitionComponent:_=um,transitionDuration:A=a,TransitionProps:U}=r,F=st(r,PDe),M=$({},r,{disableEscapeKeyDown:p,fullScreen:b,fullWidth:v,maxWidth:S,scroll:I}),V=LDe(M),Q=P.useRef(),X=J=>{Q.current=J.target===J.currentTarget},Y=J=>{Q.current&&(Q.current=null,w&&w(J),T&&T(J,"backdropClick"))},W=_f(o),ee=P.useMemo(()=>({titleId:W}),[W]);return D.jsx($De,$({className:gt(V.root,h),closeAfterTransition:!0,components:{Backdrop:MDe},componentsProps:{backdrop:$({transitionDuration:A,as:l},c)},disableEscapeKeyDown:p,onClose:T,open:x,ref:n,onClick:Y,ownerState:M},F,{children:D.jsx(_,$({appear:!0,in:x,timeout:A,role:"presentation"},U,{children:D.jsx(FDe,{className:gt(V.container),onMouseDown:X,ownerState:M,children:D.jsx(BDe,$({as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":W},C,{className:gt(V.paper,C.className),ownerState:M,children:D.jsx(NDe.Provider,{value:ee,children:d})}))})}))}))}),zDe=UDe;function jDe(e){return Ut("MuiDialogActions",e)}zt("MuiDialogActions",["root","spacing"]);const HDe=["className","disableSpacing"],VDe=e=>{const{classes:t,disableSpacing:n}=e;return $t({root:["root",!n&&"spacing"]},jDe,t)},WDe=Ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>$({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),QDe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,s=st(r,HDe),o=$({},r,{disableSpacing:a}),l=VDe(o);return D.jsx(WDe,$({className:gt(l.root,i),ownerState:o,ref:n},s))}),YDe=QDe;function qDe(e){return Ut("MuiDialogContent",e)}zt("MuiDialogContent",["root","dividers"]);const GDe=zt("MuiDialogTitle",["root"]),ZDe=GDe,XDe=["className","dividers"],KDe=e=>{const{classes:t,dividers:n}=e;return $t({root:["root",n&&"dividers"]},qDe,t)},JDe=Ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>$({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${ZDe.root} + &`]:{paddingTop:0}})),eNe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,s=st(r,XDe),o=$({},r,{dividers:a}),l=KDe(o);return D.jsx(JDe,$({className:gt(l.root,i),ownerState:o,ref:n},s))}),tNe=eNe;function nNe(e){return Ut("MuiDivider",e)}const rNe=zt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ZK=rNe,iNe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],aNe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return $t({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},nNe,r)},sNe=Ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:In(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),oNe=Ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Uce=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:d="horizontal",role:h=o!=="hr"?"separator":void 0,textAlign:p="center",variant:b="fullWidth"}=r,v=st(r,iNe),S=$({},r,{absolute:i,component:o,flexItem:l,light:c,orientation:d,role:h,textAlign:p,variant:b}),w=aNe(S);return D.jsx(sNe,$({as:o,className:gt(w.root,s),role:h,ref:n,ownerState:S},v,{children:a?D.jsx(oNe,{className:w.wrapper,ownerState:S,children:a}):null}))});Uce.muiSkipListHighlight=!0;const Yb=Uce,lNe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function uNe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=vd(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=a.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");o=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function cNe(e){return typeof e=="function"?e():e}function T4(e,t,n){const r=cNe(n),i=uNe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const dNe=P.forwardRef(function(t,n){const r=ji(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:c,direction:d="down",easing:h=i,in:p,onEnter:b,onEntered:v,onEntering:S,onExit:w,onExited:T,onExiting:x,style:k,timeout:C=a,TransitionComponent:I=Qk}=t,_=st(t,lNe),A=P.useRef(null),U=rr(l.ref,A,n),F=K=>ne=>{K&&(ne===void 0?K(A.current):K(A.current,ne))},M=F((K,ne)=>{T4(d,K,c),mz(K),b&&b(K,ne)}),V=F((K,ne)=>{const j=vg({timeout:C,style:k,easing:h},{mode:"enter"});K.style.webkitTransition=r.transitions.create("-webkit-transform",$({},j)),K.style.transition=r.transitions.create("transform",$({},j)),K.style.webkitTransform="none",K.style.transform="none",S&&S(K,ne)}),Q=F(v),X=F(x),Y=F(K=>{const ne=vg({timeout:C,style:k,easing:h},{mode:"exit"});K.style.webkitTransition=r.transitions.create("-webkit-transform",ne),K.style.transition=r.transitions.create("transform",ne),T4(d,K,c),w&&w(K)}),W=F(K=>{K.style.webkitTransition="",K.style.transition="",T&&T(K)}),ee=K=>{s&&s(A.current,K)},J=P.useCallback(()=>{A.current&&T4(d,A.current,c)},[d,c]);return P.useEffect(()=>{if(p||d==="down"||d==="right")return;const K=iE(()=>{A.current&&T4(d,A.current,c)}),ne=vd(A.current);return ne.addEventListener("resize",K),()=>{K.clear(),ne.removeEventListener("resize",K)}},[d,p,c]),P.useEffect(()=>{p||J()},[p,J]),D.jsx(I,$({nodeRef:A,onEnter:M,onEntered:Q,onEntering:V,onExit:Y,onExited:W,onExiting:X,addEndListener:ee,appear:o,in:p,timeout:C},_,{children:(K,ne)=>P.cloneElement(l,$({ref:U,style:$({visibility:K==="exited"&&!p?"hidden":void 0},k,l.props.style)},ne))}))}),zce=dNe;function fNe(e){return Ut("MuiDrawer",e)}zt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const hNe=["BackdropProps"],pNe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],jce=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},mNe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${yt(n)}`,r!=="temporary"&&`paperAnchorDocked${yt(n)}`]};return $t(i,fNe,t)},gNe=Ne(Ug,{name:"MuiDrawer",slot:"Root",overridesResolver:jce})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),XK=Ne("div",{shouldForwardProp:Bs,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:jce})({flex:"0 0 auto"}),bNe=Ne(po,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${yt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${yt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>$({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Hce={left:"right",right:"left",top:"down",bottom:"up"};function yNe(e){return["left","right"].indexOf(e)!==-1}function vNe(e,t){return e.direction==="rtl"&&yNe(t)?Hce[t]:t}const ONe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDrawer"}),i=ji(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:o,children:l,className:c,elevation:d=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:p}={},onClose:b,open:v=!1,PaperProps:S={},SlideProps:w,TransitionComponent:T=zce,transitionDuration:x=a,variant:k="temporary"}=r,C=st(r.ModalProps,hNe),I=st(r,pNe),_=P.useRef(!1);P.useEffect(()=>{_.current=!0},[]);const A=vNe(i,s),F=$({},r,{anchor:s,elevation:d,open:v,variant:k},I),M=mNe(F),V=D.jsx(bNe,$({elevation:k==="temporary"?d:0,square:!0},S,{className:gt(M.paper,S.className),ownerState:F,children:l}));if(k==="permanent")return D.jsx(XK,$({className:gt(M.root,M.docked,c),ownerState:F,ref:n},I,{children:V}));const Q=D.jsx(T,$({in:v,direction:Hce[A],timeout:x,appear:_.current},w,{children:V}));return k==="persistent"?D.jsx(XK,$({className:gt(M.root,M.docked,c),ownerState:F,ref:n},I,{children:Q})):D.jsx(gNe,$({BackdropProps:$({},o,p,{transitionDuration:x}),className:gt(M.root,M.modal,c),open:v,ownerState:F,onClose:b,hideBackdrop:h,ref:n},I,C,{children:Q}))}),SNe=ONe,ENe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],wNe=e=>{const{classes:t,disableUnderline:n}=e,i=$t({root:["root",!n&&"underline"],input:["input"]},vRe,t);return $({},t,i)},TNe=Ne(iN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nN(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Zu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Zu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Zu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Zu.disabled}, .${Zu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Zu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),xNe=Ne(aN,{name:"MuiFilledInput",slot:"Input",overridesResolver:rN})(({theme:e,ownerState:t})=>$({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Vce=P.forwardRef(function(t,n){var r,i,a,s;const o=Rt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:p=!1,slotProps:b,slots:v={},type:S="text"}=o,w=st(o,ENe),T=$({},o,{fullWidth:d,inputComponent:h,multiline:p,type:S}),x=wNe(o),k={root:{ownerState:T},input:{ownerState:T}},C=b??c?Po(k,b??c):k,I=(r=(i=v.root)!=null?i:l.Root)!=null?r:TNe,_=(a=(s=v.input)!=null?s:l.Input)!=null?a:xNe;return D.jsx(Tz,$({slots:{root:I,input:_},componentsProps:C,fullWidth:d,inputComponent:h,multiline:p,ref:n,type:S},w,{classes:x}))});Vce.muiName="Input";const Wce=Vce;function kNe(e){return Ut("MuiFormControl",e)}zt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const CNe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_Ne=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${yt(n)}`,r&&"fullWidth"]};return $t(i,kNe,t)},ANe=Ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${yt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),RNe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:p=!1,margin:b="none",required:v=!1,size:S="medium",variant:w="outlined"}=r,T=st(r,CNe),x=$({},r,{color:s,component:o,disabled:l,error:c,fullWidth:h,hiddenLabel:p,margin:b,required:v,size:S,variant:w}),k=_Ne(x),[C,I]=P.useState(()=>{let X=!1;return i&&P.Children.forEach(i,Y=>{if(!f2(Y,["Input","Select"]))return;const W=f2(Y,["Select"])?Y.props.input:Y;W&&lRe(W.props)&&(X=!0)}),X}),[_,A]=P.useState(()=>{let X=!1;return i&&P.Children.forEach(i,Y=>{f2(Y,["Input","Select"])&&(TR(Y.props,!0)||TR(Y.props.inputProps,!0))&&(X=!0)}),X}),[U,F]=P.useState(!1);l&&U&&F(!1);const M=d!==void 0&&!l?d:U;let V;const Q=P.useMemo(()=>({adornedStart:C,setAdornedStart:I,color:s,disabled:l,error:c,filled:_,focused:M,fullWidth:h,hiddenLabel:p,size:S,onBlur:()=>{F(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{F(!0)},registerEffect:V,required:v,variant:w}),[C,s,l,c,_,M,h,p,V,v,S,w]);return D.jsx(tN.Provider,{value:Q,children:D.jsx(ANe,$({as:o,ownerState:x,className:gt(k.root,a),ref:n},T,{children:i}))})}),Af=RNe,INe=oAe({createStyledComponent:Ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Rt({props:e,name:"MuiStack"})}),hr=INe;function DNe(e){return Ut("MuiFormControlLabel",e)}const NNe=zt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),jT=NNe,PNe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],MNe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${yt(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return $t(s,DNe,t)},LNe=Ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jT.label}`]:t.label},t.root,t[`labelPlacement${yt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${jT.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${jT.label}`]:{[`&.${jT.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),$Ne=Ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${jT.error}`]:{color:(e.vars||e).palette.error.main}})),FNe=P.forwardRef(function(t,n){var r,i;const a=Rt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:h,labelPlacement:p="end",required:b,slotProps:v={}}=a,S=st(a,PNe),w=Jh(),T=(r=c??l.props.disabled)!=null?r:w==null?void 0:w.disabled,x=b??l.props.required,k={disabled:T,required:x};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof l.props[F]>"u"&&typeof a[F]<"u"&&(k[F]=a[F])});const C=Bg({props:a,muiFormControl:w,states:["error"]}),I=$({},a,{disabled:T,labelPlacement:p,required:x,error:C.error}),_=MNe(I),A=(i=v.typography)!=null?i:o.typography;let U=h;return U!=null&&U.type!==Ar&&!d&&(U=D.jsx(Ar,$({component:"span"},A,{className:gt(_.label,A==null?void 0:A.className),children:U}))),D.jsxs(LNe,$({className:gt(_.root,s),ownerState:I,ref:n},S,{children:[P.cloneElement(l,k),x?D.jsxs(hr,{display:"block",children:[U,D.jsxs($Ne,{ownerState:I,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):U]}))}),Ox=FNe;function BNe(e){return Ut("MuiFormGroup",e)}zt("MuiFormGroup",["root","row","error"]);const UNe=["className","row"],zNe=e=>{const{classes:t,row:n,error:r}=e;return $t({root:["root",n&&"row",r&&"error"]},BNe,t)},jNe=Ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>$({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),HNe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=st(r,UNe),o=Jh(),l=Bg({props:r,muiFormControl:o,states:["error"]}),c=$({},r,{row:a,error:l.error}),d=zNe(c);return D.jsx(jNe,$({className:gt(d.root,i),ownerState:c,ref:n},s))}),_z=HNe;function VNe(e){return Ut("MuiFormHelperText",e)}const WNe=zt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KK=WNe;var JK;const QNe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],YNe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,c={root:["root",i&&"disabled",a&&"error",r&&`size${yt(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return $t(c,VNe,t)},qNe=Ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${yt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KK.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KK.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),GNe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=st(r,QNe),l=Jh(),c=Bg({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=$({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),h=YNe(d);return D.jsx(qNe,$({as:s,ownerState:d,className:gt(h.root,a),ref:n},o,{children:i===" "?JK||(JK=D.jsx("span",{className:"notranslate",children:"​"})):i}))}),oE=GNe;function ZNe(e){return Ut("MuiFormLabel",e)}const O2=zt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),XNe=["children","className","color","component","disabled","error","filled","focused","required"],KNe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${yt(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return $t(l,ZNe,t)},JNe=Ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${O2.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${O2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${O2.error}`]:{color:(e.vars||e).palette.error.main}})),e6e=Ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${O2.error}`]:{color:(e.vars||e).palette.error.main}})),t6e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=st(r,XNe),l=Jh(),c=Bg({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=$({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),h=KNe(d);return D.jsxs(JNe,$({as:s,ownerState:d,className:gt(h.root,a),ref:n},o,{children:[i,c.required&&D.jsxs(e6e,{ownerState:d,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),lN=t6e,n6e=P.createContext(),eJ=n6e;function r6e(e){return Ut("MuiGrid",e)}const i6e=[0,1,2,3,4,5,6,7,8,9,10],a6e=["column-reverse","column","row-reverse","row"],s6e=["nowrap","wrap-reverse","wrap"],tT=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Sx=zt("MuiGrid",["root","container","item","zeroMinWidth",...i6e.map(e=>`spacing-xs-${e}`),...a6e.map(e=>`direction-xs-${e}`),...s6e.map(e=>`wrap-xs-${e}`),...tT.map(e=>`grid-xs-${e}`),...tT.map(e=>`grid-sm-${e}`),...tT.map(e=>`grid-md-${e}`),...tT.map(e=>`grid-lg-${e}`),...tT.map(e=>`grid-xl-${e}`)]),o6e=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function PO(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function l6e({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Mb({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const h=`calc(${l} + ${PO(d)})`;c={flexBasis:h,maxWidth:h}}}a=$({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function u6e({theme:e,ownerState:t}){const n=Mb({values:t.direction,breakpoints:e.breakpoints.values});return cu({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Sx.item}`]={maxWidth:"none"}),i})}function Qce({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function c6e({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=Mb({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Qce({breakpoints:e.breakpoints.values,values:a})),i=cu({theme:e},a,(o,l)=>{var c;const d=e.spacing(o);return d!=="0px"?{marginTop:`-${PO(d)}`,[`& > .${Sx.item}`]:{paddingTop:PO(d)}}:(c=s)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Sx.item}`]:{paddingTop:0}}})}return i}function d6e({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=Mb({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Qce({breakpoints:e.breakpoints.values,values:a})),i=cu({theme:e},a,(o,l)=>{var c;const d=e.spacing(o);return d!=="0px"?{width:`calc(100% + ${PO(d)})`,marginLeft:`-${PO(d)}`,[`& > .${Sx.item}`]:{paddingLeft:PO(d)}}:(c=s)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Sx.item}`]:{paddingLeft:0}}})}return i}function f6e(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const h6e=Ne("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:c}=n;let d=[];r&&(d=f6e(s,c,t));const h=[];return c.forEach(p=>{const b=n[p];b&&h.push(t[`grid-${p}-${String(b)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...h]}})(({ownerState:e})=>$({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),u6e,c6e,d6e,l6e);function p6e(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const m6e=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let c=[];n&&(c=p6e(a,l));const d=[];l.forEach(p=>{const b=e[p];b&&d.push(`grid-${p}-${String(b)}`)});const h={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $t(h,r6e,t)},g6e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiGrid"}),{breakpoints:i}=ji(),a=ZD(r),{className:s,columns:o,columnSpacing:l,component:c="div",container:d=!1,direction:h="row",item:p=!1,rowSpacing:b,spacing:v=0,wrap:S="wrap",zeroMinWidth:w=!1}=a,T=st(a,o6e),x=b||v,k=l||v,C=P.useContext(eJ),I=d?o||12:C,_={},A=$({},T);i.keys.forEach(M=>{T[M]!=null&&(_[M]=T[M],delete A[M])});const U=$({},a,{columns:I,container:d,direction:h,item:p,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:w,spacing:v},_,{breakpoints:i.keys}),F=m6e(U);return D.jsx(eJ.Provider,{value:I,children:D.jsx(h6e,$({ownerState:U,className:gt(F.root,s),as:c,ref:n},A))})}),fO=g6e,b6e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function F9(e){return`scale(${e}, ${e**2})`}const y6e={entering:{opacity:1,transform:F9(1)},entered:{opacity:1,transform:"none"}},_8=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yce=P.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:p,onExiting:b,style:v,timeout:S="auto",TransitionComponent:w=Qk}=t,T=st(t,b6e),x=pb(),k=P.useRef(),C=ji(),I=P.useRef(null),_=rr(I,a.ref,n),A=W=>ee=>{if(W){const J=I.current;ee===void 0?W(J):W(J,ee)}},U=A(d),F=A((W,ee)=>{mz(W);const{duration:J,delay:K,easing:ne}=vg({style:v,timeout:S,easing:s},{mode:"enter"});let j;S==="auto"?(j=C.transitions.getAutoHeightDuration(W.clientHeight),k.current=j):j=J,W.style.transition=[C.transitions.create("opacity",{duration:j,delay:K}),C.transitions.create("transform",{duration:_8?j:j*.666,delay:K,easing:ne})].join(","),l&&l(W,ee)}),M=A(c),V=A(b),Q=A(W=>{const{duration:ee,delay:J,easing:K}=vg({style:v,timeout:S,easing:s},{mode:"exit"});let ne;S==="auto"?(ne=C.transitions.getAutoHeightDuration(W.clientHeight),k.current=ne):ne=ee,W.style.transition=[C.transitions.create("opacity",{duration:ne,delay:J}),C.transitions.create("transform",{duration:_8?ne:ne*.666,delay:_8?J:J||ne*.333,easing:K})].join(","),W.style.opacity=0,W.style.transform=F9(.75),h&&h(W)}),X=A(p),Y=W=>{S==="auto"&&x.start(k.current||0,W),r&&r(I.current,W)};return D.jsx(w,$({appear:i,in:o,nodeRef:I,onEnter:F,onEntered:M,onEntering:U,onExit:Q,onExited:X,onExiting:V,addEndListener:Y,timeout:S==="auto"?null:S},T,{children:(W,ee)=>P.cloneElement(a,$({style:$({opacity:0,transform:F9(.75),visibility:W==="exited"&&!o?"hidden":void 0},y6e[W],v,a.props.style),ref:_},ee))}))});Yce.muiSupportAuto=!0;const xR=Yce;function v6e(e,t,n,r,i){const[a,s]=P.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return wa(()=>{let o=!0;if(!n)return;const l=n(e),c=()=>{o&&s(l.matches)};return c(),l.addListener(c),()=>{o=!1,l.removeListener(c)}},[e,n]),a}const qce=P.useSyncExternalStore;function O6e(e,t,n,r,i){const a=P.useCallback(()=>t,[t]),s=P.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[o,l]=P.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,h=>(d.addListener(h),()=>{d.removeListener(h)})]},[a,n,e]);return qce(l,o,s)}function lE(e,t={}){const n=GD(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=dce({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(qce!==void 0?O6e:v6e)(l,i,a,s,o)}const S6e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],E6e=e=>{const{classes:t,disableUnderline:n}=e,i=$t({root:["root",!n&&"underline"],input:["input"]},mRe,t);return $({},t,i)},w6e=Ne(iN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nN(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${I0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${I0.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${I0.disabled}, .${I0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${I0.disabled}:before`]:{borderBottomStyle:"dotted"}})}),T6e=Ne(aN,{name:"MuiInput",slot:"Input",overridesResolver:rN})({}),Gce=P.forwardRef(function(t,n){var r,i,a,s;const o=Rt({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:d,fullWidth:h=!1,inputComponent:p="input",multiline:b=!1,slotProps:v,slots:S={},type:w="text"}=o,T=st(o,S6e),x=E6e(o),C={root:{ownerState:{disableUnderline:l}}},I=v??d?Po(v??d,C):C,_=(r=(i=S.root)!=null?i:c.Root)!=null?r:w6e,A=(a=(s=S.input)!=null?s:c.Input)!=null?a:T6e;return D.jsx(Tz,$({slots:{root:_,input:A},slotProps:I,fullWidth:h,inputComponent:p,multiline:b,ref:n,type:w},T,{classes:x}))});Gce.muiName="Input";const Zce=Gce;function x6e(e){return Ut("MuiInputAdornment",e)}const k6e=zt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),tJ=k6e;var nJ;const C6e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_6e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${yt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},A6e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${yt(i)}`,s,r&&"hiddenLabel",a&&`size${yt(a)}`]};return $t(o,x6e,t)},R6e=Ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:_6e})(({theme:e,ownerState:t})=>$({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${tJ.positionStart}&:not(.${tJ.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),I6e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:c,variant:d}=r,h=st(r,C6e),p=Jh()||{};let b=d;d&&p.variant,p&&!b&&(b=p.variant);const v=$({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:o,position:c,variant:b}),S=A6e(v);return D.jsx(tN.Provider,{value:null,children:D.jsx(R6e,$({as:s,ownerState:v,className:gt(S.root,a),ref:n},h,{children:typeof i=="string"&&!l?D.jsx(Ar,{color:"text.secondary",children:i}):D.jsxs(P.Fragment,{children:[c==="start"?nJ||(nJ=D.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),Ex=I6e;function D6e(e){return Ut("MuiInputLabel",e)}zt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const N6e=["disableAnimation","margin","shrink","variant","className"],P6e=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${yt(r)}`,s],asterisk:[o&&"asterisk"]},c=$t(l,D6e,t);return $({},t,c)},M6e=Ne(lN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${O2.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),L6e=P.forwardRef(function(t,n){const r=Rt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=st(r,N6e),l=Jh();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const d=Bg({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),h=$({},r,{disableAnimation:i,formControl:l,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=P6e(h);return D.jsx(M6e,$({"data-shrink":c,ownerState:h,ref:n,className:gt(p.root,s)},o,{classes:p}))}),Xce=L6e,$6e=P.createContext({}),yf=$6e;function F6e(e){return Ut("MuiList",e)}zt("MuiList",["root","padding","dense","subheader"]);const B6e=["children","className","component","dense","disablePadding","subheader"],U6e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return $t({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},F6e,t)},z6e=Ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),j6e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:c}=r,d=st(r,B6e),h=P.useMemo(()=>({dense:o}),[o]),p=$({},r,{component:s,dense:o,disablePadding:l}),b=U6e(p);return D.jsx(yf.Provider,{value:h,children:D.jsxs(z6e,$({as:s,className:gt(b.root,a),ref:n,ownerState:p},d,{children:[c,i]}))})}),Kce=j6e;function H6e(e){return Ut("MuiListItem",e)}const V6e=zt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),jv=V6e;function W6e(e){return Ut("MuiListItemButton",e)}const Q6e=zt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Hv=Q6e,Y6e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],q6e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},G6e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,c=$t({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},W6e,n);return $({},n,c)},Z6e=Ne(fc,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:q6e})(({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),X6e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:c=!1,divider:d=!1,focusVisibleClassName:h,selected:p=!1,className:b}=r,v=st(r,Y6e),S=P.useContext(yf),w=P.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:c}),[i,S.dense,l,c]),T=P.useRef(null);wa(()=>{a&&T.current&&T.current.focus()},[a]);const x=$({},r,{alignItems:i,dense:w.dense,disableGutters:c,divider:d,selected:p}),k=G6e(x),C=rr(T,n);return D.jsx(yf.Provider,{value:w,children:D.jsx(Z6e,$({ref:C,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:gt(k.focusVisible,h),ownerState:x,className:gt(k.root,b)},v,{classes:k,children:o}))})}),rJ=X6e;function K6e(e){return Ut("MuiListItemSecondaryAction",e)}zt("MuiListItemSecondaryAction",["root","disableGutters"]);const J6e=["className"],ePe=e=>{const{disableGutters:t,classes:n}=e;return $t({root:["root",t&&"disableGutters"]},K6e,n)},tPe=Ne("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Jce=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=st(r,J6e),s=P.useContext(yf),o=$({},r,{disableGutters:s.disableGutters}),l=ePe(o);return D.jsx(tPe,$({className:gt(l.root,i),ownerState:o,ref:n},a))});Jce.muiName="ListItemSecondaryAction";const Az=Jce,nPe=["className"],rPe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],iPe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},aPe=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:c,selected:d}=e;return $t({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},H6e,r)},sPe=Ne("div",{name:"MuiListItem",slot:"Root",overridesResolver:iPe})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Hv.root}`]:{paddingRight:48}},{[`&.${jv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${jv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),oPe=Ne("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),lPe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:c,components:d={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:b}={},dense:v=!1,disabled:S=!1,disableGutters:w=!1,disablePadding:T=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:C,selected:I=!1,slotProps:_={},slots:A={}}=r,U=st(r.ContainerProps,nPe),F=st(r,rPe),M=P.useContext(yf),V=P.useMemo(()=>({dense:v||M.dense||!1,alignItems:i,disableGutters:w}),[i,M.dense,v,w]),Q=P.useRef(null);wa(()=>{a&&Q.current&&Q.current.focus()},[a]);const X=P.Children.toArray(o),Y=X.length&&f2(X[X.length-1],["ListItemSecondaryAction"]),W=$({},r,{alignItems:i,autoFocus:a,button:s,dense:V.dense,disabled:S,disableGutters:w,disablePadding:T,divider:x,hasSecondaryAction:Y,selected:I}),ee=aPe(W),J=rr(Q,n),K=A.root||d.Root||sPe,ne=_.root||h.root||{},j=$({className:gt(ee.root,ne.className,l),disabled:S},F);let Ce=c||"li";return s&&(j.component=c||"div",j.focusVisibleClassName=gt(jv.focusVisible,k),Ce=fc),Y?(Ce=!j.component&&!c?"div":Ce,p==="li"&&(Ce==="li"?Ce="div":j.component==="li"&&(j.component="div")),D.jsx(yf.Provider,{value:V,children:D.jsxs(oPe,$({as:p,className:gt(ee.container,b),ref:J,ownerState:W},U,{children:[D.jsx(K,$({},ne,!jh(K)&&{as:Ce,ownerState:$({},W,ne.ownerState)},j,{children:X})),X.pop()]}))})):D.jsx(yf.Provider,{value:V,children:D.jsxs(K,$({},ne,{as:Ce,ref:J},!jh(K)&&{ownerState:$({},W,ne.ownerState)},j,{children:[X,C&&D.jsx(Az,{children:C})]}))})}),B9=lPe;function uPe(e){return Ut("MuiListItemIcon",e)}const cPe=zt("MuiListItemIcon",["root","alignItemsFlexStart"]),iJ=cPe,dPe=["className"],fPe=e=>{const{alignItems:t,classes:n}=e;return $t({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},uPe,n)},hPe=Ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),pPe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=st(r,dPe),s=P.useContext(yf),o=$({},r,{alignItems:s.alignItems}),l=fPe(o);return D.jsx(hPe,$({className:gt(l.root,i),ownerState:o,ref:n},a))}),wx=pPe;function mPe(e){return Ut("MuiListItemText",e)}const gPe=zt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),kR=gPe,bPe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],yPe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return $t({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},mPe,t)},vPe=Ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kR.primary}`]:t.primary},{[`& .${kR.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),OPe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:h}=r,p=st(r,bPe),{dense:b}=P.useContext(yf);let v=l??i,S=d;const w=$({},r,{disableTypography:s,inset:o,primary:!!v,secondary:!!S,dense:b}),T=yPe(w);return v!=null&&v.type!==Ar&&!s&&(v=D.jsx(Ar,$({variant:b?"body2":"body1",className:T.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:v}))),S!=null&&S.type!==Ar&&!s&&(S=D.jsx(Ar,$({variant:"body2",className:T.secondary,color:"text.secondary",display:"block"},h,{children:S}))),D.jsxs(vPe,$({className:gt(T.root,a),ownerState:w,ref:n},p,{children:[v,S]}))}),Og=OPe,SPe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function A8(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function aJ(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ede(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function nT(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!ede(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const EPe=P.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu"}=t,p=st(t,SPe),b=P.useRef(null),v=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wa(()=>{i&&b.current.focus()},[i]),P.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,C)=>{const I=!b.current.style.width;if(k.clientHeight{const C=b.current,I=k.key,_=_i(C).activeElement;if(I==="ArrowDown")k.preventDefault(),nT(C,_,c,l,A8);else if(I==="ArrowUp")k.preventDefault(),nT(C,_,c,l,aJ);else if(I==="Home")k.preventDefault(),nT(C,null,c,l,A8);else if(I==="End")k.preventDefault(),nT(C,null,c,l,aJ);else if(I.length===1){const A=v.current,U=I.toLowerCase(),F=performance.now();A.keys.length>0&&(F-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&U!==A.keys[0]&&(A.repeating=!1)),A.lastTime=F,A.keys.push(U);const M=_&&!A.repeating&&ede(_,A);A.previousKeyMatched&&(M||nT(C,_,!1,l,A8,A))?k.preventDefault():A.previousKeyMatched=!1}d&&d(k)},w=rr(b,n);let T=-1;P.Children.forEach(s,(k,C)=>{if(!P.isValidElement(k)){T===C&&(T+=1,T>=s.length&&(T=-1));return}k.props.disabled||(h==="selectedMenu"&&k.props.selected||T===-1)&&(T=C),T===C&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const x=P.Children.map(s,(k,C)=>{if(C===T){const I={};return a&&(I.autoFocus=!0),k.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),P.cloneElement(k,I)}return k});return D.jsx(Kce,$({role:"menu",ref:w,className:o,onKeyDown:S,tabIndex:i?0:-1},p,{children:x}))}),uE=EPe;function wPe(e){return Ut("MuiPopover",e)}zt("MuiPopover",["root","paper"]);const TPe=["onEntering"],xPe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],kPe=["slotProps"];function sJ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function oJ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function lJ(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function R8(e){return typeof e=="function"?e():e}const CPe=e=>{const{classes:t}=e;return $t({root:["root"],paper:["paper"]},wPe,t)},_Pe=Ne(Ug,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tde=Ne(po,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),APe=P.forwardRef(function(t,n){var r,i,a;const s=Rt({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:p,className:b,container:v,elevation:S=8,marginThreshold:w=16,open:T,PaperProps:x={},slots:k,slotProps:C,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:_=xR,transitionDuration:A="auto",TransitionProps:{onEntering:U}={},disableScrollLock:F=!1}=s,M=st(s.TransitionProps,TPe),V=st(s,xPe),Q=(r=C==null?void 0:C.paper)!=null?r:x,X=P.useRef(),Y=rr(X,Q.ref),W=$({},s,{anchorOrigin:c,anchorReference:h,elevation:S,marginThreshold:w,externalPaperSlotProps:Q,transformOrigin:I,TransitionComponent:_,transitionDuration:A,TransitionProps:M}),ee=CPe(W),J=P.useCallback(()=>{if(h==="anchorPosition")return d;const Ye=R8(l),tt=(Ye&&Ye.nodeType===1?Ye:_i(X.current).body).getBoundingClientRect();return{top:tt.top+sJ(tt,c.vertical),left:tt.left+oJ(tt,c.horizontal)}},[l,c.horizontal,c.vertical,d,h]),K=P.useCallback(Ye=>({vertical:sJ(Ye,I.vertical),horizontal:oJ(Ye,I.horizontal)}),[I.horizontal,I.vertical]),ne=P.useCallback(Ye=>{const nt={width:Ye.offsetWidth,height:Ye.offsetHeight},tt=K(nt);if(h==="none")return{top:null,left:null,transformOrigin:lJ(tt)};const ht=J();let _t=ht.top-tt.vertical,lt=ht.left-tt.horizontal;const ge=_t+nt.height,ue=lt+nt.width,me=vd(R8(l)),We=me.innerHeight-w,et=me.innerWidth-w;if(w!==null&&_tWe){const qe=ge-We;_t-=qe,tt.vertical+=qe}if(w!==null&<et){const qe=ue-et;lt-=qe,tt.horizontal+=qe}return{top:`${Math.round(_t)}px`,left:`${Math.round(lt)}px`,transformOrigin:lJ(tt)}},[l,h,J,K,w]),[j,Ce]=P.useState(T),ye=P.useCallback(()=>{const Ye=X.current;if(!Ye)return;const nt=ne(Ye);nt.top!==null&&(Ye.style.top=nt.top),nt.left!==null&&(Ye.style.left=nt.left),Ye.style.transformOrigin=nt.transformOrigin,Ce(!0)},[ne]);P.useEffect(()=>(F&&window.addEventListener("scroll",ye),()=>window.removeEventListener("scroll",ye)),[l,F,ye]);const te=(Ye,nt)=>{U&&U(Ye,nt),ye()},ve=()=>{Ce(!1)};P.useEffect(()=>{T&&ye()}),P.useImperativeHandle(o,()=>T?{updatePosition:()=>{ye()}}:null,[T,ye]),P.useEffect(()=>{if(!T)return;const Ye=iE(()=>{ye()}),nt=vd(l);return nt.addEventListener("resize",Ye),()=>{Ye.clear(),nt.removeEventListener("resize",Ye)}},[l,T,ye]);let Se=A;A==="auto"&&!_.muiSupportAuto&&(Se=void 0);const he=v||(l?_i(R8(l)).body:void 0),Pe=(i=k==null?void 0:k.root)!=null?i:_Pe,Me=(a=k==null?void 0:k.paper)!=null?a:tde,Ze=gr({elementType:Me,externalSlotProps:$({},Q,{style:j?Q.style:$({},Q.style,{opacity:0})}),additionalProps:{elevation:S,ref:Y},ownerState:W,className:gt(ee.paper,Q==null?void 0:Q.className)}),ot=gr({elementType:Pe,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:V,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:he,open:T},ownerState:W,className:gt(ee.root,b)}),{slotProps:Qe}=ot,Je=st(ot,kPe);return D.jsx(Pe,$({},Je,!jh(Pe)&&{slotProps:Qe,disableScrollLock:F},{children:D.jsx(_,$({appear:!0,in:T,onEntering:te,onExited:ve,timeout:Se},M,{children:D.jsx(Me,$({},Ze,{children:p}))}))}))}),uN=APe;function RPe(e){return Ut("MuiMenu",e)}zt("MuiMenu",["root","paper","list"]);const IPe=["onEntering"],DPe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],NPe={vertical:"top",horizontal:"right"},PPe={vertical:"top",horizontal:"left"},MPe=e=>{const{classes:t}=e;return $t({root:["root"],paper:["paper"],list:["list"]},RPe,t)},LPe=Ne(uN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Pe=Ne(tde,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),FPe=Ne(uE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),BPe=P.forwardRef(function(t,n){var r,i;const a=Rt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:h,open:p,PaperProps:b={},PopoverClasses:v,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},variant:T="selectedMenu",slots:x={},slotProps:k={}}=a,C=st(a.TransitionProps,IPe),I=st(a,DPe),_=ji(),A=_.direction==="rtl",U=$({},a,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:w,PaperProps:b,transitionDuration:S,TransitionProps:C,variant:T}),F=MPe(U),M=s&&!c&&p,V=P.useRef(null),Q=(ne,j)=>{V.current&&V.current.adjustStyleForScrollbar(ne,_),w&&w(ne,j)},X=ne=>{ne.key==="Tab"&&(ne.preventDefault(),h&&h(ne,"tabKeyDown"))};let Y=-1;P.Children.map(o,(ne,j)=>{P.isValidElement(ne)&&(ne.props.disabled||(T==="selectedMenu"&&ne.props.selected||Y===-1)&&(Y=j))});const W=(r=x.paper)!=null?r:$Pe,ee=(i=k.paper)!=null?i:b,J=gr({elementType:x.root,externalSlotProps:k.root,ownerState:U,className:[F.root,l]}),K=gr({elementType:W,externalSlotProps:ee,ownerState:U,className:F.paper});return D.jsx(LPe,$({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?NPe:PPe,slots:{paper:W,root:x.root},slotProps:{root:J,paper:K},open:p,ref:n,transitionDuration:S,TransitionProps:$({onEntering:Q},C),ownerState:U},I,{classes:v,children:D.jsx(FPe,$({onKeyDown:X,actions:V,autoFocus:s&&(Y===-1||c),autoFocusItem:M,variant:T},d,{className:gt(F.list,d.className),children:o}))}))}),UPe=BPe;function zPe(e){return Ut("MuiMenuItem",e)}const jPe=zt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),rT=jPe,HPe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],VPe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},WPe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=$t({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},zPe,s);return $({},s,l)},QPe=Ne(fc,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:VPe})(({theme:e,ownerState:t})=>$({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZK.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZK.inset}`]:{marginLeft:52},[`& .${kR.root}`]:{marginTop:0,marginBottom:0},[`& .${kR.inset}`]:{paddingLeft:36},[`& .${iJ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${iJ.root} svg`]:{fontSize:"1.25rem"}}))),YPe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:p}=r,b=st(r,HPe),v=P.useContext(yf),S=P.useMemo(()=>({dense:s||v.dense||!1,disableGutters:l}),[v.dense,s,l]),w=P.useRef(null);wa(()=>{i&&w.current&&w.current.focus()},[i]);const T=$({},r,{dense:S.dense,divider:o,disableGutters:l}),x=WPe(r),k=rr(w,n);let C;return r.disabled||(C=h!==void 0?h:-1),D.jsx(yf.Provider,{value:S,children:D.jsx(QPe,$({ref:k,role:d,tabIndex:C,component:a,focusVisibleClassName:gt(x.focusVisible,c),className:gt(x.root,p)},b,{ownerState:T,classes:x}))})}),cm=YPe;function qPe(e){return Ut("MuiNativeSelect",e)}const GPe=zt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rz=GPe,ZPe=["className","disabled","error","IconComponent","inputRef","variant"],XPe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${yt(n)}`,a&&"iconOpen",r&&"disabled"]};return $t(o,qPe,t)},nde=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Rz.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),KPe=Ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Bs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Rz.multiple}`]:t.multiple}]}})(nde),rde=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Rz.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),JPe=Ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${yt(n.variant)}`],n.open&&t.iconOpen]}})(rde),e7e=P.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,c=st(t,ZPe),d=$({},t,{disabled:i,variant:l,error:a}),h=XPe(d);return D.jsxs(P.Fragment,{children:[D.jsx(KPe,$({ownerState:d,className:gt(h.select,r),disabled:i,ref:o||n},c)),t.multiple?null:D.jsx(JPe,{as:s,ownerState:d,className:h.icon})]})}),t7e=e7e;var uJ;const n7e=["children","classes","className","label","notched"],r7e=Ne("fieldset",{shouldForwardProp:Bs})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),i7e=Ne("legend",{shouldForwardProp:Bs})(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function a7e(e){const{className:t,label:n,notched:r}=e,i=st(e,n7e),a=n!=null&&n!=="",s=$({},e,{notched:r,withLabel:a});return D.jsx(r7e,$({"aria-hidden":!0,className:t,ownerState:s},i,{children:D.jsx(i7e,{ownerState:s,children:a?D.jsx("span",{children:n}):uJ||(uJ=D.jsx("span",{className:"notranslate",children:"​"}))})}))}const s7e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],o7e=e=>{const{classes:t}=e,r=$t({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bRe,t);return $({},t,r)},l7e=Ne(iN,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nN})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ph.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ph.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ph.focused} .${ph.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ph.error} .${ph.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ph.disabled} .${ph.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),u7e=Ne(a7e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),c7e=Ne(aN,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rN})(({theme:e,ownerState:t})=>$({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),ide=P.forwardRef(function(t,n){var r,i,a,s,o;const l=Rt({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:h="input",label:p,multiline:b=!1,notched:v,slots:S={},type:w="text"}=l,T=st(l,s7e),x=o7e(l),k=Jh(),C=Bg({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=$({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:k,fullWidth:d,hiddenLabel:C.hiddenLabel,multiline:b,size:C.size,type:w}),_=(r=(i=S.root)!=null?i:c.Root)!=null?r:l7e,A=(a=(s=S.input)!=null?s:c.Input)!=null?a:c7e;return D.jsx(Tz,$({slots:{root:_,input:A},renderSuffix:U=>D.jsx(u7e,{ownerState:I,className:x.notchedOutline,label:p!=null&&p!==""&&C.required?o||(o=D.jsxs(P.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(U.startAdornment||U.filled||U.focused)}),fullWidth:d,inputComponent:h,multiline:b,ref:n,type:w},T,{classes:$({},x,{notchedOutline:null})}))});ide.muiName="Input";const ade=ide,d7e=ns(D.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),f7e=ns(D.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),h7e=Ne("span",{shouldForwardProp:Bs})({position:"relative",display:"flex"}),p7e=Ne(d7e)({transform:"scale(1)"}),m7e=Ne(f7e)(({theme:e,ownerState:t})=>$({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function sde(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=$({},e,{checked:t});return D.jsxs(h7e,{className:n.root,ownerState:i,children:[D.jsx(p7e,{fontSize:r,className:n.background,ownerState:i}),D.jsx(m7e,{fontSize:r,className:n.dot,ownerState:i})]})}const g7e=P.createContext(void 0),ode=g7e;function b7e(){return P.useContext(ode)}function y7e(e){return Ut("MuiRadio",e)}const cJ=zt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),v7e=["checked","checkedIcon","color","icon","name","onChange","size","className"],O7e=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${yt(n)}`,r!=="medium"&&`size${yt(r)}`]};return $({},t,$t(i,y7e,t))},S7e=Ne(Cz,{shouldForwardProp:e=>Bs(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${yt(n.size)}`],t[`color${yt(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${cJ.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${cJ.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function E7e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const dJ=D.jsx(sde,{checked:!0}),fJ=D.jsx(sde,{}),w7e=P.forwardRef(function(t,n){var r,i;const a=Rt({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=dJ,color:l="primary",icon:c=fJ,name:d,onChange:h,size:p="medium",className:b}=a,v=st(a,v7e),S=$({},a,{color:l,size:p}),w=O7e(S),T=b7e();let x=s;const k=bR(h,T&&T.onChange);let C=d;return T&&(typeof x>"u"&&(x=E7e(T.value,a.value)),typeof C>"u"&&(C=T.name)),D.jsx(S7e,$({type:"radio",icon:P.cloneElement(c,{fontSize:(r=fJ.props.fontSize)!=null?r:p}),checkedIcon:P.cloneElement(o,{fontSize:(i=dJ.props.fontSize)!=null?i:p}),ownerState:S,classes:w,name:C,checked:x,onChange:k,ref:n,className:gt(w.root,b)},v))}),hJ=w7e,T7e=["actions","children","defaultValue","name","onChange","value"],x7e=P.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:a,name:s,onChange:o,value:l}=t,c=st(t,T7e),d=P.useRef(null),[h,p]=Ms({controlled:l,default:a,name:"RadioGroup"});P.useImperativeHandle(r,()=>({focus:()=>{let w=d.current.querySelector("input:not(:disabled):checked");w||(w=d.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const b=rr(n,d),v=_f(s),S=P.useMemo(()=>({name:v,onChange(w){p(w.target.value),o&&o(w,w.target.value)},value:h}),[v,o,p,h]);return D.jsx(ode.Provider,{value:S,children:D.jsx(_z,$({role:"radiogroup",ref:b},c,{children:i}))})}),k7e=x7e;function C7e(e){return Ut("MuiSelect",e)}const iT=zt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var pJ;const _7e=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],A7e=Ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${iT.select}`]:t.select},{[`&.${iT.select}`]:t[n.variant]},{[`&.${iT.error}`]:t.error},{[`&.${iT.multiple}`]:t.multiple}]}})(nde,{[`&.${iT.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),R7e=Ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${yt(n.variant)}`],n.open&&t.iconOpen]}})(rde),I7e=Ne("input",{shouldForwardProp:e=>uz(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function mJ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function D7e(e){return e==null||typeof e=="string"&&!e.trim()}const N7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${yt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return $t(o,C7e,t)},P7e=P.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:c,defaultOpen:d,defaultValue:h,disabled:p,displayEmpty:b,error:v=!1,IconComponent:S,inputRef:w,labelId:T,MenuProps:x={},multiple:k,name:C,onBlur:I,onChange:_,onClose:A,onFocus:U,onOpen:F,open:M,readOnly:V,renderValue:Q,SelectDisplayProps:X={},tabIndex:Y,value:W,variant:ee="standard"}=t,J=st(t,_7e),[K,ne]=Ms({controlled:W,default:h,name:"Select"}),[j,Ce]=Ms({controlled:M,default:d,name:"Select"}),ye=P.useRef(null),te=P.useRef(null),[ve,Se]=P.useState(null),{current:he}=P.useRef(M!=null),[Pe,Me]=P.useState(),Ze=rr(n,w),ot=P.useCallback(St=>{te.current=St,St&&Se(St)},[]),Qe=ve==null?void 0:ve.parentNode;P.useImperativeHandle(Ze,()=>({focus:()=>{te.current.focus()},node:ye.current,value:K}),[K]),P.useEffect(()=>{d&&j&&ve&&!he&&(Me(o?null:Qe.clientWidth),te.current.focus())},[ve,o]),P.useEffect(()=>{s&&te.current.focus()},[s]),P.useEffect(()=>{if(!T)return;const St=_i(te.current).getElementById(T);if(St){const Kt=()=>{getSelection().isCollapsed&&te.current.focus()};return St.addEventListener("click",Kt),()=>{St.removeEventListener("click",Kt)}}},[T]);const Je=(St,Kt)=>{St?F&&F(Kt):A&&A(Kt),he||(Me(o?null:Qe.clientWidth),Ce(St))},Ye=St=>{St.button===0&&(St.preventDefault(),te.current.focus(),Je(!0,St))},nt=St=>{Je(!1,St)},tt=P.Children.toArray(l),ht=St=>{const Kt=tt.find(pt=>pt.props.value===St.target.value);Kt!==void 0&&(ne(Kt.props.value),_&&_(St,Kt))},_t=St=>Kt=>{let pt;if(Kt.currentTarget.hasAttribute("tabindex")){if(k){pt=Array.isArray(K)?K.slice():[];const At=K.indexOf(St.props.value);At===-1?pt.push(St.props.value):pt.splice(At,1)}else pt=St.props.value;if(St.props.onClick&&St.props.onClick(Kt),K!==pt&&(ne(pt),_)){const At=Kt.nativeEvent||Kt,en=new At.constructor(At.type,At);Object.defineProperty(en,"target",{writable:!0,value:{value:pt,name:C}}),_(en,St)}k||Je(!1,Kt)}},lt=St=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(St.key)!==-1&&(St.preventDefault(),Je(!0,St))},ge=ve!==null&&j,ue=St=>{!ge&&I&&(Object.defineProperty(St,"target",{writable:!0,value:{value:K,name:C}}),I(St))};delete J["aria-invalid"];let me,We;const et=[];let qe=!1;(TR({value:K})||b)&&(Q?me=Q(K):qe=!0);const pe=tt.map(St=>{if(!P.isValidElement(St))return null;let Kt;if(k){if(!Array.isArray(K))throw new Error(bg(2));Kt=K.some(pt=>mJ(pt,St.props.value)),Kt&&qe&&et.push(St.props.children)}else Kt=mJ(K,St.props.value),Kt&&qe&&(We=St.props.children);return P.cloneElement(St,{"aria-selected":Kt?"true":"false",onClick:_t(St),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),St.props.onKeyUp&&St.props.onKeyUp(pt)},role:"option",selected:Kt,value:void 0,"data-value":St.props.value})});qe&&(k?et.length===0?me=null:me=et.reduce((St,Kt,pt)=>(St.push(Kt),pt{const{classes:t}=e;return t},Iz={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Bs(e)&&e!=="variant",slot:"Root"},B7e=Ne(Zce,Iz)(""),U7e=Ne(ade,Iz)(""),z7e=Ne(Wce,Iz)(""),lde=P.forwardRef(function(t,n){const r=Rt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Lce,id:h,input:p,inputProps:b,label:v,labelId:S,MenuProps:w,multiple:T=!1,native:x=!1,onClose:k,onOpen:C,open:I,renderValue:_,SelectDisplayProps:A,variant:U="outlined"}=r,F=st(r,L7e),M=x?t7e:M7e,V=Jh(),Q=Bg({props:r,muiFormControl:V,states:["variant","error"]}),X=Q.variant||U,Y=$({},r,{variant:X,classes:s}),W=F7e(Y),ee=st(W,$7e),J=p||{standard:D.jsx(B7e,{ownerState:Y}),outlined:D.jsx(U7e,{label:v,ownerState:Y}),filled:D.jsx(z7e,{ownerState:Y})}[X],K=rr(n,J.ref);return D.jsx(P.Fragment,{children:P.cloneElement(J,$({inputComponent:M,inputProps:$({children:a,error:Q.error,IconComponent:d,variant:X,type:void 0,multiple:T},x?{id:h}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:S,MenuProps:w,onClose:k,onOpen:C,open:I,renderValue:_,SelectDisplayProps:$({id:h},A)},b,{classes:b?Po(ee,b.classes):ee},p?p.props.inputProps:{})},(T&&x||c)&&X==="outlined"?{notched:!0}:{},{ref:K,className:gt(J.props.className,o,W.root)},!p&&{variant:X},F))})});lde.muiName="Select";const ude=lde,j7e=e=>!e||!jh(e);function H7e(e){return Ut("MuiSlider",e)}const hf=zt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),V7e=e=>{const{open:t}=e;return{offset:gt(t&&hf.valueLabelOpen),circle:hf.valueLabelCircle,label:hf.valueLabelLabel}};function W7e(e){const{children:t,className:n,value:r}=e,i=V7e(e);return t?P.cloneElement(t,{className:gt(t.props.className)},D.jsxs(P.Fragment,{children:[t.props.children,D.jsx("span",{className:gt(i.offset,n),"aria-hidden":!0,children:D.jsx("span",{className:i.circle,children:D.jsx("span",{className:i.label,children:r})})})]})):null}const Q7e=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function gJ(e){return e}const Y7e=Ne("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${yt(n.color)}`],n.size!=="medium"&&t[`size${yt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>$({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&$({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&$({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${hf.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${hf.dragging}`]:{[`& .${hf.thumb}, & .${hf.track}`]:{transition:"none"}}})),q7e=Ne("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>$({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),G7e=Ne("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Wk(e.palette[t.color].main,.62):Vk(e.palette[t.color].main,.5);return $({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Z7e=Ne("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${yt(n.color)}`],n.size!=="medium"&&t[`thumbSize${yt(n.size)}`]]}})(({theme:e,ownerState:t})=>$({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":$({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${hf.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:In(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${hf.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:In(e.palette[t.color].main,.16)}`},[`&.${hf.disabled}`]:{"&:hover":{boxShadow:"none"}}})),X7e=Ne(W7e,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>$({[`&.${hf.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),K7e=Ne("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>uz(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>$({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),J7e=Ne("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>uz(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),e8e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${yt(o)}`,l&&`size${yt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${yt(l)}`,o&&`thumbColor${yt(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return $t(c,H7e,s)},t8e=({children:e})=>e,n8e=P.forwardRef(function(t,n){var r,i,a,s,o,l,c,d,h,p,b,v,S,w,T,x,k,C,I,_,A,U,F,M;const V=Rt({props:t,name:"MuiSlider"}),X=ji().direction==="rtl",{"aria-label":Y,"aria-valuetext":W,"aria-labelledby":ee,component:J="span",components:K={},componentsProps:ne={},color:j="primary",classes:Ce,className:ye,disableSwap:te=!1,disabled:ve=!1,getAriaLabel:Se,getAriaValueText:he,marks:Pe=!1,max:Me=100,min:Ze=0,orientation:ot="horizontal",size:Qe="medium",step:Je=1,scale:Ye=gJ,slotProps:nt,slots:tt,track:ht="normal",valueLabelDisplay:_t="off",valueLabelFormat:lt=gJ}=V,ge=st(V,Q7e),ue=$({},V,{isRtl:X,max:Me,min:Ze,classes:Ce,disabled:ve,disableSwap:te,orientation:ot,marks:Pe,color:j,size:Qe,step:Je,scale:Ye,track:ht,valueLabelDisplay:_t,valueLabelFormat:lt}),{axisProps:me,getRootProps:We,getHiddenInputProps:et,getThumbProps:qe,open:pe,active:Te,axis:Oe,focusedThumbIndex:De,range:je,dragging:Ot,marks:jt,values:Xt,trackOffset:St,trackLeap:Kt,getThumbStyle:pt}=F5e($({},ue,{rootRef:n}));ue.marked=jt.length>0&&jt.some(it=>it.label),ue.dragging=Ot,ue.focusedThumbIndex=De;const At=e8e(ue),en=(r=(i=tt==null?void 0:tt.root)!=null?i:K.Root)!=null?r:Y7e,Dn=(a=(s=tt==null?void 0:tt.rail)!=null?s:K.Rail)!=null?a:q7e,$n=(o=(l=tt==null?void 0:tt.track)!=null?l:K.Track)!=null?o:G7e,Qn=(c=(d=tt==null?void 0:tt.thumb)!=null?d:K.Thumb)!=null?c:Z7e,ur=(h=(p=tt==null?void 0:tt.valueLabel)!=null?p:K.ValueLabel)!=null?h:X7e,Qr=(b=(v=tt==null?void 0:tt.mark)!=null?v:K.Mark)!=null?b:K7e,$e=(S=(w=tt==null?void 0:tt.markLabel)!=null?w:K.MarkLabel)!=null?S:J7e,Ve=(T=(x=tt==null?void 0:tt.input)!=null?x:K.Input)!=null?T:"input",ct=(k=nt==null?void 0:nt.root)!=null?k:ne.root,Nt=(C=nt==null?void 0:nt.rail)!=null?C:ne.rail,qt=(I=nt==null?void 0:nt.track)!=null?I:ne.track,Bn=(_=nt==null?void 0:nt.thumb)!=null?_:ne.thumb,yn=(A=nt==null?void 0:nt.valueLabel)!=null?A:ne.valueLabel,rn=(U=nt==null?void 0:nt.mark)!=null?U:ne.mark,Zt=(F=nt==null?void 0:nt.markLabel)!=null?F:ne.markLabel,Fn=(M=nt==null?void 0:nt.input)!=null?M:ne.input,Ge=gr({elementType:en,getSlotProps:We,externalSlotProps:ct,externalForwardedProps:ge,additionalProps:$({},j7e(en)&&{as:J}),ownerState:$({},ue,ct==null?void 0:ct.ownerState),className:[At.root,ye]}),Ke=gr({elementType:Dn,externalSlotProps:Nt,ownerState:ue,className:At.rail}),dt=gr({elementType:$n,externalSlotProps:qt,additionalProps:{style:$({},me[Oe].offset(St),me[Oe].leap(Kt))},ownerState:$({},ue,qt==null?void 0:qt.ownerState),className:At.track}),Et=gr({elementType:Qn,getSlotProps:qe,externalSlotProps:Bn,ownerState:$({},ue,Bn==null?void 0:Bn.ownerState),className:At.thumb}),Jn=gr({elementType:ur,externalSlotProps:yn,ownerState:$({},ue,yn==null?void 0:yn.ownerState),className:At.valueLabel}),bn=gr({elementType:Qr,externalSlotProps:rn,ownerState:ue,className:At.mark}),Yn=gr({elementType:$e,externalSlotProps:Zt,ownerState:ue,className:At.markLabel}),mi=gr({elementType:Ve,getSlotProps:et,externalSlotProps:Fn,ownerState:ue});return D.jsxs(en,$({},Ge,{children:[D.jsx(Dn,$({},Ke)),D.jsx($n,$({},dt)),jt.filter(it=>it.value>=Ze&&it.value<=Me).map((it,Ue)=>{const ke=wR(it.value,Ze,Me),ln=me[Oe].offset(ke);let qn;return ht===!1?qn=Xt.indexOf(it.value)!==-1:qn=ht==="normal"&&(je?it.value>=Xt[0]&&it.value<=Xt[Xt.length-1]:it.value<=Xt[0])||ht==="inverted"&&(je?it.value<=Xt[0]||it.value>=Xt[Xt.length-1]:it.value>=Xt[0]),D.jsxs(P.Fragment,{children:[D.jsx(Qr,$({"data-index":Ue},bn,!jh(Qr)&&{markActive:qn},{style:$({},ln,bn.style),className:gt(bn.className,qn&&At.markActive)})),it.label!=null?D.jsx($e,$({"aria-hidden":!0,"data-index":Ue},Yn,!jh($e)&&{markLabelActive:qn},{style:$({},ln,Yn.style),className:gt(At.markLabel,Yn.className,qn&&At.markLabelActive),children:it.label})):null]},Ue)}),Xt.map((it,Ue)=>{const ke=wR(it,Ze,Me),ln=me[Oe].offset(ke),qn=_t==="off"?t8e:ur;return D.jsx(qn,$({},!jh(qn)&&{valueLabelFormat:lt,valueLabelDisplay:_t,value:typeof lt=="function"?lt(Ye(it),Ue):lt,index:Ue,open:pe===Ue||Te===Ue||_t==="on",disabled:ve},Jn,{children:D.jsx(Qn,$({"data-index":Ue},Et,{className:gt(At.thumb,Et.className,Te===Ue&&At.active,De===Ue&&At.focusVisible),style:$({},ln,pt(Ue),Et.style),children:D.jsx(Ve,$({"data-index":Ue,"aria-label":Se?Se(Ue):Y,"aria-valuenow":Ye(it),"aria-labelledby":ee,"aria-valuetext":he?he(Ye(it),Ue):W,value:Xt[Ue]},mi))}))}),Ue)})]}))}),r8e=n8e;function i8e(e){return Ut("MuiTooltip",e)}const a8e=zt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),W0=a8e,s8e=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function o8e(e){return Math.round(e*1e5)/1e5}const l8e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${yt(a.split("-")[0])}`],arrow:["arrow"]};return $t(s,i8e,t)},u8e=Ne(sE,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${W0.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${W0.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${W0.arrow}`]:$({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${W0.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),c8e=Ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${yt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:In(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${o8e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${W0.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${W0.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${W0.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${W0.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),d8e=Ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:In(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let x4=!1;const bJ=new Uk;let aT={x:0,y:0};function k4(e,t){return n=>{t&&t(n),e(n)}}const f8e=P.forwardRef(function(t,n){var r,i,a,s,o,l,c,d,h,p,b,v,S,w,T,x,k,C,I;const _=Rt({props:t,name:"MuiTooltip"}),{arrow:A=!1,children:U,components:F={},componentsProps:M={},describeChild:V=!1,disableFocusListener:Q=!1,disableHoverListener:X=!1,disableInteractive:Y=!1,disableTouchListener:W=!1,enterDelay:ee=100,enterNextDelay:J=0,enterTouchDelay:K=700,followCursor:ne=!1,id:j,leaveDelay:Ce=0,leaveTouchDelay:ye=1500,onClose:te,onOpen:ve,open:Se,placement:he="bottom",PopperComponent:Pe,PopperProps:Me={},slotProps:Ze={},slots:ot={},title:Qe,TransitionComponent:Je=xR,TransitionProps:Ye}=_,nt=st(_,s8e),tt=P.isValidElement(U)?U:D.jsx("span",{children:U}),ht=ji(),_t=ht.direction==="rtl",[lt,ge]=P.useState(),[ue,me]=P.useState(null),We=P.useRef(!1),et=Y||ne,qe=pb(),pe=pb(),Te=pb(),Oe=pb(),[De,je]=Ms({controlled:Se,default:!1,name:"Tooltip",state:"open"});let Ot=De;const jt=_f(j),Xt=P.useRef(),St=on(()=>{Xt.current!==void 0&&(document.body.style.WebkitUserSelect=Xt.current,Xt.current=void 0),Oe.clear()});P.useEffect(()=>St,[St]);const Kt=Nn=>{bJ.clear(),x4=!0,je(!0),ve&&!Ot&&ve(Nn)},pt=on(Nn=>{bJ.start(800+Ce,()=>{x4=!1}),je(!1),te&&Ot&&te(Nn),qe.start(ht.transitions.duration.shortest,()=>{We.current=!1})}),At=Nn=>{We.current&&Nn.type!=="touchstart"||(lt&<.removeAttribute("title"),pe.clear(),Te.clear(),ee||x4&&J?pe.start(x4?J:ee,()=>{Kt(Nn)}):Kt(Nn))},en=Nn=>{pe.clear(),Te.start(Ce,()=>{pt(Nn)})},{isFocusVisibleRef:Dn,onBlur:$n,onFocus:Qn,ref:ur}=UD(),[,Qr]=P.useState(!1),$e=Nn=>{$n(Nn),Dn.current===!1&&(Qr(!1),en(Nn))},Ve=Nn=>{lt||ge(Nn.currentTarget),Qn(Nn),Dn.current===!0&&(Qr(!0),At(Nn))},ct=Nn=>{We.current=!0;const Gn=tt.props;Gn.onTouchStart&&Gn.onTouchStart(Nn)},Nt=At,qt=en,Bn=Nn=>{ct(Nn),Te.clear(),qe.clear(),St(),Xt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Oe.start(K,()=>{document.body.style.WebkitUserSelect=Xt.current,At(Nn)})},yn=Nn=>{tt.props.onTouchEnd&&tt.props.onTouchEnd(Nn),St(),Te.start(ye,()=>{pt(Nn)})};P.useEffect(()=>{if(!Ot)return;function Nn(Gn){(Gn.key==="Escape"||Gn.key==="Esc")&&pt(Gn)}return document.addEventListener("keydown",Nn),()=>{document.removeEventListener("keydown",Nn)}},[pt,Ot]);const rn=rr(tt.ref,ur,ge,n);!Qe&&Qe!==0&&(Ot=!1);const Zt=P.useRef(),Fn=Nn=>{const Gn=tt.props;Gn.onMouseMove&&Gn.onMouseMove(Nn),aT={x:Nn.clientX,y:Nn.clientY},Zt.current&&Zt.current.update()},Ge={},Ke=typeof Qe=="string";V?(Ge.title=!Ot&&Ke&&!X?Qe:null,Ge["aria-describedby"]=Ot?jt:null):(Ge["aria-label"]=Ke?Qe:null,Ge["aria-labelledby"]=Ot&&!Ke?jt:null);const dt=$({},Ge,nt,tt.props,{className:gt(nt.className,tt.props.className),onTouchStart:ct,ref:rn},ne?{onMouseMove:Fn}:{}),Et={};W||(dt.onTouchStart=Bn,dt.onTouchEnd=yn),X||(dt.onMouseOver=k4(Nt,dt.onMouseOver),dt.onMouseLeave=k4(qt,dt.onMouseLeave),et||(Et.onMouseOver=Nt,Et.onMouseLeave=qt)),Q||(dt.onFocus=k4(Ve,dt.onFocus),dt.onBlur=k4($e,dt.onBlur),et||(Et.onFocus=Ve,Et.onBlur=$e));const Jn=P.useMemo(()=>{var Nn;let Gn=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(Nn=Me.popperOptions)!=null&&Nn.modifiers&&(Gn=Gn.concat(Me.popperOptions.modifiers)),$({},Me.popperOptions,{modifiers:Gn})},[ue,Me]),bn=$({},_,{isRtl:_t,arrow:A,disableInteractive:et,placement:he,PopperComponentProp:Pe,touch:We.current}),Yn=l8e(bn),mi=(r=(i=ot.popper)!=null?i:F.Popper)!=null?r:u8e,it=(a=(s=(o=ot.transition)!=null?o:F.Transition)!=null?s:Je)!=null?a:xR,Ue=(l=(c=ot.tooltip)!=null?c:F.Tooltip)!=null?l:c8e,ke=(d=(h=ot.arrow)!=null?h:F.Arrow)!=null?d:d8e,ln=zT(mi,$({},Me,(p=Ze.popper)!=null?p:M.popper,{className:gt(Yn.popper,Me==null?void 0:Me.className,(b=(v=Ze.popper)!=null?v:M.popper)==null?void 0:b.className)}),bn),qn=zT(it,$({},Ye,(S=Ze.transition)!=null?S:M.transition),bn),Jr=zT(Ue,$({},(w=Ze.tooltip)!=null?w:M.tooltip,{className:gt(Yn.tooltip,(T=(x=Ze.tooltip)!=null?x:M.tooltip)==null?void 0:T.className)}),bn),Ie=zT(ke,$({},(k=Ze.arrow)!=null?k:M.arrow,{className:gt(Yn.arrow,(C=(I=Ze.arrow)!=null?I:M.arrow)==null?void 0:C.className)}),bn);return D.jsxs(P.Fragment,{children:[P.cloneElement(tt,dt),D.jsx(mi,$({as:Pe??sE,placement:he,anchorEl:ne?{getBoundingClientRect:()=>({top:aT.y,left:aT.x,right:aT.x,bottom:aT.y,width:0,height:0})}:lt,popperRef:Zt,open:lt?Ot:!1,id:jt,transition:!0},Et,ln,{popperOptions:Jn,children:({TransitionProps:Nn})=>D.jsx(it,$({timeout:ht.transitions.duration.shorter},Nn,qn,{children:D.jsxs(Ue,$({},Jr,{children:[Qe,A?D.jsx(ke,$({},Ie,{ref:me})):null]}))}))}))]})}),sb=f8e;function h8e(e){return Ut("MuiSwitch",e)}const p8e=zt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),il=p8e,m8e=["className","color","edge","size","sx"],g8e=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${yt(n)}`,`size${yt(r)}`],switchBase:["switchBase",`color${yt(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$t(o,h8e,t);return $({},t,l)},b8e=Ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${yt(n.edge)}`],t[`size${yt(n.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${il.thumb}`]:{width:16,height:16},[`& .${il.switchBase}`]:{padding:4,[`&.${il.checked}`]:{transform:"translateX(16px)"}}})),y8e=Ne(Cz,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${il.input}`]:t.input},n.color!=="default"&&t[`color${yt(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${il.checked}`]:{transform:"translateX(20px)"},[`&.${il.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${il.checked} + .${il.track}`]:{opacity:.5},[`&.${il.disabled} + .${il.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${il.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${il.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${il.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Wk(e.palette[t.color].main,.62):Vk(e.palette[t.color].main,.55)}`}},[`&.${il.checked} + .${il.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),v8e=Ne("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),O8e=Ne("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),S8e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,c=st(r,m8e),d=$({},r,{color:a,edge:s,size:o}),h=g8e(d),p=D.jsx(O8e,{className:h.thumb,ownerState:d});return D.jsxs(b8e,{className:gt(h.root,i),sx:l,ownerState:d,children:[D.jsx(y8e,$({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:d},c,{classes:$({},h,{root:h.switchBase})})),D.jsx(v8e,{className:h.track,ownerState:d})]})}),E8e=S8e;function w8e(e){return Ut("MuiTab",e)}const T8e=zt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),V1=T8e,x8e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],k8e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:s,selected:o,disabled:l}=e,c={root:["root",a&&s&&"labelIcon",`textColor${yt(n)}`,r&&"fullWidth",i&&"wrapped",o&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return $t(c,w8e,t)},C8e=Ne(fc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${yt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${V1.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${V1.selected}`]:{opacity:1},[`&.${V1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${V1.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${V1.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${V1.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${V1.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),_8e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:o,icon:l,iconPosition:c="top",indicator:d,label:h,onChange:p,onClick:b,onFocus:v,selected:S,selectionFollowsFocus:w,textColor:T="inherit",value:x,wrapped:k=!1}=r,C=st(r,x8e),I=$({},r,{disabled:a,disableFocusRipple:s,selected:S,icon:!!l,iconPosition:c,label:!!h,fullWidth:o,textColor:T,wrapped:k}),_=k8e(I),A=l&&h&&P.isValidElement(l)?P.cloneElement(l,{className:gt(_.iconWrapper,l.props.className)}):l,U=M=>{!S&&p&&p(M,x),b&&b(M)},F=M=>{w&&!S&&p&&p(M,x),v&&v(M)};return D.jsxs(C8e,$({focusRipple:!s,className:gt(_.root,i),ref:n,role:"tab","aria-selected":S,disabled:a,onClick:U,onFocus:F,ownerState:I,tabIndex:S?0:-1},C,{children:[c==="top"||c==="start"?D.jsxs(P.Fragment,{children:[A,h]}):D.jsxs(P.Fragment,{children:[h,A]}),d]}))}),yJ=_8e,A8e=P.createContext(),cde=A8e;function R8e(e){return Ut("MuiTable",e)}zt("MuiTable",["root","stickyHeader"]);const I8e=["className","component","padding","size","stickyHeader"],D8e=e=>{const{classes:t,stickyHeader:n}=e;return $t({root:["root",n&&"stickyHeader"]},R8e,t)},N8e=Ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),vJ="table",P8e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTable"}),{className:i,component:a=vJ,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,c=st(r,I8e),d=$({},r,{component:a,padding:s,size:o,stickyHeader:l}),h=D8e(d),p=P.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return D.jsx(cde.Provider,{value:p,children:D.jsx(N8e,$({as:a,role:a===vJ?null:"table",ref:n,className:gt(h.root,i),ownerState:d},c))})}),M8e=P8e,L8e=P.createContext(),cN=L8e;function $8e(e){return Ut("MuiTableBody",e)}zt("MuiTableBody",["root"]);const F8e=["className","component"],B8e=e=>{const{classes:t}=e;return $t({root:["root"]},$8e,t)},U8e=Ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),z8e={variant:"body"},OJ="tbody",j8e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTableBody"}),{className:i,component:a=OJ}=r,s=st(r,F8e),o=$({},r,{component:a}),l=B8e(o);return D.jsx(cN.Provider,{value:z8e,children:D.jsx(U8e,$({className:gt(l.root,i),as:a,ref:n,role:a===OJ?null:"rowgroup",ownerState:o},s))})}),H8e=j8e;function V8e(e){return Ut("MuiTableCell",e)}const W8e=zt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Q8e=W8e,Y8e=["align","className","component","padding","scope","size","sortDirection","variant"],q8e=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${yt(r)}`,i!=="normal"&&`padding${yt(i)}`,`size${yt(a)}`]};return $t(o,V8e,t)},G8e=Ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${yt(n.size)}`],n.padding!=="normal"&&t[`padding${yt(n.padding)}`],n.align!=="inherit"&&t[`align${yt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Wk(In(e.palette.divider,1),.88):Vk(In(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Q8e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Z8e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:c,sortDirection:d,variant:h}=r,p=st(r,Y8e),b=P.useContext(cde),v=P.useContext(cN),S=v&&v.variant==="head";let w;s?w=s:w=S?"th":"td";let T=l;w==="td"?T=void 0:!T&&S&&(T="col");const x=h||v&&v.variant,k=$({},r,{align:i,component:w,padding:o||(b&&b.padding?b.padding:"normal"),size:c||(b&&b.size?b.size:"medium"),sortDirection:d,stickyHeader:x==="head"&&b&&b.stickyHeader,variant:x}),C=q8e(k);let I=null;return d&&(I=d==="asc"?"ascending":"descending"),D.jsx(G8e,$({as:w,ref:n,className:gt(C.root,a),"aria-sort":I,scope:T,ownerState:k},p))}),Rv=Z8e;function X8e(e){return Ut("MuiTableContainer",e)}zt("MuiTableContainer",["root"]);const K8e=["className","component"],J8e=e=>{const{classes:t}=e;return $t({root:["root"]},X8e,t)},eMe=Ne("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),tMe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=st(r,K8e),o=$({},r,{component:a}),l=J8e(o);return D.jsx(eMe,$({ref:n,as:a,className:gt(l.root,i),ownerState:o},s))}),nMe=tMe;function rMe(e){return Ut("MuiTableHead",e)}zt("MuiTableHead",["root"]);const iMe=["className","component"],aMe=e=>{const{classes:t}=e;return $t({root:["root"]},rMe,t)},sMe=Ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),oMe={variant:"head"},SJ="thead",lMe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTableHead"}),{className:i,component:a=SJ}=r,s=st(r,iMe),o=$({},r,{component:a}),l=aMe(o);return D.jsx(cN.Provider,{value:oMe,children:D.jsx(sMe,$({as:a,className:gt(l.root,i),ref:n,role:a===SJ?null:"rowgroup",ownerState:o},s))})}),uMe=lMe;function cMe(e){return Ut("MuiToolbar",e)}zt("MuiToolbar",["root","gutters","regular","dense"]);const dMe=["className","component","disableGutters","variant"],fMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return $t({root:["root",!n&&"gutters",r]},cMe,t)},hMe=Ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),pMe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=st(r,dMe),c=$({},r,{component:a,disableGutters:s,variant:o}),d=fMe(c);return D.jsx(hMe,$({as:a,className:gt(d.root,i),ref:n,ownerState:c},l))}),dde=pMe,mMe=ns(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),gMe=ns(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function bMe(e){return Ut("MuiTableRow",e)}const yMe=zt("MuiTableRow",["root","selected","hover","head","footer"]),EJ=yMe,vMe=["className","component","hover","selected"],OMe=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return $t({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},bMe,t)},SMe=Ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${EJ.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${EJ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),wJ="tr",EMe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTableRow"}),{className:i,component:a=wJ,hover:s=!1,selected:o=!1}=r,l=st(r,vMe),c=P.useContext(cN),d=$({},r,{component:a,hover:s,selected:o,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),h=OMe(d);return D.jsx(SMe,$({as:a,ref:n,className:gt(h.root,i),role:a===wJ?null:"row",ownerState:d},l))}),TJ=EMe;function wMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function TMe(e,t,n,r={},i=()=>{}){const{ease:a=wMe,duration:s=300}=r;let o=null;const l=t[e];let c=!1;const d=()=>{c=!0},h=p=>{if(c){i(new Error("Animation cancelled"));return}o===null&&(o=p);const b=Math.min(1,(p-o)/s);if(t[e]=a(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return l===n?(i(new Error("Element already at target position")),d):(requestAnimationFrame(h),d)}const xMe=["onChange"],kMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function CMe(e){const{onChange:t}=e,n=st(e,xMe),r=P.useRef(),i=P.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return wa(()=>{const s=iE(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),o=vd(i.current);return o.addEventListener("resize",s),()=>{s.clear(),o.removeEventListener("resize",s)}},[t]),P.useEffect(()=>{a(),t(r.current)},[t]),D.jsx("div",$({style:kMe,ref:i},n))}function _Me(e){return Ut("MuiTabScrollButton",e)}const AMe=zt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),RMe=AMe,IMe=["className","slots","slotProps","direction","orientation","disabled"],DMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return $t({root:["root",n,r&&"disabled"]},_Me,t)},NMe=Ne(fc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${RMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),PMe=P.forwardRef(function(t,n){var r,i;const a=Rt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:o={},slotProps:l={},direction:c}=a,d=st(a,IMe),p=ji().direction==="rtl",b=$({isRtl:p},a),v=DMe(b),S=(r=o.StartScrollButtonIcon)!=null?r:mMe,w=(i=o.EndScrollButtonIcon)!=null?i:gMe,T=gr({elementType:S,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),x=gr({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return D.jsx(NMe,$({component:"div",className:gt(v.root,s),ref:n,role:null,ownerState:b,tabIndex:null},d,{children:c==="left"?D.jsx(S,$({},T)):D.jsx(w,$({},x))}))}),MMe=PMe;function LMe(e){return Ut("MuiTabs",e)}const $Me=zt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),e5=$Me,FMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],xJ=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,kJ=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,C4=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},BMe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:s,scrollButtonsHideMobile:o,classes:l}=e;return $t({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",o&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},LMe,l)},UMe=Ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${e5.scrollButtons}`]:t.scrollButtons},{[`& .${e5.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${e5.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),zMe=Ne("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),jMe=Ne("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),HMe=Ne("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),VMe=Ne(CMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),CJ={},WMe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabs"}),i=ji(),a=i.direction==="rtl",{"aria-label":s,"aria-labelledby":o,action:l,centered:c=!1,children:d,className:h,component:p="div",allowScrollButtonsMobile:b=!1,indicatorColor:v="primary",onChange:S,orientation:w="horizontal",ScrollButtonComponent:T=MMe,scrollButtons:x="auto",selectionFollowsFocus:k,slots:C={},slotProps:I={},TabIndicatorProps:_={},TabScrollButtonProps:A={},textColor:U="primary",value:F,variant:M="standard",visibleScrollbar:V=!1}=r,Q=st(r,FMe),X=M==="scrollable",Y=w==="vertical",W=Y?"scrollTop":"scrollLeft",ee=Y?"top":"left",J=Y?"bottom":"right",K=Y?"clientHeight":"clientWidth",ne=Y?"height":"width",j=$({},r,{component:p,allowScrollButtonsMobile:b,indicatorColor:v,orientation:w,vertical:Y,scrollButtons:x,textColor:U,variant:M,visibleScrollbar:V,fixed:!X,hideScrollbar:X&&!V,scrollableX:X&&!Y,scrollableY:X&&Y,centered:c&&!X,scrollButtonsHideMobile:!b}),Ce=BMe(j),ye=gr({elementType:C.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:j}),te=gr({elementType:C.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:j}),[ve,Se]=P.useState(!1),[he,Pe]=P.useState(CJ),[Me,Ze]=P.useState(!1),[ot,Qe]=P.useState(!1),[Je,Ye]=P.useState(!1),[nt,tt]=P.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,_t=P.useRef(null),lt=P.useRef(null),ge=()=>{const pt=_t.current;let At;if(pt){const Dn=pt.getBoundingClientRect();At={clientWidth:pt.clientWidth,scrollLeft:pt.scrollLeft,scrollTop:pt.scrollTop,scrollLeftNormalized:vCe(pt,i.direction),scrollWidth:pt.scrollWidth,top:Dn.top,bottom:Dn.bottom,left:Dn.left,right:Dn.right}}let en;if(pt&&F!==!1){const Dn=lt.current.children;if(Dn.length>0){const $n=Dn[ht.get(F)];en=$n?$n.getBoundingClientRect():null}}return{tabsMeta:At,tabMeta:en}},ue=on(()=>{const{tabsMeta:pt,tabMeta:At}=ge();let en=0,Dn;if(Y)Dn="top",At&&pt&&(en=At.top-pt.top+pt.scrollTop);else if(Dn=a?"right":"left",At&&pt){const Qn=a?pt.scrollLeftNormalized+pt.clientWidth-pt.scrollWidth:pt.scrollLeft;en=(a?-1:1)*(At[Dn]-pt[Dn]+Qn)}const $n={[Dn]:en,[ne]:At?At[ne]:0};if(isNaN(he[Dn])||isNaN(he[ne]))Pe($n);else{const Qn=Math.abs(he[Dn]-$n[Dn]),ur=Math.abs(he[ne]-$n[ne]);(Qn>=1||ur>=1)&&Pe($n)}}),me=(pt,{animation:At=!0}={})=>{At?TMe(W,_t.current,pt,{duration:i.transitions.duration.standard}):_t.current[W]=pt},We=pt=>{let At=_t.current[W];Y?At+=pt:(At+=pt*(a?-1:1),At*=a&&nce()==="reverse"?-1:1),me(At)},et=()=>{const pt=_t.current[K];let At=0;const en=Array.from(lt.current.children);for(let Dn=0;Dnpt){Dn===0&&(At=pt);break}At+=$n[K]}return At},qe=()=>{We(-1*et())},pe=()=>{We(et())},Te=P.useCallback(pt=>{tt({overflow:null,scrollbarWidth:pt})},[]),Oe=()=>{const pt={};pt.scrollbarSizeListener=X?D.jsx(VMe,{onChange:Te,className:gt(Ce.scrollableX,Ce.hideScrollbar)}):null;const en=X&&(x==="auto"&&(Me||ot)||x===!0);return pt.scrollButtonStart=en?D.jsx(T,$({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ye},orientation:w,direction:a?"right":"left",onClick:qe,disabled:!Me},A,{className:gt(Ce.scrollButtons,A.className)})):null,pt.scrollButtonEnd=en?D.jsx(T,$({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:te},orientation:w,direction:a?"left":"right",onClick:pe,disabled:!ot},A,{className:gt(Ce.scrollButtons,A.className)})):null,pt},De=on(pt=>{const{tabsMeta:At,tabMeta:en}=ge();if(!(!en||!At)){if(en[ee]At[J]){const Dn=At[W]+(en[J]-At[J]);me(Dn,{animation:pt})}}}),je=on(()=>{X&&x!==!1&&Ye(!Je)});P.useEffect(()=>{const pt=iE(()=>{_t.current&&ue()});let At;const en=Qn=>{Qn.forEach(ur=>{ur.removedNodes.forEach(Qr=>{var $e;($e=At)==null||$e.unobserve(Qr)}),ur.addedNodes.forEach(Qr=>{var $e;($e=At)==null||$e.observe(Qr)})}),pt(),je()},Dn=vd(_t.current);Dn.addEventListener("resize",pt);let $n;return typeof ResizeObserver<"u"&&(At=new ResizeObserver(pt),Array.from(lt.current.children).forEach(Qn=>{At.observe(Qn)})),typeof MutationObserver<"u"&&($n=new MutationObserver(en),$n.observe(lt.current,{childList:!0})),()=>{var Qn,ur;pt.clear(),Dn.removeEventListener("resize",pt),(Qn=$n)==null||Qn.disconnect(),(ur=At)==null||ur.disconnect()}},[ue,je]),P.useEffect(()=>{const pt=Array.from(lt.current.children),At=pt.length;if(typeof IntersectionObserver<"u"&&At>0&&X&&x!==!1){const en=pt[0],Dn=pt[At-1],$n={root:_t.current,threshold:.99},Qn=Ve=>{Ze(!Ve[0].isIntersecting)},ur=new IntersectionObserver(Qn,$n);ur.observe(en);const Qr=Ve=>{Qe(!Ve[0].isIntersecting)},$e=new IntersectionObserver(Qr,$n);return $e.observe(Dn),()=>{ur.disconnect(),$e.disconnect()}}},[X,x,Je,d==null?void 0:d.length]),P.useEffect(()=>{Se(!0)},[]),P.useEffect(()=>{ue()}),P.useEffect(()=>{De(CJ!==he)},[De,he]),P.useImperativeHandle(l,()=>({updateIndicator:ue,updateScrollButtons:je}),[ue,je]);const Ot=D.jsx(HMe,$({},_,{className:gt(Ce.indicator,_.className),ownerState:j,style:$({},he,_.style)}));let jt=0;const Xt=P.Children.map(d,pt=>{if(!P.isValidElement(pt))return null;const At=pt.props.value===void 0?jt:pt.props.value;ht.set(At,jt);const en=At===F;return jt+=1,P.cloneElement(pt,$({fullWidth:M==="fullWidth",indicator:en&&!ve&&Ot,selected:en,selectionFollowsFocus:k,onChange:S,textColor:U,value:At},jt===1&&F===!1&&!pt.props.tabIndex?{tabIndex:0}:{}))}),St=pt=>{const At=lt.current,en=_i(At).activeElement;if(en.getAttribute("role")!=="tab")return;let $n=w==="horizontal"?"ArrowLeft":"ArrowUp",Qn=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&a&&($n="ArrowRight",Qn="ArrowLeft"),pt.key){case $n:pt.preventDefault(),C4(At,en,kJ);break;case Qn:pt.preventDefault(),C4(At,en,xJ);break;case"Home":pt.preventDefault(),C4(At,null,xJ);break;case"End":pt.preventDefault(),C4(At,null,kJ);break}},Kt=Oe();return D.jsxs(UMe,$({className:gt(Ce.root,h),ownerState:j,ref:n,as:p},Q,{children:[Kt.scrollButtonStart,Kt.scrollbarSizeListener,D.jsxs(zMe,{className:Ce.scroller,ownerState:j,style:{overflow:nt.overflow,[Y?`margin${a?"Left":"Right"}`:"marginBottom"]:V?void 0:-nt.scrollbarWidth},ref:_t,children:[D.jsx(jMe,{"aria-label":s,"aria-labelledby":o,"aria-orientation":w==="vertical"?"vertical":null,className:Ce.flexContainer,ownerState:j,onKeyDown:St,ref:lt,role:"tablist",children:Xt}),ve&&Ot]}),Kt.scrollButtonEnd]}))}),QMe=WMe;function YMe(e){return Ut("MuiTextField",e)}zt("MuiTextField",["root"]);const qMe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],GMe={standard:Zce,filled:Wce,outlined:ade},ZMe=e=>{const{classes:t}=e;return $t({root:["root"]},YMe,t)},XMe=Ne(Af,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KMe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:c,disabled:d=!1,error:h=!1,FormHelperTextProps:p,fullWidth:b=!1,helperText:v,id:S,InputLabelProps:w,inputProps:T,InputProps:x,inputRef:k,label:C,maxRows:I,minRows:_,multiline:A=!1,name:U,onBlur:F,onChange:M,onFocus:V,placeholder:Q,required:X=!1,rows:Y,select:W=!1,SelectProps:ee,type:J,value:K,variant:ne="outlined"}=r,j=st(r,qMe),Ce=$({},r,{autoFocus:a,color:l,disabled:d,error:h,fullWidth:b,multiline:A,required:X,select:W,variant:ne}),ye=ZMe(Ce),te={};ne==="outlined"&&(w&&typeof w.shrink<"u"&&(te.notched=w.shrink),te.label=C),W&&((!ee||!ee.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const ve=_f(S),Se=v&&ve?`${ve}-helper-text`:void 0,he=C&&ve?`${ve}-label`:void 0,Pe=GMe[ne],Me=D.jsx(Pe,$({"aria-describedby":Se,autoComplete:i,autoFocus:a,defaultValue:c,fullWidth:b,multiline:A,name:U,rows:Y,maxRows:I,minRows:_,type:J,value:K,id:ve,inputRef:k,onBlur:F,onChange:M,onFocus:V,placeholder:Q,inputProps:T},te,x));return D.jsxs(XMe,$({className:gt(ye.root,o),disabled:d,error:h,fullWidth:b,ref:n,required:X,color:l,variant:ne,ownerState:Ce},j,{children:[C!=null&&C!==""&&D.jsx(Xce,$({htmlFor:ve,id:he},w,{children:C})),W?D.jsx(ude,$({"aria-describedby":Se,id:ve,labelId:he,value:K,input:Me},ee,{children:s})):Me,v&&D.jsx(oE,$({id:Se},p,{children:v}))]}))}),zg=KMe;function JMe(e){return Ut("MuiToggleButton",e)}const eLe=zt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),hO=eLe,tLe=P.createContext({}),fde=tLe,nLe=P.createContext(void 0),hde=nLe;function rLe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const iLe=["value"],aLe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],sLe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${yt(a)}`,s]};return $t(o,JMe,t)},oLe=Ne(fc,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${yt(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),$({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${hO.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hO.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:In(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:In(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),lLe=P.forwardRef(function(t,n){const r=P.useContext(fde),{value:i}=r,a=st(r,iLe),s=P.useContext(hde),o=zD($({},a,{selected:rLe(t.value,i)}),t),l=Rt({props:o,name:"MuiToggleButton"}),{children:c,className:d,color:h="standard",disabled:p=!1,disableFocusRipple:b=!1,fullWidth:v=!1,onChange:S,onClick:w,selected:T,size:x="medium",value:k}=l,C=st(l,aLe),I=$({},l,{color:h,disabled:p,disableFocusRipple:b,fullWidth:v,size:x}),_=sLe(I),A=F=>{w&&(w(F,k),F.defaultPrevented)||S&&S(F,k)},U=s||"";return D.jsx(oLe,$({className:gt(a.className,_.root,d,U),disabled:p,focusRipple:!b,ref:n,onClick:A,onChange:S,value:k,ownerState:I,"aria-pressed":T},C,{children:c}))}),I8=lLe;function uLe(e){return Ut("MuiToggleButtonGroup",e)}const cLe=zt("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),oa=cLe,dLe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],fLe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${yt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return $t(a,uLe,t)},hLe=Ne("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${oa.grouped}`]:t.grouped},{[`& .${oa.grouped}`]:t[`grouped${yt(n.orientation)}`]},{[`& .${oa.firstButton}`]:t.firstButton},{[`& .${oa.lastButton}`]:t.lastButton},{[`& .${oa.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>$({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${oa.grouped}`]:$({},e.orientation==="horizontal"?{[`&.${oa.selected} + .${oa.grouped}.${oa.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${oa.selected} + .${oa.grouped}.${oa.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${oa.firstButton},& .${oa.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${oa.lastButton},& .${oa.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${oa.firstButton},& .${oa.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${oa.lastButton},& .${oa.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${oa.lastButton}.${hO.disabled},& .${oa.middleButton}.${hO.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${oa.lastButton}.${hO.disabled},& .${oa.middleButton}.${hO.disabled}`]:{borderTop:"1px solid transparent"}})),pLe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:h="horizontal",size:p="medium",value:b}=r,v=st(r,dLe),S=$({},r,{disabled:o,fullWidth:c,orientation:h,size:p}),w=fLe(S),T=P.useCallback((A,U)=>{if(!d)return;const F=b&&b.indexOf(U);let M;b&&F>=0?(M=b.slice(),M.splice(F,1)):M=b?b.concat(U):[U],d(A,M)},[d,b]),x=P.useCallback((A,U)=>{d&&d(A,b===U?null:U)},[d,b]),k=P.useMemo(()=>({className:w.grouped,onChange:l?x:T,value:b,size:p,fullWidth:c,color:s,disabled:o}),[w.grouped,l,x,T,b,p,c,s,o]),C=SCe(i),I=C.length,_=A=>{const U=A===0,F=A===I-1;return U&&F?"":U?w.firstButton:F?w.lastButton:w.middleButton};return D.jsx(hLe,$({role:"group",className:gt(w.root,a),ref:n,ownerState:S},v,{children:D.jsx(fde.Provider,{value:k,children:C.map((A,U)=>D.jsx(hde.Provider,{value:_(U),children:A},U))})}))}),mLe=pLe;var pde={exports:{}},mde={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -161,7 +162,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Qk=M;function vMe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OMe=typeof Object.is=="function"?Object.is:vMe,SMe=Qk.useSyncExternalStore,EMe=Qk.useRef,wMe=Qk.useEffect,TMe=Qk.useMemo,xMe=Qk.useDebugValue;Kce.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=EMe(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=TMe(function(){function l(b){if(!c){if(c=!0,d=b,b=r(b),i!==void 0&&s.hasValue){var v=s.value;if(i(v,b))return h=v}return h=b}if(v=h,OMe(d,b))return v;var S=r(b);return i!==void 0&&i(v,S)?v:(d=b,h=S)}var c=!1,d,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var o=SMe(e,a[0],a[1]);return wMe(function(){s.hasValue=!0,s.value=o},[o]),xMe(o),o};Xce.exports=Kce;var kMe=Xce.exports,ac="default"in gS?gn:gS,mJ=Symbol.for("react-redux-context"),gJ=typeof globalThis<"u"?globalThis:{};function CMe(){if(!ac.createContext)return{};const e=gJ[mJ]??(gJ[mJ]=new Map);let t=e.get(ac.createContext);return t||(t=ac.createContext(null),e.set(ac.createContext,t)),t}var Eg=CMe(),_Me=()=>{throw new Error("uSES not initialized!")};function Rz(e=Eg){return function(){return ac.useContext(e)}}var Jce=Rz(),ede=_Me,AMe=e=>{ede=e},RMe=(e,t)=>e===t;function IMe(e=Eg){const t=e===Eg?Jce:Rz(e),n=(r,i={})=>{const{equalityFn:a=RMe,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:c,stabilityCheck:d,identityFunctionCheck:h}=t();ac.useRef(!0);const p=ac.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,s.stabilityCheck]),b=ede(l.addNestedSub,o.getState,c||o.getState,p,a);return ac.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var Sa=IMe();function DMe(e){e()}function NMe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){DMe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var bJ={notify(){},get:()=>[]};function PMe(e,t){let n,r=bJ,i=0,a=!1;function s(S){d();const w=r.subscribe(S);let T=!1;return()=>{T||(T=!0,w(),h())}}function o(){r.notify()}function l(){v.onStateChange&&v.onStateChange()}function c(){return a}function d(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=NMe())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=bJ)}function p(){a||(a=!0,d())}function b(){a&&(a=!1,h())}const v={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:b,getListeners:()=>r};return v}var MMe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LMe=MMe?ac.useLayoutEffect:ac.useEffect;function $Me({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=ac.useMemo(()=>{const c=PMe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=ac.useMemo(()=>e.getState(),[e]);LMe(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),o!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,o]);const l=t||Eg;return ac.createElement(l.Provider,{value:s},n)}var FMe=$Me;function tde(e=Eg){const t=e===Eg?Jce:Rz(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var BMe=tde();function UMe(e=Eg){const t=e===Eg?BMe:tde(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Af=UMe();AMe(kMe.useSyncExternalStoreWithSelector);/** + */var Zk=P;function gLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bLe=typeof Object.is=="function"?Object.is:gLe,yLe=Zk.useSyncExternalStore,vLe=Zk.useRef,OLe=Zk.useEffect,SLe=Zk.useMemo,ELe=Zk.useDebugValue;mde.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=vLe(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=SLe(function(){function l(b){if(!c){if(c=!0,d=b,b=r(b),i!==void 0&&s.hasValue){var v=s.value;if(i(v,b))return h=v}return h=b}if(v=h,bLe(d,b))return v;var S=r(b);return i!==void 0&&i(v,S)?v:(d=b,h=S)}var c=!1,d,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var o=yLe(e,a[0],a[1]);return OLe(function(){s.hasValue=!0,s.value=o},[o]),ELe(o),o};pde.exports=mde;var wLe=pde.exports,ac="default"in yS?gn:yS,_J=Symbol.for("react-redux-context"),AJ=typeof globalThis<"u"?globalThis:{};function TLe(){if(!ac.createContext)return{};const e=AJ[_J]??(AJ[_J]=new Map);let t=e.get(ac.createContext);return t||(t=ac.createContext(null),e.set(ac.createContext,t)),t}var Sg=TLe(),xLe=()=>{throw new Error("uSES not initialized!")};function Dz(e=Sg){return function(){return ac.useContext(e)}}var gde=Dz(),bde=xLe,kLe=e=>{bde=e},CLe=(e,t)=>e===t;function _Le(e=Sg){const t=e===Sg?gde:Dz(e),n=(r,i={})=>{const{equalityFn:a=CLe,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:c,stabilityCheck:d,identityFunctionCheck:h}=t();ac.useRef(!0);const p=ac.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,s.stabilityCheck]),b=bde(l.addNestedSub,o.getState,c||o.getState,p,a);return ac.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var Ki=_Le();function ALe(e){e()}function RLe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ALe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var RJ={notify(){},get:()=>[]};function ILe(e,t){let n,r=RJ,i=0,a=!1;function s(S){d();const w=r.subscribe(S);let T=!1;return()=>{T||(T=!0,w(),h())}}function o(){r.notify()}function l(){v.onStateChange&&v.onStateChange()}function c(){return a}function d(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=RLe())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=RJ)}function p(){a||(a=!0,d())}function b(){a&&(a=!1,h())}const v={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:b,getListeners:()=>r};return v}var DLe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",NLe=DLe?ac.useLayoutEffect:ac.useEffect;function PLe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=ac.useMemo(()=>{const c=ILe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=ac.useMemo(()=>e.getState(),[e]);NLe(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),o!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,o]);const l=t||Sg;return ac.createElement(l.Provider,{value:s},n)}var MLe=PLe;function yde(e=Sg){const t=e===Sg?gde:Dz(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var LLe=yde();function $Le(e=Sg){const t=e===Sg?LLe:yde(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var kd=$Le();kLe(wLe.useSyncExternalStoreWithSelector);/** * @remix-run/router v1.14.2 * * Copyright (c) Remix Software Inc. @@ -170,8 +171,8 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Qb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jMe(){return Math.random().toString(36).substr(2,8)}function vJ(e,t){return{usr:e.state,key:e.key,idx:t}}function Ex(e,t,n,r){return n===void 0&&(n=null),Na({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xm(t):t,{state:n,key:t&&t.key||r||jMe()})}function Yk(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function xm(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 HMe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=za.Pop,l=null,c=d();c==null&&(c=0,s.replaceState(Na({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function h(){o=za.Pop;let w=d(),T=w==null?null:w-c;c=w,l&&l({action:o,location:S.location,delta:T})}function p(w,T){o=za.Push;let x=Ex(S.location,w,T);n&&n(x,w),c=d()+1;let k=vJ(x,c),C=S.createHref(x);try{s.pushState(k,"",C)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(C)}a&&l&&l({action:o,location:S.location,delta:1})}function b(w,T){o=za.Replace;let x=Ex(S.location,w,T);n&&n(x,w),c=d();let k=vJ(x,c),C=S.createHref(x);s.replaceState(k,"",C),a&&l&&l({action:o,location:S.location,delta:0})}function v(w){let T=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof w=="string"?w:Yk(w);return Mr(T,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,T)}let S={get action(){return o},get location(){return e(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(yJ,h),l=w,()=>{i.removeEventListener(yJ,h),l=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let T=v(w);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:p,replace:b,go(w){return s.go(w)}};return S}var Ia;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ia||(Ia={}));const VMe=new Set(["lazy","caseSensitive","path","id","index","children"]);function WMe(e){return e.index===!0}function U9(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,a],o=typeof i.id=="string"?i.id:s.join("-");if(Mr(i.index!==!0||!i.children,"Cannot specify children on an index route"),Mr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),WMe(i)){let l=Na({},i,t(i),{id:o});return r[o]=l,l}else{let l=Na({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=U9(i.children,t,s,r)),l}})}function hO(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?xm(t):t,i=qk(r.pathname||"/",n);if(i==null)return null;let a=nde(e);YMe(a);let s=null;for(let o=0;s==null&&o{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(Mr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=lg([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(Mr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),nde(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:eLe(c,a.index),routesMeta:d})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of rde(a.path))i(a,s,l)}),t}function rde(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=rde(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function YMe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tLe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qMe=/^:[\w-]+$/,GMe=3,ZMe=2,XMe=1,KMe=10,JMe=-2,OJ=e=>e==="*";function eLe(e,t){let n=e.split("/"),r=n.length;return n.some(OJ)&&(r+=JMe),t&&(r+=ZMe),n.filter(i=>!OJ(i)).reduce((i,a)=>i+(qMe.test(a)?GMe:a===""?XMe:KMe),r)}function tLe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function nLe(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let s=0;s{let{paramName:p,isOptional:b}=d;if(p==="*"){let S=o[h]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const v=o[h];return b&&!v?c[p]=void 0:c[p]=sLe(v||"",p),c},{}),pathname:a,pathnameBase:s,pattern:e}}function iLe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Qb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function aLe(e){try{return decodeURI(e)}catch(t){return Qb(!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}}function sLe(e,t){try{return decodeURIComponent(e)}catch(n){return Qb(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function qk(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 oLe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?xm(e):e;return{pathname:n?n.startsWith("/")?n:lLe(n,t):t,search:cLe(r),hash:dLe(i)}}function lLe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function D8(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 ide(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Iz(e,t){let n=ide(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Dz(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=xm(e):(i=Na({},e),Mr(!i.pathname||!i.pathname.includes("?"),D8("?","pathname","search",i)),Mr(!i.pathname||!i.pathname.includes("#"),D8("#","pathname","hash",i)),Mr(!i.search||!i.search.includes("#"),D8("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}o=h>=0?t[h]:"/"}let l=oLe(i,o),c=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const lg=e=>e.join("/").replace(/\/\/+/g,"/"),uLe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cLe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dLe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Nz{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Pz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ade=["post","put","patch","delete"],fLe=new Set(ade),hLe=["get",...ade],pLe=new Set(hLe),mLe=new Set([301,302,303,307,308]),gLe=new Set([307,308]),N8={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bLe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},a2={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},sde=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yLe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ode="remix-router-transitions";function vLe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Mr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let $e=e.detectErrorBoundary;i=Ve=>({hasErrorBoundary:$e(Ve)})}else i=yLe;let a={},s=U9(e.routes,i,void 0,a),o,l=e.basename||"/",c=Na({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,h=new Set,p=null,b=null,v=null,S=e.hydrationData!=null,w=hO(s,e.history.location,l),T=null;if(w==null){let $e=qc(404,{pathname:e.history.location.pathname}),{matches:Ve,route:ct}=_J(s);w=Ve,T={[ct.id]:$e}}let x,k=w.some($e=>$e.route.lazy),C=w.some($e=>$e.route.loader);if(k)x=!1;else if(!C)x=!0;else if(c.v7_partialHydration){let $e=e.hydrationData?e.hydrationData.loaderData:null,Ve=e.hydrationData?e.hydrationData.errors:null;x=w.every(ct=>ct.route.loader&&ct.route.loader.hydrate!==!0&&($e&&$e[ct.route.id]!==void 0||Ve&&Ve[ct.route.id]!==void 0))}else x=e.hydrationData!=null;let I,_={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:N8,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||T,fetchers:new Map,blockers:new Map},A=za.Pop,U=!1,F,P=!1,V=new Map,Q=null,X=!1,Y=!1,W=[],ee=[],J=new Map,K=0,ne=-1,j=new Map,Ce=new Set,ye=new Map,te=new Map,ve=new Set,Se=new Map,he=new Map,Ne=!1;function Pe(){if(d=e.history.listen($e=>{let{action:Ve,location:ct,delta:Dt}=$e;if(Ne){Ne=!1;return}Qb(he.size===0||Dt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qt=At({currentLocation:_.location,nextLocation:ct,historyAction:Ve});if(Qt&&Dt!=null){Ne=!0,e.history.go(Dt*-1),pt(Qt,{state:"blocked",location:ct,proceed(){pt(Qt,{state:"proceeding",proceed:void 0,reset:void 0,location:ct}),e.history.go(Dt)},reset(){let Fn=new Map(_.blockers);Fn.set(Qt,a2),Qe({blockers:Fn})}});return}return tt(Ve,ct)}),n){RLe(t,V);let $e=()=>ILe(t,V);t.addEventListener("pagehide",$e),Q=()=>t.removeEventListener("pagehide",$e)}return _.initialized||tt(za.Pop,_.location,{initialHydration:!0}),I}function Ze(){d&&d(),Q&&Q(),h.clear(),F&&F.abort(),_.fetchers.forEach(($e,Ve)=>Oe(Ve)),_.blockers.forEach(($e,Ve)=>Kt(Ve))}function st($e){return h.add($e),()=>h.delete($e)}function Qe($e,Ve){Ve===void 0&&(Ve={}),_=Na({},_,$e);let ct=[],Dt=[];c.v7_fetcherPersist&&_.fetchers.forEach((Qt,Fn)=>{Qt.state==="idle"&&(ve.has(Fn)?Dt.push(Fn):ct.push(Fn))}),[...h].forEach(Qt=>Qt(_,{deletedFetchers:Dt,unstable_viewTransitionOpts:Ve.viewTransitionOpts,unstable_flushSync:Ve.flushSync===!0})),c.v7_fetcherPersist&&(ct.forEach(Qt=>_.fetchers.delete(Qt)),Dt.forEach(Qt=>Oe(Qt)))}function Je($e,Ve,ct){var Dt,Qt;let{flushSync:Fn}=ct===void 0?{}:ct,yn=_.actionData!=null&&_.navigation.formMethod!=null&&tf(_.navigation.formMethod)&&_.navigation.state==="loading"&&((Dt=$e.state)==null?void 0:Dt._isRedirect)!==!0,rn;Ve.actionData?Object.keys(Ve.actionData).length>0?rn=Ve.actionData:rn=null:yn?rn=_.actionData:rn=null;let Zt=Ve.loaderData?CJ(_.loaderData,Ve.loaderData,Ve.matches||[],Ve.errors):_.loaderData,$n=_.blockers;$n.size>0&&($n=new Map($n),$n.forEach((dt,Et)=>$n.set(Et,a2)));let Ge=U===!0||_.navigation.formMethod!=null&&tf(_.navigation.formMethod)&&((Qt=$e.state)==null?void 0:Qt._isRedirect)!==!0;o&&(s=o,o=void 0),X||A===za.Pop||(A===za.Push?e.history.push($e,$e.state):A===za.Replace&&e.history.replace($e,$e.state));let Ke;if(A===za.Pop){let dt=V.get(_.location.pathname);dt&&dt.has($e.pathname)?Ke={currentLocation:_.location,nextLocation:$e}:V.has($e.pathname)&&(Ke={currentLocation:$e,nextLocation:_.location})}else if(P){let dt=V.get(_.location.pathname);dt?dt.add($e.pathname):(dt=new Set([$e.pathname]),V.set(_.location.pathname,dt)),Ke={currentLocation:_.location,nextLocation:$e}}Qe(Na({},Ve,{actionData:rn,loaderData:Zt,historyAction:A,location:$e,initialized:!0,navigation:N8,revalidation:"idle",restoreScrollPosition:ur($e,Ve.matches||_.matches),preventScrollReset:Ge,blockers:$n}),{viewTransitionOpts:Ke,flushSync:Fn===!0}),A=za.Pop,U=!1,P=!1,X=!1,Y=!1,W=[],ee=[]}async function Ye($e,Ve){if(typeof $e=="number"){e.history.go($e);return}let ct=z9(_.location,_.matches,l,c.v7_prependBasename,$e,c.v7_relativeSplatPath,Ve==null?void 0:Ve.fromRouteId,Ve==null?void 0:Ve.relative),{path:Dt,submission:Qt,error:Fn}=SJ(c.v7_normalizeFormMethod,!1,ct,Ve),yn=_.location,rn=Ex(_.location,Dt,Ve&&Ve.state);rn=Na({},rn,e.history.encodeLocation(rn));let Zt=Ve&&Ve.replace!=null?Ve.replace:void 0,$n=za.Push;Zt===!0?$n=za.Replace:Zt===!1||Qt!=null&&tf(Qt.formMethod)&&Qt.formAction===_.location.pathname+_.location.search&&($n=za.Replace);let Ge=Ve&&"preventScrollReset"in Ve?Ve.preventScrollReset===!0:void 0,Ke=(Ve&&Ve.unstable_flushSync)===!0,dt=At({currentLocation:yn,nextLocation:rn,historyAction:$n});if(dt){pt(dt,{state:"blocked",location:rn,proceed(){pt(dt,{state:"proceeding",proceed:void 0,reset:void 0,location:rn}),Ye($e,Ve)},reset(){let Et=new Map(_.blockers);Et.set(dt,a2),Qe({blockers:Et})}});return}return await tt($n,rn,{submission:Qt,pendingError:Fn,preventScrollReset:Ge,replace:Ve&&Ve.replace,enableViewTransition:Ve&&Ve.unstable_viewTransition,flushSync:Ke})}function nt(){if(et(),Qe({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){tt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}tt(A||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function tt($e,Ve,ct){F&&F.abort(),F=null,A=$e,X=(ct&&ct.startUninterruptedRevalidation)===!0,Qn(_.location,_.matches),U=(ct&&ct.preventScrollReset)===!0,P=(ct&&ct.enableViewTransition)===!0;let Dt=o||s,Qt=ct&&ct.overrideNavigation,Fn=hO(Dt,Ve,l),yn=(ct&&ct.flushSync)===!0;if(!Fn){let Et=qc(404,{pathname:Ve.pathname}),{matches:Jn,route:bn}=_J(Dt);en(),Je(Ve,{matches:Jn,loaderData:{},errors:{[bn.id]:Et}},{flushSync:yn});return}if(_.initialized&&!Y&&TLe(_.location,Ve)&&!(ct&&ct.submission&&tf(ct.submission.formMethod))){Je(Ve,{matches:Fn},{flushSync:yn});return}F=new AbortController;let rn=o2(e.history,Ve,F.signal,ct&&ct.submission),Zt,$n;if(ct&&ct.pendingError)$n={[OT(Fn).route.id]:ct.pendingError};else if(ct&&ct.submission&&tf(ct.submission.formMethod)){let Et=await ht(rn,Ve,ct.submission,Fn,{replace:ct.replace,flushSync:yn});if(Et.shortCircuited)return;Zt=Et.pendingActionData,$n=Et.pendingActionError,Qt=P8(Ve,ct.submission),yn=!1,rn=new Request(rn.url,{signal:rn.signal})}let{shortCircuited:Ge,loaderData:Ke,errors:dt}=await _t(rn,Ve,Fn,Qt,ct&&ct.submission,ct&&ct.fetcherSubmission,ct&&ct.replace,ct&&ct.initialHydration===!0,yn,Zt,$n);Ge||(F=null,Je(Ve,Na({matches:Fn},Zt?{actionData:Zt}:{},{loaderData:Ke,errors:dt})))}async function ht($e,Ve,ct,Dt,Qt){Qt===void 0&&(Qt={}),et();let Fn=_Le(Ve,ct);Qe({navigation:Fn},{flushSync:Qt.flushSync===!0});let yn,rn=H9(Dt,Ve);if(!rn.route.action&&!rn.route.lazy)yn={type:Ia.error,error:qc(405,{method:$e.method,pathname:Ve.pathname,routeId:rn.route.id})};else if(yn=await s2("action",$e,rn,Dt,a,i,l,c.v7_relativeSplatPath),$e.signal.aborted)return{shortCircuited:!0};if(gb(yn)){let Zt;return Qt&&Qt.replace!=null?Zt=Qt.replace:Zt=yn.location===_.location.pathname+_.location.search,await me(_,yn,{submission:ct,replace:Zt}),{shortCircuited:!0}}if(pO(yn)){let Zt=OT(Dt,rn.route.id);return(Qt&&Qt.replace)!==!0&&(A=za.Push),{pendingActionData:{},pendingActionError:{[Zt.route.id]:yn.error}}}if(mb(yn))throw qc(400,{type:"defer-action"});return{pendingActionData:{[rn.route.id]:yn.data}}}async function _t($e,Ve,ct,Dt,Qt,Fn,yn,rn,Zt,$n,Ge){let Ke=Dt||P8(Ve,Qt),dt=Qt||Fn||IJ(Ke),Et=o||s,[Jn,bn]=EJ(e.history,_,ct,dt,Ve,c.v7_partialHydration&&rn===!0,Y,W,ee,ve,ye,Ce,Et,l,$n,Ge);if(en(Gn=>!(ct&&ct.some(ci=>ci.route.id===Gn))||Jn&&Jn.some(ci=>ci.route.id===Gn)),ne=++K,Jn.length===0&&bn.length===0){let Gn=Bt();return Je(Ve,Na({matches:ct,loaderData:{},errors:Ge||null},$n?{actionData:$n}:{},Gn?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Zt}),{shortCircuited:!0}}if(!X&&(!c.v7_partialHydration||!rn)){bn.forEach(ci=>{let ea=_.fetchers.get(ci.key),Nd=l2(void 0,ea?ea.data:void 0);_.fetchers.set(ci.key,Nd)});let Gn=$n||_.actionData;Qe(Na({navigation:Ke},Gn?Object.keys(Gn).length===0?{actionData:null}:{actionData:Gn}:{},bn.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Zt})}bn.forEach(Gn=>{J.has(Gn.key)&&je(Gn.key),Gn.controller&&J.set(Gn.key,Gn.controller)});let Yn=()=>bn.forEach(Gn=>je(Gn.key));F&&F.signal.addEventListener("abort",Yn);let{results:mi,loaderResults:it,fetcherResults:Ue}=await We(_.matches,ct,Jn,bn,$e);if($e.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Yn),bn.forEach(Gn=>J.delete(Gn.key));let ke=AJ(mi);if(ke){if(ke.idx>=Jn.length){let Gn=bn[ke.idx-Jn.length].key;Ce.add(Gn)}return await me(_,ke.result,{replace:yn}),{shortCircuited:!0}}let{loaderData:ln,errors:qn}=kJ(_,ct,Jn,it,Ge,bn,Ue,Se);Se.forEach((Gn,ci)=>{Gn.subscribe(ea=>{(ea||Gn.done)&&Se.delete(ci)})});let Jr=Bt(),Ie=Xt(ne),Dn=Jr||Ie||bn.length>0;return Na({loaderData:ln,errors:qn},Dn?{fetchers:new Map(_.fetchers)}:{})}function ot($e,Ve,ct,Dt){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");J.has($e)&&je($e);let Qt=(Dt&&Dt.unstable_flushSync)===!0,Fn=o||s,yn=z9(_.location,_.matches,l,c.v7_prependBasename,ct,c.v7_relativeSplatPath,Ve,Dt==null?void 0:Dt.relative),rn=hO(Fn,yn,l);if(!rn){pe($e,Ve,qc(404,{pathname:yn}),{flushSync:Qt});return}let{path:Zt,submission:$n,error:Ge}=SJ(c.v7_normalizeFormMethod,!0,yn,Dt);if(Ge){pe($e,Ve,Ge,{flushSync:Qt});return}let Ke=H9(rn,Zt);if(U=(Dt&&Dt.preventScrollReset)===!0,$n&&tf($n.formMethod)){ge($e,Ve,Zt,Ke,rn,Qt,$n);return}ye.set($e,{routeId:Ve,path:Zt}),ue($e,Ve,Zt,Ke,rn,Qt,$n)}async function ge($e,Ve,ct,Dt,Qt,Fn,yn){if(et(),ye.delete($e),!Dt.route.action&&!Dt.route.lazy){let ci=qc(405,{method:yn.formMethod,pathname:ct,routeId:Ve});pe($e,Ve,ci,{flushSync:Fn});return}let rn=_.fetchers.get($e);qe($e,ALe(yn,rn),{flushSync:Fn});let Zt=new AbortController,$n=o2(e.history,ct,Zt.signal,yn);J.set($e,Zt);let Ge=K,Ke=await s2("action",$n,Dt,Qt,a,i,l,c.v7_relativeSplatPath);if($n.signal.aborted){J.get($e)===Zt&&J.delete($e);return}if(c.v7_fetcherPersist&&ve.has($e)){if(gb(Ke)||pO(Ke)){qe($e,v0(void 0));return}}else{if(gb(Ke))if(J.delete($e),ne>Ge){qe($e,v0(void 0));return}else return Ce.add($e),qe($e,l2(yn)),me(_,Ke,{fetcherSubmission:yn});if(pO(Ke)){pe($e,Ve,Ke.error);return}}if(mb(Ke))throw qc(400,{type:"defer-action"});let dt=_.navigation.location||_.location,Et=o2(e.history,dt,Zt.signal),Jn=o||s,bn=_.navigation.state!=="idle"?hO(Jn,_.navigation.location,l):_.matches;Mr(bn,"Didn't find any matches after fetcher action");let Yn=++K;j.set($e,Yn);let mi=l2(yn,Ke.data);_.fetchers.set($e,mi);let[it,Ue]=EJ(e.history,_,bn,yn,dt,!1,Y,W,ee,ve,ye,Ce,Jn,l,{[Dt.route.id]:Ke.data},void 0);Ue.filter(ci=>ci.key!==$e).forEach(ci=>{let ea=ci.key,Nd=_.fetchers.get(ea),fp=l2(void 0,Nd?Nd.data:void 0);_.fetchers.set(ea,fp),J.has(ea)&&je(ea),ci.controller&&J.set(ea,ci.controller)}),Qe({fetchers:new Map(_.fetchers)});let ke=()=>Ue.forEach(ci=>je(ci.key));Zt.signal.addEventListener("abort",ke);let{results:ln,loaderResults:qn,fetcherResults:Jr}=await We(_.matches,bn,it,Ue,Et);if(Zt.signal.aborted)return;Zt.signal.removeEventListener("abort",ke),j.delete($e),J.delete($e),Ue.forEach(ci=>J.delete(ci.key));let Ie=AJ(ln);if(Ie){if(Ie.idx>=it.length){let ci=Ue[Ie.idx-it.length].key;Ce.add(ci)}return me(_,Ie.result)}let{loaderData:Dn,errors:Gn}=kJ(_,_.matches,it,qn,void 0,Ue,Jr,Se);if(_.fetchers.has($e)){let ci=v0(Ke.data);_.fetchers.set($e,ci)}Xt(Yn),_.navigation.state==="loading"&&Yn>ne?(Mr(A,"Expected pending action"),F&&F.abort(),Je(_.navigation.location,{matches:bn,loaderData:Dn,errors:Gn,fetchers:new Map(_.fetchers)})):(Qe({errors:Gn,loaderData:CJ(_.loaderData,Dn,bn,Gn),fetchers:new Map(_.fetchers)}),Y=!1)}async function ue($e,Ve,ct,Dt,Qt,Fn,yn){let rn=_.fetchers.get($e);qe($e,l2(yn,rn?rn.data:void 0),{flushSync:Fn});let Zt=new AbortController,$n=o2(e.history,ct,Zt.signal);J.set($e,Zt);let Ge=K,Ke=await s2("loader",$n,Dt,Qt,a,i,l,c.v7_relativeSplatPath);if(mb(Ke)&&(Ke=await cde(Ke,$n.signal,!0)||Ke),J.get($e)===Zt&&J.delete($e),!$n.signal.aborted){if(ve.has($e)){qe($e,v0(void 0));return}if(gb(Ke))if(ne>Ge){qe($e,v0(void 0));return}else{Ce.add($e),await me(_,Ke);return}if(pO(Ke)){pe($e,Ve,Ke.error);return}Mr(!mb(Ke),"Unhandled fetcher deferred data"),qe($e,v0(Ke.data))}}async function me($e,Ve,ct){let{submission:Dt,fetcherSubmission:Qt,replace:Fn}=ct===void 0?{}:ct;Ve.revalidate&&(Y=!0);let yn=Ex($e.location,Ve.location,{_isRedirect:!0});if(Mr(yn,"Expected a location on the redirect navigation"),n){let dt=!1;if(Ve.reloadDocument)dt=!0;else if(sde.test(Ve.location)){const Et=e.history.createURL(Ve.location);dt=Et.origin!==t.location.origin||qk(Et.pathname,l)==null}if(dt){Fn?t.location.replace(Ve.location):t.location.assign(Ve.location);return}}F=null;let rn=Fn===!0?za.Replace:za.Push,{formMethod:Zt,formAction:$n,formEncType:Ge}=$e.navigation;!Dt&&!Qt&&Zt&&$n&&Ge&&(Dt=IJ($e.navigation));let Ke=Dt||Qt;if(gLe.has(Ve.status)&&Ke&&tf(Ke.formMethod))await tt(rn,yn,{submission:Na({},Ke,{formAction:Ve.location}),preventScrollReset:U});else{let dt=P8(yn,Dt);await tt(rn,yn,{overrideNavigation:dt,fetcherSubmission:Qt,preventScrollReset:U})}}async function We($e,Ve,ct,Dt,Qt){let Fn=await Promise.all([...ct.map(Zt=>s2("loader",Qt,Zt,Ve,a,i,l,c.v7_relativeSplatPath)),...Dt.map(Zt=>Zt.matches&&Zt.match&&Zt.controller?s2("loader",o2(e.history,Zt.path,Zt.controller.signal),Zt.match,Zt.matches,a,i,l,c.v7_relativeSplatPath):{type:Ia.error,error:qc(404,{pathname:Zt.path})})]),yn=Fn.slice(0,ct.length),rn=Fn.slice(ct.length);return await Promise.all([RJ($e,ct,yn,yn.map(()=>Qt.signal),!1,_.loaderData),RJ($e,Dt.map(Zt=>Zt.match),rn,Dt.map(Zt=>Zt.controller?Zt.controller.signal:null),!0)]),{results:Fn,loaderResults:yn,fetcherResults:rn}}function et(){Y=!0,W.push(...en()),ye.forEach(($e,Ve)=>{J.has(Ve)&&(ee.push(Ve),je(Ve))})}function qe($e,Ve,ct){ct===void 0&&(ct={}),_.fetchers.set($e,Ve),Qe({fetchers:new Map(_.fetchers)},{flushSync:(ct&&ct.flushSync)===!0})}function pe($e,Ve,ct,Dt){Dt===void 0&&(Dt={});let Qt=OT(_.matches,Ve);Oe($e),Qe({errors:{[Qt.route.id]:ct},fetchers:new Map(_.fetchers)},{flushSync:(Dt&&Dt.flushSync)===!0})}function Te($e){return c.v7_fetcherPersist&&(te.set($e,(te.get($e)||0)+1),ve.has($e)&&ve.delete($e)),_.fetchers.get($e)||bLe}function Oe($e){let Ve=_.fetchers.get($e);J.has($e)&&!(Ve&&Ve.state==="loading"&&j.has($e))&&je($e),ye.delete($e),j.delete($e),Ce.delete($e),ve.delete($e),_.fetchers.delete($e)}function De($e){if(c.v7_fetcherPersist){let Ve=(te.get($e)||0)-1;Ve<=0?(te.delete($e),ve.add($e)):te.set($e,Ve)}else Oe($e);Qe({fetchers:new Map(_.fetchers)})}function je($e){let Ve=J.get($e);Mr(Ve,"Expected fetch controller: "+$e),Ve.abort(),J.delete($e)}function Ot($e){for(let Ve of $e){let ct=Te(Ve),Dt=v0(ct.data);_.fetchers.set(Ve,Dt)}}function Bt(){let $e=[],Ve=!1;for(let ct of Ce){let Dt=_.fetchers.get(ct);Mr(Dt,"Expected fetcher: "+ct),Dt.state==="loading"&&(Ce.delete(ct),$e.push(ct),Ve=!0)}return Ot($e),Ve}function Xt($e){let Ve=[];for(let[ct,Dt]of j)if(Dt<$e){let Qt=_.fetchers.get(ct);Mr(Qt,"Expected fetcher: "+ct),Qt.state==="loading"&&(je(ct),j.delete(ct),Ve.push(ct))}return Ot(Ve),Ve.length>0}function St($e,Ve){let ct=_.blockers.get($e)||a2;return he.get($e)!==Ve&&he.set($e,Ve),ct}function Kt($e){_.blockers.delete($e),he.delete($e)}function pt($e,Ve){let ct=_.blockers.get($e)||a2;Mr(ct.state==="unblocked"&&Ve.state==="blocked"||ct.state==="blocked"&&Ve.state==="blocked"||ct.state==="blocked"&&Ve.state==="proceeding"||ct.state==="blocked"&&Ve.state==="unblocked"||ct.state==="proceeding"&&Ve.state==="unblocked","Invalid blocker state transition: "+ct.state+" -> "+Ve.state);let Dt=new Map(_.blockers);Dt.set($e,Ve),Qe({blockers:Dt})}function At($e){let{currentLocation:Ve,nextLocation:ct,historyAction:Dt}=$e;if(he.size===0)return;he.size>1&&Qb(!1,"A router only supports one blocker at a time");let Qt=Array.from(he.entries()),[Fn,yn]=Qt[Qt.length-1],rn=_.blockers.get(Fn);if(!(rn&&rn.state==="proceeding")&&yn({currentLocation:Ve,nextLocation:ct,historyAction:Dt}))return Fn}function en($e){let Ve=[];return Se.forEach((ct,Dt)=>{(!$e||$e(Dt))&&(ct.cancel(),Ve.push(Dt),Se.delete(Dt))}),Ve}function In($e,Ve,ct){if(p=$e,v=Ve,b=ct||null,!S&&_.navigation===N8){S=!0;let Dt=ur(_.location,_.matches);Dt!=null&&Qe({restoreScrollPosition:Dt})}return()=>{p=null,v=null,b=null}}function Ln($e,Ve){return b&&b($e,Ve.map(Dt=>QMe(Dt,_.loaderData)))||$e.key}function Qn($e,Ve){if(p&&v){let ct=Ln($e,Ve);p[ct]=v()}}function ur($e,Ve){if(p){let ct=Ln($e,Ve),Dt=p[ct];if(typeof Dt=="number")return Dt}return null}function Wr($e){a={},o=U9($e,i,void 0,a)}return I={get basename(){return l},get future(){return c},get state(){return _},get routes(){return s},get window(){return t},initialize:Pe,subscribe:st,enableScrollRestoration:In,navigate:Ye,fetch:ot,revalidate:nt,createHref:$e=>e.history.createHref($e),encodeLocation:$e=>e.history.encodeLocation($e),getFetcher:Te,deleteFetcher:De,dispose:Ze,getBlocker:St,deleteBlocker:Kt,_internalFetchControllers:J,_internalActiveDeferreds:Se,_internalSetRoutes:Wr},I}function OLe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function z9(e,t,n,r,i,a,s,o){let l,c;if(s){l=[];for(let h of t)if(l.push(h),h.route.id===s){c=h;break}}else l=t,c=t[t.length-1];let d=Dz(i||".",Iz(l,a),qk(e.pathname,n)||e.pathname,o==="path");return i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!Mz(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:lg([n,d.pathname])),Yk(d)}function SJ(e,t,n,r){if(!r||!OLe(r))return{path:n};if(r.formMethod&&!CLe(r.formMethod))return{path:n,error:qc(405,{method:r.formMethod})};let i=()=>({path:n,error:qc(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=ude(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!tf(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,v)=>{let[S,w]=v;return""+b+S+"="+w+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!tf(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Mr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=j9(r.formData),c=r.formData;else if(r.body instanceof FormData)l=j9(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=xJ(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=xJ(l)}catch{return i()}let d={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(tf(d.formMethod))return{path:n,submission:d};let h=xm(n);return t&&h.search&&Mz(h.search)&&l.append("index",""),h.search="?"+l,{path:Yk(h),submission:d}}function SLe(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function EJ(e,t,n,r,i,a,s,o,l,c,d,h,p,b,v,S){let w=S?Object.values(S)[0]:v?Object.values(v)[0]:void 0,T=e.createURL(t.location),x=e.createURL(i),k=S?Object.keys(S)[0]:void 0,I=SLe(n,k).filter((A,U)=>{let{route:F}=A;if(F.lazy)return!0;if(F.loader==null)return!1;if(a)return F.loader.hydrate?!0:t.loaderData[F.id]===void 0&&(!t.errors||t.errors[F.id]===void 0);if(ELe(t.loaderData,t.matches[U],A)||o.some(Q=>Q===A.route.id))return!0;let P=t.matches[U],V=A;return wJ(A,Na({currentUrl:T,currentParams:P.params,nextUrl:x,nextParams:V.params},r,{actionResult:w,defaultShouldRevalidate:s||T.pathname+T.search===x.pathname+x.search||T.search!==x.search||lde(P,V)}))}),_=[];return d.forEach((A,U)=>{if(a||!n.some(X=>X.route.id===A.routeId)||c.has(U))return;let F=hO(p,A.path,b);if(!F){_.push({key:U,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get(U),V=H9(F,A.path),Q=!1;h.has(U)?Q=!1:l.includes(U)?Q=!0:P&&P.state!=="idle"&&P.data===void 0?Q=s:Q=wJ(V,Na({currentUrl:T,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),Q&&_.push({key:U,routeId:A.routeId,path:A.path,matches:F,match:V,controller:new AbortController})}),[I,_]}function ELe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function lde(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function wJ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function TJ(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Mr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Qb(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!VMe.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,Na({},t(i),{lazy:void 0}))}async function s2(e,t,n,r,i,a,s,o,l){l===void 0&&(l={});let c,d,h,p=S=>{let w,T=new Promise((x,k)=>w=k);return h=()=>w(),t.signal.addEventListener("abort",h),Promise.race([S({request:t,params:n.params,context:l.requestContext}),T])};try{let S=n.route[e];if(n.route.lazy)if(S){let w,T=await Promise.all([p(S).catch(x=>{w=x}),TJ(n.route,a,i)]);if(w)throw w;d=T[0]}else if(await TJ(n.route,a,i),S=n.route[e],S)d=await p(S);else if(e==="action"){let w=new URL(t.url),T=w.pathname+w.search;throw qc(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:Ia.data,data:void 0};else if(S)d=await p(S);else{let w=new URL(t.url),T=w.pathname+w.search;throw qc(404,{pathname:T})}Mr(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(S){c=Ia.error,d=S}finally{h&&t.signal.removeEventListener("abort",h)}if(kLe(d)){let S=d.status;if(mLe.has(S)){let T=d.headers.get("Location");if(Mr(T,"Redirects returned/thrown from loaders/actions must have a Location header"),!sde.test(T))T=z9(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,T,o);else if(!l.isStaticRequest){let x=new URL(t.url),k=T.startsWith("//")?new URL(x.protocol+T):new URL(T),C=qk(k.pathname,s)!=null;k.origin===x.origin&&C&&(T=k.pathname+k.search+k.hash)}if(l.isStaticRequest)throw d.headers.set("Location",T),d;return{type:Ia.redirect,status:S,location:T,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:c===Ia.error?Ia.error:Ia.data,response:d};let w;try{let T=d.headers.get("Content-Type");T&&/\bapplication\/json\b/.test(T)?d.body==null?w=null:w=await d.json():w=await d.text()}catch(T){return{type:Ia.error,error:T}}return c===Ia.error?{type:c,error:new Nz(S,d.statusText,w),headers:d.headers}:{type:Ia.data,data:w,statusCode:d.status,headers:d.headers}}if(c===Ia.error)return{type:c,error:d};if(xLe(d)){var b,v;return{type:Ia.deferred,deferredData:d,statusCode:(b=d.init)==null?void 0:b.status,headers:((v=d.init)==null?void 0:v.headers)&&new Headers(d.init.headers)}}return{type:Ia.data,data:d}}function o2(e,t,n,r){let i=e.createURL(ude(t)).toString(),a={signal:n};if(r&&tf(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=j9(r.formData):a.body=r.formData}return new Request(i,a)}function j9(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function xJ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function wLe(e,t,n,r,i){let a={},s=null,o,l=!1,c={};return n.forEach((d,h)=>{let p=t[h].route.id;if(Mr(!gb(d),"Cannot handle redirect results in processLoaderData"),pO(d)){let b=OT(e,p),v=d.error;r&&(v=Object.values(r)[0],r=void 0),s=s||{},s[b.route.id]==null&&(s[b.route.id]=v),a[p]=void 0,l||(l=!0,o=Pz(d.error)?d.error.status:500),d.headers&&(c[p]=d.headers)}else mb(d)?(i.set(p,d.deferredData),a[p]=d.deferredData.data):a[p]=d.data,d.statusCode!=null&&d.statusCode!==200&&!l&&(o=d.statusCode),d.headers&&(c[p]=d.headers)}),r&&(s=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:c}}function kJ(e,t,n,r,i,a,s,o){let{loaderData:l,errors:c}=wLe(t,n,r,i,o);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function _J(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qc(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,s="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?o="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?o="defer() is not supported in actions":a==="invalid-body"&&(o="Unable to encode submission body")):e===403?(s="Forbidden",o='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",o='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?o="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(o='Invalid request method "'+i.toUpperCase()+'"')),new Nz(e||500,s,new Error(o),!0)}function AJ(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(gb(n))return{result:n,idx:t}}}function ude(e){let t=typeof e=="string"?xm(e):e;return Yk(Na({},t,{hash:""}))}function TLe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function mb(e){return e.type===Ia.deferred}function pO(e){return e.type===Ia.error}function gb(e){return(e&&e.type)===Ia.redirect}function xLe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function kLe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function CLe(e){return pLe.has(e.toLowerCase())}function tf(e){return fLe.has(e.toLowerCase())}async function RJ(e,t,n,r,i,a){for(let s=0;sh.route.id===l.route.id),d=c!=null&&!lde(c,l)&&(a&&a[l.route.id])!==void 0;if(mb(o)&&(i||d)){let h=r[s];Mr(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await cde(o,h,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function cde(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ia.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Ia.error,error:i}}return{type:Ia.data,data:e.deferredData.data}}}function Mz(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function H9(e,t){let n=typeof t=="string"?xm(t).search:t.search;if(e[e.length-1].route.index&&Mz(n||""))return e[e.length-1];let r=ide(e);return r[r.length-1]}function IJ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function P8(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _Le(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function l2(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ALe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function v0(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function RLe(e,t){try{let n=e.sessionStorage.getItem(ode);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function ILe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ode,JSON.stringify(n))}catch(r){Qb(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function qb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BLe(){return Math.random().toString(36).substr(2,8)}function DJ(e,t){return{usr:e.state,key:e.key,idx:t}}function Tx(e,t,n,r){return n===void 0&&(n=null),Ma({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?km(t):t,{state:n,key:t&&t.key||r||BLe()})}function Xk(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function km(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 ULe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=ja.Pop,l=null,c=d();c==null&&(c=0,s.replaceState(Ma({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function h(){o=ja.Pop;let w=d(),T=w==null?null:w-c;c=w,l&&l({action:o,location:S.location,delta:T})}function p(w,T){o=ja.Push;let x=Tx(S.location,w,T);n&&n(x,w),c=d()+1;let k=DJ(x,c),C=S.createHref(x);try{s.pushState(k,"",C)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(C)}a&&l&&l({action:o,location:S.location,delta:1})}function b(w,T){o=ja.Replace;let x=Tx(S.location,w,T);n&&n(x,w),c=d();let k=DJ(x,c),C=S.createHref(x);s.replaceState(k,"",C),a&&l&&l({action:o,location:S.location,delta:0})}function v(w){let T=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof w=="string"?w:Xk(w);return Lr(T,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,T)}let S={get action(){return o},get location(){return e(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(IJ,h),l=w,()=>{i.removeEventListener(IJ,h),l=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let T=v(w);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:p,replace:b,go(w){return s.go(w)}};return S}var Na;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Na||(Na={}));const zLe=new Set(["lazy","caseSensitive","path","id","index","children"]);function jLe(e){return e.index===!0}function U9(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,a],o=typeof i.id=="string"?i.id:s.join("-");if(Lr(i.index!==!0||!i.children,"Cannot specify children on an index route"),Lr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),jLe(i)){let l=Ma({},i,t(i),{id:o});return r[o]=l,l}else{let l=Ma({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=U9(i.children,t,s,r)),l}})}function pO(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?km(t):t,i=Kk(r.pathname||"/",n);if(i==null)return null;let a=vde(e);VLe(a);let s=null;for(let o=0;s==null&&o{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(Lr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=og([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(Lr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),vde(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:XLe(c,a.index),routesMeta:d})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of Ode(a.path))i(a,s,l)}),t}function Ode(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=Ode(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function VLe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:KLe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const WLe=/^:[\w-]+$/,QLe=3,YLe=2,qLe=1,GLe=10,ZLe=-2,NJ=e=>e==="*";function XLe(e,t){let n=e.split("/"),r=n.length;return n.some(NJ)&&(r+=ZLe),t&&(r+=YLe),n.filter(i=>!NJ(i)).reduce((i,a)=>i+(WLe.test(a)?QLe:a===""?qLe:GLe),r)}function KLe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function JLe(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let s=0;s{let{paramName:p,isOptional:b}=d;if(p==="*"){let S=o[h]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const v=o[h];return b&&!v?c[p]=void 0:c[p]=r9e(v||"",p),c},{}),pathname:a,pathnameBase:s,pattern:e}}function t9e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function n9e(e){try{return decodeURI(e)}catch(t){return qb(!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}}function r9e(e,t){try{return decodeURIComponent(e)}catch(n){return qb(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Kk(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 i9e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?km(e):e;return{pathname:n?n.startsWith("/")?n:a9e(n,t):t,search:o9e(r),hash:l9e(i)}}function a9e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function D8(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 Sde(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nz(e,t){let n=Sde(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Pz(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=km(e):(i=Ma({},e),Lr(!i.pathname||!i.pathname.includes("?"),D8("?","pathname","search",i)),Lr(!i.pathname||!i.pathname.includes("#"),D8("#","pathname","hash",i)),Lr(!i.search||!i.search.includes("#"),D8("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}o=h>=0?t[h]:"/"}let l=i9e(i,o),c=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const og=e=>e.join("/").replace(/\/\/+/g,"/"),s9e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o9e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,l9e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mz{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Lz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ede=["post","put","patch","delete"],u9e=new Set(Ede),c9e=["get",...Ede],d9e=new Set(c9e),f9e=new Set([301,302,303,307,308]),h9e=new Set([307,308]),N8={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},p9e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sT={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},wde=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,m9e=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Tde="remix-router-transitions";function g9e(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Lr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let $e=e.detectErrorBoundary;i=Ve=>({hasErrorBoundary:$e(Ve)})}else i=m9e;let a={},s=U9(e.routes,i,void 0,a),o,l=e.basename||"/",c=Ma({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,h=new Set,p=null,b=null,v=null,S=e.hydrationData!=null,w=pO(s,e.history.location,l),T=null;if(w==null){let $e=qc(404,{pathname:e.history.location.pathname}),{matches:Ve,route:ct}=zJ(s);w=Ve,T={[ct.id]:$e}}let x,k=w.some($e=>$e.route.lazy),C=w.some($e=>$e.route.loader);if(k)x=!1;else if(!C)x=!0;else if(c.v7_partialHydration){let $e=e.hydrationData?e.hydrationData.loaderData:null,Ve=e.hydrationData?e.hydrationData.errors:null;x=w.every(ct=>ct.route.loader&&ct.route.loader.hydrate!==!0&&($e&&$e[ct.route.id]!==void 0||Ve&&Ve[ct.route.id]!==void 0))}else x=e.hydrationData!=null;let I,_={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:N8,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||T,fetchers:new Map,blockers:new Map},A=ja.Pop,U=!1,F,M=!1,V=new Map,Q=null,X=!1,Y=!1,W=[],ee=[],J=new Map,K=0,ne=-1,j=new Map,Ce=new Set,ye=new Map,te=new Map,ve=new Set,Se=new Map,he=new Map,Pe=!1;function Me(){if(d=e.history.listen($e=>{let{action:Ve,location:ct,delta:Nt}=$e;if(Pe){Pe=!1;return}qb(he.size===0||Nt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let qt=At({currentLocation:_.location,nextLocation:ct,historyAction:Ve});if(qt&&Nt!=null){Pe=!0,e.history.go(Nt*-1),pt(qt,{state:"blocked",location:ct,proceed(){pt(qt,{state:"proceeding",proceed:void 0,reset:void 0,location:ct}),e.history.go(Nt)},reset(){let Bn=new Map(_.blockers);Bn.set(qt,sT),Qe({blockers:Bn})}});return}return tt(Ve,ct)}),n){C9e(t,V);let $e=()=>_9e(t,V);t.addEventListener("pagehide",$e),Q=()=>t.removeEventListener("pagehide",$e)}return _.initialized||tt(ja.Pop,_.location,{initialHydration:!0}),I}function Ze(){d&&d(),Q&&Q(),h.clear(),F&&F.abort(),_.fetchers.forEach(($e,Ve)=>Oe(Ve)),_.blockers.forEach(($e,Ve)=>Kt(Ve))}function ot($e){return h.add($e),()=>h.delete($e)}function Qe($e,Ve){Ve===void 0&&(Ve={}),_=Ma({},_,$e);let ct=[],Nt=[];c.v7_fetcherPersist&&_.fetchers.forEach((qt,Bn)=>{qt.state==="idle"&&(ve.has(Bn)?Nt.push(Bn):ct.push(Bn))}),[...h].forEach(qt=>qt(_,{deletedFetchers:Nt,unstable_viewTransitionOpts:Ve.viewTransitionOpts,unstable_flushSync:Ve.flushSync===!0})),c.v7_fetcherPersist&&(ct.forEach(qt=>_.fetchers.delete(qt)),Nt.forEach(qt=>Oe(qt)))}function Je($e,Ve,ct){var Nt,qt;let{flushSync:Bn}=ct===void 0?{}:ct,yn=_.actionData!=null&&_.navigation.formMethod!=null&&tf(_.navigation.formMethod)&&_.navigation.state==="loading"&&((Nt=$e.state)==null?void 0:Nt._isRedirect)!==!0,rn;Ve.actionData?Object.keys(Ve.actionData).length>0?rn=Ve.actionData:rn=null:yn?rn=_.actionData:rn=null;let Zt=Ve.loaderData?UJ(_.loaderData,Ve.loaderData,Ve.matches||[],Ve.errors):_.loaderData,Fn=_.blockers;Fn.size>0&&(Fn=new Map(Fn),Fn.forEach((dt,Et)=>Fn.set(Et,sT)));let Ge=U===!0||_.navigation.formMethod!=null&&tf(_.navigation.formMethod)&&((qt=$e.state)==null?void 0:qt._isRedirect)!==!0;o&&(s=o,o=void 0),X||A===ja.Pop||(A===ja.Push?e.history.push($e,$e.state):A===ja.Replace&&e.history.replace($e,$e.state));let Ke;if(A===ja.Pop){let dt=V.get(_.location.pathname);dt&&dt.has($e.pathname)?Ke={currentLocation:_.location,nextLocation:$e}:V.has($e.pathname)&&(Ke={currentLocation:$e,nextLocation:_.location})}else if(M){let dt=V.get(_.location.pathname);dt?dt.add($e.pathname):(dt=new Set([$e.pathname]),V.set(_.location.pathname,dt)),Ke={currentLocation:_.location,nextLocation:$e}}Qe(Ma({},Ve,{actionData:rn,loaderData:Zt,historyAction:A,location:$e,initialized:!0,navigation:N8,revalidation:"idle",restoreScrollPosition:ur($e,Ve.matches||_.matches),preventScrollReset:Ge,blockers:Fn}),{viewTransitionOpts:Ke,flushSync:Bn===!0}),A=ja.Pop,U=!1,M=!1,X=!1,Y=!1,W=[],ee=[]}async function Ye($e,Ve){if(typeof $e=="number"){e.history.go($e);return}let ct=z9(_.location,_.matches,l,c.v7_prependBasename,$e,c.v7_relativeSplatPath,Ve==null?void 0:Ve.fromRouteId,Ve==null?void 0:Ve.relative),{path:Nt,submission:qt,error:Bn}=PJ(c.v7_normalizeFormMethod,!1,ct,Ve),yn=_.location,rn=Tx(_.location,Nt,Ve&&Ve.state);rn=Ma({},rn,e.history.encodeLocation(rn));let Zt=Ve&&Ve.replace!=null?Ve.replace:void 0,Fn=ja.Push;Zt===!0?Fn=ja.Replace:Zt===!1||qt!=null&&tf(qt.formMethod)&&qt.formAction===_.location.pathname+_.location.search&&(Fn=ja.Replace);let Ge=Ve&&"preventScrollReset"in Ve?Ve.preventScrollReset===!0:void 0,Ke=(Ve&&Ve.unstable_flushSync)===!0,dt=At({currentLocation:yn,nextLocation:rn,historyAction:Fn});if(dt){pt(dt,{state:"blocked",location:rn,proceed(){pt(dt,{state:"proceeding",proceed:void 0,reset:void 0,location:rn}),Ye($e,Ve)},reset(){let Et=new Map(_.blockers);Et.set(dt,sT),Qe({blockers:Et})}});return}return await tt(Fn,rn,{submission:qt,pendingError:Bn,preventScrollReset:Ge,replace:Ve&&Ve.replace,enableViewTransition:Ve&&Ve.unstable_viewTransition,flushSync:Ke})}function nt(){if(et(),Qe({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){tt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}tt(A||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function tt($e,Ve,ct){F&&F.abort(),F=null,A=$e,X=(ct&&ct.startUninterruptedRevalidation)===!0,Qn(_.location,_.matches),U=(ct&&ct.preventScrollReset)===!0,M=(ct&&ct.enableViewTransition)===!0;let Nt=o||s,qt=ct&&ct.overrideNavigation,Bn=pO(Nt,Ve,l),yn=(ct&&ct.flushSync)===!0;if(!Bn){let Et=qc(404,{pathname:Ve.pathname}),{matches:Jn,route:bn}=zJ(Nt);en(),Je(Ve,{matches:Jn,loaderData:{},errors:{[bn.id]:Et}},{flushSync:yn});return}if(_.initialized&&!Y&&S9e(_.location,Ve)&&!(ct&&ct.submission&&tf(ct.submission.formMethod))){Je(Ve,{matches:Bn},{flushSync:yn});return}F=new AbortController;let rn=lT(e.history,Ve,F.signal,ct&&ct.submission),Zt,Fn;if(ct&&ct.pendingError)Fn={[S2(Bn).route.id]:ct.pendingError};else if(ct&&ct.submission&&tf(ct.submission.formMethod)){let Et=await ht(rn,Ve,ct.submission,Bn,{replace:ct.replace,flushSync:yn});if(Et.shortCircuited)return;Zt=Et.pendingActionData,Fn=Et.pendingActionError,qt=P8(Ve,ct.submission),yn=!1,rn=new Request(rn.url,{signal:rn.signal})}let{shortCircuited:Ge,loaderData:Ke,errors:dt}=await _t(rn,Ve,Bn,qt,ct&&ct.submission,ct&&ct.fetcherSubmission,ct&&ct.replace,ct&&ct.initialHydration===!0,yn,Zt,Fn);Ge||(F=null,Je(Ve,Ma({matches:Bn},Zt?{actionData:Zt}:{},{loaderData:Ke,errors:dt})))}async function ht($e,Ve,ct,Nt,qt){qt===void 0&&(qt={}),et();let Bn=x9e(Ve,ct);Qe({navigation:Bn},{flushSync:qt.flushSync===!0});let yn,rn=H9(Nt,Ve);if(!rn.route.action&&!rn.route.lazy)yn={type:Na.error,error:qc(405,{method:$e.method,pathname:Ve.pathname,routeId:rn.route.id})};else if(yn=await oT("action",$e,rn,Nt,a,i,l,c.v7_relativeSplatPath),$e.signal.aborted)return{shortCircuited:!0};if(bb(yn)){let Zt;return qt&&qt.replace!=null?Zt=qt.replace:Zt=yn.location===_.location.pathname+_.location.search,await me(_,yn,{submission:ct,replace:Zt}),{shortCircuited:!0}}if(mO(yn)){let Zt=S2(Nt,rn.route.id);return(qt&&qt.replace)!==!0&&(A=ja.Push),{pendingActionData:{},pendingActionError:{[Zt.route.id]:yn.error}}}if(gb(yn))throw qc(400,{type:"defer-action"});return{pendingActionData:{[rn.route.id]:yn.data}}}async function _t($e,Ve,ct,Nt,qt,Bn,yn,rn,Zt,Fn,Ge){let Ke=Nt||P8(Ve,qt),dt=qt||Bn||VJ(Ke),Et=o||s,[Jn,bn]=MJ(e.history,_,ct,dt,Ve,c.v7_partialHydration&&rn===!0,Y,W,ee,ve,ye,Ce,Et,l,Fn,Ge);if(en(Gn=>!(ct&&ct.some(ci=>ci.route.id===Gn))||Jn&&Jn.some(ci=>ci.route.id===Gn)),ne=++K,Jn.length===0&&bn.length===0){let Gn=jt();return Je(Ve,Ma({matches:ct,loaderData:{},errors:Ge||null},Fn?{actionData:Fn}:{},Gn?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Zt}),{shortCircuited:!0}}if(!X&&(!c.v7_partialHydration||!rn)){bn.forEach(ci=>{let ta=_.fetchers.get(ci.key),Nd=uT(void 0,ta?ta.data:void 0);_.fetchers.set(ci.key,Nd)});let Gn=Fn||_.actionData;Qe(Ma({navigation:Ke},Gn?Object.keys(Gn).length===0?{actionData:null}:{actionData:Gn}:{},bn.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Zt})}bn.forEach(Gn=>{J.has(Gn.key)&&je(Gn.key),Gn.controller&&J.set(Gn.key,Gn.controller)});let Yn=()=>bn.forEach(Gn=>je(Gn.key));F&&F.signal.addEventListener("abort",Yn);let{results:mi,loaderResults:it,fetcherResults:Ue}=await We(_.matches,ct,Jn,bn,$e);if($e.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Yn),bn.forEach(Gn=>J.delete(Gn.key));let ke=jJ(mi);if(ke){if(ke.idx>=Jn.length){let Gn=bn[ke.idx-Jn.length].key;Ce.add(Gn)}return await me(_,ke.result,{replace:yn}),{shortCircuited:!0}}let{loaderData:ln,errors:qn}=BJ(_,ct,Jn,it,Ge,bn,Ue,Se);Se.forEach((Gn,ci)=>{Gn.subscribe(ta=>{(ta||Gn.done)&&Se.delete(ci)})});let Jr=jt(),Ie=Xt(ne),Nn=Jr||Ie||bn.length>0;return Ma({loaderData:ln,errors:qn},Nn?{fetchers:new Map(_.fetchers)}:{})}function lt($e,Ve,ct,Nt){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");J.has($e)&&je($e);let qt=(Nt&&Nt.unstable_flushSync)===!0,Bn=o||s,yn=z9(_.location,_.matches,l,c.v7_prependBasename,ct,c.v7_relativeSplatPath,Ve,Nt==null?void 0:Nt.relative),rn=pO(Bn,yn,l);if(!rn){pe($e,Ve,qc(404,{pathname:yn}),{flushSync:qt});return}let{path:Zt,submission:Fn,error:Ge}=PJ(c.v7_normalizeFormMethod,!0,yn,Nt);if(Ge){pe($e,Ve,Ge,{flushSync:qt});return}let Ke=H9(rn,Zt);if(U=(Nt&&Nt.preventScrollReset)===!0,Fn&&tf(Fn.formMethod)){ge($e,Ve,Zt,Ke,rn,qt,Fn);return}ye.set($e,{routeId:Ve,path:Zt}),ue($e,Ve,Zt,Ke,rn,qt,Fn)}async function ge($e,Ve,ct,Nt,qt,Bn,yn){if(et(),ye.delete($e),!Nt.route.action&&!Nt.route.lazy){let ci=qc(405,{method:yn.formMethod,pathname:ct,routeId:Ve});pe($e,Ve,ci,{flushSync:Bn});return}let rn=_.fetchers.get($e);qe($e,k9e(yn,rn),{flushSync:Bn});let Zt=new AbortController,Fn=lT(e.history,ct,Zt.signal,yn);J.set($e,Zt);let Ge=K,Ke=await oT("action",Fn,Nt,qt,a,i,l,c.v7_relativeSplatPath);if(Fn.signal.aborted){J.get($e)===Zt&&J.delete($e);return}if(c.v7_fetcherPersist&&ve.has($e)){if(bb(Ke)||mO(Ke)){qe($e,v0(void 0));return}}else{if(bb(Ke))if(J.delete($e),ne>Ge){qe($e,v0(void 0));return}else return Ce.add($e),qe($e,uT(yn)),me(_,Ke,{fetcherSubmission:yn});if(mO(Ke)){pe($e,Ve,Ke.error);return}}if(gb(Ke))throw qc(400,{type:"defer-action"});let dt=_.navigation.location||_.location,Et=lT(e.history,dt,Zt.signal),Jn=o||s,bn=_.navigation.state!=="idle"?pO(Jn,_.navigation.location,l):_.matches;Lr(bn,"Didn't find any matches after fetcher action");let Yn=++K;j.set($e,Yn);let mi=uT(yn,Ke.data);_.fetchers.set($e,mi);let[it,Ue]=MJ(e.history,_,bn,yn,dt,!1,Y,W,ee,ve,ye,Ce,Jn,l,{[Nt.route.id]:Ke.data},void 0);Ue.filter(ci=>ci.key!==$e).forEach(ci=>{let ta=ci.key,Nd=_.fetchers.get(ta),hp=uT(void 0,Nd?Nd.data:void 0);_.fetchers.set(ta,hp),J.has(ta)&&je(ta),ci.controller&&J.set(ta,ci.controller)}),Qe({fetchers:new Map(_.fetchers)});let ke=()=>Ue.forEach(ci=>je(ci.key));Zt.signal.addEventListener("abort",ke);let{results:ln,loaderResults:qn,fetcherResults:Jr}=await We(_.matches,bn,it,Ue,Et);if(Zt.signal.aborted)return;Zt.signal.removeEventListener("abort",ke),j.delete($e),J.delete($e),Ue.forEach(ci=>J.delete(ci.key));let Ie=jJ(ln);if(Ie){if(Ie.idx>=it.length){let ci=Ue[Ie.idx-it.length].key;Ce.add(ci)}return me(_,Ie.result)}let{loaderData:Nn,errors:Gn}=BJ(_,_.matches,it,qn,void 0,Ue,Jr,Se);if(_.fetchers.has($e)){let ci=v0(Ke.data);_.fetchers.set($e,ci)}Xt(Yn),_.navigation.state==="loading"&&Yn>ne?(Lr(A,"Expected pending action"),F&&F.abort(),Je(_.navigation.location,{matches:bn,loaderData:Nn,errors:Gn,fetchers:new Map(_.fetchers)})):(Qe({errors:Gn,loaderData:UJ(_.loaderData,Nn,bn,Gn),fetchers:new Map(_.fetchers)}),Y=!1)}async function ue($e,Ve,ct,Nt,qt,Bn,yn){let rn=_.fetchers.get($e);qe($e,uT(yn,rn?rn.data:void 0),{flushSync:Bn});let Zt=new AbortController,Fn=lT(e.history,ct,Zt.signal);J.set($e,Zt);let Ge=K,Ke=await oT("loader",Fn,Nt,qt,a,i,l,c.v7_relativeSplatPath);if(gb(Ke)&&(Ke=await Cde(Ke,Fn.signal,!0)||Ke),J.get($e)===Zt&&J.delete($e),!Fn.signal.aborted){if(ve.has($e)){qe($e,v0(void 0));return}if(bb(Ke))if(ne>Ge){qe($e,v0(void 0));return}else{Ce.add($e),await me(_,Ke);return}if(mO(Ke)){pe($e,Ve,Ke.error);return}Lr(!gb(Ke),"Unhandled fetcher deferred data"),qe($e,v0(Ke.data))}}async function me($e,Ve,ct){let{submission:Nt,fetcherSubmission:qt,replace:Bn}=ct===void 0?{}:ct;Ve.revalidate&&(Y=!0);let yn=Tx($e.location,Ve.location,{_isRedirect:!0});if(Lr(yn,"Expected a location on the redirect navigation"),n){let dt=!1;if(Ve.reloadDocument)dt=!0;else if(wde.test(Ve.location)){const Et=e.history.createURL(Ve.location);dt=Et.origin!==t.location.origin||Kk(Et.pathname,l)==null}if(dt){Bn?t.location.replace(Ve.location):t.location.assign(Ve.location);return}}F=null;let rn=Bn===!0?ja.Replace:ja.Push,{formMethod:Zt,formAction:Fn,formEncType:Ge}=$e.navigation;!Nt&&!qt&&Zt&&Fn&&Ge&&(Nt=VJ($e.navigation));let Ke=Nt||qt;if(h9e.has(Ve.status)&&Ke&&tf(Ke.formMethod))await tt(rn,yn,{submission:Ma({},Ke,{formAction:Ve.location}),preventScrollReset:U});else{let dt=P8(yn,Nt);await tt(rn,yn,{overrideNavigation:dt,fetcherSubmission:qt,preventScrollReset:U})}}async function We($e,Ve,ct,Nt,qt){let Bn=await Promise.all([...ct.map(Zt=>oT("loader",qt,Zt,Ve,a,i,l,c.v7_relativeSplatPath)),...Nt.map(Zt=>Zt.matches&&Zt.match&&Zt.controller?oT("loader",lT(e.history,Zt.path,Zt.controller.signal),Zt.match,Zt.matches,a,i,l,c.v7_relativeSplatPath):{type:Na.error,error:qc(404,{pathname:Zt.path})})]),yn=Bn.slice(0,ct.length),rn=Bn.slice(ct.length);return await Promise.all([HJ($e,ct,yn,yn.map(()=>qt.signal),!1,_.loaderData),HJ($e,Nt.map(Zt=>Zt.match),rn,Nt.map(Zt=>Zt.controller?Zt.controller.signal:null),!0)]),{results:Bn,loaderResults:yn,fetcherResults:rn}}function et(){Y=!0,W.push(...en()),ye.forEach(($e,Ve)=>{J.has(Ve)&&(ee.push(Ve),je(Ve))})}function qe($e,Ve,ct){ct===void 0&&(ct={}),_.fetchers.set($e,Ve),Qe({fetchers:new Map(_.fetchers)},{flushSync:(ct&&ct.flushSync)===!0})}function pe($e,Ve,ct,Nt){Nt===void 0&&(Nt={});let qt=S2(_.matches,Ve);Oe($e),Qe({errors:{[qt.route.id]:ct},fetchers:new Map(_.fetchers)},{flushSync:(Nt&&Nt.flushSync)===!0})}function Te($e){return c.v7_fetcherPersist&&(te.set($e,(te.get($e)||0)+1),ve.has($e)&&ve.delete($e)),_.fetchers.get($e)||p9e}function Oe($e){let Ve=_.fetchers.get($e);J.has($e)&&!(Ve&&Ve.state==="loading"&&j.has($e))&&je($e),ye.delete($e),j.delete($e),Ce.delete($e),ve.delete($e),_.fetchers.delete($e)}function De($e){if(c.v7_fetcherPersist){let Ve=(te.get($e)||0)-1;Ve<=0?(te.delete($e),ve.add($e)):te.set($e,Ve)}else Oe($e);Qe({fetchers:new Map(_.fetchers)})}function je($e){let Ve=J.get($e);Lr(Ve,"Expected fetch controller: "+$e),Ve.abort(),J.delete($e)}function Ot($e){for(let Ve of $e){let ct=Te(Ve),Nt=v0(ct.data);_.fetchers.set(Ve,Nt)}}function jt(){let $e=[],Ve=!1;for(let ct of Ce){let Nt=_.fetchers.get(ct);Lr(Nt,"Expected fetcher: "+ct),Nt.state==="loading"&&(Ce.delete(ct),$e.push(ct),Ve=!0)}return Ot($e),Ve}function Xt($e){let Ve=[];for(let[ct,Nt]of j)if(Nt<$e){let qt=_.fetchers.get(ct);Lr(qt,"Expected fetcher: "+ct),qt.state==="loading"&&(je(ct),j.delete(ct),Ve.push(ct))}return Ot(Ve),Ve.length>0}function St($e,Ve){let ct=_.blockers.get($e)||sT;return he.get($e)!==Ve&&he.set($e,Ve),ct}function Kt($e){_.blockers.delete($e),he.delete($e)}function pt($e,Ve){let ct=_.blockers.get($e)||sT;Lr(ct.state==="unblocked"&&Ve.state==="blocked"||ct.state==="blocked"&&Ve.state==="blocked"||ct.state==="blocked"&&Ve.state==="proceeding"||ct.state==="blocked"&&Ve.state==="unblocked"||ct.state==="proceeding"&&Ve.state==="unblocked","Invalid blocker state transition: "+ct.state+" -> "+Ve.state);let Nt=new Map(_.blockers);Nt.set($e,Ve),Qe({blockers:Nt})}function At($e){let{currentLocation:Ve,nextLocation:ct,historyAction:Nt}=$e;if(he.size===0)return;he.size>1&&qb(!1,"A router only supports one blocker at a time");let qt=Array.from(he.entries()),[Bn,yn]=qt[qt.length-1],rn=_.blockers.get(Bn);if(!(rn&&rn.state==="proceeding")&&yn({currentLocation:Ve,nextLocation:ct,historyAction:Nt}))return Bn}function en($e){let Ve=[];return Se.forEach((ct,Nt)=>{(!$e||$e(Nt))&&(ct.cancel(),Ve.push(Nt),Se.delete(Nt))}),Ve}function Dn($e,Ve,ct){if(p=$e,v=Ve,b=ct||null,!S&&_.navigation===N8){S=!0;let Nt=ur(_.location,_.matches);Nt!=null&&Qe({restoreScrollPosition:Nt})}return()=>{p=null,v=null,b=null}}function $n($e,Ve){return b&&b($e,Ve.map(Nt=>HLe(Nt,_.loaderData)))||$e.key}function Qn($e,Ve){if(p&&v){let ct=$n($e,Ve);p[ct]=v()}}function ur($e,Ve){if(p){let ct=$n($e,Ve),Nt=p[ct];if(typeof Nt=="number")return Nt}return null}function Qr($e){a={},o=U9($e,i,void 0,a)}return I={get basename(){return l},get future(){return c},get state(){return _},get routes(){return s},get window(){return t},initialize:Me,subscribe:ot,enableScrollRestoration:Dn,navigate:Ye,fetch:lt,revalidate:nt,createHref:$e=>e.history.createHref($e),encodeLocation:$e=>e.history.encodeLocation($e),getFetcher:Te,deleteFetcher:De,dispose:Ze,getBlocker:St,deleteBlocker:Kt,_internalFetchControllers:J,_internalActiveDeferreds:Se,_internalSetRoutes:Qr},I}function b9e(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function z9(e,t,n,r,i,a,s,o){let l,c;if(s){l=[];for(let h of t)if(l.push(h),h.route.id===s){c=h;break}}else l=t,c=t[t.length-1];let d=Pz(i||".",Nz(l,a),Kk(e.pathname,n)||e.pathname,o==="path");return i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!$z(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:og([n,d.pathname])),Xk(d)}function PJ(e,t,n,r){if(!r||!b9e(r))return{path:n};if(r.formMethod&&!T9e(r.formMethod))return{path:n,error:qc(405,{method:r.formMethod})};let i=()=>({path:n,error:qc(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=kde(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!tf(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,v)=>{let[S,w]=v;return""+b+S+"="+w+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!tf(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Lr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=j9(r.formData),c=r.formData;else if(r.body instanceof FormData)l=j9(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=FJ(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=FJ(l)}catch{return i()}let d={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(tf(d.formMethod))return{path:n,submission:d};let h=km(n);return t&&h.search&&$z(h.search)&&l.append("index",""),h.search="?"+l,{path:Xk(h),submission:d}}function y9e(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function MJ(e,t,n,r,i,a,s,o,l,c,d,h,p,b,v,S){let w=S?Object.values(S)[0]:v?Object.values(v)[0]:void 0,T=e.createURL(t.location),x=e.createURL(i),k=S?Object.keys(S)[0]:void 0,I=y9e(n,k).filter((A,U)=>{let{route:F}=A;if(F.lazy)return!0;if(F.loader==null)return!1;if(a)return F.loader.hydrate?!0:t.loaderData[F.id]===void 0&&(!t.errors||t.errors[F.id]===void 0);if(v9e(t.loaderData,t.matches[U],A)||o.some(Q=>Q===A.route.id))return!0;let M=t.matches[U],V=A;return LJ(A,Ma({currentUrl:T,currentParams:M.params,nextUrl:x,nextParams:V.params},r,{actionResult:w,defaultShouldRevalidate:s||T.pathname+T.search===x.pathname+x.search||T.search!==x.search||xde(M,V)}))}),_=[];return d.forEach((A,U)=>{if(a||!n.some(X=>X.route.id===A.routeId)||c.has(U))return;let F=pO(p,A.path,b);if(!F){_.push({key:U,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(U),V=H9(F,A.path),Q=!1;h.has(U)?Q=!1:l.includes(U)?Q=!0:M&&M.state!=="idle"&&M.data===void 0?Q=s:Q=LJ(V,Ma({currentUrl:T,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),Q&&_.push({key:U,routeId:A.routeId,path:A.path,matches:F,match:V,controller:new AbortController})}),[I,_]}function v9e(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function xde(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function LJ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function $J(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Lr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";qb(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!zLe.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,Ma({},t(i),{lazy:void 0}))}async function oT(e,t,n,r,i,a,s,o,l){l===void 0&&(l={});let c,d,h,p=S=>{let w,T=new Promise((x,k)=>w=k);return h=()=>w(),t.signal.addEventListener("abort",h),Promise.race([S({request:t,params:n.params,context:l.requestContext}),T])};try{let S=n.route[e];if(n.route.lazy)if(S){let w,T=await Promise.all([p(S).catch(x=>{w=x}),$J(n.route,a,i)]);if(w)throw w;d=T[0]}else if(await $J(n.route,a,i),S=n.route[e],S)d=await p(S);else if(e==="action"){let w=new URL(t.url),T=w.pathname+w.search;throw qc(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:Na.data,data:void 0};else if(S)d=await p(S);else{let w=new URL(t.url),T=w.pathname+w.search;throw qc(404,{pathname:T})}Lr(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(S){c=Na.error,d=S}finally{h&&t.signal.removeEventListener("abort",h)}if(w9e(d)){let S=d.status;if(f9e.has(S)){let T=d.headers.get("Location");if(Lr(T,"Redirects returned/thrown from loaders/actions must have a Location header"),!wde.test(T))T=z9(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,T,o);else if(!l.isStaticRequest){let x=new URL(t.url),k=T.startsWith("//")?new URL(x.protocol+T):new URL(T),C=Kk(k.pathname,s)!=null;k.origin===x.origin&&C&&(T=k.pathname+k.search+k.hash)}if(l.isStaticRequest)throw d.headers.set("Location",T),d;return{type:Na.redirect,status:S,location:T,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:c===Na.error?Na.error:Na.data,response:d};let w;try{let T=d.headers.get("Content-Type");T&&/\bapplication\/json\b/.test(T)?d.body==null?w=null:w=await d.json():w=await d.text()}catch(T){return{type:Na.error,error:T}}return c===Na.error?{type:c,error:new Mz(S,d.statusText,w),headers:d.headers}:{type:Na.data,data:w,statusCode:d.status,headers:d.headers}}if(c===Na.error)return{type:c,error:d};if(E9e(d)){var b,v;return{type:Na.deferred,deferredData:d,statusCode:(b=d.init)==null?void 0:b.status,headers:((v=d.init)==null?void 0:v.headers)&&new Headers(d.init.headers)}}return{type:Na.data,data:d}}function lT(e,t,n,r){let i=e.createURL(kde(t)).toString(),a={signal:n};if(r&&tf(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=j9(r.formData):a.body=r.formData}return new Request(i,a)}function j9(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function FJ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function O9e(e,t,n,r,i){let a={},s=null,o,l=!1,c={};return n.forEach((d,h)=>{let p=t[h].route.id;if(Lr(!bb(d),"Cannot handle redirect results in processLoaderData"),mO(d)){let b=S2(e,p),v=d.error;r&&(v=Object.values(r)[0],r=void 0),s=s||{},s[b.route.id]==null&&(s[b.route.id]=v),a[p]=void 0,l||(l=!0,o=Lz(d.error)?d.error.status:500),d.headers&&(c[p]=d.headers)}else gb(d)?(i.set(p,d.deferredData),a[p]=d.deferredData.data):a[p]=d.data,d.statusCode!=null&&d.statusCode!==200&&!l&&(o=d.statusCode),d.headers&&(c[p]=d.headers)}),r&&(s=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:c}}function BJ(e,t,n,r,i,a,s,o){let{loaderData:l,errors:c}=O9e(t,n,r,i,o);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function zJ(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qc(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,s="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?o="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?o="defer() is not supported in actions":a==="invalid-body"&&(o="Unable to encode submission body")):e===403?(s="Forbidden",o='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",o='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?o="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(o='Invalid request method "'+i.toUpperCase()+'"')),new Mz(e||500,s,new Error(o),!0)}function jJ(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(bb(n))return{result:n,idx:t}}}function kde(e){let t=typeof e=="string"?km(e):e;return Xk(Ma({},t,{hash:""}))}function S9e(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function gb(e){return e.type===Na.deferred}function mO(e){return e.type===Na.error}function bb(e){return(e&&e.type)===Na.redirect}function E9e(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function w9e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function T9e(e){return d9e.has(e.toLowerCase())}function tf(e){return u9e.has(e.toLowerCase())}async function HJ(e,t,n,r,i,a){for(let s=0;sh.route.id===l.route.id),d=c!=null&&!xde(c,l)&&(a&&a[l.route.id])!==void 0;if(gb(o)&&(i||d)){let h=r[s];Lr(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await Cde(o,h,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function Cde(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Na.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Na.error,error:i}}return{type:Na.data,data:e.deferredData.data}}}function $z(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function H9(e,t){let n=typeof t=="string"?km(t).search:t.search;if(e[e.length-1].route.index&&$z(n||""))return e[e.length-1];let r=Sde(e);return r[r.length-1]}function VJ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function P8(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function x9e(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function uT(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function k9e(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function v0(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function C9e(e,t){try{let n=e.sessionStorage.getItem(Tde);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function _9e(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Tde,JSON.stringify(n))}catch(r){qb(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.3 * * Copyright (c) Remix Software Inc. @@ -180,7 +181,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),M.useCallback(function(c,d){if(d===void 0&&(d={}),!o.current)return;if(typeof c=="number"){r.go(c);return}let h=Dz(c,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:lg([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,s,a,e])}const NLe=M.createContext(null);function PLe(e){let t=M.useContext(km).outlet;return t&&M.createElement(NLe.Provider,{value:e},t)}function lE(){let{matches:e}=M.useContext(km),t=e[e.length-1];return t?t.params:{}}function MLe(e,t,n,r){Zk()||Mr(!1);let{navigator:i}=M.useContext(Gk),{matches:a}=M.useContext(km),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=oy(),d;if(t){var h;let w=typeof t=="string"?xm(t):t;l==="/"||(h=w.pathname)!=null&&h.startsWith(l)||Mr(!1),d=w}else d=c;let p=d.pathname||"/",b=l==="/"?p:p.slice(l.length)||"/",v=hO(e,{pathname:b}),S=ULe(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:lg([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:lg([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n,r);return t&&S?M.createElement(cN.Provider,{value:{location:wx({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:za.Pop}},S):S}function LLe(){let e=gde(),t=Pz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:i},n):null,null)}const $Le=M.createElement(LLe,null);class FLe extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?M.createElement(km.Provider,{value:this.props.routeContext},M.createElement(fde.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BLe(e){let{routeContext:t,match:n,children:r}=e,i=M.useContext(uN);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(km.Provider,{value:t},r)}function ULe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let d=s.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id]));d>=0||Mr(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,h,p)=>{let b,v=!1,S=null,w=null;n&&(b=o&&h.route.id?o[h.route.id]:void 0,S=h.route.errorElement||$Le,l&&(c<0&&p===0?(WLe("route-fallback",!1),v=!0,w=null):c===p&&(v=!0,w=h.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,p+1)),x=()=>{let k;return b?k=S:v?k=w:h.route.Component?k=M.createElement(h.route.Component,null):h.route.element?k=h.route.element:k=d,M.createElement(BLe,{match:h,routeContext:{outlet:d,matches:T,isDataRoute:n!=null},children:k})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?M.createElement(FLe,{location:n.location,revalidation:n.revalidation,component:S,error:b,children:x(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):x()},null)}var pde=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(pde||{}),ER=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ER||{});function zLe(e){let t=M.useContext(uN);return t||Mr(!1),t}function jLe(e){let t=M.useContext(dde);return t||Mr(!1),t}function HLe(e){let t=M.useContext(km);return t||Mr(!1),t}function mde(e){let t=HLe(),n=t.matches[t.matches.length-1];return n.route.id||Mr(!1),n.route.id}function gde(){var e;let t=M.useContext(fde),n=jLe(ER.UseRouteError),r=mde(ER.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function VLe(){let{router:e}=zLe(pde.UseNavigateStable),t=mde(ER.UseNavigateStable),n=M.useRef(!1);return hde(()=>{n.current=!0}),M.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,wx({fromRouteId:t},a)))},[e,t])}const DJ={};function WLe(e,t,n){!t&&!DJ[e]&&(DJ[e]=!0)}function Lz(e){let{to:t,replace:n,state:r,relative:i}=e;Zk()||Mr(!1);let{future:a,static:s}=M.useContext(Gk),{matches:o}=M.useContext(km),{pathname:l}=oy(),c=Cm(),d=Dz(t,Iz(o,a.v7_relativeSplatPath),l,i==="path"),h=JSON.stringify(d);return M.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:i}),[c,h,i,n,r]),null}function $z(e){return PLe(e.context)}function QLe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=za.Pop,navigator:a,static:s=!1,future:o}=e;Zk()&&Mr(!1);let l=t.replace(/^\/*/,"/"),c=M.useMemo(()=>({basename:l,navigator:a,static:s,future:wx({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=xm(r));let{pathname:d="/",search:h="",hash:p="",state:b=null,key:v="default"}=r,S=M.useMemo(()=>{let w=qk(d,l);return w==null?null:{location:{pathname:w,search:h,hash:p,state:b,key:v},navigationType:i}},[l,d,h,p,b,v,i]);return S==null?null:M.createElement(Gk.Provider,{value:c},M.createElement(cN.Provider,{children:n,value:S}))}new Promise(()=>{});function YLe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:M.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:M.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:M.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),P.useCallback(function(c,d){if(d===void 0&&(d={}),!o.current)return;if(typeof c=="number"){r.go(c);return}let h=Pz(c,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:og([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,s,a,e])}const R9e=P.createContext(null);function I9e(e){let t=P.useContext(Cm).outlet;return t&&P.createElement(R9e.Provider,{value:e},t)}function Hg(){let{matches:e}=P.useContext(Cm),t=e[e.length-1];return t?t.params:{}}function D9e(e,t,n,r){eC()||Lr(!1);let{navigator:i}=P.useContext(Jk),{matches:a}=P.useContext(Cm),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=jg(),d;if(t){var h;let w=typeof t=="string"?km(t):t;l==="/"||(h=w.pathname)!=null&&h.startsWith(l)||Lr(!1),d=w}else d=c;let p=d.pathname||"/",b=l==="/"?p:p.slice(l.length)||"/",v=pO(e,{pathname:b}),S=$9e(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:og([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:og([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n,r);return t&&S?P.createElement(fN.Provider,{value:{location:xx({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ja.Pop}},S):S}function N9e(){let e=Nde(),t=Lz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const P9e=P.createElement(N9e,null);class M9e extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(Cm.Provider,{value:this.props.routeContext},P.createElement(Ade.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function L9e(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(dN);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Cm.Provider,{value:t},r)}function $9e(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let d=s.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id]));d>=0||Lr(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,h,p)=>{let b,v=!1,S=null,w=null;n&&(b=o&&h.route.id?o[h.route.id]:void 0,S=h.route.errorElement||P9e,l&&(c<0&&p===0?(j9e("route-fallback",!1),v=!0,w=null):c===p&&(v=!0,w=h.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,p+1)),x=()=>{let k;return b?k=S:v?k=w:h.route.Component?k=P.createElement(h.route.Component,null):h.route.element?k=h.route.element:k=d,P.createElement(L9e,{match:h,routeContext:{outlet:d,matches:T,isDataRoute:n!=null},children:k})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?P.createElement(M9e,{location:n.location,revalidation:n.revalidation,component:S,error:b,children:x(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):x()},null)}var Ide=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ide||{}),CR=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(CR||{});function F9e(e){let t=P.useContext(dN);return t||Lr(!1),t}function B9e(e){let t=P.useContext(_de);return t||Lr(!1),t}function U9e(e){let t=P.useContext(Cm);return t||Lr(!1),t}function Dde(e){let t=U9e(),n=t.matches[t.matches.length-1];return n.route.id||Lr(!1),n.route.id}function Nde(){var e;let t=P.useContext(Ade),n=B9e(CR.UseRouteError),r=Dde(CR.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function z9e(){let{router:e}=F9e(Ide.UseNavigateStable),t=Dde(CR.UseNavigateStable),n=P.useRef(!1);return Rde(()=>{n.current=!0}),P.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xx({fromRouteId:t},a)))},[e,t])}const WJ={};function j9e(e,t,n){!t&&!WJ[e]&&(WJ[e]=!0)}function Fz(e){let{to:t,replace:n,state:r,relative:i}=e;eC()||Lr(!1);let{future:a,static:s}=P.useContext(Jk),{matches:o}=P.useContext(Cm),{pathname:l}=jg(),c=ep(),d=Pz(t,Nz(o,a.v7_relativeSplatPath),l,i==="path"),h=JSON.stringify(d);return P.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:i}),[c,h,i,n,r]),null}function Bz(e){return I9e(e.context)}function H9e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ja.Pop,navigator:a,static:s=!1,future:o}=e;eC()&&Lr(!1);let l=t.replace(/^\/*/,"/"),c=P.useMemo(()=>({basename:l,navigator:a,static:s,future:xx({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=km(r));let{pathname:d="/",search:h="",hash:p="",state:b=null,key:v="default"}=r,S=P.useMemo(()=>{let w=Kk(d,l);return w==null?null:{location:{pathname:w,search:h,hash:p,state:b,key:v},navigationType:i}},[l,d,h,p,b,v,i]);return S==null?null:P.createElement(Jk.Provider,{value:c},P.createElement(fN.Provider,{children:n,value:S}))}new Promise(()=>{});function V9e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.3 * * Copyright (c) Remix Software Inc. @@ -189,27 +190,27 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function wR(){return wR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function qLe(e,t){let n=V9(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}function GLe(e,t){return vLe({basename:t==null?void 0:t.basename,future:wR({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:zMe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||ZLe(),routes:e,mapRouteProperties:YLe,window:t==null?void 0:t.window}).initialize()}function ZLe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=wR({},t,{errors:XLe(t.errors)})),t}function XLe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Nz(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let s=new a(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const KLe=M.createContext({isTransitioning:!1}),JLe=M.createContext(new Map),e9e="startTransition",NJ=gS[e9e],t9e="flushSync",PJ=Sxe[t9e];function n9e(e){NJ?NJ(e):e()}function u2(e){PJ?PJ(e):e()}class r9e{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function i9e(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=M.useState(n.state),[s,o]=M.useState(),[l,c]=M.useState({isTransitioning:!1}),[d,h]=M.useState(),[p,b]=M.useState(),[v,S]=M.useState(),w=M.useRef(new Map),{v7_startTransition:T}=r||{},x=M.useCallback(A=>{T?n9e(A):A()},[T]),k=M.useCallback((A,U)=>{let{deletedFetchers:F,unstable_flushSync:P,unstable_viewTransitionOpts:V}=U;F.forEach(X=>w.current.delete(X)),A.fetchers.forEach((X,Y)=>{X.data!==void 0&&w.current.set(Y,X.data)});let Q=n.window==null||typeof n.window.document.startViewTransition!="function";if(!V||Q){P?u2(()=>a(A)):x(()=>a(A));return}if(P){u2(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let X=n.window.document.startViewTransition(()=>{u2(()=>a(A))});X.finished.finally(()=>{u2(()=>{h(void 0),b(void 0),o(void 0),c({isTransitioning:!1})})}),u2(()=>b(X));return}p?(d&&d.resolve(),p.skipTransition(),S({state:A,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(o(A),c({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,p,d,w,x]);M.useLayoutEffect(()=>n.subscribe(k),[n,k]),M.useEffect(()=>{l.isTransitioning&&!l.flushSync&&h(new r9e)},[l]),M.useEffect(()=>{if(d&&s&&n.window){let A=s,U=d.promise,F=n.window.document.startViewTransition(async()=>{x(()=>a(A)),await U});F.finished.finally(()=>{h(void 0),b(void 0),o(void 0),c({isTransitioning:!1})}),b(F)}},[x,s,d,n.window]),M.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,p,i.location,s]),M.useEffect(()=>{!l.isTransitioning&&v&&(o(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),S(void 0))},[l.isTransitioning,v]),M.useEffect(()=>{},[]);let C=M.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:A=>n.navigate(A),push:(A,U,F)=>n.navigate(A,{state:U,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(A,U,F)=>n.navigate(A,{replace:!0,state:U,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),I=n.basename||"/",_=M.useMemo(()=>({router:n,navigator:C,static:!1,basename:I}),[n,C,I]);return M.createElement(M.Fragment,null,M.createElement(uN.Provider,{value:_},M.createElement(dde.Provider,{value:i},M.createElement(JLe.Provider,{value:w.current},M.createElement(KLe.Provider,{value:l},M.createElement(QLe,{basename:I,location:i.location,navigationType:i.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?M.createElement(a9e,{routes:n.routes,future:n.future,state:i}):t))))),null)}function a9e(e){let{routes:t,future:n,state:r}=e;return MLe(t,void 0,r,n)}var MJ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(MJ||(MJ={}));var LJ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(LJ||(LJ={}));function Fz(e){let t=M.useRef(V9(e)),n=M.useRef(!1),r=oy(),i=M.useMemo(()=>qLe(r.search,n.current?null:t.current),[r.search]),a=Cm(),s=M.useCallback((o,l)=>{const c=V9(typeof o=="function"?o(i):o);n.current=!0,a("?"+c,l)},[a,i]);return[i,s]}function eo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var s9e=typeof Symbol=="function"&&Symbol.observable||"@@observable",$J=s9e,M8=()=>Math.random().toString(36).substring(7).split("").join("."),o9e={INIT:`@@redux/INIT${M8()}`,REPLACE:`@@redux/REPLACE${M8()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${M8()}`},TR=o9e;function Bz(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Uz(e,t,n){if(typeof e!="function")throw new Error(eo(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(eo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(eo(1));return n(Uz)(e,t)}let r=e,i=t,a=new Map,s=a,o=0,l=!1;function c(){s===a&&(s=new Map,a.forEach((w,T)=>{s.set(T,w)}))}function d(){if(l)throw new Error(eo(3));return i}function h(w){if(typeof w!="function")throw new Error(eo(4));if(l)throw new Error(eo(5));let T=!0;c();const x=o++;return s.set(x,w),function(){if(T){if(l)throw new Error(eo(6));T=!1,c(),s.delete(x),a=null}}}function p(w){if(!Bz(w))throw new Error(eo(7));if(typeof w.type>"u")throw new Error(eo(8));if(typeof w.type!="string")throw new Error(eo(17));if(l)throw new Error(eo(9));try{l=!0,i=r(i,w)}finally{l=!1}return(a=s).forEach(x=>{x()}),w}function b(w){if(typeof w!="function")throw new Error(eo(10));r=w,p({type:TR.REPLACE})}function v(){const w=h;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(eo(11));function x(){const C=T;C.next&&C.next(d())}return x(),{unsubscribe:w(x)}},[$J](){return this}}}return p({type:TR.INIT}),{dispatch:p,subscribe:h,getState:d,replaceReducer:b,[$J]:v}}function l9e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:TR.INIT})>"u")throw new Error(eo(12));if(typeof n(void 0,{type:TR.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(eo(13))})}function bde(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw o&&o.type,new Error(eo(14));c[h]=v,l=l||v!==b}return l=l||r.length!==Object.keys(s).length,l?c:s}}function xR(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function u9e(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(eo(15))};const s={getState:i.getState,dispatch:(l,...c)=>a(l,...c)},o=e.map(l=>l(s));return a=xR(...o)(i.dispatch),{...i,dispatch:a}}}function c9e(e){return Bz(e)&&"type"in e&&typeof e.type=="string"}var yde=Symbol.for("immer-nothing"),FJ=Symbol.for("immer-draftable"),pc=Symbol.for("immer-state");function df(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var AS=Object.getPrototypeOf;function wg(e){return!!e&&!!e[pc]}function cm(e){var t;return e?vde(e)||Array.isArray(e)||!!e[FJ]||!!((t=e.constructor)!=null&&t[FJ])||fN(e)||hN(e):!1}var d9e=Object.prototype.constructor.toString();function vde(e){if(!e||typeof e!="object")return!1;const t=AS(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===d9e}function Tx(e,t){dN(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function dN(e){const t=e[pc];return t?t.type_:Array.isArray(e)?1:fN(e)?2:hN(e)?3:0}function W9(e,t){return dN(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ode(e,t,n){const r=dN(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function f9e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function fN(e){return e instanceof Map}function hN(e){return e instanceof Set}function rb(e){return e.copy_||e.base_}function Q9(e,t){if(fN(e))return new Map(e);if(hN(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&vde(e))return AS(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[pc];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=h9e),Object.freeze(e),t&&Tx(e,(n,r)=>zz(r,!0))),e}function h9e(){df(2)}function pN(e){return Object.isFrozen(e)}var p9e={};function Yb(e){const t=p9e[e];return t||df(0,e),t}var xx;function Sde(){return xx}function m9e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function BJ(e,t){t&&(Yb("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Y9(e){q9(e),e.drafts_.forEach(g9e),e.drafts_=null}function q9(e){e===xx&&(xx=e.parent_)}function UJ(e){return xx=m9e(xx,e)}function g9e(e){const t=e[pc];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function zJ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[pc].modified_&&(Y9(t),df(4)),cm(e)&&(e=kR(t,e),t.parent_||CR(t,e)),t.patches_&&Yb("Patches").generateReplacementPatches_(n[pc].base_,e,t.patches_,t.inversePatches_)):e=kR(t,n,[]),Y9(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yde?e:void 0}function kR(e,t,n){if(pN(t))return t;const r=t[pc];if(!r)return Tx(t,(i,a)=>jJ(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return CR(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),Tx(a,(o,l)=>jJ(e,r,i,o,l,n,s)),CR(e,i,!1),n&&e.patches_&&Yb("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function jJ(e,t,n,r,i,a,s){if(wg(i)){const o=a&&t&&t.type_!==3&&!W9(t.assigned_,r)?a.concat(r):void 0,l=kR(e,i,o);if(Ode(n,r,l),wg(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(cm(i)&&!pN(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;kR(e,i),(!t||!t.scope_.parent_)&&CR(e,i)}}function CR(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zz(t,n)}function b9e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Sde(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=jz;n&&(i=[r],a=kx);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var jz={get(e,t){if(t===pc)return e;const n=rb(e);if(!W9(n,t))return y9e(e,n,t);const r=n[t];return e.finalized_||!cm(r)?r:r===L8(e.base_,t)?($8(e),e.copy_[t]=Z9(r,e)):r},has(e,t){return t in rb(e)},ownKeys(e){return Reflect.ownKeys(rb(e))},set(e,t,n){const r=Ede(rb(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=L8(rb(e),t),a=i==null?void 0:i[pc];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(f9e(n,i)&&(n!==void 0||W9(e.base_,t)))return!0;$8(e),G9(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return L8(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,$8(e),G9(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=rb(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){df(11)},getPrototypeOf(e){return AS(e.base_)},setPrototypeOf(){df(12)}},kx={};Tx(jz,(e,t)=>{kx[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});kx.deleteProperty=function(e,t){return kx.set.call(this,e,t,void 0)};kx.set=function(e,t,n){return jz.set.call(this,e[0],t,n,e[0])};function L8(e,t){const n=e[pc];return(n?rb(n):e)[t]}function y9e(e,t,n){var i;const r=Ede(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Ede(e,t){if(!(t in e))return;let n=AS(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=AS(n)}}function G9(e){e.modified_||(e.modified_=!0,e.parent_&&G9(e.parent_))}function $8(e){e.copy_||(e.copy_=Q9(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var v9e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(l=a,...c){return s.produce(l,d=>n.call(this,d,...c))}}typeof n!="function"&&df(6),r!==void 0&&typeof r!="function"&&df(7);let i;if(cm(t)){const a=UJ(this),s=Z9(t,void 0);let o=!0;try{i=n(s),o=!1}finally{o?Y9(a):q9(a)}return BJ(a,r),zJ(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===yde&&(i=void 0),this.autoFreeze_&&zz(i,!0),r){const a=[],s=[];Yb("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else df(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let r,i;return[this.produce(t,n,(s,o)=>{r=s,i=o}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){cm(e)||df(8),wg(e)&&(e=wde(e));const t=UJ(this),n=Z9(e,void 0);return n[pc].isManual_=!0,q9(t),n}finishDraft(e,t){const n=e&&e[pc];(!n||!n.isManual_)&&df(9);const{scope_:r}=n;return BJ(r,t),zJ(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Yb("Patches").applyPatches_;return wg(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Z9(e,t){const n=fN(e)?Yb("MapSet").proxyMap_(e,t):hN(e)?Yb("MapSet").proxySet_(e,t):b9e(e,t);return(t?t.scope_:Sde()).drafts_.push(n),n}function wde(e){return wg(e)||df(10,e),Tde(e)}function Tde(e){if(!cm(e)||pN(e))return e;const t=e[pc];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Q9(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Q9(e,!0);return Tx(n,(r,i)=>{Ode(n,r,Tde(i))}),t&&(t.finalized_=!1),n}var mc=new v9e,xde=mc.produce;mc.produceWithPatches.bind(mc);mc.setAutoFreeze.bind(mc);mc.setUseStrictShallowCopy.bind(mc);mc.applyPatches.bind(mc);mc.createDraft.bind(mc);mc.finishDraft.bind(mc);function O9e(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function S9e(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function E9e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var HJ=e=>Array.isArray(e)?e:[e];function w9e(e){const t=Array.isArray(e[0])?e[0]:e;return E9e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function T9e(e,t){const n=[],{length:r}=e;for(let i=0;i{n=E4(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function kde(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,s=0,o,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),O9e(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const d={...n,...l},{memoize:h,memoizeOptions:p=[],argsMemoize:b=Hz,argsMemoizeOptions:v=[],devModeChecks:S={}}=d,w=HJ(p),T=HJ(v),x=w9e(i),k=h(function(){return a++,c.apply(null,arguments)},...w),C=b(function(){s++;const _=T9e(x,arguments);return o=k.apply(null,_),o},...T);return Object.assign(C,{resultFunc:c,memoizedResultFunc:k,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>o,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:h,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var _9e=kde(Hz),A9e=Object.assign((e,t=_9e)=>{S9e(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((s,o,l)=>(s[n[l]]=o,s),{}))},{withTypes:()=>A9e});function Cde(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var R9e=Cde(),I9e=Cde,D9e=(...e)=>{const t=kde(...e),n=Object.assign((...r)=>{const i=t(...r),a=(s,...o)=>i(wg(s)?wde(s):s,...o);return Object.assign(a,i),a},{withTypes:()=>n});return n};D9e(Hz);var N9e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?xR:xR.apply(null,arguments)};function RS(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(lu(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>c9e(r)&&r.type===e,n}var _de=class j2 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,j2.prototype)}static get[Symbol.species](){return j2}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new j2(...t[0].concat(this)):new j2(...t.concat(this))}};function WJ(e){return cm(e)?xde(e,()=>{}):e}function QJ(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(lu(10));const r=n.insert(t,e);return e.set(t,r),r}function P9e(e){return typeof e=="boolean"}var M9e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new _de;return n&&(P9e(n)?s.push(R9e):s.push(I9e(n.extraArgument))),s},L9e="RTK_autoBatch",Ade=e=>t=>{setTimeout(t,e)},$9e=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ade(10),F9e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?$9e:e.type==="callback"?e.queueNotification:Ade(e.timeout),c=()=>{s=!1,a&&(a=!1,o.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const h=()=>i&&d(),p=r.subscribe(h);return o.add(d),()=>{p(),o.delete(d)}},dispatch(d){var h;try{return i=!((h=d==null?void 0:d.meta)!=null&&h[L9e]),a=!i,a&&(s||(s=!0,l(c))),r.dispatch(d)}finally{i=!0}}})},B9e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new _de(e);return r&&i.push(F9e(typeof r=="object"?r:void 0)),i},U9e=!0;function z9e(e){const t=M9e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof n=="function")o=n;else if(Bz(n))o=bde(n);else throw new Error(lu(1));let l;typeof r=="function"?l=r(t):l=t();let c=xR;i&&(c=N9e({trace:!U9e,...typeof i=="object"&&i}));const d=u9e(...l),h=B9e(d);let p=typeof s=="function"?s(h):h();const b=c(...p);return Uz(o,a,b)}function Rde(e){const t={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(lu(28));if(o in t)throw new Error(lu(29));return t[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function j9e(e){return typeof e=="function"}function H9e(e,t){let[n,r,i]=Rde(t),a;if(j9e(e))a=()=>WJ(e());else{const o=WJ(e);a=()=>o}function s(o=a(),l){let c=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,h)=>{if(h)if(wg(d)){const b=h(d,l);return b===void 0?d:b}else{if(cm(d))return xde(d,p=>h(p,l));{const p=h(d,l);if(p===void 0){if(d===null)return d;throw new Error(lu(9))}return p}}return d},o)}return s.getInitialState=a,s}var V9e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",W9e=(e=21)=>{let t="",n=e;for(;n--;)t+=V9e[Math.random()*64|0];return t},Q9e=Symbol.for("rtk-slice-createasyncthunk");function Y9e(e,t){return`${e}/${t}`}function q9e({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Q9e];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(lu(11));typeof process<"u";const o=(typeof i.reducers=="function"?i.reducers(Z9e()):i.reducers)||{},l=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(k,C){const I=typeof k=="string"?k:k.type;if(!I)throw new Error(lu(12));if(I in c.sliceCaseReducersByType)throw new Error(lu(13));return c.sliceCaseReducersByType[I]=C,d},addMatcher(k,C){return c.sliceMatchers.push({matcher:k,reducer:C}),d},exposeAction(k,C){return c.actionCreators[k]=C,d},exposeCaseReducer(k,C){return c.sliceCaseReducersByName[k]=C,d}};l.forEach(k=>{const C=o[k],I={reducerName:k,type:Y9e(a,k),createNotation:typeof i.reducers=="function"};K9e(C)?e$e(I,C,d,t):X9e(I,C,d)});function h(){const[k={},C=[],I=void 0]=typeof i.extraReducers=="function"?Rde(i.extraReducers):[i.extraReducers],_={...k,...c.sliceCaseReducersByType};return H9e(i.initialState,A=>{for(let U in _)A.addCase(U,_[U]);for(let U of c.sliceMatchers)A.addMatcher(U.matcher,U.reducer);for(let U of C)A.addMatcher(U.matcher,U.reducer);I&&A.addDefaultCase(I)})}const p=k=>k,b=new Map;let v;function S(k,C){return v||(v=h()),v(k,C)}function w(){return v||(v=h()),v.getInitialState()}function T(k,C=!1){function I(A){let U=A[k];return typeof U>"u"&&C&&(U=w()),U}function _(A=p){const U=QJ(b,C,{insert:()=>new WeakMap});return QJ(U,A,{insert:()=>{const F={};for(const[P,V]of Object.entries(i.selectors??{}))F[P]=G9e(V,A,w,C);return F}})}return{reducerPath:k,getSelectors:_,get selectors(){return _(I)},selectSlice:I}}const x={name:a,reducer:S,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:w,...T(s),injectInto(k,{reducerPath:C,...I}={}){const _=C??s;return k.inject({reducerPath:_,reducer:S},I),{...x,...T(_,!0)}}};return x}}function G9e(e,t,n,r){function i(a,...s){let o=t(a);return typeof o>"u"&&r&&(o=n()),e(o,...s)}return i.unwrapped=e,i}var uE=q9e();function Z9e(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function X9e({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!J9e(r))throw new Error(lu(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?RS(e,s):RS(e))}function K9e(e){return e._reducerDefinitionType==="asyncThunk"}function J9e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function e$e({type:e,reducerName:t},n,r,i){if(!i)throw new Error(lu(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:c,options:d}=n,h=i(e,a,d);r.exposeAction(t,h),s&&r.addCase(h.fulfilled,s),o&&r.addCase(h.pending,o),l&&r.addCase(h.rejected,l),c&&r.addMatcher(h.settled,c),r.exposeCaseReducer(t,{fulfilled:s||w4,pending:o||w4,rejected:l||w4,settled:c||w4})}function w4(){}var t$e=(e,t)=>{if(typeof e!="function")throw new Error(lu(32))},Vz="listenerMiddleware",n$e=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=RS(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(lu(21));return t$e(a),{predicate:i,type:t,effect:a}},r$e=Object.assign(e=>{const{type:t,predicate:n,effect:r}=n$e(e);return{id:W9e(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(lu(22))}}},{withTypes:()=>r$e}),i$e=Object.assign(RS(`${Vz}/add`),{withTypes:()=>i$e});RS(`${Vz}/removeAll`);var a$e=Object.assign(RS(`${Vz}/remove`),{withTypes:()=>a$e});function lu(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const s$e={theme:"default"},Ide=uE({name:"editor",initialState:s$e,reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:o$e}=Ide.actions,Dde=e=>e.config,l$e=Ide.reducer;function Nde(e,t){return function(){return e.apply(t,arguments)}}const{toString:u$e}=Object.prototype,{getPrototypeOf:Wz}=Object,mN=(e=>t=>{const n=u$e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ep=e=>(e=e.toLowerCase(),t=>mN(t)===e),gN=e=>t=>typeof t===e,{isArray:cE}=Array,Cx=gN("undefined");function c$e(e){return e!==null&&!Cx(e)&&e.constructor!==null&&!Cx(e.constructor)&&pd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pde=ep("ArrayBuffer");function d$e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pde(e.buffer),t}const f$e=gN("string"),pd=gN("function"),Mde=gN("number"),bN=e=>e!==null&&typeof e=="object",h$e=e=>e===!0||e===!1,G3=e=>{if(mN(e)!=="object")return!1;const t=Wz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},p$e=ep("Date"),m$e=ep("File"),g$e=ep("Blob"),b$e=ep("FileList"),y$e=e=>bN(e)&&pd(e.pipe),v$e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pd(e.append)&&((t=mN(e))==="formdata"||t==="object"&&pd(e.toString)&&e.toString()==="[object FormData]"))},O$e=ep("URLSearchParams"),S$e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xk(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),cE(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const $de=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fde=e=>!Cx(e)&&e!==$de;function X9(){const{caseless:e}=Fde(this)&&this||{},t={},n=(r,i)=>{const a=e&&Lde(t,i)||i;G3(t[a])&&G3(r)?t[a]=X9(t[a],r):G3(r)?t[a]=X9({},r):cE(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(Xk(t,(i,a)=>{n&&pd(i)?e[a]=Nde(i,n):e[a]=i},{allOwnKeys:r}),e),w$e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),T$e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},x$e=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&Wz(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},k$e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},C$e=e=>{if(!e)return null;if(cE(e))return e;let t=e.length;if(!Mde(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_$e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wz(Uint8Array)),A$e=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},R$e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},I$e=ep("HTMLFormElement"),D$e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),YJ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),N$e=ep("RegExp"),Bde=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Xk(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},P$e=e=>{Bde(e,(t,n)=>{if(pd(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(pd(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},M$e=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return cE(e)?r(e):r(String(e).split(t)),n},L$e=()=>{},$$e=(e,t)=>(e=+e,Number.isFinite(e)?e:t),F8="abcdefghijklmnopqrstuvwxyz",qJ="0123456789",Ude={DIGIT:qJ,ALPHA:F8,ALPHA_DIGIT:F8+F8.toUpperCase()+qJ},F$e=(e=16,t=Ude.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function B$e(e){return!!(e&&pd(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const U$e=e=>{const t=new Array(10),n=(r,i)=>{if(bN(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=cE(r)?[]:{};return Xk(r,(s,o)=>{const l=n(s,i+1);!Cx(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},z$e=ep("AsyncFunction"),j$e=e=>e&&(bN(e)||pd(e))&&pd(e.then)&&pd(e.catch),Ct={isArray:cE,isArrayBuffer:Pde,isBuffer:c$e,isFormData:v$e,isArrayBufferView:d$e,isString:f$e,isNumber:Mde,isBoolean:h$e,isObject:bN,isPlainObject:G3,isUndefined:Cx,isDate:p$e,isFile:m$e,isBlob:g$e,isRegExp:N$e,isFunction:pd,isStream:y$e,isURLSearchParams:O$e,isTypedArray:_$e,isFileList:b$e,forEach:Xk,merge:X9,extend:E$e,trim:S$e,stripBOM:w$e,inherits:T$e,toFlatObject:x$e,kindOf:mN,kindOfTest:ep,endsWith:k$e,toArray:C$e,forEachEntry:A$e,matchAll:R$e,isHTMLForm:I$e,hasOwnProperty:YJ,hasOwnProp:YJ,reduceDescriptors:Bde,freezeMethods:P$e,toObjectSet:M$e,toCamelCase:D$e,noop:L$e,toFiniteNumber:$$e,findKey:Lde,global:$de,isContextDefined:Fde,ALPHABET:Ude,generateString:F$e,isSpecCompliantForm:B$e,toJSONObject:U$e,isAsyncFn:z$e,isThenable:j$e};function qr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Ct.inherits(qr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ct.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const zde=qr.prototype,jde={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jde[e]={value:e}});Object.defineProperties(qr,jde);Object.defineProperty(zde,"isAxiosError",{value:!0});qr.from=(e,t,n,r,i,a)=>{const s=Object.create(zde);return Ct.toFlatObject(e,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),qr.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const H$e=null;function K9(e){return Ct.isPlainObject(e)||Ct.isArray(e)}function Hde(e){return Ct.endsWith(e,"[]")?e.slice(0,-2):e}function GJ(e,t,n){return e?e.concat(t).map(function(i,a){return i=Hde(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function V$e(e){return Ct.isArray(e)&&!e.some(K9)}const W$e=Ct.toFlatObject(Ct,{},null,function(t){return/^is[A-Z]/.test(t)});function yN(e,t,n){if(!Ct.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ct.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!Ct.isUndefined(w[S])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ct.isSpecCompliantForm(t);if(!Ct.isFunction(i))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(Ct.isDate(v))return v.toISOString();if(!l&&Ct.isBlob(v))throw new qr("Blob is not supported. Use a Buffer instead.");return Ct.isArrayBuffer(v)||Ct.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,S,w){let T=v;if(v&&!w&&typeof v=="object"){if(Ct.endsWith(S,"{}"))S=r?S:S.slice(0,-2),v=JSON.stringify(v);else if(Ct.isArray(v)&&V$e(v)||(Ct.isFileList(v)||Ct.endsWith(S,"[]"))&&(T=Ct.toArray(v)))return S=Hde(S),T.forEach(function(k,C){!(Ct.isUndefined(k)||k===null)&&t.append(s===!0?GJ([S],C,a):s===null?S:S+"[]",c(k))}),!1}return K9(v)?!0:(t.append(GJ(w,S,a),c(v)),!1)}const h=[],p=Object.assign(W$e,{defaultVisitor:d,convertValue:c,isVisitable:K9});function b(v,S){if(!Ct.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(v),Ct.forEach(v,function(T,x){(!(Ct.isUndefined(T)||T===null)&&i.call(t,T,Ct.isString(x)?x.trim():x,S,p))===!0&&b(T,S?S.concat(x):[x])}),h.pop()}}if(!Ct.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ZJ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qz(e,t){this._pairs=[],e&&yN(e,this,t)}const Vde=Qz.prototype;Vde.append=function(t,n){this._pairs.push([t,n])};Vde.toString=function(t){const n=t?function(r){return t.call(this,r,ZJ)}:ZJ;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Q$e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wde(e,t,n){if(!t)return e;const r=n&&n.encode||Q$e,i=n&&n.serialize;let a;if(i?a=i(t,n):a=Ct.isURLSearchParams(t)?t.toString():new Qz(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class XJ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ct.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Qde={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Y$e=typeof URLSearchParams<"u"?URLSearchParams:Qz,q$e=typeof FormData<"u"?FormData:null,G$e=typeof Blob<"u"?Blob:null,Z$e={isBrowser:!0,classes:{URLSearchParams:Y$e,FormData:q$e,Blob:G$e},protocols:["http","https","file","blob","url","data"]},Yde=typeof window<"u"&&typeof document<"u",X$e=(e=>Yde&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),K$e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",J$e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yde,hasStandardBrowserEnv:X$e,hasStandardBrowserWebWorkerEnv:K$e},Symbol.toStringTag,{value:"Module"})),Rh={...J$e,...Z$e};function eFe(e,t){return yN(e,new Rh.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Rh.isNode&&Ct.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function tFe(e){return Ct.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nFe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&Ct.isArray(i)?i.length:s,l?(Ct.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!Ct.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&Ct.isArray(i[s])&&(i[s]=nFe(i[s])),!o)}if(Ct.isFormData(e)&&Ct.isFunction(e.entries)){const n={};return Ct.forEachEntry(e,(r,i)=>{t(tFe(r),i,n,0)}),n}return null}function rFe(e,t,n){if(Ct.isString(e))try{return(t||JSON.parse)(e),Ct.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Yz={transitional:Qde,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Ct.isObject(t);if(a&&Ct.isHTMLForm(t)&&(t=new FormData(t)),Ct.isFormData(t))return i?JSON.stringify(qde(t)):t;if(Ct.isArrayBuffer(t)||Ct.isBuffer(t)||Ct.isStream(t)||Ct.isFile(t)||Ct.isBlob(t))return t;if(Ct.isArrayBufferView(t))return t.buffer;if(Ct.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return eFe(t,this.formSerializer).toString();if((o=Ct.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return yN(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),rFe(t)):t}],transformResponse:[function(t){const n=this.transitional||Yz.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&Ct.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?qr.from(o,qr.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rh.classes.FormData,Blob:Rh.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ct.forEach(["delete","get","head","post","put","patch"],e=>{Yz.headers[e]={}});const qz=Yz,iFe=Ct.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),aFe=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&iFe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},KJ=Symbol("internals");function c2(e){return e&&String(e).trim().toLowerCase()}function Z3(e){return e===!1||e==null?e:Ct.isArray(e)?e.map(Z3):String(e)}function sFe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const oFe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function B8(e,t,n,r,i){if(Ct.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ct.isString(t)){if(Ct.isString(r))return t.indexOf(r)!==-1;if(Ct.isRegExp(r))return r.test(t)}}function lFe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uFe(e,t){const n=Ct.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}class vN{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,c){const d=c2(l);if(!d)throw new Error("header name must be a non-empty string");const h=Ct.findKey(i,d);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||l]=Z3(o))}const s=(o,l)=>Ct.forEach(o,(c,d)=>a(c,d,l));return Ct.isPlainObject(t)||t instanceof this.constructor?s(t,n):Ct.isString(t)&&(t=t.trim())&&!oFe(t)?s(aFe(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=c2(t),t){const r=Ct.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return sFe(i);if(Ct.isFunction(n))return n.call(this,i,r);if(Ct.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=c2(t),t){const r=Ct.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||B8(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=c2(s),s){const o=Ct.findKey(r,s);o&&(!n||B8(r,r[o],o,n))&&(delete r[o],i=!0)}}return Ct.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||B8(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Ct.forEach(this,(i,a)=>{const s=Ct.findKey(r,a);if(s){n[s]=Z3(i),delete n[a];return}const o=t?lFe(a):String(a).trim();o!==a&&delete n[a],n[o]=Z3(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ct.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ct.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[KJ]=this[KJ]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=c2(s);r[o]||(uFe(i,s),r[o]=!0)}return Ct.isArray(t)?t.forEach(a):a(t),this}}vN.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ct.reduceDescriptors(vN.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ct.freezeMethods(vN);const Kp=vN;function U8(e,t){const n=this||qz,r=t||n,i=Kp.from(r.headers);let a=r.data;return Ct.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Gde(e){return!!(e&&e.__CANCEL__)}function Kk(e,t,n){qr.call(this,e??"canceled",qr.ERR_CANCELED,t,n),this.name="CanceledError"}Ct.inherits(Kk,qr,{__CANCEL__:!0});function cFe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new qr("Request failed with status code "+n.status,[qr.ERR_BAD_REQUEST,qr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const dFe=Rh.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];Ct.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Ct.isString(r)&&s.push("path="+r),Ct.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fFe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hFe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zde(e,t){return e&&!fFe(t)?hFe(e,t):t}const pFe=Rh.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const o=Ct.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function mFe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gFe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[a];s||(s=c),n[i]=l,r[i]=c;let h=a,p=0;for(;h!==i;)p+=n[h++],h=h%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-s{const a=i.loaded,s=i.lengthComputable?i.total:void 0,o=a-n,l=r(o),c=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&c?(s-a)/l:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const bFe=typeof XMLHttpRequest<"u",yFe=bFe&&function(e){return new Promise(function(n,r){let i=e.data;const a=Kp.from(e.headers).normalize();let{responseType:s,withXSRFToken:o}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let d;if(Ct.isFormData(i)){if(Rh.hasStandardBrowserEnv||Rh.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((d=a.getContentType())!==!1){const[S,...w]=d?d.split(";").map(T=>T.trim()).filter(Boolean):[];a.setContentType([S||"multipart/form-data",...w].join("; "))}}let h=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(S+":"+w))}const p=Zde(e.baseURL,e.url);h.open(e.method.toUpperCase(),Wde(p,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function b(){if(!h)return;const S=Kp.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};cFe(function(k){n(k),c()},function(k){r(k),c()},T),h=null}if("onloadend"in h?h.onloadend=b:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(b)},h.onabort=function(){h&&(r(new qr("Request aborted",qr.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new qr("Network Error",qr.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const T=e.transitional||Qde;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new qr(w,T.clarifyTimeoutError?qr.ETIMEDOUT:qr.ECONNABORTED,e,h)),h=null},Rh.hasStandardBrowserEnv&&(o&&Ct.isFunction(o)&&(o=o(e)),o||o!==!1&&pFe(p))){const S=e.xsrfHeaderName&&e.xsrfCookieName&&dFe.read(e.xsrfCookieName);S&&a.set(e.xsrfHeaderName,S)}i===void 0&&a.setContentType(null),"setRequestHeader"in h&&Ct.forEach(a.toJSON(),function(w,T){h.setRequestHeader(T,w)}),Ct.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),s&&s!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",JJ(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",JJ(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=S=>{h&&(r(!S||S.type?new Kk(null,e,h):S),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=mFe(p);if(v&&Rh.protocols.indexOf(v)===-1){r(new qr("Unsupported protocol "+v+":",qr.ERR_BAD_REQUEST,e));return}h.send(i||null)})},J9={http:H$e,xhr:yFe};Ct.forEach(J9,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const eee=e=>`- ${e}`,vFe=e=>Ct.isFunction(e)||e===null||e===!1,Xde={getAdapter:e=>{e=Ct.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since : -`+a.map(eee).join(` -`):" "+eee(a[0]):"as no adapter specified";throw new qr("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:J9};function z8(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kk(null,e)}function tee(e){return z8(e),e.headers=Kp.from(e.headers),e.data=U8.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xde.getAdapter(e.adapter||qz.adapter)(e).then(function(r){return z8(e),r.data=U8.call(e,e.transformResponse,r),r.headers=Kp.from(r.headers),r},function(r){return Gde(r)||(z8(e),r&&r.response&&(r.response.data=U8.call(e,e.transformResponse,r.response),r.response.headers=Kp.from(r.response.headers))),Promise.reject(r)})}const nee=e=>e instanceof Kp?e.toJSON():e;function IS(e,t){t=t||{};const n={};function r(c,d,h){return Ct.isPlainObject(c)&&Ct.isPlainObject(d)?Ct.merge.call({caseless:h},c,d):Ct.isPlainObject(d)?Ct.merge({},d):Ct.isArray(d)?d.slice():d}function i(c,d,h){if(Ct.isUndefined(d)){if(!Ct.isUndefined(c))return r(void 0,c,h)}else return r(c,d,h)}function a(c,d){if(!Ct.isUndefined(d))return r(void 0,d)}function s(c,d){if(Ct.isUndefined(d)){if(!Ct.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function o(c,d,h){if(h in t)return r(c,d);if(h in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(c,d)=>i(nee(c),nee(d),!0)};return Ct.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=l[d]||i,p=h(e[d],t[d],d);Ct.isUndefined(p)&&h!==o||(n[d]=p)}),n}const Kde="1.6.7",Gz={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gz[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ree={};Gz.transitional=function(t,n,r){function i(a,s){return"[Axios v"+Kde+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new qr(i(s," has been removed"+(n?" in "+n:"")),qr.ERR_DEPRECATED);return n&&!ree[s]&&(ree[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};function OFe(e,t,n){if(typeof e!="object")throw new qr("options must be an object",qr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new qr("option "+a+" must be "+l,qr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new qr("Unknown option "+a,qr.ERR_BAD_OPTION)}}const e$={assertOptions:OFe,validators:Gz},p0=e$.validators;class _R{constructor(t){this.defaults=t,this.interceptors={request:new XJ,response:new XJ}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=IS(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&e$.assertOptions(r,{silentJSONParsing:p0.transitional(p0.boolean),forcedJSONParsing:p0.transitional(p0.boolean),clarifyTimeoutError:p0.transitional(p0.boolean)},!1),i!=null&&(Ct.isFunction(i)?n.paramsSerializer={serialize:i}:e$.assertOptions(i,{encode:p0.function,serialize:p0.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Ct.merge(a.common,a[n.method]);a&&Ct.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),n.headers=Kp.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const c=[];this.interceptors.response.forEach(function(S){c.push(S.fulfilled,S.rejected)});let d,h=0,p;if(!l){const v=[tee.bind(this),void 0];for(v.unshift.apply(v,o),v.push.apply(v,c),p=v.length,d=Promise.resolve(n);h{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new Kk(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Zz(function(i){t=i}),cancel:t}}}const SFe=Zz;function EFe(e){return function(n){return e.apply(null,n)}}function wFe(e){return Ct.isObject(e)&&e.isAxiosError===!0}const t$={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(t$).forEach(([e,t])=>{t$[t]=e});const TFe=t$;function Jde(e){const t=new X3(e),n=Nde(X3.prototype.request,t);return Ct.extend(n,X3.prototype,t,{allOwnKeys:!0}),Ct.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Jde(IS(e,i))},n}const Rr=Jde(qz);Rr.Axios=X3;Rr.CanceledError=Kk;Rr.CancelToken=SFe;Rr.isCancel=Gde;Rr.VERSION=Kde;Rr.toFormData=yN;Rr.AxiosError=qr;Rr.Cancel=Rr.CanceledError;Rr.all=function(t){return Promise.all(t)};Rr.spread=EFe;Rr.isAxiosError=wFe;Rr.mergeConfig=IS;Rr.AxiosHeaders=Kp;Rr.formToJSON=e=>qde(Ct.isHTMLForm(e)?new FormData(e):e);Rr.getAdapter=Xde.getAdapter;Rr.HttpStatusCode=TFe;Rr.default=Rr;const xFe={mode:"both",shareRole:null,doc:null,client:null,cmView:null},efe=uE({name:"editor",initialState:xFe,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:n$,setDoc:AR,setClient:RR,setShareRole:kFe,setCmView:CFe}=efe.actions,dE=e=>e.editor,_Fe=efe.reducer,AFe={data:null},tfe=uE({name:"user",initialState:AFe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:r$}=tfe.actions,Xz=e=>e.user,RFe=tfe.reducer;var fE=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},DS=typeof window>"u"||"Deno"in window;function Gc(){}function IFe(e,t){return typeof e=="function"?e(t):e}function i$(e){return typeof e=="number"&&e>=0&&e!==1/0}function nfe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function iee(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==Kz(s,t.options))return!1}else if(!_x(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||typeof i<"u"&&i!==t.state.fetchStatus||a&&!a(t))}function aee(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(qb(t.options.mutationKey)!==qb(a))return!1}else if(!_x(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Kz(e,t){return((t==null?void 0:t.queryKeyHashFn)||qb)(e)}function qb(e){return JSON.stringify(e,(t,n)=>a$(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function _x(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!_x(e[n],t[n])):!1}function rfe(e,t){if(e===t)return e;const n=see(e)&&see(t);if(n||a$(e)&&a$(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let c=0;c"u")return!0;const n=t.prototype;return!(!oee(n)||!n.hasOwnProperty("isPrototypeOf"))}function oee(e){return Object.prototype.toString.call(e)==="[object Object]"}function DFe(e){return new Promise(t=>{setTimeout(t,e)})}function s$(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?rfe(e,t):t}function NFe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function PFe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tb,M0,eS,Qse,MFe=(Qse=class extends fE{constructor(){super();Tn(this,Tb,void 0);Tn(this,M0,void 0);Tn(this,eS,void 0);sn(this,eS,t=>{if(!DS&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Fe(this,M0)||this.setEventListener(Fe(this,eS))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,M0))==null||t.call(this),sn(this,M0,void 0))}setEventListener(t){var n;sn(this,eS,t),(n=Fe(this,M0))==null||n.call(this),sn(this,M0,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Fe(this,Tb)!==t&&(sn(this,Tb,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof Fe(this,Tb)=="boolean"?Fe(this,Tb):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tb=new WeakMap,M0=new WeakMap,eS=new WeakMap,Qse),DR=new MFe,tS,L0,nS,Yse,LFe=(Yse=class extends fE{constructor(){super();Tn(this,tS,!0);Tn(this,L0,void 0);Tn(this,nS,void 0);sn(this,nS,t=>{if(!DS&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Fe(this,L0)||this.setEventListener(Fe(this,nS))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,L0))==null||t.call(this),sn(this,L0,void 0))}setEventListener(t){var n;sn(this,nS,t),(n=Fe(this,L0))==null||n.call(this),sn(this,L0,t(this.setOnline.bind(this)))}setOnline(t){Fe(this,tS)!==t&&(sn(this,tS,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Fe(this,tS)}},tS=new WeakMap,L0=new WeakMap,nS=new WeakMap,Yse),NR=new LFe;function $Fe(e){return Math.min(1e3*2**e,3e4)}function ON(e){return(e??"online")==="online"?NR.isOnline():!0}var ife=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function j8(e){return e instanceof ife}function afe(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((w,T)=>{a=w,s=T}),l=w=>{var T;r||(b(new ife(w)),(T=e.abort)==null||T.call(e))},c=()=>{t=!0},d=()=>{t=!1},h=()=>!DR.isFocused()||e.networkMode!=="always"&&!NR.isOnline(),p=w=>{var T;r||(r=!0,(T=e.onSuccess)==null||T.call(e,w),i==null||i(),a(w))},b=w=>{var T;r||(r=!0,(T=e.onError)==null||T.call(e,w),i==null||i(),s(w))},v=()=>new Promise(w=>{var T;i=x=>{const k=r||!h();return k&&w(x),k},(T=e.onPause)==null||T.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),S=()=>{if(r)return;let w;try{w=e.fn()}catch(T){w=Promise.reject(T)}Promise.resolve(w).then(p).catch(T=>{var _;if(r)return;const x=e.retry??(DS?0:3),k=e.retryDelay??$Fe,C=typeof k=="function"?k(n,T):k,I=x===!0||typeof x=="number"&&n{if(h())return v()}).then(()=>{t?b(T):S()})})};return ON(e.networkMode)?S():v().then(S),{promise:o,cancel:l,continue:()=>(i==null?void 0:i())?o:Promise.resolve(),cancelRetry:c,continueRetry:d}}function FFe(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const a=p=>{i=p},s=p=>{let b;t++;try{b=p()}finally{t--,t||c()}return b},o=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...b)=>{o(()=>{p(...b)})},c=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(b=>{n(b)})})})};return{batch:s,batchCalls:l,schedule:o,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:a}}var ps=FFe(),xb,qse,sfe=(qse=class{constructor(){Tn(this,xb,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),i$(this.gcTime)&&sn(this,xb,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(DS?1/0:5*60*1e3))}clearGcTimeout(){Fe(this,xb)&&(clearTimeout(Fe(this,xb)),sn(this,xb,void 0))}},xb=new WeakMap,qse),rS,iS,Wc,$0,Qc,Is,yk,kb,aS,K3,Jd,Mp,Gse,BFe=(Gse=class extends sfe{constructor(t){super();Tn(this,aS);Tn(this,Jd);Tn(this,rS,void 0);Tn(this,iS,void 0);Tn(this,Wc,void 0);Tn(this,$0,void 0);Tn(this,Qc,void 0);Tn(this,Is,void 0);Tn(this,yk,void 0);Tn(this,kb,void 0);sn(this,kb,!1),sn(this,yk,t.defaultOptions),fr(this,aS,K3).call(this,t.options),sn(this,Is,[]),sn(this,Wc,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,sn(this,rS,t.state||UFe(this.options)),this.state=Fe(this,rS),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Fe(this,Is).length&&this.state.fetchStatus==="idle"&&Fe(this,Wc).remove(this)}setData(t,n){const r=s$(this.state.data,t,this.options);return fr(this,Jd,Mp).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){fr(this,Jd,Mp).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=Fe(this,$0);return(r=Fe(this,Qc))==null||r.cancel(t),n?n.then(Gc).catch(Gc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Fe(this,rS))}isActive(){return Fe(this,Is).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||Fe(this,Is).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!nfe(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=Fe(this,Is).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Qc))==null||n.continue()}onOnline(){var n;const t=Fe(this,Is).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Qc))==null||n.continue()}addObserver(t){Fe(this,Is).includes(t)||(Fe(this,Is).push(t),this.clearGcTimeout(),Fe(this,Wc).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){Fe(this,Is).includes(t)&&(sn(this,Is,Fe(this,Is).filter(n=>n!==t)),Fe(this,Is).length||(Fe(this,Qc)&&(Fe(this,kb)?Fe(this,Qc).cancel({revert:!0}):Fe(this,Qc).cancelRetry()),this.scheduleGc()),Fe(this,Wc).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return Fe(this,Is).length}invalidate(){this.state.isInvalidated||fr(this,Jd,Mp).call(this,{type:"invalidate"})}fetch(t,n){var c,d,h,p;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Fe(this,$0))return(c=Fe(this,Qc))==null||c.continueRetry(),Fe(this,$0)}if(t&&fr(this,aS,K3).call(this,t),!this.options.queryFn){const b=Fe(this,Is).find(v=>v.options.queryFn);b&&fr(this,aS,K3).call(this,b.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},a=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(sn(this,kb,!0),r.signal)})};a(i);const s=()=>this.options.queryFn?(sn(this,kb,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};a(o),(d=this.options.behavior)==null||d.onFetch(o,this),sn(this,iS,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=o.fetchOptions)==null?void 0:h.meta))&&fr(this,Jd,Mp).call(this,{type:"fetch",meta:(p=o.fetchOptions)==null?void 0:p.meta});const l=b=>{var v,S,w,T;j8(b)&&b.silent||fr(this,Jd,Mp).call(this,{type:"error",error:b}),j8(b)||((S=(v=Fe(this,Wc).config).onError)==null||S.call(v,b,this),(T=(w=Fe(this,Wc).config).onSettled)==null||T.call(w,this.state.data,b,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return sn(this,Qc,afe({fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:b=>{var v,S,w,T;if(typeof b>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(b),(S=(v=Fe(this,Wc).config).onSuccess)==null||S.call(v,b,this),(T=(w=Fe(this,Wc).config).onSettled)==null||T.call(w,b,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(b,v)=>{fr(this,Jd,Mp).call(this,{type:"failed",failureCount:b,error:v})},onPause:()=>{fr(this,Jd,Mp).call(this,{type:"pause"})},onContinue:()=>{fr(this,Jd,Mp).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode})),sn(this,$0,Fe(this,Qc).promise),Fe(this,$0)}},rS=new WeakMap,iS=new WeakMap,Wc=new WeakMap,$0=new WeakMap,Qc=new WeakMap,Is=new WeakMap,yk=new WeakMap,kb=new WeakMap,aS=new WeakSet,K3=function(t){this.options={...Fe(this,yk),...t},this.updateGcTime(this.options.gcTime)},Jd=new WeakSet,Mp=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:ON(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return j8(i)&&i.revert&&Fe(this,iS)?{...Fe(this,iS),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ps.batch(()=>{Fe(this,Is).forEach(r=>{r.onQueryUpdate()}),Fe(this,Wc).notify({query:this,type:"updated",action:t})})},Gse);function UFe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var bh,Zse,ofe=(Zse=class extends fE{constructor(t={}){super();Tn(this,bh,void 0);this.config=t,sn(this,bh,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??Kz(i,n);let s=this.get(a);return s||(s=new BFe({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Fe(this,bh).has(t.queryHash)||(Fe(this,bh).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Fe(this,bh).get(t.queryHash);n&&(t.destroy(),n===t&&Fe(this,bh).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ps.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Fe(this,bh).get(t)}getAll(){return[...Fe(this,bh).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>iee(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>iee(t,r)):n}notify(t){ps.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ps.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ps.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bh=new WeakMap,Zse),yh,vk,Vu,sS,vh,O0,Xse,zFe=(Xse=class extends sfe{constructor(t){super();Tn(this,vh);Tn(this,yh,void 0);Tn(this,vk,void 0);Tn(this,Vu,void 0);Tn(this,sS,void 0);this.mutationId=t.mutationId,sn(this,vk,t.defaultOptions),sn(this,Vu,t.mutationCache),sn(this,yh,[]),this.state=t.state||lfe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...Fe(this,vk),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Fe(this,yh).includes(t)||(Fe(this,yh).push(t),this.clearGcTimeout(),Fe(this,Vu).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){sn(this,yh,Fe(this,yh).filter(n=>n!==t)),this.scheduleGc(),Fe(this,Vu).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Fe(this,yh).length||(this.state.status==="pending"?this.scheduleGc():Fe(this,Vu).remove(this))}continue(){var t;return((t=Fe(this,sS))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,c,d,h,p,b,v,S,w,T,x,k,C,I,_,A;const n=()=>(sn(this,sS,afe({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(U,F)=>{fr(this,vh,O0).call(this,{type:"failed",failureCount:U,error:F})},onPause:()=>{fr(this,vh,O0).call(this,{type:"pause"})},onContinue:()=>{fr(this,vh,O0).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Fe(this,sS).promise),r=this.state.status==="pending";try{if(!r){fr(this,vh,O0).call(this,{type:"pending",variables:t}),await((a=(i=Fe(this,Vu).config).onMutate)==null?void 0:a.call(i,t,this));const F=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));F!==this.state.context&&fr(this,vh,O0).call(this,{type:"pending",context:F,variables:t})}const U=await n();return await((c=(l=Fe(this,Vu).config).onSuccess)==null?void 0:c.call(l,U,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,U,t,this.state.context)),await((b=(p=Fe(this,Vu).config).onSettled)==null?void 0:b.call(p,U,null,this.state.variables,this.state.context,this)),await((S=(v=this.options).onSettled)==null?void 0:S.call(v,U,null,t,this.state.context)),fr(this,vh,O0).call(this,{type:"success",data:U}),U}catch(U){try{throw await((T=(w=Fe(this,Vu).config).onError)==null?void 0:T.call(w,U,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,U,t,this.state.context)),await((I=(C=Fe(this,Vu).config).onSettled)==null?void 0:I.call(C,void 0,U,this.state.variables,this.state.context,this)),await((A=(_=this.options).onSettled)==null?void 0:A.call(_,void 0,U,t,this.state.context)),U}finally{fr(this,vh,O0).call(this,{type:"error",error:U})}}}},yh=new WeakMap,vk=new WeakMap,Vu=new WeakMap,sS=new WeakMap,vh=new WeakSet,O0=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ON(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ps.batch(()=>{Fe(this,yh).forEach(r=>{r.onMutationUpdate(t)}),Fe(this,Vu).notify({mutation:this,type:"updated",action:t})})},Xse);function lfe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yc,Ok,Cb,Kse,jFe=(Kse=class extends fE{constructor(t={}){super();Tn(this,Yc,void 0);Tn(this,Ok,void 0);Tn(this,Cb,void 0);this.config=t,sn(this,Yc,[]),sn(this,Ok,0)}build(t,n,r){const i=new zFe({mutationCache:this,mutationId:++WA(this,Ok)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Fe(this,Yc).push(t),this.notify({type:"added",mutation:t})}remove(t){sn(this,Yc,Fe(this,Yc).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){ps.batch(()=>{Fe(this,Yc).forEach(t=>{this.remove(t)})})}getAll(){return Fe(this,Yc)}find(t){const n={exact:!0,...t};return Fe(this,Yc).find(r=>aee(n,r))}findAll(t={}){return Fe(this,Yc).filter(n=>aee(t,n))}notify(t){ps.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return sn(this,Cb,(Fe(this,Cb)??Promise.resolve()).then(()=>{const t=Fe(this,Yc).filter(n=>n.state.isPaused);return ps.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Gc)),Promise.resolve()))}).then(()=>{sn(this,Cb,void 0)})),Fe(this,Cb)}},Yc=new WeakMap,Ok=new WeakMap,Cb=new WeakMap,Kse);function o$(e){return{onFetch:(t,n)=>{const r=async()=>{var v,S,w,T,x;const i=t.options,a=(w=(S=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:S.fetchMore)==null?void 0:w.direction,s=((T=t.state.data)==null?void 0:T.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const d=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},h=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(k,C,I)=>{if(c)return Promise.reject();if(C==null&&k.pages.length)return Promise.resolve(k);const _={queryKey:t.queryKey,pageParam:C,direction:I?"backward":"forward",meta:t.options.meta};d(_);const A=await h(_),{maxPages:U}=t.options,F=I?PFe:NFe;return{pages:F(k.pages,A,U),pageParams:F(k.pageParams,C,U)}};let b;if(a&&s.length){const k=a==="backward",C=k?ufe:l$,I={pages:s,pageParams:o},_=C(i,I);b=await p(I,_,k)}else{b=await p(l,o[0]??i.initialPageParam);const k=e??s.length;for(let C=1;C{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function l$(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function ufe(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function HFe(e,t){return t?l$(e,t)!=null:!1}function VFe(e,t){return!t||!e.getPreviousPageParam?!1:ufe(e,t)!=null}var us,F0,B0,oS,lS,U0,uS,cS,Jse,WFe=(Jse=class{constructor(e={}){Tn(this,us,void 0);Tn(this,F0,void 0);Tn(this,B0,void 0);Tn(this,oS,void 0);Tn(this,lS,void 0);Tn(this,U0,void 0);Tn(this,uS,void 0);Tn(this,cS,void 0);sn(this,us,e.queryCache||new ofe),sn(this,F0,e.mutationCache||new jFe),sn(this,B0,e.defaultOptions||{}),sn(this,oS,new Map),sn(this,lS,new Map),sn(this,U0,0)}mount(){WA(this,U0)._++,Fe(this,U0)===1&&(sn(this,uS,DR.subscribe(()=>{DR.isFocused()&&(this.resumePausedMutations(),Fe(this,us).onFocus())})),sn(this,cS,NR.subscribe(()=>{NR.isOnline()&&(this.resumePausedMutations(),Fe(this,us).onOnline())})))}unmount(){var e,t;WA(this,U0)._--,Fe(this,U0)===0&&((e=Fe(this,uS))==null||e.call(this),sn(this,uS,void 0),(t=Fe(this,cS))==null||t.call(this),sn(this,cS,void 0))}isFetching(e){return Fe(this,us).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Fe(this,F0).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=Fe(this,us).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=Fe(this,us).find({queryKey:e}),i=r==null?void 0:r.state.data,a=IFe(t,i);if(typeof a>"u")return;const s=this.defaultQueryOptions({queryKey:e});return Fe(this,us).build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ps.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=Fe(this,us).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=Fe(this,us);ps.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Fe(this,us),r={type:"active",...e};return ps.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ps.batch(()=>Fe(this,us).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Gc).catch(Gc)}invalidateQueries(e={},t={}){return ps.batch(()=>{if(Fe(this,us).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ps.batch(()=>Fe(this,us).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Gc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Gc)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=Fe(this,us).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gc).catch(Gc)}fetchInfiniteQuery(e){return e.behavior=o$(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gc).catch(Gc)}resumePausedMutations(){return Fe(this,F0).resumePausedMutations()}getQueryCache(){return Fe(this,us)}getMutationCache(){return Fe(this,F0)}getDefaultOptions(){return Fe(this,B0)}setDefaultOptions(e){sn(this,B0,e)}setQueryDefaults(e,t){Fe(this,oS).set(qb(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Fe(this,oS).values()];let n={};return t.forEach(r=>{_x(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Fe(this,lS).set(qb(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Fe(this,lS).values()];let n={};return t.forEach(r=>{_x(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...Fe(this,B0).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Kz(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Fe(this,B0).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Fe(this,us).clear(),Fe(this,F0).clear()}},us=new WeakMap,F0=new WeakMap,B0=new WeakMap,oS=new WeakMap,lS=new WeakMap,U0=new WeakMap,uS=new WeakMap,cS=new WeakMap,Jse),Zl,Wi,Sk,al,_b,dS,Oh,Ek,fS,hS,Ab,Rb,z0,pS,Ib,H2,wk,u$,Tk,c$,xk,d$,kk,f$,Ck,h$,_k,p$,Ak,m$,YI,dfe,eoe,cfe=(eoe=class extends fE{constructor(t,n){super();Tn(this,Ib);Tn(this,wk);Tn(this,Tk);Tn(this,xk);Tn(this,kk);Tn(this,Ck);Tn(this,_k);Tn(this,Ak);Tn(this,YI);Tn(this,Zl,void 0);Tn(this,Wi,void 0);Tn(this,Sk,void 0);Tn(this,al,void 0);Tn(this,_b,void 0);Tn(this,dS,void 0);Tn(this,Oh,void 0);Tn(this,Ek,void 0);Tn(this,fS,void 0);Tn(this,hS,void 0);Tn(this,Ab,void 0);Tn(this,Rb,void 0);Tn(this,z0,void 0);Tn(this,pS,new Set);this.options=n,sn(this,Zl,t),sn(this,Oh,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Fe(this,Wi).addObserver(this),lee(Fe(this,Wi),this.options)?fr(this,Ib,H2).call(this):this.updateResult(),fr(this,kk,f$).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return g$(Fe(this,Wi),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return g$(Fe(this,Wi),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fr(this,Ck,h$).call(this),fr(this,_k,p$).call(this),Fe(this,Wi).removeObserver(this)}setOptions(t,n){const r=this.options,i=Fe(this,Wi);if(this.options=Fe(this,Zl).defaultQueryOptions(t),IR(r,this.options)||Fe(this,Zl).getQueryCache().notify({type:"observerOptionsUpdated",query:Fe(this,Wi),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),fr(this,Ak,m$).call(this);const a=this.hasListeners();a&&uee(Fe(this,Wi),i,this.options,r)&&fr(this,Ib,H2).call(this),this.updateResult(n),a&&(Fe(this,Wi)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&fr(this,wk,u$).call(this);const s=fr(this,Tk,c$).call(this);a&&(Fe(this,Wi)!==i||this.options.enabled!==r.enabled||s!==Fe(this,z0))&&fr(this,xk,d$).call(this,s)}getOptimisticResult(t){const n=Fe(this,Zl).getQueryCache().build(Fe(this,Zl),t),r=this.createResult(n,t);return YFe(this,r)&&(sn(this,al,r),sn(this,dS,this.options),sn(this,_b,Fe(this,Wi).state)),r}getCurrentResult(){return Fe(this,al)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(Fe(this,pS).add(r),t[r])})}),n}getCurrentQuery(){return Fe(this,Wi)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Fe(this,Zl).defaultQueryOptions(t),r=Fe(this,Zl).getQueryCache().build(Fe(this,Zl),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return fr(this,Ib,H2).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Fe(this,al)))}createResult(t,n){var _;const r=Fe(this,Wi),i=this.options,a=Fe(this,al),s=Fe(this,_b),o=Fe(this,dS),c=t!==r?t.state:Fe(this,Sk),{state:d}=t;let{error:h,errorUpdatedAt:p,fetchStatus:b,status:v}=d,S=!1,w;if(n._optimisticResults){const A=this.hasListeners(),U=!A&&lee(t,n),F=A&&uee(t,r,n,i);(U||F)&&(b=ON(t.options.networkMode)?"fetching":"paused",d.dataUpdatedAt||(v="pending")),n._optimisticResults==="isRestoring"&&(b="idle")}if(n.select&&typeof d.data<"u")if(a&&d.data===(s==null?void 0:s.data)&&n.select===Fe(this,Ek))w=Fe(this,fS);else try{sn(this,Ek,n.select),w=n.select(d.data),w=s$(a==null?void 0:a.data,w,n),sn(this,fS,w),sn(this,Oh,null)}catch(A){sn(this,Oh,A)}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&v==="pending"){let A;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))A=a.data;else if(A=typeof n.placeholderData=="function"?n.placeholderData((_=Fe(this,hS))==null?void 0:_.state.data,Fe(this,hS)):n.placeholderData,n.select&&typeof A<"u")try{A=n.select(A),sn(this,Oh,null)}catch(U){sn(this,Oh,U)}typeof A<"u"&&(v="success",w=s$(a==null?void 0:a.data,A,n),S=!0)}Fe(this,Oh)&&(h=Fe(this,Oh),w=Fe(this,fS),p=Date.now(),v="error");const T=b==="fetching",x=v==="pending",k=v==="error",C=x&&T;return{status:v,fetchStatus:b,isPending:x,isSuccess:v==="success",isError:k,isInitialLoading:C,isLoading:C,data:w,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:T,isRefetching:T&&!x,isLoadingError:k&&d.dataUpdatedAt===0,isPaused:b==="paused",isPlaceholderData:S,isRefetchError:k&&d.dataUpdatedAt!==0,isStale:Jz(t,n),refetch:this.refetch}}updateResult(t){const n=Fe(this,al),r=this.createResult(Fe(this,Wi),this.options);if(sn(this,_b,Fe(this,Wi).state),sn(this,dS,this.options),Fe(this,_b).data!==void 0&&sn(this,hS,Fe(this,Wi)),IR(r,n))return;sn(this,al,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!Fe(this,pS).size)return!0;const l=new Set(o??Fe(this,pS));return this.options.throwOnError&&l.add("error"),Object.keys(Fe(this,al)).some(c=>{const d=c;return Fe(this,al)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),fr(this,YI,dfe).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fr(this,kk,f$).call(this)}},Zl=new WeakMap,Wi=new WeakMap,Sk=new WeakMap,al=new WeakMap,_b=new WeakMap,dS=new WeakMap,Oh=new WeakMap,Ek=new WeakMap,fS=new WeakMap,hS=new WeakMap,Ab=new WeakMap,Rb=new WeakMap,z0=new WeakMap,pS=new WeakMap,Ib=new WeakSet,H2=function(t){fr(this,Ak,m$).call(this);let n=Fe(this,Wi).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Gc)),n},wk=new WeakSet,u$=function(){if(fr(this,Ck,h$).call(this),DS||Fe(this,al).isStale||!i$(this.options.staleTime))return;const n=nfe(Fe(this,al).dataUpdatedAt,this.options.staleTime)+1;sn(this,Ab,setTimeout(()=>{Fe(this,al).isStale||this.updateResult()},n))},Tk=new WeakSet,c$=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Fe(this,Wi)):this.options.refetchInterval)??!1},xk=new WeakSet,d$=function(t){fr(this,_k,p$).call(this),sn(this,z0,t),!(DS||this.options.enabled===!1||!i$(Fe(this,z0))||Fe(this,z0)===0)&&sn(this,Rb,setInterval(()=>{(this.options.refetchIntervalInBackground||DR.isFocused())&&fr(this,Ib,H2).call(this)},Fe(this,z0)))},kk=new WeakSet,f$=function(){fr(this,wk,u$).call(this),fr(this,xk,d$).call(this,fr(this,Tk,c$).call(this))},Ck=new WeakSet,h$=function(){Fe(this,Ab)&&(clearTimeout(Fe(this,Ab)),sn(this,Ab,void 0))},_k=new WeakSet,p$=function(){Fe(this,Rb)&&(clearInterval(Fe(this,Rb)),sn(this,Rb,void 0))},Ak=new WeakSet,m$=function(){const t=Fe(this,Zl).getQueryCache().build(Fe(this,Zl),this.options);if(t===Fe(this,Wi))return;const n=Fe(this,Wi);sn(this,Wi,t),sn(this,Sk,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},YI=new WeakSet,dfe=function(t){ps.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Fe(this,al))}),Fe(this,Zl).getQueryCache().notify({query:Fe(this,Wi),type:"observerResultsUpdated"})})},eoe);function QFe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lee(e,t){return QFe(e,t)||e.state.dataUpdatedAt>0&&g$(e,t,t.refetchOnMount)}function g$(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Jz(e,t)}return!1}function uee(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Jz(e,n)}function Jz(e,t){return e.isStaleByTime(t.staleTime)}function YFe(e,t){return!IR(e.getCurrentResult(),t)}var qFe=class extends cfe{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:o$()},t)}getOptimisticResult(e){return e.behavior=o$(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var l,c,d,h;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a}=r,s=i&&((c=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:c.direction)==="forward",o=i&&((h=(d=n.fetchMeta)==null?void 0:d.fetchMore)==null?void 0:h.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:HFe(t,n.data),hasPreviousPage:VFe(t,n.data),isFetchingNextPage:s,isFetchingPreviousPage:o,isRefetching:a&&!s&&!o}}},j0,jp,Wu,Hp,mS,J3,Rk,b$,toe,GFe=(toe=class extends fE{constructor(n,r){super();Tn(this,mS);Tn(this,Rk);Tn(this,j0,void 0);Tn(this,jp,void 0);Tn(this,Wu,void 0);Tn(this,Hp,void 0);sn(this,jp,void 0),sn(this,j0,n),this.setOptions(r),this.bindMethods(),fr(this,mS,J3).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Fe(this,j0).defaultMutationOptions(n),IR(r,this.options)||Fe(this,j0).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Fe(this,Wu),observer:this}),(i=Fe(this,Wu))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&qb(r.mutationKey)!==qb(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=Fe(this,Wu))==null||n.removeObserver(this)}onMutationUpdate(n){fr(this,mS,J3).call(this),fr(this,Rk,b$).call(this,n)}getCurrentResult(){return Fe(this,jp)}reset(){var n;(n=Fe(this,Wu))==null||n.removeObserver(this),sn(this,Wu,void 0),fr(this,mS,J3).call(this),fr(this,Rk,b$).call(this)}mutate(n,r){var i;return sn(this,Hp,r),(i=Fe(this,Wu))==null||i.removeObserver(this),sn(this,Wu,Fe(this,j0).getMutationCache().build(Fe(this,j0),this.options)),Fe(this,Wu).addObserver(this),Fe(this,Wu).execute(n)}},j0=new WeakMap,jp=new WeakMap,Wu=new WeakMap,Hp=new WeakMap,mS=new WeakSet,J3=function(){var r;const n=((r=Fe(this,Wu))==null?void 0:r.state)??lfe();sn(this,jp,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Rk=new WeakSet,b$=function(n){ps.batch(()=>{var r,i,a,s,o,l,c,d;if(Fe(this,Hp)&&this.hasListeners()){const h=Fe(this,jp).variables,p=Fe(this,jp).context;(n==null?void 0:n.type)==="success"?((i=(r=Fe(this,Hp)).onSuccess)==null||i.call(r,n.data,h,p),(s=(a=Fe(this,Hp)).onSettled)==null||s.call(a,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((l=(o=Fe(this,Hp)).onError)==null||l.call(o,n.error,h,p),(d=(c=Fe(this,Hp)).onSettled)==null||d.call(c,void 0,n.error,h,p))}this.listeners.forEach(h=>{h(Fe(this,jp))})})},toe),ffe=M.createContext(void 0),Jk=e=>{const t=M.useContext(ffe);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ZFe=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),M.createElement(ffe.Provider,{value:e},t)),hfe=M.createContext(!1),XFe=()=>M.useContext(hfe);hfe.Provider;function KFe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var JFe=M.createContext(KFe()),eBe=()=>M.useContext(JFe);function pfe(e,t){return typeof e=="function"?e(...t):!!e}var tBe=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},nBe=e=>{M.useEffect(()=>{e.clearReset()},[e])},rBe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&pfe(n,[e.error,r]),iBe=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},aBe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sBe=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function mfe(e,t,n){const r=Jk(n),i=XFe(),a=eBe(),s=r.defaultQueryOptions(e);s._optimisticResults=i?"isRestoring":"optimistic",iBe(s),tBe(s,a),nBe(a);const[o]=M.useState(()=>new t(r,s)),l=o.getOptimisticResult(s);if(M.useSyncExternalStore(M.useCallback(c=>{const d=i?()=>{}:o.subscribe(ps.batchCalls(c));return o.updateResult(),d},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),M.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),aBe(s,l))throw sBe(s,o,a);if(rBe({result:l,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:o.trackResult(l)}function eC(e,t){return mfe(e,cfe,t)}function Hg(e,t){const n=Jk(t),[r]=M.useState(()=>new GFe(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const i=M.useSyncExternalStore(M.useCallback(s=>r.subscribe(ps.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((s,o)=>{r.mutate(s,o).catch(oBe)},[r]);if(i.error&&pfe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function oBe(){}function ej(e,t){return mfe(e,qFe,t)}const lBe={data:null},gfe=uE({name:"document",initialState:lBe,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:PR}=gfe.actions,tj=e=>e.document,uBe=gfe.reducer,bfe=e=>["workspaces",e,"documents"],cBe=(e,t)=>["workpsaces",e,"documents",t],dBe=e=>ej({queryKey:bfe(e||""),queryFn:async({pageParam:n})=>(await Rr.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:30}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),fBe=(e,t)=>{const n=Af(),r=eC({queryKey:cBe(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await Rr.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}});return M.useEffect(()=>(r.data&&n(PR(r.data)),()=>{n(PR(null))}),[n,r.data]),r},hBe=e=>{const t=Jk();return Hg({mutationFn:async n=>(await Rr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:bfe(e)})}})},pBe=(e,t)=>Hg({mutationFn:async n=>(await Rr.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data}),mBe={data:null},yfe=uE({name:"workspace",initialState:mBe,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:cee}=yfe.actions,SN=e=>e.workspace,gBe=yfe.reducer,bBe=e=>["workspaces",e],vfe=()=>["workspaces"],Ofe=e=>{const t=Af(),n=eC({queryKey:bBe(e||""),enabled:!!e,queryFn:async()=>(await Rr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});return M.useEffect(()=>(n.data&&t(cee(n.data)),()=>{t(cee(null))}),[t,n.data]),n},yBe=()=>ej({queryKey:vfe(),queryFn:async({pageParam:t})=>(await Rr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),vBe=()=>{const e=Jk();return Hg({mutationFn:async t=>(await Rr.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:vfe()})}})},OBe=e=>Hg({mutationFn:async t=>(await Rr.post(`/workspaces/${e}/invite-token`,t)).data}),SBe=()=>Hg({mutationFn:async e=>(await Rr.post("/workspaces/join",e)).data});function MR(){return MR=Object.assign?Object.assign.bind():function(e){for(var t=1;tc?(F(c),P.current=c):(F(ve),P.current=ve),w&&w({position:P.current})}}},[r,t,S,v,p,d,U,o,c,w,a]),ne=M.useCallback(function(){r||(F(a),P.current=a)},[r,a]);return{position:U,endPosition:Q,isDragging:I,separatorProps:MR({},Y,{onPointerDown:J,onKeyDown:K,onDoubleClick:ne}),setPosition:F,splitterProps:MR({},Y,{onPointerDown:J,onKeyDown:K,onDoubleClick:ne})}},kBe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(xBe({axis:e.axis,disabled:t!==void 0&&t,initial:n===void 0?0:n,min:r===void 0?0:r,max:i===void 0?1/0:i,reverse:e.reverse,onResizeStart:e.onResizeStart,onResizeEnd:e.onResizeEnd,containerRef:e.containerRef}))};const CBe=e=>{const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),t},_Be=(e,t=100,n=!1)=>{const r=CBe(e),i=M.useRef(),a=[t,n,r];function s(){i.current&&clearTimeout(i.current),i.current=void 0}M.useEffect(()=>s,a);function o(){i.current=void 0}return M.useCallback(function(){const l=arguments,{current:c}=i;if(c===void 0&&n)return i.current=setTimeout(o,t),r.current.apply(null,l);c&&clearTimeout(c),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},a)},ABe=(e,t,n)=>{const r=M.useState(e);return[r[0],_Be(r[1],t,n)]};function H8(e,t,n,r){const i=M.useRef(n),a=M.useRef(r);M.useEffect(()=>{i.current=n,a.current=r}),M.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;let o=0;function l(...d){o||i.current.apply(this,d)}s.addEventListener(t,l);const c=a.current;return()=>{o=1,s.removeEventListener(t,l),c&&c()}},[e,t])}const RBe={},ST=typeof window>"u"?null:window,IBe=ST&&typeof ST.visualViewport<"u"?ST.visualViewport:null,dee=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],DBe=function(e){e===void 0&&(e=RBe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[a,s]=ABe(typeof document>"u"?[r,i]:dee,t,n),o=()=>s(dee);return H8(ST,"resize",o),H8(IBe,"resize",o),H8(ST,"orientationchange",o),a},NBe=e=>DBe(e)[0];class ni{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=NS(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),e5.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=NS(this,t,n);let r=[];return this.decompose(t,n,r,0),e5.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new ET(this),a=new ET(t);for(let s=n,o=n;;){if(i.next(s),a.next(s),s=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(o+=i.value.length,i.done||o>=r)return!0}}iter(t=1){return new ET(this,t)}iterRange(t,n=this.length){return new wfe(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Tfe(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?ni.empty:t.length<=32?new Ha(t):e5.from(Ha.split(t,[]))}}class Ha extends ni{constructor(t,n=PBe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=t)return new MBe(i,o,r,s);i=o+1,r++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new Ha(fee(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),o=t5(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new Ha(o,s.length+a.length));else{let l=o.length>>1;r.push(new Ha(o.slice(0,l)),new Ha(o.slice(l)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof Ha))return super.replace(t,n,r);[t,n]=NS(this,t,n);let i=t5(this.text,t5(r.text,fee(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new Ha(i,a):e5.from(Ha.split(i,[]),a)}sliceString(t,n=this.length,r=` -`){[t,n]=NS(this,t,n);let i="";for(let a=0,s=0;a<=n&&st&&s&&(i+=r),ta&&(i+=o.slice(Math.max(0,t-a),n-a)),a=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new Ha(r,i)),r=[],i=-1);return i>-1&&n.push(new Ha(r,i)),n}}let e5=class Hv extends ni{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,l=r+s.lines-1;if((n?l:o)>=t)return s.lineInner(t,n,r,i);i=o+1,r=l+1}}decompose(t,n,r,i){for(let a=0,s=0;s<=n&&a=s){let c=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!c?r.push(o):o.decompose(t-s,n-s,r,c)}s=l+1}}replace(t,n,r){if([t,n]=NS(this,t,n),r.lines=a&&n<=o){let l=s.replace(t-a,n-a,r),c=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let d=this.children.slice();return d[i]=l,new Hv(d,this.length-(n-t)+r.length)}return super.replace(a,o,l)}a=o+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=NS(this,t,n);let i="";for(let a=0,s=0;at&&a&&(i+=r),ts&&(i+=o.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof Hv))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let l=this.children[i],c=t.children[a];if(l!=c)return r+l.scanIdentical(c,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let b of t)r+=b.lines;if(r<32){let b=[];for(let v of t)v.flatten(b);return new Ha(b,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],l=0,c=-1,d=[];function h(b){let v;if(b.lines>a&&b instanceof Hv)for(let S of b.children)h(S);else b.lines>s&&(l>s||!l)?(p(),o.push(b)):b instanceof Ha&&l&&(v=d[d.length-1])instanceof Ha&&b.lines+v.lines<=32?(l+=b.lines,c+=b.length+1,d[d.length-1]=new Ha(v.text.concat(b.text),v.length+1+b.length)):(l+b.lines>i&&p(),l+=b.lines,c+=b.length+1,d.push(b))}function p(){l!=0&&(o.push(d.length==1?d[0]:Hv.from(d,c)),c=-1,l=d.length=0)}for(let b of t)h(b);return p(),o.length==1?o[0]:new Hv(o,n)}};ni.empty=new Ha([""],0);function PBe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function t5(e,t,n=0,r=1e9){for(let i=0,a=0,s=!0;a=n&&(l>r&&(o=o.slice(0,r-i)),i0?1:(t instanceof Ha?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],a=this.offsets[r],s=a>>1,o=i instanceof Ha?i.text.length:i.children.length;if(s==(n>0?o:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(i instanceof Ha){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Ha?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class wfe{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new ET(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Tfe{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ni.prototype[Symbol.iterator]=function(){return this.iter()},ET.prototype[Symbol.iterator]=wfe.prototype[Symbol.iterator]=Tfe.prototype[Symbol.iterator]=function(){return this});let MBe=class{constructor(t,n,r,i){this.from=t,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}};function NS(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let PO="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;ee)return PO[t-1]<=e;return!1}function hee(e){return e>=127462&&e<=127487}const pee=8205;function uo(e,t,n=!0,r=!0){return(n?xfe:$Be)(e,t,r)}function xfe(e,t,n){if(t==e.length)return t;t&&kfe(e.charCodeAt(t))&&Cfe(e.charCodeAt(t-1))&&t--;let r=io(e,t);for(t+=rd(r);t=0&&hee(io(e,s));)a++,s-=2;if(a%2==0)break;t+=2}else break}return t}function $Be(e,t,n){for(;t>0;){let r=xfe(e,t-2,n);if(r=56320&&e<57344}function Cfe(e){return e>=55296&&e<56320}function io(e,t){let n=e.charCodeAt(t);if(!Cfe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return kfe(r)?(n-55296<<10)+(r-56320)+65536:n}function nj(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function rd(e){return e<65536?1:2}const y$=/\r\n?|\n/;var so=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(so||(so={}));class Vh{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return a+(t-i);a+=o}else{if(r!=so.Simple&&c>=t&&(r==so.TrackDel&&it||r==so.TrackBefore&&it))return null;if(c>t||c==t&&n<0&&!o)return t==i||n<0?a:a+l;a+=l}i=c}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return a}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&o>=t)return in?"cover":!0;i=o}return!1}toString(){let t="";for(let n=0;n=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Vh(t)}static create(t){return new Vh(t)}}class fs extends Vh{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return v$(this,(n,r,i,a,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return O$(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,a=0;i=0){n[i]=o,n[i+1]=s;let l=i>>1;for(;r.length0&&Q0(r,n,a.text),a.forward(d),o+=d}let c=t[s++];for(;o>1].toJSON()))}return t}static of(t,n,r){let i=[],a=[],s=0,o=null;function l(d=!1){if(!d&&!i.length)return;sp||h<0||p>n)throw new RangeError(`Invalid change range ${h} to ${p} (in doc of length ${n})`);let v=b?typeof b=="string"?ni.of(b.split(r||y$)):b:ni.empty,S=v.length;if(h==p&&S==0)return;hs&&Ro(i,h-s,-1),Ro(i,p-h,S),Q0(a,i,v),s=p}}return c(t),l(!o),o}static empty(t){return new fs(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;io&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function Q0(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(i,c,a,d,h),i=c,a=d}}}function O$(e,t,n,r=!1){let i=[],a=r?[]:null,s=new Ax(e),o=new Ax(t);for(let l=-1;;)if(s.ins==-1&&o.ins==-1){let c=Math.min(s.len,o.len);Ro(i,c,-1),s.forward(c),o.forward(c)}else if(o.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(o.len=0&&l=0){let c=0,d=s.len;for(;d;)if(o.ins==-1){let h=Math.min(d,o.len);c+=h,d-=h,o.forward(h)}else if(o.ins==0&&o.lenl||s.ins>=0&&s.len>l)&&(o||r.length>c),a.forward2(l),s.forward(l)}}}}class Ax{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?ni.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?ni.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class bb{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new bb(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return wt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return wt.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return wt.range(t.anchor,t.head)}static create(t,n,r){return new bb(t,n,r)}}class wt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:wt.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;rt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new wt(t.ranges.map(n=>bb.fromJSON(n)),t.main)}static single(t,n=t){return new wt([wt.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|a)}static normalized(t,n=0){let r=t[n];t.sort((i,a)=>i.from-a.from),n=t.indexOf(r);for(let i=1;ia.head?wt.range(l,o):wt.range(o,l))}}return new wt(t,n)}}function Afe(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let rj=0;class wn{constructor(t,n,r,i,a){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=rj++,this.default=t([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(t={}){return new wn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:ij),!!t.static,t.enables)}of(t){return new n5([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new n5(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new n5(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function ij(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class n5{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=rj++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=t[a]>>1,o=this.type==2,l=!1,c=!1,d=[];for(let h of this.dependencies)h=="doc"?l=!0:h=="selection"?c=!0:((n=t[h.id])!==null&&n!==void 0?n:1)&1||d.push(t[h.id]);return{create(h){return h.values[s]=r(h),1},update(h,p){if(l&&p.docChanged||c&&(p.docChanged||p.selection)||S$(h,d)){let b=r(h);if(o?!mee(b,h.values[s],i):!i(b,h.values[s]))return h.values[s]=b,1}return 0},reconfigure:(h,p)=>{let b,v=p.config.address[a];if(v!=null){let S=$R(p,v);if(this.dependencies.every(w=>w instanceof wn?p.facet(w)===h.facet(w):w instanceof Us?p.field(w,!1)==h.field(w,!1):!0)||(o?mee(b=r(h),S,i):i(b=r(h),S)))return h.values[s]=S,0}else b=r(h);return h.values[s]=b,1}}}}function mee(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),a=r.filter(l=>!(l&1)),s=e[t.id]>>1;function o(l){let c=[];for(let d=0;dr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(gee).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let a=r.values[n],s=this.updateF(a,i);return this.compareF(a,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,gee.of({field:this,create:t})]}get extension(){return this}}const sb={lowest:4,low:3,default:2,high:1,highest:0};function d2(e){return t=>new Rfe(t,e)}const Vg={highest:d2(sb.highest),high:d2(sb.high),default:d2(sb.default),low:d2(sb.low),lowest:d2(sb.lowest)};class Rfe{constructor(t,n){this.inner=t,this.prec=n}}class EN{of(t){return new E$(this,t)}reconfigure(t){return EN.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class E${constructor(t,n){this.compartment=t,this.inner=n}}class LR{constructor(t,n,r,i,a,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],a=Object.create(null),s=new Map;for(let p of BBe(t,n,s))p instanceof Us?i.push(p):(a[p.facet.id]||(a[p.facet.id]=[])).push(p);let o=Object.create(null),l=[],c=[];for(let p of i)o[p.id]=c.length<<1,c.push(b=>p.slot(b));let d=r==null?void 0:r.config.facets;for(let p in a){let b=a[p],v=b[0].facet,S=d&&d[p]||[];if(b.every(w=>w.type==0))if(o[v.id]=l.length<<1|1,ij(S,b))l.push(r.facet(v));else{let w=v.combine(b.map(T=>T.value));l.push(r&&v.compare(w,r.facet(v))?r.facet(v):w)}else{for(let w of b)w.type==0?(o[w.id]=l.length<<1|1,l.push(w.value)):(o[w.id]=c.length<<1,c.push(T=>w.dynamicSlot(T)));o[v.id]=c.length<<1,c.push(w=>FBe(w,v,b))}}let h=c.map(p=>p(o));return new LR(t,s,h,o,l,a)}}function BBe(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let l=i.get(s);if(l!=null){if(l<=o)return;let c=r[l].indexOf(s);c>-1&&r[l].splice(c,1),s instanceof E$&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let c of s)a(c,o);else if(s instanceof E$){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(s.compartment)||s.inner;n.set(s.compartment,c),a(c,o)}else if(s instanceof Rfe)a(s.inner,s.prec);else if(s instanceof Us)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof n5)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,sb.default);else{let c=s.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(c,o)}}return a(e,sb.default),r.reduce((s,o)=>s.concat(o))}function wT(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function $R(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Ife=wn.define(),w$=wn.define({combine:e=>e.some(t=>t),static:!0}),Dfe=wn.define({combine:e=>e.length?e[0]:void 0,static:!0}),Nfe=wn.define(),Pfe=wn.define(),Mfe=wn.define(),Lfe=wn.define({combine:e=>e.length?e[0]:!1});class Rf{constructor(t,n){this.type=t,this.value=n}static define(){return new UBe}}class UBe{of(t){return new Rf(this,t)}}class zBe{constructor(t){this.map=t}of(t){return new gr(this,t)}}class gr{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new gr(this.type,n)}is(t){return this.type==t}static define(t={}){return new zBe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let a=i.map(n);a&&r.push(a)}return r}}gr.reconfigure=gr.define();gr.appendConfig=gr.define();let $s=class V2{constructor(t,n,r,i,a,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&Afe(r,n.newLength),a.some(o=>o.type==V2.time)||(this.annotations=a.concat(V2.time.of(Date.now())))}static create(t,n,r,i,a,s){return new V2(t,n,r,i,a,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(V2.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}};$s.time=Rf.define();$s.userEvent=Rf.define();$s.addToHistory=Rf.define();$s.remote=Rf.define();function jBe(e,t){let n=[];for(let r=0,i=0;;){let a,s;if(r=e[r]))a=e[r++],s=e[r++];else if(i=0;i--){let a=r[i](e);a instanceof $s?e=a:Array.isArray(a)&&a.length==1&&a[0]instanceof $s?e=a[0]:e=Ffe(t,MO(a),!1)}return e}function VBe(e){let t=e.startState,n=t.facet(Mfe),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=$fe(r,T$(t,a,e.changes.newLength),!0))}return r==e?e:$s.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const WBe=[];function MO(e){return e==null?WBe:Array.isArray(e)?e:[e]}var ca=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ca||(ca={}));const QBe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let x$;try{x$=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function YBe(e){if(x$)return x$.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||QBe.test(n)))return!0}return!1}function qBe(e){return t=>{if(!/\S/.test(t))return ca.Space;if(YBe(t))return ca.Word;for(let n=0;n-1)return ca.Word;return ca.Other}}class Yr{constructor(t,n,r,i,a,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;oi.set(c,l)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(gr.reconfigure)?(n=null,r=o.value):o.is(gr.appendConfig)&&(n=null,r=MO(r).concat(o.value));let a;n?a=t.startState.values.slice():(n=LR.resolve(r,i,this),a=new Yr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let s=t.startState.facet(w$)?t.newSelection:t.newSelection.asSingle();new Yr(n,t.newDoc,s,a,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:wt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=MO(r.effects);for(let o=1;os.spec.fromJSON(o,l)))}}return Yr.create({doc:t.doc,selection:wt.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=LR.resolve(t.extensions||[],new Map),r=t.doc instanceof ni?t.doc:ni.of((t.doc||"").split(n.staticFacet(Yr.lineSeparator)||y$)),i=t.selection?t.selection instanceof wt?t.selection:wt.single(t.selection.anchor,t.selection.head):wt.single(0);return Afe(i,r.length),n.staticFacet(w$)||(i=i.asSingle()),new Yr(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(Yr.tabSize)}get lineBreak(){return this.facet(Yr.lineSeparator)||` -`}get readOnly(){return this.facet(Lfe)}phrase(t,...n){for(let r of this.facet(Yr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let a of this.facet(Ife))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){return qBe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),a=this.charCategorizer(t),s=t-r,o=t-r;for(;s>0;){let l=uo(n,s,!1);if(a(n.slice(l,s))!=ca.Word)break;s=l}for(;oe.length?e[0]:4});Yr.lineSeparator=Dfe;Yr.readOnly=Lfe;Yr.phrases=wn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(i=>e[i]==t[i])}});Yr.languageData=Ife;Yr.changeFilter=Nfe;Yr.transactionFilter=Pfe;Yr.transactionExtender=Mfe;EN.reconfigure=gr.define();function tp(e,t,n={}){let r={};for(let i of e)for(let a of Object.keys(i)){let s=i[a],o=r[a];if(o===void 0)r[a]=s;else if(!(o===s||s===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](o,s);else throw new Error("Config merge conflict for field "+a)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class Gb{eq(t){return this==t}range(t,n=t){return k$.create(t,n,this)}}Gb.prototype.startSide=Gb.prototype.endSide=0;Gb.prototype.point=!1;Gb.prototype.mapMode=so.TrackDel;let k$=class Bfe{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Bfe(t,n,r)}};function C$(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class aj{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let l=s+o>>1,c=a[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return c>=0?s:o;c>=0?o=l:s=l+1}}between(t,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);ab||p==b&&c.startSide>0&&c.endSide<=0)continue;(b-p||c.endSide-c.startSide)<0||(s<0&&(s=p),c.point&&(o=Math.max(o,b-p)),r.push(c),i.push(p-s),a.push(b-s))}return{mapped:r.length?new aj(i,a,r,o):null,pos:s}}}class Vr{constructor(t,n,r,i){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(t,n,r,i){return new Vr(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,s=t.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(C$)),this.isEmpty)return n.length?Vr.of(n):this;let o=new Ufe(this,null,-1).goto(0),l=0,c=[],d=new Tg;for(;o.value||l=0){let h=n[l++];d.addInner(h.from,h.to,h.value)||c.push(h)}else o.rangeIndex==1&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ao.to||a=a&&t<=a+s.length&&s.between(a,t-a,n-a,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return Rx.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return Rx.from(t).goto(n)}static compare(t,n,r,i,a=-1){let s=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=a),o=n.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=a),l=bee(s,o,r),c=new f2(s,l,a),d=new f2(o,l,a);r.iterGaps((h,p,b)=>yee(c,h,d,p,b,i)),r.empty&&r.length==0&&yee(c,0,d,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let a=t.filter(d=>!d.isEmpty&&n.indexOf(d)<0),s=n.filter(d=>!d.isEmpty&&t.indexOf(d)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=bee(a,s),l=new f2(a,o,0).goto(r),c=new f2(s,o,0).goto(r);for(;;){if(l.to!=c.to||!_$(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>i)return!0;l.next(),c.next()}}static spans(t,n,r,i,a=-1){let s=new f2(t,null,a).goto(n),o=n,l=s.openStart;for(;;){let c=Math.min(s.to,r);if(s.point){let d=s.activeForPoint(s.to),h=s.pointFromo&&(i.span(o,c,s.active,l),l=s.openEnd(c));if(s.to>r)return l+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(t,n=!1){let r=new Tg;for(let i of t instanceof k$?[t]:n?GBe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Vr.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Vr.empty;i=i.nextLayer)n=new Vr(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Vr.empty=new Vr([],[],null,-1);function GBe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(C$);t=r}return e}Vr.empty.nextLayer=Vr.empty;class Tg{finishChunk(t){this.chunks.push(new aj(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new Tg)).add(t,n,r)}addInner(t,n,r){let i=t-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(Vr.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Vr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function bee(e,t,n){let r=new Map;for(let a of e)for(let s=0;s=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new Ufe(s,n,r,a));return i.length==1?i[0]:new Rx(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)V8(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)V8(this.heap,r);(this.to-t||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),V8(this.heap,0)}}}function V8(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class f2{constructor(t,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Rx.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){T4(this.active,t),T4(this.activeTo,t),T4(this.activeRank,t),this.minActive=vee(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n0;)n++;x4(this.active,n,r),x4(this.activeTo,n,i),x4(this.activeRank,n,a),t&&x4(t,n,this.cursor.from),this.minActive=vee(this.active,this.activeTo)}next(){let t=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&T4(r,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let a=this.cursor.value;if(!a.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[i]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function yee(e,t,n,r,i,a){e.goto(t),n.goto(r);let s=r+i,o=r,l=r-t;for(;;){let c=e.to+l-n.to||e.endSide-n.endSide,d=c<0?e.to+l:n.to,h=Math.min(d,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&_$(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(o,h,e.point,n.point):h>o&&!_$(e.active,n.active)&&a.compareRange(o,h,e.active,n.active),d>s)break;o=d,c<=0&&e.next(),c>=0&&n.next()}}function _$(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function vee(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;a+=e.charCodeAt(i)==9?n-a%n:1,i=uo(e,i)}return r===!0?-1:e.length}const R$="ͼ",Oee=typeof Symbol>"u"?"__"+R$:Symbol.for(R$),I$=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),See=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class xg{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,l,c){let d=[],h=/^@(\w+)\b/.exec(s[0]),p=h&&h[1]=="keyframes";if(h&&o==null)return l.push(s[0]+";");for(let b in o){let v=o[b];if(/&/.test(b))a(b.split(/,\s*/).map(S=>s.map(w=>S.replace(/&/,w))).reduce((S,w)=>S.concat(w)),v,l);else if(v&&typeof v=="object"){if(!h)throw new RangeError("The value of a property ("+b+") should be a primitive value.");a(i(b),v,d,p)}else v!=null&&d.push(b.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+v+";")}(d.length||p)&&l.push((r&&!h&&!c?s.map(r):s).join(", ")+" {"+d.join(" ")+"}")}for(let s in t)a(i(s),t[s],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=See[Oee]||1;return See[Oee]=t+1,R$+t.toString(36)}static mount(t,n,r){let i=t[I$],a=r&&r.nonce;i?a&&i.setNonce(a):i=new ZBe(t,a),i.mount(Array.isArray(n)?n:[n])}}let Eee=new Map;class ZBe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let a=Eee.get(r);if(a)return t.adoptedStyleSheets=[a.sheet,...t.adoptedStyleSheets],t[I$]=a;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],Eee.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let a=t.head||t;a.insertBefore(this.styleTag,a.firstChild)}this.modules=[],t[I$]=this}mount(t){let n=this.sheet,r=0,i=0;for(let a=0;a-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,s),n)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},XBe=typeof navigator<"u"&&/Mac/.test(navigator.platform),KBe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ao=0;ao<10;ao++)kg[48+ao]=kg[96+ao]=String(ao);for(var ao=1;ao<=24;ao++)kg[ao+111]="F"+ao;for(var ao=65;ao<=90;ao++)kg[ao]=String.fromCharCode(ao+32),Ix[ao]=String.fromCharCode(ao);for(var W8 in kg)Ix.hasOwnProperty(W8)||(Ix[W8]=kg[W8]);function JBe(e){var t=XBe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||KBe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Ix:kg)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function FR(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function D$(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function eUe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function r5(e,t){if(!t.anchorNode)return!1;try{return D$(e,t.anchorNode)}catch{return!1}}function Dx(e){return e.nodeType==3?Zb(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function TT(e,t,n,r){return n?wee(e,t,n,r,-1)||wee(e,t,n,r,1):!1}function Nx(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function wee(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:dm(e))){if(e.nodeName=="DIV")return!1;let a=e.parentNode;if(!a||a.nodeType!=1)return!1;t=Nx(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?dm(e):0}else return!1}}function dm(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function sj(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function tUe(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function zfe(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function nUe(e,t,n,r,i,a,s,o){let l=e.ownerDocument,c=l.defaultView||window;for(let d=e,h=!1;d&&!h;)if(d.nodeType==1){let p,b=d==l.body,v=1,S=1;if(b)p=tUe(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(h=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let x=d.getBoundingClientRect();({scaleX:v,scaleY:S}=zfe(d,x)),p={left:x.left,right:x.left+d.clientWidth*v,top:x.top,bottom:x.top+d.clientHeight*S}}let w=0,T=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+T&&(T=t.bottom-p.bottom+T+s)):t.bottom>p.bottom&&(T=t.bottom-p.bottom+s,n<0&&t.top-T0&&t.right>p.right+w&&(w=t.right-p.right+w+a)):t.right>p.right&&(w=t.right-p.right+a,n<0&&t.leftn.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class iUe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?dm(n):0),r,Math.min(t.focusOffset,r?dm(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Av=null;function jfe(e){if(e.setActive)return e.setActive();if(Av)return e.focus(Av);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Av==null?{get preventScroll(){return Av={preventScroll:!0},!0}}:void 0),!Av){Av=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class Do{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new Do(t.parentNode,Nx(t),n)}static after(t,n){return new Do(t.parentNode,Nx(t)+1,n)}}const oj=[];class qi{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,i=null,a;for(let s of this.children){if(s.flags&7){if(!s.dom&&(a=i?i.nextSibling:r.firstChild)){let o=qi.get(a);(!o||!o.parent&&o.canReuseDOM(s))&&s.reuseDOM(a)}s.sync(t,n),s.flags&=-8}if(a=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&a!=s.dom&&(n.written=!0),s.dom.parentNode==r)for(;a&&a!=s.dom;)a=xee(a);else r.insertBefore(s.dom,a);i=s.dom}for(a=i?i.nextSibling:r.firstChild,a&&n&&n.node==r&&(n.written=!0);a;)a=xee(a)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=dm(t)==0?0:n==0?-1:1;for(;;){let a=t.parentNode;if(a==this.dom)break;i==0&&a.firstChild!=a.lastChild&&(t==a.firstChild?i=-1:i=1),t=a}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!qi.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,a=0;;i++){let s=this.children[i];if(s.dom==r)return a;a+=s.length+s.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,a=-1,s=-1,o=-1;for(let l=0,c=r,d=r;ln)return h.domBoundsAround(t,n,c);if(p>=t&&i==-1&&(i=l,a=c),c>n&&h.dom.parentNode==this.dom){s=l,o=d;break}d=p,c=p+h.breakAfter}return{from:a,to:o<0?r+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=oj){this.markDirty();for(let i=t;ithis.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function Qfe(e,t,n,r,i,a,s,o,l){let{children:c}=e,d=c.length?c[t]:null,h=a.length?a[a.length-1]:null,p=h?h.breakAfter:s;if(!(t==r&&d&&!s&&!p&&a.length<2&&d.merge(n,i,a.length?h:null,n==0,o,l))){if(r0&&(!s&&a.length&&d.merge(n,d.length,a[0],!1,o,0)?d.breakAfter=a.shift().breakAfter:(n2);var xn={mac:_ee||/Mac/.test(nc.platform),windows:/Win/.test(nc.platform),linux:/Linux|X11/.test(nc.platform),ie:wN,ie_version:qfe?N$.documentMode||6:M$?+M$[1]:P$?+P$[1]:0,gecko:kee,gecko_version:kee?+(/Firefox\/(\d+)/.exec(nc.userAgent)||[0,0])[1]:0,chrome:!!Q8,chrome_version:Q8?+Q8[1]:0,ios:_ee,android:/Android\b/.test(nc.userAgent),webkit:Cee,safari:Gfe,webkit_version:Cee?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:N$.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const oUe=256;class fm extends qi{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof fm)||this.length-(n-t)+r.length>oUe||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new fm(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new Do(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return lUe(this.dom,t,n)}}class hm extends qi{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(t){if(Hfe(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,a,s){return r&&(!(r instanceof hm&&r.mark.eq(this.mark))||t&&a<=0||nt&&n.push(r=t&&(i=a),r=l,a++}let s=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new hm(this.mark,n,s)}domAtPos(t){return Zfe(this,t)}coordsAt(t,n){return Kfe(this,t,n)}}function lUe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,s=0;t==0&&n<0||t==r&&n>=0?xn.chrome||xn.gecko||(t?(i--,s=1):a=0)?0:o.length-1];return xn.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(o,c=>c.width)||l),s?sj(l,s<0):l||null}class Y0 extends qi{static create(t,n,r){return new Y0(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=Y0.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,a,s){return r&&(!(r instanceof Y0)||!this.widget.compare(r.widget)||t>0&&a<=0||n0)?Do.before(this.dom):Do.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:t>0;for(let o=s?i.length-1:0;a=i[o],!(t>0?o==0:o==i.length-1||a.top0?Do.before(this.dom):Do.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ni.empty}get isHidden(){return!0}}fm.prototype.children=Y0.prototype.children=PS.prototype.children=oj;function Zfe(e,t){let n=e.dom,{children:r}=e,i=0;for(let a=0;ia&&t0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a0&&t instanceof hm&&i.length&&(r=i[i.length-1])instanceof hm&&r.mark.eq(t.mark)?Xfe(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function Kfe(e,t,n){let r=null,i=-1,a=null,s=-1;function o(c,d){for(let h=0,p=0;h=d&&(b.children.length?o(b,d-p):(!a||a.isHidden&&n>0)&&(v>d||p==v&&b.getSide()>0)?(a=b,s=d-p):(p-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function $$(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i=="style"?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function cUe(e){let t=Object.create(null);for(let n=0;n0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){lj(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){Xfe(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=L$(n,this.attrs||{})),r&&(this.attrs=L$({class:r},this.attrs||{}))}domAtPos(t){return Zfe(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(Hfe(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&($$(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let i=this.dom.lastChild;for(;i&&qi.get(i)instanceof hm;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=qi.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!xn.ios||!this.children.some(a=>a instanceof fm))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof fm)||/[^ -~]/.test(r.text))return null;let i=Dx(r.dom);if(i.length!=1)return null;t+=i[0].width,n=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=Kfe(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight=n){if(a instanceof cs)return a;if(s>n)break}i=s+a.breakAfter}return null}}class ug extends qi{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,a,s){return r&&(!(r instanceof ug)||!this.widget.compare(r.widget)||t>0&&a<=0||n0}}class If{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var hl=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(hl||(hl={}));class _n extends Gb{constructor(t,n,r,i){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(t){return new tC(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Cg(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=Jfe(t,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new Cg(t,r,i,n,t.widget||null,!0)}static line(t){return new nC(t)}static set(t,n=!1){return Vr.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}_n.none=Vr.empty;class tC extends _n{constructor(t){let{start:n,end:r}=Jfe(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof tC&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&lj(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}tC.prototype.point=!1;class nC extends _n{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof nC&&this.spec.class==t.spec.class&&lj(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}nC.prototype.mapMode=so.TrackBefore;nC.prototype.point=!0;class Cg extends _n{constructor(t,n,r,i,a,s){super(n,r,a,t),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?so.TrackBefore:so.TrackAfter:so.TrackDel}get type(){return this.startSide!=this.endSide?hl.WidgetRange:this.startSide<=0?hl.WidgetBefore:hl.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Cg&&dUe(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}Cg.prototype.point=!0;function Jfe(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function dUe(e,t){return e==t||!!(e&&t&&e.compare(t))}function F$(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}class xT{constructor(t,n,r,i){this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof ug&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new cs),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(k4(new PS(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof ug)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:s,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(k4(new fm(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof Cg){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-t;if(r instanceof Cg)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ug(r.widget||new Ree("div"),o,r));else{let l=Y0.create(r.widget||new Ree("span"),o,o?0:r.startSide),c=this.atCursorPos&&!l.isEditable&&a<=i.length&&(t0),d=!l.isEditable&&(ti.length||r.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),c&&(h.append(k4(new PS(1),i),a),a=i.length+Math.max(0,a-i.length)),h.append(k4(l,i),a),this.atCursorPos=d,this.pendingBuffer=d?ti.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=a)}static build(t,n,r,i,a){let s=new xT(t,n,r,a);return s.openEnd=Vr.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function k4(e,t){for(let n of t)e=new hm(n,[e],e.length);return e}class Ree extends If{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Zi=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Zi||(Zi={}));const Xb=Zi.LTR,uj=Zi.RTL;function ehe(e){let t=[];for(let n=0;n=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.fromn:t[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function nhe(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;S-=3)if(lh[S+1]==-b){let w=lh[S+2],T=w&2?i:w&4?w&1?a:i:0;T&&(Ci[h]=Ci[lh[S]]=T),o=S;break}}else{if(lh.length==189)break;lh[o++]=h,lh[o++]=p,lh[o++]=l}else if((v=Ci[h])==2||v==1){let S=v==i;l=S?0:1;for(let w=o-3;w>=0;w-=3){let T=lh[w+2];if(T&2)break;if(S)lh[w+2]|=2;else{if(T&4)break;lh[w+2]|=4}}}}}function bUe(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:e,o=il;)v==w&&(v=n[--S].from,w=S?n[S-1].to:e),Ci[--v]=b;l=d}else a=c,l++}}}function U$(e,t,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let l=t,c=0;ll&&s.push(new q0(l,S.from,b));let w=S.direction==Xb!=!(b%2);z$(e,w?r+1:r,i,S.inner,S.from,S.to,s),l=S.to}v=S.to}else{if(v==n||(d?Ci[v]!=o:Ci[v]==o))break;v++}p?U$(e,l,v,r+1,i,p,s):lt;){let d=!0,h=!1;if(!c||l>a[c-1].to){let S=Ci[l-1];S!=o&&(d=!1,h=S==16)}let p=!d&&o==1?[]:null,b=d?r:r+1,v=l;e:for(;;)if(c&&v==a[c-1].to){if(h)break e;let S=a[--c];if(!d)for(let w=S.from,T=c;;){if(w==t)break e;if(T&&a[T-1].to==w)w=a[--T].from;else{if(Ci[w-1]==o)break e;break}}if(p)p.push(S);else{S.toCi.length;)Ci[Ci.length]=256;let r=[],i=t==Xb?0:1;return z$(e,i,i,n,0,e.length,r),r}function rhe(e){return[new q0(0,e,0)]}let ihe="";function vUe(e,t,n,r,i){var a;let s=r.head-e.from,o=q0.find(t,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),l=t[o],c=l.side(i,n);if(s==c){let p=o+=i?1:-1;if(p<0||p>=t.length)return null;l=t[o=p],s=l.side(!i,n),c=l.side(i,n)}let d=uo(e.text,s,l.forward(i,n));(dl.to)&&(d=c),ihe=e.text.slice(Math.min(s,d),Math.max(s,d));let h=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return h&&d==c&&h.level+(i?0:1)e.some(t=>t)}),fhe=wn.define({combine:e=>e.some(t=>t)});class $O{constructor(t,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(t){return t.empty?this:new $O(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new $O(wt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const C4=gr.define({map:(e,t)=>e.map(t)});function md(e,t,n){let r=e.facet(lhe);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const TN=wn.define({combine:e=>e.length?e[0]:!0});let SUe=0;const W2=wn.define();class Ea{constructor(t,n,r,i,a){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new Ea(SUe++,t,r,i,o=>{let l=[W2.of(o)];return s&&l.push(Px.of(c=>{let d=c.plugin(o);return d?s(d):_n.none})),a&&l.push(a(o)),l})}static fromClass(t,n){return Ea.define(r=>new t(r),n)}}class Y8{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(md(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(n){md(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){md(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const hhe=wn.define(),cj=wn.define(),Px=wn.define(),phe=wn.define(),dj=wn.define(),mhe=wn.define();function Iee(e,t){let n=e.state.facet(mhe);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(e):a),i=[];return Vr.spans(r,t.from,t.to,{point(){},span(a,s,o,l){let c=a-t.from,d=s-t.from,h=i;for(let p=o.length-1;p>=0;p--,l--){let b=o[p].spec.bidiIsolate,v;if(b==null&&(b=OUe(t.text,c,d)),l>0&&h.length&&(v=h[h.length-1]).to==c&&v.direction==b)v.to=d,h=v.inner;else{let S={from:c,to:d,direction:b,inner:[]};h.push(S),h=S.inner}}}}),i}const ghe=wn.define();function bhe(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(ghe)){let s=a(e);s&&(s.left!=null&&(t=Math.max(t,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const Q2=wn.define();class gd{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new gd(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toAd)break;a+=2}if(!l)return r;new gd(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),s=l.toA,o=l.toB}}}class BR{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=fs.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,s,o,l)=>i.push(new gd(a,s,o,l))),this.changedRanges=i}static create(t,n,r){return new BR(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Dee extends qi{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new cs],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new gd(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:c,toA:d})=>dthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!_Ue(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let a=i>-1?wUe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:d}=this.hasComposition;r=new gd(c,d,t.changes.mapPos(c,-1),t.changes.mapPos(d,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(xn.ie||xn.chrome)&&!a&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),l=kUe(s,o,t.changes);return r=gd.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,a),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=xn.chrome||xn.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to=0?i[s]:null;if(!o)break;let{fromA:l,toA:c,fromB:d,toB:h}=o,p,b,v,S;if(r&&r.range.fromBd){let C=xT.build(this.view.state.doc,d,r.range.fromB,this.decorations,this.dynamicDecorationMap),I=xT.build(this.view.state.doc,r.range.toB,h,this.decorations,this.dynamicDecorationMap);b=C.breakAtStart,v=C.openStart,S=I.openEnd;let _=this.compositionView(r);I.breakAtStart?_.breakAfter=1:I.content.length&&_.merge(_.length,_.length,I.content[0],!1,I.openStart,0)&&(_.breakAfter=I.content[0].breakAfter,I.content.shift()),C.content.length&&_.merge(0,0,C.content[C.content.length-1],!0,0,C.openEnd)&&C.content.pop(),p=C.content.concat(_).concat(I.content)}else({content:p,breakAtStart:b,openStart:v,openEnd:S}=xT.build(this.view.state.doc,d,h,this.decorations,this.dynamicDecorationMap));let{i:w,off:T}=a.findPos(c,1),{i:x,off:k}=a.findPos(l,-1);Qfe(this,x,k,w,T,p,b,v,S)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new fm(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new hm(i,[n],n.length);let r=new cs;return r.append(n,0),r}fixCompositionDOM(t){let n=(a,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let o=qi.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let a=t.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?t.marks[a].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&r5(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(o.anchor)),c=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(xn.gecko&&o.empty&&!this.hasComposition&&EUe(l)){let h=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(h,l.node.childNodes[l.offset]||null)),l=c=new Do(h,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!TT(l.node,l.offset,d.anchorNode,d.anchorOffset)||!TT(c.node,c.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,o))&&(this.view.observer.ignore(()=>{xn.android&&xn.chrome&&this.dom.contains(d.focusNode)&&CUe(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=FR(this.view.root);if(h)if(o.empty){if(xn.gecko){let p=TUe(l.node,l.offset);if(p&&p!=3){let b=vhe(l.node,l.offset,p==1?1:-1);b&&(l=new Do(b.node,b.offset))}}h.collapse(l.node,l.offset),o.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=o.bidiLevel)}else if(h.extend){h.collapse(l.node,l.offset);try{h.extend(c.node,c.offset)}catch{}}else{let p=document.createRange();o.anchor>o.head&&([l,c]=[c,l]),p.setEnd(c.node,c.offset),p.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(p)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Do(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Do(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&TT(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=FR(t.root),{anchorNode:i,anchorOffset:a}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=cs.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let d=this.domAtPos(n.head+n.assoc);r.collapse(d.node,d.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let h=t.observer.selectionRange;t.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let a=qi.get(n.childNodes[i]);a instanceof cs&&(r=a.domAtPos(a.length))}return r?new Do(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=qi.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;s--){let o=this.children[s],l=a-o.breakAfter,c=l-o.length;if(lt||o.covers(1))&&(!r||o instanceof cs&&!(r instanceof cs&&n>=0))&&(r=o,i=c),a=c}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof cs))return null;for(;i.children.length;){let{i:o,off:l}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=l}if(!(i instanceof fm))return null;let a=uo(i.text,r);if(a==r)return null;let s=Zb(i.dom,r,a).getClientRects();for(let o=0;oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==Zi.LTR;for(let c=0,d=0;di)break;if(c>=r){let b=h.dom.getBoundingClientRect();if(n.push(b.height),s){let v=h.dom.lastChild,S=v?Dx(v):[];if(S.length){let w=S[S.length-1],T=l?w.right-b.left:b.right-w.left;T>o&&(o=T,this.minWidth=a,this.minWidthFrom=c,this.minWidthTo=p)}}}c=p+h.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Zi.RTL:Zi.LTR}measureTextSize(){for(let a of this.children)if(a instanceof cs){let s=a.measureTextSize();if(s)return s}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let a=Dx(t.firstChild)[0];n=t.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new Wfe(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],s=a?a.from-1:this.length;if(s>r){let o=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(_n.replace({widget:new Nee(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return _n.set(t)}updateDeco(){let t=this.view.state.facet(Px).map((i,a)=>(this.dynamicDecorationMap[a]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(phe).map((i,a)=>{let s=typeof i=="function";return s&&(n=!0),s?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Vr.join(r)));for(let i=t.length;in.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let a=bhe(this.view),s={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;nUe(this.view.scrollDOM,s,n.head0)r=r.childNodes[i-1],i=dm(r);else break}if(n>=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i=0)r=r.childNodes[i],i=0;else break}return null}function TUe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function AUe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return wt.cursor(t);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=uo(i.text,a,!1):o=uo(i.text,a);let l=r(i.text.slice(s,o));for(;s>0;){let c=uo(i.text,s,!1);if(r(i.text.slice(c,s))!=l)break;s=c}for(;oe?t.left-e:Math.max(0,e-t.right)}function IUe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function q8(e,t){return e.topt.top+1}function Pee(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function H$(e,t,n){let r,i,a,s,o=!1,l,c,d,h;for(let v=e.firstChild;v;v=v.nextSibling){let S=Dx(v);for(let w=0;wk||s==k&&a>x){r=v,i=T,a=x,s=k;let C=k?n0?w0)}x==0?n>T.bottom&&(!d||d.bottomT.top)&&(c=v,h=T):d&&q8(d,T)?d=Mee(d,T.bottom):h&&q8(h,T)&&(h=Pee(h,T.top))}}if(d&&d.bottom>=n?(r=l,i=d):h&&h.top<=n&&(r=c,i=h),!r)return{node:e,offset:0};let p=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return Lee(r,p,n);if(o&&r.contentEditable!="false")return H$(r,p,n);let b=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:b}}function Lee(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;on?d.top-n:n-d.bottom)-1;if(d.left-1<=t&&d.right+1>=t&&h=(d.left+d.right)/2,b=p;if((xn.chrome||xn.gecko)&&Zb(e,o).getBoundingClientRect().left==d.right&&(b=!p),h<=0)return{node:e,offset:o+(b?1:0)};i=o+(b?1:0),a=h}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function Ohe(e,t,n,r=-1){var i,a;let s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,l,{docHeight:c}=e.viewState,{x:d,y:h}=t,p=h-o;if(p<0)return 0;if(p>c)return e.state.doc.length;for(let C=e.viewState.heightOracle.textHeight/2,I=!1;l=e.elementAtHeight(p),l.type!=hl.Text;)for(;p=r>0?l.bottom+C:l.top-C,!(p>=0&&p<=c);){if(I)return n?null:0;I=!0,r=-r}h=o+p;let b=l.from;if(be.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:$ee(e,s,l,d,h);let v=e.dom.ownerDocument,S=e.root.elementFromPoint?e.root:v,w=S.elementFromPoint(d,h);w&&!e.contentDOM.contains(w)&&(w=null),w||(d=Math.max(s.left+1,Math.min(s.right-1,d)),w=S.elementFromPoint(d,h),w&&!e.contentDOM.contains(w)&&(w=null));let T,x=-1;if(w&&((i=e.docView.nearest(w))===null||i===void 0?void 0:i.isEditable)!=!1){if(v.caretPositionFromPoint){let C=v.caretPositionFromPoint(d,h);C&&({offsetNode:T,offset:x}=C)}else if(v.caretRangeFromPoint){let C=v.caretRangeFromPoint(d,h);C&&({startContainer:T,startOffset:x}=C,(!e.contentDOM.contains(T)||xn.safari&&DUe(T,x,d)||xn.chrome&&NUe(T,x,d))&&(T=void 0))}}if(!T||!e.docView.dom.contains(T)){let C=cs.find(e.docView,b);if(!C)return p>l.top+l.height/2?l.to:l.from;({node:T,offset:x}=H$(C.dom,d,h))}let k=e.docView.nearest(T);if(!k)return null;if(k.isWidget&&((a=k.dom)===null||a===void 0?void 0:a.nodeType)==1){let C=k.dom.getBoundingClientRect();return t.ye.defaultLineHeight*1.5){let o=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-o)*.5)/o);a+=l*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+A$(s,a,e.state.tabSize)}function DUe(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return Zb(e,r-1,r).getBoundingClientRect().left>n}function NUe(e,t,n){if(t!=0)return!1;for(let i=e;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=e.nodeType==1?e.getBoundingClientRect():Zb(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function V$(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==hl.Text))return r}return n}function PUe(e,t,n,r){let i=V$(e,t.head),a=!r||i.type!=hl.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let s=e.dom.getBoundingClientRect(),o=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(o==Zi.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(l!=null)return wt.cursor(l,n?-1:1)}return wt.cursor(n?i.to:i.from,n?-1:1)}function Fee(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let o=t,l=null;;){let c=vUe(i,a,s,o,n),d=ihe;if(!c){if(i.number==(n?e.state.doc.lines:1))return o;d=` -`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),c=e.visualLineSide(i,!n)}if(l){if(!l(d))return o}else{if(!r)return c;l=r(d)}o=c}}function MUe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return a=>{let s=r(a);return i==ca.Space&&(i=s),i==s}}function LUe(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return wt.cursor(i,t.assoc);let s=t.goalColumn,o,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i,t.assoc||-1),d=e.documentTop;if(c)s==null&&(s=c.left-l.left),o=a<0?c.top:c.bottom;else{let b=e.viewState.lineBlockAt(i);s==null&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-b.from))),o=(a<0?b.top:b.bottom)+d}let h=l.left+s,p=r??e.viewState.heightOracle.textHeight>>1;for(let b=0;;b+=10){let v=o+(p+b)*a,S=Ohe(e,{x:h,y:v},!1,a);if(vl.bottom||(a<0?Si)){let w=e.docView.coordsForChar(S),T=!w||v{if(t>a&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:wt.cursor(r,rnull),xn.gecko&&JUe(t.contentDOM.ownerDocument)}handleEvent(t){!WUe(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=FUe(t),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let s=!n[a].handlers.length,o=r[a];o&&s!=!o.handlers.length&&(i.removeEventListener(a,this.handleEvent),o=null),o||i.addEventListener(a,this.handleEvent,{passive:s})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()r.keyCode==t.keyCode))&&!t.ctrlKey||BUe.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,LO(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:xn.safari&&!xn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Bee(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){md(n.state,i)}}}function FUe(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(Bee(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(Bee(r.value,s))}}for(let r in Ef)n(r).handlers.push(Ef[r]);for(let r in wf)n(r).observers.push(wf[r]);return t}const She=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],BUe="dthko",Ehe=[16,17,18,20,91,92,224,225],_4=6;function A4(e){return Math.max(0,e)*.7+8}function UUe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class zUe{constructor(t,n,r,i){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=rUe(t.contentDOM),this.atoms=t.state.facet(dj).map(s=>s(t));let a=t.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Yr.allowMultipleSelections)&&jUe(t,n),this.dragging=VUe(t,n)&&khe(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&UUe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,a=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=bhe(this.view);t.clientX-s.left<=a.left+_4?r=-A4(a.left-t.clientX):t.clientX+s.right>=a.right-_4&&(r=A4(t.clientX-a.right)),t.clientY-s.top<=a.top+_4?i=-A4(a.top-t.clientY):t.clientY+s.bottom>=a.bottom-_4&&(i=A4(t.clientY-a.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;rthis.select(this.lastEvent),20)}}function jUe(e,t){let n=e.state.facet(ahe);return n.length?n[0](t):xn.mac?t.metaKey:t.ctrlKey}function HUe(e,t){let n=e.state.facet(she);return n.length?n[0](t):xn.mac?!t.altKey:!t.ctrlKey}function VUe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=FR(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function WUe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=qi.get(n))&&r.ignoreEvent(t))return!1;return!0}const Ef=Object.create(null),wf=Object.create(null),whe=xn.ie&&xn.ie_version<15||xn.ios&&xn.webkit_version<604;function QUe(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),The(e,n.value)},50)}function The(e,t){let{state:n}=e,r,i=1,a=n.toText(t),s=a.lines==n.selection.ranges.length;if(W$!=null&&n.selection.ranges.every(l=>l.empty)&&W$==a.toString()){let l=-1;r=n.changeByRange(c=>{let d=n.doc.lineAt(c.from);if(d.from==l)return{range:c};l=d.from;let h=n.toText((s?a.line(i++).text:t)+n.lineBreak);return{changes:{from:d.from,insert:h},range:wt.cursor(c.from+h.length)}})}else s?r=n.changeByRange(l=>{let c=a.line(i++);return{changes:{from:l.from,to:l.to,insert:c.text},range:wt.cursor(l.from+c.length)}}):r=n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}wf.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Ef.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);wf.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};wf.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Ef.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(ohe))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=GUe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new zUe(e,t,n,r)),r&&e.observer.ignore(()=>jfe(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function Uee(e,t,n,r){if(r==1)return wt.cursor(t,n);if(r==2)return AUe(e.state,t,n);{let i=cs.find(e.docView,t),a=e.state.doc.lineAt(i?i.posAtEnd:t),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return oe>=t.top&&e<=t.bottom,zee=(e,t,n)=>xhe(t,n)&&e>=n.left&&e<=n.right;function YUe(e,t,n,r){let i=cs.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&zee(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&zee(n,r,o)?1:s&&xhe(r,s)?-1:1}function jee(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:YUe(e,n,t.clientX,t.clientY)}}const qUe=xn.ie&&xn.ie_version<=11;let Hee=null,Vee=0,Wee=0;function khe(e){if(!qUe)return e.detail;let t=Hee,n=Wee;return Hee=e,Wee=Date.now(),Vee=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Vee+1)%3:1}function GUe(e,t){let n=jee(e,t),r=khe(t),i=e.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let l=jee(e,a),c,d=Uee(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let h=Uee(e,n.pos,n.bias,r),p=Math.min(h.from,d.from),b=Math.max(h.to,d.to);d=p1&&(c=ZUe(i,l.pos))?c:o?i.addRange(d):wt.create([d])}}}function ZUe(e,t){for(let n=0;n=t)return wt.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Ef.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=wt.range(a,s))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Ef.dragend=e=>(e.inputState.draggedContent=null,!1);function Qee(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&HUe(e,t)?{from:a.from,to:a.to}:null,o={from:i,insert:n},l=e.state.changes(s?[s,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Ef.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&Qee(e,t,r.filter(s=>s!=null).join(e.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return Qee(e,t,r,!0),!0}return!1};Ef.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=whe?null:t.clipboardData;return n?(The(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(QUe(e),!1)};function XUe(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function KUe(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:a}of e.selection.ranges){let s=e.doc.lineAt(a);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let W$=null;Ef.copy=Ef.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=KUe(e.state);if(!n&&!i)return!1;W$=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=whe?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(XUe(e,n),!1)};const Che=Rf.define();function _he(e,t){let n=[];for(let r of e.facet(che)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Che.of(!0)}):null}function Ahe(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=_he(e.state,t);n?e.dispatch(n):e.update([])}},10)}wf.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Ahe(e)};wf.blur=e=>{e.observer.clearSelectionRange(),Ahe(e)};wf.compositionstart=wf.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};wf.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,xn.chrome&&xn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};wf.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Ef.beforeinput=(e,t)=>{var n;let r;if(xn.chrome&&xn.android&&(r=She.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var a;(((a=window.visualViewport)===null||a===void 0?void 0:a.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const Yee=new Set;function JUe(e){Yee.has(e)||(Yee.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const qee=["pre-wrap","normal","pre-line","break-spaces"];class eze{constructor(t){this.lineWrapping=t,this.doc=ni.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return qee.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=a,l){this.heightSamples={};for(let c=0;c0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>a5&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return pl.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:l,toA:c,fromB:d,toB:h}=i[o],p=a.lineAt(l,Yi.ByPosNoHeight,r.setDoc(n),0,0),b=p.to>=c?p:a.lineAt(c,Yi.ByPosNoHeight,r,0,0);for(h+=b.to-c,c=b.to;o>0&&p.from<=i[o-1].toA;)l=i[o-1].fromA,d=i[o-1].fromB,o--,la*2){let o=t[n-1];o.break?t.splice(--n,1,o.left,null,o.right):t.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=t[r];o.break?t.splice(r,1,o.left,null,o.right):t.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i=a&&s(this.blockAt(0,r,i,a))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Yu extends Rhe{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new kh(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof Yu||i instanceof no&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof no?i=new Yu(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):pl.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(t,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class no extends pl{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*a);s=l/a,this.length>a+1&&(o=(this.height-l)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(t,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let c=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),d=n.doc.lineAt(c),h=o+d.length*l,p=Math.max(r,t-h/2);return new kh(d.from,d.length,p,h,0)}else{let c=Math.max(0,Math.min(s-a,Math.floor((t-r)/o))),{from:d,length:h}=n.doc.line(a+c);return new kh(d,h,r+o*c,o,0)}}lineAt(t,n,r,i,a){if(n==Yi.ByHeight)return this.blockAt(t,r,i,a);if(n==Yi.ByPosNoHeight){let{from:b,to:v}=r.doc.lineAt(t);return new kh(b,v-b,0,0,0)}let{firstLine:s,perLine:o,perChar:l}=this.heightMetrics(r,a),c=r.doc.lineAt(t),d=o+c.length*l,h=c.number-s,p=i+o*h+l*(c.from-a-h);return new kh(c.from,c.length,Math.max(i,Math.min(p,i+this.height-d)),d,0)}forEachLine(t,n,r,i,a,s){t=Math.max(t,a),n=Math.min(n,a+this.length);let{firstLine:o,perLine:l,perChar:c}=this.heightMetrics(r,a);for(let d=t,h=i;d<=n;){let p=r.doc.lineAt(d);if(d==t){let v=p.number-o;h+=l*v+c*(t-a-v)}let b=l+c*p.length;s(new kh(p.from,p.length,h,b,0)),h+=b,d=p.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let a=r[r.length-1];a instanceof no?r[r.length-1]=new no(a.length+i):r.push(null,new no(i-1))}if(t>0){let a=r[0];a instanceof no?r[0]=new no(t+a.length):r.unshift(new no(t-1),null)}return pl.of(r)}decomposeLeft(t,n){n.push(new no(t-1),null)}decomposeRight(t,n){n.push(null,new no(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let s=[],o=Math.max(n,i.from),l=-1;for(i.from>n&&s.push(new no(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let d=t.doc.lineAt(o).length;s.length&&s.push(null);let h=i.heights[i.index++];l==-1?l=h:Math.abs(h-l)>=a5&&(l=-2);let p=new Yu(d,h);p.outdated=!1,s.push(p),o+=d+1}o<=a&&s.push(null,new no(a-o).updateHeight(t,o));let c=pl.of(s);return(l<0||Math.abs(c.height-this.height)>=a5||Math.abs(l-this.heightMetrics(t,n).perLine)>=a5)&&(t.heightChanged=!0),c}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class nze extends pl{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let a=r+this.left.height;return to))return c;let d=n==Yi.ByPosNoHeight?Yi.ByPosNoHeight:Yi.ByPos;return l?c.join(this.right.lineAt(o,d,r,s,o)):this.left.lineAt(o,d,r,i,a).join(c)}forEachLine(t,n,r,i,a,s){let o=i+this.left.height,l=a+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,o,l,s);else{let c=this.lineAt(l,Yi.ByPos,r,i,a);t=t&&c.from<=n&&s(c),n>c.to&&this.right.forEachLine(c.to+1,n,r,o,l,s)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let a=[];t>0&&this.decomposeLeft(t,a);let s=a.length;for(let o of r)a.push(o);if(t>0&&Gee(a,s-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?pl.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,l=null;return i&&i.from<=n+a.length&&i.more?l=a=a.updateHeight(t,n,r,i):a.updateHeight(t,n,r),i&&i.from<=o+s.length&&i.more?l=s=s.updateHeight(t,o,r,i):s.updateHeight(t,o,r),l?this.balanced(a,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Gee(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof no&&(r=e[t+1])instanceof no&&e.splice(t-1,3,new no(n.length+1+r.length))}const rze=5;class fj{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Yu?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Yu(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t=rze)&&this.addLineDeco(i,a,s)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new Yu(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new no(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Yu)return t;let n=new Yu(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,t),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Yu)&&!this.isCovered?this.nodes.push(new Yu(0,-1)):(this.writtenTod.clientHeight||d.scrollWidth>d.clientWidth)&&h.overflow!="visible"){let p=d.getBoundingClientRect();a=Math.max(a,p.left),s=Math.min(s,p.right),o=Math.max(o,p.top),l=c==e.parentNode?p.bottom:Math.min(l,p.bottom)}c=h.position=="absolute"||h.position=="fixed"?d.offsetParent:d.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+t),bottom:Math.max(o,l)-(n.top+t)}}function oze(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Z8{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;rtypeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new eze(n),this.stateDeco=t.facet(Px).filter(r=>typeof r!="function"),this.heightMap=pl.empty().applyChanges(this.stateDeco,ni.empty,this.heightOracle.setDoc(t.doc),[new gd(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=_n.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);t.push(new R4(a,s))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?Xee:new dze(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:Y2(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Px).filter(d=>typeof d!="function");let i=t.changedRanges,a=gd.extendWithRanges(i,ize(r,this.stateDeco,t?t.changes:fs.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),a),this.heightMap.height!=s&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(fhe)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Zi.RTL:Zi.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let c=0,d=0;if(o.width&&o.height){let{scaleX:C,scaleY:I}=zfe(n,o);(this.scaleX!=C||this.scaleY!=I)&&(this.scaleX=C,this.scaleY=I,c|=8,s=l=!0)}let h=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=p)&&(this.paddingTop=h,this.paddingBottom=p,c|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,c|=8);let b=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=b&&(this.scrollAnchorHeight=-1,this.scrollTop=b),this.scrolledToBottom=Vfe(t.scrollDOM);let v=(this.printing?oze:sze)(n,this.paddingTop),S=v.top-this.pixelViewport.top,w=v.bottom-this.pixelViewport.bottom;this.pixelViewport=v;let T=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(T!=this.inView&&(this.inView=T,T&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,c|=8),l){let C=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(C)&&(s=!0),s||i.lineWrapping&&Math.abs(x-this.contentDOMWidth)>i.charWidth){let{lineHeight:I,charWidth:_,textHeight:A}=t.docView.measureTextSize();s=I>0&&i.refresh(a,I,_,A,x/_,C),s&&(t.docView.minWidth=0,c|=8)}S>0&&w>0?d=Math.max(S,w):S<0&&w<0&&(d=Math.min(S,w)),i.heightChanged=!1;for(let I of this.viewports){let _=I.from==this.viewport.from?C:t.docView.measureVisibleLineHeights(I);this.heightMap=(s?pl.empty().applyChanges(this.stateDeco,ni.empty,this.heightOracle,[new gd(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new tze(I.from,_))}i.heightChanged&&(c|=2)}let k=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return k&&(this.viewport=this.getViewport(d,this.scrollTarget)),this.updateForViewport(),(c&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,l=new R4(i.lineAt(s-r*1e3,Yi.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,Yi.ByHeight,a,0,0).to);if(n){let{head:c}=n.range;if(cl.to){let d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=i.lineAt(c,Yi.ByPos,a,0,0),p;n.y=="center"?p=(h.top+h.bottom)/2-d/2:n.y=="start"||n.y=="nearest"&&c=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a>1,s=i<<1;if(this.defaultTextDirection!=Zi.LTR&&!r)return[];let o=[],l=(c,d,h,p)=>{if(d-cc&&ww.from>=h.from&&w.to<=h.to&&Math.abs(w.from-c)w.fromT));if(!S){if(dw.from<=d&&w.to>=d)){let w=n.moveToLineBoundary(wt.cursor(d),!1,!0).head;w>c&&(d=w)}S=new Z8(c,d,this.gapSize(h,c,d,p))}o.push(S)};for(let c of this.viewportLines){if(c.lengthc.from&&l(c.from,p,c,d),bn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Vr.spans(t,this.viewport.from,this.viewport.to,{span(i,a){n.push({from:i,to:a})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,a)=>i.from!=n[a].from||i.to!=n[a].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||Y2(this.heightMap.lineAt(t,Yi.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return Y2(this.heightMap.lineAt(this.scaler.fromDOM(t),Yi.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return Y2(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class R4{constructor(t,n){this.from=t,this.to=n}}function uze(e,t,n){let r=[],i=e,a=0;return Vr.spans(n,e,t,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:a,to:s}=t[i],o=s-a;if(r<=o)return a+r;r-=o}}function D4(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function cze(e,t){for(let n of e)if(t(n))return n}const Xee={toDOM(e){return e},fromDOM(e){return e},scale:1};class dze{constructor(t,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:l})=>{let c=n.lineAt(o,Yi.ByPos,t,0,0).top,d=n.lineAt(l,Yi.ByPos,t,0,0).bottom;return i+=d-c,{from:o,to:l,top:c,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let o of this.viewports)o.domTop=s+(o.top-a)*this.scale,s=o.domBottom=o.domTop+(o.bottom-o.top),a=o.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let a=nY2(i,t)):e._content)}const N4=wn.define({combine:e=>e.join(" ")}),Q$=wn.define({combine:e=>e.indexOf(!0)>-1}),Y$=xg.newName(),Ihe=xg.newName(),Dhe=xg.newName(),Nhe={"&light":"."+Ihe,"&dark":"."+Dhe};function q$(e,t,n){return new xg(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return e;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):e+" "+r}})}const fze=q$("."+Y$,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Nhe),q2="￿";class hze{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Yr.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=q2}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let a=this.text.length;this.readNode(i);let s=i.nextSibling;if(s==n)break;let o=qi.get(i),l=qi.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:Kee(i))||Kee(s)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>a)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let a=-1,s=1,o;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(o=i.exec(n))&&(a=o.index,s=o[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);r=a+s}}readNode(t){if(t.cmIgnore)return;let n=qi.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(pze(t,r.node,r.offset)?n:0))}}function pze(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let o=a||s?[]:yze(t),l=new hze(o,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=vze(o,this.bounds.from)}else{let o=t.observer.selectionRange,l=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!D$(t.contentDOM,o.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(o.focusNode,o.focusOffset),c=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!D$(t.contentDOM,o.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(o.anchorNode,o.anchorOffset),d=t.viewport;if(xn.ios&&t.state.selection.main.empty&&l!=c&&(d.from>0||d.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:o}=t.bounds,l=i.from,c=null;(a===8||xn.android&&t.text.length=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(xn.mac||xn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=wt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:ni.of([" "])}):xn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=wt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:ni.of([" "])}),n){if(xn.ios&&e.inputState.flushIOSKey()||xn.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&LO(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||a==8&&n.insert.lengthi.head)&&LO(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&LO(e.contentDOM,"Delete",46)))return!0;let s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,l=()=>o||(o=gze(e,n,r));return e.state.facet(uhe).some(c=>c(e,n.from,n.to,s,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let s=!1,o="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),o=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function gze(e,t,n){let r,i=e.state,a=i.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let o=a.fromt.to?i.sliceDoc(t.to,a.to):"";r=i.replaceSelection(e.state.toText(o+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let o=i.changes(t),l=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let c=e.state.sliceDoc(t.from,t.to),d,h=n&&yhe(e,n.main.head);if(h){let v=t.insert.length-(t.to-t.from);d={from:h.from,to:h.to-v}}else d=e.state.doc.lineAt(a.head);let p=a.to-t.to,b=a.to-a.from;r=i.changeByRange(v=>{if(v.from==a.from&&v.to==a.to)return{changes:o,range:l||v.map(o)};let S=v.to-p,w=S-c.length;if(v.to-v.from!=b||e.state.sliceDoc(w,S)!=c||v.to>=d.from&&v.from<=d.to)return{range:v};let T=i.changes({from:w,to:S,insert:t.insert}),x=v.to-a.to;return{changes:T,range:l?wt.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):v.map(T)}})}else r={changes:o,selection:l&&i.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function bze(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a0&&o>0&&e.charCodeAt(s-1)==t.charCodeAt(o-1);)s--,o--;if(r=="end"){let l=Math.max(0,a-Math.min(s,o));n-=s+l-a}if(s=s?a-n:0;a-=l,o=a+(o-s),s=a}else if(o=o?a-n:0;a-=l,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function yze(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new Jee(n,r)),(i!=n||a!=r)&&t.push(new Jee(i,a))),t}function vze(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?wt.single(n+t,r+t):null}const Oze={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},X8=xn.ie&&xn.ie_version<=11;class Sze{constructor(t){this.view=t,this.active=!1,this.selectionRange=new iUe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(xn.ie&&xn.ie_version<=11||xn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),X8&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(TN)?r.root.activeElement!=this.dom:!r5(r.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(xn.ie&&xn.ie_version<=11||xn.android&&xn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&TT(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=xn.safari&&t.root.nodeType==11&&eUe(this.dom.ownerDocument)==this.dom&&Eze(this.view)||FR(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=r5(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&LO(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of t){let s=this.readMutation(a);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&r5(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new mze(this.view,t,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=Phe(this.view,n);return this.view.state==r&&this.view.update([]),i}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=ete(n,t.previousSibling||t.target.previousSibling,-1),i=ete(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function ete(e,t,n){for(;t;){let r=qi.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function Eze(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,a=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor);return TT(o.node,o.offset,a,s)&&([r,i,a,s]=[a,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:s}}class hn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||aUe(t.parent)||document,this.viewState=new Zee(t.state||Yr.create(t)),t.scrollTo&&t.scrollTo.is(C4)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(W2).map(r=>new Y8(r));for(let r of this.plugins)r.update(this);this.observer=new Sze(this),this.inputState=new $Ue(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Dee(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof $s?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,a=this.state;for(let p of t){if(p.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=p.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,l=null;t.some(p=>p.annotation(Che))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=_he(a,s),l||(o=1));let c=this.observer.delayedAndroidKey,d=null;if(c?(this.observer.clearDelayedAndroidKey(),d=this.observer.readChange(),(d&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(d=null)):this.observer.clear(),a.facet(Yr.phrases)!=this.state.facet(Yr.phrases))return this.setState(a);i=BR.create(this,a,t),i.flags|=o;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let p of t){if(h&&(h=h.map(p.changes)),p.scrollIntoView){let{main:b}=p.state.selection;h=new $O(b.empty?b:wt.cursor(b.head,b.head>b.anchor?-1:1))}for(let b of p.effects)b.is(C4)&&(h=b.value.clip(this.state))}this.viewState.update(i,h),this.bidiCache=UR.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(Q2)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(p=>p.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(N4)!=i.state.facet(N4)&&(this.viewState.mustMeasureContent=!0),(n||r||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(j$))try{p(i)}catch(b){md(this.state,b,"update listener")}(l||d)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),d&&!Phe(this,d)&&c.force&&LO(this.contentDOM,c.key,c.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new Zee(t),this.plugins=t.facet(W2).map(r=>new Y8(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new Dee(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(W2),r=t.state.facet(W2);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new Y8(a));else{let o=this.plugins[s];o.mustUpdate=t,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=t&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(s<0)if(Vfe(r))a=-1,s=this.viewState.heightMap.height;else{let b=this.viewState.scrollAnchorAt(i);a=b.from,s=b.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let d=c.map(b=>{try{return b.read(this)}catch(v){return md(this.state,v),tte}}),h=BR.create(this,this.state,[]),p=!1;h.flags|=l,n?n.flags|=l:n=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),p=this.docView.update(h));for(let b=0;b1||v<-1){i=i+v,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(j$))o(n)}get themeClasses(){return Y$+" "+(this.state.facet(Q$)?Dhe:Ihe)+" "+this.state.facet(N4)}updateAttrs(){let t=nte(this,hhe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(TN)?"true":"false",class:"cm-content",style:`${xn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),nte(this,cj,n);let r=this.observer.ignore(()=>{let i=$$(this.contentDOM,this.contentAttrs,n),a=$$(this.dom,this.editorAttrs,t);return i||a});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(hn.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Q2);let t=this.state.facet(hn.cspNonce);xg.mount(this.root,this.styleModules.concat(fze).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;nr.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return G8(this,t,Fee(this,t,n,r))}moveByGroup(t,n){return G8(this,t,Fee(this,t,n,r=>MUe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),a=r[n?r.length-1:0];return wt.cursor(a.side(n,i)+t.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return PUe(this,t,n,r)}moveVertically(t,n,r){return G8(this,t,LUe(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),Ohe(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),a=this.bidiSpans(i),s=a[q0.find(a,t-i.from,-1,n)];return sj(r,s.dir==Zi.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(dhe)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>wze)return rhe(t.length);let n=this.textDirectionAt(t.from),r;for(let a of this.bidiCache)if(a.from==t.from&&a.dir==n&&(a.fresh||nhe(a.isolates,r=Iee(this,t))))return a.order;r||(r=Iee(this,t));let i=yUe(t.text,n,r);return this.bidiCache.push(new UR(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||xn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{jfe(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return C4.of(new $O(typeof t=="number"?wt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return C4.of(new $O(wt.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return Ea.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Ea.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=xg.newName(),i=[N4.of(r),Q2.of(q$(`.${r}`,t))];return n&&n.dark&&i.push(Q$.of(!0)),i}static baseTheme(t){return Vg.lowest(Q2.of(q$("."+Y$,t,Nhe)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&qi.get(r)||qi.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}hn.styleModule=Q2;hn.inputHandler=uhe;hn.focusChangeEffect=che;hn.perLineTextDirection=dhe;hn.exceptionSink=lhe;hn.updateListener=j$;hn.editable=TN;hn.mouseSelectionStyle=ohe;hn.dragMovesSelection=she;hn.clickAddsSelectionRange=ahe;hn.decorations=Px;hn.outerDecorations=phe;hn.atomicRanges=dj;hn.bidiIsolatedRanges=mhe;hn.scrollMargins=ghe;hn.darkTheme=Q$;hn.cspNonce=wn.define({combine:e=>e.length?e[0]:""});hn.contentAttributes=cj;hn.editorAttributes=hhe;hn.lineWrapping=hn.contentAttributes.of({class:"cm-lineWrapping"});hn.announce=gr.define();const wze=4096,tte={};class UR{constructor(t,n,r,i,a,s){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(t,n){if(n.empty&&!t.some(a=>a.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Zi.LTR;for(let a=Math.max(0,t.length-10);a=0;i--){let a=r[i],s=typeof a=="function"?a(e):a;s&&L$(s,n)}return n}const Tze=xn.mac?"mac":xn.windows?"win":xn.linux?"linux":"key";function xze(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let l=0;lr.concat(i),[]))),n}function Cze(e,t,n){return Lhe(Mhe(e.state),t,e,n)}let D0=null;const _ze=4e3;function Aze(e,t=Tze){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let l=r[s];if(l==null)r[s]=o;else if(l!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,l,c,d)=>{var h,p;let b=n[s]||(n[s]=Object.create(null)),v=o.split(/ (?!$)/).map(T=>xze(T,t));for(let T=1;T{let C=D0={view:k,prefix:x,scope:s};return setTimeout(()=>{D0==C&&(D0=null)},_ze),!0}]})}let S=v.join(" ");i(S,!1);let w=b[S]||(b[S]={preventDefault:!1,stopPropagation:!1,run:((p=(h=b._any)===null||h===void 0?void 0:h.run)===null||p===void 0?void 0:p.slice())||[]});l&&w.run.push(l),c&&(w.preventDefault=!0),d&&(w.stopPropagation=!0)};for(let s of e){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let c of o){let d=n[c]||(n[c]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let h in d)d[h].run.push(s.any)}let l=s[t]||s.key;if(l)for(let c of o)a(c,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(c,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}function Lhe(e,t,n,r){let i=JBe(t),a=io(i,0),s=rd(a)==i.length&&i!=" ",o="",l=!1,c=!1,d=!1;D0&&D0.view==n&&D0.scope==r&&(o=D0.prefix+" ",Ehe.indexOf(t.keyCode)<0&&(c=!0,D0=null));let h=new Set,p=w=>{if(w){for(let T of w.run)if(!h.has(T)&&(h.add(T),T(n,t)))return w.stopPropagation&&(d=!0),!0;w.preventDefault&&(w.stopPropagation&&(d=!0),c=!0)}return!1},b=e[r],v,S;return b&&(p(b[o+P4(i,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(xn.windows&&t.ctrlKey&&t.altKey)&&(v=kg[t.keyCode])&&v!=i?(p(b[o+P4(v,t,!0)])||t.shiftKey&&(S=Ix[t.keyCode])!=i&&S!=v&&p(b[o+P4(S,t,!1)]))&&(l=!0):s&&t.shiftKey&&p(b[o+P4(i,t,!0)])&&(l=!0),!l&&p(b._any)&&(l=!0)),c&&(l=!0),l&&d&&t.stopPropagation(),l}class rC{constructor(t,n,r,i,a){this.className=t,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=$he(t);return[new rC(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return Rze(t,n,r)}}function $he(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Zi.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function ite(e,t,n){let r=wt.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:hl.Text}}function Rze(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==Zi.LTR,s=e.contentDOM,o=s.getBoundingClientRect(),l=$he(e),c=s.querySelector(".cm-line"),d=c&&window.getComputedStyle(c),h=o.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),p=o.right-(d?parseInt(d.paddingRight):0),b=V$(e,r),v=V$(e,i),S=b.type==hl.Text?b:null,w=v.type==hl.Text?v:null;if(S&&(e.lineWrapping||b.widgetLineBreaks)&&(S=ite(e,r,S)),w&&(e.lineWrapping||v.widgetLineBreaks)&&(w=ite(e,i,w)),S&&w&&S.from==w.from)return x(k(n.from,n.to,S));{let I=S?k(n.from,null,S):C(b,!1),_=w?k(null,n.to,w):C(v,!0),A=[];return(S||b).to<(w||v).from-(S&&w?1:0)||b.widgetLineBreaks>1&&I.bottom+e.defaultLineHeight/2<_.top?A.push(T(h,I.bottom,p,_.top)):I.bottom<_.top&&e.elementAtHeight((I.bottom+_.top)/2).type==hl.Text&&(I.bottom=_.top=(I.bottom+_.top)/2),x(I).concat(A).concat(x(_))}function T(I,_,A,U){return new rC(t,I-l.left,_-l.top-.01,A-I,U-_+.01)}function x({top:I,bottom:_,horizontal:A}){let U=[];for(let F=0;FQ&&Y.from=ee)break;j>W&&V(Math.max(ne,W),I==null&&ne<=Q,Math.min(j,ee),_==null&&j>=X,K.dir)}if(W=J.to+1,W>=ee)break}return P.length==0&&V(Q,I==null,X,_==null,e.textDirection),{top:U,bottom:F,horizontal:P}}function C(I,_){let A=o.top+(_?I.top:I.bottom);return{top:A,bottom:A,horizontal:[]}}}function Ize(e,t){return e.constructor==t.constructor&&e.eq(t)}class Dze{constructor(t,n){this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet(s5)!=t.state.facet(s5)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let n=0,r=t.facet(s5);for(;n!Ize(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of t)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const s5=wn.define();function Fhe(e){return[Ea.define(t=>new Dze(t,e)),s5.of(e)]}const Bhe=!xn.ios,Mx=wn.define({combine(e){return tp(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function Nze(e={}){return[Mx.of(e),Pze,Mze,Lze,fhe.of(!0)]}function Uhe(e){return e.startState.facet(Mx)!=e.state.facet(Mx)}const Pze=Fhe({above:!0,markers(e){let{state:t}=e,n=t.facet(Mx),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty?!a||Bhe:n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:wt.cursor(i.head,i.head>i.anchor?-1:1);for(let l of rC.forRange(e,s,o))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=Uhe(e);return n&&ate(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){ate(t.state,e)},class:"cm-cursorLayer"});function ate(e,t){t.style.animationDuration=e.facet(Mx).cursorBlinkRate+"ms"}const Mze=Fhe({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:rC.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||Uhe(e)},class:"cm-selectionLayer"}),G$={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Bhe&&(G$[".cm-line"].caretColor="transparent !important",G$[".cm-content"]={caretColor:"transparent !important"});const Lze=Vg.highest(hn.theme(G$)),zhe=gr.define({map(e,t){return e==null?null:t.mapPos(e)}}),G2=Us.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(zhe)?r.value:n,e)}}),$ze=Ea.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(G2);n==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(G2)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(G2),n=t!=null&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(G2)!=e&&this.view.dispatch({effects:zhe.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Fze(){return[G2,$ze]}function ste(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}function Bze(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class Uze{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(o,l,c,d)=>i(d,c,c+o[0].length,o,l);else if(typeof r=="function")this.addMatch=(o,l,c,d)=>{let h=r(o,l,c);h&&d(c,c+o[0].length,h)};else if(r)this.addMatch=(o,l,c,d)=>d(c,c+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(t){let n=new Tg,r=n.add.bind(n);for(let{from:i,to:a}of Bze(t,this.maxLength))ste(t.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,t,s,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((a,s,o,l)=>{l>t.view.viewport.from&&o1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let a of t.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let l=t.state.doc.lineAt(s),c=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){d=s;break}for(;op.push(T.range(S,w));if(l==c)for(this.regexp.lastIndex=d-l.from;(b=this.regexp.exec(l.text))&&b.indexthis.addMatch(w,t,S,v));n=n.update({filterFrom:d,filterTo:h,filter:(S,w)=>Sh,add:p})}}return n}}const Z$=/x/.unicode!=null?"gu":"g",zze=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Z$),jze={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let K8=null;function Hze(){var e;if(K8==null&&typeof document<"u"&&document.body){let t=document.body.style;K8=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return K8||!1}const o5=wn.define({combine(e){let t=tp(e,{render:null,specialChars:zze,addSpecialChars:null});return(t.replaceTabs=!Hze())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,Z$)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Z$)),t}});function Vze(e={}){return[o5.of(e),Wze()]}let ote=null;function Wze(){return ote||(ote=Ea.fromClass(class{constructor(e){this.view=e,this.decorations=_n.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(o5)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Uze({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=io(t[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,l=Sf(s.text,o,r-s.from);return _n.replace({widget:new Gze((o-l%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=_n.replace({widget:new qze(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(o5);e.startState.facet(o5)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const Qze="•";function Yze(e){return e>=32?Qze:e==10?"␤":String.fromCharCode(9216+e)}class qze extends If{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=Yze(this.code),r=t.state.phrase("Control character")+" "+(jze[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class Gze extends If{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function Zze(){return Kze}const Xze=_n.line({class:"cm-activeLine"}),Kze=Ea.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(Xze.range(i.from)),t=i.from)}return _n.set(n)}},{decorations:e=>e.decorations}),X$=2e3;function Jze(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>X$||n.off>X$||t.col<0||n.col<0){let s=Math.min(t.off,n.off),o=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let c=e.doc.line(l);c.length<=o&&a.push(wt.range(c.from+s,c.to+o))}}else{let s=Math.min(t.col,n.col),o=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let c=e.doc.line(l),d=A$(c.text,s,e.tabSize,!0);if(d<0)a.push(wt.cursor(c.to));else{let h=A$(c.text,o,e.tabSize);a.push(wt.range(c.from+d,c.from+h))}}}return a}function eje(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function lte(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>X$?-1:i==r.length?eje(e,t.clientX):Sf(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function tje(e,t){let n=lte(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),s=i.state.doc.lineAt(a);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,a,s){let o=lte(e,i);if(!o)return r;let l=Jze(e.state,n,o);return l.length?s?wt.create(l.concat(r.ranges)):wt.create(l):r}}:null}function nje(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return hn.mouseSelectionStyle.of((n,r)=>t(r)?tje(n,r):null)}const rje={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},ije={style:"cursor: crosshair"};function aje(e={}){let[t,n]=rje[e.key||"Alt"],r=Ea.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==t||n(i))},keyup(i){(i.keyCode==t||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,hn.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?ije:null})]}const h2="-10000px";class jhe{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(a=>a),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),a=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],o=n?[]:null;for(let l=0;ln[c]=l),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function sje(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const J8=wn.define({combine:e=>{var t,n,r;return{position:xn.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||sje}}}),ute=new WeakMap,hj=Ea.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(J8);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new jhe(e,pj,n=>this.createTooltip(n),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(J8);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=h2,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(xn.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==h2&&i.style.left=="0px"){let a=i.getBoundingClientRect();r=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,a)=>{let s=this.manager.tooltipViews[a];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(J8).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:a}=e,s=[];for(let o=0;o=Math.min(n.bottom,r.bottom)||h.rightMath.min(n.right,r.right)+.1){d.style.top=h2;continue}let b=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,v=b?7:0,S=p.right-p.left,w=(t=ute.get(c))!==null&&t!==void 0?t:p.bottom-p.top,T=c.offset||lje,x=this.view.textDirection==Zi.LTR,k=p.width>r.right-r.left?x?r.left:r.right-p.width:x?Math.min(h.left-(b?14:0)+T.x,r.right-S):Math.max(r.left,h.left-S+(b?14:0)-T.x),C=this.above[o];!l.strictSide&&(C?h.top-(p.bottom-p.top)-T.yr.bottom)&&C==r.bottom-h.bottom>h.top-r.top&&(C=this.above[o]=!C);let I=(C?h.top-r.top:r.bottom-h.bottom)-v;if(Ik&&U.top<_+w&&U.bottom>_&&(_=C?U.top-w-2-v:U.bottom+v+2);if(this.position=="absolute"?(d.style.top=(_-e.parent.top)/a+"px",d.style.left=(k-e.parent.left)/i+"px"):(d.style.top=_/a+"px",d.style.left=k/i+"px"),b){let U=h.left+(x?T.x:-T.x)-(k+14-7);b.style.left=U/i+"px"}c.overlap!==!0&&s.push({left:k,top:_,right:A,bottom:_+w}),d.classList.toggle("cm-tooltip-above",C),d.classList.toggle("cm-tooltip-below",!C),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=h2}},{eventObservers:{scroll(){this.maybeMeasure()}}}),oje=hn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),lje={x:0,y:0},pj=wn.define({enables:[hj,oje]}),zR=wn.define();class xN{static create(t){return new xN(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new jhe(t,zR,n=>this.createHostedView(n),n=>n.dom.remove())}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let i=r[t];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const uje=pj.compute([zR],e=>{let t=e.facet(zR).filter(n=>n);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:xN.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class cje{constructor(t,n,r,i,a){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;to.bottom||n.xo.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(d=>d.from<=i&&d.to>=i),c=l&&l.dir==Zi.RTL?-1:1;a=n.x{this.pending==o&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>md(t.state,l,"hover tooltip"))}else s&&t.dispatch({effects:this.setHover.of(s)})}get tooltip(){let t=this.view.plugin(hj),n=t?t.manager.tooltips.findIndex(r=>r.create==xN.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r&&i&&!dje(i.dom,t)||this.pending){let{pos:a}=r||this.pending,s=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:a;(a==s?this.view.posAtCoords(this.lastMove)!=a:!fje(this.view,a,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const M4=4;function dje(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-M4&&t.clientX<=n.right+M4&&t.clientY>=n.top-M4&&t.clientY<=n.bottom+M4}function fje(e,t,n,r,i,a){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,o)=t&&l<=n}function hje(e,t={}){let n=gr.define(),r=Us.define({create(){return null},update(i,a){if(i&&(t.hideOnChange&&(a.docChanged||a.selection)||t.hideOn&&t.hideOn(a,i)))return null;if(i&&a.docChanged){let s=a.changes.mapPos(i.pos,-1,so.TrackDel);if(s==null)return null;let o=Object.assign(Object.create(null),i);o.pos=s,i.end!=null&&(o.end=a.changes.mapPos(i.end)),i=o}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(pje)&&(i=null);return i},provide:i=>zR.from(i)});return[r,Ea.define(i=>new cje(i,e,r,n,t.hoverTime||300)),uje]}function Hhe(e,t){let n=e.plugin(hj);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const pje=gr.define(),cte=wn.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function Lx(e,t){let n=e.plugin(Vhe),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Vhe=Ea.fromClass(class{constructor(e){this.input=e.state.facet($x),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(cte);this.top=new L4(e,!0,t.topContainer),this.bottom=new L4(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(cte);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new L4(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new L4(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet($x);if(n!=this.input){let r=n.filter(l=>l),i=[],a=[],s=[],o=[];for(let l of r){let c=this.specs.indexOf(l),d;c<0?(d=l(e.view),o.push(d)):(d=this.panels[c],d.update&&d.update(e)),i.push(d),(d.top?a:s).push(d)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>hn.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class L4{constructor(t,n,r){this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let n of this.panels)n.destroy&&t.indexOf(n)<0&&n.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let t=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;t!=n.dom;)t=dte(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=dte(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function dte(e){let t=e.nextSibling;return e.remove(),t}const $x=wn.define({enables:Vhe});class pm extends Gb{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}pm.prototype.elementClass="";pm.prototype.toDOM=void 0;pm.prototype.mapMode=so.TrackBefore;pm.prototype.startSide=pm.prototype.endSide=-1;pm.prototype.point=!0;const l5=wn.define(),mje={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Vr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},kT=wn.define();function gje(e){return[Whe(),kT.of(Object.assign(Object.assign({},mje),e))]}const K$=wn.define({combine:e=>e.some(t=>t)});function Whe(e){let t=[bje];return e&&e.fixed===!1&&t.push(K$.of(!0)),t}const bje=Ea.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(kT).map(t=>new hte(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(K$),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(K$)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Vr.iter(this.view.state.facet(l5),this.view.viewport.from),r=[],i=this.gutters.map(a=>new yje(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let s=!0;for(let o of a.type)if(o.type==hl.Text&&s){J$(n,r,o.from);for(let l of i)l.line(this.view,o,r);s=!1}else if(o.widget)for(let l of i)l.widget(this.view,o)}else if(a.type==hl.Text){J$(n,r,a.from);for(let s of i)s.line(this.view,a,r)}else if(a.widget)for(let s of i)s.widget(this.view,a);for(let a of i)a.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(kT),n=e.state.facet(kT),r=e.docChanged||e.heightChanged||e.viewportChanged||!Vr.eq(e.startState.facet(l5),e.state.facet(l5),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=t.indexOf(a);s<0?i.push(new hte(this.view,a)):(this.gutters[s].update(e),i.push(this.gutters[s]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>hn.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Zi.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function fte(e){return Array.isArray(e)?e:[e]}function J$(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class yje{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Vr.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,a=(n.top-this.height)/t.scaleY,s=n.height/t.scaleY;if(this.i==i.elements.length){let o=new Qhe(t,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(t,s,a,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];J$(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(t,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class hte{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let a=i.target,s;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let l=a.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=i.clientY;let o=t.lineBlockAtHeight(s-t.documentTop);n.domEventHandlers[r](t,o,i)&&i.preventDefault()});this.markers=fte(n.markers(t)),n.initialSpacer&&(this.spacer=new Qhe(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=fte(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!Vr.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class Qhe{constructor(t,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,i)}update(t,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),vje(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,l=aa(o,l,c)||s(o,l,c):s}return r}})}});class eM extends pm{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function tM(e,t){return e.state.facet(mO).formatNumber(t,e.state)}const Sje=kT.compute([mO],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(Oje)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new eM(tM(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(mO)!=t.state.facet(mO),initialSpacer(t){return new eM(tM(t,pte(t.state.doc.lines)))},updateSpacer(t,n){let r=tM(n.view,pte(n.view.state.doc.lines));return r==t.number?t:new eM(r)},domEventHandlers:e.facet(mO).domEventHandlers}));function Eje(e={}){return[mO.of(e),Whe(),Sje]}function pte(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(wje.range(i)))}return Vr.of(t)});function xje(){return Tje}const Yhe=1024;let kje=0;class sd{constructor(t,n){this.from=t,this.to=n}}class lr{constructor(t={}){this.id=kje++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=vs.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}lr.closedBy=new lr({deserialize:e=>e.split(" ")});lr.openedBy=new lr({deserialize:e=>e.split(" ")});lr.group=new lr({deserialize:e=>e.split(" ")});lr.isolate=new lr({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});lr.contextHash=new lr({perNode:!0});lr.lookAhead=new lr({perNode:!0});lr.mounted=new lr({perNode:!0});class Fx{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[lr.mounted.id]}}const Cje=Object.create(null);class vs{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):Cje,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new vs(t.name||"",n,t.id,r);if(t.props){for(let a of t.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(lr.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(lr.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}vs.none=new vs("",Object.create(null),0,8);class iC{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(s|Fi.IncludeAnonymous);;){let c=!1;if(l.from<=a&&l.to>=i&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(o||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:bj(vs.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new pi(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new pi(vs.none,n,r,i)))}static build(t){return Ije(t)}}pi.empty=new pi(vs.none,[],[],0);class mj{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new mj(this.buffer,this.index)}}class _g{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return vs.none}toString(){let t=[];for(let n=0;n0));l=s[l+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),s=0;for(let o=t,l=0;o=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Bx(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;t!=c;t+=n){let d=o[t],h=l[t]+s.from;if(qhe(i,r,h,h+d.length)){if(d instanceof _g){if(a&Fi.ExcludeBuffers)continue;let p=d.findChild(0,d.buffer.length,n,r-h,i);if(p>-1)return new Ih(new _je(s,d,t,h),null,p)}else if(a&Fi.IncludeAnonymous||!d.type.isAnonymous||gj(d)){let p;if(!(a&Fi.IgnoreMounts)&&(p=Fx.get(d))&&!p.overlay)return new Mo(p.tree,h,t,s);let b=new Mo(d,h,t,s);return a&Fi.IncludeAnonymous||!b.type.isAnonymous?b:b.nextChild(n<0?d.children.length-1:0,n,r,i)}}}if(a&Fi.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&Fi.IgnoreOverlays)&&(i=Fx.get(this._tree))&&i.overlay){let a=t-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s=a:o>a))return new Mo(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function gte(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function eF(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class _je{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Ih extends Ghe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new Ih(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&Fi.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new Ih(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Ih(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Ih(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,a=r.buffer[this.index+3];if(a>i){let s=r.buffer[this.index+1];t.push(r.slice(i,a,s)),n.push(0)}return new pi(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Zhe(e){if(!e.length)return null;let t=0,n=e[0];for(let a=1;an.from||s.to=t){let o=new Mo(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(Bx(o,t,n,!1))}}return i?Zhe(i):r}class jR{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Mo)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof Mo?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&Fi.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Fi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&Fi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index-1)for(let a=n+t,s=t<0?-1:r._tree.children.length;a!=s;a+=t){let o=r._tree.children[a];if(this.mode&Fi.IncludeAnonymous||o instanceof _g||!o.type.isAnonymous||gj(o))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=a+1;break e}i=this.stack[--a]}for(let i=r;i=0;a--){if(a<0)return eF(this.node,t,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function gj(e){return e.children.some(t=>t instanceof _g||!t.type.isAnonymous||gj(t))}function Ije(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Yhe,reused:a=[],minRepeatType:s=r.types.length}=e,o=Array.isArray(n)?new mj(n,n.length):n,l=r.types,c=0,d=0;function h(I,_,A,U,F,P){let{id:V,start:Q,end:X,size:Y}=o,W=d;for(;Y<0;)if(o.next(),Y==-1){let j=a[V];A.push(j),U.push(Q-I);return}else if(Y==-3){c=V;return}else if(Y==-4){d=V;return}else throw new RangeError(`Unrecognized record size: ${Y}`);let ee=l[V],J,K,ne=Q-I;if(X-Q<=i&&(K=w(o.pos-_,F))){let j=new Uint16Array(K.size-K.skip),Ce=o.pos-K.size,ye=j.length;for(;o.pos>Ce;)ye=T(K.start,j,ye);J=new _g(j,X-K.start,r),ne=K.start-I}else{let j=o.pos-Y;o.next();let Ce=[],ye=[],te=V>=s?V:-1,ve=0,Se=X;for(;o.pos>j;)te>=0&&o.id==te&&o.size>=0?(o.end<=Se-i&&(v(Ce,ye,Q,ve,o.end,Se,te,W),ve=Ce.length,Se=o.end),o.next()):P>2500?p(Q,j,Ce,ye):h(Q,j,Ce,ye,te,P+1);if(te>=0&&ve>0&&ve-1&&ve>0){let he=b(ee);J=bj(ee,Ce,ye,0,Ce.length,0,X-Q,he,he)}else J=S(ee,Ce,ye,X-Q,W-X)}A.push(J),U.push(ne)}function p(I,_,A,U){let F=[],P=0,V=-1;for(;o.pos>_;){let{id:Q,start:X,end:Y,size:W}=o;if(W>4)o.next();else{if(V>-1&&X=0;Y-=3)Q[W++]=F[Y],Q[W++]=F[Y+1]-X,Q[W++]=F[Y+2]-X,Q[W++]=W;A.push(new _g(Q,F[2]-X,r)),U.push(X-I)}}function b(I){return(_,A,U)=>{let F=0,P=_.length-1,V,Q;if(P>=0&&(V=_[P])instanceof pi){if(!P&&V.type==I&&V.length==U)return V;(Q=V.prop(lr.lookAhead))&&(F=A[P]+V.length+Q)}return S(I,_,A,U,F)}}function v(I,_,A,U,F,P,V,Q){let X=[],Y=[];for(;I.length>U;)X.push(I.pop()),Y.push(_.pop()+A-F);I.push(S(r.types[V],X,Y,P-F,Q-P)),_.push(F-A)}function S(I,_,A,U,F=0,P){if(c){let V=[lr.contextHash,c];P=P?[V].concat(P):[V]}if(F>25){let V=[lr.lookAhead,F];P=P?[V].concat(P):[V]}return new pi(I,_,A,U,P)}function w(I,_){let A=o.fork(),U=0,F=0,P=0,V=A.end-i,Q={size:0,start:0,skip:0};e:for(let X=A.pos-I;A.pos>X;){let Y=A.size;if(A.id==_&&Y>=0){Q.size=U,Q.start=F,Q.skip=P,P+=4,U+=4,A.next();continue}let W=A.pos-Y;if(Y<0||W=s?4:0,J=A.start;for(A.next();A.pos>W;){if(A.size<0)if(A.size==-3)ee+=4;else break e;else A.id>=s&&(ee+=4);A.next()}F=J,U+=Y,P+=ee}return(_<0||U==I)&&(Q.size=U,Q.start=F,Q.skip=P),Q.size>4?Q:void 0}function T(I,_,A){let{id:U,start:F,end:P,size:V}=o;if(o.next(),V>=0&&U4){let X=o.pos-(V-4);for(;o.pos>X;)A=T(I,_,A)}_[--A]=Q,_[--A]=P-I,_[--A]=F-I,_[--A]=U}else V==-3?c=U:V==-4&&(d=U);return A}let x=[],k=[];for(;o.pos>0;)h(e.start||0,e.bufferStart||0,x,k,-1,0);let C=(t=e.length)!==null&&t!==void 0?t:x.length?k[0]+x[0].length:0;return new pi(l[e.topID],x.reverse(),k.reverse(),C)}const bte=new WeakMap;function u5(e,t){if(!e.isAnonymous||t instanceof _g||t.type!=e)return 1;let n=bte.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof pi)){n=1;break}n+=u5(e,r)}bte.set(t,n)}return n}function bj(e,t,n,r,i,a,s,o,l){let c=0;for(let v=r;v=d)break;_+=A}if(k==C+1){if(_>d){let A=v[C];b(A.children,A.positions,0,A.children.length,S[C]+x);continue}h.push(v[C])}else{let A=S[k-1]+v[k-1].length-I;h.push(bj(e,v,S,C,k,I,A,null,l))}p.push(I+x-a)}}return b(t,n,r,i,0),(o||l)(h,p,s)}class Xhe{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof Ih?this.setBuffer(t.context.buffer,t.index,n):t instanceof Mo&&this.map.set(t.tree,n)}get(t){return t instanceof Ih?this.getBuffer(t.context.buffer,t.index):t instanceof Mo?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Jp{constructor(t,n,r,i,a=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new Jp(0,t.length,t,0,!1,r)];for(let a of n)a.to>t.length&&i.push(a);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,s=t.length?t[0]:null;for(let o=0,l=0,c=0;;o++){let d=o=r)for(;s&&s.from=p.from||h<=p.to||c){let b=Math.max(p.from,l)-c,v=Math.min(p.to,h)-c;p=b>=v?null:new Jp(b,v,p.tree,p.offset+c,o>0,!!d)}if(p&&i.push(p),s.to>h)break;s=anew sd(i.from,i.to)):[new sd(0,0)]:[new sd(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let a=i.advance();if(a)return a}}};class Dje{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function Khe(e){return(t,n,r,i)=>new Pje(t,e,n,r,i)}class yte{constructor(t,n,r,i,a){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=a}}function vte(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class Nje{constructor(t,n,r,i,a,s,o){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=a,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const tF=new lr({perNode:!0});class Pje{constructor(t,n,r,i,a){this.nest=n,this.input=r,this.fragments=i,this.ranges=a,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new pi(r.type,r.children,r.positions,r.length,r.propValues.concat([[tF,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[lr.mounted.id]=new Fx(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)o=!1;else if(t.hasNode(i)){if(n){let c=n.mounts.find(d=>d.frag.from<=i.from&&d.frag.to>=i.to&&d.mount.overlay);if(c)for(let d of c.mount.overlay){let h=d.from+c.pos,p=d.to+c.pos;h>=i.from&&p<=i.to&&!n.ranges.some(b=>b.fromh)&&n.ranges.push({from:h,to:p})}}o=!1}else if(r&&(s=Mje(r.ranges,i.from,i.to)))o=s!=2;else if(!i.type.isAnonymous&&(a=this.nest(i,this.input))&&(i.fromnew sd(h.from-i.from,h.to-i.from)):null,i.tree,d.length?d[0].from:i.from)),a.overlay?d.length&&(r={ranges:d,depth:0,prev:r}):o=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new sd(i.from,i.to)),l.fromnew sd(d.from-n.start,d.to-n.start)),n.target,c[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function Mje(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function Ote(e,t,n,r,i,a){if(t=t&&n.enter(r,1,Fi.IgnoreOverlays|Fi.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof pi)n=n.children[0];else break}return!1}}let $je=class{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(tF))!==null&&n!==void 0?n:r.to,this.inner=new Ste(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(tF))!==null&&t!==void 0?t:n.to,this.inner=new Ste(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let a=this.inner.cursor.node;a;a=a.parent){let s=(r=a.tree)===null||r===void 0?void 0:r.prop(lr.mounted);if(s&&s.parser==n)for(let o=this.fragI;o=a.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:a.from-l.offset,mount:s})}}}return i}};function Ete(e,t){let n=null,r=t;for(let i=1,a=0;i=o)break;l.to<=s||(n||(r=n=t.slice()),l.fromo&&n.splice(a+1,0,new sd(o,l.to))):l.to>o?n[a--]=new sd(o,l.to):n.splice(a--,1))}}return r}function Fje(e,t,n,r){let i=0,a=0,s=!1,o=!1,l=-1e9,c=[];for(;;){let d=i==e.length?1e9:s?e[i].to:e[i].from,h=a==t.length?1e9:o?t[a].to:t[a].from;if(s!=o){let p=Math.max(l,n),b=Math.min(d,h,r);pnew sd(p.from+r,p.to+r)),h=Fje(t,d,l,c);for(let p=0,b=l;;p++){let v=p==h.length,S=v?c:h[p].from;if(S>b&&n.push(new Jp(b,S,i.tree,-s,a.from>=b||a.openStart,a.to<=S||a.openEnd)),v)break;b=h[p].to}}else n.push(new Jp(l,c,i.tree,-s,a.from>=s||a.openStart,a.to<=o||a.openEnd))}return n}let Bje=0;class sf{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=Bje++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new sf([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new HR;return n=>n.modified.indexOf(t)>-1?n:HR.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let Uje=0;class HR{constructor(){this.instances=[],this.id=Uje++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(o=>o.base==t&&zje(n,o.modified));if(r)return r;let i=[],a=new sf(i,t,n);for(let o of n)o.instances.push(a);let s=jje(n);for(let o of t.set)if(!o.modified.length)for(let l of s)i.push(HR.get(o,l));return a}}function zje(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function jje(e){let t=[[]];for(let n=0;nr.length-n.length)}function pE(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let h=0;;){if(o=="..."&&h>0&&h+3==i.length){s=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!p)throw new RangeError("Invalid path: "+i);if(a.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),h+=p[0].length,h==i.length)break;let b=i[h++];if(h==i.length&&b=="!"){s=0;break}if(b!="/")throw new RangeError("Invalid path: "+i);o=i.slice(h)}let l=a.length-1,c=a[l];if(!c)throw new RangeError("Invalid path: "+i);let d=new VR(r,s,l>0?a.slice(0,l):null);t[c]=d.sort(t[c])}}return Jhe.add(t)}const Jhe=new lr;class VR{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=i;for(let o of a)for(let l of o.set){let c=n[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:r}}function Hje(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Vje(e,t,n,r=0,i=e.length){let a=new Wje(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,"",a.highlighters),a.flush(i)}class Wje{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,a){let{type:s,from:o,to:l}=t;if(o>=r||l<=n)return;s.isTop&&(a=this.highlighters.filter(b=>!b.scope||b.scope(s)));let c=i,d=Qje(t)||VR.empty,h=Hje(a,d.tags);if(h&&(c&&(c+=" "),c+=h,d.mode==1&&(i+=(i?" ":"")+h)),this.startSpan(Math.max(n,o),c),d.opaque)return;let p=t.tree&&t.tree.prop(lr.mounted);if(p&&p.overlay){let b=t.node.enter(p.overlay[0].from+o,1),v=this.highlighters.filter(w=>!w.scope||w.scope(p.tree.type)),S=t.firstChild();for(let w=0,T=o;;w++){let x=w=k||!t.nextSibling())););if(!x||k>r)break;T=x.to+o,T>n&&(this.highlightRange(b.cursor(),Math.max(n,x.from+o),Math.min(r,T),"",v),this.startSpan(Math.min(r,T),c))}S&&t.parent()}else if(t.firstChild()){p&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,a),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function Qje(e){let t=e.type.prop(Jhe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const nn=sf.define,F4=nn(),k0=nn(),Tte=nn(k0),xte=nn(k0),C0=nn(),B4=nn(C0),nM=nn(C0),fh=nn(),V1=nn(fh),uh=nn(),ch=nn(),nF=nn(),p2=nn(nF),U4=nn(),Ee={comment:F4,lineComment:nn(F4),blockComment:nn(F4),docComment:nn(F4),name:k0,variableName:nn(k0),typeName:Tte,tagName:nn(Tte),propertyName:xte,attributeName:nn(xte),className:nn(k0),labelName:nn(k0),namespace:nn(k0),macroName:nn(k0),literal:C0,string:B4,docString:nn(B4),character:nn(B4),attributeValue:nn(B4),number:nM,integer:nn(nM),float:nn(nM),bool:nn(C0),regexp:nn(C0),escape:nn(C0),color:nn(C0),url:nn(C0),keyword:uh,self:nn(uh),null:nn(uh),atom:nn(uh),unit:nn(uh),modifier:nn(uh),operatorKeyword:nn(uh),controlKeyword:nn(uh),definitionKeyword:nn(uh),moduleKeyword:nn(uh),operator:ch,derefOperator:nn(ch),arithmeticOperator:nn(ch),logicOperator:nn(ch),bitwiseOperator:nn(ch),compareOperator:nn(ch),updateOperator:nn(ch),definitionOperator:nn(ch),typeOperator:nn(ch),controlOperator:nn(ch),punctuation:nF,separator:nn(nF),bracket:p2,angleBracket:nn(p2),squareBracket:nn(p2),paren:nn(p2),brace:nn(p2),content:fh,heading:V1,heading1:nn(V1),heading2:nn(V1),heading3:nn(V1),heading4:nn(V1),heading5:nn(V1),heading6:nn(V1),contentSeparator:nn(fh),list:nn(fh),quote:nn(fh),emphasis:nn(fh),strong:nn(fh),link:nn(fh),monospace:nn(fh),strikethrough:nn(fh),inserted:nn(),deleted:nn(),changed:nn(),invalid:nn(),meta:U4,documentMeta:nn(U4),annotation:nn(U4),processingInstruction:nn(U4),definition:sf.defineModifier(),constant:sf.defineModifier(),function:sf.defineModifier(),standard:sf.defineModifier(),local:sf.defineModifier(),special:sf.defineModifier()};epe([{tag:Ee.link,class:"tok-link"},{tag:Ee.heading,class:"tok-heading"},{tag:Ee.emphasis,class:"tok-emphasis"},{tag:Ee.strong,class:"tok-strong"},{tag:Ee.keyword,class:"tok-keyword"},{tag:Ee.atom,class:"tok-atom"},{tag:Ee.bool,class:"tok-bool"},{tag:Ee.url,class:"tok-url"},{tag:Ee.labelName,class:"tok-labelName"},{tag:Ee.inserted,class:"tok-inserted"},{tag:Ee.deleted,class:"tok-deleted"},{tag:Ee.literal,class:"tok-literal"},{tag:Ee.string,class:"tok-string"},{tag:Ee.number,class:"tok-number"},{tag:[Ee.regexp,Ee.escape,Ee.special(Ee.string)],class:"tok-string2"},{tag:Ee.variableName,class:"tok-variableName"},{tag:Ee.local(Ee.variableName),class:"tok-variableName tok-local"},{tag:Ee.definition(Ee.variableName),class:"tok-variableName tok-definition"},{tag:Ee.special(Ee.variableName),class:"tok-variableName2"},{tag:Ee.definition(Ee.propertyName),class:"tok-propertyName tok-definition"},{tag:Ee.typeName,class:"tok-typeName"},{tag:Ee.namespace,class:"tok-namespace"},{tag:Ee.className,class:"tok-className"},{tag:Ee.macroName,class:"tok-macroName"},{tag:Ee.propertyName,class:"tok-propertyName"},{tag:Ee.operator,class:"tok-operator"},{tag:Ee.comment,class:"tok-comment"},{tag:Ee.meta,class:"tok-meta"},{tag:Ee.invalid,class:"tok-invalid"},{tag:Ee.punctuation,class:"tok-punctuation"}]);var rM;const yb=new lr;function vj(e){return wn.define({combine:e?t=>t.concat(e):void 0})}const Oj=new lr;class od{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Yr.prototype.hasOwnProperty("tree")||Object.defineProperty(Yr.prototype,"tree",{get(){return zi(this)}}),this.parser=n,this.extension=[Ag.of(this),Yr.languageData.of((a,s,o)=>{let l=kte(a,s,o),c=l.type.prop(yb);if(!c)return[];let d=a.facet(c),h=l.type.prop(Oj);if(h){let p=l.resolve(s-l.from,o);for(let b of h)if(b.test(p,a)){let v=a.facet(b.facet);return b.type=="replace"?v:v.concat(d)}}return d})].concat(r)}isActiveAt(t,n,r=-1){return kte(t,n,r).type.prop(yb)==this.data}findRegions(t){let n=t.facet(Ag);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(yb)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(lr.mounted);if(o){if(o.tree.prop(yb)==this.data){if(o.overlay)for(let l of o.overlay)r.push({from:l.from+s,to:l.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let l=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new MS(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function zi(e){let t=e.field(od.state,!1);return t?t.tree:pi.empty}class Yje{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let m2=null;class Ux{constructor(t,n,r=[],i,a,s,o,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Ux(t,n,[],pi.empty,0,r,[],null)}startParse(){return this.parser.startParse(new Yje(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=pi.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Jp.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=m2;m2=this;try{return t()}finally{m2=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=Cte(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,d,h,p)=>l.push({fromA:c,toA:d,fromB:h,toB:p})),r=Jp.applyChanges(r,l),i=pi.empty,a=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){o=[];for(let c of this.skipped){let d=t.mapPos(c.from,1),h=t.mapPos(c.to,-1);dt.from&&(this.fragments=Cte(this.fragments,i,a),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends yj{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let l=m2;if(l){for(let c of i)l.tempSkipped.push(c);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new pi(vs.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return m2}}function Cte(e,t,n){return Jp.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class LS{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new LS(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Ux.create(t.facet(Ag).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new LS(r)}}od.state=Us.define({create:LS.init,update(e,t){for(let n of t.effects)if(n.is(od.setState))return n.value;return t.startState.facet(Ag)!=t.state.facet(Ag)?LS.init(t.state):e.apply(t)}});let tpe=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(tpe=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const iM=typeof navigator<"u"&&(!((rM=navigator.scheduling)===null||rM===void 0)&&rM.isInputPending)?()=>navigator.scheduling.isInputPending():null,qje=Ea.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(od.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(od.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=tpe(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=a.context.work(()=>iM&&iM()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:od.setState.of(new LS(a.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>md(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ag=wn.define({combine(e){return e.length?e[0]:null},enables:e=>[od.state,qje,hn.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class zx{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class WR{constructor(t,n,r,i,a,s=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=a,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new WR(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(a=>a==n))return i;if(r)for(let i of t)for(let a of i.alias){let s=n.indexOf(a);if(s>-1&&(a.length>2||!/\w/.test(n[s-1])&&!/\w/.test(n[s+a.length])))return i}return null}}const Gje=wn.define(),aC=wn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function QR(e){let t=e.facet(aC);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function jx(e,t){let n="",r=e.tabSize,i=e.facet(aC)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let a=0;a=t?Zje(e,n,t):null}class kN{constructor(t,n={}){this.state=t,this.options=n,this.unit=QR(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(t,n=t.length){return Sf(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),a=this.options.overrideIndentation;if(a){let s=a(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const sC=new lr;function Zje(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s!=r.node;s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return npe(r,e,n)}function npe(e,t,n){for(let r=e;r;r=r.next){let i=Kje(r.node);if(i)return i(Ej.create(t,n,r))}return 0}function Xje(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function Kje(e){let t=e.type.prop(sC);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(lr.closedBy))){let i=e.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>rpe(s,!0,1,void 0,a&&!Xje(s)?i.from:void 0)}return e.parent==null?Jje:null}function Jje(){return 0}class Ej extends kN{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new Ej(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(eHe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return npe(this.context.next,this.base,this.pos)}}function eHe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function tHe(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let l=t.childAfter(o);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromrpe(r,t,n,e)}function rpe(e,t,n,r,i){let a=e.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==e.pos+s,l=t?tHe(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*n)}const rHe=e=>e.baseIndent;function c5({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const iHe=200;function aHe(){return Yr.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+iHe)return e;let a=n.sliceString(i.from,r);if(!t.some(c=>c.test(a)))return e;let{state:s}=e,o=-1,l=[];for(let{head:c}of s.selection.ranges){let d=s.doc.lineAt(c);if(d.from==o)continue;o=d.from;let h=Sj(s,d.from);if(h==null)continue;let p=/^\s*/.exec(d.text)[0],b=jx(s,h);p!=b&&l.push({from:d.from,to:d.from+p.length,insert:b})}return l.length?[e,{changes:l,sequential:!0}]:e})}const ipe=wn.define(),mE=new lr;function ape(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(a&&o.from=t&&c.to>n&&(a=c)}}return a}function oHe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function YR(e,t,n){for(let r of e.facet(ipe)){let i=r(e,t,n);if(i)return i}return sHe(e,t,n)}function spe(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const CN=gr.define({map:spe}),oC=gr.define({map:spe});function ope(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const Kb=Us.define({create(){return _n.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(CN)&&!lHe(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(wj),i=r?_n.replace({widget:new mHe(r(t.state,n.value))}):_te;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(oC)&&(e=e.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(i,a)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return e},provide:e=>hn.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>a)&&(i={from:a,to:s})}),i}function lHe(e,t,n){let r=!1;return e.between(t,t,(i,a)=>{i==t&&a==n&&(r=!0)}),r}function lpe(e,t){return e.field(Kb,!1)?t:t.concat(gr.appendConfig.of(cpe()))}const uHe=e=>{for(let t of ope(e)){let n=YR(e.state,t.from,t.to);if(n)return e.dispatch({effects:lpe(e.state,[CN.of(n),upe(e,n)])}),!0}return!1},cHe=e=>{if(!e.state.field(Kb,!1))return!1;let t=[];for(let n of ope(e)){let r=qR(e.state,n.from,n.to);r&&t.push(oC.of(r),upe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function upe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return hn.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const dHe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(Kb,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(oC.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},hHe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:uHe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:cHe},{key:"Ctrl-Alt-[",run:dHe},{key:"Ctrl-Alt-]",run:fHe}],pHe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},wj=wn.define({combine(e){return tp(e,pHe)}});function cpe(e){let t=[Kb,yHe];return e&&t.push(wj.of(e)),t}function dpe(e,t){let{state:n}=e,r=n.facet(wj),i=s=>{let o=e.lineBlockAt(e.posAtDOM(s.target)),l=qR(e.state,o.from,o.to);l&&e.dispatch({effects:oC.of(l)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const _te=_n.replace({widget:new class extends If{toDOM(e){return dpe(e,null)}}});class mHe extends If{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return dpe(t,this.value)}}const gHe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class aM extends pm{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function bHe(e={}){let t=Object.assign(Object.assign({},gHe),e),n=new aM(t,!0),r=new aM(t,!1),i=Ea.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(Ag)!=s.state.facet(Ag)||s.startState.field(Kb,!1)!=s.state.field(Kb,!1)||zi(s.startState)!=zi(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new Tg;for(let l of s.viewportLineBlocks){let c=qR(s.state,l.from,l.to)?r:YR(s.state,l.from,l.to)?n:null;c&&o.add(l.from,l.from,c)}return o.finish()}}),{domEventHandlers:a}=t;return[i,gje({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||Vr.empty},initialSpacer(){return new aM(t,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,l)=>{if(a.click&&a.click(s,o,l))return!0;let c=qR(s.state,o.from,o.to);if(c)return s.dispatch({effects:oC.of(c)}),!0;let d=YR(s.state,o.from,o.to);return d?(s.dispatch({effects:CN.of(d)}),!0):!1}})}),cpe()]}const yHe=hn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class lC{constructor(t,n){this.specs=t;let r;function i(o){let l=xg.newName();return(r||(r=Object.create(null)))["."+l]=o,l}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof od?o=>o.prop(yb)==s.data:s?o=>o==s:void 0,this.style=epe(t.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new xg(r):null,this.themeType=n.themeType}static define(t,n){return new lC(t,n||{})}}const rF=wn.define(),fpe=wn.define({combine(e){return e.length?[e[0]]:null}});function sM(e){let t=e.facet(rF);return t.length?t:e.facet(fpe)}function hpe(e,t){let n=[OHe],r;return e instanceof lC&&(e.module&&n.push(hn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(fpe.of(e)):r?n.push(rF.computeN([hn.darkTheme],i=>i.facet(hn.darkTheme)==(r=="dark")?[e]:[])):n.push(rF.of(e)),n}class vHe{constructor(t){this.markCache=Object.create(null),this.tree=zi(t.state),this.decorations=this.buildDeco(t,sM(t.state))}update(t){let n=zi(t.state),r=sM(t.state),i=r!=sM(t.startState);n.length{r.add(s,o,this.markCache[l]||(this.markCache[l]=_n.mark({class:l})))},i,a);return r.finish()}}const OHe=Vg.high(Ea.fromClass(vHe,{decorations:e=>e.decorations})),SHe=lC.define([{tag:Ee.meta,color:"#404740"},{tag:Ee.link,textDecoration:"underline"},{tag:Ee.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ee.emphasis,fontStyle:"italic"},{tag:Ee.strong,fontWeight:"bold"},{tag:Ee.strikethrough,textDecoration:"line-through"},{tag:Ee.keyword,color:"#708"},{tag:[Ee.atom,Ee.bool,Ee.url,Ee.contentSeparator,Ee.labelName],color:"#219"},{tag:[Ee.literal,Ee.inserted],color:"#164"},{tag:[Ee.string,Ee.deleted],color:"#a11"},{tag:[Ee.regexp,Ee.escape,Ee.special(Ee.string)],color:"#e40"},{tag:Ee.definition(Ee.variableName),color:"#00f"},{tag:Ee.local(Ee.variableName),color:"#30a"},{tag:[Ee.typeName,Ee.namespace],color:"#085"},{tag:Ee.className,color:"#167"},{tag:[Ee.special(Ee.variableName),Ee.macroName],color:"#256"},{tag:Ee.definition(Ee.propertyName),color:"#00c"},{tag:Ee.comment,color:"#940"},{tag:Ee.invalid,color:"#f00"}]),EHe=hn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ppe=1e4,mpe="()[]{}",gpe=wn.define({combine(e){return tp(e,{afterCursor:!0,brackets:mpe,maxScanDistance:ppe,renderMatch:xHe})}}),wHe=_n.mark({class:"cm-matchingBracket"}),THe=_n.mark({class:"cm-nonmatchingBracket"});function xHe(e){let t=[],n=e.matched?wHe:THe;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const kHe=Us.define({create(){return _n.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(gpe);for(let i of t.state.selection.ranges){if(!i.empty)continue;let a=Dh(t.state,i.head,-1,r)||i.head>0&&Dh(t.state,i.head-1,1,r)||r.afterCursor&&(Dh(t.state,i.head,1,r)||i.headhn.decorations.from(e)}),CHe=[kHe,EHe];function _He(e={}){return[gpe.of(e),CHe]}const bpe=new lr;function iF(e,t,n){let r=e.prop(t<0?lr.openedBy:lr.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function aF(e){let t=e.type.prop(bpe);return t?t(e.node):e}function Dh(e,t,n,r={}){let i=r.maxScanDistance||ppe,a=r.brackets||mpe,s=zi(e),o=s.resolveInner(t,n);for(let l=o;l;l=l.parent){let c=iF(l.type,n,a);if(c&&l.from0?t>=d.from&&td.from&&t<=d.to))return AHe(e,t,n,l,d,c,a)}}return RHe(e,t,n,s,o.type,i,a)}function AHe(e,t,n,r,i,a,s){let o=r.parent,l={from:i.from,to:i.to},c=0,d=o==null?void 0:o.cursor();if(d&&(n<0?d.childBefore(r.from):d.childAfter(r.to)))do if(n<0?d.to<=r.from:d.from>=r.to){if(c==0&&a.indexOf(d.type.name)>-1&&d.from0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},d=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let p=0;!d.next().done&&p<=a;){let b=d.value;n<0&&(p+=b.length);let v=t+p*n;for(let S=n>0?0:b.length-1,w=n>0?b.length:-1;S!=w;S+=n){let T=s.indexOf(b[S]);if(!(T<0||r.resolveInner(v+S,1).type!=i))if(T%2==0==n>0)h++;else{if(h==1)return{start:c,end:{from:v+S,to:v+S+1},matched:T>>1==l>>1};h--}}n>0&&(p+=b.length)}return d.done?{start:c,matched:!1}:null}const IHe=Object.create(null),Ate=[vs.none],Rte=[],Ite=Object.create(null),DHe=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])DHe[e]=NHe(IHe,t);function oM(e,t){Rte.indexOf(e)>-1||(Rte.push(e),console.warn(t))}function NHe(e,t){let n=[];for(let o of t.split(" ")){let l=[];for(let c of o.split(".")){let d=e[c]||Ee[c];d?typeof d=="function"?l.length?l=l.map(d):oM(c,`Modifier ${c} used at start of tag`):l.length?oM(c,`Tag ${c} used as modifier`):l=Array.isArray(d)?d:[d]:oM(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(o=>o.id),a=Ite[i];if(a)return a.id;let s=Ite[i]=vs.define({id:Ate.length,name:r,props:[pE({[r]:n})]});return Ate.push(s),s.id}Zi.RTL,Zi.LTR;const PHe=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=xj(e.state,n.from);return r.line?MHe(e):r.block?$He(e):!1};function Tj(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}const MHe=Tj(UHe,0),LHe=Tj(ype,0),$He=Tj((e,t)=>ype(e,t,BHe(t)),0);function xj(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const g2=50;function FHe(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-g2,r),s=e.sliceDoc(i,i+g2),o=/\s*$/.exec(a)[0].length,l=/^\s*/.exec(s)[0].length,c=a.length-o;if(a.slice(c-t.length,c)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+l,margin:l&&1}};let d,h;i-r<=2*g2?d=h=e.sliceDoc(r,i):(d=e.sliceDoc(r,r+g2),h=e.sliceDoc(i-g2,i));let p=/^\s*/.exec(d)[0].length,b=/\s*$/.exec(h)[0].length,v=h.length-b-n.length;return d.slice(p,p+t.length)==t&&h.slice(v,v+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(d.charAt(p+t.length))?1:0},close:{pos:i-b-n.length,margin:/\s/.test(h.charAt(v-1))?1:0}}:null}function BHe(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function ype(e,t,n=t.selection.ranges){let r=n.map(a=>xj(t,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>FHe(t,r[s],a.from,a.to));if(e!=2&&!i.every(a=>a))return{changes:t.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(e!=1&&i.some(a=>a)){let a=[];for(let s=0,o;si&&(a==s||s>h.from)){i=h.from;let p=/^\s*/.exec(h.text)[0].length,b=p==h.length,v=h.text.slice(p,p+c.length)==c?p:-1;pa.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:l,indent:c,empty:d,single:h}of r)(h||!d)&&a.push({from:o.from+c,insert:l+" "});let s=t.changes(a);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:l}of r)if(o>=0){let c=s.from+o,d=c+l.length;s.text[d-s.from]==" "&&d++,a.push({from:c,to:d})}return{changes:a}}return null}const sF=Rf.define(),zHe=Rf.define(),jHe=wn.define(),vpe=wn.define({combine(e){return tp(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,i)=>t(r,i)||n(r,i)})}}),Ope=Us.define({create(){return Nh.empty},update(e,t){let n=t.state.facet(vpe),r=t.annotation(sF);if(r){let l=nu.fromTransaction(t,r.selection),c=r.side,d=c==0?e.undone:e.done;return l?d=GR(d,d.length,n.minDepth,l):d=wpe(d,t.startState.selection),new Nh(c==0?r.rest:d,c==0?d:r.rest)}let i=t.annotation(zHe);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation($s.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=nu.fromTransaction(t),s=t.annotation($s.time),o=t.annotation($s.userEvent);return a?e=e.addChanges(a,s,o,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new Nh(e.done.map(nu.fromJSON),e.undone.map(nu.fromJSON))}});function HHe(e={}){return[Ope,vpe.of(e),hn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?Spe:t.inputType=="historyRedo"?oF:null;return r?(t.preventDefault(),r(n)):!1}})]}function _N(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Ope,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}const Spe=_N(0,!1),oF=_N(1,!1),VHe=_N(0,!0),WHe=_N(1,!0);class nu{constructor(t,n,r,i,a){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(t){return new nu(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(t){return new nu(t.changes&&fs.fromJSON(t.changes),[],t.mapped&&Vh.fromJSON(t.mapped),t.startSelection&&wt.fromJSON(t.startSelection),t.selectionsAfter.map(wt.fromJSON))}static fromTransaction(t,n){let r=ld;for(let i of t.startState.facet(jHe)){let a=i(t);a.length&&(r=r.concat(a))}return!r.length&&t.changes.empty?null:new nu(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,ld)}static selection(t){return new nu(void 0,ld,void 0,void 0,t)}}function GR(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function QHe(e,t){let n=[],r=!1;return e.iterChangedRanges((i,a)=>n.push(i,a)),t.iterChangedRanges((i,a,s,o)=>{for(let l=0;l=c&&s<=d&&(r=!0)}}),r}function YHe(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function Epe(e,t){return e.length?t.length?e.concat(t):e:t}const ld=[],qHe=200;function wpe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-qHe));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),GR(e,e.length-1,1e9,n.setSelAfter(r)))}else return[nu.selection([t])]}function GHe(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function lM(e,t){if(!e.length)return e;let n=e.length,r=ld;for(;n;){let i=ZHe(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=e.slice(0,n);return a[n-1]=i,a}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[nu.selection(r)]:ld}function ZHe(e,t,n){let r=Epe(e.selectionsAfter.length?e.selectionsAfter.map(o=>o.map(t)):ld,n);if(!e.changes)return nu.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(a):a;return new nu(i,gr.mapEffects(e.effects,t),s,e.startSelection.map(a),r)}const XHe=/^(input\.type|delete)($|\.)/;class Nh{constructor(t,n,r=0,i=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new Nh(this.done,this.undone):this}addChanges(t,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&t.changes&&(!r||XHe.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):AN(n,t))}function Bo(e){return e.textDirectionAt(e.state.selection.main.head)==Zi.LTR}const xpe=e=>Tpe(e,!Bo(e)),kpe=e=>Tpe(e,Bo(e));function Cpe(e,t){return Df(e,n=>n.empty?e.moveByGroup(n,t):AN(n,t))}const JHe=e=>Cpe(e,!Bo(e)),eVe=e=>Cpe(e,Bo(e));function tVe(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function RN(e,t,n){let r=zi(e).resolveInner(t.head),i=n?lr.closedBy:lr.openedBy;for(let l=t.head;;){let c=n?r.childAfter(l):r.childBefore(l);if(!c)break;tVe(e,c,i)?r=c:l=n?c.to:c.from}let a=r.type.prop(i),s,o;return a&&(s=n?Dh(e,r.from,1):Dh(e,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,wt.cursor(o,n?-1:1)}const nVe=e=>Df(e,t=>RN(e.state,t,!Bo(e))),rVe=e=>Df(e,t=>RN(e.state,t,Bo(e)));function _pe(e,t){return Df(e,n=>{if(!n.empty)return AN(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const Ape=e=>_pe(e,!1),Rpe=e=>_pe(e,!0);function Ipe(e){let t=e.scrollDOM.clientHeights.empty?e.moveVertically(s,t,n.height):AN(s,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let s=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),l=o.top+n.marginTop,c=o.bottom-n.marginBottom;s&&s.top>l&&s.bottomDpe(e,!1),lF=e=>Dpe(e,!0);function Wg(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&t.head!=r.from+a&&(i=wt.cursor(r.from+a))}return i}const iVe=e=>Df(e,t=>Wg(e,t,!0)),aVe=e=>Df(e,t=>Wg(e,t,!1)),sVe=e=>Df(e,t=>Wg(e,t,!Bo(e))),oVe=e=>Df(e,t=>Wg(e,t,Bo(e))),lVe=e=>Df(e,t=>wt.cursor(e.lineBlockAt(t.head).from,1)),uVe=e=>Df(e,t=>wt.cursor(e.lineBlockAt(t.head).to,-1));function cVe(e,t,n){let r=!1,i=gE(e.selection,a=>{let s=Dh(e,a.head,-1)||Dh(e,a.head,1)||a.head>0&&Dh(e,a.head-1,1)||a.headcVe(e,t,!1);function Cd(e,t){let n=gE(e.state.selection,r=>{let i=t(r);return wt.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(np(e.state,n)),!0)}function Npe(e,t){return Cd(e,n=>e.moveByChar(n,t))}const Ppe=e=>Npe(e,!Bo(e)),Mpe=e=>Npe(e,Bo(e));function Lpe(e,t){return Cd(e,n=>e.moveByGroup(n,t))}const fVe=e=>Lpe(e,!Bo(e)),hVe=e=>Lpe(e,Bo(e)),pVe=e=>Cd(e,t=>RN(e.state,t,!Bo(e))),mVe=e=>Cd(e,t=>RN(e.state,t,Bo(e)));function $pe(e,t){return Cd(e,n=>e.moveVertically(n,t))}const Fpe=e=>$pe(e,!1),Bpe=e=>$pe(e,!0);function Upe(e,t){return Cd(e,n=>e.moveVertically(n,t,Ipe(e).height))}const Nte=e=>Upe(e,!1),Pte=e=>Upe(e,!0),gVe=e=>Cd(e,t=>Wg(e,t,!0)),bVe=e=>Cd(e,t=>Wg(e,t,!1)),yVe=e=>Cd(e,t=>Wg(e,t,!Bo(e))),vVe=e=>Cd(e,t=>Wg(e,t,Bo(e))),OVe=e=>Cd(e,t=>wt.cursor(e.lineBlockAt(t.head).from)),SVe=e=>Cd(e,t=>wt.cursor(e.lineBlockAt(t.head).to)),Mte=({state:e,dispatch:t})=>(t(np(e,{anchor:0})),!0),Lte=({state:e,dispatch:t})=>(t(np(e,{anchor:e.doc.length})),!0),$te=({state:e,dispatch:t})=>(t(np(e,{anchor:e.selection.main.anchor,head:0})),!0),Fte=({state:e,dispatch:t})=>(t(np(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),EVe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),wVe=({state:e,dispatch:t})=>{let n=IN(e).map(({from:r,to:i})=>wt.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:wt.create(n),userEvent:"select"})),!0},TVe=({state:e,dispatch:t})=>{let n=gE(e.selection,r=>{var i;let a=zi(e).resolveStack(r.from,1);for(let s=a;s;s=s.next){let{node:o}=s;if((o.from=r.to||o.to>r.to&&o.from<=r.from)&&(!((i=o.parent)===null||i===void 0)&&i.parent))return wt.range(o.to,o.from)}return r});return t(np(e,n)),!0},xVe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=wt.create([n.main]):n.main.empty||(r=wt.create([wt.cursor(n.main.head)])),r?(t(np(e,r)),!0):!1};function uC(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let l=t(a);ls&&(n="delete.forward",l=z4(e,l,!0)),s=Math.min(s,l),o=Math.max(o,l)}else s=z4(e,s,!1),o=z4(e,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:wt.cursor(s,si(e)))r.between(t,t,(i,a)=>{it&&(t=n?a:i)});return t}const zpe=(e,t)=>uC(e,n=>{let r=n.from,{state:i}=e,a=i.doc.lineAt(r),s,o;if(!t&&r>a.from&&rzpe(e,!1),jpe=e=>zpe(e,!0),Hpe=(e,t)=>uC(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=uo(a.text,r-a.from,t)+a.from,c=a.text.slice(Math.min(r,l)-a.from,Math.max(r,l)-a.from),d=s(c);if(o!=null&&d!=o)break;(c!=" "||r!=n.head)&&(o=d),r=l}return r}),Vpe=e=>Hpe(e,!1),kVe=e=>Hpe(e,!0),CVe=e=>uC(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headuC(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),AVe=e=>uC(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:ni.of(["",""])},range:wt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},IVe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,a=e.doc.lineAt(i),s=i==a.from?i-1:uo(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:uo(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:e.doc.slice(i,o).append(e.doc.slice(s,i))},range:wt.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function IN(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let s=t[t.length-1];s.to=a.to,s.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function Wpe(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let a of IN(e)){if(n?a.to==e.doc.length:a.from==0)continue;let s=e.doc.lineAt(n?a.to+1:a.from-1),o=s.length+1;if(n){r.push({from:a.to,to:s.to},{from:a.from,insert:s.text+e.lineBreak});for(let l of a.ranges)i.push(wt.range(Math.min(e.doc.length,l.anchor+o),Math.min(e.doc.length,l.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:e.lineBreak+s.text});for(let l of a.ranges)i.push(wt.range(l.anchor-o,l.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:wt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const DVe=({state:e,dispatch:t})=>Wpe(e,t,!1),NVe=({state:e,dispatch:t})=>Wpe(e,t,!0);function Qpe(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of IN(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const PVe=({state:e,dispatch:t})=>Qpe(e,t,!1),MVe=({state:e,dispatch:t})=>Qpe(e,t,!0),LVe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(IN(t).map(({from:i,to:a})=>(i>0?i--:ae.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function $Ve(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=zi(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(lr.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const FVe=Ype(!1),BVe=Ype(!0);function Ype(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:a,to:s}=i,o=t.doc.lineAt(a),l=!e&&a==s&&$Ve(t,a);e&&(a=s=(s<=o.to?o:t.doc.lineAt(s)).to);let c=new kN(t,{simulateBreak:a,simulateDoubleBreak:!!l}),d=Sj(c,a);for(d==null&&(d=Sf(/^\s*/.exec(t.doc.lineAt(a).text)[0],t.tabSize));so.from&&a{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let a=e.changes(i);return{changes:i,range:wt.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const UVe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new kN(e,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=kj(e,(a,s,o)=>{let l=Sj(r,a.from);if(l==null)return;/\S/.test(a.text)||(l=0);let c=/^\s*/.exec(a.text)[0],d=jx(e,l);(c!=d||o.frome.readOnly?!1:(t(e.update(kj(e,(n,r)=>{r.push({from:n.from,insert:e.facet(aC)})}),{userEvent:"input.indent"})),!0),Gpe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(kj(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=Sf(i,e.tabSize),s=0,o=jx(e,Math.max(0,a-QR(e)));for(;s({mac:e.key,run:e.run,shift:e.shift}))),HVe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:nVe,shift:pVe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:rVe,shift:mVe},{key:"Alt-ArrowUp",run:DVe},{key:"Shift-Alt-ArrowUp",run:PVe},{key:"Alt-ArrowDown",run:NVe},{key:"Shift-Alt-ArrowDown",run:MVe},{key:"Escape",run:xVe},{key:"Mod-Enter",run:BVe},{key:"Alt-l",mac:"Ctrl-l",run:wVe},{key:"Mod-i",run:TVe,preventDefault:!0},{key:"Mod-[",run:Gpe},{key:"Mod-]",run:qpe},{key:"Mod-Alt-\\",run:UVe},{key:"Shift-Mod-k",run:LVe},{key:"Shift-Mod-\\",run:dVe},{key:"Mod-/",run:PHe},{key:"Alt-A",run:LHe}].concat(jVe),VVe={key:"Tab",run:qpe,shift:Gpe};function $i(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?e.setAttribute(r,i):i!=null&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class $S{constructor(t,n,r=0,i=t.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(Bte(o)):Bte,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return io(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let n=nj(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=rd(t);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),l=this.match(o,s);if(a==i.length-1){if(l)return this.value=l,this;break}s==r&&athis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=ZR(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let o=new FO(n,t.sliceString(n,r));return uM.set(t,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=ZR(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=FO.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Kpe.prototype[Symbol.iterator]=Jpe.prototype[Symbol.iterator]=function(){return this});function WVe(e){try{return new RegExp(e,Cj),!0}catch{return!1}}function ZR(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function cF(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=$i("input",{class:"cm-textfield",name:"line",value:t}),r=$i("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),e.dispatch({effects:XR.of(!1)}),e.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},$i("label",e.state.phrase("Go to line"),": ",n)," ",$i("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head),[,l,c,d,h]=a,p=d?+d.slice(1):0,b=c?+c:o.number;if(c&&h){let w=b/100;l&&(w=w*(l=="-"?-1:1)+o.number/s.doc.lines),b=Math.round(s.doc.lines*w)}else c&&l&&(b=b*(l=="-"?-1:1)+o.number);let v=s.doc.line(Math.max(1,Math.min(s.doc.lines,b))),S=wt.cursor(v.from+Math.max(0,Math.min(p,v.length)));e.dispatch({effects:[XR.of(!1),hn.scrollIntoView(S.from,{y:"center"})],selection:S}),e.focus()}return{dom:r}}const XR=gr.define(),Ute=Us.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(XR)&&(e=n.value);return e},provide:e=>$x.from(e,t=>t?cF:null)}),QVe=e=>{let t=Lx(e,cF);if(!t){let n=[XR.of(!0)];e.state.field(Ute,!1)==null&&n.push(gr.appendConfig.of([Ute,YVe])),e.dispatch({effects:n}),t=Lx(e,cF)}return t&&t.dom.querySelector("input").select(),!0},YVe=hn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),qVe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},eme=wn.define({combine(e){return tp(e,qVe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function GVe(e){let t=[eWe,JVe];return e&&t.push(eme.of(e)),t}const ZVe=_n.mark({class:"cm-selectionMatch"}),XVe=_n.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function zte(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=ca.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=ca.Word)}function KVe(e,t,n,r){return e(t.sliceDoc(n,n+1))==ca.Word&&e(t.sliceDoc(r-1,r))==ca.Word}const JVe=Ea.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(eme),{state:n}=e,r=n.selection;if(r.ranges.length>1)return _n.none;let i=r.main,a,s=null;if(i.empty){if(!t.highlightWordAroundCursor)return _n.none;let l=n.wordAt(i.head);if(!l)return _n.none;s=n.charCategorizer(i.head),a=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return _n.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(zte(s,n,i.from,i.to)&&KVe(s,n,i.from,i.to)))return _n.none}else if(a=n.sliceDoc(i.from,i.to).trim(),!a)return _n.none}let o=[];for(let l of e.visibleRanges){let c=new $S(n.doc,a,l.from,l.to);for(;!c.next().done;){let{from:d,to:h}=c.value;if((!s||zte(s,n,d,h))&&(i.empty&&d<=i.from&&h>=i.to?o.push(XVe.range(d,h)):(d>=i.to||h<=i.from)&&o.push(ZVe.range(d,h)),o.length>t.maxMatches))return _n.none}}return _n.set(o)}},{decorations:e=>e.decorations}),eWe=hn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),tWe=({state:e,dispatch:t})=>{let{selection:n}=e,r=wt.create(n.ranges.map(i=>e.wordAt(i.head)||wt.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function nWe(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new $S(e.doc,t,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new $S(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==o.value.from))continue;if(a){let l=e.wordAt(o.value.from);if(!l||l.from!=o.value.from||l.to!=o.value.to)continue}return o.value}}const rWe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(a=>a.from===a.to))return tWe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(a=>e.sliceDoc(a.from,a.to)!=r))return!1;let i=nWe(e,r);return i?(t(e.update({selection:e.selection.addRange(wt.range(i.from,i.to),!1),effects:hn.scrollIntoView(i.to)})),!0):!1},bE=wn.define({combine(e){return tp(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new mWe(t),scrollToMatch:t=>hn.scrollIntoView(t)})}});class tme{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||WVe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?` -`:r=="r"?"\r":r=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new oWe(this):new aWe(this)}getCursor(t,n=0,r){let i=t.doc?t:Yr.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?Wv(this,i,n,r):Vv(this,i,n,r)}}class nme{constructor(t){this.spec=t}}function Vv(e,t,n,r){return new $S(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?iWe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function iWe(e,t){return(n,r,i,a)=>((a>n||a+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=Vv(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function Wv(e,t,n,r){return new Kpe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?sWe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function KR(e,t){return e.slice(uo(e,t,!1),t)}function JR(e,t){return e.slice(t,uo(e,t))}function sWe(e){return(t,n,r)=>!r[0].length||(e(KR(r.input,r.index))!=ca.Word||e(JR(r.input,r.index))!=ca.Word)&&(e(JR(r.input,r.index+r[0].length))!=ca.Word||e(KR(r.input,r.index+r[0].length))!=ca.Word)}class oWe extends nme{nextMatch(t,n,r){let i=Wv(this.spec,t,r,t.doc.length).next();return i.done&&(i=Wv(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=Wv(this.spec,t,a,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(a==n||o.from>a+10))return o;if(a==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=Wv(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const Hx=gr.define(),_j=gr.define(),cg=Us.define({create(e){return new cM(dF(e).create(),null)},update(e,t){for(let n of t.effects)n.is(Hx)?e=new cM(n.value.create(),e.panel):n.is(_j)&&(e=new cM(e.query,n.value?Aj:null));return e},provide:e=>$x.from(e,t=>t.panel)});class cM{constructor(t,n){this.query=t,this.panel=n}}const lWe=_n.mark({class:"cm-searchMatch"}),uWe=_n.mark({class:"cm-searchMatch cm-searchMatch-selected"}),cWe=Ea.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(cg))}update(e){let t=e.state.field(cg);(t!=e.startState.field(cg)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return _n.none;let{view:n}=this,r=new Tg;for(let i=0,a=n.visibleRanges,s=a.length;ia[i+1].from-2*250;)l=a[++i].to;e.highlight(n.state,o,l,(c,d)=>{let h=n.state.selection.ranges.some(p=>p.from==c&&p.to==d);r.add(c,d,h?uWe:lWe)})}return r.finish()}},{decorations:e=>e.decorations});function cC(e){return t=>{let n=t.state.field(cg,!1);return n&&n.query.spec.valid?e(t,n):ame(t)}}const eI=cC((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=wt.single(r.from,r.to),a=e.state.facet(bE);return e.dispatch({selection:i,effects:[Rj(e,r),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),ime(e),!0}),tI=cC((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=wt.single(i.from,i.to),s=e.state.facet(bE);return e.dispatch({selection:a,effects:[Rj(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),ime(e),!0}),dWe=cC((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:wt.create(n.map(r=>wt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),fWe=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],s=0;for(let o=new $S(e.doc,e.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(wt.range(o.value.from,o.value.to))}return t(e.update({selection:wt.create(a,s),userEvent:"select.search.matches"})),!0},jte=cC((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let s=[],o,l,c=[];if(a.from==r&&a.to==i&&(l=n.toText(t.getReplacement(a)),s.push({from:a.from,to:a.to,insert:l}),a=t.nextMatch(n,a.from,a.to),c.push(hn.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let d=s.length==0||s[0].from>=a.to?0:a.to-a.from-l.length;o=wt.single(a.from-d,a.to-d),c.push(Rj(e,a)),c.push(n.facet(bE).scrollToMatch(o.main,e))}return e.dispatch({changes:s,selection:o,effects:c,userEvent:"input.replace"}),!0}),hWe=cC((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:hn.announce.of(r),userEvent:"input.replace.all"}),!0});function Aj(e){return e.state.facet(bE).createPanel(e)}function dF(e,t){var n,r,i,a,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let c=e.facet(bE);return new tme({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:c.caseSensitive,literal:(i=t==null?void 0:t.literal)!==null&&i!==void 0?i:c.literal,regexp:(a=t==null?void 0:t.regexp)!==null&&a!==void 0?a:c.regexp,wholeWord:(s=t==null?void 0:t.wholeWord)!==null&&s!==void 0?s:c.wholeWord})}function rme(e){let t=Lx(e,Aj);return t&&t.dom.querySelector("[main-field]")}function ime(e){let t=rme(e);t&&t==e.root.activeElement&&t.select()}const ame=e=>{let t=e.state.field(cg,!1);if(t&&t.panel){let n=rme(e);if(n&&n!=e.root.activeElement){let r=dF(e.state,t.query.spec);r.valid&&e.dispatch({effects:Hx.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[_j.of(!0),t?Hx.of(dF(e.state,t.query.spec)):gr.appendConfig.of(bWe)]});return!0},sme=e=>{let t=e.state.field(cg,!1);if(!t||!t.panel)return!1;let n=Lx(e,Aj);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:_j.of(!1)}),!0},pWe=[{key:"Mod-f",run:ame,scope:"editor search-panel"},{key:"F3",run:eI,shift:tI,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:eI,shift:tI,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:sme,scope:"editor search-panel"},{key:"Mod-Shift-l",run:fWe},{key:"Mod-Alt-g",run:QVe},{key:"Mod-d",run:rWe,preventDefault:!0}];class mWe{constructor(t){this.view=t;let n=this.query=t.state.field(cg).query.spec;this.commit=this.commit.bind(this),this.searchField=$i("input",{value:n.search,placeholder:Uu(t,"Find"),"aria-label":Uu(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=$i("input",{value:n.replace,placeholder:Uu(t,"Replace"),"aria-label":Uu(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=$i("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=$i("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=$i("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return $i("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=$i("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>eI(t),[Uu(t,"next")]),r("prev",()=>tI(t),[Uu(t,"previous")]),r("select",()=>dWe(t),[Uu(t,"all")]),$i("label",null,[this.caseField,Uu(t,"match case")]),$i("label",null,[this.reField,Uu(t,"regexp")]),$i("label",null,[this.wordField,Uu(t,"by word")]),...t.state.readOnly?[]:[$i("br"),this.replaceField,r("replace",()=>jte(t),[Uu(t,"replace")]),r("replaceAll",()=>hWe(t),[Uu(t,"replace all")])],$i("button",{name:"close",onclick:()=>sme(t),"aria-label":Uu(t,"close"),type:"button"},["×"])])}commit(){let t=new tme({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:Hx.of(t)}))}keydown(t){Cze(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?tI:eI)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),jte(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(Hx)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(bE).top}}function Uu(e,t){return e.state.phrase(t)}const j4=30,H4=/[\s\.,:;?!]/;function Rj(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-j4),s=Math.min(i,n+j4),o=e.state.sliceDoc(a,s);if(a!=r.from){for(let l=0;lo.length-j4;l--)if(!H4.test(o[l-1])&&H4.test(o[l])){o=o.slice(0,l);break}}return hn.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${r.number}.`)}const gWe=hn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),bWe=[cg,Vg.low(cWe),gWe];class Ij{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=zi(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),a=i.search(lme(t,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function Hte(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function yWe(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let a=1;atypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:yWe(t);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:t,validFor:n}:null}}function vWe(e,t){return n=>{for(let r=zi(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}class Vte{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function dg(e){return e.selection.main.from}function lme(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?e:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const ume=Rf.define();function OWe(e,t,n,r){let{main:i}=e.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},e.changeByRange(o=>o!=i&&n!=r&&e.sliceDoc(o.from+a,o.from+s)!=e.sliceDoc(n,r)?{range:o}:{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:t},range:wt.cursor(o.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Wte=new WeakMap;function SWe(e){if(!Array.isArray(e))return e;let t=Wte.get(e);return t||Wte.set(e,t=ome(e)),t}const nI=gr.define(),Vx=gr.define();class EWe{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&I<=57||I>=97&&I<=122?2:I>=65&&I<=90?1:0:(_=nj(I))!=_.toLowerCase()?1:_!=_.toUpperCase()?2:0;(!x||A==1&&w||C==0&&A!=0)&&(n[h]==I||r[h]==I&&(p=!0)?s[h++]=x:s.length&&(T=!1)),C=A,x+=rd(I)}return h==l&&s[0]==0&&T?this.result(-100+(p?-200:0),s,t):b==l&&v==0?this.ret(-200-t.length+(S==t.length?0:-100),[0,S]):o>-1?this.ret(-700-t.length,[o,o+this.pattern.length]):b==l?this.ret(-900-t.length,[v,S]):h==l?this.result(-100+(p?-200:0)+-700+(T?0:-1100),s,t):n.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?rd(io(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(t-r.length,i)}}const oo=wn.define({combine(e){return tp(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:wWe,compareCompletions:(t,n)=>t.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>Qte(t(r),n(r)),optionClass:(t,n)=>r=>Qte(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function Qte(e,t){return e?t?e+" "+t:e:t}function wWe(e,t,n,r,i,a){let s=e.textDirection==Zi.RTL,o=s,l=!1,c="top",d,h,p=t.left-i.left,b=i.right-t.right,v=r.right-r.left,S=r.bottom-r.top;if(o&&p=S||x>t.top?d=n.bottom-t.top:(c="bottom",d=t.bottom-n.top)}let w=(t.bottom-t.top)/a.offsetHeight,T=(t.right-t.left)/a.offsetWidth;return{style:`${c}: ${d/w}px; max-width: ${h/T}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":o?"left":"right")}}function TWe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,l=0;for(let c=0;cl&&s.appendChild(document.createTextNode(o.slice(l,d)));let p=s.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(o.slice(d,h))),p.className="cm-completionMatchedText",l=h}return ln.position-r.position).map(n=>n.render)}function dM(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let i=Math.floor(t/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class xWe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:a,selected:s}=i.open,o=t.state.facet(oo);this.optionContent=TWe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=dM(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=t.state.field(n).open;for(let d=l.target,h;d&&d!=this.dom;d=d.parentNode)if(d.nodeName=="LI"&&(h=/-(\d+)$/.exec(d.id))&&+h[1]{let c=t.state.field(this.stateField,!1);c&&c.tooltip&&t.state.facet(oo).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Vx.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=dM(a.length,s,t.state.facet(oo).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),o!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=dM(n.options.length,n.selected,this.view.state.facet(oo).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,r)}).catch(s=>md(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:a}=t;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&CWe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),a=this.space;if(!a){let s=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(a=p,typeof c!="string"&&c.header)i.appendChild(c.header(c));else{let b=i.appendChild(document.createElement("completion-section"));b.textContent=p}}const d=i.appendChild(document.createElement("li"));d.id=n+"-"+s,d.setAttribute("role","option");let h=this.optionClass(o);h&&(d.className=h);for(let p of this.optionContent){let b=p(o,this.view.state,this.view,l);b&&d.appendChild(b)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew xWe(n,e,t)}function CWe(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function Yte(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function _We(e,t){let n=[],r=null,i=l=>{n.push(l);let{section:c}=l.completion;if(c){r||(r=[]);let d=typeof c=="string"?c:c.name;r.some(h=>h.name==d)||r.push(typeof c=="string"?{name:d}:c)}};for(let l of e)if(l.hasResult()){let c=l.result.getMatch;if(l.result.filter===!1)for(let d of l.result.options)i(new Vte(d,l.source,c?c(d):[],1e9-n.length));else{let d=new EWe(t.sliceDoc(l.from,l.to));for(let h of l.result.options)if(d.match(h.label)){let p=h.displayLabel?c?c(h,d.matched):[]:d.matched;i(new Vte(h,l.source,p,d.score+(h.boost||0)))}}}if(r){let l=Object.create(null),c=0,d=(h,p)=>{var b,v;return((b=h.rank)!==null&&b!==void 0?b:1e9)-((v=p.rank)!==null&&v!==void 0?v:1e9)||(h.named.score-c.score||o(c.completion,d.completion))){let c=l.completion;!s||s.label!=c.label||s.detail!=c.detail||s.type!=null&&c.type!=null&&s.type!=c.type||s.apply!=c.apply||s.boost!=c.boost?a.push(l):Yte(l.completion)>Yte(s)&&(a[a.length-1]=l),s=l.completion}return a}class gO{constructor(t,n,r,i,a,s){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new gO(this.options,qte(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a){let s=_We(t,n);if(!s.length)return i&&t.some(l=>l.state==1)?new gO(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=n.facet(oo).selectOnOpen?0:-1;if(i&&i.selected!=o&&i.selected!=-1){let l=i.options[i.selected].completion;for(let c=0;cc.hasResult()?Math.min(l,c.from):l,1e8),create:NWe,above:a.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new gO(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class rI{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new rI(IWe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(oo),a=(r.override||n.languageDataAt("autocomplete",dg(n)).map(SWe)).map(o=>(this.active.find(c=>c.source==o)||new Jl(o,this.active.some(c=>c.state!=0)?1:0)).update(t,r));a.length==this.active.length&&a.every((o,l)=>o==this.active[l])&&(a=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||a.some(o=>o.hasResult()&&t.changes.touchesRange(o.from,o.to))||!AWe(a,this.active)?s=gO.build(a,n,this.id,s,r):s&&s.disabled&&!a.some(o=>o.state==1)&&(s=null),!s&&a.every(o=>o.state!=1)&&a.some(o=>o.hasResult())&&(a=a.map(o=>o.hasResult()?new Jl(o.source,0):o));for(let o of t.effects)o.is(dme)&&(s=s&&s.setSelected(o.value,this.id));return a==this.active&&s==this.open?this:new rI(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:RWe}}function AWe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const IWe=[];function fF(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Jl{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=fF(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new Jl(i.source,0));for(let a of t.effects)if(a.is(nI))i=new Jl(i.source,1,a.value?dg(t.state):-1);else if(a.is(Vx))i=new Jl(i.source,0);else if(a.is(cme))for(let s of a.value)s.source==i.source&&(i=s);return i}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new Jl(this.source,1)}handleChange(t){return t.changes.touchesRange(dg(t.startState))?new Jl(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Jl(this.source,this.state,t.mapPos(this.explicitPos))}}class BO extends Jl{constructor(t,n,r,i,a){super(t,2,n),this.result=r,this.from=i,this.to=a}hasResult(){return!0}handleUserEvent(t,n,r){var i;let a=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),o=dg(t.state);if((this.explicitPos<0?o<=a:os||n=="delete"&&dg(t.startState)==this.from)return new Jl(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),c;return DWe(this.result.validFor,t.state,a,s)?new BO(this.source,l,this.result,a,s):this.result.update&&(c=this.result.update(this.result,a,s,new Ij(t.state,o,l>=0)))?new BO(this.source,l,c,c.from,(i=c.to)!==null&&i!==void 0?i:dg(t.state)):new Jl(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Jl(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new BO(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function DWe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):lme(e,!0).test(i)}const cme=gr.define({map(e,t){return e.map(n=>n.map(t))}}),dme=gr.define(),Ku=Us.define({create(){return rI.start()},update(e,t){return e.update(t)},provide:e=>[pj.from(e,t=>t.tooltip),hn.contentAttributes.from(e,t=>t.attrs)]});function fme(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Ku).active.find(i=>i.source==t.source);return r instanceof BO?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},OWe(e.state,n,r.from,r.to)),{annotations:ume.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const NWe=kWe(Ku,fme);function V4(e,t="option"){return n=>{let r=n.state.field(Ku,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:s-1;return o<0?o=t=="page"?0:s-1:o>=s&&(o=t=="page"?s-1:0),n.dispatch({effects:dme.of(o)}),!0}}const PWe=e=>{let t=e.state.field(Ku,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(Ku,!1)?(e.dispatch({effects:nI.of(!0)}),!0):!1,LWe=e=>{let t=e.state.field(Ku,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:Vx.of(null)}),!0)};class $We{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const FWe=50,BWe=1e3,UWe=Ea.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(Ku).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(Ku);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Ku)==t)return;let n=e.transactions.some(i=>(i.selection||i.docChanged)&&!fF(i));for(let i=0;iFWe&&Date.now()-a.time>BWe){for(let s of a.context.abortListeners)try{s()}catch(o){md(this.view.state,o)}a.context.abortListeners=null,this.running.splice(i--,1)}else a.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(a=>a.is(nI)))&&(this.pendingStart=!0);let r=this.pendingStart?50:e.state.facet(oo).activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(a=>a.active.source==i.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let i of e.transactions)fF(i)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Ku);for(let n of t.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=dg(t),r=new Ij(t,n,e.explicitPos==n),i=new $We(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:Vx.of(null)}),md(this.view.state,a)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(oo).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(oo);for(let r=0;rs.source==i.active.source);if(a&&a.state==1)if(i.done==null){let s=new Jl(i.active.source,0);for(let o of i.updates)s=s.update(o,n);s.state!=1&&t.push(s)}else this.startQuery(a)}t.length&&this.view.dispatch({effects:cme.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Ku,!1);if(t&&t.tooltip&&this.view.state.facet(oo).closeOnBlur){let n=t.open&&Hhe(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Vx.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:nI.of(!1)}),20),this.composing=0}}}),hme=hn.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class zWe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class Dj{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,so.TrackDel),r=t.mapPos(this.to,1,so.TrackDel);return n==null||r==null?null:new Dj(this.field,n,r)}}class Nj{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],a=t.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let l of this.lines){if(r.length){let c=s,d=/^\t*/.exec(l)[0].length;for(let h=0;hnew Dj(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:o}}static parse(t){let n=[],r=[],i=[],a;for(let s of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let o=a[1]?+a[1]:null,l=a[2]||a[3]||"",c=-1;for(let d=0;d=c&&h.field++}i.push(new zWe(c,r.length,a.index,a.index+l.length)),s=s.slice(0,a.index)+l+s.slice(a.index+a[0].length)}for(let o;o=/\\([{}])/.exec(s);){s=s.slice(0,o.index)+o[1]+s.slice(o.index+o[0].length);for(let l of i)l.line==r.length&&l.from>o.index&&(l.from--,l.to--)}r.push(s)}return new Nj(r,i)}}let jWe=_n.widget({widget:new class extends If{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),HWe=_n.mark({class:"cm-snippetField"});class yE{constructor(t,n){this.ranges=t,this.active=n,this.deco=_n.set(t.map(r=>(r.from==r.to?jWe:HWe).range(r.from,r.to)))}map(t){let n=[];for(let r of this.ranges){let i=r.map(t);if(!i)return null;n.push(i)}return new yE(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const dC=gr.define({map(e,t){return e&&e.map(t)}}),VWe=gr.define(),Wx=Us.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(dC))return n.value;if(n.is(VWe)&&e)return new yE(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>hn.decorations.from(e,t=>t?t.deco:_n.none)});function Pj(e,t){return wt.create(e.filter(n=>n.field==t).map(n=>wt.range(n.from,n.to)))}function WWe(e){let t=Nj.parse(e);return(n,r,i,a)=>{let{text:s,ranges:o}=t.instantiate(n.state,i),l={changes:{from:i,to:a,insert:ni.of(s)},scrollIntoView:!0,annotations:r?[ume.of(r),$s.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=Pj(o,0)),o.some(c=>c.field>0)){let c=new yE(o,0),d=l.effects=[dC.of(c)];n.state.field(Wx,!1)===void 0&&d.push(gr.appendConfig.of([Wx,ZWe,XWe,hme]))}n.dispatch(n.state.update(l))}}function pme(e){return({state:t,dispatch:n})=>{let r=t.field(Wx,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(s=>s.field==i+e);return n(t.update({selection:Pj(r.ranges,i),effects:dC.of(a?null:new yE(r.ranges,i)),scrollIntoView:!0})),!0}}const QWe=({state:e,dispatch:t})=>e.field(Wx,!1)?(t(e.update({effects:dC.of(null)})),!0):!1,YWe=pme(1),qWe=pme(-1),GWe=[{key:"Tab",run:YWe,shift:qWe},{key:"Escape",run:QWe}],Gte=wn.define({combine(e){return e.length?e[0]:GWe}}),ZWe=Vg.highest(hE.compute([Gte],e=>e.facet(Gte)));function Yl(e,t){return Object.assign(Object.assign({},t),{apply:WWe(e)})}const XWe=hn.domEventHandlers({mousedown(e,t){let n=t.state.field(Wx,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:Pj(n.ranges,i.field),effects:dC.of(n.ranges.some(a=>a.field>i.field)?new yE(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Qx={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},vb=gr.define({map(e,t){let n=t.mapPos(e,-1,so.TrackAfter);return n??void 0}}),Mj=new class extends Gb{};Mj.startSide=1;Mj.endSide=-1;const mme=Us.define({create(){return Vr.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of t.effects)n.is(vb)&&(e=e.update({add:[Mj.range(n.value,n.value+1)]}));return e}});function KWe(){return[eQe,mme]}const fM="()[]{}<>";function gme(e){for(let t=0;t{if((JWe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&rd(io(r,0))==1||t!=i.from||n!=i.to)return!1;let a=rQe(e.state,r);return a?(e.dispatch(a),!0):!1}),tQe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=bme(e,e.selection.main.head).brackets||Qx.brackets,i=null,a=e.changeByRange(s=>{if(s.empty){let o=iQe(e.doc,s.head);for(let l of r)if(l==o&&DN(e.doc,s.head)==gme(io(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:wt.cursor(s.head-l.length)}}return{range:i=s}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},nQe=[{key:"Backspace",run:tQe}];function rQe(e,t){let n=bme(e,e.selection.main.head),r=n.brackets||Qx.brackets;for(let i of r){let a=gme(io(i,0));if(t==i)return a==i?oQe(e,i,r.indexOf(i+i+i)>-1,n):aQe(e,i,a,n.before||Qx.before);if(t==a&&yme(e,e.selection.main.from))return sQe(e,i,a)}return null}function yme(e,t){let n=!1;return e.field(mme).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function DN(e,t){let n=e.sliceString(t,t+2);return n.slice(0,rd(io(n,0)))}function iQe(e,t){let n=e.sliceString(t-2,t);return rd(io(n,0))==n.length?n:n.slice(1)}function aQe(e,t,n,r){let i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:vb.of(s.to+t.length),range:wt.range(s.anchor+t.length,s.head+t.length)};let o=DN(e.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:s.head},effects:vb.of(s.head+t.length),range:wt.cursor(s.head+t.length)}:{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function sQe(e,t,n){let r=null,i=e.changeByRange(a=>a.empty&&DN(e.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:wt.cursor(a.head+n.length)}:r={range:a});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function oQe(e,t,n,r){let i=r.stringPrefixes||Qx.stringPrefixes,a=null,s=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:vb.of(o.to+t.length),range:wt.range(o.anchor+t.length,o.head+t.length)};let l=o.head,c=DN(e.doc,l),d;if(c==t){if(Zte(e,l))return{changes:{insert:t+t,from:l},effects:vb.of(l+t.length),range:wt.cursor(l+t.length)};if(yme(e,l)){let p=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+p.length,insert:p},range:wt.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(d=Xte(e,l-2*t.length,i))>-1&&Zte(e,d))return{changes:{insert:t+t+t+t,from:l},effects:vb.of(l+t.length),range:wt.cursor(l+t.length)};if(e.charCategorizer(l)(c)!=ca.Word&&Xte(e,l,i)>-1&&!lQe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:vb.of(l+t.length),range:wt.cursor(l+t.length)}}return{range:a=o}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Zte(e,t){let n=zi(e).resolveInner(t+1);return n.parent&&n.from==t}function lQe(e,t,n,r){let i=zi(e).resolveInner(t,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),l=o.indexOf(n);if(!l||l>-1&&r.indexOf(o.slice(0,l))>-1){let d=i.firstChild;for(;d&&d.from==i.from&&d.to-d.from>n.length+l;){if(e.sliceDoc(d.to-n.length,d.to)==n)return!1;d=d.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function Xte(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=ca.Word)return t;for(let i of n){let a=t-i.length;if(e.sliceDoc(a,t)==i&&r(e.sliceDoc(a-1,a))!=ca.Word)return a}return-1}function uQe(e={}){return[Ku,oo.of(e),UWe,cQe,hme]}const vme=[{key:"Ctrl-Space",run:MWe},{key:"Escape",run:LWe},{key:"ArrowDown",run:V4(!0)},{key:"ArrowUp",run:V4(!1)},{key:"PageDown",run:V4(!0,"page")},{key:"PageUp",run:V4(!1,"page")},{key:"Enter",run:PWe}],cQe=Vg.highest(hE.computeN([oo],e=>e.facet(oo).defaultKeymap?[vme]:[]));class dQe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class ob{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,a=r.facet(Eme).markerFilter;a&&(i=a(i,r));let s=_n.set(i.map(o=>o.from==o.to||o.from==o.to-1&&r.doc.lineAt(o.from).to==o.from?_n.widget({widget:new OQe(o),diagnostic:o}).range(o.from):_n.mark({attributes:{class:"cm-lintRange cm-lintRange-"+o.severity+(o.markClass?" "+o.markClass:"")},diagnostic:o,inclusive:!0}).range(o.from,o.to)),!0);return new ob(s,n,FS(s))}}function FS(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,a,{spec:s})=>{if(!(t&&s.diagnostic!=t))return r=new dQe(i,a,s.diagnostic),!1}),r}function fQe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(Ome))||e.changes.touchesRange(n.from,n.to))}function hQe(e,t){return e.field(sc,!1)?t:t.concat(gr.appendConfig.of(wQe))}const Ome=gr.define(),Lj=gr.define(),Sme=gr.define(),sc=Us.define({create(){return new ob(_n.none,null,null)},update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=FS(n,e.selected.diagnostic,i)||FS(n,null,i)}e=new ob(n,e.panel,r)}for(let n of t.effects)n.is(Ome)?e=ob.init(n.value,e.panel,t.state):n.is(Lj)?e=new ob(e.diagnostics,n.value?NN.open:null,e.selected):n.is(Sme)&&(e=new ob(e.diagnostics,e.panel,n.value));return e},provide:e=>[$x.from(e,t=>t.panel),hn.decorations.from(e,t=>t.diagnostics)]}),pQe=_n.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function mQe(e,t,n){let{diagnostics:r}=e.state.field(sc),i=[],a=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,c,{spec:d})=>{t>=l&&t<=c&&(l==c||(t>l||n>0)&&(tTme(e,n,!1)))}const bQe=e=>{let t=e.state.field(sc,!1);(!t||!t.panel)&&e.dispatch({effects:hQe(e.state,[Lj.of(!0)])});let n=Lx(e,NN.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},Kte=e=>{let t=e.state.field(sc,!1);return!t||!t.panel?!1:(e.dispatch({effects:Lj.of(!1)}),!0)},yQe=e=>{let t=e.state.field(sc,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},vQe=[{key:"Mod-Shift-m",run:bQe,preventDefault:!0},{key:"F8",run:yQe}],Eme=wn.define({combine(e){return Object.assign({sources:e.map(t=>t.source).filter(t=>t!=null)},tp(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function wme(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ra.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function Tme(e,t,n){var r;let i=n?wme(t.actions):[];return $i("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},$i("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,l=p=>{if(p.preventDefault(),o)return;o=!0;let b=FS(e.state.field(sc).diagnostics,t);b&&a.apply(e,b.from,b.to)},{name:c}=a,d=i[s]?c.indexOf(i[s]):-1,h=d<0?c:[c.slice(0,d),$i("u",c.slice(d,d+1)),c.slice(d+1)];return $i("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${d<0?"":` (access key "${i[s]})"`}.`},h)}),t.source&&$i("div",{class:"cm-diagnosticSource"},t.source))}class OQe extends If{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return $i("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Jte{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Tme(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class NN{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)Kte(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],s=wme(a.actions);for(let o=0;o{for(let a=0;aKte(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(sc).selected;if(!t)return-1;for(let n=0;n{let c=-1,d;for(let h=r;hr&&(this.items.splice(r,c-r),i=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++});r({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:o})=>{let l=o.height/this.list.offsetHeight;s.topo.bottom&&(this.list.scrollTop+=(s.bottom-o.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(sc),r=FS(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Sme.of(r)})}static open(t){return new NN(t)}}function SQe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function W4(e){return SQe(``,'width="6" height="3"')}const EQe=hn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:W4("#d11")},".cm-lintRange-warning":{backgroundImage:W4("orange")},".cm-lintRange-info":{backgroundImage:W4("#999")},".cm-lintRange-hint":{backgroundImage:W4("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),wQe=[sc,hn.decorations.compute([sc],e=>{let{selected:t,panel:n}=e.field(sc);return!t||!n||t.from==t.to?_n.none:_n.set([pQe.range(t.from,t.to)])}),hje(mQe,{hideOn:fQe}),EQe],TQe=[Eje(),xje(),Vze(),HHe(),bHe(),Nze(),Fze(),Yr.allowMultipleSelections.of(!0),aHe(),hpe(SHe,{fallback:!0}),_He(),KWe(),uQe(),nje(),aje(),Zze(),GVe(),hE.of([...nQe,...HVe,...pWe,...KHe,...hHe,...vme,...vQe])];class iI{static create(t,n,r,i,a){let s=i+(i<<8)+t+(n<<4)|0;return new iI(t,n,r,s,a,[],[])}constructor(t,n,r,i,a,s,o){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=a,this.children=s,this.positions=o,this.hashProp=[[lr.contextHash,i]]}addChild(t,n){t.prop(lr.contextHash)!=this.hash&&(t=new pi(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new pi(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,a,s)=>new pi(vs.none,i,a,s,this.hashProp)})}}var Jt;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(Jt||(Jt={}));class xQe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class kQe{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return CT(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let i=n;i=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Jt.OrderedList?Bj:Fj)(n,t,!1);return r>0&&(e.type!=Jt.BulletList||$j(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const xme={[Jt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(Qr(Jt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(_d(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Jt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Jt.OrderedList]:ene,[Jt.BulletList]:ene,[Jt.Document](){return!0}};function _d(e){return e==32||e==9||e==10||e==13}function CT(e,t=0){for(;tn&&_d(e.charCodeAt(t-1));)t--;return t}function kme(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||r<3?-1:1}function _me(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function Fj(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||_d(e.text.charCodeAt(e.pos+1)))&&(!n||_me(t,Jt.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){r++;if(r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||re.pos+1||e.next!=49)?-1:r+1-e.pos}function Ame(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function Rme(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,Dme=/\?>/,pF=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,qme=/\?>/,pF=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append(Qr(Jt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(Qr(Jt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(Qr(Jt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=qx.test(i),o=qx.test(a),l=/\s|^$/.test(i),c=/\s|^$/.test(a),d=!c&&(!o||l||s),h=!l&&(!s||c||o),p=d&&(t==42||!h||s),b=h&&(t==42||!d||o);return e.append(new of(t==95?Fme:Bme,n,r,(p?1:0)|(b?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Qr(Jt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(Qr(Jt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new of(y2,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new of(rne,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof of&&(i.type==y2||i.type==rne)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=NQe(e,a,i.type==y2?Jt.Link:Jt.Image,i.from,n+1);if(i.type==y2)for(let o=0;ot?Qr(Jt.URL,t+n,a+n):a==e.length?null:!1}}function zme(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new of(t,n,r,(i?1:0)|(a?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof of&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let c=i.type.resolve,d=[],h=o.from,p=i.to;if(a){let S=Math.min(2,o.to-o.from,s);h=o.to-S,p=i.from+S,c=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&d.push(this.elt(o.type.mark,h,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof of&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return CT(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Qr(this.parser.getNodeType(t),n,r,i):new $me(t,n)}}function gF(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` -`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(lr.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,c=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=Hme(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,d);else{let h=new pi(t.parser.nodeSet.types[Jt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(h,n.tree),t.addNode(h,d)}if(n.type.is("Block")&&(MQe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=c,l=n.to-r,c=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function Hme(e,t){let n=e;for(let r=1;rQ4[e]),Object.keys(Q4).map(e=>AQe[e]),Object.keys(Q4),RQe,xme,Object.keys(pM).map(e=>pM[e]),Object.keys(pM),[]);function BQe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function UQe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:Khe((i,a)=>{let s=i.type.id;if(t&&(s==Jt.CodeBlock||s==Jt.FencedCode)){let o="";if(s==Jt.FencedCode){let c=i.node.getChild(Jt.CodeInfo);c&&(o=a.read(c.from,c.to))}let l=t(o);if(l)return{parser:l,overlay:c=>c.type.id==Jt.CodeText}}else if(n&&(s==Jt.HTMLBlock||s==Jt.HTMLTag))return{parser:n,overlay:BQe(i.node,i.from,i.to)};return null})}}const zQe={resolve:"Strikethrough",mark:"StrikethroughMark"},jQe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Ee.strikethrough}},{name:"StrikethroughMark",style:Ee.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=qx.test(r),l=qx.test(i);return e.addDelimiter(zQe,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function _T(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,c=!1,d=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let h=n;h-1)&&a++,s=!1,r&&(o>-1&&d(),r.push(e.elt("TableDelimiter",h+i,h+i+1))),o=l=-1):(c||p!=32&&p!=9)&&(o<0&&(o=h),l=h+1),c=!c&&p==92}return o>-1&&(a++,r&&d()),a}function ane(e,t){for(let n=t;ni instanceof sne)||!ane(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return Vme.test(r)&&_T(e,t.text,t.basePos)==_T(e,r,t.basePos)},before:"SetextHeading"}]};class VQe{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const WQe={defineNodes:[{name:"Task",block:!0,style:Ee.list},{name:"TaskMarker",style:Ee.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new VQe:null},after:"SetextHeading"}]},one=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,lne=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,QQe=/[\w-]+\.[\w-]+($|\/)/,une=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,cne=/\/[a-zA-Z\d@.]+/gy;function dne(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&dne(e,t,r,")")>dne(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function fne(e,t){une.lastIndex=t;let n=une.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const qQe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;one.lastIndex=r;let i=one.exec(e.text),a=-1;return!i||(i[1]||i[2]?a=YQe(e.text,r+i[0].length):i[3]?a=fne(e.text,r):(a=fne(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(cne.lastIndex=a,i=cne.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},GQe=[HQe,WQe,jQe,qQe];function Wme(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new aI(t,[],n,r,r,0,[],0,i?new pne(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=a.dynamicPrecedence(i);if(s&&(this.score+=s),r==0){this.pushState(a.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new aI(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new JQe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,c=this.stack.length-o*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return o<<19|65536|l}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class pne{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class JQe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class sI{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new sI(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new sI(this.stack,this.pos,this.index)}}function Z2(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class d5{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const mne=new d5;class eYe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=mne,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=mne,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class UO{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;Qme(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}UO.prototype.contextual=UO.prototype.fallback=UO.prototype.extend=!1;class oI{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?Z2(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(Qme(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}oI.prototype.contextual=UO.prototype.fallback=UO.prototype.extend=!1;class Nf{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function Qme(e,t,n,r,i,a){let s=0,o=1<0){let v=e[b];if(l.allows(v)&&(t.token.value==-1||t.token.value==v||tYe(v,t.token.value,i,a))){t.acceptToken(v);break}}let d=t.next,h=0,p=e[s+2];if(t.next<0&&p>h&&e[c+p*3-3]==65535){s=e[c+p*3-1];continue e}for(;h>1,v=c+b+(b<<1),S=e[v],w=e[v+1]||65536;if(d=w)h=b+1;else{s=e[v+2],t.advance();continue e}}break}}function gne(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function tYe(e,t,n,r){let i=gne(n,r,t);return i<0||gne(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class nYe{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?bne(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?bne(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof pi){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class rYe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new d5)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let c=0;ch.end+25&&(l=Math.max(h.lookAhead,l)),h.value!=0)){let p=n;if(h.extended>-1&&(n=this.addActions(t,h.extended,h.end,n)),n=this.addActions(t,h.value,h.end,n),!d.extend&&(r=h,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new d5,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new d5,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new nYe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&sYe(i);if(s)return zu&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw zu&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return zu&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,l)=>l.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&c.buffer.length>500)if((o.score-c.score||o.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,d=c?t.curContext.hash:0;for(let h=this.fragments.nodeAt(i);h;){let p=this.parser.nodeSet.types[h.type.id]==h.type?a.getGoto(t.state,h.type.id):-1;if(p>-1&&h.length&&(!c||(h.prop(lr.contextHash)||0)==d))return t.useNode(h,p),zu&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(h.type.id)})`),!0;if(!(h instanceof pi)||h.children.length==0||h.positions[0]>0)break;let b=h.children[0];if(b instanceof pi&&h.positions[0]==0)h=b;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),zu&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;ci?n.push(v):r.push(v)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return yne(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),zu&&console.log(d+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let h=o.split(),p=d;for(let b=0;h.forceReduce()&&b<10&&(zu&&console.log(p+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,r));b++)zu&&(p=this.stackID(h)+" -> ");for(let b of o.recoverByInsert(l))zu&&console.log(d+this.stackID(b)+" (via recover-insert)"),this.advanceFully(b,r);this.stream.end>o.pos?(c==o.pos&&(c++,l=0),o.recoverByDelete(l,c),zu&&console.log(d+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),yne(o,r)):(!i||i.scoree;class Yme{constructor(t){this.start=t.start,this.shift=t.shift||gM,this.reduce=t.reduce||gM,this.reuse=t.reuse||gM,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class US extends yj{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(d,l,o[c++]);else{let h=o[c+-d];for(let p=-d;p>0;p--)a(o[c++],l,h);c++}}}this.nodeSet=new iC(n.map((o,l)=>vs.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Yhe;let s=Z2(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new UO(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new iYe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,l=i[a++];if(o&&r)return l;for(let c=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Up(this.data,a+2);else break;i=n(Up(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Up(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(US.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=vne(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const oYe=54,lYe=1,uYe=55,cYe=2,dYe=56,fYe=3,One=4,hYe=5,lI=6,qme=7,Gme=8,Zme=9,Xme=10,pYe=11,mYe=12,gYe=13,bM=57,bYe=14,Sne=58,Kme=20,yYe=22,Jme=23,vYe=24,bF=26,e0e=27,OYe=28,SYe=31,EYe=34,wYe=36,TYe=37,xYe=0,kYe=1,CYe={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},_Ye={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Ene={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function AYe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function t0e(e){return e==9||e==10||e==13||e==32}let wne=null,Tne=null,xne=0;function yF(e,t){let n=e.pos+t;if(xne==n&&Tne==e)return wne;let r=e.peek(t);for(;t0e(r);)r=e.peek(++t);let i="";for(;AYe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return Tne=e,xne=n,wne=i?i.toLowerCase():r==RYe||r==IYe?void 0:null}const n0e=60,uI=62,Uj=47,RYe=63,IYe=33,DYe=45;function kne(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new kne(yF(r,1)||"",e):e},reduce(e,t){return t==Kme&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==lI||i==wYe?new kne(yF(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),MYe=new Nf((e,t)=>{if(e.next!=n0e){e.next<0&&t.context&&e.acceptToken(bM);return}e.advance();let n=e.next==Uj;n&&e.advance();let r=yF(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?bYe:lI);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(pYe);if(i&&_Ye[i])return e.acceptToken(bM,-2);if(t.dialectEnabled(xYe))return e.acceptToken(mYe);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(gYe)}else{if(r=="script")return e.acceptToken(qme);if(r=="style")return e.acceptToken(Gme);if(r=="textarea")return e.acceptToken(Zme);if(CYe.hasOwnProperty(r))return e.acceptToken(Xme);i&&Ene[i]&&Ene[i][r]?e.acceptToken(bM,-1):e.acceptToken(lI)}},{contextual:!0}),LYe=new Nf(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Sne);break}if(e.next==DYe)t++;else if(e.next==uI&&t>=2){n>=3&&e.acceptToken(Sne,-2);break}else t=0;e.advance()}});function $Ye(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const FYe=new Nf((e,t)=>{if(e.next==Uj&&e.peek(1)==uI){let n=t.dialectEnabled(kYe)||$Ye(t.context);e.acceptToken(n?hYe:One,2)}else e.next==uI&&e.acceptToken(One,1)});function zj(e,t,n){let r=2+e.length;return new Nf(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==n0e||a==1&&i.next==Uj||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const BYe=zj("script",oYe,lYe),UYe=zj("style",uYe,cYe),zYe=zj("textarea",dYe,fYe),jYe=pE({"Text RawText":Ee.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Ee.angleBracket,TagName:Ee.tagName,"MismatchedCloseTag/TagName":[Ee.tagName,Ee.invalid],AttributeName:Ee.attributeName,"AttributeValue UnquotedAttributeValue":Ee.attributeValue,Is:Ee.definitionOperator,"EntityReference CharacterReference":Ee.character,Comment:Ee.blockComment,ProcessingInst:Ee.processingInstruction,DoctypeDecl:Ee.documentMeta}),HYe=US.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:PYe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[jYe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let c=o.type.id;if(c==OYe)return yM(o,l,n);if(c==SYe)return yM(o,l,r);if(c==EYe)return yM(o,l,i);if(c==Kme&&a.length){let d=o.node,h=d.firstChild,p=h&&Cne(h,l),b;if(p){for(let v of a)if(v.tag==p&&(!v.attrs||v.attrs(b||(b=r0e(d,l))))){let S=d.lastChild,w=S.type.id==TYe?S.from:d.to;if(w>h.to)return{parser:v.parser,overlay:[{from:h.to,to:w}]}}}}if(s&&c==Jme){let d=o.node,h;if(h=d.firstChild){let p=s[l.read(h.from,h.to)];if(p)for(let b of p){if(b.tagName&&b.tagName!=Cne(d.parent,l))continue;let v=d.lastChild;if(v.type.id==bF){let S=v.from+1,w=v.lastChild,T=v.to-(w&&w.isError?0:1);if(T>S)return{parser:b.parser,overlay:[{from:S,to:T}]}}else if(v.type.id==e0e)return{parser:b.parser,overlay:[{from:v.from,to:v.to}]}}}}return null})}const VYe=99,_ne=1,WYe=100,QYe=101,Ane=2,a0e=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],YYe=58,qYe=40,s0e=95,GYe=91,f5=45,ZYe=46,XYe=35,KYe=37,JYe=38,eqe=92,tqe=10;function Gx(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function nqe(e){return e>=48&&e<=57}const rqe=new Nf((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(Gx(a)||a==f5||a==s0e||n&&nqe(a))!n&&(a!=f5||i>0)&&(n=!0),r===i&&a==f5&&r++,e.advance();else if(a==eqe&&e.peek(1)!=tqe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==qYe?WYe:r==2&&t.canShift(Ane)?Ane:QYe);break}}}),iqe=new Nf(e=>{if(a0e.includes(e.peek(-1))){let{next:t}=e;(Gx(t)||t==s0e||t==XYe||t==ZYe||t==GYe||t==YYe&&Gx(e.peek(1))||t==f5||t==JYe)&&e.acceptToken(VYe)}}),aqe=new Nf(e=>{if(!a0e.includes(e.peek(-1))){let{next:t}=e;if(t==KYe&&(e.advance(),e.acceptToken(_ne)),Gx(t)){do e.advance();while(Gx(e.next));e.acceptToken(_ne)}}}),sqe=pE({"AtKeyword import charset namespace keyframes media supports":Ee.definitionKeyword,"from to selector":Ee.keyword,NamespaceName:Ee.namespace,KeyframeName:Ee.labelName,KeyframeRangeName:Ee.operatorKeyword,TagName:Ee.tagName,ClassName:Ee.className,PseudoClassName:Ee.constant(Ee.className),IdName:Ee.labelName,"FeatureName PropertyName":Ee.propertyName,AttributeName:Ee.attributeName,NumberLiteral:Ee.number,KeywordQuery:Ee.keyword,UnaryQueryOp:Ee.operatorKeyword,"CallTag ValueName":Ee.atom,VariableName:Ee.variableName,Callee:Ee.operatorKeyword,Unit:Ee.unit,"UniversalSelector NestingSelector":Ee.definitionOperator,MatchOp:Ee.compareOperator,"ChildOp SiblingOp, LogicOp":Ee.logicOperator,BinOp:Ee.arithmeticOperator,Important:Ee.modifier,Comment:Ee.blockComment,ColorLiteral:Ee.color,"ParenthesizedContent StringLiteral":Ee.string,":":Ee.punctuation,"PseudoOp #":Ee.derefOperator,"; ,":Ee.separator,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace}),oqe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},lqe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},uqe={__proto__:null,not:132,only:132},cqe=US.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[iqe,aqe,rqe,1,2,3,4,new oI("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>oqe[e]||-1},{term:58,get:e=>lqe[e]||-1},{term:101,get:e=>uqe[e]||-1}],tokenPrec:1200});let vM=null;function OM(){if(!vM&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));vM=t.sort().map(r=>({type:"property",label:r}))}return vM||[]}const Rne=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),Ine=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),dqe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),m0=/^(\w[\w-]*|-\w[\w-]*|)$/,fqe=/^-(-[\w-]*)?$/;function hqe(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const Dne=new Xhe,pqe=["Declaration"];function mqe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function o0e(e,t,n){if(t.to-t.from>4096){let r=Dne.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(Fi.IncludeAnonymous);if(s.firstChild())do for(let o of o0e(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return Dne.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(pqe)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const gqe=e=>t=>{let{state:n,pos:r}=t,i=zi(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:OM(),validFor:m0};if(i.name=="ValueName")return{from:i.from,options:Ine,validFor:m0};if(i.name=="PseudoClassName")return{from:i.from,options:Rne,validFor:m0};if(e(i)||(t.explicit||a)&&hqe(i,n.doc))return{from:e(i)||a?i.from:r,options:o0e(n.doc,mqe(i),e),validFor:fqe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:OM(),validFor:m0};return{from:i.from,options:dqe,validFor:m0}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:Rne,validFor:m0}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:Ine,validFor:m0}:s.name=="Block"||s.name=="Styles"?{from:r,options:OM(),validFor:m0}:null},bqe=gqe(e=>e.name=="VariableName"),cI=MS.define({name:"css",parser:cqe.configure({props:[sC.add({Declaration:c5()}),mE.add({"Block KeyframeList":ape})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function yqe(){return new zx(cI,cI.data.of({autocomplete:bqe}))}const vqe=309,Nne=1,Oqe=2,Sqe=3,Eqe=310,wqe=312,Tqe=313,xqe=4,kqe=5,Cqe=0,vF=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],l0e=125,_qe=59,OF=47,Aqe=42,Rqe=43,Iqe=45,Dqe=60,Nqe=44,Pqe=new Yme({start:!1,shift(e,t){return t==xqe||t==kqe||t==wqe?e:t==Tqe},strict:!1}),Mqe=new Nf((e,t)=>{let{next:n}=e;(n==l0e||n==-1||t.context)&&e.acceptToken(Eqe)},{contextual:!0,fallback:!0}),Lqe=new Nf((e,t)=>{let{next:n}=e,r;vF.indexOf(n)>-1||n==OF&&((r=e.peek(1))==OF||r==Aqe)||n!=l0e&&n!=_qe&&n!=-1&&!t.context&&e.acceptToken(vqe)},{contextual:!0}),$qe=new Nf((e,t)=>{let{next:n}=e;if((n==Rqe||n==Iqe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(Nne);e.acceptToken(r?Nne:Oqe)}},{contextual:!0});function SM(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const Fqe=new Nf((e,t)=>{if(e.next!=Dqe||!t.dialectEnabled(Cqe)||(e.advance(),e.next==OF))return;let n=0;for(;vF.indexOf(e.next)>-1;)e.advance(),n++;if(SM(e.next,!0)){for(e.advance(),n++;SM(e.next,!1);)e.advance(),n++;for(;vF.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==Nqe)return;for(let r=0;;r++){if(r==7){if(!SM(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(Sqe,-n)}),Bqe=pE({"get set async static":Ee.modifier,"for while do if else switch try catch finally return throw break continue default case":Ee.controlKeyword,"in of await yield void typeof delete instanceof":Ee.operatorKeyword,"let var const using function class extends":Ee.definitionKeyword,"import export from":Ee.moduleKeyword,"with debugger as new":Ee.keyword,TemplateString:Ee.special(Ee.string),super:Ee.atom,BooleanLiteral:Ee.bool,this:Ee.self,null:Ee.null,Star:Ee.modifier,VariableName:Ee.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Ee.function(Ee.variableName),VariableDefinition:Ee.definition(Ee.variableName),Label:Ee.labelName,PropertyName:Ee.propertyName,PrivatePropertyName:Ee.special(Ee.propertyName),"CallExpression/MemberExpression/PropertyName":Ee.function(Ee.propertyName),"FunctionDeclaration/VariableDefinition":Ee.function(Ee.definition(Ee.variableName)),"ClassDeclaration/VariableDefinition":Ee.definition(Ee.className),PropertyDefinition:Ee.definition(Ee.propertyName),PrivatePropertyDefinition:Ee.definition(Ee.special(Ee.propertyName)),UpdateOp:Ee.updateOperator,"LineComment Hashbang":Ee.lineComment,BlockComment:Ee.blockComment,Number:Ee.number,String:Ee.string,Escape:Ee.escape,ArithOp:Ee.arithmeticOperator,LogicOp:Ee.logicOperator,BitOp:Ee.bitwiseOperator,CompareOp:Ee.compareOperator,RegExp:Ee.regexp,Equals:Ee.definitionOperator,Arrow:Ee.function(Ee.punctuation),": Spread":Ee.punctuation,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace,"InterpolationStart InterpolationEnd":Ee.special(Ee.brace),".":Ee.derefOperator,", ;":Ee.separator,"@":Ee.meta,TypeName:Ee.typeName,TypeDefinition:Ee.definition(Ee.typeName),"type enum interface implements namespace module declare":Ee.definitionKeyword,"abstract global Privacy readonly override":Ee.modifier,"is keyof unique infer":Ee.operatorKeyword,JSXAttributeValue:Ee.attributeValue,JSXText:Ee.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Ee.angleBracket,"JSXIdentifier JSXNameSpacedName":Ee.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Ee.attributeName,"JSXBuiltin/JSXIdentifier":Ee.standard(Ee.tagName)}),Uqe={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},zqe={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},jqe={__proto__:null,"<":143},Hqe=US.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EjQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-EkQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&sQWO<}AN>}O%[Q^OAN?ZOOQO<qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:Pqe,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[Bqe],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#Uqe[e]||-1},{term:334,get:e=>zqe[e]||-1},{term:70,get:e=>jqe[e]||-1}],tokenPrec:14638}),u0e=[Yl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Yl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Yl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Yl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Yl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Yl(`try { +`);r=i<0?n:n.slice(0,i)}return t+r.length>this.to?r.slice(0,this.to-t):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,n,r=0){this.block=uI.create(t,r,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,n,r=0){this.startContext(this.parser.getNodeType(t),n,r)}addNode(t,n,r){typeof t=="number"&&(t=new pi(this.parser.nodeSet.types[t],zS,zS,(r??this.prevLineEnd())-n)),this.block.addChild(t,n-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,n){this.addNode(this.buffer.writeElements(gF(n.children,t.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let t=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(t.toTree(this.parser.nodeSet),t.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?Zme(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let r of t.parsers)if(r.finish(this,t))return;let n=gF(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(Jt.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?Yr(this.parser.getNodeType(t),n,r,i):new Jme(t,n)}get buffer(){return new Kme(this.parser.nodeSet)}}function Zme(e,t,n,r,i){let a=e[t].to,s=[],o=[],l=n.from+r;function c(d,h){for(;h?d>=a:d>a;){let p=e[t+1].from-a;r+=p,d+=p,t++,a=e[t].to}}for(let d=n.firstChild;d;d=d.nextSibling){c(d.from+r,!0);let h=d.from+r,p,b=i.get(d.tree);b?p=b:d.to+r>a?(p=Zme(e,t,d,r,i),c(d.to+r,!1)):p=d.toTree(),s.push(p),o.push(h-l)}return c(n.to+r,!1),new pi(n.type,s,o,n.to+r-l,n.tree?n.tree.propValues:void 0)}class MN extends Ej{constructor(t,n,r,i,a,s,o,l,c){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=a,this.skipContextMarkup=s,this.inlineParsers=o,this.inlineNames=l,this.wrappers=c,this.nodeTypes=Object.create(null);for(let d of t.types)this.nodeTypes[d.name]=d.id}createParse(t,n,r){let i=new AYe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}configure(t){let n=mF(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,a=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),o=this.blockNames.slice(),l=this.inlineParsers.slice(),c=this.inlineNames.slice(),d=this.endLeafBlock.slice(),h=this.wrappers;if(yT(n.defineNodes)){i=Object.assign({},i);let p=r.types.slice(),b;for(let v of n.defineNodes){let{name:S,block:w,composite:T,style:x}=typeof v=="string"?{name:v}:v;if(p.some(I=>I.name==S))continue;T&&(i[p.length]=(I,_,A)=>T(_,A,I.value));let k=p.length,C=T?["Block","BlockContext"]:w?k>=Jt.ATXHeading1&&k<=Jt.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;p.push(ys.define({id:k,name:S,props:C&&[[lr.group,C]]})),x&&(b||(b={}),Array.isArray(x)||x instanceof sf?b[S]=x:Object.assign(b,x))}r=new uC(p),b&&(r=r.extend(mE(b)))}if(yT(n.props)&&(r=r.extend(...n.props)),yT(n.remove))for(let p of n.remove){let b=this.blockNames.indexOf(p),v=this.inlineNames.indexOf(p);b>-1&&(a[b]=s[b]=void 0),v>-1&&(l[v]=void 0)}if(yT(n.parseBlock))for(let p of n.parseBlock){let b=o.indexOf(p.name);if(b>-1)a[b]=p.parse,s[b]=p.leaf;else{let v=p.before?J4(o,p.before):p.after?J4(o,p.after)+1:o.length-1;a.splice(v,0,p.parse),s.splice(v,0,p.leaf),o.splice(v,0,p.name)}p.endLeaf&&d.push(p.endLeaf)}if(yT(n.parseInline))for(let p of n.parseInline){let b=c.indexOf(p.name);if(b>-1)l[b]=p.parse;else{let v=p.before?J4(c,p.before):p.after?J4(c,p.after)+1:c.length-1;l.splice(v,0,p.parse),c.splice(v,0,p.name)}}return n.wrap&&(h=h.concat(n.wrap)),new MN(r,a,s,o,d,i,l,c,h)}getNodeType(t){let n=this.nodeTypes[t];if(n==null)throw new RangeError(`Unknown node type '${t}'`);return n}parseInline(t,n){let r=new IYe(this,t,n);e:for(let i=n;i=0){i=o;continue e}}i++}return r.resolveMarkers(0)}}function yT(e){return e!=null&&e.length>0}function mF(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=mF(e[0]);if(e.length==1)return t;let n=mF(e.slice(1));if(!n||!t)return t||n;let r=(s,o)=>(s||zS).concat(o||zS),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(s,o,l,c)=>i(a(s,o,l,c),o,l,c):i:a}}function J4(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let Xme=[ys.none];for(let e=1,t;t=Jt[e];e++)Xme[e]=ys.define({id:e,name:t,props:e>=Jt.Escape?[]:[[lr.group,e in zme?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const zS=[];let Kme=class{constructor(t){this.nodeSet=t,this.content=[],this.nodes=[]}write(t,n,r,i=0){return this.content.push(t,n,r,4+i*4),this}writeElements(t,n=0){for(let r of t)r.writeTo(this,n);return this}finish(t,n){return pi.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:n})}},Gx=class{constructor(t,n,r,i=zS){this.type=t,this.from=n,this.to=r,this.children=i}writeTo(t,n){let r=t.content.length;t.writeElements(this.children,n),t.content.push(this.type,this.from+n,this.to+n,t.content.length+4-r)}toTree(t){return new Kme(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class Jme{constructor(t,n){this.tree=t,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return zS}writeTo(t,n){t.nodes.push(this.tree),t.content.push(t.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function Yr(e,t,n,r){return new Gx(e,t,n,r)}const e0e={resolve:"Emphasis",mark:"EmphasisMark"},t0e={resolve:"Emphasis",mark:"EmphasisMark"},vT={},gne={};class of{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const bne="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Zx=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Zx=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const pM={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let i=0;i]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(Yr(Jt.Autolink,n,n+1+i[0].length,[Yr(Jt.LinkMark,n,n+1),Yr(Jt.URL,n+1,n+i[0].length),Yr(Jt.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return e.append(Yr(Jt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(Yr(Jt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(Yr(Jt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=Zx.test(i),o=Zx.test(a),l=/\s|^$/.test(i),c=/\s|^$/.test(a),d=!c&&(!o||l||s),h=!l&&(!s||c||o),p=d&&(t==42||!h||s),b=h&&(t==42||!d||o);return e.append(new of(t==95?e0e:t0e,n,r,(p?1:0)|(b?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Yr(Jt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(Yr(Jt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new of(vT,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new of(gne,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof of&&(i.type==vT||i.type==gne)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=RYe(e,a,i.type==vT?Jt.Link:Jt.Image,i.from,n+1);if(i.type==vT)for(let o=0;ot?Yr(Jt.URL,t+n,a+n):a==e.length?null:!1}}function r0e(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new of(t,n,r,(i?1:0)|(a?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof of&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let c=i.type.resolve,d=[],h=o.from,p=i.to;if(a){let S=Math.min(2,o.to-o.from,s);h=o.to-S,p=i.from+S,c=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&d.push(this.elt(o.type.mark,h,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof of&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return _2(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Yr(this.parser.getNodeType(t),n,r,i):new Jme(t,n)}}function gF(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` +`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(lr.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,c=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=a0e(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,d);else{let h=new pi(t.parser.nodeSet.types[Jt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(h,n.tree),t.addNode(h,d)}if(n.type.is("Block")&&(DYe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=c,l=n.to-r,c=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function a0e(e,t){let n=e;for(let r=1;rK4[e]),Object.keys(K4).map(e=>kYe[e]),Object.keys(K4),CYe,zme,Object.keys(pM).map(e=>pM[e]),Object.keys(pM),[]);function LYe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function $Ye(e){let{codeParser:t,htmlParser:n}=e;return{wrap:ppe((i,a)=>{let s=i.type.id;if(t&&(s==Jt.CodeBlock||s==Jt.FencedCode)){let o="";if(s==Jt.FencedCode){let c=i.node.getChild(Jt.CodeInfo);c&&(o=a.read(c.from,c.to))}let l=t(o);if(l)return{parser:l,overlay:c=>c.type.id==Jt.CodeText}}else if(n&&(s==Jt.HTMLBlock||s==Jt.HTMLTag))return{parser:n,overlay:LYe(i.node,i.from,i.to)};return null})}}const FYe={resolve:"Strikethrough",mark:"StrikethroughMark"},BYe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Ee.strikethrough}},{name:"StrikethroughMark",style:Ee.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=Zx.test(r),l=Zx.test(i);return e.addDelimiter(FYe,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function A2(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,c=!1,d=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let h=n;h-1)&&a++,s=!1,r&&(o>-1&&d(),r.push(e.elt("TableDelimiter",h+i,h+i+1))),o=l=-1):(c||p!=32&&p!=9)&&(o<0&&(o=h),l=h+1),c=!c&&p==92}return o>-1&&(a++,r&&d()),a}function yne(e,t){for(let n=t;ni instanceof vne)||!yne(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return s0e.test(r)&&A2(e,t.text,t.basePos)==A2(e,r,t.basePos)},before:"SetextHeading"}]};class zYe{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const jYe={defineNodes:[{name:"Task",block:!0,style:Ee.list},{name:"TaskMarker",style:Ee.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new zYe:null},after:"SetextHeading"}]},One=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Sne=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,HYe=/[\w-]+\.[\w-]+($|\/)/,Ene=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,wne=/\/[a-zA-Z\d@.]+/gy;function Tne(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&Tne(e,t,r,")")>Tne(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function xne(e,t){Ene.lastIndex=t;let n=Ene.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const WYe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;One.lastIndex=r;let i=One.exec(e.text),a=-1;return!i||(i[1]||i[2]?a=VYe(e.text,r+i[0].length):i[3]?a=xne(e.text,r):(a=xne(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(wne.lastIndex=a,i=wne.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},QYe=[UYe,jYe,BYe,WYe];function o0e(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new cI(t,[],n,r,r,0,[],0,i?new Cne(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=a.dynamicPrecedence(i);if(s&&(this.score+=s),r==0){this.pushState(a.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new cI(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new ZYe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,c=this.stack.length-o*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return o<<19|65536|l}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Cne{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class ZYe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class dI{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new dI(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new dI(this.stack,this.pos,this.index)}}function XT(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class b5{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const _ne=new b5;class XYe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=_ne,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=_ne,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class zO{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;l0e(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}zO.prototype.contextual=zO.prototype.fallback=zO.prototype.extend=!1;class fI{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?XT(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(l0e(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}fI.prototype.contextual=zO.prototype.fallback=zO.prototype.extend=!1;class Nf{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function l0e(e,t,n,r,i,a){let s=0,o=1<0){let v=e[b];if(l.allows(v)&&(t.token.value==-1||t.token.value==v||KYe(v,t.token.value,i,a))){t.acceptToken(v);break}}let d=t.next,h=0,p=e[s+2];if(t.next<0&&p>h&&e[c+p*3-3]==65535){s=e[c+p*3-1];continue e}for(;h>1,v=c+b+(b<<1),S=e[v],w=e[v+1]||65536;if(d=w)h=b+1;else{s=e[v+2],t.advance();continue e}}break}}function Ane(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function KYe(e,t,n,r){let i=Ane(n,r,t);return i<0||Ane(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class JYe{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?Rne(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Rne(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof pi){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class eqe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new b5)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let c=0;ch.end+25&&(l=Math.max(h.lookAhead,l)),h.value!=0)){let p=n;if(h.extended>-1&&(n=this.addActions(t,h.extended,h.end,n)),n=this.addActions(t,h.value,h.end,n),!d.extend&&(r=h,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new b5,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new b5,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new JYe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&rqe(i);if(s)return zu&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw zu&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return zu&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,l)=>l.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&c.buffer.length>500)if((o.score-c.score||o.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,d=c?t.curContext.hash:0;for(let h=this.fragments.nodeAt(i);h;){let p=this.parser.nodeSet.types[h.type.id]==h.type?a.getGoto(t.state,h.type.id):-1;if(p>-1&&h.length&&(!c||(h.prop(lr.contextHash)||0)==d))return t.useNode(h,p),zu&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(h.type.id)})`),!0;if(!(h instanceof pi)||h.children.length==0||h.positions[0]>0)break;let b=h.children[0];if(b instanceof pi&&h.positions[0]==0)h=b;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),zu&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;ci?n.push(v):r.push(v)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return Ine(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),zu&&console.log(d+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let h=o.split(),p=d;for(let b=0;h.forceReduce()&&b<10&&(zu&&console.log(p+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,r));b++)zu&&(p=this.stackID(h)+" -> ");for(let b of o.recoverByInsert(l))zu&&console.log(d+this.stackID(b)+" (via recover-insert)"),this.advanceFully(b,r);this.stream.end>o.pos?(c==o.pos&&(c++,l=0),o.recoverByDelete(l,c),zu&&console.log(d+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),Ine(o,r)):(!i||i.scoree;class u0e{constructor(t){this.start=t.start,this.shift=t.shift||gM,this.reduce=t.reduce||gM,this.reuse=t.reuse||gM,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class jS extends Ej{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(d,l,o[c++]);else{let h=o[c+-d];for(let p=-d;p>0;p--)a(o[c++],l,h);c++}}}this.nodeSet=new uC(n.map((o,l)=>ys.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=upe;let s=XT(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new zO(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new tqe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,l=i[a++];if(o&&r)return l;for(let c=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=zp(this.data,a+2);else break;i=n(zp(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=zp(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(jS.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=Dne(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const iqe=54,aqe=1,sqe=55,oqe=2,lqe=56,uqe=3,Nne=4,cqe=5,hI=6,c0e=7,d0e=8,f0e=9,h0e=10,dqe=11,fqe=12,hqe=13,bM=57,pqe=14,Pne=58,p0e=20,mqe=22,m0e=23,gqe=24,bF=26,g0e=27,bqe=28,yqe=31,vqe=34,Oqe=36,Sqe=37,Eqe=0,wqe=1,Tqe={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},xqe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Mne={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function kqe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function b0e(e){return e==9||e==10||e==13||e==32}let Lne=null,$ne=null,Fne=0;function yF(e,t){let n=e.pos+t;if(Fne==n&&$ne==e)return Lne;let r=e.peek(t);for(;b0e(r);)r=e.peek(++t);let i="";for(;kqe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return $ne=e,Fne=n,Lne=i?i.toLowerCase():r==Cqe||r==_qe?void 0:null}const y0e=60,pI=62,Vj=47,Cqe=63,_qe=33,Aqe=45;function Bne(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new Bne(yF(r,1)||"",e):e},reduce(e,t){return t==p0e&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==hI||i==Oqe?new Bne(yF(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),Dqe=new Nf((e,t)=>{if(e.next!=y0e){e.next<0&&t.context&&e.acceptToken(bM);return}e.advance();let n=e.next==Vj;n&&e.advance();let r=yF(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?pqe:hI);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(dqe);if(i&&xqe[i])return e.acceptToken(bM,-2);if(t.dialectEnabled(Eqe))return e.acceptToken(fqe);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(hqe)}else{if(r=="script")return e.acceptToken(c0e);if(r=="style")return e.acceptToken(d0e);if(r=="textarea")return e.acceptToken(f0e);if(Tqe.hasOwnProperty(r))return e.acceptToken(h0e);i&&Mne[i]&&Mne[i][r]?e.acceptToken(bM,-1):e.acceptToken(hI)}},{contextual:!0}),Nqe=new Nf(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Pne);break}if(e.next==Aqe)t++;else if(e.next==pI&&t>=2){n>=3&&e.acceptToken(Pne,-2);break}else t=0;e.advance()}});function Pqe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const Mqe=new Nf((e,t)=>{if(e.next==Vj&&e.peek(1)==pI){let n=t.dialectEnabled(wqe)||Pqe(t.context);e.acceptToken(n?cqe:Nne,2)}else e.next==pI&&e.acceptToken(Nne,1)});function Wj(e,t,n){let r=2+e.length;return new Nf(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==y0e||a==1&&i.next==Vj||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const Lqe=Wj("script",iqe,aqe),$qe=Wj("style",sqe,oqe),Fqe=Wj("textarea",lqe,uqe),Bqe=mE({"Text RawText":Ee.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Ee.angleBracket,TagName:Ee.tagName,"MismatchedCloseTag/TagName":[Ee.tagName,Ee.invalid],AttributeName:Ee.attributeName,"AttributeValue UnquotedAttributeValue":Ee.attributeValue,Is:Ee.definitionOperator,"EntityReference CharacterReference":Ee.character,Comment:Ee.blockComment,ProcessingInst:Ee.processingInstruction,DoctypeDecl:Ee.documentMeta}),Uqe=jS.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Iqe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[Bqe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let c=o.type.id;if(c==bqe)return yM(o,l,n);if(c==yqe)return yM(o,l,r);if(c==vqe)return yM(o,l,i);if(c==p0e&&a.length){let d=o.node,h=d.firstChild,p=h&&Une(h,l),b;if(p){for(let v of a)if(v.tag==p&&(!v.attrs||v.attrs(b||(b=v0e(d,l))))){let S=d.lastChild,w=S.type.id==Sqe?S.from:d.to;if(w>h.to)return{parser:v.parser,overlay:[{from:h.to,to:w}]}}}}if(s&&c==m0e){let d=o.node,h;if(h=d.firstChild){let p=s[l.read(h.from,h.to)];if(p)for(let b of p){if(b.tagName&&b.tagName!=Une(d.parent,l))continue;let v=d.lastChild;if(v.type.id==bF){let S=v.from+1,w=v.lastChild,T=v.to-(w&&w.isError?0:1);if(T>S)return{parser:b.parser,overlay:[{from:S,to:T}]}}else if(v.type.id==g0e)return{parser:b.parser,overlay:[{from:v.from,to:v.to}]}}}}return null})}const zqe=99,zne=1,jqe=100,Hqe=101,jne=2,S0e=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Vqe=58,Wqe=40,E0e=95,Qqe=91,y5=45,Yqe=46,qqe=35,Gqe=37,Zqe=38,Xqe=92,Kqe=10;function Xx(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Jqe(e){return e>=48&&e<=57}const eGe=new Nf((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(Xx(a)||a==y5||a==E0e||n&&Jqe(a))!n&&(a!=y5||i>0)&&(n=!0),r===i&&a==y5&&r++,e.advance();else if(a==Xqe&&e.peek(1)!=Kqe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==Wqe?jqe:r==2&&t.canShift(jne)?jne:Hqe);break}}}),tGe=new Nf(e=>{if(S0e.includes(e.peek(-1))){let{next:t}=e;(Xx(t)||t==E0e||t==qqe||t==Yqe||t==Qqe||t==Vqe&&Xx(e.peek(1))||t==y5||t==Zqe)&&e.acceptToken(zqe)}}),nGe=new Nf(e=>{if(!S0e.includes(e.peek(-1))){let{next:t}=e;if(t==Gqe&&(e.advance(),e.acceptToken(zne)),Xx(t)){do e.advance();while(Xx(e.next));e.acceptToken(zne)}}}),rGe=mE({"AtKeyword import charset namespace keyframes media supports":Ee.definitionKeyword,"from to selector":Ee.keyword,NamespaceName:Ee.namespace,KeyframeName:Ee.labelName,KeyframeRangeName:Ee.operatorKeyword,TagName:Ee.tagName,ClassName:Ee.className,PseudoClassName:Ee.constant(Ee.className),IdName:Ee.labelName,"FeatureName PropertyName":Ee.propertyName,AttributeName:Ee.attributeName,NumberLiteral:Ee.number,KeywordQuery:Ee.keyword,UnaryQueryOp:Ee.operatorKeyword,"CallTag ValueName":Ee.atom,VariableName:Ee.variableName,Callee:Ee.operatorKeyword,Unit:Ee.unit,"UniversalSelector NestingSelector":Ee.definitionOperator,MatchOp:Ee.compareOperator,"ChildOp SiblingOp, LogicOp":Ee.logicOperator,BinOp:Ee.arithmeticOperator,Important:Ee.modifier,Comment:Ee.blockComment,ColorLiteral:Ee.color,"ParenthesizedContent StringLiteral":Ee.string,":":Ee.punctuation,"PseudoOp #":Ee.derefOperator,"; ,":Ee.separator,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace}),iGe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},aGe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},sGe={__proto__:null,not:132,only:132},oGe=jS.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[tGe,nGe,eGe,1,2,3,4,new fI("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>iGe[e]||-1},{term:58,get:e=>aGe[e]||-1},{term:101,get:e=>sGe[e]||-1}],tokenPrec:1200});let vM=null;function OM(){if(!vM&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));vM=t.sort().map(r=>({type:"property",label:r}))}return vM||[]}const Hne=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),Vne=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),lGe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),m0=/^(\w[\w-]*|-\w[\w-]*|)$/,uGe=/^-(-[\w-]*)?$/;function cGe(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const Wne=new hpe,dGe=["Declaration"];function fGe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function w0e(e,t,n){if(t.to-t.from>4096){let r=Wne.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(Fi.IncludeAnonymous);if(s.firstChild())do for(let o of w0e(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return Wne.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(dGe)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const hGe=e=>t=>{let{state:n,pos:r}=t,i=zi(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:OM(),validFor:m0};if(i.name=="ValueName")return{from:i.from,options:Vne,validFor:m0};if(i.name=="PseudoClassName")return{from:i.from,options:Hne,validFor:m0};if(e(i)||(t.explicit||a)&&cGe(i,n.doc))return{from:e(i)||a?i.from:r,options:w0e(n.doc,fGe(i),e),validFor:uGe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:OM(),validFor:m0};return{from:i.from,options:lGe,validFor:m0}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:Hne,validFor:m0}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:Vne,validFor:m0}:s.name=="Block"||s.name=="Styles"?{from:r,options:OM(),validFor:m0}:null},pGe=hGe(e=>e.name=="VariableName"),mI=$S.define({name:"css",parser:oGe.configure({props:[dC.add({Declaration:g5()}),gE.add({"Block KeyframeList":Spe})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function mGe(){return new Hx(mI,mI.data.of({autocomplete:pGe}))}const gGe=309,Qne=1,bGe=2,yGe=3,vGe=310,OGe=312,SGe=313,EGe=4,wGe=5,TGe=0,vF=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],T0e=125,xGe=59,OF=47,kGe=42,CGe=43,_Ge=45,AGe=60,RGe=44,IGe=new u0e({start:!1,shift(e,t){return t==EGe||t==wGe||t==OGe?e:t==SGe},strict:!1}),DGe=new Nf((e,t)=>{let{next:n}=e;(n==T0e||n==-1||t.context)&&e.acceptToken(vGe)},{contextual:!0,fallback:!0}),NGe=new Nf((e,t)=>{let{next:n}=e,r;vF.indexOf(n)>-1||n==OF&&((r=e.peek(1))==OF||r==kGe)||n!=T0e&&n!=xGe&&n!=-1&&!t.context&&e.acceptToken(gGe)},{contextual:!0}),PGe=new Nf((e,t)=>{let{next:n}=e;if((n==CGe||n==_Ge)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(Qne);e.acceptToken(r?Qne:bGe)}},{contextual:!0});function SM(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const MGe=new Nf((e,t)=>{if(e.next!=AGe||!t.dialectEnabled(TGe)||(e.advance(),e.next==OF))return;let n=0;for(;vF.indexOf(e.next)>-1;)e.advance(),n++;if(SM(e.next,!0)){for(e.advance(),n++;SM(e.next,!1);)e.advance(),n++;for(;vF.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==RGe)return;for(let r=0;;r++){if(r==7){if(!SM(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(yGe,-n)}),LGe=mE({"get set async static":Ee.modifier,"for while do if else switch try catch finally return throw break continue default case":Ee.controlKeyword,"in of await yield void typeof delete instanceof":Ee.operatorKeyword,"let var const using function class extends":Ee.definitionKeyword,"import export from":Ee.moduleKeyword,"with debugger as new":Ee.keyword,TemplateString:Ee.special(Ee.string),super:Ee.atom,BooleanLiteral:Ee.bool,this:Ee.self,null:Ee.null,Star:Ee.modifier,VariableName:Ee.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Ee.function(Ee.variableName),VariableDefinition:Ee.definition(Ee.variableName),Label:Ee.labelName,PropertyName:Ee.propertyName,PrivatePropertyName:Ee.special(Ee.propertyName),"CallExpression/MemberExpression/PropertyName":Ee.function(Ee.propertyName),"FunctionDeclaration/VariableDefinition":Ee.function(Ee.definition(Ee.variableName)),"ClassDeclaration/VariableDefinition":Ee.definition(Ee.className),PropertyDefinition:Ee.definition(Ee.propertyName),PrivatePropertyDefinition:Ee.definition(Ee.special(Ee.propertyName)),UpdateOp:Ee.updateOperator,"LineComment Hashbang":Ee.lineComment,BlockComment:Ee.blockComment,Number:Ee.number,String:Ee.string,Escape:Ee.escape,ArithOp:Ee.arithmeticOperator,LogicOp:Ee.logicOperator,BitOp:Ee.bitwiseOperator,CompareOp:Ee.compareOperator,RegExp:Ee.regexp,Equals:Ee.definitionOperator,Arrow:Ee.function(Ee.punctuation),": Spread":Ee.punctuation,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace,"InterpolationStart InterpolationEnd":Ee.special(Ee.brace),".":Ee.derefOperator,", ;":Ee.separator,"@":Ee.meta,TypeName:Ee.typeName,TypeDefinition:Ee.definition(Ee.typeName),"type enum interface implements namespace module declare":Ee.definitionKeyword,"abstract global Privacy readonly override":Ee.modifier,"is keyof unique infer":Ee.operatorKeyword,JSXAttributeValue:Ee.attributeValue,JSXText:Ee.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Ee.angleBracket,"JSXIdentifier JSXNameSpacedName":Ee.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Ee.attributeName,"JSXBuiltin/JSXIdentifier":Ee.standard(Ee.tagName)}),$Ge={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},FGe={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},BGe={__proto__:null,"<":143},UGe=jS.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EjQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-EkQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&sQWO<}AN>}O%[Q^OAN?ZOOQO<qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:IGe,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[LGe],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#$Ge[e]||-1},{term:334,get:e=>FGe[e]||-1},{term:70,get:e=>BGe[e]||-1}],tokenPrec:14638}),x0e=[Yl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Yl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Yl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Yl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Yl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Yl(`try { \${} } catch (\${error}) { \${} @@ -221,9 +222,9 @@ Error generating stack: `+a.message+` constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Yl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Yl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Vqe=u0e.concat([Yl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Yl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Yl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Pne=new Xhe,c0e=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function v2(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const Wqe=["FunctionDeclaration"],Qqe={FunctionDeclaration:v2("function"),ClassDeclaration:v2("class"),ClassExpression:()=>!0,EnumDeclaration:v2("constant"),TypeAliasDeclaration:v2("type"),NamespaceDeclaration:v2("namespace"),VariableDefinition(e,t){e.matchContext(Wqe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function d0e(e,t){let n=Pne.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(Fi.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=Qqe[s.name];if(o&&o(s,a)||c0e.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of d0e(e,s.node))r.push(o);return!1}}),Pne.set(t,r),r}const Mne=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,f0e=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Yqe(e){let t=zi(e.state).resolveInner(e.pos,-1);if(f0e.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&Mne.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)c0e.has(i.name)&&(r=r.concat(d0e(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:Mne}}const Wh=MS.define({name:"javascript",parser:Hqe.configure({props:[sC.add({IfStatement:c5({except:/^\s*({|else\b)/}),TryStatement:c5({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:rHe,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:nHe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":c5({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),mE.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":ape,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),h0e={test:e=>/^JSX/.test(e.name),facet:vj({commentTokens:{block:{open:"{/*",close:"*/}"}}})},p0e=Wh.configure({dialect:"ts"},"typescript"),m0e=Wh.configure({dialect:"jsx",props:[Oj.add(e=>e.isTop?[h0e]:void 0)]}),g0e=Wh.configure({dialect:"jsx ts",props:[Oj.add(e=>e.isTop?[h0e]:void 0)]},"typescript");let b0e=e=>({label:e,type:"keyword"});const y0e="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(b0e),qqe=y0e.concat(["declare","implements","private","protected","public"].map(b0e));function Gqe(e={}){let t=e.jsx?e.typescript?g0e:m0e:e.typescript?p0e:Wh,n=e.typescript?Vqe.concat(qqe):u0e.concat(y0e);return new zx(t,[Wh.data.of({autocomplete:vWe(f0e,ome(n))}),Wh.data.of({autocomplete:Yqe}),e.jsx?Kqe:[]])}function Zqe(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function Lne(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const Xqe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Kqe=hn.inputHandler.of((e,t,n,r,i)=>{if((Xqe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Wh.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var c;let{head:d}=l,h=zi(s).resolveInner(d-1,-1),p;if(h.name=="JSXStartTag"&&(h=h.parent),!(s.doc.sliceString(d-1,d)!=r||h.name=="JSXAttributeValue"&&h.to>d)){if(r==">"&&h.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:""}};if(r=="/"&&h.name=="JSXStartCloseTag"){let b=h.parent,v=b.parent;if(v&&b.from==d-2&&((p=Lne(s.doc,v.firstChild,d))||((c=v.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let S=`${p}>`;return{range:wt.cursor(d+S.length,-1),changes:{from:d,insert:S}}}}else if(r==">"){let b=Zqe(h);if(b&&!/^\/?>|^<\//.test(s.doc.sliceString(d,d+2))&&(p=Lne(s.doc,b,d)))return{range:l,changes:{from:d,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),O2=["_blank","_self","_top","_parent"],EM=["ascii","utf-8","utf-16","latin1","latin1"],wM=["get","post","put","delete"],TM=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],ju=["true","false"],Pn={},Jqe={a:{attrs:{href:null,ping:null,type:null,media:null,target:O2,hreflang:null}},abbr:Pn,address:Pn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Pn,aside:Pn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Pn,base:{attrs:{href:null,target:O2}},bdi:Pn,bdo:Pn,blockquote:{attrs:{cite:null}},body:Pn,br:Pn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:TM,formmethod:wM,formnovalidate:["novalidate"],formtarget:O2,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Pn,center:Pn,cite:Pn,code:Pn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Pn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Pn,div:Pn,dl:Pn,dt:Pn,em:Pn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Pn,figure:Pn,footer:Pn,form:{attrs:{action:null,name:null,"accept-charset":EM,autocomplete:["on","off"],enctype:TM,method:wM,novalidate:["novalidate"],target:O2}},h1:Pn,h2:Pn,h3:Pn,h4:Pn,h5:Pn,h6:Pn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Pn,hgroup:Pn,hr:Pn,html:{attrs:{manifest:null}},i:Pn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:TM,formmethod:wM,formnovalidate:["novalidate"],formtarget:O2,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Pn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Pn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Pn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:EM,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Pn,noscript:Pn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Pn,param:{attrs:{name:null,value:null}},pre:Pn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Pn,rt:Pn,ruby:Pn,samp:Pn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:EM}},section:Pn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Pn,source:{attrs:{src:null,type:null,media:null}},span:Pn,strong:Pn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Pn,summary:Pn,sup:Pn,table:Pn,tbody:Pn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Pn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Pn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Pn,time:{attrs:{datetime:null}},title:Pn,tr:Pn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Pn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Pn},v0e={accesskey:null,class:null,contenteditable:ju,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:ju,autocorrect:ju,autocapitalize:ju,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":ju,"aria-autocomplete":["inline","list","both","none"],"aria-busy":ju,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":ju,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":ju,"aria-hidden":ju,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":ju,"aria-multiselectable":ju,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":ju,"aria-relevant":null,"aria-required":ju,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},O0e="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of O0e)v0e[e]=null;let Zx=class{constructor(t,n){this.tags=Object.assign(Object.assign({},Jqe),t),this.globalAttrs=Object.assign(Object.assign({},v0e),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Zx.default=new Zx;function zS(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function jS(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function S0e(e,t,n){let r=n.tags[zS(e,jS(t))];return(r==null?void 0:r.children)||n.allTags}function jj(e,t){let n=[];for(let r=jS(t);r&&!r.type.isTop;r=jS(r.parent)){let i=zS(e,r);if(i&&r.lastChild.name=="CloseTag")break;i&&n.indexOf(i)<0&&(t.name=="EndTag"||t.from>=r.firstChild.to)&&n.push(i)}return n}const E0e=/^[:\-\.\w\u00b7-\uffff]*$/;function $ne(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=jS(n,!0);return{from:r,to:i,options:S0e(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(jj(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Fne(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:jj(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:E0e}}function eGe(e,t,n,r){let i=[],a=0;for(let s of S0e(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of jj(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function tGe(e,t,n,r,i){let a=jS(n),s=a?t.tags[zS(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(c=>({label:c,type:"property"})),validFor:E0e}}function nGe(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let c=e.sliceDoc(s.from,s.to),d=t.globalAttrs[c];if(!d){let h=jS(n),p=h?t.tags[zS(e.doc,h)]:null;d=(p==null?void 0:p.attrs)&&p.attrs[c]}if(d){let h=e.sliceDoc(r,i).toLowerCase(),p='"',b='"';/^['"]/.test(h)?(l=h[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",b=e.sliceDoc(i,i+1)==h[0]?"":h[0],h=h.slice(1),r++):l=/^[^\s<>='"]*$/;for(let v of d)o.push({label:v,apply:p+v+b,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function w0e(e,t){let{state:n,pos:r}=t,i=zi(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.fromw0e(r,i)}const aGe=Wh.parser.configure({top:"SingleExpression"}),T0e=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:p0e.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:m0e.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:g0e.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:aGe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Wh.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:cI.parser}],x0e=[{name:"style",parser:cI.parser.configure({top:"Styles"})}].concat(O0e.map(e=>({name:e,parser:Wh.parser}))),k0e=MS.define({name:"html",parser:HYe.configure({props:[sC.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),h5=k0e.configure({wrap:i0e(T0e,x0e)});function sGe(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=i0e((e.nestedLanguages||[]).concat(T0e),(e.nestedAttributes||[]).concat(x0e)));let r=n?k0e.configure({wrap:n,dialect:t}):t?h5.configure({dialect:t}):h5;return new zx(r,[h5.data.of({autocomplete:iGe(e)}),e.autoCloseTags!==!1?oGe:[],Gqe().support,yqe().support])}const Bne=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),oGe=hn.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!h5.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var c,d,h;let p=s.doc.sliceString(l.from-1,l.to)==r,{head:b}=l,v=zi(s).resolveInner(b-1,-1),S;if((v.name=="TagName"||v.name=="StartTag")&&(v=v.parent),p&&r==">"&&v.name=="OpenTag"){if(((d=(c=v.parent)===null||c===void 0?void 0:c.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(S=zS(s.doc,v.parent,b))&&!Bne.has(S)){let w=b+(s.doc.sliceString(b,b+1)===">"?1:0),T=``;return{range:l,changes:{from:b,to:w,insert:T}}}}else if(p&&r=="/"&&v.name=="IncompleteCloseTag"){let w=v.parent;if(v.from==b-2&&((h=w.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(S=zS(s.doc,w,b))&&!Bne.has(S)){let T=b+(s.doc.sliceString(b,b+1)===">"?1:0),x=`${S}>`;return{range:wt.cursor(b+x.length,-1),changes:{from:b,to:T,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),C0e=vj({commentTokens:{block:{open:""}}}),_0e=new lr,A0e=FQe.configure({props:[mE.add(e=>!e.is("Block")||e.is("Document")||SF(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),_0e.add(SF),sC.add({Document:()=>null}),yb.add({Document:C0e})]});function SF(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function lGe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=SF(r.type))!=null&&i<=t)break;n=r}return n.to}const uGe=ipe.of((e,t,n)=>{for(let r=zi(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function Hj(e){return new od(C0e,e,[uGe],"markdown")}const cGe=Hj(A0e),dGe=A0e.configure([GQe,XQe,ZQe,KQe,{props:[mE.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),R0e=Hj(dGe);function fGe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=WR.matchLanguageName(e,n,!0),r instanceof WR)return r.support?r.support.language.parser:Ux.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class q4{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+D0e(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function I0e(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new q4(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new q4(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let c=s[3],d=s[0].length;c.length>=4&&(c=c.slice(0,c.length-4),d-=4),r.push(new q4(a.parent,l,l+d,s[1],c,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let c=s[4],d=s[0].length;c.length>4&&(c=c.slice(0,c.length-4),d-=4);let h=s[2];s[3]&&(h+=s[3].replace(/[xX]/," ")),r.push(new q4(a.parent,l,l+d,s[1],c,h,a))}}return r}function D0e(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function xM(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=D0e(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function Vj(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(aC)!=" ")return e;let r=Sf(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const hGe=({state:e,dispatch:t})=>{let n=zi(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!R0e.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),c=I0e(n.resolveInner(o,-1),r);for(;c.length&&c[c.length-1].from>o-l.from;)c.pop();if(!c.length)return i={range:s};let d=c[c.length-1];if(d.to-d.spaceAfter.length>o-l.from)return i={range:s};let h=o>=d.to-d.spaceAfter.length&&!/\S/.test(l.text.slice(d.to));if(d.item&&h){let w=d.node.firstChild,T=d.node.getChild("ListItem","ListItem");if(w.to>=o||T&&T.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=c.length>1?c[c.length-2]:null,k,C="";x&&x.item?(k=l.from+x.from,C=x.marker(r,1)):k=l.from+(x?x.to:0);let I=[{from:k,to:o,insert:C}];return d.node.name=="OrderedList"&&xM(d.item,r,I,-2),x&&x.node.name=="OrderedList"&&xM(x.item,r,I),{range:wt.cursor(k+C.length),changes:I}}else{let x=zne(c,e,l);return{range:wt.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(d.node.name=="Blockquote"&&h&&l.from){let w=r.lineAt(l.from-1),T=/>\s*$/.exec(w.text);if(T&&T.index==d.from){let x=e.changes([{from:w.from+T.index,to:w.to},{from:l.from+d.from,to:l.to}]);return{range:s.map(x),changes:x}}}let p=[];d.node.name=="OrderedList"&&xM(d.item,r,p);let b=d.item&&d.item.from]*/.exec(l.text)[0].length>=d.to)for(let w=0,T=c.length-1;w<=T;w++)v+=w==T&&!b?c[w].marker(r,1):c[w].blank(wl.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return v=Vj(v,e),pGe(d.node,e.doc)&&(v=zne(c,e,l)+e.lineBreak+v),p.push({from:S,to:o,insert:e.lineBreak+v}),{range:wt.cursor(S+v.length+1),changes:p}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function Une(e){return e.name=="QuoteMark"||e.name=="ListMark"}function pGe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=zi(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&R0e.isActiveAt(e,a.from)){let l=o.lineAt(s),c=I0e(mGe(n,s),o);if(c.length){let d=c[c.length-1],h=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(s-l.from>h&&!/\S/.test(l.text.slice(h,s-l.from)))return{range:wt.cursor(l.from+h),changes:{from:l.from+h,to:s}};if(s-l.from==h&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let p=l.from+d.from;if(d.item&&d.node.fromu in g?i(g,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[u]=f,s=(g,u,f)=>(a(g,typeof u!="symbol"?u+"":u,f),f),o;(function(g){g[g.Canceled=1]="Canceled",g[g.Unknown=2]="Unknown",g[g.InvalidArgument=3]="InvalidArgument",g[g.DeadlineExceeded=4]="DeadlineExceeded",g[g.NotFound=5]="NotFound",g[g.AlreadyExists=6]="AlreadyExists",g[g.PermissionDenied=7]="PermissionDenied",g[g.ResourceExhausted=8]="ResourceExhausted",g[g.FailedPrecondition=9]="FailedPrecondition",g[g.Aborted=10]="Aborted",g[g.OutOfRange=11]="OutOfRange",g[g.Unimplemented=12]="Unimplemented",g[g.Internal=13]="Internal",g[g.Unavailable=14]="Unavailable",g[g.DataLoss=15]="DataLoss",g[g.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(g,u){if(!g)throw new Error(u)}const c=34028234663852886e22,d=-34028234663852886e22,h=4294967295,p=2147483647,b=-2147483648;function v(g){if(typeof g!="number")throw new Error("invalid int 32: "+typeof g);if(!Number.isInteger(g)||g>p||gh||g<0)throw new Error("invalid uint 32: "+g)}function w(g){if(typeof g!="number")throw new Error("invalid float 32: "+typeof g);if(Number.isFinite(g)&&(g>c||g({no:E.no,name:E.name,localName:g[E.no]})))}function C(g,u,f){const y=Object.create(null),E=Object.create(null),N=[];for(const B of u){const Z=_(B);N.push(Z),y[B.name]=Z,E[B.no]=Z}return{typeName:g,values:N,findName(B){return y[B]},findNumber(B){return E[B]}}}function I(g,u,f){const y={};for(const E of u){const N=_(E);y[N.localName]=N.no,y[N.no]=N.localName}return k(y,g,u),y}function _(g){return"localName"in g?g:Object.assign(Object.assign({},g),{localName:g.name})}class A{equals(u){return this.getType().runtime.util.equals(this.getType(),this,u)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(u,f){const y=this.getType(),E=y.runtime.bin,N=E.makeReadOptions(f);return E.readMessage(this,N.readerFactory(u),u.byteLength,N),this}fromJson(u,f){const y=this.getType(),E=y.runtime.json,N=E.makeReadOptions(f);return E.readMessage(y,u,N,this),this}fromJsonString(u,f){let y;try{y=JSON.parse(u)}catch(E){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${E instanceof Error?E.message:String(E)}`)}return this.fromJson(y,f)}toBinary(u){const f=this.getType(),y=f.runtime.bin,E=y.makeWriteOptions(u),N=E.writerFactory();return y.writeMessage(this,N,E),N.finish()}toJson(u){const f=this.getType(),y=f.runtime.json,E=y.makeWriteOptions(u);return y.writeMessage(this,E)}toJsonString(u){var f;const y=this.toJson(u);return JSON.stringify(y,null,(f=u==null?void 0:u.prettySpaces)!==null&&f!==void 0?f:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function U(g,u,f,y){var E;const N=(E=y==null?void 0:y.localName)!==null&&E!==void 0?E:u.substring(u.lastIndexOf(".")+1),B={[N]:function(Z){g.util.initFields(this),g.util.initPartial(Z,this)}}[N];return Object.setPrototypeOf(B.prototype,new A),Object.assign(B,{runtime:g,typeName:u,fields:g.util.newFieldList(f),fromBinary(Z,re){return new B().fromBinary(Z,re)},fromJson(Z,re){return new B().fromJson(Z,re)},fromJsonString(Z,re){return new B().fromJsonString(Z,re)},equals(Z,re){return g.util.equals(B,Z,re)}}),B}function F(g,u,f,y){return{syntax:g,json:u,bin:f,util:y,makeMessageType(E,N,B){return U(this,E,N,B)},makeEnum:I,makeEnumType:C,getEnumType:x}}var P;(function(g){g[g.DOUBLE=1]="DOUBLE",g[g.FLOAT=2]="FLOAT",g[g.INT64=3]="INT64",g[g.UINT64=4]="UINT64",g[g.INT32=5]="INT32",g[g.FIXED64=6]="FIXED64",g[g.FIXED32=7]="FIXED32",g[g.BOOL=8]="BOOL",g[g.STRING=9]="STRING",g[g.BYTES=12]="BYTES",g[g.UINT32=13]="UINT32",g[g.SFIXED32=15]="SFIXED32",g[g.SFIXED64=16]="SFIXED64",g[g.SINT32=17]="SINT32",g[g.SINT64=18]="SINT64"})(P||(P={}));var V;(function(g){g[g.BIGINT=0]="BIGINT",g[g.STRING=1]="STRING"})(V||(V={}));function Q(){let g=0,u=0;for(let y=0;y<28;y+=7){let E=this.buf[this.pos++];if(g|=(E&127)<>4,!(f&128))return this.assertBounds(),[g,u];for(let y=3;y<=31;y+=7){let E=this.buf[this.pos++];if(u|=(E&127)<>>N,Z=!(!(B>>>7)&&u==0),re=(Z?B|128:B)&255;if(f.push(re),!Z)return}const y=g>>>28&15|(u&7)<<4,E=!!(u>>3);if(f.push((E?y|128:y)&255),!!E){for(let N=3;N<31;N=N+7){const B=u>>>N,Z=!!(B>>>7),re=(Z?B|128:B)&255;if(f.push(re),!Z)return}f.push(u>>>31&1)}}const Y=4294967296;function W(g){const u=g[0]==="-";u&&(g=g.slice(1));const f=1e6;let y=0,E=0;function N(B,Z){const re=Number(g.slice(B,Z));E*=f,y=y*f+re,y>=Y&&(E=E+(y/Y|0),y=y%Y)}return N(-24,-18),N(-18,-12),N(-12,-6),N(-6),u?j(y,E):ne(y,E)}function ee(g,u){let f=ne(g,u);const y=f.hi&2147483648;y&&(f=j(f.lo,f.hi));const E=J(f.lo,f.hi);return y?"-"+E:E}function J(g,u){if({lo:g,hi:u}=K(g,u),u<=2097151)return String(Y*u+g);const f=g&16777215,y=(g>>>24|u<<8)&16777215,E=u>>16&65535;let N=f+y*6777216+E*6710656,B=y+E*8147497,Z=E*2;const re=1e7;return N>=re&&(B+=Math.floor(N/re),N%=re),B>=re&&(Z+=Math.floor(B/re),B%=re),Z.toString()+Ce(B)+Ce(N)}function K(g,u){return{lo:g>>>0,hi:u>>>0}}function ne(g,u){return{lo:g|0,hi:u|0}}function j(g,u){return u=~u,g?g=~g+1:u+=1,ne(g,u)}const Ce=g=>{const u=String(g);return"0000000".slice(u.length)+u};function ye(g,u){if(g>=0){for(;g>127;)u.push(g&127|128),g=g>>>7;u.push(g)}else{for(let f=0;f<9;f++)u.push(g&127|128),g=g>>7;u.push(1)}}function te(){let g=this.buf[this.pos++],u=g&127;if(!(g&128))return this.assertBounds(),u;if(g=this.buf[this.pos++],u|=(g&127)<<7,!(g&128))return this.assertBounds(),u;if(g=this.buf[this.pos++],u|=(g&127)<<14,!(g&128))return this.assertBounds(),u;if(g=this.buf[this.pos++],u|=(g&127)<<21,!(g&128))return this.assertBounds(),u;g=this.buf[this.pos++],u|=(g&15)<<28;for(let f=5;g&128&&f<10;f++)g=this.buf[this.pos++];if(g&128)throw new Error("invalid varint");return this.assertBounds(),u>>>0}function ve(){const g=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof g.getBigInt64=="function"&&typeof g.getBigUint64=="function"&&typeof g.setBigInt64=="function"&&typeof g.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const E=BigInt("-9223372036854775808"),N=BigInt("9223372036854775807"),B=BigInt("0"),Z=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(re){const se=typeof re=="bigint"?re:BigInt(re);if(se>N||seZ||sel(/^-?[0-9]+$/.test(E),`int64 invalid: ${E}`),y=E=>l(/^[0-9]+$/.test(E),`uint64 invalid: ${E}`);return{zero:"0",supported:!1,parse(E){return typeof E!="string"&&(E=E.toString()),f(E),E},uParse(E){return typeof E!="string"&&(E=E.toString()),y(E),E},enc(E){return typeof E!="string"&&(E=E.toString()),f(E),W(E)},uEnc(E){return typeof E!="string"&&(E=E.toString()),y(E),W(E)},dec(E,N){return ee(E,N)},uDec(E,N){return J(E,N)}}}const Se=ve();var he;(function(g){g[g.Varint=0]="Varint",g[g.Bit64=1]="Bit64",g[g.LengthDelimited=2]="LengthDelimited",g[g.StartGroup=3]="StartGroup",g[g.EndGroup=4]="EndGroup",g[g.Bit32=5]="Bit32"})(he||(he={}));class Ne{constructor(u){this.stack=[],this.textEncoder=u??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let u=0;for(let E=0;E>>0)}raw(u){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(u),this}uint32(u){for(S(u);u>127;)this.buf.push(u&127|128),u=u>>>7;return this.buf.push(u),this}int32(u){return v(u),ye(u,this.buf),this}bool(u){return this.buf.push(u?1:0),this}bytes(u){return this.uint32(u.byteLength),this.raw(u)}string(u){let f=this.textEncoder.encode(u);return this.uint32(f.byteLength),this.raw(f)}float(u){w(u);let f=new Uint8Array(4);return new DataView(f.buffer).setFloat32(0,u,!0),this.raw(f)}double(u){let f=new Uint8Array(8);return new DataView(f.buffer).setFloat64(0,u,!0),this.raw(f)}fixed32(u){S(u);let f=new Uint8Array(4);return new DataView(f.buffer).setUint32(0,u,!0),this.raw(f)}sfixed32(u){v(u);let f=new Uint8Array(4);return new DataView(f.buffer).setInt32(0,u,!0),this.raw(f)}sint32(u){return v(u),u=(u<<1^u>>31)>>>0,ye(u,this.buf),this}sfixed64(u){let f=new Uint8Array(8),y=new DataView(f.buffer),E=Se.enc(u);return y.setInt32(0,E.lo,!0),y.setInt32(4,E.hi,!0),this.raw(f)}fixed64(u){let f=new Uint8Array(8),y=new DataView(f.buffer),E=Se.uEnc(u);return y.setInt32(0,E.lo,!0),y.setInt32(4,E.hi,!0),this.raw(f)}int64(u){let f=Se.enc(u);return X(f.lo,f.hi,this.buf),this}sint64(u){let f=Se.enc(u),y=f.hi>>31,E=f.lo<<1^y,N=(f.hi<<1|f.lo>>>31)^y;return X(E,N,this.buf),this}uint64(u){let f=Se.uEnc(u);return X(f.lo,f.hi,this.buf),this}}class Pe{constructor(u,f){this.varint64=Q,this.uint32=te,this.buf=u,this.len=u.length,this.pos=0,this.view=new DataView(u.buffer,u.byteOffset,u.byteLength),this.textDecoder=f??new TextDecoder}tag(){let u=this.uint32(),f=u>>>3,y=u&7;if(f<=0||y<0||y>5)throw new Error("illegal tag: field no "+f+" wire type "+y);return[f,y]}skip(u){let f=this.pos;switch(u){case he.Varint:for(;this.buf[this.pos++]&128;);break;case he.Bit64:this.pos+=4;case he.Bit32:this.pos+=4;break;case he.LengthDelimited:let y=this.uint32();this.pos+=y;break;case he.StartGroup:let E;for(;(E=this.tag()[1])!==he.EndGroup;)this.skip(E);break;default:throw new Error("cant skip wire type "+u)}return this.assertBounds(),this.buf.subarray(f,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let u=this.uint32();return u>>>1^-(u&1)}int64(){return Se.dec(...this.varint64())}uint64(){return Se.uDec(...this.varint64())}sint64(){let[u,f]=this.varint64(),y=-(u&1);return u=(u>>>1|(f&1)<<31)^y,f=f>>>1^y,Se.dec(u,f)}bool(){let[u,f]=this.varint64();return u!==0||f!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Se.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Se.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let u=this.uint32(),f=this.pos;return this.pos+=u,this.assertBounds(),this.buf.subarray(f,f+u)}string(){return this.textDecoder.decode(this.bytes())}}function Ze(g,u){return u instanceof A||!g.fieldWrapper?u:g.fieldWrapper.wrapField(u)}function st(g){if(g.fieldKind==="message"&&!g.repeated&&g.oneof==null)return Qe[g.message.typeName]}const Qe={"google.protobuf.DoubleValue":P.DOUBLE,"google.protobuf.FloatValue":P.FLOAT,"google.protobuf.Int64Value":P.INT64,"google.protobuf.UInt64Value":P.UINT64,"google.protobuf.Int32Value":P.INT32,"google.protobuf.UInt32Value":P.UINT32,"google.protobuf.BoolValue":P.BOOL,"google.protobuf.StringValue":P.STRING,"google.protobuf.BytesValue":P.BYTES};function Je(g,u,f){if(u===f)return!0;if(g==P.BYTES){if(!(u instanceof Uint8Array)||!(f instanceof Uint8Array)||u.length!==f.length)return!1;for(let y=0;ynew Pe(g)},_t={writeUnknownFields:!0,writerFactory:()=>new Ne};function ot(g){return g?Object.assign(Object.assign({},ht),g):ht}function ge(g){return g?Object.assign(Object.assign({},_t),g):_t}function ue(){return{makeReadOptions:ot,makeWriteOptions:ge,listUnknownFields(g){var u;return(u=g[tt])!==null&&u!==void 0?u:[]},discardUnknownFields(g){delete g[tt]},writeUnknownFields(g,u){const y=g[tt];if(y)for(const E of y)u.tag(E.no,E.wireType).raw(E.data)},onUnknownField(g,u,f,y){const E=g;Array.isArray(E[tt])||(E[tt]=[]),E[tt].push({no:u,wireType:f,data:y})},readMessage(g,u,f,y,E){const N=g.getType(),B=E?u.len:u.pos+f;let Z,re;for(;u.pos0&&(jt=et),mt){let yi=xe[Be];if(re==he.LengthDelimited&&ft!=P.STRING&&ft!=P.BYTES){let jn=u.uint32()+u.pos;for(;u.pos>4,B=N,E=2;break;case 2:f[y++]=(B&15)<<4|(N&60)>>2,B=N,E=3;break;case 3:f[y++]=(B&3)<<6|N,E=0;break}}if(E==1)throw Error("invalid base64 string.");return f.subarray(0,y)},enc(g){let u="",f=0,y,E=0;for(let N=0;N>2],E=(y&3)<<4,f=1;break;case 1:u+=Ot[E|y>>4],E=(y&15)<<2,f=2;break;case 2:u+=Ot[E|y>>6],u+=Ot[y&63],f=0;break}return f&&(u+=Ot[E],u+="=",f==1&&(u+="=")),u}},St={ignoreUnknownFields:!1},Kt={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function pt(g){return g?Object.assign(Object.assign({},St),g):St}function At(g){return g?Object.assign(Object.assign({},Kt),g):Kt}function en(g){const u=g(ur,Wr);return{makeReadOptions:pt,makeWriteOptions:At,readMessage(f,y,E,N){if(y==null||Array.isArray(y)||typeof y!="object")throw new Error(`cannot decode message ${f.typeName} from JSON: ${this.debug(y)}`);N=N??new f;const B={};for(const[Z,re]of Object.entries(y)){const se=f.fields.findJsonName(Z);if(!se){if(!E.ignoreUnknownFields)throw new Error(`cannot decode message ${f.typeName} from JSON: key "${Z}" is unknown`);continue}let xe=se.localName,mt=N;if(se.oneof){if(re===null&&se.kind=="scalar")continue;const Be=B[se.oneof.localName];if(Be)throw new Error(`cannot decode message ${f.typeName} from JSON: multiple keys for oneof "${se.oneof.name}" present: "${Be}", "${Z}"`);B[se.oneof.localName]=Z,mt=mt[se.oneof.localName]={case:xe},xe="value"}if(se.repeated){if(re===null)continue;if(!Array.isArray(re))throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`);const Be=mt[xe];for(const ft of re){if(ft===null)throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(ft)}`);let jt;switch(se.kind){case"message":jt=se.T.fromJson(ft,E);break;case"enum":if(jt=Qn(se.T,ft,E.ignoreUnknownFields),jt===void 0)continue;break;case"scalar":try{jt=Ln(se.T,ft,se.L)}catch(mn){let Sn=`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(ft)}`;throw mn instanceof Error&&mn.message.length>0&&(Sn+=`: ${mn.message}`),new Error(Sn)}break}Be.push(jt)}}else if(se.kind=="map"){if(re===null)continue;if(Array.isArray(re)||typeof re!="object")throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`);const Be=mt[xe];for(const[ft,jt]of Object.entries(re)){if(jt===null)throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: map value null`);let mn;switch(se.V.kind){case"message":mn=se.V.T.fromJson(jt,E);break;case"enum":if(mn=Qn(se.V.T,jt,E.ignoreUnknownFields),mn===void 0)continue;break;case"scalar":try{mn=Ln(se.V.T,jt,V.BIGINT)}catch(Sn){let cr=`cannot decode map value for field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`;throw Sn instanceof Error&&Sn.message.length>0&&(cr+=`: ${Sn.message}`),new Error(cr)}break}try{Be[Ln(se.K,se.K==P.BOOL?ft=="true"?!0:ft=="false"?!1:ft:ft,V.BIGINT).toString()]=mn}catch(Sn){let cr=`cannot decode map key for field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`;throw Sn instanceof Error&&Sn.message.length>0&&(cr+=`: ${Sn.message}`),new Error(cr)}}}else switch(se.kind){case"message":const Be=se.T;if(re===null&&Be.typeName!="google.protobuf.Value"){if(se.oneof)throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: null is invalid for oneof field "${Z}"`);continue}mt[xe]instanceof A?mt[xe].fromJson(re,E):(mt[xe]=Be.fromJson(re,E),Be.fieldWrapper&&!se.oneof&&(mt[xe]=Be.fieldWrapper.unwrapField(mt[xe])));break;case"enum":const ft=Qn(se.T,re,E.ignoreUnknownFields);ft!==void 0&&(mt[xe]=ft);break;case"scalar":try{mt[xe]=Ln(se.T,re,se.L)}catch(jt){let mn=`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`;throw jt instanceof Error&&jt.message.length>0&&(mn+=`: ${jt.message}`),new Error(mn)}break}}return N},writeMessage(f,y){const E=f.getType(),N={};let B;try{for(const Z of E.fields.byMember()){let re;if(Z.kind=="oneof"){const se=f[Z.localName];if(se.value===void 0)continue;if(B=Z.findField(se.case),!B)throw"oneof case not found: "+se.case;re=u(B,se.value,y)}else B=Z,re=u(B,f[B.localName],y);re!==void 0&&(N[y.useProtoFieldName?B.name:B.jsonName]=re)}}catch(Z){const re=B?`cannot encode field ${E.typeName}.${B.name} to JSON`:`cannot encode message ${E.typeName} to JSON`,se=Z instanceof Error?Z.message:String(Z);throw new Error(re+(se.length>0?`: ${se}`:""))}return N},readScalar:Ln,writeScalar:Wr,debug:In}}function In(g){if(g===null)return"null";switch(typeof g){case"object":return Array.isArray(g)?"array":"object";case"string":return g.length>100?"string":`"${g.split('"').join('\\"')}"`;default:return String(g)}}function Ln(g,u,f){switch(g){case P.DOUBLE:case P.FLOAT:if(u===null)return 0;if(u==="NaN")return Number.NaN;if(u==="Infinity")return Number.POSITIVE_INFINITY;if(u==="-Infinity")return Number.NEGATIVE_INFINITY;if(u===""||typeof u=="string"&&u.trim().length!==u.length||typeof u!="string"&&typeof u!="number")break;const y=Number(u);if(Number.isNaN(y)||!Number.isFinite(y))break;return g==P.FLOAT&&w(y),y;case P.INT32:case P.FIXED32:case P.SFIXED32:case P.SINT32:case P.UINT32:if(u===null)return 0;let E;if(typeof u=="number"?E=u:typeof u=="string"&&u.length>0&&u.trim().length===u.length&&(E=Number(u)),E===void 0)break;return g==P.UINT32?S(E):v(E),E;case P.INT64:case P.SFIXED64:case P.SINT64:if(u===null)return Se.zero;if(typeof u!="number"&&typeof u!="string")break;const N=Se.parse(u);return f?N.toString():N;case P.FIXED64:case P.UINT64:if(u===null)return Se.zero;if(typeof u!="number"&&typeof u!="string")break;const B=Se.uParse(u);return f?B.toString():B;case P.BOOL:if(u===null)return!1;if(typeof u!="boolean")break;return u;case P.STRING:if(u===null)return"";if(typeof u!="string")break;try{encodeURIComponent(u)}catch{throw new Error("invalid UTF8")}return u;case P.BYTES:if(u===null||u==="")return new Uint8Array(0);if(typeof u!="string")break;return Xt.dec(u)}throw new Error}function Qn(g,u,f){if(u===null)return 0;switch(typeof u){case"number":if(Number.isInteger(u))return u;break;case"string":const y=g.findName(u);if(y||f)return y==null?void 0:y.no;break}throw new Error(`cannot decode enum ${g.typeName} from JSON: ${In(u)}`)}function ur(g,u,f,y){var E;if(u===void 0)return u;if(u===0&&!f)return;if(y)return u;if(g.typeName=="google.protobuf.NullValue")return null;const N=g.findNumber(u);return(E=N==null?void 0:N.name)!==null&&E!==void 0?E:u}function Wr(g,u,f){if(u!==void 0)switch(g){case P.INT32:case P.SFIXED32:case P.SINT32:case P.FIXED32:case P.UINT32:return l(typeof u=="number"),u!=0||f?u:void 0;case P.FLOAT:case P.DOUBLE:return l(typeof u=="number"),Number.isNaN(u)?"NaN":u===Number.POSITIVE_INFINITY?"Infinity":u===Number.NEGATIVE_INFINITY?"-Infinity":u!==0||f?u:void 0;case P.STRING:return l(typeof u=="string"),u.length>0||f?u:void 0;case P.BOOL:return l(typeof u=="boolean"),u||f?u:void 0;case P.UINT64:case P.FIXED64:case P.INT64:case P.SFIXED64:case P.SINT64:return l(typeof u=="bigint"||typeof u=="string"||typeof u=="number"),f||u!=0?u.toString(10):void 0;case P.BYTES:return l(u instanceof Uint8Array),f||u.byteLength>0?Xt.enc(u):void 0}}function $e(){return en((g,u)=>function(y,E,N){if(y.kind=="map"){const B={};switch(y.V.kind){case"scalar":for(const[re,se]of Object.entries(E)){const xe=u(y.V.T,se,!0);l(xe!==void 0),B[re.toString()]=xe}break;case"message":for(const[re,se]of Object.entries(E))B[re.toString()]=se.toJson(N);break;case"enum":const Z=y.V.T;for(const[re,se]of Object.entries(E)){l(se===void 0||typeof se=="number");const xe=g(Z,se,!0,N.enumAsInteger);l(xe!==void 0),B[re.toString()]=xe}break}return N.emitDefaultValues||Object.keys(B).length>0?B:void 0}else if(y.repeated){const B=[];switch(y.kind){case"scalar":for(let Z=0;Z0?B:void 0}else switch(y.kind){case"scalar":return u(y.T,E,!!y.oneof||y.opt||N.emitDefaultValues);case"enum":return g(y.T,E,!!y.oneof||y.opt||N.emitDefaultValues,N.enumAsInteger);case"message":return E!==void 0?Ze(y.T,E).toJson(N):void 0}})}function Ve(){return{setEnumType:k,initPartial(g,u){if(g===void 0)return;const f=u.getType();for(const y of f.fields.byMember()){const E=y.localName,N=u,B=g;if(B[E]!==void 0)switch(y.kind){case"oneof":const Z=B[E].case;if(Z===void 0)continue;const re=y.findField(Z);let se=B[E].value;re&&re.kind=="message"&&!(se instanceof re.T)?se=new re.T(se):re&&re.kind==="scalar"&&re.T===P.BYTES&&(se=Dt(se)),N[E]={case:Z,value:se};break;case"scalar":case"enum":let xe=B[E];y.T===P.BYTES&&(xe=y.repeated?xe.map(Dt):Dt(xe)),N[E]=xe;break;case"map":switch(y.V.kind){case"scalar":case"enum":if(y.V.T===P.BYTES)for(const[ft,jt]of Object.entries(B[E]))N[E][ft]=Dt(jt);else Object.assign(N[E],B[E]);break;case"message":const Be=y.V.T;for(const ft of Object.keys(B[E])){let jt=B[E][ft];Be.fieldWrapper||(jt=new Be(jt)),N[E][ft]=jt}break}break;case"message":const mt=y.T;if(y.repeated)N[E]=B[E].map(Be=>Be instanceof mt?Be:new mt(Be));else if(B[E]!==void 0){const Be=B[E];mt.fieldWrapper?mt.typeName==="google.protobuf.BytesValue"?N[E]=Dt(Be):N[E]=Be:N[E]=Be instanceof mt?Be:new mt(Be)}break}}},equals(g,u,f){return u===f?!0:!u||!f?!1:g.fields.byMember().every(y=>{const E=u[y.localName],N=f[y.localName];if(y.repeated){if(E.length!==N.length)return!1;switch(y.kind){case"message":return E.every((B,Z)=>y.T.equals(B,N[Z]));case"scalar":return E.every((B,Z)=>Je(y.T,B,N[Z]));case"enum":return E.every((B,Z)=>Je(P.INT32,B,N[Z]))}throw new Error(`repeated cannot contain ${y.kind}`)}switch(y.kind){case"message":return y.T.equals(E,N);case"enum":return Je(P.INT32,E,N);case"scalar":return Je(y.T,E,N);case"oneof":if(E.case!==N.case)return!1;const B=y.findField(E.case);if(B===void 0)return!0;switch(B.kind){case"message":return B.T.equals(E.value,N.value);case"enum":return Je(P.INT32,E.value,N.value);case"scalar":return Je(B.T,E.value,N.value)}throw new Error(`oneof cannot contain ${B.kind}`);case"map":const Z=Object.keys(E).concat(Object.keys(N));switch(y.V.kind){case"message":const re=y.V.T;return Z.every(xe=>re.equals(E[xe],N[xe]));case"enum":return Z.every(xe=>Je(P.INT32,E[xe],N[xe]));case"scalar":const se=y.V.T;return Z.every(xe=>Je(se,E[xe],N[xe]))}break}})},clone(g){const u=g.getType(),f=new u,y=f;for(const E of u.fields.byMember()){const N=g[E.localName];let B;if(E.repeated)B=N.map(ct);else if(E.kind=="map"){B=y[E.localName];for(const[Z,re]of Object.entries(N))B[Z]=ct(re)}else E.kind=="oneof"?B=E.findField(N.case)?{case:N.case,value:ct(N.value)}:{case:void 0}:B=ct(N);y[E.localName]=B}return f}}}function ct(g){if(g===void 0)return g;if(g instanceof A)return g.clone();if(g instanceof Uint8Array){const u=new Uint8Array(g.byteLength);return u.set(g),u}return g}function Dt(g){return g instanceof Uint8Array?g:new Uint8Array(g)}class Qt{constructor(u,f){this._fields=u,this._normalizer=f}findJsonName(u){if(!this.jsonNames){const f={};for(const y of this.list())f[y.jsonName]=f[y.name]=y;this.jsonNames=f}return this.jsonNames[u]}find(u){if(!this.numbers){const f={};for(const y of this.list())f[y.no]=y;this.numbers=f}return this.numbers[u]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((u,f)=>u.no-f.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const u=this.members;let f;for(const y of this.list())y.oneof?y.oneof!==f&&(f=y.oneof,u.push(f)):u.push(y)}return this.members}}function Fn(g){switch(g.kind){case"field":return yn(g.name,g.oneof!==void 0);case"oneof":return rn(g.name);case"enum":case"message":case"service":{const u=g.file.proto.package,f=u===void 0?0:u.length+1,y=g.typeName.substring(f).replace(/\./g,"_");return mi(it(y))}case"enum_value":{const u=g.parent.sharedPrefix;if(u===void 0)return g.name;const f=g.name.substring(u.length);return mi(f)}case"rpc":{let u=g.name;return u.length==0?u:(u=u[0].toLowerCase()+u.substring(1),mi(u))}}}function yn(g,u){const f=Ke(g);return u?f:mi(Yn(f))}function rn(g){return yn(g,!1)}const Zt=Ke;function $n(g,u){const f=Ge(g)+"_";for(const y of u){if(!y.toLowerCase().startsWith(f))return;const E=y.substring(f.length);if(E.length==0||/^\d/.test(E))return}return f}function Ge(g){return(g.substring(0,1)+g.substring(1).replace(/[A-Z]/g,u=>"_"+u)).toLowerCase()}function Ke(g){let u=!1;const f=[];for(let y=0;y`${g}$`,Yn=g=>Jn.has(g)?bn(g):g,mi=g=>Et.has(g)?bn(g):g,it=g=>dt.has(g)?bn(g):g;class Ue{constructor(u){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=u,this.localName=rn(u)}addField(u){l(u.oneof===this,`field ${u.name} not one of ${this.name}`),this.fields.push(u)}findField(u){if(!this._lookup){this._lookup=Object.create(null);for(let f=0;f0?`: ${Z}`:""))}return f.writeUnknownFields&&this.writeUnknownFields(g,u),u}})}function Jr(){return en((g,u)=>function(y,E,N){if(y.kind=="map"){const B={};switch(y.V.kind){case"scalar":for(const[re,se]of Object.entries(E)){const xe=u(y.V.T,se,!0);l(xe!==void 0),B[re.toString()]=xe}break;case"message":for(const[re,se]of Object.entries(E))B[re.toString()]=se.toJson(N);break;case"enum":const Z=y.V.T;for(const[re,se]of Object.entries(E)){l(se===void 0||typeof se=="number");const xe=g(Z,se,!0,N.enumAsInteger);l(xe!==void 0),B[re.toString()]=xe}break}return N.emitDefaultValues||Object.keys(B).length>0?B:void 0}else if(y.repeated){const B=[];switch(y.kind){case"scalar":for(let Z=0;Z0?B:void 0}else{if(E===void 0){if(!y.oneof&&!y.opt)throw"required field not set";return}switch(y.kind){case"scalar":return u(y.T,E,!0);case"enum":return g(y.T,E,!0,N.enumAsInteger);case"message":return Ze(y.T,E).toJson(N)}}})}const Ie=F("proto2",Jr(),qn(),Object.assign(Object.assign({},Ve()),{newFieldList(g){return new Qt(g,Dn)},initFields(g){for(const u of g.getType().fields.byMember()){const f=u.localName,y=g;if(u.repeated){y[f]=[];continue}switch(u.kind){case"oneof":y[f]={case:void 0};break;case"map":y[f]={};break}}}}));function Dn(g){var u,f,y,E,N;const B=[];let Z;for(const re of typeof g=="function"?g():g){const se=re;if(se.localName=yn(re.name,re.oneof!==void 0),se.jsonName=(u=re.jsonName)!==null&&u!==void 0?u:Zt(re.name),se.repeated=(f=re.repeated)!==null&&f!==void 0?f:!1,re.kind=="scalar"&&(se.L=(y=re.L)!==null&&y!==void 0?y:V.BIGINT),re.oneof!==void 0){const xe=typeof re.oneof=="string"?re.oneof:re.oneof.name;(!Z||Z.name!=xe)&&(Z=new Ue(xe)),se.oneof=Z,Z.addField(se)}re.kind=="message"&&(se.delimited=(E=re.delimited)!==null&&E!==void 0?E:!1),se.packed=(N=re.packed)!==null&&N!==void 0?N:!1,B.push(se)}return B}const Gn={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var ci=globalThis&&globalThis.__asyncValues||function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=g[Symbol.asyncIterator],f;return u?u.call(g):(g=typeof __values=="function"?__values(g):g[Symbol.iterator](),f={},y("next"),y("throw"),y("return"),f[Symbol.asyncIterator]=function(){return this},f);function y(N){f[N]=g[N]&&function(B){return new Promise(function(Z,re){B=g[N](B),E(Z,re,B.done,B.value)})}}function E(N,B,Z,re){Promise.resolve(re).then(function(se){N({value:se,done:Z})},B)}},ea=globalThis&&globalThis.__await||function(g){return this instanceof ea?(this.v=g,this):new ea(g)},Nd=globalThis&&globalThis.__asyncGenerator||function(g,u,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=f.apply(g,u||[]),E,N=[];return E={},Z("next"),Z("throw"),Z("return",B),E[Symbol.asyncIterator]=function(){return this},E;function B(ft){return function(jt){return Promise.resolve(jt).then(ft,mt)}}function Z(ft,jt){y[ft]&&(E[ft]=function(mn){return new Promise(function(Sn,cr){N.push([ft,mn,Sn,cr])>1||re(ft,mn)})},jt&&(E[ft]=jt(E[ft])))}function re(ft,jt){try{se(y[ft](jt))}catch(mn){Be(N[0][3],mn)}}function se(ft){ft.value instanceof ea?Promise.resolve(ft.value.v).then(xe,mt):Be(N[0][2],ft)}function xe(ft){re("next",ft)}function mt(ft){re("throw",ft)}function Be(ft,jt){ft(jt),N.shift(),N.length&&re(N[0][0],N[0][1])}};const fp={enc(g,u){const f=ue().makeWriteOptions(u);return f.writerFactory().bytes(g.toBinary(f)).finish()},dec(g,u,f){const y=ue().makeReadOptions(f);return g.fromBinary(y.readerFactory(u).bytes(),y)},decStream(g,u){return Nd(this,arguments,function*(){var y,E,N,B;function Z(Be,ft){const jt=new Uint8Array(Be.byteLength+ft.byteLength);return jt.set(Be),jt.set(ft,Be.length),jt}let re=new Uint8Array(0);try{for(var se=!0,xe=ci(u),mt;mt=yield ea(xe.next()),y=mt.done,!y;se=!0)for(B=mt.value,se=!1,re=Z(re,B);;){const ft=fp.peekSize(re);if(ft.eof||ft.offset+ft.size>re.byteLength)break;yield yield ea(fp.dec(g,re)),re=re.subarray(ft.offset+ft.size)}}catch(Be){E={error:Be}}finally{try{!se&&!y&&(N=xe.return)&&(yield ea(N.call(xe)))}finally{if(E)throw E.error}}if(re.byteLength>0)throw new Error("incomplete data")})},peekSize(g){const u={eof:!0,size:null,offset:null};for(let f=0;f<10;f++){if(f>g.byteLength)return u;if(!(g[f]&128)){const y=new Pe(g);let E;try{E=y.uint32()}catch(N){if(N instanceof RangeError)return u;throw N}return{eof:!1,size:E,offset:y.pos}}}throw new Error("invalid varint")}};function Ty(g){switch(g.typeName){case"google.protobuf.Any":{const u=g.fields.find(y=>y.number==1&&y.fieldKind=="scalar"&&y.scalar===P.STRING),f=g.fields.find(y=>y.number==2&&y.fieldKind=="scalar"&&y.scalar===P.BYTES);if(u&&f)return{typeName:g.typeName,typeUrl:u,value:f};break}case"google.protobuf.Timestamp":{const u=g.fields.find(y=>y.number==1&&y.fieldKind=="scalar"&&y.scalar===P.INT64),f=g.fields.find(y=>y.number==2&&y.fieldKind=="scalar"&&y.scalar===P.INT32);if(u&&f)return{typeName:g.typeName,seconds:u,nanos:f};break}case"google.protobuf.Duration":{const u=g.fields.find(y=>y.number==1&&y.fieldKind=="scalar"&&y.scalar===P.INT64),f=g.fields.find(y=>y.number==2&&y.fieldKind=="scalar"&&y.scalar===P.INT32);if(u&&f)return{typeName:g.typeName,seconds:u,nanos:f};break}case"google.protobuf.Struct":{const u=g.fields.find(f=>f.number==1&&!f.repeated);if((u==null?void 0:u.fieldKind)!=="map"||u.mapValue.kind!=="message"||u.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:g.typeName,fields:u}}case"google.protobuf.Value":{const u=g.oneofs.find(re=>re.name==="kind"),f=g.fields.find(re=>re.number==1&&re.oneof===u);if((f==null?void 0:f.fieldKind)!=="enum"||f.enum.typeName!=="google.protobuf.NullValue")return;const y=g.fields.find(re=>re.number==2&&re.fieldKind=="scalar"&&re.scalar===P.DOUBLE&&re.oneof===u),E=g.fields.find(re=>re.number==3&&re.fieldKind=="scalar"&&re.scalar===P.STRING&&re.oneof===u),N=g.fields.find(re=>re.number==4&&re.fieldKind=="scalar"&&re.scalar===P.BOOL&&re.oneof===u),B=g.fields.find(re=>re.number==5&&re.oneof===u);if((B==null?void 0:B.fieldKind)!=="message"||B.message.typeName!=="google.protobuf.Struct")return;const Z=g.fields.find(re=>re.number==6&&re.oneof===u);if((Z==null?void 0:Z.fieldKind)!=="message"||Z.message.typeName!=="google.protobuf.ListValue")return;if(u&&y&&E&&N)return{typeName:g.typeName,kind:u,nullValue:f,numberValue:y,stringValue:E,boolValue:N,structValue:B,listValue:Z};break}case"google.protobuf.ListValue":{const u=g.fields.find(f=>f.number==1&&f.repeated);if((u==null?void 0:u.fieldKind)!="message"||u.message.typeName!=="google.protobuf.Value")break;return{typeName:g.typeName,values:u}}case"google.protobuf.FieldMask":{const u=g.fields.find(f=>f.number==1&&f.fieldKind=="scalar"&&f.scalar===P.STRING&&f.repeated);if(u)return{typeName:g.typeName,paths:u};break}case"google.protobuf.DoubleValue":case"google.protobuf.FloatValue":case"google.protobuf.Int64Value":case"google.protobuf.UInt64Value":case"google.protobuf.Int32Value":case"google.protobuf.UInt32Value":case"google.protobuf.BoolValue":case"google.protobuf.StringValue":case"google.protobuf.BytesValue":{const u=g.fields.find(f=>f.number==1&&f.name=="value");if(!u||u.fieldKind!=="scalar")break;return{typeName:g.typeName,value:u}}}}const ji="@bufbuild/protobuf",xy={packageName:"@bufbuild/protobuf",localName:Fn,reifyWkt:Ty,getUnwrappedFieldType:st,scalarDefaultValue:Ye,safeIdentifier:it,safeObjectProperty:mi,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:ji},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:ji},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:ji},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:ji},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:ji},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:ji},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:ji},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:ji},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:ji},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:ji},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:ji},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:ji},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:ji},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:ji},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:ji},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:ji},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:ji},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:ji},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:ji},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:ji}},wktSourceFiles:["google/protobuf/compiler/plugin.proto","google/protobuf/any.proto","google/protobuf/api.proto","google/protobuf/descriptor.proto","google/protobuf/duration.proto","google/protobuf/empty.proto","google/protobuf/field_mask.proto","google/protobuf/source_context.proto","google/protobuf/struct.proto","google/protobuf/timestamp.proto","google/protobuf/type.proto","google/protobuf/wrappers.proto"]};var js;(function(g){g[g.Unary=0]="Unary",g[g.ServerStreaming=1]="ServerStreaming",g[g.ClientStreaming=2]="ClientStreaming",g[g.BiDiStreaming=3]="BiDiStreaming"})(js||(js={}));var Kg;(function(g){g[g.NoSideEffects=1]="NoSideEffects",g[g.Idempotent=2]="Idempotent"})(Kg||(Kg={}));var gi;(function(g){g[g.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",g[g.EDITION_PROTO2=998]="EDITION_PROTO2",g[g.EDITION_PROTO3=999]="EDITION_PROTO3",g[g.EDITION_2023=1e3]="EDITION_2023",g[g.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",g[g.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",g[g.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",g[g.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",g[g.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(gi||(gi={})),Ie.util.setEnumType(gi,"google.protobuf.Edition",[{no:0,name:"EDITION_UNKNOWN"},{no:998,name:"EDITION_PROTO2"},{no:999,name:"EDITION_PROTO3"},{no:1e3,name:"EDITION_2023"},{no:1,name:"EDITION_1_TEST_ONLY"},{no:2,name:"EDITION_2_TEST_ONLY"},{no:99997,name:"EDITION_99997_TEST_ONLY"},{no:99998,name:"EDITION_99998_TEST_ONLY"},{no:99999,name:"EDITION_99999_TEST_ONLY"}]);class Ol extends A{constructor(u){super(),this.file=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ol().fromBinary(u,f)}static fromJson(u,f){return new Ol().fromJson(u,f)}static fromJsonString(u,f){return new Ol().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ol,u,f)}}Ol.runtime=Ie,Ol.typeName="google.protobuf.FileDescriptorSet",Ol.fields=Ie.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:Sl,repeated:!0}]);class Sl extends A{constructor(u){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Sl().fromBinary(u,f)}static fromJson(u,f){return new Sl().fromJson(u,f)}static fromJsonString(u,f){return new Sl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Sl,u,f)}}Sl.runtime=Ie,Sl.typeName="google.protobuf.FileDescriptorProto",Sl.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:El,repeated:!0},{no:5,name:"enum_type",kind:"message",T:Tl,repeated:!0},{no:6,name:"service",kind:"message",T:yu,repeated:!0},{no:7,name:"extension",kind:"message",T:Hs,repeated:!0},{no:8,name:"options",kind:"message",T:Cl,opt:!0},{no:9,name:"source_code_info",kind:"message",T:Ac,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0}]);class El extends A{constructor(u){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new El().fromBinary(u,f)}static fromJson(u,f){return new El().fromJson(u,f)}static fromJsonString(u,f){return new El().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(El,u,f)}}El.runtime=Ie,El.typeName="google.protobuf.DescriptorProto",El.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Hs,repeated:!0},{no:6,name:"extension",kind:"message",T:Hs,repeated:!0},{no:3,name:"nested_type",kind:"message",T:El,repeated:!0},{no:4,name:"enum_type",kind:"message",T:Tl,repeated:!0},{no:5,name:"extension_range",kind:"message",T:pu,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:bu,repeated:!0},{no:7,name:"options",kind:"message",T:Ou,opt:!0},{no:9,name:"reserved_range",kind:"message",T:mu,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class pu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new pu().fromBinary(u,f)}static fromJson(u,f){return new pu().fromJson(u,f)}static fromJsonString(u,f){return new pu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(pu,u,f)}}pu.runtime=Ie,pu.typeName="google.protobuf.DescriptorProto.ExtensionRange",pu.fields=Ie.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:wl,opt:!0}]);class mu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new mu().fromBinary(u,f)}static fromJson(u,f){return new mu().fromJson(u,f)}static fromJsonString(u,f){return new mu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(mu,u,f)}}mu.runtime=Ie,mu.typeName="google.protobuf.DescriptorProto.ReservedRange",mu.fields=Ie.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class wl extends A{constructor(u){super(),this.uninterpretedOption=[],this.declaration=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new wl().fromBinary(u,f)}static fromJson(u,f){return new wl().fromJson(u,f)}static fromJsonString(u,f){return new wl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(wl,u,f)}}wl.runtime=Ie,wl.typeName="google.protobuf.ExtensionRangeOptions",wl.fields=Ie.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0},{no:2,name:"declaration",kind:"message",T:gu,repeated:!0},{no:50,name:"features",kind:"message",T:Ii,opt:!0},{no:3,name:"verification",kind:"enum",T:Ie.getEnumType(Pm),opt:!0,default:Pm.UNVERIFIED}]);var Pm;(function(g){g[g.DECLARATION=0]="DECLARATION",g[g.UNVERIFIED=1]="UNVERIFIED"})(Pm||(Pm={})),Ie.util.setEnumType(Pm,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class gu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new gu().fromBinary(u,f)}static fromJson(u,f){return new gu().fromJson(u,f)}static fromJsonString(u,f){return new gu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(gu,u,f)}}gu.runtime=Ie,gu.typeName="google.protobuf.ExtensionRangeOptions.Declaration",gu.fields=Ie.util.newFieldList(()=>[{no:1,name:"number",kind:"scalar",T:5,opt:!0},{no:2,name:"full_name",kind:"scalar",T:9,opt:!0},{no:3,name:"type",kind:"scalar",T:9,opt:!0},{no:5,name:"reserved",kind:"scalar",T:8,opt:!0},{no:6,name:"repeated",kind:"scalar",T:8,opt:!0}]);class Hs extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Hs().fromBinary(u,f)}static fromJson(u,f){return new Hs().fromJson(u,f)}static fromJsonString(u,f){return new Hs().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Hs,u,f)}}Hs.runtime=Ie,Hs.typeName="google.protobuf.FieldDescriptorProto",Hs.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:Ie.getEnumType(Bf),opt:!0},{no:5,name:"type",kind:"enum",T:Ie.getEnumType(Tr),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:Su,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var Tr;(function(g){g[g.DOUBLE=1]="DOUBLE",g[g.FLOAT=2]="FLOAT",g[g.INT64=3]="INT64",g[g.UINT64=4]="UINT64",g[g.INT32=5]="INT32",g[g.FIXED64=6]="FIXED64",g[g.FIXED32=7]="FIXED32",g[g.BOOL=8]="BOOL",g[g.STRING=9]="STRING",g[g.GROUP=10]="GROUP",g[g.MESSAGE=11]="MESSAGE",g[g.BYTES=12]="BYTES",g[g.UINT32=13]="UINT32",g[g.ENUM=14]="ENUM",g[g.SFIXED32=15]="SFIXED32",g[g.SFIXED64=16]="SFIXED64",g[g.SINT32=17]="SINT32",g[g.SINT64=18]="SINT64"})(Tr||(Tr={})),Ie.util.setEnumType(Tr,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var Bf;(function(g){g[g.OPTIONAL=1]="OPTIONAL",g[g.REPEATED=3]="REPEATED",g[g.REQUIRED=2]="REQUIRED"})(Bf||(Bf={})),Ie.util.setEnumType(Bf,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class bu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new bu().fromBinary(u,f)}static fromJson(u,f){return new bu().fromJson(u,f)}static fromJsonString(u,f){return new bu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(bu,u,f)}}bu.runtime=Ie,bu.typeName="google.protobuf.OneofDescriptorProto",bu.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:wc,opt:!0}]);class Tl extends A{constructor(u){super(),this.value=[],this.reservedRange=[],this.reservedName=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Tl().fromBinary(u,f)}static fromJson(u,f){return new Tl().fromJson(u,f)}static fromJsonString(u,f){return new Tl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Tl,u,f)}}Tl.runtime=Ie,Tl.typeName="google.protobuf.EnumDescriptorProto",Tl.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Ec,repeated:!0},{no:3,name:"options",kind:"message",T:Tc,opt:!0},{no:4,name:"reserved_range",kind:"message",T:xl,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class xl extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new xl().fromBinary(u,f)}static fromJson(u,f){return new xl().fromJson(u,f)}static fromJsonString(u,f){return new xl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(xl,u,f)}}xl.runtime=Ie,xl.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",xl.fields=Ie.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ec extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ec().fromBinary(u,f)}static fromJson(u,f){return new Ec().fromJson(u,f)}static fromJsonString(u,f){return new Ec().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ec,u,f)}}Ec.runtime=Ie,Ec.typeName="google.protobuf.EnumValueDescriptorProto",Ec.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:xc,opt:!0}]);class yu extends A{constructor(u){super(),this.method=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new yu().fromBinary(u,f)}static fromJson(u,f){return new yu().fromJson(u,f)}static fromJsonString(u,f){return new yu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(yu,u,f)}}yu.runtime=Ie,yu.typeName="google.protobuf.ServiceDescriptorProto",yu.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:kl,repeated:!0},{no:3,name:"options",kind:"message",T:wu,opt:!0}]);class kl extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new kl().fromBinary(u,f)}static fromJson(u,f){return new kl().fromJson(u,f)}static fromJsonString(u,f){return new kl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(kl,u,f)}}kl.runtime=Ie,kl.typeName="google.protobuf.MethodDescriptorProto",kl.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:kc,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]);class Cl extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Cl().fromBinary(u,f)}static fromJson(u,f){return new Cl().fromJson(u,f)}static fromJsonString(u,f){return new Cl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Cl,u,f)}}Cl.runtime=Ie,Cl.typeName="google.protobuf.FileOptions",Cl.fields=Ie.util.newFieldList(()=>[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:Ie.getEnumType(vu),opt:!0,default:vu.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:42,name:"php_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:50,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0}]);var vu;(function(g){g[g.SPEED=1]="SPEED",g[g.CODE_SIZE=2]="CODE_SIZE",g[g.LITE_RUNTIME=3]="LITE_RUNTIME"})(vu||(vu={})),Ie.util.setEnumType(vu,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Ou extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ou().fromBinary(u,f)}static fromJson(u,f){return new Ou().fromJson(u,f)}static fromJsonString(u,f){return new Ou().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ou,u,f)}}Ou.runtime=Ie,Ou.typeName="google.protobuf.MessageOptions",Ou.fields=Ie.util.newFieldList(()=>[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:11,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:12,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0}]);class Su extends A{constructor(u){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Su().fromBinary(u,f)}static fromJson(u,f){return new Su().fromJson(u,f)}static fromJsonString(u,f){return new Su().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Su,u,f)}}Su.runtime=Ie,Su.typeName="google.protobuf.FieldOptions",Su.fields=Ie.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:Ie.getEnumType(Mm),opt:!0,default:Mm.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:Ie.getEnumType(Pd),opt:!0,default:Pd.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:16,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"retention",kind:"enum",T:Ie.getEnumType(Lm),opt:!0},{no:19,name:"targets",kind:"enum",T:Ie.getEnumType($m),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Eu,repeated:!0},{no:21,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0}]);var Mm;(function(g){g[g.STRING=0]="STRING",g[g.CORD=1]="CORD",g[g.STRING_PIECE=2]="STRING_PIECE"})(Mm||(Mm={})),Ie.util.setEnumType(Mm,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var Pd;(function(g){g[g.JS_NORMAL=0]="JS_NORMAL",g[g.JS_STRING=1]="JS_STRING",g[g.JS_NUMBER=2]="JS_NUMBER"})(Pd||(Pd={})),Ie.util.setEnumType(Pd,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var Lm;(function(g){g[g.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",g[g.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",g[g.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(Lm||(Lm={})),Ie.util.setEnumType(Lm,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var $m;(function(g){g[g.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",g[g.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",g[g.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",g[g.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",g[g.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",g[g.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",g[g.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",g[g.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",g[g.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",g[g.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})($m||($m={})),Ie.util.setEnumType($m,"google.protobuf.FieldOptions.OptionTargetType",[{no:0,name:"TARGET_TYPE_UNKNOWN"},{no:1,name:"TARGET_TYPE_FILE"},{no:2,name:"TARGET_TYPE_EXTENSION_RANGE"},{no:3,name:"TARGET_TYPE_MESSAGE"},{no:4,name:"TARGET_TYPE_FIELD"},{no:5,name:"TARGET_TYPE_ONEOF"},{no:6,name:"TARGET_TYPE_ENUM"},{no:7,name:"TARGET_TYPE_ENUM_ENTRY"},{no:8,name:"TARGET_TYPE_SERVICE"},{no:9,name:"TARGET_TYPE_METHOD"}]);class Eu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Eu().fromBinary(u,f)}static fromJson(u,f){return new Eu().fromJson(u,f)}static fromJsonString(u,f){return new Eu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Eu,u,f)}}Eu.runtime=Ie,Eu.typeName="google.protobuf.FieldOptions.EditionDefault",Eu.fields=Ie.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class wc extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new wc().fromBinary(u,f)}static fromJson(u,f){return new wc().fromJson(u,f)}static fromJsonString(u,f){return new wc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(wc,u,f)}}wc.runtime=Ie,wc.typeName="google.protobuf.OneofOptions",wc.fields=Ie.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0}]);class Tc extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Tc().fromBinary(u,f)}static fromJson(u,f){return new Tc().fromJson(u,f)}static fromJsonString(u,f){return new Tc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Tc,u,f)}}Tc.runtime=Ie,Tc.typeName="google.protobuf.EnumOptions",Tc.fields=Ie.util.newFieldList(()=>[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:7,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0}]);class xc extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new xc().fromBinary(u,f)}static fromJson(u,f){return new xc().fromJson(u,f)}static fromJsonString(u,f){return new xc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(xc,u,f)}}xc.runtime=Ie,xc.typeName="google.protobuf.EnumValueOptions",xc.fields=Ie.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Ii,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0}]);class wu extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new wu().fromBinary(u,f)}static fromJson(u,f){return new wu().fromJson(u,f)}static fromJsonString(u,f){return new wu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(wu,u,f)}}wu.runtime=Ie,wu.typeName="google.protobuf.ServiceOptions",wu.fields=Ie.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Ii,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0}]);class kc extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new kc().fromBinary(u,f)}static fromJson(u,f){return new kc().fromJson(u,f)}static fromJsonString(u,f){return new kc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(kc,u,f)}}kc.runtime=Ie,kc.typeName="google.protobuf.MethodOptions",kc.fields=Ie.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:Ie.getEnumType(Md),opt:!0,default:Md.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Ga,repeated:!0}]);var Md;(function(g){g[g.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",g[g.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",g[g.IDEMPOTENT=2]="IDEMPOTENT"})(Md||(Md={})),Ie.util.setEnumType(Md,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class Ga extends A{constructor(u){super(),this.name=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ga().fromBinary(u,f)}static fromJson(u,f){return new Ga().fromJson(u,f)}static fromJsonString(u,f){return new Ga().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ga,u,f)}}Ga.runtime=Ie,Ga.typeName="google.protobuf.UninterpretedOption",Ga.fields=Ie.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Cc,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]);class Cc extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Cc().fromBinary(u,f)}static fromJson(u,f){return new Cc().fromJson(u,f)}static fromJsonString(u,f){return new Cc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Cc,u,f)}}Cc.runtime=Ie,Cc.typeName="google.protobuf.UninterpretedOption.NamePart",Cc.fields=Ie.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Ii extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ii().fromBinary(u,f)}static fromJson(u,f){return new Ii().fromJson(u,f)}static fromJsonString(u,f){return new Ii().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ii,u,f)}}Ii.runtime=Ie,Ii.typeName="google.protobuf.FeatureSet",Ii.fields=Ie.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:Ie.getEnumType(Jg),opt:!0},{no:2,name:"enum_type",kind:"enum",T:Ie.getEnumType(e1),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:Ie.getEnumType(hp),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:Ie.getEnumType(t1),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:Ie.getEnumType(n1),opt:!0},{no:6,name:"json_format",kind:"enum",T:Ie.getEnumType(ai),opt:!0}]);var Jg;(function(g){g[g.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",g[g.EXPLICIT=1]="EXPLICIT",g[g.IMPLICIT=2]="IMPLICIT",g[g.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(Jg||(Jg={})),Ie.util.setEnumType(Jg,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]);var e1;(function(g){g[g.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",g[g.OPEN=1]="OPEN",g[g.CLOSED=2]="CLOSED"})(e1||(e1={})),Ie.util.setEnumType(e1,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var hp;(function(g){g[g.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",g[g.PACKED=1]="PACKED",g[g.EXPANDED=2]="EXPANDED"})(hp||(hp={})),Ie.util.setEnumType(hp,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var t1;(function(g){g[g.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",g[g.NONE=1]="NONE",g[g.VERIFY=2]="VERIFY"})(t1||(t1={})),Ie.util.setEnumType(t1,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var n1;(function(g){g[g.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",g[g.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",g[g.DELIMITED=2]="DELIMITED"})(n1||(n1={})),Ie.util.setEnumType(n1,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var ai;(function(g){g[g.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",g[g.ALLOW=1]="ALLOW",g[g.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(ai||(ai={})),Ie.util.setEnumType(ai,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class Ir extends A{constructor(u){super(),this.defaults=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ir().fromBinary(u,f)}static fromJson(u,f){return new Ir().fromJson(u,f)}static fromJsonString(u,f){return new Ir().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ir,u,f)}}Ir.runtime=Ie,Ir.typeName="google.protobuf.FeatureSetDefaults",Ir.fields=Ie.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:_c,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0}]);class _c extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new _c().fromBinary(u,f)}static fromJson(u,f){return new _c().fromJson(u,f)}static fromJsonString(u,f){return new _c().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(_c,u,f)}}_c.runtime=Ie,_c.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",_c.fields=Ie.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0},{no:2,name:"features",kind:"message",T:Ii,opt:!0}]);class Ac extends A{constructor(u){super(),this.location=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ac().fromBinary(u,f)}static fromJson(u,f){return new Ac().fromJson(u,f)}static fromJsonString(u,f){return new Ac().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ac,u,f)}}Ac.runtime=Ie,Ac.typeName="google.protobuf.SourceCodeInfo",Ac.fields=Ie.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Rc,repeated:!0}]);class Rc extends A{constructor(u){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Rc().fromBinary(u,f)}static fromJson(u,f){return new Rc().fromJson(u,f)}static fromJsonString(u,f){return new Rc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Rc,u,f)}}Rc.runtime=Ie,Rc.typeName="google.protobuf.SourceCodeInfo.Location",Rc.fields=Ie.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]);class Ic extends A{constructor(u){super(),this.annotation=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ic().fromBinary(u,f)}static fromJson(u,f){return new Ic().fromJson(u,f)}static fromJsonString(u,f){return new Ic().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ic,u,f)}}Ic.runtime=Ie,Ic.typeName="google.protobuf.GeneratedCodeInfo",Ic.fields=Ie.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:Dc,repeated:!0}]);class Dc extends A{constructor(u){super(),this.path=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Dc().fromBinary(u,f)}static fromJson(u,f){return new Dc().fromJson(u,f)}static fromJsonString(u,f){return new Dc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Dc,u,f)}}Dc.runtime=Ie,Dc.typeName="google.protobuf.GeneratedCodeInfo.Annotation",Dc.fields=Ie.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0},{no:5,name:"semantic",kind:"enum",T:Ie.getEnumType(r1),opt:!0}]);var r1;(function(g){g[g.NONE=0]="NONE",g[g.SET=1]="SET",g[g.ALIAS=2]="ALIAS"})(r1||(r1={})),Ie.util.setEnumType(r1,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function qC(g,u){const f=g.values.find(y=>y.name===u);return l(f,`cannot parse ${g.name} default value: ${u}`),f.number}function K6(g,u){switch(g){case P.STRING:return u;case P.BYTES:{const f=rs(u);if(f===!1)throw new Error(`cannot parse ${P[g]} default value: ${u}`);return f}case P.INT64:case P.SFIXED64:case P.SINT64:return Se.parse(u);case P.UINT64:case P.FIXED64:return Se.uParse(u);case P.DOUBLE:case P.FLOAT:switch(u){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(u)}case P.BOOL:return u==="true";case P.INT32:case P.UINT32:case P.SINT32:case P.FIXED32:case P.SFIXED32:return parseInt(u,10)}}function rs(g){const u=[],f={tail:g,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(y){if(this.tail.length>=y){const E=this.tail.substring(0,y);return this.tail=this.tail.substring(y),E}return!1}};for(;f.next();)switch(f.c){case"\\":if(f.next())switch(f.c){case"\\":u.push(f.c.charCodeAt(0));break;case"b":u.push(8);break;case"f":u.push(12);break;case"n":u.push(10);break;case"r":u.push(13);break;case"t":u.push(9);break;case"v":u.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const y=f.c,E=f.take(2);if(E===!1)return!1;const N=parseInt(y+E,8);if(isNaN(N))return!1;u.push(N);break}case"x":{const y=f.c,E=f.take(2);if(E===!1)return!1;const N=parseInt(y+E,16);if(isNaN(N))return!1;u.push(N);break}case"u":{const y=f.c,E=f.take(4);if(E===!1)return!1;const N=parseInt(y+E,16);if(isNaN(N))return!1;const B=new Uint8Array(4);new DataView(B.buffer).setInt32(0,N,!0),u.push(B[0],B[1],B[2],B[3]);break}case"U":{const y=f.c,E=f.take(8);if(E===!1)return!1;const N=Se.uEnc(y+E),B=new Uint8Array(8),Z=new DataView(B.buffer);Z.setInt32(0,N.lo,!0),Z.setInt32(4,N.hi,!0),u.push(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7]);break}}break;default:u.push(f.c.charCodeAt(0))}return new Uint8Array(u)}const zE=Ir.fromBinary(Xt.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function pp(g){const u=g.minimumEdition,f=g.maximumEdition;if(u===void 0||f===void 0||g.defaults.some(E=>E.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const y=new Map;return(E,...N)=>{var B,Z;let re=y.get(E);if(re===void 0){if(EE||xe!==void 0&&xe.e>Be||(xe={e:Be,f:(Z=mt.features)!==null&&Z!==void 0?Z:new Ii})}if(xe===void 0)throw new Error(`No valid default found for edition ${gi[E]}`);re=xe.f.toBinary(),y.set(E,re)}const se=Ii.fromBinary(re);for(const xe of N)xe!==void 0&&se.fromBinary(xe.toBinary());if(!GC(se))throw new Error(`Invalid FeatureSet for edition ${gi[E]}`);return se}}function GC(g){for(const u of Ii.fields.list()){const f=g[u.localName];if(f===void 0||u.kind=="enum"&&f===0)return!1}return!0}function ky(g,u){var f;const y={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:pp((f=u==null?void 0:u.featureSetDefaults)!==null&&f!==void 0?f:zE)},N=(g instanceof Ol?g.file:g instanceof Uint8Array?Ol.fromBinary(g).file:g).map(B=>_l(B,y));return Object.assign({files:N},y)}function _l(g,u){var f,y;l(g.name,"invalid FileDescriptorProto: missing name");const E=Object.assign(Object.assign({kind:"file",proto:g,deprecated:(y=(f=g.options)===null||f===void 0?void 0:f.deprecated)!==null&&y!==void 0?y:!1},J6(g.syntax,g.edition)),{name:g.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return Al(this.proto.sourceCodeInfo,[Vs.FileDescriptorProto_Syntax])},getPackageComments(){return Al(this.proto.sourceCodeInfo,[Vs.FileDescriptorProto_Package])},getFeatures(){var N;return u.resolveFeatures(this.edition,(N=this.proto.options)===null||N===void 0?void 0:N.features)}});u.mapEntries.clear();for(const N of g.enumType)jE(N,E,void 0,u);for(const N of g.messageType)HE(N,E,void 0,u);for(const N of g.service)ZC(N,E,u);Cy(E,u);for(const N of u.mapEntries.values())_y(N,u);for(const N of E.messages)_y(N,u),Cy(N,u);return u.mapEntries.clear(),E}function Cy(g,u){switch(g.kind){case"file":for(const f of g.proto.extension){const y=Ho(f,g,void 0,u);g.extensions.push(y),u.extensions.set(y.typeName,y)}break;case"message":for(const f of g.proto.extension){const y=Ho(f,g.file,g,u);g.nestedExtensions.push(y),u.extensions.set(y.typeName,y)}for(const f of g.nestedMessages)Cy(f,u);break}}function _y(g,u){const f=g.proto.oneofDecl.map(E=>jo(E,g,u)),y=new Set;for(const E of g.proto.field){const N=VE(E,f),B=KC(E,g.file,g,N,u);g.fields.push(B),N===void 0?g.members.push(B):(N.fields.push(B),y.has(N)||(y.add(N),g.members.push(N)))}for(const E of f.filter(N=>y.has(N)))g.oneofs.push(E);for(const E of g.nestedMessages)_y(E,u)}function jE(g,u,f,y){var E,N,B;l(g.name,"invalid EnumDescriptorProto: missing name");const Z={kind:"enum",proto:g,deprecated:(N=(E=g.options)===null||E===void 0?void 0:E.deprecated)!==null&&N!==void 0?N:!1,file:u,parent:f,name:g.name,typeName:i1(g,f,u),values:[],sharedPrefix:$n(g.name,g.value.map(re=>{var se;return(se=re.name)!==null&&se!==void 0?se:""})),toString(){return`enum ${this.typeName}`},getComments(){const re=this.parent?[...this.parent.getComments().sourcePath,Vs.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[Vs.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,re)},getFeatures(){var re,se,xe;const mt=(se=(re=this.parent)===null||re===void 0?void 0:re.getFeatures())!==null&&se!==void 0?se:this.file.getFeatures();return y.resolveFeatures(this.file.edition,mt,(xe=this.proto.options)===null||xe===void 0?void 0:xe.features)}};y.enums.set(Z.typeName,Z),g.value.forEach(re=>{var se,xe;l(re.name,"invalid EnumValueDescriptorProto: missing name"),l(re.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),Z.values.push({kind:"enum_value",proto:re,deprecated:(xe=(se=re.options)===null||se===void 0?void 0:se.deprecated)!==null&&xe!==void 0?xe:!1,parent:Z,name:re.name,number:re.number,toString(){return`enum value ${Z.typeName}.${this.name}`},declarationString(){var mt;let Be=`${this.name} = ${this.number}`;return((mt=this.proto.options)===null||mt===void 0?void 0:mt.deprecated)===!0&&(Be+=" [deprecated = true]"),Be},getComments(){const mt=[...this.parent.getComments().sourcePath,Vs.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,mt)},getFeatures(){var mt;return y.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(mt=this.proto.options)===null||mt===void 0?void 0:mt.features)}})}),((B=f==null?void 0:f.nestedEnums)!==null&&B!==void 0?B:u.enums).push(Z)}function HE(g,u,f,y){var E,N,B,Z;l(g.name,"invalid DescriptorProto: missing name");const re={kind:"message",proto:g,deprecated:(N=(E=g.options)===null||E===void 0?void 0:E.deprecated)!==null&&N!==void 0?N:!1,file:u,parent:f,name:g.name,typeName:i1(g,f,u),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const se=this.parent?[...this.parent.getComments().sourcePath,Vs.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[Vs.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,se)},getFeatures(){var se,xe,mt;const Be=(xe=(se=this.parent)===null||se===void 0?void 0:se.getFeatures())!==null&&xe!==void 0?xe:this.file.getFeatures();return y.resolveFeatures(this.file.edition,Be,(mt=this.proto.options)===null||mt===void 0?void 0:mt.features)}};((B=g.options)===null||B===void 0?void 0:B.mapEntry)===!0?y.mapEntries.set(re.typeName,re):(((Z=f==null?void 0:f.nestedMessages)!==null&&Z!==void 0?Z:u.messages).push(re),y.messages.set(re.typeName,re));for(const se of g.enumType)jE(se,u,re,y);for(const se of g.nestedType)HE(se,u,re,y)}function ZC(g,u,f){var y,E;l(g.name,"invalid ServiceDescriptorProto: missing name");const N={kind:"service",proto:g,deprecated:(E=(y=g.options)===null||y===void 0?void 0:y.deprecated)!==null&&E!==void 0?E:!1,file:u,name:g.name,typeName:i1(g,void 0,u),methods:[],toString(){return`service ${this.typeName}`},getComments(){const B=[Vs.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,B)},getFeatures(){var B;return f.resolveFeatures(this.file.edition,this.file.getFeatures(),(B=this.proto.options)===null||B===void 0?void 0:B.features)}};u.services.push(N),f.services.set(N.typeName,N);for(const B of g.method)N.methods.push(XC(B,N,f))}function XC(g,u,f){var y,E,N;l(g.name,"invalid MethodDescriptorProto: missing name"),l(g.inputType,"invalid MethodDescriptorProto: missing input_type"),l(g.outputType,"invalid MethodDescriptorProto: missing output_type");let B;g.clientStreaming===!0&&g.serverStreaming===!0?B=js.BiDiStreaming:g.clientStreaming===!0?B=js.ClientStreaming:g.serverStreaming===!0?B=js.ServerStreaming:B=js.Unary;let Z;switch((y=g.options)===null||y===void 0?void 0:y.idempotencyLevel){case Md.IDEMPOTENT:Z=Kg.Idempotent;break;case Md.NO_SIDE_EFFECTS:Z=Kg.NoSideEffects;break;case Md.IDEMPOTENCY_UNKNOWN:case void 0:Z=void 0;break}const re=f.messages.get(Vo(g.inputType)),se=f.messages.get(Vo(g.outputType));l(re,`invalid MethodDescriptorProto: input_type ${g.inputType} not found`),l(se,`invalid MethodDescriptorProto: output_type ${g.inputType} not found`);const xe=g.name;return{kind:"rpc",proto:g,deprecated:(N=(E=g.options)===null||E===void 0?void 0:E.deprecated)!==null&&N!==void 0?N:!1,parent:u,name:xe,methodKind:B,input:re,output:se,idempotency:Z,toString(){return`rpc ${u.typeName}.${xe}`},getComments(){const mt=[...this.parent.getComments().sourcePath,Vs.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return Al(u.file.proto.sourceCodeInfo,mt)},getFeatures(){var mt;return f.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(mt=this.proto.options)===null||mt===void 0?void 0:mt.features)}}}function jo(g,u,f){return l(g.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:g,deprecated:!1,parent:u,fields:[],name:g.name,toString(){return`oneof ${u.typeName}.${this.name}`},getComments(){const y=[...this.parent.getComments().sourcePath,Vs.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return Al(u.file.proto.sourceCodeInfo,y)},getFeatures(){var y;return f.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(y=this.proto.options)===null||y===void 0?void 0:y.features)}}}function KC(g,u,f,y,E){var N,B,Z;l(g.name,"invalid FieldDescriptorProto: missing name"),l(g.number,"invalid FieldDescriptorProto: missing number"),l(g.type,"invalid FieldDescriptorProto: missing type");const re={proto:g,deprecated:(B=(N=g.options)===null||N===void 0?void 0:N.deprecated)!==null&&B!==void 0?B:!1,name:g.name,number:g.number,parent:f,oneof:y,optional:Di(g,u.syntax),packedByDefault:Uf(u,g,E.resolveFeatures),packed:WE(u,f,g,E.resolveFeatures),jsonName:g.jsonName===Zt(g.name)?void 0:g.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:tP,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const xe=[...this.parent.getComments().sourcePath,Vs.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,xe)},getFeatures(){var xe;return E.resolveFeatures(u.edition,this.parent.getFeatures(),(xe=this.proto.options)===null||xe===void 0?void 0:xe.features)}},se=g.label===Bf.REPEATED;switch(g.type){case Tr.MESSAGE:case Tr.GROUP:{l(g.typeName,"invalid FieldDescriptorProto: missing type_name");const xe=E.mapEntries.get(Vo(g.typeName));if(xe!==void 0)return l(se,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},re),{kind:"field",fieldKind:"map",repeated:!1}),Ay(xe));const mt=E.messages.get(Vo(g.typeName));return l(mt!==void 0,`invalid FieldDescriptorProto: type_name ${g.typeName} not found`),Object.assign(Object.assign({},re),{kind:"field",fieldKind:"message",repeated:se,message:mt})}case Tr.ENUM:{l(g.typeName,"invalid FieldDescriptorProto: missing type_name");const xe=E.enums.get(Vo(g.typeName));return l(xe!==void 0,`invalid FieldDescriptorProto: type_name ${g.typeName} not found`),Object.assign(Object.assign({},re),{kind:"field",fieldKind:"enum",getDefaultValue:JC,repeated:se,enum:xe})}default:{const xe=eP[g.type];return l(xe,`invalid FieldDescriptorProto: unknown type ${g.type}`),Object.assign(Object.assign({},re),{kind:"field",fieldKind:"scalar",getDefaultValue:JC,repeated:se,scalar:xe,longType:((Z=g.options)===null||Z===void 0?void 0:Z.jstype)==Pd.JS_STRING?V.STRING:V.BIGINT})}}}function Ho(g,u,f,y){l(g.extendee,"invalid FieldDescriptorProto: missing extendee");const E=KC(g,u,null,void 0,y),N=y.messages.get(Vo(g.extendee));return l(N,`invalid FieldDescriptorProto: extendee ${g.extendee} not found`),Object.assign(Object.assign({},E),{kind:"extension",typeName:i1(g,f,u),parent:f,file:u,extendee:N,toString(){return`extension ${this.typeName}`},getComments(){const B=this.parent?[...this.parent.getComments().sourcePath,Vs.DescriptorProto_Extension,this.parent.proto.extension.indexOf(g)]:[Vs.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(g)];return Al(u.proto.sourceCodeInfo,B)},getFeatures(){var B,Z;return y.resolveFeatures(this.file.edition,((B=this.parent)!==null&&B!==void 0?B:this.file).getFeatures(),(Z=this.proto.options)===null||Z===void 0?void 0:Z.features)}})}function J6(g,u){let f,y;switch(g){case void 0:case"proto2":y="proto2",f=gi.EDITION_PROTO2;break;case"proto3":y="proto3",f=gi.EDITION_PROTO3;break;case"editions":switch(y="editions",u){case void 0:case gi.EDITION_1_TEST_ONLY:case gi.EDITION_2_TEST_ONLY:case gi.EDITION_99997_TEST_ONLY:case gi.EDITION_99998_TEST_ONLY:case gi.EDITION_99999_TEST_ONLY:case gi.EDITION_UNKNOWN:f=gi.EDITION_UNKNOWN;break;default:f=u;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${g}`)}if(g==="editions"&&u===gi.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${g} cannot have edition ${String(u)}`);return{syntax:y,edition:f}}function i1(g,u,f){l(g.name,`invalid ${g.getType().typeName}: missing name`);let y;return u?y=`${u.typeName}.${g.name}`:f.proto.package!==void 0?y=`${f.proto.package}.${g.name}`:y=`${g.name}`,y}function Vo(g){return g.startsWith(".")?g.substring(1):g}function Ay(g){var u,f;l((u=g.proto.options)===null||u===void 0?void 0:u.mapEntry,`invalid DescriptorProto: expected ${g.toString()} to be a map entry`),l(g.fields.length===2,`invalid DescriptorProto: map entry ${g.toString()} has ${g.fields.length} fields`);const y=g.fields.find(B=>B.proto.number===1);l(y,`invalid DescriptorProto: map entry ${g.toString()} is missing key field`);const E=y.scalar;l(E!==void 0&&E!==P.BYTES&&E!==P.FLOAT&&E!==P.DOUBLE,`invalid DescriptorProto: map entry ${g.toString()} has unexpected key type ${(f=y.proto.type)!==null&&f!==void 0?f:-1}`);const N=g.fields.find(B=>B.proto.number===2);switch(l(N,`invalid DescriptorProto: map entry ${g.toString()} is missing value field`),N.fieldKind){case"scalar":return{mapKey:E,mapValue:Object.assign(Object.assign({},N),{kind:"scalar"})};case"message":return{mapKey:E,mapValue:Object.assign(Object.assign({},N),{kind:"message"})};case"enum":return{mapKey:E,mapValue:Object.assign(Object.assign({},N),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function VE(g,u){var f;const y=g.oneofIndex;if(y===void 0)return;let E;return g.proto3Optional!==!0&&(E=u[y],l(E,`invalid FieldDescriptorProto: oneof #${y} for field #${(f=g.number)!==null&&f!==void 0?f:-1} not found`)),E}function Di(g,u){switch(u){case"proto2":return g.oneofIndex===void 0&&g.label===Bf.OPTIONAL;case"proto3":return g.proto3Optional===!0;case"editions":return!1}}function Uf(g,u,f){const{repeatedFieldEncoding:y}=f(g.edition);if(y!=hp.PACKED)return!1;switch(u.type){case Tr.STRING:case Tr.BYTES:case Tr.GROUP:case Tr.MESSAGE:return!1;default:return!0}}function WE(g,u,f,y){var E,N,B,Z,re,se;switch(f.type){case Tr.STRING:case Tr.BYTES:case Tr.GROUP:case Tr.MESSAGE:return!1;default:switch(g.edition){case gi.EDITION_PROTO2:return(N=(E=f.options)===null||E===void 0?void 0:E.packed)!==null&&N!==void 0?N:!1;case gi.EDITION_PROTO3:return(Z=(B=f.options)===null||B===void 0?void 0:B.packed)!==null&&Z!==void 0?Z:!0;default:{const{repeatedFieldEncoding:xe}=y(g.edition,(re=u==null?void 0:u.getFeatures())!==null&&re!==void 0?re:g.getFeatures(),(se=f.options)===null||se===void 0?void 0:se.features);return xe==hp.PACKED}}}}const eP={[Tr.DOUBLE]:P.DOUBLE,[Tr.FLOAT]:P.FLOAT,[Tr.INT64]:P.INT64,[Tr.UINT64]:P.UINT64,[Tr.INT32]:P.INT32,[Tr.FIXED64]:P.FIXED64,[Tr.FIXED32]:P.FIXED32,[Tr.BOOL]:P.BOOL,[Tr.STRING]:P.STRING,[Tr.GROUP]:void 0,[Tr.MESSAGE]:void 0,[Tr.BYTES]:P.BYTES,[Tr.UINT32]:P.UINT32,[Tr.ENUM]:void 0,[Tr.SFIXED32]:P.SFIXED32,[Tr.SFIXED64]:P.SFIXED64,[Tr.SINT32]:P.SINT32,[Tr.SINT64]:P.SINT64};function Al(g,u){if(!g)return{leadingDetached:[],sourcePath:u};for(const f of g.location)if(f.path.length===u.length&&!f.path.some((y,E)=>u[E]!==y))return{leadingDetached:f.leadingDetachedComments,leading:f.leadingComments,trailing:f.trailingComments,sourcePath:u};return{leadingDetached:[],sourcePath:u}}var Vs;(function(g){g[g.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",g[g.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",g[g.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",g[g.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",g[g.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",g[g.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",g[g.DescriptorProto_Field=2]="DescriptorProto_Field",g[g.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",g[g.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",g[g.DescriptorProto_Extension=6]="DescriptorProto_Extension",g[g.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",g[g.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",g[g.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(Vs||(Vs={}));function tP(){var g,u,f;const y=[];this.repeated&&y.push("repeated"),this.optional&&y.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===Bf.REQUIRED&&y.push("required");let N;switch(this.fieldKind){case"scalar":N=P[this.scalar].toLowerCase();break;case"enum":N=this.enum.typeName;break;case"message":N=this.message.typeName;break;case"map":{const re=P[this.mapKey].toLowerCase();let se;switch(this.mapValue.kind){case"scalar":se=P[this.mapValue.scalar].toLowerCase();break;case"enum":se=this.mapValue.enum.typeName;break;case"message":se=this.mapValue.message.typeName;break}N=`map<${re}, ${se}>`;break}}y.push(`${N} ${this.name} = ${this.number}`);const B=[];((g=this.proto.options)===null||g===void 0?void 0:g.packed)!==void 0&&B.push(`packed = ${this.proto.options.packed.toString()}`);let Z=this.proto.defaultValue;return Z!==void 0&&((this.proto.type==Tr.BYTES||this.proto.type==Tr.STRING)&&(Z='"'+Z.replace('"','\\"')+'"'),B.push(`default = ${Z}`)),this.jsonName!==void 0&&B.push(`json_name = "${this.jsonName}"`),((u=this.proto.options)===null||u===void 0?void 0:u.jstype)!==void 0&&B.push(`jstype = ${Pd[this.proto.options.jstype]}`),((f=this.proto.options)===null||f===void 0?void 0:f.deprecated)===!0&&B.push("deprecated = true"),B.length>0&&y.push("["+B.join(", ")+"]"),y.join(" ")}function JC(){const g=this.proto.defaultValue;if(g!==void 0)switch(this.fieldKind){case"enum":return qC(this.enum,g);case"scalar":return K6(this.scalar,g);default:return}}function e_(...g){const u={},f={},y={},E={add(N){if("fields"in N){if(!this.findMessage(N.typeName)){u[N.typeName]=N;for(const B of N.fields.list())B.kind=="message"?this.add(B.T):B.kind=="map"&&B.V.kind=="message"?this.add(B.V.T):B.kind=="enum"&&this.add(B.T)}}else if("methods"in N){if(!this.findService(N.typeName)){y[N.typeName]=N;for(const B of Object.values(N.methods))this.add(B.I),this.add(B.O)}}else f[N.typeName]=N},findMessage(N){return u[N]},findEnum(N){return f[N]},findService(N){return y[N]}};for(const N of g)E.add(N);return E}let zf=class ib extends A{constructor(u){super(),this.seconds=Se.zero,this.nanos=0,ke.util.initPartial(u,this)}fromJson(u,f){if(typeof u!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${ke.json.debug(u)}`);const y=u.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const E=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(E))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(EDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Se.parse(E/1e3),this.nanos=0,y[7]&&(this.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9),this}toJson(u){const f=Number(this.seconds)*1e3;if(fDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let y="Z";if(this.nanos>0){const E=(this.nanos+1e9).toString().substring(1);E.substring(3)==="000000"?y="."+E.substring(0,3)+"Z":E.substring(6)==="000"?y="."+E.substring(0,6)+"Z":y="."+E+"Z"}return new Date(f).toISOString().replace(".000Z",y)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return ib.fromDate(new Date)}static fromDate(u){const f=u.getTime();return new ib({seconds:Se.parse(Math.floor(f/1e3)),nanos:f%1e3*1e6})}static fromBinary(u,f){return new ib().fromBinary(u,f)}static fromJson(u,f){return new ib().fromJson(u,f)}static fromJsonString(u,f){return new ib().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(ib,u,f)}};zf.runtime=ke,zf.typeName="google.protobuf.Timestamp",zf.fields=ke.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Ts extends A{constructor(u){super(),this.seconds=Se.zero,this.nanos=0,ke.util.initPartial(u,this)}fromJson(u,f){if(typeof u!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${ke.json.debug(u)}`);const y=u.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(y===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${ke.json.debug(u)}`);const E=Number(y[1]);if(E>315576e6||E<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${ke.json.debug(u)}`);if(this.seconds=Se.parse(E),typeof y[2]=="string"){const N=y[2]+"0".repeat(9-y[2].length);this.nanos=parseInt(N),(E<0||Object.is(E,-0))&&(this.nanos=-this.nanos)}return this}toJson(u){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let f=this.seconds.toString();if(this.nanos!==0){let y=Math.abs(this.nanos).toString();y="0".repeat(9-y.length)+y,y.substring(3)==="000000"?y=y.substring(0,3):y.substring(6)==="000"&&(y=y.substring(0,6)),f+="."+y,this.nanos<0&&Number(this.seconds)==0&&(f="-"+f)}return f+"s"}static fromBinary(u,f){return new Ts().fromBinary(u,f)}static fromJson(u,f){return new Ts().fromJson(u,f)}static fromJsonString(u,f){return new Ts().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Ts,u,f)}}Ts.runtime=ke,Ts.typeName="google.protobuf.Duration",Ts.fields=ke.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Wo extends A{constructor(u){super(),this.typeUrl="",this.value=new Uint8Array(0),ke.util.initPartial(u,this)}toJson(u){var f;if(this.typeUrl==="")return{};const y=this.typeUrlToName(this.typeUrl),E=(f=u==null?void 0:u.typeRegistry)===null||f===void 0?void 0:f.findMessage(y);if(!E)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let B=E.fromBinary(this.value).toJson(u);return(y.startsWith("google.protobuf.")||B===null||Array.isArray(B)||typeof B!="object")&&(B={value:B}),B["@type"]=this.typeUrl,B}fromJson(u,f){var y;if(u===null||Array.isArray(u)||typeof u!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${u===null?"null":Array.isArray(u)?"array":typeof u}`);if(Object.keys(u).length==0)return this;const E=u["@type"];if(typeof E!="string"||E=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const N=this.typeUrlToName(E),B=(y=f==null?void 0:f.typeRegistry)===null||y===void 0?void 0:y.findMessage(N);if(!B)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${E} is not in the type registry`);let Z;if(N.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(u,"value"))Z=B.fromJson(u.value,f);else{const re=Object.assign({},u);delete re["@type"],Z=B.fromJson(re,f)}return this.packFrom(Z),this}packFrom(u){this.value=u.toBinary(),this.typeUrl=this.typeNameToUrl(u.getType().typeName)}unpackTo(u){return this.is(u.getType())?(u.fromBinary(this.value),!0):!1}unpack(u){if(this.typeUrl==="")return;const f=u.findMessage(this.typeUrlToName(this.typeUrl));if(f)return f.fromBinary(this.value)}is(u){if(this.typeUrl==="")return!1;const f=this.typeUrlToName(this.typeUrl);let y="";return typeof u=="string"?y=u:y=u.typeName,f===y}typeNameToUrl(u){return`type.googleapis.com/${u}`}typeUrlToName(u){if(!u.length)throw new Error(`invalid type url: ${u}`);const f=u.lastIndexOf("/"),y=f>=0?u.substring(f+1):u;if(!y.length)throw new Error(`invalid type url: ${u}`);return y}static pack(u){const f=new Wo;return f.packFrom(u),f}static fromBinary(u,f){return new Wo().fromBinary(u,f)}static fromJson(u,f){return new Wo().fromJson(u,f)}static fromJsonString(u,f){return new Wo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Wo,u,f)}}Wo.runtime=ke,Wo.typeName="google.protobuf.Any",Wo.fields=ke.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class Tu extends A{constructor(u){super(),ke.util.initPartial(u,this)}static fromBinary(u,f){return new Tu().fromBinary(u,f)}static fromJson(u,f){return new Tu().fromJson(u,f)}static fromJsonString(u,f){return new Tu().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Tu,u,f)}}Tu.runtime=ke,Tu.typeName="google.protobuf.Empty",Tu.fields=ke.util.newFieldList(()=>[]);class xu extends A{constructor(u){super(),this.paths=[],ke.util.initPartial(u,this)}toJson(u){function f(y){let E=!1;const N=[];for(let B=0;B{if(y.match(/_[0-9]?_/g)||y.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+y+'" is irreversible');return f(y)}).join(",")}fromJson(u,f){if(typeof u!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+ke.json.debug(u));if(u==="")return this;function y(E){if(E.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const N=E.replace(/[A-Z]/g,B=>"_"+B.toLowerCase());return N[0]==="_"?N.substring(1):N}return this.paths=u.split(",").map(y),this}static fromBinary(u,f){return new xu().fromBinary(u,f)}static fromJson(u,f){return new xu().fromJson(u,f)}static fromJsonString(u,f){return new xu().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(xu,u,f)}}xu.runtime=ke,xu.typeName="google.protobuf.FieldMask",xu.fields=ke.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var Ld;(function(g){g[g.NULL_VALUE=0]="NULL_VALUE"})(Ld||(Ld={})),ke.util.setEnumType(Ld,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class vo extends A{constructor(u){super(),this.fields={},ke.util.initPartial(u,this)}toJson(u){const f={};for(const[y,E]of Object.entries(this.fields))f[y]=E.toJson(u);return f}fromJson(u,f){if(typeof u!="object"||u==null||Array.isArray(u))throw new Error("cannot decode google.protobuf.Struct from JSON "+ke.json.debug(u));for(const[y,E]of Object.entries(u))this.fields[y]=Ws.fromJson(E);return this}static fromBinary(u,f){return new vo().fromBinary(u,f)}static fromJson(u,f){return new vo().fromJson(u,f)}static fromJsonString(u,f){return new vo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(vo,u,f)}}vo.runtime=ke,vo.typeName="google.protobuf.Struct",vo.fields=ke.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Ws}}]);class Ws extends A{constructor(u){super(),this.kind={case:void 0},ke.util.initPartial(u,this)}toJson(u){switch(this.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(this.kind.value))throw new Error("google.protobuf.Value cannot be NaN or Infinity");return this.kind.value;case"boolValue":return this.kind.value;case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(Object.assign(Object.assign({},u),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(u,f){switch(typeof u){case"number":this.kind={case:"numberValue",value:u};break;case"string":this.kind={case:"stringValue",value:u};break;case"boolean":this.kind={case:"boolValue",value:u};break;case"object":u===null?this.kind={case:"nullValue",value:Ld.NULL_VALUE}:Array.isArray(u)?this.kind={case:"listValue",value:Rl.fromJson(u)}:this.kind={case:"structValue",value:vo.fromJson(u)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+ke.json.debug(u))}return this}static fromBinary(u,f){return new Ws().fromBinary(u,f)}static fromJson(u,f){return new Ws().fromJson(u,f)}static fromJsonString(u,f){return new Ws().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Ws,u,f)}}Ws.runtime=ke,Ws.typeName="google.protobuf.Value",Ws.fields=ke.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:ke.getEnumType(Ld),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:vo,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:Rl,oneof:"kind"}]);class Rl extends A{constructor(u){super(),this.values=[],ke.util.initPartial(u,this)}toJson(u){return this.values.map(f=>f.toJson())}fromJson(u,f){if(!Array.isArray(u))throw new Error("cannot decode google.protobuf.ListValue from JSON "+ke.json.debug(u));for(let y of u)this.values.push(Ws.fromJson(y));return this}static fromBinary(u,f){return new Rl().fromBinary(u,f)}static fromJson(u,f){return new Rl().fromJson(u,f)}static fromJsonString(u,f){return new Rl().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Rl,u,f)}}Rl.runtime=ke,Rl.typeName="google.protobuf.ListValue",Rl.fields=ke.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Ws,repeated:!0}]);class Oo extends A{constructor(u){super(),this.value=0,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.DOUBLE,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.DOUBLE,u)}catch(y){let E='cannot decode message google.protobuf.DoubleValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Oo().fromBinary(u,f)}static fromJson(u,f){return new Oo().fromJson(u,f)}static fromJsonString(u,f){return new Oo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Oo,u,f)}}Oo.runtime=ke,Oo.typeName="google.protobuf.DoubleValue",Oo.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Oo.fieldWrapper={wrapField(g){return new Oo({value:g})},unwrapField(g){return g.value}};class So extends A{constructor(u){super(),this.value=0,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.FLOAT,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.FLOAT,u)}catch(y){let E='cannot decode message google.protobuf.FloatValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new So().fromBinary(u,f)}static fromJson(u,f){return new So().fromJson(u,f)}static fromJsonString(u,f){return new So().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(So,u,f)}}So.runtime=ke,So.typeName="google.protobuf.FloatValue",So.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),So.fieldWrapper={wrapField(g){return new So({value:g})},unwrapField(g){return g.value}};class Il extends A{constructor(u){super(),this.value=Se.zero,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.INT64,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.INT64,u)}catch(y){let E='cannot decode message google.protobuf.Int64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Il().fromBinary(u,f)}static fromJson(u,f){return new Il().fromJson(u,f)}static fromJsonString(u,f){return new Il().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Il,u,f)}}Il.runtime=ke,Il.typeName="google.protobuf.Int64Value",Il.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Il.fieldWrapper={wrapField(g){return new Il({value:g})},unwrapField(g){return g.value}};class Qo extends A{constructor(u){super(),this.value=Se.zero,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.UINT64,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.UINT64,u)}catch(y){let E='cannot decode message google.protobuf.UInt64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Qo().fromBinary(u,f)}static fromJson(u,f){return new Qo().fromJson(u,f)}static fromJsonString(u,f){return new Qo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Qo,u,f)}}Qo.runtime=ke,Qo.typeName="google.protobuf.UInt64Value",Qo.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Qo.fieldWrapper={wrapField(g){return new Qo({value:g})},unwrapField(g){return g.value}};class Ni extends A{constructor(u){super(),this.value=0,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.INT32,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.INT32,u)}catch(y){let E='cannot decode message google.protobuf.Int32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Ni().fromBinary(u,f)}static fromJson(u,f){return new Ni().fromJson(u,f)}static fromJsonString(u,f){return new Ni().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Ni,u,f)}}Ni.runtime=ke,Ni.typeName="google.protobuf.Int32Value",Ni.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Ni.fieldWrapper={wrapField(g){return new Ni({value:g})},unwrapField(g){return g.value}};class Eo extends A{constructor(u){super(),this.value=0,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.UINT32,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.UINT32,u)}catch(y){let E='cannot decode message google.protobuf.UInt32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Eo().fromBinary(u,f)}static fromJson(u,f){return new Eo().fromJson(u,f)}static fromJsonString(u,f){return new Eo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Eo,u,f)}}Eo.runtime=ke,Eo.typeName="google.protobuf.UInt32Value",Eo.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Eo.fieldWrapper={wrapField(g){return new Eo({value:g})},unwrapField(g){return g.value}};class xs extends A{constructor(u){super(),this.value=!1,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.BOOL,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.BOOL,u)}catch(y){let E='cannot decode message google.protobuf.BoolValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new xs().fromBinary(u,f)}static fromJson(u,f){return new xs().fromJson(u,f)}static fromJsonString(u,f){return new xs().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(xs,u,f)}}xs.runtime=ke,xs.typeName="google.protobuf.BoolValue",xs.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),xs.fieldWrapper={wrapField(g){return new xs({value:g})},unwrapField(g){return g.value}};let jf=class X2 extends A{constructor(u){super(),this.value="",ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.STRING,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.STRING,u)}catch(y){let E='cannot decode message google.protobuf.StringValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new X2().fromBinary(u,f)}static fromJson(u,f){return new X2().fromJson(u,f)}static fromJsonString(u,f){return new X2().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(X2,u,f)}};jf.runtime=ke,jf.typeName="google.protobuf.StringValue",jf.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),jf.fieldWrapper={wrapField(g){return new jf({value:g})},unwrapField(g){return g.value}};class Yo extends A{constructor(u){super(),this.value=new Uint8Array(0),ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(P.BYTES,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(P.BYTES,u)}catch(y){let E='cannot decode message google.protobuf.BytesValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Yo().fromBinary(u,f)}static fromJson(u,f){return new Yo().fromJson(u,f)}static fromJsonString(u,f){return new Yo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Yo,u,f)}}Yo.runtime=ke,Yo.typeName="google.protobuf.BytesValue",Yo.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Yo.fieldWrapper={wrapField(g){return new Yo({value:g})},unwrapField(g){return g.value}};const nP=[Wo,Ts,Tu,xu,vo,Ws,Rl,zf,Ts,Oo,So,Il,Ni,Eo,Qo,xs,jf,Yo],rP=[x(Ld)];function iP(g,u=!0){const f=g instanceof Uint8Array||g instanceof Ol?ky(g):g,y={},E={},N={};if(u){for(const B of nP)E[B.typeName]=B;for(const B of rP)y[B.typeName]=B}return{findEnum(B){const Z=y[B];if(Z)return Z;const re=f.enums.get(B);if(!re)return;const xe=(re.file.syntax=="proto3"?ke:Ie).makeEnumType(B,re.values.map(mt=>({no:mt.number,name:mt.name,localName:Fn(mt)})),{});return y[B]=xe,xe},findMessage(B){const Z=E[B];if(Z)return Z;const re=f.messages.get(B);if(!re)return;const se=re.file.syntax=="proto3"?ke:Ie,xe=[],mt=se.makeMessageType(B,()=>xe,{localName:Fn(re)});E[B]=mt;for(const Be of re.fields){const ft=aP(Be,this);xe.push(ft)}return mt},findService(B){const Z=N[B];if(Z)return Z;const re=f.services.get(B);if(!re)return;const se={};for(const xe of re.methods){const mt=this.findMessage(xe.input.typeName),Be=this.findMessage(xe.output.typeName);l(mt,`message "${xe.input.typeName}" for ${xe.toString()} not found`),l(Be,`output message "${xe.output.typeName}" for ${xe.toString()} not found`),se[Fn(xe)]={name:xe.name,I:mt,O:Be,kind:xe.methodKind,idempotency:xe.idempotency}}return N[B]={typeName:re.typeName,methods:se}}}}function aP(g,u){switch(g.fieldKind){case"map":return sP(g,u);case"message":return oP(g,u);case"enum":{const f=lP(g,u);return f.default=g.getDefaultValue(),f}case"scalar":{const f=Fm(g);return f.default=g.getDefaultValue(),f}}}function sP(g,u){const f={kind:"map",no:g.number,name:g.name,jsonName:g.jsonName,K:g.mapKey};if(g.mapValue.message){const y=u.findMessage(g.mapValue.message.typeName);return l(y,`message "${g.mapValue.message.typeName}" for ${g.toString()} not found`),Object.assign(Object.assign({},f),{V:{kind:"message",T:y}})}if(g.mapValue.enum){const y=u.findEnum(g.mapValue.enum.typeName);return l(y,`enum "${g.mapValue.enum.typeName}" for ${g.toString()} not found`),Object.assign(Object.assign({},f),{V:{kind:"enum",T:y}})}return Object.assign(Object.assign({},f),{V:{kind:"scalar",T:g.mapValue.scalar}})}function Fm(g){const u=g.longType==V.STRING?{L:V.STRING}:{},f=Object.assign({kind:"scalar",no:g.number,name:g.name,jsonName:g.jsonName,T:g.scalar},u);return g.repeated?Object.assign(Object.assign({},f),{repeated:!0,packed:g.packed,oneof:void 0,T:g.scalar}):g.oneof?Object.assign(Object.assign({},f),{oneof:g.oneof.name}):g.optional?Object.assign(Object.assign({},f),{opt:!0}):f}function oP(g,u){const f=u.findMessage(g.message.typeName);l(f,`message "${g.message.typeName}" for ${g.toString()} not found`);const y={kind:"message",no:g.number,name:g.name,jsonName:g.jsonName,T:f,delimited:g.proto.type==Tr.GROUP};return g.repeated?Object.assign(Object.assign({},y),{repeated:!0,packed:g.packed,oneof:void 0}):g.oneof?Object.assign(Object.assign({},y),{oneof:g.oneof.name}):g.optional?Object.assign(Object.assign({},y),{opt:!0}):y}function lP(g,u){const f=u.findEnum(g.enum.typeName);l(f,`enum "${g.enum.typeName}" for ${g.toString()} not found`);const y={kind:"enum",no:g.number,name:g.name,jsonName:g.jsonName,T:f};return g.repeated?Object.assign(Object.assign({},y),{repeated:!0,packed:g.packed,oneof:void 0}):g.oneof?Object.assign(Object.assign({},y),{oneof:g.oneof.name}):g.optional?Object.assign(Object.assign({},y),{opt:!0}):y}function Ry(g){if(!(g instanceof A))return g;const u=g.getType(),f={};for(const y of u.fields.byMember()){const E=g[y.localName];let N;if(y.repeated)N=E.map(B=>a1(B));else if(y.kind=="map"){N={};for(const[B,Z]of Object.entries(E))N[B]=a1(Z)}else y.kind=="oneof"?N=y.findField(E.case)?{case:E.case,value:a1(E.value)}:{case:void 0}:N=a1(E);f[y.localName]=N}return f}function a1(g){if(g===void 0)return g;if(g instanceof A)return Ry(g);if(g instanceof Uint8Array){const u=new Uint8Array(g.byteLength);return u.set(g),u}return g}class is extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new is().fromBinary(u,f)}static fromJson(u,f){return new is().fromJson(u,f)}static fromJsonString(u,f){return new is().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(is,u,f)}}is.runtime=Ie,is.typeName="google.protobuf.compiler.Version",is.fields=Ie.util.newFieldList(()=>[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]);class Dl extends A{constructor(u){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Dl().fromBinary(u,f)}static fromJson(u,f){return new Dl().fromJson(u,f)}static fromJsonString(u,f){return new Dl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Dl,u,f)}}Dl.runtime=Ie,Dl.typeName="google.protobuf.compiler.CodeGeneratorRequest",Dl.fields=Ie.util.newFieldList(()=>[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:Sl,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:Sl,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:is,opt:!0}]);class $d extends A{constructor(u){super(),this.file=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new $d().fromBinary(u,f)}static fromJson(u,f){return new $d().fromJson(u,f)}static fromJsonString(u,f){return new $d().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals($d,u,f)}}$d.runtime=Ie,$d.typeName="google.protobuf.compiler.CodeGeneratorResponse",$d.fields=Ie.util.newFieldList(()=>[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:15,name:"file",kind:"message",T:Nc,repeated:!0}]);var Iy;(function(g){g[g.NONE=0]="NONE",g[g.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",g[g.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(Iy||(Iy={})),Ie.util.setEnumType(Iy,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class Nc extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Nc().fromBinary(u,f)}static fromJson(u,f){return new Nc().fromJson(u,f)}static fromJsonString(u,f){return new Nc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Nc,u,f)}}Nc.runtime=Ie,Nc.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",Nc.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:Ic,opt:!0}]);class as extends A{constructor(u){super(),this.fileName="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new as().fromBinary(u,f)}static fromJson(u,f){return new as().fromJson(u,f)}static fromJsonString(u,f){return new as().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(as,u,f)}}as.runtime=ke,as.typeName="google.protobuf.SourceContext",as.fields=ke.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var ta;(function(g){g[g.PROTO2=0]="PROTO2",g[g.PROTO3=1]="PROTO3",g[g.EDITIONS=2]="EDITIONS"})(ta||(ta={})),ke.util.setEnumType(ta,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class Pc extends A{constructor(u){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=ta.PROTO2,this.edition="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new Pc().fromBinary(u,f)}static fromJson(u,f){return new Pc().fromJson(u,f)}static fromJsonString(u,f){return new Pc().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Pc,u,f)}}Pc.runtime=ke,Pc.typeName="google.protobuf.Type",Pc.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Mc,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:wa,repeated:!0},{no:5,name:"source_context",kind:"message",T:as},{no:6,name:"syntax",kind:"enum",T:ke.getEnumType(ta)},{no:7,name:"edition",kind:"scalar",T:9}]);class Mc extends A{constructor(u){super(),this.kind=Bm.TYPE_UNKNOWN,this.cardinality=Um.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new Mc().fromBinary(u,f)}static fromJson(u,f){return new Mc().fromJson(u,f)}static fromJsonString(u,f){return new Mc().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Mc,u,f)}}Mc.runtime=ke,Mc.typeName="google.protobuf.Field",Mc.fields=ke.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:ke.getEnumType(Bm)},{no:2,name:"cardinality",kind:"enum",T:ke.getEnumType(Um)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:wa,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var Bm;(function(g){g[g.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",g[g.TYPE_DOUBLE=1]="TYPE_DOUBLE",g[g.TYPE_FLOAT=2]="TYPE_FLOAT",g[g.TYPE_INT64=3]="TYPE_INT64",g[g.TYPE_UINT64=4]="TYPE_UINT64",g[g.TYPE_INT32=5]="TYPE_INT32",g[g.TYPE_FIXED64=6]="TYPE_FIXED64",g[g.TYPE_FIXED32=7]="TYPE_FIXED32",g[g.TYPE_BOOL=8]="TYPE_BOOL",g[g.TYPE_STRING=9]="TYPE_STRING",g[g.TYPE_GROUP=10]="TYPE_GROUP",g[g.TYPE_MESSAGE=11]="TYPE_MESSAGE",g[g.TYPE_BYTES=12]="TYPE_BYTES",g[g.TYPE_UINT32=13]="TYPE_UINT32",g[g.TYPE_ENUM=14]="TYPE_ENUM",g[g.TYPE_SFIXED32=15]="TYPE_SFIXED32",g[g.TYPE_SFIXED64=16]="TYPE_SFIXED64",g[g.TYPE_SINT32=17]="TYPE_SINT32",g[g.TYPE_SINT64=18]="TYPE_SINT64"})(Bm||(Bm={})),ke.util.setEnumType(Bm,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var Um;(function(g){g[g.UNKNOWN=0]="UNKNOWN",g[g.OPTIONAL=1]="OPTIONAL",g[g.REQUIRED=2]="REQUIRED",g[g.REPEATED=3]="REPEATED"})(Um||(Um={})),ke.util.setEnumType(Um,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);class Fd extends A{constructor(u){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=ta.PROTO2,this.edition="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new Fd().fromBinary(u,f)}static fromJson(u,f){return new Fd().fromJson(u,f)}static fromJsonString(u,f){return new Fd().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Fd,u,f)}}Fd.runtime=ke,Fd.typeName="google.protobuf.Enum",Fd.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Lc,repeated:!0},{no:3,name:"options",kind:"message",T:wa,repeated:!0},{no:4,name:"source_context",kind:"message",T:as},{no:5,name:"syntax",kind:"enum",T:ke.getEnumType(ta)},{no:6,name:"edition",kind:"scalar",T:9}]);class Lc extends A{constructor(u){super(),this.name="",this.number=0,this.options=[],ke.util.initPartial(u,this)}static fromBinary(u,f){return new Lc().fromBinary(u,f)}static fromJson(u,f){return new Lc().fromJson(u,f)}static fromJsonString(u,f){return new Lc().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Lc,u,f)}}Lc.runtime=ke,Lc.typeName="google.protobuf.EnumValue",Lc.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:wa,repeated:!0}]);class wa extends A{constructor(u){super(),this.name="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new wa().fromBinary(u,f)}static fromJson(u,f){return new wa().fromJson(u,f)}static fromJsonString(u,f){return new wa().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(wa,u,f)}}wa.runtime=ke,wa.typeName="google.protobuf.Option",wa.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Wo}]);class He extends A{constructor(u){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=ta.PROTO2,ke.util.initPartial(u,this)}static fromBinary(u,f){return new He().fromBinary(u,f)}static fromJson(u,f){return new He().fromJson(u,f)}static fromJsonString(u,f){return new He().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(He,u,f)}}He.runtime=ke,He.typeName="google.protobuf.Api",He.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:yt,repeated:!0},{no:3,name:"options",kind:"message",T:wa,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:as},{no:6,name:"mixins",kind:"message",T:lt,repeated:!0},{no:7,name:"syntax",kind:"enum",T:ke.getEnumType(ta)}]);class yt extends A{constructor(u){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=ta.PROTO2,ke.util.initPartial(u,this)}static fromBinary(u,f){return new yt().fromBinary(u,f)}static fromJson(u,f){return new yt().fromJson(u,f)}static fromJsonString(u,f){return new yt().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(yt,u,f)}}yt.runtime=ke,yt.typeName="google.protobuf.Method",yt.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:wa,repeated:!0},{no:7,name:"syntax",kind:"enum",T:ke.getEnumType(ta)}]);class lt extends A{constructor(u){super(),this.name="",this.root="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new lt().fromBinary(u,f)}static fromJson(u,f){return new lt().fromJson(u,f)}static fromJsonString(u,f){return new lt().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(lt,u,f)}}lt.runtime=ke,lt.typeName="google.protobuf.Mixin",lt.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}]);const pn=Object.freeze(Object.defineProperty({__proto__:null,Any:Wo,Api:He,BinaryReader:Pe,BinaryWriter:Ne,BoolValue:xs,BytesValue:Yo,CodeGeneratorRequest:Dl,CodeGeneratorResponse:$d,get CodeGeneratorResponse_Feature(){return Iy},CodeGeneratorResponse_File:Nc,DescriptorProto:El,DescriptorProto_ExtensionRange:pu,DescriptorProto_ReservedRange:mu,DoubleValue:Oo,Duration:Ts,get Edition(){return gi},Empty:Tu,Enum:Fd,EnumDescriptorProto:Tl,EnumDescriptorProto_EnumReservedRange:xl,EnumOptions:Tc,EnumValue:Lc,EnumValueDescriptorProto:Ec,EnumValueOptions:xc,ExtensionRangeOptions:wl,ExtensionRangeOptions_Declaration:gu,get ExtensionRangeOptions_VerificationState(){return Pm},FeatureSet:Ii,FeatureSetDefaults:Ir,FeatureSetDefaults_FeatureSetEditionDefault:_c,get FeatureSet_EnumType(){return e1},get FeatureSet_FieldPresence(){return Jg},get FeatureSet_JsonFormat(){return ai},get FeatureSet_MessageEncoding(){return n1},get FeatureSet_RepeatedFieldEncoding(){return hp},get FeatureSet_Utf8Validation(){return t1},Field:Mc,FieldDescriptorProto:Hs,get FieldDescriptorProto_Label(){return Bf},get FieldDescriptorProto_Type(){return Tr},FieldMask:xu,FieldOptions:Su,get FieldOptions_CType(){return Mm},FieldOptions_EditionDefault:Eu,get FieldOptions_JSType(){return Pd},get FieldOptions_OptionRetention(){return Lm},get FieldOptions_OptionTargetType(){return $m},get Field_Cardinality(){return Um},get Field_Kind(){return Bm},FileDescriptorProto:Sl,FileDescriptorSet:Ol,FileOptions:Cl,get FileOptions_OptimizeMode(){return vu},FloatValue:So,GeneratedCodeInfo:Ic,GeneratedCodeInfo_Annotation:Dc,get GeneratedCodeInfo_Annotation_Semantic(){return r1},Int32Value:Ni,Int64Value:Il,ListValue:Rl,get LongType(){return V},Message:A,MessageOptions:Ou,Method:yt,MethodDescriptorProto:kl,get MethodIdempotency(){return Kg},get MethodKind(){return js},MethodOptions:kc,get MethodOptions_IdempotencyLevel(){return Md},Mixin:lt,get NullValue(){return Ld},OneofDescriptorProto:bu,OneofOptions:wc,Option:wa,get ScalarType(){return P},ServiceDescriptorProto:yu,ServiceOptions:wu,SourceCodeInfo:Ac,SourceCodeInfo_Location:Rc,SourceContext:as,StringValue:jf,Struct:vo,get Syntax(){return ta},Timestamp:zf,Type:Pc,UInt32Value:Eo,UInt64Value:Qo,UninterpretedOption:Ga,UninterpretedOption_NamePart:Cc,Value:Ws,Version:is,get WireType(){return he},codegenInfo:xy,createDescriptorSet:ky,createRegistry:e_,createRegistryFromDescriptors:iP,proto2:Ie,proto3:ke,protoBase64:Xt,protoDelimited:fp,protoDouble:Gn,protoInt64:Se,toPlainMessage:Ry},Symbol.toStringTag,{value:"Module"}));function sr(g){const u=o[g];return typeof u!="string"?g.toString():u[0].toLowerCase()+u.substring(1).replace(/[A-Z]/g,f=>"_"+f.toLowerCase())}class Kn extends Error{constructor(u,f=o.Unknown,y,E,N){super($a(u,f)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=u,this.code=f,this.metadata=new Headers(y??{}),this.details=E??[],this.cause=N}static from(u,f=o.Unknown){return u instanceof Kn?u:u instanceof Error?u.name=="AbortError"?new Kn(u.message,o.Canceled):new Kn(u.message,f,void 0,void 0,u):new Kn(String(u),f,void 0,void 0,u)}findDetails(u){const f="typeName"in u?{findMessage:E=>E===u.typeName?u:void 0}:u,y=[];for(const E of this.details){if(E instanceof A){f.findMessage(E.getType().typeName)&&y.push(E);continue}const N=f.findMessage(E.type);if(N)try{y.push(N.fromBinary(E.value))}catch{}}return y}}function $a(g,u){return g.length?`[${sr(u)}] ${g}`:`[${sr(u)}]`}function bi(g,u,f){try{const y=Xt.dec(g);return u?u.fromBinary(y,f):y}catch(y){throw Kn.from(y,o.DataLoss)}}function QE(g,u){const f={};for(const[y,E]of Object.entries(g.methods)){const N=u(Object.assign(Object.assign({},E),{localName:y,service:g}));N!=null&&(f[y]=N)}return f}function t_(g){let u,f=new Uint8Array(0);function y(E){const N=new Uint8Array(f.length+E.length);N.set(f),N.set(E,f.length),f=N}return new ReadableStream({start(){u=g.getReader()},async pull(E){let N;for(;;){if(N===void 0&&f.byteLength>=5){let re=0;for(let se=1;se<5;se++)re=(re<<8)+f[se];N={flags:f[0],length:re}}if(N!==void 0&&f.byteLength>=N.length+5)break;const Z=await u.read();if(Z.done)break;y(Z.value)}if(N===void 0){if(f.byteLength==0){E.close();return}E.error(new Kn("premature end of stream",o.DataLoss));return}const B=f.subarray(5,5+N.length);f=f.subarray(5+N.length),E.enqueue({flags:N.flags,data:B})}})}function qo(g,u){const f=new Uint8Array(u.length+5);f.set(u,5);const y=new DataView(f.buffer,f.byteOffset,f.byteLength);return y.setUint8(0,g),y.setUint32(1,u.length),f}var Dy=globalThis&&globalThis.__asyncValues||function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=g[Symbol.asyncIterator],f;return u?u.call(g):(g=typeof __values=="function"?__values(g):g[Symbol.iterator](),f={},y("next"),y("throw"),y("return"),f[Symbol.asyncIterator]=function(){return this},f);function y(N){f[N]=g[N]&&function(B){return new Promise(function(Z,re){B=g[N](B),E(Z,re,B.done,B.value)})}}function E(N,B,Z,re){Promise.resolve(re).then(function(se){N({value:se,done:Z})},B)}},s1=globalThis&&globalThis.__await||function(g){return this instanceof s1?(this.v=g,this):new s1(g)},zm=globalThis&&globalThis.__asyncGenerator||function(g,u,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=f.apply(g,u||[]),E,N=[];return E={},B("next"),B("throw"),B("return"),E[Symbol.asyncIterator]=function(){return this},E;function B(Be){y[Be]&&(E[Be]=function(ft){return new Promise(function(jt,mn){N.push([Be,ft,jt,mn])>1||Z(Be,ft)})})}function Z(Be,ft){try{re(y[Be](ft))}catch(jt){mt(N[0][3],jt)}}function re(Be){Be.value instanceof s1?Promise.resolve(Be.value.v).then(se,xe):mt(N[0][2],Be)}function se(Be){Z("next",Be)}function xe(Be){Z("throw",Be)}function mt(Be,ft){Be(ft),N.shift(),N.length&&Z(N[0][0],N[0][1])}},Ny=globalThis&&globalThis.__asyncDelegator||function(g){var u,f;return u={},y("next"),y("throw",function(E){throw E}),y("return"),u[Symbol.iterator]=function(){return this},u;function y(E,N){u[E]=g[E]?function(B){return(f=!f)?{value:s1(g[E](B)),done:!1}:N?N(B):B}:N}};function Py(g){return zm(this,arguments,function*(){yield s1(yield*Ny(Dy(g)))})}var ei=globalThis&&globalThis.__asyncValues||function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=g[Symbol.asyncIterator],f;return u?u.call(g):(g=typeof __values=="function"?__values(g):g[Symbol.iterator](),f={},y("next"),y("throw"),y("return"),f[Symbol.asyncIterator]=function(){return this},f);function y(N){f[N]=g[N]&&function(B){return new Promise(function(Z,re){B=g[N](B),E(Z,re,B.done,B.value)})}}function E(N,B,Z,re){Promise.resolve(re).then(function(se){N({value:se,done:Z})},B)}},jm=globalThis&&globalThis.__await||function(g){return this instanceof jm?(this.v=g,this):new jm(g)},n_=globalThis&&globalThis.__asyncDelegator||function(g){var u,f;return u={},y("next"),y("throw",function(E){throw E}),y("return"),u[Symbol.iterator]=function(){return this},u;function y(E,N){u[E]=g[E]?function(B){return(f=!f)?{value:jm(g[E](B)),done:!1}:N?N(B):B}:N}},My=globalThis&&globalThis.__asyncGenerator||function(g,u,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=f.apply(g,u||[]),E,N=[];return E={},B("next"),B("throw"),B("return"),E[Symbol.asyncIterator]=function(){return this},E;function B(Be){y[Be]&&(E[Be]=function(ft){return new Promise(function(jt,mn){N.push([Be,ft,jt,mn])>1||Z(Be,ft)})})}function Z(Be,ft){try{re(y[Be](ft))}catch(jt){mt(N[0][3],jt)}}function re(Be){Be.value instanceof jm?Promise.resolve(Be.value.v).then(se,xe):mt(N[0][2],Be)}function se(Be){Z("next",Be)}function xe(Be){Z("throw",Be)}function mt(Be,ft){Be(ft),N.shift(),N.length&&Z(N[0][0],N[0][1])}};function uP(g,u){return QE(g,f=>{switch(f.kind){case js.Unary:return cP(u,g,f);case js.ServerStreaming:return dP(u,g,f);case js.ClientStreaming:return Ly(u,g,f);case js.BiDiStreaming:return Hf(u,g,f);default:return null}})}function cP(g,u,f){return async function(y,E){var N,B;const Z=await g.unary(u,f,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,y,E==null?void 0:E.contextValues);return(N=E==null?void 0:E.onHeader)===null||N===void 0||N.call(E,Z.header),(B=E==null?void 0:E.onTrailer)===null||B===void 0||B.call(E,Z.trailer),Z.message}}function dP(g,u,f){return function(y,E){return o1(g.stream(u,f,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,Py([y]),E==null?void 0:E.contextValues),E)}}function Ly(g,u,f){return async function(y,E){var N,B,Z,re,se,xe;const mt=await g.stream(u,f,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,y,E==null?void 0:E.contextValues);(se=E==null?void 0:E.onHeader)===null||se===void 0||se.call(E,mt.header);let Be;try{for(var ft=!0,jt=ei(mt.message),mn;mn=await jt.next(),N=mn.done,!N;ft=!0)re=mn.value,ft=!1,Be=re}catch(Sn){B={error:Sn}}finally{try{!ft&&!N&&(Z=jt.return)&&await Z.call(jt)}finally{if(B)throw B.error}}if(!Be)throw new Kn("protocol error: missing response message",o.Internal);return(xe=E==null?void 0:E.onTrailer)===null||xe===void 0||xe.call(E,mt.trailer),Be}}function Hf(g,u,f){return function(y,E){return o1(g.stream(u,f,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,y,E==null?void 0:E.contextValues),E)}}function o1(g,u){const f=function(){var y,E;return My(this,arguments,function*(){const N=yield jm(g);(y=u==null?void 0:u.onHeader)===null||y===void 0||y.call(u,N.header),yield jm(yield*n_(ei(N.message))),(E=u==null?void 0:u.onTrailer)===null||E===void 0||E.call(u,N.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>f.next()})}}function r_(...g){const u=new AbortController,f=g.filter(E=>E!==void 0).concat(u.signal);for(const E of f){if(E.aborted){y.apply(E);break}E.addEventListener("abort",y)}function y(){u.signal.aborted||u.abort(YE(this));for(const E of f)E.removeEventListener("abort",y)}return u}function $y(g){const u=new AbortController,f=()=>{u.abort(new Kn("the operation timed out",o.DeadlineExceeded))};let y;return g!==void 0&&(g<=0?f():y=setTimeout(f,g)),{signal:u.signal,cleanup:()=>clearTimeout(y)}}function YE(g){if(!g.aborted)return;if(g.reason!==void 0)return g.reason;const u=new Error("This operation was aborted");return u.name="AbortError",u}function qE(){return{get(g){return g.id in this?this[g.id]:g.defaultValue},set(g,u){return this[g.id]=u,this},delete(g){return delete this[g.id],this}}}const Hm=128;function GE(g){const u=new Headers,f=new TextDecoder().decode(g).split(`\r -`);for(const y of f){if(y==="")continue;const E=y.indexOf(":");if(E>0){const N=y.substring(0,E).trim(),B=y.substring(E+1).trim();u.append(N,B)}}return u}const l1="Content-Type",mp="Grpc-Timeout",u1="Grpc-Status",i_="Grpc-Message",fP="Grpc-Status-Details-Bin",hP="User-Agent",Fy="X-User-Agent",By="X-Grpc-Web",ZE="application/grpc-web+proto",pP="application/grpc-web+json";class $c extends A{constructor(u){super(),this.code=0,this.message="",this.details=[],ke.util.initPartial(u,this)}static fromBinary(u,f){return new $c().fromBinary(u,f)}static fromJson(u,f){return new $c().fromJson(u,f)}static fromJsonString(u,f){return new $c().fromJsonString(u,f)}static equals(u,f){return ke.util.equals($c,u,f)}}$c.runtime=ke,$c.typeName="google.rpc.Status",$c.fields=ke.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Wo,repeated:!0}]);const mP="0";function a_(g){var u;const f=g.get(fP);if(f!=null){const E=bi(f,$c);if(E.code==0)return;const N=new Kn(E.message,E.code,g);return N.details=E.details.map(B=>({type:B.typeUrl.substring(B.typeUrl.lastIndexOf("/")+1),value:B.value})),N}const y=g.get(u1);if(y!=null){if(y===mP)return;const E=parseInt(y,10);return E in o?new Kn(decodeURIComponent((u=g.get(i_))!==null&&u!==void 0?u:""),E,g):new Kn(`invalid grpc-status: ${y}`,o.Internal,g)}}function Ta(g,u,f){const y=typeof u=="string"?u:u.typeName,E=typeof f=="string"?f:f.name;return g.toString().replace(/\/?$/,`/${y}/${E}`)}function ss(g,u){return u instanceof A?u:new g(u)}function gP(g,u){function f(y){return y.done===!0?y:{done:y.done,value:ss(g,y.value)}}return{[Symbol.asyncIterator](){const y=u[Symbol.asyncIterator](),E={next:()=>y.next().then(f)};return y.throw!==void 0&&(E.throw=N=>y.throw(N).then(f)),y.return!==void 0&&(E.return=N=>y.return(N).then(f)),E}}}function bP(g){var u;const f=Object.assign({},g);return(u=f.ignoreUnknownFields)!==null&&u!==void 0||(f.ignoreUnknownFields=!0),f}function XE(g,u,f,y){const E=u?s_(g.I,y):Uy(g.I,f);return{parse:(u?s_(g.O,y):Uy(g.O,f)).parse,serialize:E.serialize}}function s_(g,u){return{parse(f){try{return g.fromBinary(f,u)}catch(y){const E=y instanceof Error?y.message:String(y);throw new Kn(`parse binary: ${E}`,o.InvalidArgument)}},serialize(f){try{return f.toBinary(u)}catch(y){const E=y instanceof Error?y.message:String(y);throw new Kn(`serialize binary: ${E}`,o.Internal)}}}}function Uy(g,u){var f,y;const E=(f=u==null?void 0:u.textEncoder)!==null&&f!==void 0?f:new TextEncoder,N=(y=u==null?void 0:u.textDecoder)!==null&&y!==void 0?y:new TextDecoder,B=bP(u);return{parse(Z){try{const re=N.decode(Z);return g.fromJsonString(re,B)}catch(re){throw Kn.from(re,o.InvalidArgument)}},serialize(Z){try{const re=Z.toJsonString(B);return E.encode(re)}catch(re){throw Kn.from(re,o.Internal)}}}}function c1(g){const u=Vm(g.next,g.interceptors),[f,y,E]=gp(g),N=Object.assign(Object.assign({},g.req),{message:ss(g.req.method.I,g.req.message),signal:f});return u(N).then(B=>(E(),B),y)}function KE(g){const u=Vm(g.next,g.interceptors),[f,y,E]=gp(g),N=Object.assign(Object.assign({},g.req),{message:gP(g.req.method.I,g.req.message),signal:f});let B=!1;return f.addEventListener("abort",function(){var Z,re;const se=g.req.message[Symbol.asyncIterator]();B||(Z=se.throw)===null||Z===void 0||Z.call(se,this.reason).catch(()=>{}),(re=se.return)===null||re===void 0||re.call(se).catch(()=>{})}),u(N).then(Z=>Object.assign(Object.assign({},Z),{message:{[Symbol.asyncIterator](){const re=Z.message[Symbol.asyncIterator]();return{next(){return re.next().then(se=>(se.done==!0&&(B=!0,E()),se),y)}}}}}),y)}function gp(g){const{signal:u,cleanup:f}=$y(g.timeoutMs),y=r_(g.signal,u);return[y.signal,function(N){const B=Kn.from(u.aborted?YE(u):N);return y.abort(B),f(),Promise.reject(B)},function(){f(),y.abort()}]}function Vm(g,u){var f;return(f=u==null?void 0:u.concat().reverse().reduce((y,E)=>E(y),g))!==null&&f!==void 0?f:g}function d1(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function f1(g,u){const f=a_(g);if(f)throw u.forEach((y,E)=>{f.metadata.append(E,y)}),f}function bp(g,u,f,y){const E=new Headers(f??{});return E.set(l1,g?ZE:pP),E.set(By,"1"),E.set(Fy,"connect-es/1.2.0"),y&&E.set(hP,"connect-es/1.2.0"),u!==void 0&&E.set(mp,`${u}m`),E}function yP(g){switch(g){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function o_(g,u){var f;if(g>=200&&g<300){const y=a_(u);if(y)throw y;return{foundStatus:u.has(u1)}}throw new Kn(decodeURIComponent((f=u.get(i_))!==null&&f!==void 0?f:`HTTP ${g}`),yP(g),u)}var yp=globalThis&&globalThis.__await||function(g){return this instanceof yp?(this.v=g,this):new yp(g)},vP=globalThis&&globalThis.__asyncGenerator||function(g,u,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=f.apply(g,u||[]),E,N=[];return E={},B("next"),B("throw"),B("return"),E[Symbol.asyncIterator]=function(){return this},E;function B(Be){y[Be]&&(E[Be]=function(ft){return new Promise(function(jt,mn){N.push([Be,ft,jt,mn])>1||Z(Be,ft)})})}function Z(Be,ft){try{re(y[Be](ft))}catch(jt){mt(N[0][3],jt)}}function re(Be){Be.value instanceof yp?Promise.resolve(Be.value.v).then(se,xe):mt(N[0][2],Be)}function se(Be){Z("next",Be)}function xe(Be){Z("throw",Be)}function mt(Be,ft){Be(ft),N.shift(),N.length&&Z(N[0][0],N[0][1])}};function OP(g){var u;d1();const f=(u=g.useBinaryFormat)!==null&&u!==void 0?u:!0;return{async unary(y,E,N,B,Z,re,se){var xe;const{serialize:mt,parse:Be}=XE(E,f,g.jsonOptions,g.binaryOptions);return B=B===void 0?g.defaultTimeoutMs:B<=0?void 0:B,await c1({interceptors:g.interceptors,signal:N,timeoutMs:B,req:{stream:!1,service:y,method:E,url:Ta(g.baseUrl,y,E),init:{method:"POST",credentials:(xe=g.credentials)!==null&&xe!==void 0?xe:"same-origin",redirect:"error",mode:"cors"},header:bp(f,B,Z,!1),contextValues:se??qE(),message:re},next:async ft=>{var jt;const Sn=await((jt=g.fetch)!==null&&jt!==void 0?jt:globalThis.fetch)(ft.url,Object.assign(Object.assign({},ft.init),{headers:ft.header,signal:ft.signal,body:qo(0,mt(ft.message))}));if(o_(Sn.status,Sn.headers),!Sn.body)throw"missing response body";const cr=t_(Sn.body).getReader();let yi,jn;for(;;){const dr=await cr.read();if(dr.done)break;const{flags:vi,data:Pi}=dr.value;if(vi===Hm){if(yi!==void 0)throw"extra trailer";yi=GE(Pi);continue}if(jn!==void 0)throw"extra message";jn=Be(Pi)}if(yi===void 0)throw"missing trailer";if(f1(yi,Sn.headers),jn===void 0)throw"missing message";return{stream:!1,header:Sn.headers,message:jn,trailer:yi}}})},async stream(y,E,N,B,Z,re,se){var xe;const{serialize:mt,parse:Be}=XE(E,f,g.jsonOptions,g.binaryOptions);function ft(mn,Sn,cr,yi){return vP(this,arguments,function*(){const dr=t_(mn).getReader();if(Sn){if(!(yield yp(dr.read())).done)throw"extra data for trailers-only";return yield yp(void 0)}let vi=!1;for(;;){const Pi=yield yp(dr.read());if(Pi.done)break;const{flags:kp,data:sh}=Pi.value;if((kp&Hm)===Hm){if(vi)throw"extra trailer";vi=!0;const j1=GE(sh);f1(j1,yi),j1.forEach(($7,F7)=>cr.set(F7,$7));continue}if(vi)throw"extra message";yield yield yp(Be(sh))}if(!vi)throw"missing trailer"})}async function jt(mn){if(E.kind!=js.ServerStreaming)throw"The fetch API does not support streaming request bodies";const Sn=await mn[Symbol.asyncIterator]().next();if(Sn.done==!0)throw"missing request message";return qo(0,mt(Sn.value))}return B=B===void 0?g.defaultTimeoutMs:B<=0?void 0:B,KE({interceptors:g.interceptors,signal:N,timeoutMs:B,req:{stream:!0,service:y,method:E,url:Ta(g.baseUrl,y,E),init:{method:"POST",credentials:(xe=g.credentials)!==null&&xe!==void 0?xe:"same-origin",redirect:"error",mode:"cors"},header:bp(f,B,Z,!1),contextValues:se??qE(),message:re},next:async mn=>{var Sn;const yi=await((Sn=g.fetch)!==null&&Sn!==void 0?Sn:globalThis.fetch)(mn.url,Object.assign(Object.assign({},mn.init),{headers:mn.header,signal:mn.signal,body:await jt(mn.message)})),{foundStatus:jn}=o_(yi.status,yi.headers);if(!yi.body)throw"missing response body";const dr=new Headers;return Object.assign(Object.assign({},mn),{header:yi.headers,trailer:dr,message:ft(yi.body,jn,dr,yi.headers)})}})}}}var Rt={exports:{}},Vn=Rt.exports;Object.defineProperty(Vn,"__esModule",{value:!0});const{proto3:Un,StringValue:le,Timestamp:ku}=pn,vp=Un.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),Go=Un.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),_r=Un.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:Nl},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Hy}}]),SP=Un.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:A_},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:l_,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:kn},{no:6,name:"is_removed",kind:"scalar",T:8}]),l_=Un.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:u_},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:Vf,repeated:!0},{no:4,name:"presence_change",kind:"message",T:p1}]),u_=Un.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),Vf=Un.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:c_,oneof:"body"},{no:2,name:"add",kind:"message",T:d_,oneof:"body"},{no:3,name:"move",kind:"message",T:f_,oneof:"body"},{no:4,name:"remove",kind:"message",T:h_,oneof:"body"},{no:5,name:"edit",kind:"message",T:p_,oneof:"body"},{no:6,name:"select",kind:"message",T:Fc,oneof:"body"},{no:7,name:"style",kind:"message",T:m_,oneof:"body"},{no:8,name:"increase",kind:"message",T:g_,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:b_,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:y_,oneof:"body"}]),c_=Un.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:zy},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Set"}),d_=Un.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"prev_created_at",kind:"message",T:kn},{no:3,name:"value",kind:"message",T:zy},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Add"}),f_=Un.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"prev_created_at",kind:"message",T:kn},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Move"}),h_=Un.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Remove"}),p_=Un.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qs},{no:3,name:"to",kind:"message",T:Qs},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:kn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),Fc=Un.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qs},{no:3,name:"to",kind:"message",T:Qs},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Select"}),m_=Un.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qs},{no:3,name:"to",kind:"message",T:Qs},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:kn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}}],{localName:"Operation_Style"}),g_=Un.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"value",kind:"message",T:zy},{no:3,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Increase"}),b_=Un.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qm},{no:3,name:"to",kind:"message",T:Qm},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}},{no:5,name:"contents",kind:"message",T:k_,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_TreeEdit"}),y_=Un.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qm},{no:3,name:"to",kind:"message",T:Qm},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:kn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}}],{localName:"Operation_TreeStyle"}),zy=Un.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"moved_at",kind:"message",T:kn},{no:3,name:"removed_at",kind:"message",T:kn},{no:4,name:"type",kind:"enum",T:Un.getEnumType(vp)},{no:5,name:"value",kind:"scalar",T:12}]),Nl=Un.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:v_,oneof:"body"},{no:2,name:"json_array",kind:"message",T:O_,oneof:"body"},{no:3,name:"primitive",kind:"message",T:S_,oneof:"body"},{no:5,name:"text",kind:"message",T:E_,oneof:"body"},{no:6,name:"counter",kind:"message",T:w_,oneof:"body"},{no:7,name:"tree",kind:"message",T:Wf,oneof:"body"}]),v_=Un.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:T_,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_JSONObject"}),O_=Un.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:JE,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_JSONArray"}),S_=Un.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:Un.getEnumType(vp)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"moved_at",kind:"message",T:kn},{no:5,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Primitive"}),E_=Un.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:x_,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Text"}),w_=Un.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:Un.getEnumType(vp)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"moved_at",kind:"message",T:kn},{no:5,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Counter"}),Wf=Un.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:tw,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Tree"}),T_=Un.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:Nl}]),JE=Un.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:JE},{no:2,name:"element",kind:"message",T:Nl}]),Zo=Un.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:kn},{no:3,name:"is_removed",kind:"scalar",T:8}]),x_=Un.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:ew},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:kn},{no:4,name:"ins_prev_id",kind:"message",T:ew},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Zo}}]),ew=Un.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5}]),tw=Un.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Wm},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:kn},{no:5,name:"ins_prev_id",kind:"message",T:Wm},{no:6,name:"ins_next_id",kind:"message",T:Wm},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Zo}}]),k_=Un.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:tw,repeated:!0}]),Wm=Un.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5}]),Qm=Un.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Wm},{no:2,name:"left_sibling_id",kind:"message",T:Wm}]),C_=Un.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:ku}]),EP=Un.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:ku},{no:9,name:"updated_at",kind:"message",T:ku}]),wP=Un.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:le},{no:2,name:"auth_webhook_url",kind:"message",T:le},{no:3,name:"auth_webhook_methods",kind:"message",T:jy},{no:4,name:"client_deactivate_threshold",kind:"message",T:le}]),jy=Un.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),h1=Un.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:ku},{no:5,name:"accessed_at",kind:"message",T:ku},{no:6,name:"updated_at",kind:"message",T:ku}]),p1=Un.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:Un.getEnumType(__)},{no:2,name:"presence",kind:"message",T:Hy}]),__=Un.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),Hy=Un.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),A_=Un.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),Qs=Un.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),kn=Un.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),Qf=Un.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Pl=Un.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:Un.getEnumType(Go)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Qf}]);Vn.ValueType=vp,Vn.DocEventType=Go,Vn.Snapshot=_r,Vn.ChangePack=SP,Vn.Change=l_,Vn.ChangeID=u_,Vn.Operation=Vf,Vn.Operation_Set=c_,Vn.Operation_Add=d_,Vn.Operation_Move=f_,Vn.Operation_Remove=h_,Vn.Operation_Edit=p_,Vn.Operation_Select=Fc,Vn.Operation_Style=m_,Vn.Operation_Increase=g_,Vn.Operation_TreeEdit=b_,Vn.Operation_TreeStyle=y_,Vn.JSONElementSimple=zy,Vn.JSONElement=Nl,Vn.JSONElement_JSONObject=v_,Vn.JSONElement_JSONArray=O_,Vn.JSONElement_Primitive=S_,Vn.JSONElement_Text=E_,Vn.JSONElement_Counter=w_,Vn.JSONElement_Tree=Wf,Vn.RHTNode=T_,Vn.RGANode=JE,Vn.NodeAttr=Zo,Vn.TextNode=x_,Vn.TextNodeID=ew,Vn.TreeNode=tw,Vn.TreeNodes=k_,Vn.TreeNodeID=Wm,Vn.TreePos=Qm,Vn.User=C_,Vn.Project=EP,Vn.UpdatableProjectFields=wP,Vn.UpdatableProjectFields_AuthWebhookMethods=jy,Vn.DocumentSummary=h1,Vn.PresenceChange=p1,Vn.PresenceChange_ChangeType=__,Vn.Presence=Hy,Vn.Checkpoint=A_,Vn.TextNodePos=Qs,Vn.TimeTicket=kn,Vn.DocEventBody=Qf,Vn.DocEvent=Pl;const R_=(Rt.exports==null?{}:Rt.exports).default||Rt.exports,hr=(Rt.exports==null?{}:Rt.exports).ValueType,m1=(Rt.exports==null?{}:Rt.exports).DocEventType,Ym=(Rt.exports==null?{}:Rt.exports).Snapshot,Bd=(Rt.exports==null?{}:Rt.exports).ChangePack,nw=(Rt.exports==null?{}:Rt.exports).Change,Vy=(Rt.exports==null?{}:Rt.exports).ChangeID,qm=(Rt.exports==null?{}:Rt.exports).Operation,I_=(Rt.exports==null?{}:Rt.exports).Operation_Set,rw=(Rt.exports==null?{}:Rt.exports).Operation_Add,Za=(Rt.exports==null?{}:Rt.exports).Operation_Move,Wy=(Rt.exports==null?{}:Rt.exports).Operation_Remove,iw=(Rt.exports==null?{}:Rt.exports).Operation_Edit,Bc=(Rt.exports==null?{}:Rt.exports).Operation_Select,Qy=(Rt.exports==null?{}:Rt.exports).Operation_Style,g1=(Rt.exports==null?{}:Rt.exports).Operation_Increase,Yf=(Rt.exports==null?{}:Rt.exports).Operation_TreeEdit,aw=(Rt.exports==null?{}:Rt.exports).Operation_TreeStyle,fa=(Rt.exports==null?{}:Rt.exports).JSONElementSimple,Ml=(Rt.exports==null?{}:Rt.exports).JSONElement,D_=(Rt.exports==null?{}:Rt.exports).JSONElement_JSONObject,N_=(Rt.exports==null?{}:Rt.exports).JSONElement_JSONArray,P_=(Rt.exports==null?{}:Rt.exports).JSONElement_Primitive,Yy=(Rt.exports==null?{}:Rt.exports).JSONElement_Text,M_=(Rt.exports==null?{}:Rt.exports).JSONElement_Counter,Gm=(Rt.exports==null?{}:Rt.exports).JSONElement_Tree,sw=(Rt.exports==null?{}:Rt.exports).RHTNode,L_=(Rt.exports==null?{}:Rt.exports).RGANode,ow=(Rt.exports==null?{}:Rt.exports).NodeAttr,Zm=(Rt.exports==null?{}:Rt.exports).TextNode,$_=(Rt.exports==null?{}:Rt.exports).TextNodeID,F_=(Rt.exports==null?{}:Rt.exports).TreeNode,qy=(Rt.exports==null?{}:Rt.exports).TreeNodes,lw=(Rt.exports==null?{}:Rt.exports).TreeNodeID,B_=(Rt.exports==null?{}:Rt.exports).TreePos,TP=(Rt.exports==null?{}:Rt.exports).User,xP=(Rt.exports==null?{}:Rt.exports).Project,U_=(Rt.exports==null?{}:Rt.exports).UpdatableProjectFields,uw=(Rt.exports==null?{}:Rt.exports).UpdatableProjectFields_AuthWebhookMethods,kP=(Rt.exports==null?{}:Rt.exports).DocumentSummary,b1=(Rt.exports==null?{}:Rt.exports).PresenceChange,Xm=(Rt.exports==null?{}:Rt.exports).PresenceChange_ChangeType,cw=(Rt.exports==null?{}:Rt.exports).Presence,dw=(Rt.exports==null?{}:Rt.exports).Checkpoint,y1=(Rt.exports==null?{}:Rt.exports).TextNodePos,z_=(Rt.exports==null?{}:Rt.exports).TimeTicket,j_=(Rt.exports==null?{}:Rt.exports).DocEventBody,H_=(Rt.exports==null?{}:Rt.exports).DocEvent,CP=Object.freeze(Object.defineProperty({__proto__:null,Change:nw,ChangeID:Vy,ChangePack:Bd,Checkpoint:dw,DocEvent:H_,DocEventBody:j_,DocEventType:m1,DocumentSummary:kP,JSONElement:Ml,JSONElementSimple:fa,JSONElement_Counter:M_,JSONElement_JSONArray:N_,JSONElement_JSONObject:D_,JSONElement_Primitive:P_,JSONElement_Text:Yy,JSONElement_Tree:Gm,NodeAttr:ow,Operation:qm,Operation_Add:rw,Operation_Edit:iw,Operation_Increase:g1,Operation_Move:Za,Operation_Remove:Wy,Operation_Select:Bc,Operation_Set:I_,Operation_Style:Qy,Operation_TreeEdit:Yf,Operation_TreeStyle:aw,Presence:cw,PresenceChange:b1,PresenceChange_ChangeType:Xm,Project:xP,RGANode:L_,RHTNode:sw,Snapshot:Ym,TextNode:Zm,TextNodeID:$_,TextNodePos:y1,TimeTicket:z_,TreeNode:F_,TreeNodeID:lw,TreeNodes:qy,TreePos:B_,UpdatableProjectFields:U_,UpdatableProjectFields_AuthWebhookMethods:uw,User:TP,ValueType:hr,default:R_},Symbol.toStringTag,{value:"Module"}));var yr={exports:{}},Xa=yr.exports;Object.defineProperty(Xa,"__esModule",{value:!0});const{proto3:Fa}=pn,{ChangePack:Ud,DocEvent:fw}=R_||CP,_P=Fa.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),hw=Fa.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),vr=Fa.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),AP=Fa.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),RP=Fa.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Ud}]),v1=Fa.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Ud}]),V_=Fa.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Ud},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),IP=Fa.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:Ud}]),DP=Fa.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),Ll=Fa.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:W_,oneof:"body"},{no:2,name:"event",kind:"message",T:fw,oneof:"body"}]),W_=Fa.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),Gy=Fa.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Ud}]),pw=Fa.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Ud}]),Q_=Fa.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Ud},{no:4,name:"push_only",kind:"scalar",T:8}]),Y_=Fa.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Ud}]),Xo=Fa.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),qf=Fa.makeMessageType("yorkie.v1.BroadcastResponse",[]);Xa.ActivateClientRequest=_P,Xa.ActivateClientResponse=hw,Xa.DeactivateClientRequest=vr,Xa.DeactivateClientResponse=AP,Xa.AttachDocumentRequest=RP,Xa.AttachDocumentResponse=v1,Xa.DetachDocumentRequest=V_,Xa.DetachDocumentResponse=IP,Xa.WatchDocumentRequest=DP,Xa.WatchDocumentResponse=Ll,Xa.WatchDocumentResponse_Initialization=W_,Xa.RemoveDocumentRequest=Gy,Xa.RemoveDocumentResponse=pw,Xa.PushPullChangesRequest=Q_,Xa.PushPullChangesResponse=Y_,Xa.BroadcastRequest=Xo,Xa.BroadcastResponse=qf;const Zy=(yr.exports==null?{}:yr.exports).default||yr.exports,q_=(yr.exports==null?{}:yr.exports).ActivateClientRequest,Xy=(yr.exports==null?{}:yr.exports).ActivateClientResponse,G_=(yr.exports==null?{}:yr.exports).DeactivateClientRequest,mw=(yr.exports==null?{}:yr.exports).DeactivateClientResponse,Z_=(yr.exports==null?{}:yr.exports).AttachDocumentRequest,gw=(yr.exports==null?{}:yr.exports).AttachDocumentResponse,bw=(yr.exports==null?{}:yr.exports).DetachDocumentRequest,Gf=(yr.exports==null?{}:yr.exports).DetachDocumentResponse,NP=(yr.exports==null?{}:yr.exports).WatchDocumentRequest,Zf=(yr.exports==null?{}:yr.exports).WatchDocumentResponse,X_=(yr.exports==null?{}:yr.exports).WatchDocumentResponse_Initialization,K_=(yr.exports==null?{}:yr.exports).RemoveDocumentRequest,yw=(yr.exports==null?{}:yr.exports).RemoveDocumentResponse,PP=(yr.exports==null?{}:yr.exports).PushPullChangesRequest,MP=(yr.exports==null?{}:yr.exports).PushPullChangesResponse,LP=(yr.exports==null?{}:yr.exports).BroadcastRequest,J_=(yr.exports==null?{}:yr.exports).BroadcastResponse,eA=Object.freeze(Object.defineProperty({__proto__:null,ActivateClientRequest:q_,ActivateClientResponse:Xy,AttachDocumentRequest:Z_,AttachDocumentResponse:gw,BroadcastRequest:LP,BroadcastResponse:J_,DeactivateClientRequest:G_,DeactivateClientResponse:mw,DetachDocumentRequest:bw,DetachDocumentResponse:Gf,PushPullChangesRequest:PP,PushPullChangesResponse:MP,RemoveDocumentRequest:K_,RemoveDocumentResponse:yw,WatchDocumentRequest:NP,WatchDocumentResponse:Zf,WatchDocumentResponse_Initialization:X_,default:Zy},Symbol.toStringTag,{value:"Module"}));var Km={exports:{}},vw=Km.exports;Object.defineProperty(vw,"__esModule",{value:!0});const{ActivateClientRequest:tA,ActivateClientResponse:wo,AttachDocumentRequest:Uc,AttachDocumentResponse:$P,BroadcastRequest:FP,BroadcastResponse:Ky,DeactivateClientRequest:Jm,DeactivateClientResponse:nA,DetachDocumentRequest:rA,DetachDocumentResponse:BP,PushPullChangesRequest:iA,PushPullChangesResponse:e0,RemoveDocumentRequest:O1,RemoveDocumentResponse:UP,WatchDocumentRequest:aA,WatchDocumentResponse:sA}=Zy||eA,{MethodKind:Cu}=pn,oA={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:tA,O:wo,kind:Cu.Unary},deactivateClient:{name:"DeactivateClient",I:Jm,O:nA,kind:Cu.Unary},attachDocument:{name:"AttachDocument",I:Uc,O:$P,kind:Cu.Unary},detachDocument:{name:"DetachDocument",I:rA,O:BP,kind:Cu.Unary},removeDocument:{name:"RemoveDocument",I:O1,O:UP,kind:Cu.Unary},pushPullChanges:{name:"PushPullChanges",I:iA,O:e0,kind:Cu.Unary},watchDocument:{name:"WatchDocument",I:aA,O:sA,kind:Cu.ServerStreaming},broadcast:{name:"Broadcast",I:FP,O:Ky,kind:Cu.Unary}}};vw.YorkieService=oA,(Km.exports==null?{}:Km.exports).default||Km.exports;const Jy=(Km.exports==null?{}:Km.exports).YorkieService;/** +}`,{label:"class",detail:"definition",type:"keyword"}),Yl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Yl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],zGe=x0e.concat([Yl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Yl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Yl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Yne=new hpe,k0e=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function OT(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const jGe=["FunctionDeclaration"],HGe={FunctionDeclaration:OT("function"),ClassDeclaration:OT("class"),ClassExpression:()=>!0,EnumDeclaration:OT("constant"),TypeAliasDeclaration:OT("type"),NamespaceDeclaration:OT("namespace"),VariableDefinition(e,t){e.matchContext(jGe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function C0e(e,t){let n=Yne.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(Fi.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=HGe[s.name];if(o&&o(s,a)||k0e.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of C0e(e,s.node))r.push(o);return!1}}),Yne.set(t,r),r}const qne=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,_0e=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function VGe(e){let t=zi(e.state).resolveInner(e.pos,-1);if(_0e.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&qne.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)k0e.has(i.name)&&(r=r.concat(C0e(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:qne}}const Wh=$S.define({name:"javascript",parser:UGe.configure({props:[dC.add({IfStatement:g5({except:/^\s*({|else\b)/}),TryStatement:g5({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:eVe,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:JHe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":g5({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),gE.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Spe,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),A0e={test:e=>/^JSX/.test(e.name),facet:wj({commentTokens:{block:{open:"{/*",close:"*/}"}}})},R0e=Wh.configure({dialect:"ts"},"typescript"),I0e=Wh.configure({dialect:"jsx",props:[Tj.add(e=>e.isTop?[A0e]:void 0)]}),D0e=Wh.configure({dialect:"jsx ts",props:[Tj.add(e=>e.isTop?[A0e]:void 0)]},"typescript");let N0e=e=>({label:e,type:"keyword"});const P0e="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(N0e),WGe=P0e.concat(["declare","implements","private","protected","public"].map(N0e));function QGe(e={}){let t=e.jsx?e.typescript?D0e:I0e:e.typescript?R0e:Wh,n=e.typescript?zGe.concat(WGe):x0e.concat(P0e);return new Hx(t,[Wh.data.of({autocomplete:gQe(_0e,wme(n))}),Wh.data.of({autocomplete:VGe}),e.jsx?GGe:[]])}function YGe(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function Gne(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const qGe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),GGe=hn.inputHandler.of((e,t,n,r,i)=>{if((qGe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Wh.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var c;let{head:d}=l,h=zi(s).resolveInner(d-1,-1),p;if(h.name=="JSXStartTag"&&(h=h.parent),!(s.doc.sliceString(d-1,d)!=r||h.name=="JSXAttributeValue"&&h.to>d)){if(r==">"&&h.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:""}};if(r=="/"&&h.name=="JSXStartCloseTag"){let b=h.parent,v=b.parent;if(v&&b.from==d-2&&((p=Gne(s.doc,v.firstChild,d))||((c=v.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let S=`${p}>`;return{range:wt.cursor(d+S.length,-1),changes:{from:d,insert:S}}}}else if(r==">"){let b=YGe(h);if(b&&!/^\/?>|^<\//.test(s.doc.sliceString(d,d+2))&&(p=Gne(s.doc,b,d)))return{range:l,changes:{from:d,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),ST=["_blank","_self","_top","_parent"],EM=["ascii","utf-8","utf-16","latin1","latin1"],wM=["get","post","put","delete"],TM=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],ju=["true","false"],Mn={},ZGe={a:{attrs:{href:null,ping:null,type:null,media:null,target:ST,hreflang:null}},abbr:Mn,address:Mn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Mn,aside:Mn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Mn,base:{attrs:{href:null,target:ST}},bdi:Mn,bdo:Mn,blockquote:{attrs:{cite:null}},body:Mn,br:Mn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:TM,formmethod:wM,formnovalidate:["novalidate"],formtarget:ST,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Mn,center:Mn,cite:Mn,code:Mn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Mn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Mn,div:Mn,dl:Mn,dt:Mn,em:Mn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Mn,figure:Mn,footer:Mn,form:{attrs:{action:null,name:null,"accept-charset":EM,autocomplete:["on","off"],enctype:TM,method:wM,novalidate:["novalidate"],target:ST}},h1:Mn,h2:Mn,h3:Mn,h4:Mn,h5:Mn,h6:Mn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Mn,hgroup:Mn,hr:Mn,html:{attrs:{manifest:null}},i:Mn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:TM,formmethod:wM,formnovalidate:["novalidate"],formtarget:ST,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Mn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Mn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Mn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:EM,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Mn,noscript:Mn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Mn,param:{attrs:{name:null,value:null}},pre:Mn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Mn,rt:Mn,ruby:Mn,samp:Mn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:EM}},section:Mn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Mn,source:{attrs:{src:null,type:null,media:null}},span:Mn,strong:Mn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Mn,summary:Mn,sup:Mn,table:Mn,tbody:Mn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Mn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Mn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Mn,time:{attrs:{datetime:null}},title:Mn,tr:Mn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Mn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Mn},M0e={accesskey:null,class:null,contenteditable:ju,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:ju,autocorrect:ju,autocapitalize:ju,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":ju,"aria-autocomplete":["inline","list","both","none"],"aria-busy":ju,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":ju,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":ju,"aria-hidden":ju,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":ju,"aria-multiselectable":ju,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":ju,"aria-relevant":null,"aria-required":ju,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},L0e="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of L0e)M0e[e]=null;let Kx=class{constructor(t,n){this.tags=Object.assign(Object.assign({},ZGe),t),this.globalAttrs=Object.assign(Object.assign({},M0e),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Kx.default=new Kx;function HS(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function VS(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function $0e(e,t,n){let r=n.tags[HS(e,VS(t))];return(r==null?void 0:r.children)||n.allTags}function Qj(e,t){let n=[];for(let r=VS(t);r&&!r.type.isTop;r=VS(r.parent)){let i=HS(e,r);if(i&&r.lastChild.name=="CloseTag")break;i&&n.indexOf(i)<0&&(t.name=="EndTag"||t.from>=r.firstChild.to)&&n.push(i)}return n}const F0e=/^[:\-\.\w\u00b7-\uffff]*$/;function Zne(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=VS(n,!0);return{from:r,to:i,options:$0e(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(Qj(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Xne(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:Qj(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:F0e}}function XGe(e,t,n,r){let i=[],a=0;for(let s of $0e(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of Qj(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function KGe(e,t,n,r,i){let a=VS(n),s=a?t.tags[HS(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(c=>({label:c,type:"property"})),validFor:F0e}}function JGe(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let c=e.sliceDoc(s.from,s.to),d=t.globalAttrs[c];if(!d){let h=VS(n),p=h?t.tags[HS(e.doc,h)]:null;d=(p==null?void 0:p.attrs)&&p.attrs[c]}if(d){let h=e.sliceDoc(r,i).toLowerCase(),p='"',b='"';/^['"]/.test(h)?(l=h[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",b=e.sliceDoc(i,i+1)==h[0]?"":h[0],h=h.slice(1),r++):l=/^[^\s<>='"]*$/;for(let v of d)o.push({label:v,apply:p+v+b,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function B0e(e,t){let{state:n,pos:r}=t,i=zi(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.fromB0e(r,i)}const nZe=Wh.parser.configure({top:"SingleExpression"}),U0e=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:R0e.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:I0e.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:D0e.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:nZe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Wh.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:mI.parser}],z0e=[{name:"style",parser:mI.parser.configure({top:"Styles"})}].concat(L0e.map(e=>({name:e,parser:Wh.parser}))),j0e=$S.define({name:"html",parser:Uqe.configure({props:[dC.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),v5=j0e.configure({wrap:O0e(U0e,z0e)});function rZe(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=O0e((e.nestedLanguages||[]).concat(U0e),(e.nestedAttributes||[]).concat(z0e)));let r=n?j0e.configure({wrap:n,dialect:t}):t?v5.configure({dialect:t}):v5;return new Hx(r,[v5.data.of({autocomplete:tZe(e)}),e.autoCloseTags!==!1?iZe:[],QGe().support,mGe().support])}const Kne=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),iZe=hn.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!v5.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var c,d,h;let p=s.doc.sliceString(l.from-1,l.to)==r,{head:b}=l,v=zi(s).resolveInner(b-1,-1),S;if((v.name=="TagName"||v.name=="StartTag")&&(v=v.parent),p&&r==">"&&v.name=="OpenTag"){if(((d=(c=v.parent)===null||c===void 0?void 0:c.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(S=HS(s.doc,v.parent,b))&&!Kne.has(S)){let w=b+(s.doc.sliceString(b,b+1)===">"?1:0),T=``;return{range:l,changes:{from:b,to:w,insert:T}}}}else if(p&&r=="/"&&v.name=="IncompleteCloseTag"){let w=v.parent;if(v.from==b-2&&((h=w.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(S=HS(s.doc,w,b))&&!Kne.has(S)){let T=b+(s.doc.sliceString(b,b+1)===">"?1:0),x=`${S}>`;return{range:wt.cursor(b+x.length,-1),changes:{from:b,to:T,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),H0e=wj({commentTokens:{block:{open:""}}}),V0e=new lr,W0e=MYe.configure({props:[gE.add(e=>!e.is("Block")||e.is("Document")||SF(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),V0e.add(SF),dC.add({Document:()=>null}),vb.add({Document:H0e})]});function SF(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function aZe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=SF(r.type))!=null&&i<=t)break;n=r}return n.to}const sZe=Ope.of((e,t,n)=>{for(let r=zi(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function Yj(e){return new od(H0e,e,[sZe],"markdown")}const oZe=Yj(W0e),lZe=W0e.configure([QYe,qYe,YYe,GYe,{props:[gE.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),Q0e=Yj(lZe);function uZe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=ZR.matchLanguageName(e,n,!0),r instanceof ZR)return r.support?r.support.language.parser:jx.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class e3{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+q0e(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function Y0e(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new e3(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new e3(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let c=s[3],d=s[0].length;c.length>=4&&(c=c.slice(0,c.length-4),d-=4),r.push(new e3(a.parent,l,l+d,s[1],c,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let c=s[4],d=s[0].length;c.length>4&&(c=c.slice(0,c.length-4),d-=4);let h=s[2];s[3]&&(h+=s[3].replace(/[xX]/," ")),r.push(new e3(a.parent,l,l+d,s[1],c,h,a))}}return r}function q0e(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function xM(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=q0e(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function qj(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(cC)!=" ")return e;let r=Ef(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const cZe=({state:e,dispatch:t})=>{let n=zi(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!Q0e.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),c=Y0e(n.resolveInner(o,-1),r);for(;c.length&&c[c.length-1].from>o-l.from;)c.pop();if(!c.length)return i={range:s};let d=c[c.length-1];if(d.to-d.spaceAfter.length>o-l.from)return i={range:s};let h=o>=d.to-d.spaceAfter.length&&!/\S/.test(l.text.slice(d.to));if(d.item&&h){let w=d.node.firstChild,T=d.node.getChild("ListItem","ListItem");if(w.to>=o||T&&T.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=c.length>1?c[c.length-2]:null,k,C="";x&&x.item?(k=l.from+x.from,C=x.marker(r,1)):k=l.from+(x?x.to:0);let I=[{from:k,to:o,insert:C}];return d.node.name=="OrderedList"&&xM(d.item,r,I,-2),x&&x.node.name=="OrderedList"&&xM(x.item,r,I),{range:wt.cursor(k+C.length),changes:I}}else{let x=ere(c,e,l);return{range:wt.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(d.node.name=="Blockquote"&&h&&l.from){let w=r.lineAt(l.from-1),T=/>\s*$/.exec(w.text);if(T&&T.index==d.from){let x=e.changes([{from:w.from+T.index,to:w.to},{from:l.from+d.from,to:l.to}]);return{range:s.map(x),changes:x}}}let p=[];d.node.name=="OrderedList"&&xM(d.item,r,p);let b=d.item&&d.item.from]*/.exec(l.text)[0].length>=d.to)for(let w=0,T=c.length-1;w<=T;w++)v+=w==T&&!b?c[w].marker(r,1):c[w].blank(wl.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return v=qj(v,e),dZe(d.node,e.doc)&&(v=ere(c,e,l)+e.lineBreak+v),p.push({from:S,to:o,insert:e.lineBreak+v}),{range:wt.cursor(S+v.length+1),changes:p}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function Jne(e){return e.name=="QuoteMark"||e.name=="ListMark"}function dZe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=zi(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&Q0e.isActiveAt(e,a.from)){let l=o.lineAt(s),c=Y0e(fZe(n,s),o);if(c.length){let d=c[c.length-1],h=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(s-l.from>h&&!/\S/.test(l.text.slice(h,s-l.from)))return{range:wt.cursor(l.from+h),changes:{from:l.from+h,to:s}};if(s-l.from==h&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let p=l.from+d.from;if(d.item&&d.node.fromu in g?i(g,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[u]=f,s=(g,u,f)=>(a(g,typeof u!="symbol"?u+"":u,f),f),o;(function(g){g[g.Canceled=1]="Canceled",g[g.Unknown=2]="Unknown",g[g.InvalidArgument=3]="InvalidArgument",g[g.DeadlineExceeded=4]="DeadlineExceeded",g[g.NotFound=5]="NotFound",g[g.AlreadyExists=6]="AlreadyExists",g[g.PermissionDenied=7]="PermissionDenied",g[g.ResourceExhausted=8]="ResourceExhausted",g[g.FailedPrecondition=9]="FailedPrecondition",g[g.Aborted=10]="Aborted",g[g.OutOfRange=11]="OutOfRange",g[g.Unimplemented=12]="Unimplemented",g[g.Internal=13]="Internal",g[g.Unavailable=14]="Unavailable",g[g.DataLoss=15]="DataLoss",g[g.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(g,u){if(!g)throw new Error(u)}const c=34028234663852886e22,d=-34028234663852886e22,h=4294967295,p=2147483647,b=-2147483648;function v(g){if(typeof g!="number")throw new Error("invalid int 32: "+typeof g);if(!Number.isInteger(g)||g>p||gh||g<0)throw new Error("invalid uint 32: "+g)}function w(g){if(typeof g!="number")throw new Error("invalid float 32: "+typeof g);if(Number.isFinite(g)&&(g>c||g({no:E.no,name:E.name,localName:g[E.no]})))}function C(g,u,f){const y=Object.create(null),E=Object.create(null),N=[];for(const B of u){const Z=_(B);N.push(Z),y[B.name]=Z,E[B.no]=Z}return{typeName:g,values:N,findName(B){return y[B]},findNumber(B){return E[B]}}}function I(g,u,f){const y={};for(const E of u){const N=_(E);y[N.localName]=N.no,y[N.no]=N.localName}return k(y,g,u),y}function _(g){return"localName"in g?g:Object.assign(Object.assign({},g),{localName:g.name})}class A{equals(u){return this.getType().runtime.util.equals(this.getType(),this,u)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(u,f){const y=this.getType(),E=y.runtime.bin,N=E.makeReadOptions(f);return E.readMessage(this,N.readerFactory(u),u.byteLength,N),this}fromJson(u,f){const y=this.getType(),E=y.runtime.json,N=E.makeReadOptions(f);return E.readMessage(y,u,N,this),this}fromJsonString(u,f){let y;try{y=JSON.parse(u)}catch(E){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${E instanceof Error?E.message:String(E)}`)}return this.fromJson(y,f)}toBinary(u){const f=this.getType(),y=f.runtime.bin,E=y.makeWriteOptions(u),N=E.writerFactory();return y.writeMessage(this,N,E),N.finish()}toJson(u){const f=this.getType(),y=f.runtime.json,E=y.makeWriteOptions(u);return y.writeMessage(this,E)}toJsonString(u){var f;const y=this.toJson(u);return JSON.stringify(y,null,(f=u==null?void 0:u.prettySpaces)!==null&&f!==void 0?f:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function U(g,u,f,y){var E;const N=(E=y==null?void 0:y.localName)!==null&&E!==void 0?E:u.substring(u.lastIndexOf(".")+1),B={[N]:function(Z){g.util.initFields(this),g.util.initPartial(Z,this)}}[N];return Object.setPrototypeOf(B.prototype,new A),Object.assign(B,{runtime:g,typeName:u,fields:g.util.newFieldList(f),fromBinary(Z,re){return new B().fromBinary(Z,re)},fromJson(Z,re){return new B().fromJson(Z,re)},fromJsonString(Z,re){return new B().fromJsonString(Z,re)},equals(Z,re){return g.util.equals(B,Z,re)}}),B}function F(g,u,f,y){return{syntax:g,json:u,bin:f,util:y,makeMessageType(E,N,B){return U(this,E,N,B)},makeEnum:I,makeEnumType:C,getEnumType:x}}var M;(function(g){g[g.DOUBLE=1]="DOUBLE",g[g.FLOAT=2]="FLOAT",g[g.INT64=3]="INT64",g[g.UINT64=4]="UINT64",g[g.INT32=5]="INT32",g[g.FIXED64=6]="FIXED64",g[g.FIXED32=7]="FIXED32",g[g.BOOL=8]="BOOL",g[g.STRING=9]="STRING",g[g.BYTES=12]="BYTES",g[g.UINT32=13]="UINT32",g[g.SFIXED32=15]="SFIXED32",g[g.SFIXED64=16]="SFIXED64",g[g.SINT32=17]="SINT32",g[g.SINT64=18]="SINT64"})(M||(M={}));var V;(function(g){g[g.BIGINT=0]="BIGINT",g[g.STRING=1]="STRING"})(V||(V={}));function Q(){let g=0,u=0;for(let y=0;y<28;y+=7){let E=this.buf[this.pos++];if(g|=(E&127)<>4,!(f&128))return this.assertBounds(),[g,u];for(let y=3;y<=31;y+=7){let E=this.buf[this.pos++];if(u|=(E&127)<>>N,Z=!(!(B>>>7)&&u==0),re=(Z?B|128:B)&255;if(f.push(re),!Z)return}const y=g>>>28&15|(u&7)<<4,E=!!(u>>3);if(f.push((E?y|128:y)&255),!!E){for(let N=3;N<31;N=N+7){const B=u>>>N,Z=!!(B>>>7),re=(Z?B|128:B)&255;if(f.push(re),!Z)return}f.push(u>>>31&1)}}const Y=4294967296;function W(g){const u=g[0]==="-";u&&(g=g.slice(1));const f=1e6;let y=0,E=0;function N(B,Z){const re=Number(g.slice(B,Z));E*=f,y=y*f+re,y>=Y&&(E=E+(y/Y|0),y=y%Y)}return N(-24,-18),N(-18,-12),N(-12,-6),N(-6),u?j(y,E):ne(y,E)}function ee(g,u){let f=ne(g,u);const y=f.hi&2147483648;y&&(f=j(f.lo,f.hi));const E=J(f.lo,f.hi);return y?"-"+E:E}function J(g,u){if({lo:g,hi:u}=K(g,u),u<=2097151)return String(Y*u+g);const f=g&16777215,y=(g>>>24|u<<8)&16777215,E=u>>16&65535;let N=f+y*6777216+E*6710656,B=y+E*8147497,Z=E*2;const re=1e7;return N>=re&&(B+=Math.floor(N/re),N%=re),B>=re&&(Z+=Math.floor(B/re),B%=re),Z.toString()+Ce(B)+Ce(N)}function K(g,u){return{lo:g>>>0,hi:u>>>0}}function ne(g,u){return{lo:g|0,hi:u|0}}function j(g,u){return u=~u,g?g=~g+1:u+=1,ne(g,u)}const Ce=g=>{const u=String(g);return"0000000".slice(u.length)+u};function ye(g,u){if(g>=0){for(;g>127;)u.push(g&127|128),g=g>>>7;u.push(g)}else{for(let f=0;f<9;f++)u.push(g&127|128),g=g>>7;u.push(1)}}function te(){let g=this.buf[this.pos++],u=g&127;if(!(g&128))return this.assertBounds(),u;if(g=this.buf[this.pos++],u|=(g&127)<<7,!(g&128))return this.assertBounds(),u;if(g=this.buf[this.pos++],u|=(g&127)<<14,!(g&128))return this.assertBounds(),u;if(g=this.buf[this.pos++],u|=(g&127)<<21,!(g&128))return this.assertBounds(),u;g=this.buf[this.pos++],u|=(g&15)<<28;for(let f=5;g&128&&f<10;f++)g=this.buf[this.pos++];if(g&128)throw new Error("invalid varint");return this.assertBounds(),u>>>0}function ve(){const g=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof g.getBigInt64=="function"&&typeof g.getBigUint64=="function"&&typeof g.setBigInt64=="function"&&typeof g.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const E=BigInt("-9223372036854775808"),N=BigInt("9223372036854775807"),B=BigInt("0"),Z=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(re){const se=typeof re=="bigint"?re:BigInt(re);if(se>N||seZ||sel(/^-?[0-9]+$/.test(E),`int64 invalid: ${E}`),y=E=>l(/^[0-9]+$/.test(E),`uint64 invalid: ${E}`);return{zero:"0",supported:!1,parse(E){return typeof E!="string"&&(E=E.toString()),f(E),E},uParse(E){return typeof E!="string"&&(E=E.toString()),y(E),E},enc(E){return typeof E!="string"&&(E=E.toString()),f(E),W(E)},uEnc(E){return typeof E!="string"&&(E=E.toString()),y(E),W(E)},dec(E,N){return ee(E,N)},uDec(E,N){return J(E,N)}}}const Se=ve();var he;(function(g){g[g.Varint=0]="Varint",g[g.Bit64=1]="Bit64",g[g.LengthDelimited=2]="LengthDelimited",g[g.StartGroup=3]="StartGroup",g[g.EndGroup=4]="EndGroup",g[g.Bit32=5]="Bit32"})(he||(he={}));class Pe{constructor(u){this.stack=[],this.textEncoder=u??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let u=0;for(let E=0;E>>0)}raw(u){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(u),this}uint32(u){for(S(u);u>127;)this.buf.push(u&127|128),u=u>>>7;return this.buf.push(u),this}int32(u){return v(u),ye(u,this.buf),this}bool(u){return this.buf.push(u?1:0),this}bytes(u){return this.uint32(u.byteLength),this.raw(u)}string(u){let f=this.textEncoder.encode(u);return this.uint32(f.byteLength),this.raw(f)}float(u){w(u);let f=new Uint8Array(4);return new DataView(f.buffer).setFloat32(0,u,!0),this.raw(f)}double(u){let f=new Uint8Array(8);return new DataView(f.buffer).setFloat64(0,u,!0),this.raw(f)}fixed32(u){S(u);let f=new Uint8Array(4);return new DataView(f.buffer).setUint32(0,u,!0),this.raw(f)}sfixed32(u){v(u);let f=new Uint8Array(4);return new DataView(f.buffer).setInt32(0,u,!0),this.raw(f)}sint32(u){return v(u),u=(u<<1^u>>31)>>>0,ye(u,this.buf),this}sfixed64(u){let f=new Uint8Array(8),y=new DataView(f.buffer),E=Se.enc(u);return y.setInt32(0,E.lo,!0),y.setInt32(4,E.hi,!0),this.raw(f)}fixed64(u){let f=new Uint8Array(8),y=new DataView(f.buffer),E=Se.uEnc(u);return y.setInt32(0,E.lo,!0),y.setInt32(4,E.hi,!0),this.raw(f)}int64(u){let f=Se.enc(u);return X(f.lo,f.hi,this.buf),this}sint64(u){let f=Se.enc(u),y=f.hi>>31,E=f.lo<<1^y,N=(f.hi<<1|f.lo>>>31)^y;return X(E,N,this.buf),this}uint64(u){let f=Se.uEnc(u);return X(f.lo,f.hi,this.buf),this}}class Me{constructor(u,f){this.varint64=Q,this.uint32=te,this.buf=u,this.len=u.length,this.pos=0,this.view=new DataView(u.buffer,u.byteOffset,u.byteLength),this.textDecoder=f??new TextDecoder}tag(){let u=this.uint32(),f=u>>>3,y=u&7;if(f<=0||y<0||y>5)throw new Error("illegal tag: field no "+f+" wire type "+y);return[f,y]}skip(u){let f=this.pos;switch(u){case he.Varint:for(;this.buf[this.pos++]&128;);break;case he.Bit64:this.pos+=4;case he.Bit32:this.pos+=4;break;case he.LengthDelimited:let y=this.uint32();this.pos+=y;break;case he.StartGroup:let E;for(;(E=this.tag()[1])!==he.EndGroup;)this.skip(E);break;default:throw new Error("cant skip wire type "+u)}return this.assertBounds(),this.buf.subarray(f,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let u=this.uint32();return u>>>1^-(u&1)}int64(){return Se.dec(...this.varint64())}uint64(){return Se.uDec(...this.varint64())}sint64(){let[u,f]=this.varint64(),y=-(u&1);return u=(u>>>1|(f&1)<<31)^y,f=f>>>1^y,Se.dec(u,f)}bool(){let[u,f]=this.varint64();return u!==0||f!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Se.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Se.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let u=this.uint32(),f=this.pos;return this.pos+=u,this.assertBounds(),this.buf.subarray(f,f+u)}string(){return this.textDecoder.decode(this.bytes())}}function Ze(g,u){return u instanceof A||!g.fieldWrapper?u:g.fieldWrapper.wrapField(u)}function ot(g){if(g.fieldKind==="message"&&!g.repeated&&g.oneof==null)return Qe[g.message.typeName]}const Qe={"google.protobuf.DoubleValue":M.DOUBLE,"google.protobuf.FloatValue":M.FLOAT,"google.protobuf.Int64Value":M.INT64,"google.protobuf.UInt64Value":M.UINT64,"google.protobuf.Int32Value":M.INT32,"google.protobuf.UInt32Value":M.UINT32,"google.protobuf.BoolValue":M.BOOL,"google.protobuf.StringValue":M.STRING,"google.protobuf.BytesValue":M.BYTES};function Je(g,u,f){if(u===f)return!0;if(g==M.BYTES){if(!(u instanceof Uint8Array)||!(f instanceof Uint8Array)||u.length!==f.length)return!1;for(let y=0;ynew Me(g)},_t={writeUnknownFields:!0,writerFactory:()=>new Pe};function lt(g){return g?Object.assign(Object.assign({},ht),g):ht}function ge(g){return g?Object.assign(Object.assign({},_t),g):_t}function ue(){return{makeReadOptions:lt,makeWriteOptions:ge,listUnknownFields(g){var u;return(u=g[tt])!==null&&u!==void 0?u:[]},discardUnknownFields(g){delete g[tt]},writeUnknownFields(g,u){const y=g[tt];if(y)for(const E of y)u.tag(E.no,E.wireType).raw(E.data)},onUnknownField(g,u,f,y){const E=g;Array.isArray(E[tt])||(E[tt]=[]),E[tt].push({no:u,wireType:f,data:y})},readMessage(g,u,f,y,E){const N=g.getType(),B=E?u.len:u.pos+f;let Z,re;for(;u.pos0&&(Wt=et),mt){let yi=xe[Be];if(re==he.LengthDelimited&&ft!=M.STRING&&ft!=M.BYTES){let jn=u.uint32()+u.pos;for(;u.pos>4,B=N,E=2;break;case 2:f[y++]=(B&15)<<4|(N&60)>>2,B=N,E=3;break;case 3:f[y++]=(B&3)<<6|N,E=0;break}}if(E==1)throw Error("invalid base64 string.");return f.subarray(0,y)},enc(g){let u="",f=0,y,E=0;for(let N=0;N>2],E=(y&3)<<4,f=1;break;case 1:u+=Ot[E|y>>4],E=(y&15)<<2,f=2;break;case 2:u+=Ot[E|y>>6],u+=Ot[y&63],f=0;break}return f&&(u+=Ot[E],u+="=",f==1&&(u+="=")),u}},St={ignoreUnknownFields:!1},Kt={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function pt(g){return g?Object.assign(Object.assign({},St),g):St}function At(g){return g?Object.assign(Object.assign({},Kt),g):Kt}function en(g){const u=g(ur,Qr);return{makeReadOptions:pt,makeWriteOptions:At,readMessage(f,y,E,N){if(y==null||Array.isArray(y)||typeof y!="object")throw new Error(`cannot decode message ${f.typeName} from JSON: ${this.debug(y)}`);N=N??new f;const B={};for(const[Z,re]of Object.entries(y)){const se=f.fields.findJsonName(Z);if(!se){if(!E.ignoreUnknownFields)throw new Error(`cannot decode message ${f.typeName} from JSON: key "${Z}" is unknown`);continue}let xe=se.localName,mt=N;if(se.oneof){if(re===null&&se.kind=="scalar")continue;const Be=B[se.oneof.localName];if(Be)throw new Error(`cannot decode message ${f.typeName} from JSON: multiple keys for oneof "${se.oneof.name}" present: "${Be}", "${Z}"`);B[se.oneof.localName]=Z,mt=mt[se.oneof.localName]={case:xe},xe="value"}if(se.repeated){if(re===null)continue;if(!Array.isArray(re))throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`);const Be=mt[xe];for(const ft of re){if(ft===null)throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(ft)}`);let Wt;switch(se.kind){case"message":Wt=se.T.fromJson(ft,E);break;case"enum":if(Wt=Qn(se.T,ft,E.ignoreUnknownFields),Wt===void 0)continue;break;case"scalar":try{Wt=$n(se.T,ft,se.L)}catch(mn){let Sn=`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(ft)}`;throw mn instanceof Error&&mn.message.length>0&&(Sn+=`: ${mn.message}`),new Error(Sn)}break}Be.push(Wt)}}else if(se.kind=="map"){if(re===null)continue;if(Array.isArray(re)||typeof re!="object")throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`);const Be=mt[xe];for(const[ft,Wt]of Object.entries(re)){if(Wt===null)throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: map value null`);let mn;switch(se.V.kind){case"message":mn=se.V.T.fromJson(Wt,E);break;case"enum":if(mn=Qn(se.V.T,Wt,E.ignoreUnknownFields),mn===void 0)continue;break;case"scalar":try{mn=$n(se.V.T,Wt,V.BIGINT)}catch(Sn){let cr=`cannot decode map value for field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`;throw Sn instanceof Error&&Sn.message.length>0&&(cr+=`: ${Sn.message}`),new Error(cr)}break}try{Be[$n(se.K,se.K==M.BOOL?ft=="true"?!0:ft=="false"?!1:ft:ft,V.BIGINT).toString()]=mn}catch(Sn){let cr=`cannot decode map key for field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`;throw Sn instanceof Error&&Sn.message.length>0&&(cr+=`: ${Sn.message}`),new Error(cr)}}}else switch(se.kind){case"message":const Be=se.T;if(re===null&&Be.typeName!="google.protobuf.Value"){if(se.oneof)throw new Error(`cannot decode field ${f.typeName}.${se.name} from JSON: null is invalid for oneof field "${Z}"`);continue}mt[xe]instanceof A?mt[xe].fromJson(re,E):(mt[xe]=Be.fromJson(re,E),Be.fieldWrapper&&!se.oneof&&(mt[xe]=Be.fieldWrapper.unwrapField(mt[xe])));break;case"enum":const ft=Qn(se.T,re,E.ignoreUnknownFields);ft!==void 0&&(mt[xe]=ft);break;case"scalar":try{mt[xe]=$n(se.T,re,se.L)}catch(Wt){let mn=`cannot decode field ${f.typeName}.${se.name} from JSON: ${this.debug(re)}`;throw Wt instanceof Error&&Wt.message.length>0&&(mn+=`: ${Wt.message}`),new Error(mn)}break}}return N},writeMessage(f,y){const E=f.getType(),N={};let B;try{for(const Z of E.fields.byMember()){let re;if(Z.kind=="oneof"){const se=f[Z.localName];if(se.value===void 0)continue;if(B=Z.findField(se.case),!B)throw"oneof case not found: "+se.case;re=u(B,se.value,y)}else B=Z,re=u(B,f[B.localName],y);re!==void 0&&(N[y.useProtoFieldName?B.name:B.jsonName]=re)}}catch(Z){const re=B?`cannot encode field ${E.typeName}.${B.name} to JSON`:`cannot encode message ${E.typeName} to JSON`,se=Z instanceof Error?Z.message:String(Z);throw new Error(re+(se.length>0?`: ${se}`:""))}return N},readScalar:$n,writeScalar:Qr,debug:Dn}}function Dn(g){if(g===null)return"null";switch(typeof g){case"object":return Array.isArray(g)?"array":"object";case"string":return g.length>100?"string":`"${g.split('"').join('\\"')}"`;default:return String(g)}}function $n(g,u,f){switch(g){case M.DOUBLE:case M.FLOAT:if(u===null)return 0;if(u==="NaN")return Number.NaN;if(u==="Infinity")return Number.POSITIVE_INFINITY;if(u==="-Infinity")return Number.NEGATIVE_INFINITY;if(u===""||typeof u=="string"&&u.trim().length!==u.length||typeof u!="string"&&typeof u!="number")break;const y=Number(u);if(Number.isNaN(y)||!Number.isFinite(y))break;return g==M.FLOAT&&w(y),y;case M.INT32:case M.FIXED32:case M.SFIXED32:case M.SINT32:case M.UINT32:if(u===null)return 0;let E;if(typeof u=="number"?E=u:typeof u=="string"&&u.length>0&&u.trim().length===u.length&&(E=Number(u)),E===void 0)break;return g==M.UINT32?S(E):v(E),E;case M.INT64:case M.SFIXED64:case M.SINT64:if(u===null)return Se.zero;if(typeof u!="number"&&typeof u!="string")break;const N=Se.parse(u);return f?N.toString():N;case M.FIXED64:case M.UINT64:if(u===null)return Se.zero;if(typeof u!="number"&&typeof u!="string")break;const B=Se.uParse(u);return f?B.toString():B;case M.BOOL:if(u===null)return!1;if(typeof u!="boolean")break;return u;case M.STRING:if(u===null)return"";if(typeof u!="string")break;try{encodeURIComponent(u)}catch{throw new Error("invalid UTF8")}return u;case M.BYTES:if(u===null||u==="")return new Uint8Array(0);if(typeof u!="string")break;return Xt.dec(u)}throw new Error}function Qn(g,u,f){if(u===null)return 0;switch(typeof u){case"number":if(Number.isInteger(u))return u;break;case"string":const y=g.findName(u);if(y||f)return y==null?void 0:y.no;break}throw new Error(`cannot decode enum ${g.typeName} from JSON: ${Dn(u)}`)}function ur(g,u,f,y){var E;if(u===void 0)return u;if(u===0&&!f)return;if(y)return u;if(g.typeName=="google.protobuf.NullValue")return null;const N=g.findNumber(u);return(E=N==null?void 0:N.name)!==null&&E!==void 0?E:u}function Qr(g,u,f){if(u!==void 0)switch(g){case M.INT32:case M.SFIXED32:case M.SINT32:case M.FIXED32:case M.UINT32:return l(typeof u=="number"),u!=0||f?u:void 0;case M.FLOAT:case M.DOUBLE:return l(typeof u=="number"),Number.isNaN(u)?"NaN":u===Number.POSITIVE_INFINITY?"Infinity":u===Number.NEGATIVE_INFINITY?"-Infinity":u!==0||f?u:void 0;case M.STRING:return l(typeof u=="string"),u.length>0||f?u:void 0;case M.BOOL:return l(typeof u=="boolean"),u||f?u:void 0;case M.UINT64:case M.FIXED64:case M.INT64:case M.SFIXED64:case M.SINT64:return l(typeof u=="bigint"||typeof u=="string"||typeof u=="number"),f||u!=0?u.toString(10):void 0;case M.BYTES:return l(u instanceof Uint8Array),f||u.byteLength>0?Xt.enc(u):void 0}}function $e(){return en((g,u)=>function(y,E,N){if(y.kind=="map"){const B={};switch(y.V.kind){case"scalar":for(const[re,se]of Object.entries(E)){const xe=u(y.V.T,se,!0);l(xe!==void 0),B[re.toString()]=xe}break;case"message":for(const[re,se]of Object.entries(E))B[re.toString()]=se.toJson(N);break;case"enum":const Z=y.V.T;for(const[re,se]of Object.entries(E)){l(se===void 0||typeof se=="number");const xe=g(Z,se,!0,N.enumAsInteger);l(xe!==void 0),B[re.toString()]=xe}break}return N.emitDefaultValues||Object.keys(B).length>0?B:void 0}else if(y.repeated){const B=[];switch(y.kind){case"scalar":for(let Z=0;Z0?B:void 0}else switch(y.kind){case"scalar":return u(y.T,E,!!y.oneof||y.opt||N.emitDefaultValues);case"enum":return g(y.T,E,!!y.oneof||y.opt||N.emitDefaultValues,N.enumAsInteger);case"message":return E!==void 0?Ze(y.T,E).toJson(N):void 0}})}function Ve(){return{setEnumType:k,initPartial(g,u){if(g===void 0)return;const f=u.getType();for(const y of f.fields.byMember()){const E=y.localName,N=u,B=g;if(B[E]!==void 0)switch(y.kind){case"oneof":const Z=B[E].case;if(Z===void 0)continue;const re=y.findField(Z);let se=B[E].value;re&&re.kind=="message"&&!(se instanceof re.T)?se=new re.T(se):re&&re.kind==="scalar"&&re.T===M.BYTES&&(se=Nt(se)),N[E]={case:Z,value:se};break;case"scalar":case"enum":let xe=B[E];y.T===M.BYTES&&(xe=y.repeated?xe.map(Nt):Nt(xe)),N[E]=xe;break;case"map":switch(y.V.kind){case"scalar":case"enum":if(y.V.T===M.BYTES)for(const[ft,Wt]of Object.entries(B[E]))N[E][ft]=Nt(Wt);else Object.assign(N[E],B[E]);break;case"message":const Be=y.V.T;for(const ft of Object.keys(B[E])){let Wt=B[E][ft];Be.fieldWrapper||(Wt=new Be(Wt)),N[E][ft]=Wt}break}break;case"message":const mt=y.T;if(y.repeated)N[E]=B[E].map(Be=>Be instanceof mt?Be:new mt(Be));else if(B[E]!==void 0){const Be=B[E];mt.fieldWrapper?mt.typeName==="google.protobuf.BytesValue"?N[E]=Nt(Be):N[E]=Be:N[E]=Be instanceof mt?Be:new mt(Be)}break}}},equals(g,u,f){return u===f?!0:!u||!f?!1:g.fields.byMember().every(y=>{const E=u[y.localName],N=f[y.localName];if(y.repeated){if(E.length!==N.length)return!1;switch(y.kind){case"message":return E.every((B,Z)=>y.T.equals(B,N[Z]));case"scalar":return E.every((B,Z)=>Je(y.T,B,N[Z]));case"enum":return E.every((B,Z)=>Je(M.INT32,B,N[Z]))}throw new Error(`repeated cannot contain ${y.kind}`)}switch(y.kind){case"message":return y.T.equals(E,N);case"enum":return Je(M.INT32,E,N);case"scalar":return Je(y.T,E,N);case"oneof":if(E.case!==N.case)return!1;const B=y.findField(E.case);if(B===void 0)return!0;switch(B.kind){case"message":return B.T.equals(E.value,N.value);case"enum":return Je(M.INT32,E.value,N.value);case"scalar":return Je(B.T,E.value,N.value)}throw new Error(`oneof cannot contain ${B.kind}`);case"map":const Z=Object.keys(E).concat(Object.keys(N));switch(y.V.kind){case"message":const re=y.V.T;return Z.every(xe=>re.equals(E[xe],N[xe]));case"enum":return Z.every(xe=>Je(M.INT32,E[xe],N[xe]));case"scalar":const se=y.V.T;return Z.every(xe=>Je(se,E[xe],N[xe]))}break}})},clone(g){const u=g.getType(),f=new u,y=f;for(const E of u.fields.byMember()){const N=g[E.localName];let B;if(E.repeated)B=N.map(ct);else if(E.kind=="map"){B=y[E.localName];for(const[Z,re]of Object.entries(N))B[Z]=ct(re)}else E.kind=="oneof"?B=E.findField(N.case)?{case:N.case,value:ct(N.value)}:{case:void 0}:B=ct(N);y[E.localName]=B}return f}}}function ct(g){if(g===void 0)return g;if(g instanceof A)return g.clone();if(g instanceof Uint8Array){const u=new Uint8Array(g.byteLength);return u.set(g),u}return g}function Nt(g){return g instanceof Uint8Array?g:new Uint8Array(g)}class qt{constructor(u,f){this._fields=u,this._normalizer=f}findJsonName(u){if(!this.jsonNames){const f={};for(const y of this.list())f[y.jsonName]=f[y.name]=y;this.jsonNames=f}return this.jsonNames[u]}find(u){if(!this.numbers){const f={};for(const y of this.list())f[y.no]=y;this.numbers=f}return this.numbers[u]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((u,f)=>u.no-f.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const u=this.members;let f;for(const y of this.list())y.oneof?y.oneof!==f&&(f=y.oneof,u.push(f)):u.push(y)}return this.members}}function Bn(g){switch(g.kind){case"field":return yn(g.name,g.oneof!==void 0);case"oneof":return rn(g.name);case"enum":case"message":case"service":{const u=g.file.proto.package,f=u===void 0?0:u.length+1,y=g.typeName.substring(f).replace(/\./g,"_");return mi(it(y))}case"enum_value":{const u=g.parent.sharedPrefix;if(u===void 0)return g.name;const f=g.name.substring(u.length);return mi(f)}case"rpc":{let u=g.name;return u.length==0?u:(u=u[0].toLowerCase()+u.substring(1),mi(u))}}}function yn(g,u){const f=Ke(g);return u?f:mi(Yn(f))}function rn(g){return yn(g,!1)}const Zt=Ke;function Fn(g,u){const f=Ge(g)+"_";for(const y of u){if(!y.toLowerCase().startsWith(f))return;const E=y.substring(f.length);if(E.length==0||/^\d/.test(E))return}return f}function Ge(g){return(g.substring(0,1)+g.substring(1).replace(/[A-Z]/g,u=>"_"+u)).toLowerCase()}function Ke(g){let u=!1;const f=[];for(let y=0;y`${g}$`,Yn=g=>Jn.has(g)?bn(g):g,mi=g=>Et.has(g)?bn(g):g,it=g=>dt.has(g)?bn(g):g;class Ue{constructor(u){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=u,this.localName=rn(u)}addField(u){l(u.oneof===this,`field ${u.name} not one of ${this.name}`),this.fields.push(u)}findField(u){if(!this._lookup){this._lookup=Object.create(null);for(let f=0;f0?`: ${Z}`:""))}return f.writeUnknownFields&&this.writeUnknownFields(g,u),u}})}function Jr(){return en((g,u)=>function(y,E,N){if(y.kind=="map"){const B={};switch(y.V.kind){case"scalar":for(const[re,se]of Object.entries(E)){const xe=u(y.V.T,se,!0);l(xe!==void 0),B[re.toString()]=xe}break;case"message":for(const[re,se]of Object.entries(E))B[re.toString()]=se.toJson(N);break;case"enum":const Z=y.V.T;for(const[re,se]of Object.entries(E)){l(se===void 0||typeof se=="number");const xe=g(Z,se,!0,N.enumAsInteger);l(xe!==void 0),B[re.toString()]=xe}break}return N.emitDefaultValues||Object.keys(B).length>0?B:void 0}else if(y.repeated){const B=[];switch(y.kind){case"scalar":for(let Z=0;Z0?B:void 0}else{if(E===void 0){if(!y.oneof&&!y.opt)throw"required field not set";return}switch(y.kind){case"scalar":return u(y.T,E,!0);case"enum":return g(y.T,E,!0,N.enumAsInteger);case"message":return Ze(y.T,E).toJson(N)}}})}const Ie=F("proto2",Jr(),qn(),Object.assign(Object.assign({},Ve()),{newFieldList(g){return new qt(g,Nn)},initFields(g){for(const u of g.getType().fields.byMember()){const f=u.localName,y=g;if(u.repeated){y[f]=[];continue}switch(u.kind){case"oneof":y[f]={case:void 0};break;case"map":y[f]={};break}}}}));function Nn(g){var u,f,y,E,N;const B=[];let Z;for(const re of typeof g=="function"?g():g){const se=re;if(se.localName=yn(re.name,re.oneof!==void 0),se.jsonName=(u=re.jsonName)!==null&&u!==void 0?u:Zt(re.name),se.repeated=(f=re.repeated)!==null&&f!==void 0?f:!1,re.kind=="scalar"&&(se.L=(y=re.L)!==null&&y!==void 0?y:V.BIGINT),re.oneof!==void 0){const xe=typeof re.oneof=="string"?re.oneof:re.oneof.name;(!Z||Z.name!=xe)&&(Z=new Ue(xe)),se.oneof=Z,Z.addField(se)}re.kind=="message"&&(se.delimited=(E=re.delimited)!==null&&E!==void 0?E:!1),se.packed=(N=re.packed)!==null&&N!==void 0?N:!1,B.push(se)}return B}const Gn={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var ci=globalThis&&globalThis.__asyncValues||function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=g[Symbol.asyncIterator],f;return u?u.call(g):(g=typeof __values=="function"?__values(g):g[Symbol.iterator](),f={},y("next"),y("throw"),y("return"),f[Symbol.asyncIterator]=function(){return this},f);function y(N){f[N]=g[N]&&function(B){return new Promise(function(Z,re){B=g[N](B),E(Z,re,B.done,B.value)})}}function E(N,B,Z,re){Promise.resolve(re).then(function(se){N({value:se,done:Z})},B)}},ta=globalThis&&globalThis.__await||function(g){return this instanceof ta?(this.v=g,this):new ta(g)},Nd=globalThis&&globalThis.__asyncGenerator||function(g,u,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=f.apply(g,u||[]),E,N=[];return E={},Z("next"),Z("throw"),Z("return",B),E[Symbol.asyncIterator]=function(){return this},E;function B(ft){return function(Wt){return Promise.resolve(Wt).then(ft,mt)}}function Z(ft,Wt){y[ft]&&(E[ft]=function(mn){return new Promise(function(Sn,cr){N.push([ft,mn,Sn,cr])>1||re(ft,mn)})},Wt&&(E[ft]=Wt(E[ft])))}function re(ft,Wt){try{se(y[ft](Wt))}catch(mn){Be(N[0][3],mn)}}function se(ft){ft.value instanceof ta?Promise.resolve(ft.value.v).then(xe,mt):Be(N[0][2],ft)}function xe(ft){re("next",ft)}function mt(ft){re("throw",ft)}function Be(ft,Wt){ft(Wt),N.shift(),N.length&&re(N[0][0],N[0][1])}};const hp={enc(g,u){const f=ue().makeWriteOptions(u);return f.writerFactory().bytes(g.toBinary(f)).finish()},dec(g,u,f){const y=ue().makeReadOptions(f);return g.fromBinary(y.readerFactory(u).bytes(),y)},decStream(g,u){return Nd(this,arguments,function*(){var y,E,N,B;function Z(Be,ft){const Wt=new Uint8Array(Be.byteLength+ft.byteLength);return Wt.set(Be),Wt.set(ft,Be.length),Wt}let re=new Uint8Array(0);try{for(var se=!0,xe=ci(u),mt;mt=yield ta(xe.next()),y=mt.done,!y;se=!0)for(B=mt.value,se=!1,re=Z(re,B);;){const ft=hp.peekSize(re);if(ft.eof||ft.offset+ft.size>re.byteLength)break;yield yield ta(hp.dec(g,re)),re=re.subarray(ft.offset+ft.size)}}catch(Be){E={error:Be}}finally{try{!se&&!y&&(N=xe.return)&&(yield ta(N.call(xe)))}finally{if(E)throw E.error}}if(re.byteLength>0)throw new Error("incomplete data")})},peekSize(g){const u={eof:!0,size:null,offset:null};for(let f=0;f<10;f++){if(f>g.byteLength)return u;if(!(g[f]&128)){const y=new Me(g);let E;try{E=y.uint32()}catch(N){if(N instanceof RangeError)return u;throw N}return{eof:!1,size:E,offset:y.pos}}}throw new Error("invalid varint")}};function xy(g){switch(g.typeName){case"google.protobuf.Any":{const u=g.fields.find(y=>y.number==1&&y.fieldKind=="scalar"&&y.scalar===M.STRING),f=g.fields.find(y=>y.number==2&&y.fieldKind=="scalar"&&y.scalar===M.BYTES);if(u&&f)return{typeName:g.typeName,typeUrl:u,value:f};break}case"google.protobuf.Timestamp":{const u=g.fields.find(y=>y.number==1&&y.fieldKind=="scalar"&&y.scalar===M.INT64),f=g.fields.find(y=>y.number==2&&y.fieldKind=="scalar"&&y.scalar===M.INT32);if(u&&f)return{typeName:g.typeName,seconds:u,nanos:f};break}case"google.protobuf.Duration":{const u=g.fields.find(y=>y.number==1&&y.fieldKind=="scalar"&&y.scalar===M.INT64),f=g.fields.find(y=>y.number==2&&y.fieldKind=="scalar"&&y.scalar===M.INT32);if(u&&f)return{typeName:g.typeName,seconds:u,nanos:f};break}case"google.protobuf.Struct":{const u=g.fields.find(f=>f.number==1&&!f.repeated);if((u==null?void 0:u.fieldKind)!=="map"||u.mapValue.kind!=="message"||u.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:g.typeName,fields:u}}case"google.protobuf.Value":{const u=g.oneofs.find(re=>re.name==="kind"),f=g.fields.find(re=>re.number==1&&re.oneof===u);if((f==null?void 0:f.fieldKind)!=="enum"||f.enum.typeName!=="google.protobuf.NullValue")return;const y=g.fields.find(re=>re.number==2&&re.fieldKind=="scalar"&&re.scalar===M.DOUBLE&&re.oneof===u),E=g.fields.find(re=>re.number==3&&re.fieldKind=="scalar"&&re.scalar===M.STRING&&re.oneof===u),N=g.fields.find(re=>re.number==4&&re.fieldKind=="scalar"&&re.scalar===M.BOOL&&re.oneof===u),B=g.fields.find(re=>re.number==5&&re.oneof===u);if((B==null?void 0:B.fieldKind)!=="message"||B.message.typeName!=="google.protobuf.Struct")return;const Z=g.fields.find(re=>re.number==6&&re.oneof===u);if((Z==null?void 0:Z.fieldKind)!=="message"||Z.message.typeName!=="google.protobuf.ListValue")return;if(u&&y&&E&&N)return{typeName:g.typeName,kind:u,nullValue:f,numberValue:y,stringValue:E,boolValue:N,structValue:B,listValue:Z};break}case"google.protobuf.ListValue":{const u=g.fields.find(f=>f.number==1&&f.repeated);if((u==null?void 0:u.fieldKind)!="message"||u.message.typeName!=="google.protobuf.Value")break;return{typeName:g.typeName,values:u}}case"google.protobuf.FieldMask":{const u=g.fields.find(f=>f.number==1&&f.fieldKind=="scalar"&&f.scalar===M.STRING&&f.repeated);if(u)return{typeName:g.typeName,paths:u};break}case"google.protobuf.DoubleValue":case"google.protobuf.FloatValue":case"google.protobuf.Int64Value":case"google.protobuf.UInt64Value":case"google.protobuf.Int32Value":case"google.protobuf.UInt32Value":case"google.protobuf.BoolValue":case"google.protobuf.StringValue":case"google.protobuf.BytesValue":{const u=g.fields.find(f=>f.number==1&&f.name=="value");if(!u||u.fieldKind!=="scalar")break;return{typeName:g.typeName,value:u}}}}const Hi="@bufbuild/protobuf",ky={packageName:"@bufbuild/protobuf",localName:Bn,reifyWkt:xy,getUnwrappedFieldType:ot,scalarDefaultValue:Ye,safeIdentifier:it,safeObjectProperty:mi,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:Hi},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:Hi},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:Hi},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Hi},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Hi},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:Hi},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:Hi},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Hi},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Hi},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Hi},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Hi},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Hi},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Hi},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:Hi},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:Hi},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Hi},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Hi},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Hi},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Hi},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:Hi}},wktSourceFiles:["google/protobuf/compiler/plugin.proto","google/protobuf/any.proto","google/protobuf/api.proto","google/protobuf/descriptor.proto","google/protobuf/duration.proto","google/protobuf/empty.proto","google/protobuf/field_mask.proto","google/protobuf/source_context.proto","google/protobuf/struct.proto","google/protobuf/timestamp.proto","google/protobuf/type.proto","google/protobuf/wrappers.proto"]};var js;(function(g){g[g.Unary=0]="Unary",g[g.ServerStreaming=1]="ServerStreaming",g[g.ClientStreaming=2]="ClientStreaming",g[g.BiDiStreaming=3]="BiDiStreaming"})(js||(js={}));var Jg;(function(g){g[g.NoSideEffects=1]="NoSideEffects",g[g.Idempotent=2]="Idempotent"})(Jg||(Jg={}));var gi;(function(g){g[g.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",g[g.EDITION_PROTO2=998]="EDITION_PROTO2",g[g.EDITION_PROTO3=999]="EDITION_PROTO3",g[g.EDITION_2023=1e3]="EDITION_2023",g[g.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",g[g.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",g[g.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",g[g.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",g[g.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(gi||(gi={})),Ie.util.setEnumType(gi,"google.protobuf.Edition",[{no:0,name:"EDITION_UNKNOWN"},{no:998,name:"EDITION_PROTO2"},{no:999,name:"EDITION_PROTO3"},{no:1e3,name:"EDITION_2023"},{no:1,name:"EDITION_1_TEST_ONLY"},{no:2,name:"EDITION_2_TEST_ONLY"},{no:99997,name:"EDITION_99997_TEST_ONLY"},{no:99998,name:"EDITION_99998_TEST_ONLY"},{no:99999,name:"EDITION_99999_TEST_ONLY"}]);class Ol extends A{constructor(u){super(),this.file=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ol().fromBinary(u,f)}static fromJson(u,f){return new Ol().fromJson(u,f)}static fromJsonString(u,f){return new Ol().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ol,u,f)}}Ol.runtime=Ie,Ol.typeName="google.protobuf.FileDescriptorSet",Ol.fields=Ie.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:Sl,repeated:!0}]);class Sl extends A{constructor(u){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Sl().fromBinary(u,f)}static fromJson(u,f){return new Sl().fromJson(u,f)}static fromJsonString(u,f){return new Sl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Sl,u,f)}}Sl.runtime=Ie,Sl.typeName="google.protobuf.FileDescriptorProto",Sl.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:El,repeated:!0},{no:5,name:"enum_type",kind:"message",T:Tl,repeated:!0},{no:6,name:"service",kind:"message",T:yu,repeated:!0},{no:7,name:"extension",kind:"message",T:Hs,repeated:!0},{no:8,name:"options",kind:"message",T:Cl,opt:!0},{no:9,name:"source_code_info",kind:"message",T:Ac,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0}]);class El extends A{constructor(u){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new El().fromBinary(u,f)}static fromJson(u,f){return new El().fromJson(u,f)}static fromJsonString(u,f){return new El().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(El,u,f)}}El.runtime=Ie,El.typeName="google.protobuf.DescriptorProto",El.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Hs,repeated:!0},{no:6,name:"extension",kind:"message",T:Hs,repeated:!0},{no:3,name:"nested_type",kind:"message",T:El,repeated:!0},{no:4,name:"enum_type",kind:"message",T:Tl,repeated:!0},{no:5,name:"extension_range",kind:"message",T:pu,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:bu,repeated:!0},{no:7,name:"options",kind:"message",T:Ou,opt:!0},{no:9,name:"reserved_range",kind:"message",T:mu,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class pu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new pu().fromBinary(u,f)}static fromJson(u,f){return new pu().fromJson(u,f)}static fromJsonString(u,f){return new pu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(pu,u,f)}}pu.runtime=Ie,pu.typeName="google.protobuf.DescriptorProto.ExtensionRange",pu.fields=Ie.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:wl,opt:!0}]);class mu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new mu().fromBinary(u,f)}static fromJson(u,f){return new mu().fromJson(u,f)}static fromJsonString(u,f){return new mu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(mu,u,f)}}mu.runtime=Ie,mu.typeName="google.protobuf.DescriptorProto.ReservedRange",mu.fields=Ie.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class wl extends A{constructor(u){super(),this.uninterpretedOption=[],this.declaration=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new wl().fromBinary(u,f)}static fromJson(u,f){return new wl().fromJson(u,f)}static fromJsonString(u,f){return new wl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(wl,u,f)}}wl.runtime=Ie,wl.typeName="google.protobuf.ExtensionRangeOptions",wl.fields=Ie.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0},{no:2,name:"declaration",kind:"message",T:gu,repeated:!0},{no:50,name:"features",kind:"message",T:Ii,opt:!0},{no:3,name:"verification",kind:"enum",T:Ie.getEnumType(Pm),opt:!0,default:Pm.UNVERIFIED}]);var Pm;(function(g){g[g.DECLARATION=0]="DECLARATION",g[g.UNVERIFIED=1]="UNVERIFIED"})(Pm||(Pm={})),Ie.util.setEnumType(Pm,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class gu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new gu().fromBinary(u,f)}static fromJson(u,f){return new gu().fromJson(u,f)}static fromJsonString(u,f){return new gu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(gu,u,f)}}gu.runtime=Ie,gu.typeName="google.protobuf.ExtensionRangeOptions.Declaration",gu.fields=Ie.util.newFieldList(()=>[{no:1,name:"number",kind:"scalar",T:5,opt:!0},{no:2,name:"full_name",kind:"scalar",T:9,opt:!0},{no:3,name:"type",kind:"scalar",T:9,opt:!0},{no:5,name:"reserved",kind:"scalar",T:8,opt:!0},{no:6,name:"repeated",kind:"scalar",T:8,opt:!0}]);class Hs extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Hs().fromBinary(u,f)}static fromJson(u,f){return new Hs().fromJson(u,f)}static fromJsonString(u,f){return new Hs().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Hs,u,f)}}Hs.runtime=Ie,Hs.typeName="google.protobuf.FieldDescriptorProto",Hs.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:Ie.getEnumType(Bf),opt:!0},{no:5,name:"type",kind:"enum",T:Ie.getEnumType(xr),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:Su,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var xr;(function(g){g[g.DOUBLE=1]="DOUBLE",g[g.FLOAT=2]="FLOAT",g[g.INT64=3]="INT64",g[g.UINT64=4]="UINT64",g[g.INT32=5]="INT32",g[g.FIXED64=6]="FIXED64",g[g.FIXED32=7]="FIXED32",g[g.BOOL=8]="BOOL",g[g.STRING=9]="STRING",g[g.GROUP=10]="GROUP",g[g.MESSAGE=11]="MESSAGE",g[g.BYTES=12]="BYTES",g[g.UINT32=13]="UINT32",g[g.ENUM=14]="ENUM",g[g.SFIXED32=15]="SFIXED32",g[g.SFIXED64=16]="SFIXED64",g[g.SINT32=17]="SINT32",g[g.SINT64=18]="SINT64"})(xr||(xr={})),Ie.util.setEnumType(xr,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var Bf;(function(g){g[g.OPTIONAL=1]="OPTIONAL",g[g.REPEATED=3]="REPEATED",g[g.REQUIRED=2]="REQUIRED"})(Bf||(Bf={})),Ie.util.setEnumType(Bf,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class bu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new bu().fromBinary(u,f)}static fromJson(u,f){return new bu().fromJson(u,f)}static fromJsonString(u,f){return new bu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(bu,u,f)}}bu.runtime=Ie,bu.typeName="google.protobuf.OneofDescriptorProto",bu.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:wc,opt:!0}]);class Tl extends A{constructor(u){super(),this.value=[],this.reservedRange=[],this.reservedName=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Tl().fromBinary(u,f)}static fromJson(u,f){return new Tl().fromJson(u,f)}static fromJsonString(u,f){return new Tl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Tl,u,f)}}Tl.runtime=Ie,Tl.typeName="google.protobuf.EnumDescriptorProto",Tl.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Ec,repeated:!0},{no:3,name:"options",kind:"message",T:Tc,opt:!0},{no:4,name:"reserved_range",kind:"message",T:xl,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class xl extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new xl().fromBinary(u,f)}static fromJson(u,f){return new xl().fromJson(u,f)}static fromJsonString(u,f){return new xl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(xl,u,f)}}xl.runtime=Ie,xl.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",xl.fields=Ie.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ec extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ec().fromBinary(u,f)}static fromJson(u,f){return new Ec().fromJson(u,f)}static fromJsonString(u,f){return new Ec().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ec,u,f)}}Ec.runtime=Ie,Ec.typeName="google.protobuf.EnumValueDescriptorProto",Ec.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:xc,opt:!0}]);class yu extends A{constructor(u){super(),this.method=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new yu().fromBinary(u,f)}static fromJson(u,f){return new yu().fromJson(u,f)}static fromJsonString(u,f){return new yu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(yu,u,f)}}yu.runtime=Ie,yu.typeName="google.protobuf.ServiceDescriptorProto",yu.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:kl,repeated:!0},{no:3,name:"options",kind:"message",T:wu,opt:!0}]);class kl extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new kl().fromBinary(u,f)}static fromJson(u,f){return new kl().fromJson(u,f)}static fromJsonString(u,f){return new kl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(kl,u,f)}}kl.runtime=Ie,kl.typeName="google.protobuf.MethodDescriptorProto",kl.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:kc,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]);class Cl extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Cl().fromBinary(u,f)}static fromJson(u,f){return new Cl().fromJson(u,f)}static fromJsonString(u,f){return new Cl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Cl,u,f)}}Cl.runtime=Ie,Cl.typeName="google.protobuf.FileOptions",Cl.fields=Ie.util.newFieldList(()=>[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:Ie.getEnumType(vu),opt:!0,default:vu.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:42,name:"php_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:50,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0}]);var vu;(function(g){g[g.SPEED=1]="SPEED",g[g.CODE_SIZE=2]="CODE_SIZE",g[g.LITE_RUNTIME=3]="LITE_RUNTIME"})(vu||(vu={})),Ie.util.setEnumType(vu,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Ou extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ou().fromBinary(u,f)}static fromJson(u,f){return new Ou().fromJson(u,f)}static fromJsonString(u,f){return new Ou().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ou,u,f)}}Ou.runtime=Ie,Ou.typeName="google.protobuf.MessageOptions",Ou.fields=Ie.util.newFieldList(()=>[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:11,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:12,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0}]);class Su extends A{constructor(u){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Su().fromBinary(u,f)}static fromJson(u,f){return new Su().fromJson(u,f)}static fromJsonString(u,f){return new Su().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Su,u,f)}}Su.runtime=Ie,Su.typeName="google.protobuf.FieldOptions",Su.fields=Ie.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:Ie.getEnumType(Mm),opt:!0,default:Mm.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:Ie.getEnumType(Pd),opt:!0,default:Pd.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:16,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"retention",kind:"enum",T:Ie.getEnumType(Lm),opt:!0},{no:19,name:"targets",kind:"enum",T:Ie.getEnumType($m),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Eu,repeated:!0},{no:21,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0}]);var Mm;(function(g){g[g.STRING=0]="STRING",g[g.CORD=1]="CORD",g[g.STRING_PIECE=2]="STRING_PIECE"})(Mm||(Mm={})),Ie.util.setEnumType(Mm,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var Pd;(function(g){g[g.JS_NORMAL=0]="JS_NORMAL",g[g.JS_STRING=1]="JS_STRING",g[g.JS_NUMBER=2]="JS_NUMBER"})(Pd||(Pd={})),Ie.util.setEnumType(Pd,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var Lm;(function(g){g[g.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",g[g.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",g[g.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(Lm||(Lm={})),Ie.util.setEnumType(Lm,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var $m;(function(g){g[g.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",g[g.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",g[g.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",g[g.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",g[g.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",g[g.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",g[g.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",g[g.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",g[g.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",g[g.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})($m||($m={})),Ie.util.setEnumType($m,"google.protobuf.FieldOptions.OptionTargetType",[{no:0,name:"TARGET_TYPE_UNKNOWN"},{no:1,name:"TARGET_TYPE_FILE"},{no:2,name:"TARGET_TYPE_EXTENSION_RANGE"},{no:3,name:"TARGET_TYPE_MESSAGE"},{no:4,name:"TARGET_TYPE_FIELD"},{no:5,name:"TARGET_TYPE_ONEOF"},{no:6,name:"TARGET_TYPE_ENUM"},{no:7,name:"TARGET_TYPE_ENUM_ENTRY"},{no:8,name:"TARGET_TYPE_SERVICE"},{no:9,name:"TARGET_TYPE_METHOD"}]);class Eu extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Eu().fromBinary(u,f)}static fromJson(u,f){return new Eu().fromJson(u,f)}static fromJsonString(u,f){return new Eu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Eu,u,f)}}Eu.runtime=Ie,Eu.typeName="google.protobuf.FieldOptions.EditionDefault",Eu.fields=Ie.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class wc extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new wc().fromBinary(u,f)}static fromJson(u,f){return new wc().fromJson(u,f)}static fromJsonString(u,f){return new wc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(wc,u,f)}}wc.runtime=Ie,wc.typeName="google.protobuf.OneofOptions",wc.fields=Ie.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0}]);class Tc extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Tc().fromBinary(u,f)}static fromJson(u,f){return new Tc().fromJson(u,f)}static fromJsonString(u,f){return new Tc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Tc,u,f)}}Tc.runtime=Ie,Tc.typeName="google.protobuf.EnumOptions",Tc.fields=Ie.util.newFieldList(()=>[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:7,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0}]);class xc extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new xc().fromBinary(u,f)}static fromJson(u,f){return new xc().fromJson(u,f)}static fromJsonString(u,f){return new xc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(xc,u,f)}}xc.runtime=Ie,xc.typeName="google.protobuf.EnumValueOptions",xc.fields=Ie.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Ii,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0}]);class wu extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new wu().fromBinary(u,f)}static fromJson(u,f){return new wu().fromJson(u,f)}static fromJsonString(u,f){return new wu().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(wu,u,f)}}wu.runtime=Ie,wu.typeName="google.protobuf.ServiceOptions",wu.fields=Ie.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Ii,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0}]);class kc extends A{constructor(u){super(),this.uninterpretedOption=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new kc().fromBinary(u,f)}static fromJson(u,f){return new kc().fromJson(u,f)}static fromJsonString(u,f){return new kc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(kc,u,f)}}kc.runtime=Ie,kc.typeName="google.protobuf.MethodOptions",kc.fields=Ie.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:Ie.getEnumType(Md),opt:!0,default:Md.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Ii,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:Za,repeated:!0}]);var Md;(function(g){g[g.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",g[g.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",g[g.IDEMPOTENT=2]="IDEMPOTENT"})(Md||(Md={})),Ie.util.setEnumType(Md,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class Za extends A{constructor(u){super(),this.name=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Za().fromBinary(u,f)}static fromJson(u,f){return new Za().fromJson(u,f)}static fromJsonString(u,f){return new Za().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Za,u,f)}}Za.runtime=Ie,Za.typeName="google.protobuf.UninterpretedOption",Za.fields=Ie.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Cc,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]);class Cc extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Cc().fromBinary(u,f)}static fromJson(u,f){return new Cc().fromJson(u,f)}static fromJsonString(u,f){return new Cc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Cc,u,f)}}Cc.runtime=Ie,Cc.typeName="google.protobuf.UninterpretedOption.NamePart",Cc.fields=Ie.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Ii extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ii().fromBinary(u,f)}static fromJson(u,f){return new Ii().fromJson(u,f)}static fromJsonString(u,f){return new Ii().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ii,u,f)}}Ii.runtime=Ie,Ii.typeName="google.protobuf.FeatureSet",Ii.fields=Ie.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:Ie.getEnumType(e1),opt:!0},{no:2,name:"enum_type",kind:"enum",T:Ie.getEnumType(t1),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:Ie.getEnumType(pp),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:Ie.getEnumType(n1),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:Ie.getEnumType(r1),opt:!0},{no:6,name:"json_format",kind:"enum",T:Ie.getEnumType(ai),opt:!0}]);var e1;(function(g){g[g.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",g[g.EXPLICIT=1]="EXPLICIT",g[g.IMPLICIT=2]="IMPLICIT",g[g.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(e1||(e1={})),Ie.util.setEnumType(e1,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]);var t1;(function(g){g[g.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",g[g.OPEN=1]="OPEN",g[g.CLOSED=2]="CLOSED"})(t1||(t1={})),Ie.util.setEnumType(t1,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var pp;(function(g){g[g.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",g[g.PACKED=1]="PACKED",g[g.EXPANDED=2]="EXPANDED"})(pp||(pp={})),Ie.util.setEnumType(pp,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var n1;(function(g){g[g.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",g[g.NONE=1]="NONE",g[g.VERIFY=2]="VERIFY"})(n1||(n1={})),Ie.util.setEnumType(n1,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var r1;(function(g){g[g.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",g[g.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",g[g.DELIMITED=2]="DELIMITED"})(r1||(r1={})),Ie.util.setEnumType(r1,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var ai;(function(g){g[g.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",g[g.ALLOW=1]="ALLOW",g[g.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(ai||(ai={})),Ie.util.setEnumType(ai,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class Dr extends A{constructor(u){super(),this.defaults=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Dr().fromBinary(u,f)}static fromJson(u,f){return new Dr().fromJson(u,f)}static fromJsonString(u,f){return new Dr().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Dr,u,f)}}Dr.runtime=Ie,Dr.typeName="google.protobuf.FeatureSetDefaults",Dr.fields=Ie.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:_c,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0}]);class _c extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new _c().fromBinary(u,f)}static fromJson(u,f){return new _c().fromJson(u,f)}static fromJsonString(u,f){return new _c().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(_c,u,f)}}_c.runtime=Ie,_c.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",_c.fields=Ie.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:Ie.getEnumType(gi),opt:!0},{no:2,name:"features",kind:"message",T:Ii,opt:!0}]);class Ac extends A{constructor(u){super(),this.location=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ac().fromBinary(u,f)}static fromJson(u,f){return new Ac().fromJson(u,f)}static fromJsonString(u,f){return new Ac().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ac,u,f)}}Ac.runtime=Ie,Ac.typeName="google.protobuf.SourceCodeInfo",Ac.fields=Ie.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Rc,repeated:!0}]);class Rc extends A{constructor(u){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Rc().fromBinary(u,f)}static fromJson(u,f){return new Rc().fromJson(u,f)}static fromJsonString(u,f){return new Rc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Rc,u,f)}}Rc.runtime=Ie,Rc.typeName="google.protobuf.SourceCodeInfo.Location",Rc.fields=Ie.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]);class Ic extends A{constructor(u){super(),this.annotation=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Ic().fromBinary(u,f)}static fromJson(u,f){return new Ic().fromJson(u,f)}static fromJsonString(u,f){return new Ic().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Ic,u,f)}}Ic.runtime=Ie,Ic.typeName="google.protobuf.GeneratedCodeInfo",Ic.fields=Ie.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:Dc,repeated:!0}]);class Dc extends A{constructor(u){super(),this.path=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Dc().fromBinary(u,f)}static fromJson(u,f){return new Dc().fromJson(u,f)}static fromJsonString(u,f){return new Dc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Dc,u,f)}}Dc.runtime=Ie,Dc.typeName="google.protobuf.GeneratedCodeInfo.Annotation",Dc.fields=Ie.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0},{no:5,name:"semantic",kind:"enum",T:Ie.getEnumType(i1),opt:!0}]);var i1;(function(g){g[g.NONE=0]="NONE",g[g.SET=1]="SET",g[g.ALIAS=2]="ALIAS"})(i1||(i1={})),Ie.util.setEnumType(i1,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function e_(g,u){const f=g.values.find(y=>y.name===u);return l(f,`cannot parse ${g.name} default value: ${u}`),f.number}function J6(g,u){switch(g){case M.STRING:return u;case M.BYTES:{const f=is(u);if(f===!1)throw new Error(`cannot parse ${M[g]} default value: ${u}`);return f}case M.INT64:case M.SFIXED64:case M.SINT64:return Se.parse(u);case M.UINT64:case M.FIXED64:return Se.uParse(u);case M.DOUBLE:case M.FLOAT:switch(u){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(u)}case M.BOOL:return u==="true";case M.INT32:case M.UINT32:case M.SINT32:case M.FIXED32:case M.SFIXED32:return parseInt(u,10)}}function is(g){const u=[],f={tail:g,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(y){if(this.tail.length>=y){const E=this.tail.substring(0,y);return this.tail=this.tail.substring(y),E}return!1}};for(;f.next();)switch(f.c){case"\\":if(f.next())switch(f.c){case"\\":u.push(f.c.charCodeAt(0));break;case"b":u.push(8);break;case"f":u.push(12);break;case"n":u.push(10);break;case"r":u.push(13);break;case"t":u.push(9);break;case"v":u.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const y=f.c,E=f.take(2);if(E===!1)return!1;const N=parseInt(y+E,8);if(isNaN(N))return!1;u.push(N);break}case"x":{const y=f.c,E=f.take(2);if(E===!1)return!1;const N=parseInt(y+E,16);if(isNaN(N))return!1;u.push(N);break}case"u":{const y=f.c,E=f.take(4);if(E===!1)return!1;const N=parseInt(y+E,16);if(isNaN(N))return!1;const B=new Uint8Array(4);new DataView(B.buffer).setInt32(0,N,!0),u.push(B[0],B[1],B[2],B[3]);break}case"U":{const y=f.c,E=f.take(8);if(E===!1)return!1;const N=Se.uEnc(y+E),B=new Uint8Array(8),Z=new DataView(B.buffer);Z.setInt32(0,N.lo,!0),Z.setInt32(4,N.hi,!0),u.push(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7]);break}}break;default:u.push(f.c.charCodeAt(0))}return new Uint8Array(u)}const jE=Dr.fromBinary(Xt.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function mp(g){const u=g.minimumEdition,f=g.maximumEdition;if(u===void 0||f===void 0||g.defaults.some(E=>E.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const y=new Map;return(E,...N)=>{var B,Z;let re=y.get(E);if(re===void 0){if(EE||xe!==void 0&&xe.e>Be||(xe={e:Be,f:(Z=mt.features)!==null&&Z!==void 0?Z:new Ii})}if(xe===void 0)throw new Error(`No valid default found for edition ${gi[E]}`);re=xe.f.toBinary(),y.set(E,re)}const se=Ii.fromBinary(re);for(const xe of N)xe!==void 0&&se.fromBinary(xe.toBinary());if(!t_(se))throw new Error(`Invalid FeatureSet for edition ${gi[E]}`);return se}}function t_(g){for(const u of Ii.fields.list()){const f=g[u.localName];if(f===void 0||u.kind=="enum"&&f===0)return!1}return!0}function Cy(g,u){var f;const y={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:mp((f=u==null?void 0:u.featureSetDefaults)!==null&&f!==void 0?f:jE)},N=(g instanceof Ol?g.file:g instanceof Uint8Array?Ol.fromBinary(g).file:g).map(B=>_l(B,y));return Object.assign({files:N},y)}function _l(g,u){var f,y;l(g.name,"invalid FileDescriptorProto: missing name");const E=Object.assign(Object.assign({kind:"file",proto:g,deprecated:(y=(f=g.options)===null||f===void 0?void 0:f.deprecated)!==null&&y!==void 0?y:!1},eP(g.syntax,g.edition)),{name:g.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return Al(this.proto.sourceCodeInfo,[Vs.FileDescriptorProto_Syntax])},getPackageComments(){return Al(this.proto.sourceCodeInfo,[Vs.FileDescriptorProto_Package])},getFeatures(){var N;return u.resolveFeatures(this.edition,(N=this.proto.options)===null||N===void 0?void 0:N.features)}});u.mapEntries.clear();for(const N of g.enumType)HE(N,E,void 0,u);for(const N of g.messageType)VE(N,E,void 0,u);for(const N of g.service)n_(N,E,u);_y(E,u);for(const N of u.mapEntries.values())Ay(N,u);for(const N of E.messages)Ay(N,u),_y(N,u);return u.mapEntries.clear(),E}function _y(g,u){switch(g.kind){case"file":for(const f of g.proto.extension){const y=Ho(f,g,void 0,u);g.extensions.push(y),u.extensions.set(y.typeName,y)}break;case"message":for(const f of g.proto.extension){const y=Ho(f,g.file,g,u);g.nestedExtensions.push(y),u.extensions.set(y.typeName,y)}for(const f of g.nestedMessages)_y(f,u);break}}function Ay(g,u){const f=g.proto.oneofDecl.map(E=>jo(E,g,u)),y=new Set;for(const E of g.proto.field){const N=WE(E,f),B=i_(E,g.file,g,N,u);g.fields.push(B),N===void 0?g.members.push(B):(N.fields.push(B),y.has(N)||(y.add(N),g.members.push(N)))}for(const E of f.filter(N=>y.has(N)))g.oneofs.push(E);for(const E of g.nestedMessages)Ay(E,u)}function HE(g,u,f,y){var E,N,B;l(g.name,"invalid EnumDescriptorProto: missing name");const Z={kind:"enum",proto:g,deprecated:(N=(E=g.options)===null||E===void 0?void 0:E.deprecated)!==null&&N!==void 0?N:!1,file:u,parent:f,name:g.name,typeName:a1(g,f,u),values:[],sharedPrefix:Fn(g.name,g.value.map(re=>{var se;return(se=re.name)!==null&&se!==void 0?se:""})),toString(){return`enum ${this.typeName}`},getComments(){const re=this.parent?[...this.parent.getComments().sourcePath,Vs.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[Vs.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,re)},getFeatures(){var re,se,xe;const mt=(se=(re=this.parent)===null||re===void 0?void 0:re.getFeatures())!==null&&se!==void 0?se:this.file.getFeatures();return y.resolveFeatures(this.file.edition,mt,(xe=this.proto.options)===null||xe===void 0?void 0:xe.features)}};y.enums.set(Z.typeName,Z),g.value.forEach(re=>{var se,xe;l(re.name,"invalid EnumValueDescriptorProto: missing name"),l(re.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),Z.values.push({kind:"enum_value",proto:re,deprecated:(xe=(se=re.options)===null||se===void 0?void 0:se.deprecated)!==null&&xe!==void 0?xe:!1,parent:Z,name:re.name,number:re.number,toString(){return`enum value ${Z.typeName}.${this.name}`},declarationString(){var mt;let Be=`${this.name} = ${this.number}`;return((mt=this.proto.options)===null||mt===void 0?void 0:mt.deprecated)===!0&&(Be+=" [deprecated = true]"),Be},getComments(){const mt=[...this.parent.getComments().sourcePath,Vs.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,mt)},getFeatures(){var mt;return y.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(mt=this.proto.options)===null||mt===void 0?void 0:mt.features)}})}),((B=f==null?void 0:f.nestedEnums)!==null&&B!==void 0?B:u.enums).push(Z)}function VE(g,u,f,y){var E,N,B,Z;l(g.name,"invalid DescriptorProto: missing name");const re={kind:"message",proto:g,deprecated:(N=(E=g.options)===null||E===void 0?void 0:E.deprecated)!==null&&N!==void 0?N:!1,file:u,parent:f,name:g.name,typeName:a1(g,f,u),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const se=this.parent?[...this.parent.getComments().sourcePath,Vs.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[Vs.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,se)},getFeatures(){var se,xe,mt;const Be=(xe=(se=this.parent)===null||se===void 0?void 0:se.getFeatures())!==null&&xe!==void 0?xe:this.file.getFeatures();return y.resolveFeatures(this.file.edition,Be,(mt=this.proto.options)===null||mt===void 0?void 0:mt.features)}};((B=g.options)===null||B===void 0?void 0:B.mapEntry)===!0?y.mapEntries.set(re.typeName,re):(((Z=f==null?void 0:f.nestedMessages)!==null&&Z!==void 0?Z:u.messages).push(re),y.messages.set(re.typeName,re));for(const se of g.enumType)HE(se,u,re,y);for(const se of g.nestedType)VE(se,u,re,y)}function n_(g,u,f){var y,E;l(g.name,"invalid ServiceDescriptorProto: missing name");const N={kind:"service",proto:g,deprecated:(E=(y=g.options)===null||y===void 0?void 0:y.deprecated)!==null&&E!==void 0?E:!1,file:u,name:g.name,typeName:a1(g,void 0,u),methods:[],toString(){return`service ${this.typeName}`},getComments(){const B=[Vs.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,B)},getFeatures(){var B;return f.resolveFeatures(this.file.edition,this.file.getFeatures(),(B=this.proto.options)===null||B===void 0?void 0:B.features)}};u.services.push(N),f.services.set(N.typeName,N);for(const B of g.method)N.methods.push(r_(B,N,f))}function r_(g,u,f){var y,E,N;l(g.name,"invalid MethodDescriptorProto: missing name"),l(g.inputType,"invalid MethodDescriptorProto: missing input_type"),l(g.outputType,"invalid MethodDescriptorProto: missing output_type");let B;g.clientStreaming===!0&&g.serverStreaming===!0?B=js.BiDiStreaming:g.clientStreaming===!0?B=js.ClientStreaming:g.serverStreaming===!0?B=js.ServerStreaming:B=js.Unary;let Z;switch((y=g.options)===null||y===void 0?void 0:y.idempotencyLevel){case Md.IDEMPOTENT:Z=Jg.Idempotent;break;case Md.NO_SIDE_EFFECTS:Z=Jg.NoSideEffects;break;case Md.IDEMPOTENCY_UNKNOWN:case void 0:Z=void 0;break}const re=f.messages.get(Vo(g.inputType)),se=f.messages.get(Vo(g.outputType));l(re,`invalid MethodDescriptorProto: input_type ${g.inputType} not found`),l(se,`invalid MethodDescriptorProto: output_type ${g.inputType} not found`);const xe=g.name;return{kind:"rpc",proto:g,deprecated:(N=(E=g.options)===null||E===void 0?void 0:E.deprecated)!==null&&N!==void 0?N:!1,parent:u,name:xe,methodKind:B,input:re,output:se,idempotency:Z,toString(){return`rpc ${u.typeName}.${xe}`},getComments(){const mt=[...this.parent.getComments().sourcePath,Vs.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return Al(u.file.proto.sourceCodeInfo,mt)},getFeatures(){var mt;return f.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(mt=this.proto.options)===null||mt===void 0?void 0:mt.features)}}}function jo(g,u,f){return l(g.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:g,deprecated:!1,parent:u,fields:[],name:g.name,toString(){return`oneof ${u.typeName}.${this.name}`},getComments(){const y=[...this.parent.getComments().sourcePath,Vs.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return Al(u.file.proto.sourceCodeInfo,y)},getFeatures(){var y;return f.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(y=this.proto.options)===null||y===void 0?void 0:y.features)}}}function i_(g,u,f,y,E){var N,B,Z;l(g.name,"invalid FieldDescriptorProto: missing name"),l(g.number,"invalid FieldDescriptorProto: missing number"),l(g.type,"invalid FieldDescriptorProto: missing type");const re={proto:g,deprecated:(B=(N=g.options)===null||N===void 0?void 0:N.deprecated)!==null&&B!==void 0?B:!1,name:g.name,number:g.number,parent:f,oneof:y,optional:Di(g,u.syntax),packedByDefault:Uf(u,g,E.resolveFeatures),packed:QE(u,f,g,E.resolveFeatures),jsonName:g.jsonName===Zt(g.name)?void 0:g.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:nP,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const xe=[...this.parent.getComments().sourcePath,Vs.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return Al(u.proto.sourceCodeInfo,xe)},getFeatures(){var xe;return E.resolveFeatures(u.edition,this.parent.getFeatures(),(xe=this.proto.options)===null||xe===void 0?void 0:xe.features)}},se=g.label===Bf.REPEATED;switch(g.type){case xr.MESSAGE:case xr.GROUP:{l(g.typeName,"invalid FieldDescriptorProto: missing type_name");const xe=E.mapEntries.get(Vo(g.typeName));if(xe!==void 0)return l(se,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},re),{kind:"field",fieldKind:"map",repeated:!1}),Ry(xe));const mt=E.messages.get(Vo(g.typeName));return l(mt!==void 0,`invalid FieldDescriptorProto: type_name ${g.typeName} not found`),Object.assign(Object.assign({},re),{kind:"field",fieldKind:"message",repeated:se,message:mt})}case xr.ENUM:{l(g.typeName,"invalid FieldDescriptorProto: missing type_name");const xe=E.enums.get(Vo(g.typeName));return l(xe!==void 0,`invalid FieldDescriptorProto: type_name ${g.typeName} not found`),Object.assign(Object.assign({},re),{kind:"field",fieldKind:"enum",getDefaultValue:a_,repeated:se,enum:xe})}default:{const xe=tP[g.type];return l(xe,`invalid FieldDescriptorProto: unknown type ${g.type}`),Object.assign(Object.assign({},re),{kind:"field",fieldKind:"scalar",getDefaultValue:a_,repeated:se,scalar:xe,longType:((Z=g.options)===null||Z===void 0?void 0:Z.jstype)==Pd.JS_STRING?V.STRING:V.BIGINT})}}}function Ho(g,u,f,y){l(g.extendee,"invalid FieldDescriptorProto: missing extendee");const E=i_(g,u,null,void 0,y),N=y.messages.get(Vo(g.extendee));return l(N,`invalid FieldDescriptorProto: extendee ${g.extendee} not found`),Object.assign(Object.assign({},E),{kind:"extension",typeName:a1(g,f,u),parent:f,file:u,extendee:N,toString(){return`extension ${this.typeName}`},getComments(){const B=this.parent?[...this.parent.getComments().sourcePath,Vs.DescriptorProto_Extension,this.parent.proto.extension.indexOf(g)]:[Vs.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(g)];return Al(u.proto.sourceCodeInfo,B)},getFeatures(){var B,Z;return y.resolveFeatures(this.file.edition,((B=this.parent)!==null&&B!==void 0?B:this.file).getFeatures(),(Z=this.proto.options)===null||Z===void 0?void 0:Z.features)}})}function eP(g,u){let f,y;switch(g){case void 0:case"proto2":y="proto2",f=gi.EDITION_PROTO2;break;case"proto3":y="proto3",f=gi.EDITION_PROTO3;break;case"editions":switch(y="editions",u){case void 0:case gi.EDITION_1_TEST_ONLY:case gi.EDITION_2_TEST_ONLY:case gi.EDITION_99997_TEST_ONLY:case gi.EDITION_99998_TEST_ONLY:case gi.EDITION_99999_TEST_ONLY:case gi.EDITION_UNKNOWN:f=gi.EDITION_UNKNOWN;break;default:f=u;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${g}`)}if(g==="editions"&&u===gi.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${g} cannot have edition ${String(u)}`);return{syntax:y,edition:f}}function a1(g,u,f){l(g.name,`invalid ${g.getType().typeName}: missing name`);let y;return u?y=`${u.typeName}.${g.name}`:f.proto.package!==void 0?y=`${f.proto.package}.${g.name}`:y=`${g.name}`,y}function Vo(g){return g.startsWith(".")?g.substring(1):g}function Ry(g){var u,f;l((u=g.proto.options)===null||u===void 0?void 0:u.mapEntry,`invalid DescriptorProto: expected ${g.toString()} to be a map entry`),l(g.fields.length===2,`invalid DescriptorProto: map entry ${g.toString()} has ${g.fields.length} fields`);const y=g.fields.find(B=>B.proto.number===1);l(y,`invalid DescriptorProto: map entry ${g.toString()} is missing key field`);const E=y.scalar;l(E!==void 0&&E!==M.BYTES&&E!==M.FLOAT&&E!==M.DOUBLE,`invalid DescriptorProto: map entry ${g.toString()} has unexpected key type ${(f=y.proto.type)!==null&&f!==void 0?f:-1}`);const N=g.fields.find(B=>B.proto.number===2);switch(l(N,`invalid DescriptorProto: map entry ${g.toString()} is missing value field`),N.fieldKind){case"scalar":return{mapKey:E,mapValue:Object.assign(Object.assign({},N),{kind:"scalar"})};case"message":return{mapKey:E,mapValue:Object.assign(Object.assign({},N),{kind:"message"})};case"enum":return{mapKey:E,mapValue:Object.assign(Object.assign({},N),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function WE(g,u){var f;const y=g.oneofIndex;if(y===void 0)return;let E;return g.proto3Optional!==!0&&(E=u[y],l(E,`invalid FieldDescriptorProto: oneof #${y} for field #${(f=g.number)!==null&&f!==void 0?f:-1} not found`)),E}function Di(g,u){switch(u){case"proto2":return g.oneofIndex===void 0&&g.label===Bf.OPTIONAL;case"proto3":return g.proto3Optional===!0;case"editions":return!1}}function Uf(g,u,f){const{repeatedFieldEncoding:y}=f(g.edition);if(y!=pp.PACKED)return!1;switch(u.type){case xr.STRING:case xr.BYTES:case xr.GROUP:case xr.MESSAGE:return!1;default:return!0}}function QE(g,u,f,y){var E,N,B,Z,re,se;switch(f.type){case xr.STRING:case xr.BYTES:case xr.GROUP:case xr.MESSAGE:return!1;default:switch(g.edition){case gi.EDITION_PROTO2:return(N=(E=f.options)===null||E===void 0?void 0:E.packed)!==null&&N!==void 0?N:!1;case gi.EDITION_PROTO3:return(Z=(B=f.options)===null||B===void 0?void 0:B.packed)!==null&&Z!==void 0?Z:!0;default:{const{repeatedFieldEncoding:xe}=y(g.edition,(re=u==null?void 0:u.getFeatures())!==null&&re!==void 0?re:g.getFeatures(),(se=f.options)===null||se===void 0?void 0:se.features);return xe==pp.PACKED}}}}const tP={[xr.DOUBLE]:M.DOUBLE,[xr.FLOAT]:M.FLOAT,[xr.INT64]:M.INT64,[xr.UINT64]:M.UINT64,[xr.INT32]:M.INT32,[xr.FIXED64]:M.FIXED64,[xr.FIXED32]:M.FIXED32,[xr.BOOL]:M.BOOL,[xr.STRING]:M.STRING,[xr.GROUP]:void 0,[xr.MESSAGE]:void 0,[xr.BYTES]:M.BYTES,[xr.UINT32]:M.UINT32,[xr.ENUM]:void 0,[xr.SFIXED32]:M.SFIXED32,[xr.SFIXED64]:M.SFIXED64,[xr.SINT32]:M.SINT32,[xr.SINT64]:M.SINT64};function Al(g,u){if(!g)return{leadingDetached:[],sourcePath:u};for(const f of g.location)if(f.path.length===u.length&&!f.path.some((y,E)=>u[E]!==y))return{leadingDetached:f.leadingDetachedComments,leading:f.leadingComments,trailing:f.trailingComments,sourcePath:u};return{leadingDetached:[],sourcePath:u}}var Vs;(function(g){g[g.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",g[g.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",g[g.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",g[g.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",g[g.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",g[g.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",g[g.DescriptorProto_Field=2]="DescriptorProto_Field",g[g.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",g[g.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",g[g.DescriptorProto_Extension=6]="DescriptorProto_Extension",g[g.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",g[g.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",g[g.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(Vs||(Vs={}));function nP(){var g,u,f;const y=[];this.repeated&&y.push("repeated"),this.optional&&y.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===Bf.REQUIRED&&y.push("required");let N;switch(this.fieldKind){case"scalar":N=M[this.scalar].toLowerCase();break;case"enum":N=this.enum.typeName;break;case"message":N=this.message.typeName;break;case"map":{const re=M[this.mapKey].toLowerCase();let se;switch(this.mapValue.kind){case"scalar":se=M[this.mapValue.scalar].toLowerCase();break;case"enum":se=this.mapValue.enum.typeName;break;case"message":se=this.mapValue.message.typeName;break}N=`map<${re}, ${se}>`;break}}y.push(`${N} ${this.name} = ${this.number}`);const B=[];((g=this.proto.options)===null||g===void 0?void 0:g.packed)!==void 0&&B.push(`packed = ${this.proto.options.packed.toString()}`);let Z=this.proto.defaultValue;return Z!==void 0&&((this.proto.type==xr.BYTES||this.proto.type==xr.STRING)&&(Z='"'+Z.replace('"','\\"')+'"'),B.push(`default = ${Z}`)),this.jsonName!==void 0&&B.push(`json_name = "${this.jsonName}"`),((u=this.proto.options)===null||u===void 0?void 0:u.jstype)!==void 0&&B.push(`jstype = ${Pd[this.proto.options.jstype]}`),((f=this.proto.options)===null||f===void 0?void 0:f.deprecated)===!0&&B.push("deprecated = true"),B.length>0&&y.push("["+B.join(", ")+"]"),y.join(" ")}function a_(){const g=this.proto.defaultValue;if(g!==void 0)switch(this.fieldKind){case"enum":return e_(this.enum,g);case"scalar":return J6(this.scalar,g);default:return}}function s_(...g){const u={},f={},y={},E={add(N){if("fields"in N){if(!this.findMessage(N.typeName)){u[N.typeName]=N;for(const B of N.fields.list())B.kind=="message"?this.add(B.T):B.kind=="map"&&B.V.kind=="message"?this.add(B.V.T):B.kind=="enum"&&this.add(B.T)}}else if("methods"in N){if(!this.findService(N.typeName)){y[N.typeName]=N;for(const B of Object.values(N.methods))this.add(B.I),this.add(B.O)}}else f[N.typeName]=N},findMessage(N){return u[N]},findEnum(N){return f[N]},findService(N){return y[N]}};for(const N of g)E.add(N);return E}let zf=class ab extends A{constructor(u){super(),this.seconds=Se.zero,this.nanos=0,ke.util.initPartial(u,this)}fromJson(u,f){if(typeof u!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${ke.json.debug(u)}`);const y=u.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const E=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(E))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(EDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Se.parse(E/1e3),this.nanos=0,y[7]&&(this.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9),this}toJson(u){const f=Number(this.seconds)*1e3;if(fDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let y="Z";if(this.nanos>0){const E=(this.nanos+1e9).toString().substring(1);E.substring(3)==="000000"?y="."+E.substring(0,3)+"Z":E.substring(6)==="000"?y="."+E.substring(0,6)+"Z":y="."+E+"Z"}return new Date(f).toISOString().replace(".000Z",y)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return ab.fromDate(new Date)}static fromDate(u){const f=u.getTime();return new ab({seconds:Se.parse(Math.floor(f/1e3)),nanos:f%1e3*1e6})}static fromBinary(u,f){return new ab().fromBinary(u,f)}static fromJson(u,f){return new ab().fromJson(u,f)}static fromJsonString(u,f){return new ab().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(ab,u,f)}};zf.runtime=ke,zf.typeName="google.protobuf.Timestamp",zf.fields=ke.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class ws extends A{constructor(u){super(),this.seconds=Se.zero,this.nanos=0,ke.util.initPartial(u,this)}fromJson(u,f){if(typeof u!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${ke.json.debug(u)}`);const y=u.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(y===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${ke.json.debug(u)}`);const E=Number(y[1]);if(E>315576e6||E<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${ke.json.debug(u)}`);if(this.seconds=Se.parse(E),typeof y[2]=="string"){const N=y[2]+"0".repeat(9-y[2].length);this.nanos=parseInt(N),(E<0||Object.is(E,-0))&&(this.nanos=-this.nanos)}return this}toJson(u){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let f=this.seconds.toString();if(this.nanos!==0){let y=Math.abs(this.nanos).toString();y="0".repeat(9-y.length)+y,y.substring(3)==="000000"?y=y.substring(0,3):y.substring(6)==="000"&&(y=y.substring(0,6)),f+="."+y,this.nanos<0&&Number(this.seconds)==0&&(f="-"+f)}return f+"s"}static fromBinary(u,f){return new ws().fromBinary(u,f)}static fromJson(u,f){return new ws().fromJson(u,f)}static fromJsonString(u,f){return new ws().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(ws,u,f)}}ws.runtime=ke,ws.typeName="google.protobuf.Duration",ws.fields=ke.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Wo extends A{constructor(u){super(),this.typeUrl="",this.value=new Uint8Array(0),ke.util.initPartial(u,this)}toJson(u){var f;if(this.typeUrl==="")return{};const y=this.typeUrlToName(this.typeUrl),E=(f=u==null?void 0:u.typeRegistry)===null||f===void 0?void 0:f.findMessage(y);if(!E)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let B=E.fromBinary(this.value).toJson(u);return(y.startsWith("google.protobuf.")||B===null||Array.isArray(B)||typeof B!="object")&&(B={value:B}),B["@type"]=this.typeUrl,B}fromJson(u,f){var y;if(u===null||Array.isArray(u)||typeof u!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${u===null?"null":Array.isArray(u)?"array":typeof u}`);if(Object.keys(u).length==0)return this;const E=u["@type"];if(typeof E!="string"||E=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const N=this.typeUrlToName(E),B=(y=f==null?void 0:f.typeRegistry)===null||y===void 0?void 0:y.findMessage(N);if(!B)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${E} is not in the type registry`);let Z;if(N.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(u,"value"))Z=B.fromJson(u.value,f);else{const re=Object.assign({},u);delete re["@type"],Z=B.fromJson(re,f)}return this.packFrom(Z),this}packFrom(u){this.value=u.toBinary(),this.typeUrl=this.typeNameToUrl(u.getType().typeName)}unpackTo(u){return this.is(u.getType())?(u.fromBinary(this.value),!0):!1}unpack(u){if(this.typeUrl==="")return;const f=u.findMessage(this.typeUrlToName(this.typeUrl));if(f)return f.fromBinary(this.value)}is(u){if(this.typeUrl==="")return!1;const f=this.typeUrlToName(this.typeUrl);let y="";return typeof u=="string"?y=u:y=u.typeName,f===y}typeNameToUrl(u){return`type.googleapis.com/${u}`}typeUrlToName(u){if(!u.length)throw new Error(`invalid type url: ${u}`);const f=u.lastIndexOf("/"),y=f>=0?u.substring(f+1):u;if(!y.length)throw new Error(`invalid type url: ${u}`);return y}static pack(u){const f=new Wo;return f.packFrom(u),f}static fromBinary(u,f){return new Wo().fromBinary(u,f)}static fromJson(u,f){return new Wo().fromJson(u,f)}static fromJsonString(u,f){return new Wo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Wo,u,f)}}Wo.runtime=ke,Wo.typeName="google.protobuf.Any",Wo.fields=ke.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class Tu extends A{constructor(u){super(),ke.util.initPartial(u,this)}static fromBinary(u,f){return new Tu().fromBinary(u,f)}static fromJson(u,f){return new Tu().fromJson(u,f)}static fromJsonString(u,f){return new Tu().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Tu,u,f)}}Tu.runtime=ke,Tu.typeName="google.protobuf.Empty",Tu.fields=ke.util.newFieldList(()=>[]);class xu extends A{constructor(u){super(),this.paths=[],ke.util.initPartial(u,this)}toJson(u){function f(y){let E=!1;const N=[];for(let B=0;B{if(y.match(/_[0-9]?_/g)||y.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+y+'" is irreversible');return f(y)}).join(",")}fromJson(u,f){if(typeof u!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+ke.json.debug(u));if(u==="")return this;function y(E){if(E.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const N=E.replace(/[A-Z]/g,B=>"_"+B.toLowerCase());return N[0]==="_"?N.substring(1):N}return this.paths=u.split(",").map(y),this}static fromBinary(u,f){return new xu().fromBinary(u,f)}static fromJson(u,f){return new xu().fromJson(u,f)}static fromJsonString(u,f){return new xu().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(xu,u,f)}}xu.runtime=ke,xu.typeName="google.protobuf.FieldMask",xu.fields=ke.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var Ld;(function(g){g[g.NULL_VALUE=0]="NULL_VALUE"})(Ld||(Ld={})),ke.util.setEnumType(Ld,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class vo extends A{constructor(u){super(),this.fields={},ke.util.initPartial(u,this)}toJson(u){const f={};for(const[y,E]of Object.entries(this.fields))f[y]=E.toJson(u);return f}fromJson(u,f){if(typeof u!="object"||u==null||Array.isArray(u))throw new Error("cannot decode google.protobuf.Struct from JSON "+ke.json.debug(u));for(const[y,E]of Object.entries(u))this.fields[y]=Ws.fromJson(E);return this}static fromBinary(u,f){return new vo().fromBinary(u,f)}static fromJson(u,f){return new vo().fromJson(u,f)}static fromJsonString(u,f){return new vo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(vo,u,f)}}vo.runtime=ke,vo.typeName="google.protobuf.Struct",vo.fields=ke.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Ws}}]);class Ws extends A{constructor(u){super(),this.kind={case:void 0},ke.util.initPartial(u,this)}toJson(u){switch(this.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(this.kind.value))throw new Error("google.protobuf.Value cannot be NaN or Infinity");return this.kind.value;case"boolValue":return this.kind.value;case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(Object.assign(Object.assign({},u),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(u,f){switch(typeof u){case"number":this.kind={case:"numberValue",value:u};break;case"string":this.kind={case:"stringValue",value:u};break;case"boolean":this.kind={case:"boolValue",value:u};break;case"object":u===null?this.kind={case:"nullValue",value:Ld.NULL_VALUE}:Array.isArray(u)?this.kind={case:"listValue",value:Rl.fromJson(u)}:this.kind={case:"structValue",value:vo.fromJson(u)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+ke.json.debug(u))}return this}static fromBinary(u,f){return new Ws().fromBinary(u,f)}static fromJson(u,f){return new Ws().fromJson(u,f)}static fromJsonString(u,f){return new Ws().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Ws,u,f)}}Ws.runtime=ke,Ws.typeName="google.protobuf.Value",Ws.fields=ke.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:ke.getEnumType(Ld),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:vo,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:Rl,oneof:"kind"}]);class Rl extends A{constructor(u){super(),this.values=[],ke.util.initPartial(u,this)}toJson(u){return this.values.map(f=>f.toJson())}fromJson(u,f){if(!Array.isArray(u))throw new Error("cannot decode google.protobuf.ListValue from JSON "+ke.json.debug(u));for(let y of u)this.values.push(Ws.fromJson(y));return this}static fromBinary(u,f){return new Rl().fromBinary(u,f)}static fromJson(u,f){return new Rl().fromJson(u,f)}static fromJsonString(u,f){return new Rl().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Rl,u,f)}}Rl.runtime=ke,Rl.typeName="google.protobuf.ListValue",Rl.fields=ke.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Ws,repeated:!0}]);class Oo extends A{constructor(u){super(),this.value=0,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.DOUBLE,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.DOUBLE,u)}catch(y){let E='cannot decode message google.protobuf.DoubleValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Oo().fromBinary(u,f)}static fromJson(u,f){return new Oo().fromJson(u,f)}static fromJsonString(u,f){return new Oo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Oo,u,f)}}Oo.runtime=ke,Oo.typeName="google.protobuf.DoubleValue",Oo.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Oo.fieldWrapper={wrapField(g){return new Oo({value:g})},unwrapField(g){return g.value}};class So extends A{constructor(u){super(),this.value=0,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.FLOAT,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.FLOAT,u)}catch(y){let E='cannot decode message google.protobuf.FloatValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new So().fromBinary(u,f)}static fromJson(u,f){return new So().fromJson(u,f)}static fromJsonString(u,f){return new So().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(So,u,f)}}So.runtime=ke,So.typeName="google.protobuf.FloatValue",So.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),So.fieldWrapper={wrapField(g){return new So({value:g})},unwrapField(g){return g.value}};class Il extends A{constructor(u){super(),this.value=Se.zero,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.INT64,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.INT64,u)}catch(y){let E='cannot decode message google.protobuf.Int64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Il().fromBinary(u,f)}static fromJson(u,f){return new Il().fromJson(u,f)}static fromJsonString(u,f){return new Il().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Il,u,f)}}Il.runtime=ke,Il.typeName="google.protobuf.Int64Value",Il.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Il.fieldWrapper={wrapField(g){return new Il({value:g})},unwrapField(g){return g.value}};class Qo extends A{constructor(u){super(),this.value=Se.zero,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.UINT64,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.UINT64,u)}catch(y){let E='cannot decode message google.protobuf.UInt64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Qo().fromBinary(u,f)}static fromJson(u,f){return new Qo().fromJson(u,f)}static fromJsonString(u,f){return new Qo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Qo,u,f)}}Qo.runtime=ke,Qo.typeName="google.protobuf.UInt64Value",Qo.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Qo.fieldWrapper={wrapField(g){return new Qo({value:g})},unwrapField(g){return g.value}};class Ni extends A{constructor(u){super(),this.value=0,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.INT32,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.INT32,u)}catch(y){let E='cannot decode message google.protobuf.Int32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Ni().fromBinary(u,f)}static fromJson(u,f){return new Ni().fromJson(u,f)}static fromJsonString(u,f){return new Ni().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Ni,u,f)}}Ni.runtime=ke,Ni.typeName="google.protobuf.Int32Value",Ni.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Ni.fieldWrapper={wrapField(g){return new Ni({value:g})},unwrapField(g){return g.value}};class Eo extends A{constructor(u){super(),this.value=0,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.UINT32,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.UINT32,u)}catch(y){let E='cannot decode message google.protobuf.UInt32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Eo().fromBinary(u,f)}static fromJson(u,f){return new Eo().fromJson(u,f)}static fromJsonString(u,f){return new Eo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Eo,u,f)}}Eo.runtime=ke,Eo.typeName="google.protobuf.UInt32Value",Eo.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Eo.fieldWrapper={wrapField(g){return new Eo({value:g})},unwrapField(g){return g.value}};class Ts extends A{constructor(u){super(),this.value=!1,ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.BOOL,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.BOOL,u)}catch(y){let E='cannot decode message google.protobuf.BoolValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Ts().fromBinary(u,f)}static fromJson(u,f){return new Ts().fromJson(u,f)}static fromJsonString(u,f){return new Ts().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Ts,u,f)}}Ts.runtime=ke,Ts.typeName="google.protobuf.BoolValue",Ts.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Ts.fieldWrapper={wrapField(g){return new Ts({value:g})},unwrapField(g){return g.value}};let jf=class KT extends A{constructor(u){super(),this.value="",ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.STRING,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.STRING,u)}catch(y){let E='cannot decode message google.protobuf.StringValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new KT().fromBinary(u,f)}static fromJson(u,f){return new KT().fromJson(u,f)}static fromJsonString(u,f){return new KT().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(KT,u,f)}};jf.runtime=ke,jf.typeName="google.protobuf.StringValue",jf.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),jf.fieldWrapper={wrapField(g){return new jf({value:g})},unwrapField(g){return g.value}};class Yo extends A{constructor(u){super(),this.value=new Uint8Array(0),ke.util.initPartial(u,this)}toJson(u){return ke.json.writeScalar(M.BYTES,this.value,!0)}fromJson(u,f){try{this.value=ke.json.readScalar(M.BYTES,u)}catch(y){let E='cannot decode message google.protobuf.BytesValue from JSON"';throw y instanceof Error&&y.message.length>0&&(E+=`: ${y.message}`),new Error(E)}return this}static fromBinary(u,f){return new Yo().fromBinary(u,f)}static fromJson(u,f){return new Yo().fromJson(u,f)}static fromJsonString(u,f){return new Yo().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Yo,u,f)}}Yo.runtime=ke,Yo.typeName="google.protobuf.BytesValue",Yo.fields=ke.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Yo.fieldWrapper={wrapField(g){return new Yo({value:g})},unwrapField(g){return g.value}};const rP=[Wo,ws,Tu,xu,vo,Ws,Rl,zf,ws,Oo,So,Il,Ni,Eo,Qo,Ts,jf,Yo],iP=[x(Ld)];function aP(g,u=!0){const f=g instanceof Uint8Array||g instanceof Ol?Cy(g):g,y={},E={},N={};if(u){for(const B of rP)E[B.typeName]=B;for(const B of iP)y[B.typeName]=B}return{findEnum(B){const Z=y[B];if(Z)return Z;const re=f.enums.get(B);if(!re)return;const xe=(re.file.syntax=="proto3"?ke:Ie).makeEnumType(B,re.values.map(mt=>({no:mt.number,name:mt.name,localName:Bn(mt)})),{});return y[B]=xe,xe},findMessage(B){const Z=E[B];if(Z)return Z;const re=f.messages.get(B);if(!re)return;const se=re.file.syntax=="proto3"?ke:Ie,xe=[],mt=se.makeMessageType(B,()=>xe,{localName:Bn(re)});E[B]=mt;for(const Be of re.fields){const ft=sP(Be,this);xe.push(ft)}return mt},findService(B){const Z=N[B];if(Z)return Z;const re=f.services.get(B);if(!re)return;const se={};for(const xe of re.methods){const mt=this.findMessage(xe.input.typeName),Be=this.findMessage(xe.output.typeName);l(mt,`message "${xe.input.typeName}" for ${xe.toString()} not found`),l(Be,`output message "${xe.output.typeName}" for ${xe.toString()} not found`),se[Bn(xe)]={name:xe.name,I:mt,O:Be,kind:xe.methodKind,idempotency:xe.idempotency}}return N[B]={typeName:re.typeName,methods:se}}}}function sP(g,u){switch(g.fieldKind){case"map":return oP(g,u);case"message":return lP(g,u);case"enum":{const f=uP(g,u);return f.default=g.getDefaultValue(),f}case"scalar":{const f=Fm(g);return f.default=g.getDefaultValue(),f}}}function oP(g,u){const f={kind:"map",no:g.number,name:g.name,jsonName:g.jsonName,K:g.mapKey};if(g.mapValue.message){const y=u.findMessage(g.mapValue.message.typeName);return l(y,`message "${g.mapValue.message.typeName}" for ${g.toString()} not found`),Object.assign(Object.assign({},f),{V:{kind:"message",T:y}})}if(g.mapValue.enum){const y=u.findEnum(g.mapValue.enum.typeName);return l(y,`enum "${g.mapValue.enum.typeName}" for ${g.toString()} not found`),Object.assign(Object.assign({},f),{V:{kind:"enum",T:y}})}return Object.assign(Object.assign({},f),{V:{kind:"scalar",T:g.mapValue.scalar}})}function Fm(g){const u=g.longType==V.STRING?{L:V.STRING}:{},f=Object.assign({kind:"scalar",no:g.number,name:g.name,jsonName:g.jsonName,T:g.scalar},u);return g.repeated?Object.assign(Object.assign({},f),{repeated:!0,packed:g.packed,oneof:void 0,T:g.scalar}):g.oneof?Object.assign(Object.assign({},f),{oneof:g.oneof.name}):g.optional?Object.assign(Object.assign({},f),{opt:!0}):f}function lP(g,u){const f=u.findMessage(g.message.typeName);l(f,`message "${g.message.typeName}" for ${g.toString()} not found`);const y={kind:"message",no:g.number,name:g.name,jsonName:g.jsonName,T:f,delimited:g.proto.type==xr.GROUP};return g.repeated?Object.assign(Object.assign({},y),{repeated:!0,packed:g.packed,oneof:void 0}):g.oneof?Object.assign(Object.assign({},y),{oneof:g.oneof.name}):g.optional?Object.assign(Object.assign({},y),{opt:!0}):y}function uP(g,u){const f=u.findEnum(g.enum.typeName);l(f,`enum "${g.enum.typeName}" for ${g.toString()} not found`);const y={kind:"enum",no:g.number,name:g.name,jsonName:g.jsonName,T:f};return g.repeated?Object.assign(Object.assign({},y),{repeated:!0,packed:g.packed,oneof:void 0}):g.oneof?Object.assign(Object.assign({},y),{oneof:g.oneof.name}):g.optional?Object.assign(Object.assign({},y),{opt:!0}):y}function Iy(g){if(!(g instanceof A))return g;const u=g.getType(),f={};for(const y of u.fields.byMember()){const E=g[y.localName];let N;if(y.repeated)N=E.map(B=>s1(B));else if(y.kind=="map"){N={};for(const[B,Z]of Object.entries(E))N[B]=s1(Z)}else y.kind=="oneof"?N=y.findField(E.case)?{case:E.case,value:s1(E.value)}:{case:void 0}:N=s1(E);f[y.localName]=N}return f}function s1(g){if(g===void 0)return g;if(g instanceof A)return Iy(g);if(g instanceof Uint8Array){const u=new Uint8Array(g.byteLength);return u.set(g),u}return g}class as extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new as().fromBinary(u,f)}static fromJson(u,f){return new as().fromJson(u,f)}static fromJsonString(u,f){return new as().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(as,u,f)}}as.runtime=Ie,as.typeName="google.protobuf.compiler.Version",as.fields=Ie.util.newFieldList(()=>[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]);class Dl extends A{constructor(u){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Dl().fromBinary(u,f)}static fromJson(u,f){return new Dl().fromJson(u,f)}static fromJsonString(u,f){return new Dl().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Dl,u,f)}}Dl.runtime=Ie,Dl.typeName="google.protobuf.compiler.CodeGeneratorRequest",Dl.fields=Ie.util.newFieldList(()=>[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:Sl,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:Sl,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:as,opt:!0}]);class $d extends A{constructor(u){super(),this.file=[],Ie.util.initPartial(u,this)}static fromBinary(u,f){return new $d().fromBinary(u,f)}static fromJson(u,f){return new $d().fromJson(u,f)}static fromJsonString(u,f){return new $d().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals($d,u,f)}}$d.runtime=Ie,$d.typeName="google.protobuf.compiler.CodeGeneratorResponse",$d.fields=Ie.util.newFieldList(()=>[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:15,name:"file",kind:"message",T:Nc,repeated:!0}]);var Dy;(function(g){g[g.NONE=0]="NONE",g[g.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",g[g.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(Dy||(Dy={})),Ie.util.setEnumType(Dy,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class Nc extends A{constructor(u){super(),Ie.util.initPartial(u,this)}static fromBinary(u,f){return new Nc().fromBinary(u,f)}static fromJson(u,f){return new Nc().fromJson(u,f)}static fromJsonString(u,f){return new Nc().fromJsonString(u,f)}static equals(u,f){return Ie.util.equals(Nc,u,f)}}Nc.runtime=Ie,Nc.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",Nc.fields=Ie.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:Ic,opt:!0}]);class ss extends A{constructor(u){super(),this.fileName="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new ss().fromBinary(u,f)}static fromJson(u,f){return new ss().fromJson(u,f)}static fromJsonString(u,f){return new ss().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(ss,u,f)}}ss.runtime=ke,ss.typeName="google.protobuf.SourceContext",ss.fields=ke.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var na;(function(g){g[g.PROTO2=0]="PROTO2",g[g.PROTO3=1]="PROTO3",g[g.EDITIONS=2]="EDITIONS"})(na||(na={})),ke.util.setEnumType(na,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class Pc extends A{constructor(u){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=na.PROTO2,this.edition="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new Pc().fromBinary(u,f)}static fromJson(u,f){return new Pc().fromJson(u,f)}static fromJsonString(u,f){return new Pc().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Pc,u,f)}}Pc.runtime=ke,Pc.typeName="google.protobuf.Type",Pc.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Mc,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:xa,repeated:!0},{no:5,name:"source_context",kind:"message",T:ss},{no:6,name:"syntax",kind:"enum",T:ke.getEnumType(na)},{no:7,name:"edition",kind:"scalar",T:9}]);class Mc extends A{constructor(u){super(),this.kind=Bm.TYPE_UNKNOWN,this.cardinality=Um.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new Mc().fromBinary(u,f)}static fromJson(u,f){return new Mc().fromJson(u,f)}static fromJsonString(u,f){return new Mc().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Mc,u,f)}}Mc.runtime=ke,Mc.typeName="google.protobuf.Field",Mc.fields=ke.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:ke.getEnumType(Bm)},{no:2,name:"cardinality",kind:"enum",T:ke.getEnumType(Um)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:xa,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var Bm;(function(g){g[g.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",g[g.TYPE_DOUBLE=1]="TYPE_DOUBLE",g[g.TYPE_FLOAT=2]="TYPE_FLOAT",g[g.TYPE_INT64=3]="TYPE_INT64",g[g.TYPE_UINT64=4]="TYPE_UINT64",g[g.TYPE_INT32=5]="TYPE_INT32",g[g.TYPE_FIXED64=6]="TYPE_FIXED64",g[g.TYPE_FIXED32=7]="TYPE_FIXED32",g[g.TYPE_BOOL=8]="TYPE_BOOL",g[g.TYPE_STRING=9]="TYPE_STRING",g[g.TYPE_GROUP=10]="TYPE_GROUP",g[g.TYPE_MESSAGE=11]="TYPE_MESSAGE",g[g.TYPE_BYTES=12]="TYPE_BYTES",g[g.TYPE_UINT32=13]="TYPE_UINT32",g[g.TYPE_ENUM=14]="TYPE_ENUM",g[g.TYPE_SFIXED32=15]="TYPE_SFIXED32",g[g.TYPE_SFIXED64=16]="TYPE_SFIXED64",g[g.TYPE_SINT32=17]="TYPE_SINT32",g[g.TYPE_SINT64=18]="TYPE_SINT64"})(Bm||(Bm={})),ke.util.setEnumType(Bm,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var Um;(function(g){g[g.UNKNOWN=0]="UNKNOWN",g[g.OPTIONAL=1]="OPTIONAL",g[g.REQUIRED=2]="REQUIRED",g[g.REPEATED=3]="REPEATED"})(Um||(Um={})),ke.util.setEnumType(Um,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);class Fd extends A{constructor(u){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=na.PROTO2,this.edition="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new Fd().fromBinary(u,f)}static fromJson(u,f){return new Fd().fromJson(u,f)}static fromJsonString(u,f){return new Fd().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Fd,u,f)}}Fd.runtime=ke,Fd.typeName="google.protobuf.Enum",Fd.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Lc,repeated:!0},{no:3,name:"options",kind:"message",T:xa,repeated:!0},{no:4,name:"source_context",kind:"message",T:ss},{no:5,name:"syntax",kind:"enum",T:ke.getEnumType(na)},{no:6,name:"edition",kind:"scalar",T:9}]);class Lc extends A{constructor(u){super(),this.name="",this.number=0,this.options=[],ke.util.initPartial(u,this)}static fromBinary(u,f){return new Lc().fromBinary(u,f)}static fromJson(u,f){return new Lc().fromJson(u,f)}static fromJsonString(u,f){return new Lc().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(Lc,u,f)}}Lc.runtime=ke,Lc.typeName="google.protobuf.EnumValue",Lc.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:xa,repeated:!0}]);class xa extends A{constructor(u){super(),this.name="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new xa().fromBinary(u,f)}static fromJson(u,f){return new xa().fromJson(u,f)}static fromJsonString(u,f){return new xa().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(xa,u,f)}}xa.runtime=ke,xa.typeName="google.protobuf.Option",xa.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Wo}]);class He extends A{constructor(u){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=na.PROTO2,ke.util.initPartial(u,this)}static fromBinary(u,f){return new He().fromBinary(u,f)}static fromJson(u,f){return new He().fromJson(u,f)}static fromJsonString(u,f){return new He().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(He,u,f)}}He.runtime=ke,He.typeName="google.protobuf.Api",He.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:vt,repeated:!0},{no:3,name:"options",kind:"message",T:xa,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:ss},{no:6,name:"mixins",kind:"message",T:ut,repeated:!0},{no:7,name:"syntax",kind:"enum",T:ke.getEnumType(na)}]);class vt extends A{constructor(u){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=na.PROTO2,ke.util.initPartial(u,this)}static fromBinary(u,f){return new vt().fromBinary(u,f)}static fromJson(u,f){return new vt().fromJson(u,f)}static fromJsonString(u,f){return new vt().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(vt,u,f)}}vt.runtime=ke,vt.typeName="google.protobuf.Method",vt.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:xa,repeated:!0},{no:7,name:"syntax",kind:"enum",T:ke.getEnumType(na)}]);class ut extends A{constructor(u){super(),this.name="",this.root="",ke.util.initPartial(u,this)}static fromBinary(u,f){return new ut().fromBinary(u,f)}static fromJson(u,f){return new ut().fromJson(u,f)}static fromJsonString(u,f){return new ut().fromJsonString(u,f)}static equals(u,f){return ke.util.equals(ut,u,f)}}ut.runtime=ke,ut.typeName="google.protobuf.Mixin",ut.fields=ke.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}]);const pn=Object.freeze(Object.defineProperty({__proto__:null,Any:Wo,Api:He,BinaryReader:Me,BinaryWriter:Pe,BoolValue:Ts,BytesValue:Yo,CodeGeneratorRequest:Dl,CodeGeneratorResponse:$d,get CodeGeneratorResponse_Feature(){return Dy},CodeGeneratorResponse_File:Nc,DescriptorProto:El,DescriptorProto_ExtensionRange:pu,DescriptorProto_ReservedRange:mu,DoubleValue:Oo,Duration:ws,get Edition(){return gi},Empty:Tu,Enum:Fd,EnumDescriptorProto:Tl,EnumDescriptorProto_EnumReservedRange:xl,EnumOptions:Tc,EnumValue:Lc,EnumValueDescriptorProto:Ec,EnumValueOptions:xc,ExtensionRangeOptions:wl,ExtensionRangeOptions_Declaration:gu,get ExtensionRangeOptions_VerificationState(){return Pm},FeatureSet:Ii,FeatureSetDefaults:Dr,FeatureSetDefaults_FeatureSetEditionDefault:_c,get FeatureSet_EnumType(){return t1},get FeatureSet_FieldPresence(){return e1},get FeatureSet_JsonFormat(){return ai},get FeatureSet_MessageEncoding(){return r1},get FeatureSet_RepeatedFieldEncoding(){return pp},get FeatureSet_Utf8Validation(){return n1},Field:Mc,FieldDescriptorProto:Hs,get FieldDescriptorProto_Label(){return Bf},get FieldDescriptorProto_Type(){return xr},FieldMask:xu,FieldOptions:Su,get FieldOptions_CType(){return Mm},FieldOptions_EditionDefault:Eu,get FieldOptions_JSType(){return Pd},get FieldOptions_OptionRetention(){return Lm},get FieldOptions_OptionTargetType(){return $m},get Field_Cardinality(){return Um},get Field_Kind(){return Bm},FileDescriptorProto:Sl,FileDescriptorSet:Ol,FileOptions:Cl,get FileOptions_OptimizeMode(){return vu},FloatValue:So,GeneratedCodeInfo:Ic,GeneratedCodeInfo_Annotation:Dc,get GeneratedCodeInfo_Annotation_Semantic(){return i1},Int32Value:Ni,Int64Value:Il,ListValue:Rl,get LongType(){return V},Message:A,MessageOptions:Ou,Method:vt,MethodDescriptorProto:kl,get MethodIdempotency(){return Jg},get MethodKind(){return js},MethodOptions:kc,get MethodOptions_IdempotencyLevel(){return Md},Mixin:ut,get NullValue(){return Ld},OneofDescriptorProto:bu,OneofOptions:wc,Option:xa,get ScalarType(){return M},ServiceDescriptorProto:yu,ServiceOptions:wu,SourceCodeInfo:Ac,SourceCodeInfo_Location:Rc,SourceContext:ss,StringValue:jf,Struct:vo,get Syntax(){return na},Timestamp:zf,Type:Pc,UInt32Value:Eo,UInt64Value:Qo,UninterpretedOption:Za,UninterpretedOption_NamePart:Cc,Value:Ws,Version:as,get WireType(){return he},codegenInfo:ky,createDescriptorSet:Cy,createRegistry:s_,createRegistryFromDescriptors:aP,proto2:Ie,proto3:ke,protoBase64:Xt,protoDelimited:hp,protoDouble:Gn,protoInt64:Se,toPlainMessage:Iy},Symbol.toStringTag,{value:"Module"}));function sr(g){const u=o[g];return typeof u!="string"?g.toString():u[0].toLowerCase()+u.substring(1).replace(/[A-Z]/g,f=>"_"+f.toLowerCase())}class Kn extends Error{constructor(u,f=o.Unknown,y,E,N){super(Fa(u,f)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=u,this.code=f,this.metadata=new Headers(y??{}),this.details=E??[],this.cause=N}static from(u,f=o.Unknown){return u instanceof Kn?u:u instanceof Error?u.name=="AbortError"?new Kn(u.message,o.Canceled):new Kn(u.message,f,void 0,void 0,u):new Kn(String(u),f,void 0,void 0,u)}findDetails(u){const f="typeName"in u?{findMessage:E=>E===u.typeName?u:void 0}:u,y=[];for(const E of this.details){if(E instanceof A){f.findMessage(E.getType().typeName)&&y.push(E);continue}const N=f.findMessage(E.type);if(N)try{y.push(N.fromBinary(E.value))}catch{}}return y}}function Fa(g,u){return g.length?`[${sr(u)}] ${g}`:`[${sr(u)}]`}function bi(g,u,f){try{const y=Xt.dec(g);return u?u.fromBinary(y,f):y}catch(y){throw Kn.from(y,o.DataLoss)}}function YE(g,u){const f={};for(const[y,E]of Object.entries(g.methods)){const N=u(Object.assign(Object.assign({},E),{localName:y,service:g}));N!=null&&(f[y]=N)}return f}function o_(g){let u,f=new Uint8Array(0);function y(E){const N=new Uint8Array(f.length+E.length);N.set(f),N.set(E,f.length),f=N}return new ReadableStream({start(){u=g.getReader()},async pull(E){let N;for(;;){if(N===void 0&&f.byteLength>=5){let re=0;for(let se=1;se<5;se++)re=(re<<8)+f[se];N={flags:f[0],length:re}}if(N!==void 0&&f.byteLength>=N.length+5)break;const Z=await u.read();if(Z.done)break;y(Z.value)}if(N===void 0){if(f.byteLength==0){E.close();return}E.error(new Kn("premature end of stream",o.DataLoss));return}const B=f.subarray(5,5+N.length);f=f.subarray(5+N.length),E.enqueue({flags:N.flags,data:B})}})}function qo(g,u){const f=new Uint8Array(u.length+5);f.set(u,5);const y=new DataView(f.buffer,f.byteOffset,f.byteLength);return y.setUint8(0,g),y.setUint32(1,u.length),f}var Ny=globalThis&&globalThis.__asyncValues||function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=g[Symbol.asyncIterator],f;return u?u.call(g):(g=typeof __values=="function"?__values(g):g[Symbol.iterator](),f={},y("next"),y("throw"),y("return"),f[Symbol.asyncIterator]=function(){return this},f);function y(N){f[N]=g[N]&&function(B){return new Promise(function(Z,re){B=g[N](B),E(Z,re,B.done,B.value)})}}function E(N,B,Z,re){Promise.resolve(re).then(function(se){N({value:se,done:Z})},B)}},o1=globalThis&&globalThis.__await||function(g){return this instanceof o1?(this.v=g,this):new o1(g)},zm=globalThis&&globalThis.__asyncGenerator||function(g,u,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=f.apply(g,u||[]),E,N=[];return E={},B("next"),B("throw"),B("return"),E[Symbol.asyncIterator]=function(){return this},E;function B(Be){y[Be]&&(E[Be]=function(ft){return new Promise(function(Wt,mn){N.push([Be,ft,Wt,mn])>1||Z(Be,ft)})})}function Z(Be,ft){try{re(y[Be](ft))}catch(Wt){mt(N[0][3],Wt)}}function re(Be){Be.value instanceof o1?Promise.resolve(Be.value.v).then(se,xe):mt(N[0][2],Be)}function se(Be){Z("next",Be)}function xe(Be){Z("throw",Be)}function mt(Be,ft){Be(ft),N.shift(),N.length&&Z(N[0][0],N[0][1])}},Py=globalThis&&globalThis.__asyncDelegator||function(g){var u,f;return u={},y("next"),y("throw",function(E){throw E}),y("return"),u[Symbol.iterator]=function(){return this},u;function y(E,N){u[E]=g[E]?function(B){return(f=!f)?{value:o1(g[E](B)),done:!1}:N?N(B):B}:N}};function My(g){return zm(this,arguments,function*(){yield o1(yield*Py(Ny(g)))})}var ei=globalThis&&globalThis.__asyncValues||function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=g[Symbol.asyncIterator],f;return u?u.call(g):(g=typeof __values=="function"?__values(g):g[Symbol.iterator](),f={},y("next"),y("throw"),y("return"),f[Symbol.asyncIterator]=function(){return this},f);function y(N){f[N]=g[N]&&function(B){return new Promise(function(Z,re){B=g[N](B),E(Z,re,B.done,B.value)})}}function E(N,B,Z,re){Promise.resolve(re).then(function(se){N({value:se,done:Z})},B)}},jm=globalThis&&globalThis.__await||function(g){return this instanceof jm?(this.v=g,this):new jm(g)},l_=globalThis&&globalThis.__asyncDelegator||function(g){var u,f;return u={},y("next"),y("throw",function(E){throw E}),y("return"),u[Symbol.iterator]=function(){return this},u;function y(E,N){u[E]=g[E]?function(B){return(f=!f)?{value:jm(g[E](B)),done:!1}:N?N(B):B}:N}},Ly=globalThis&&globalThis.__asyncGenerator||function(g,u,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=f.apply(g,u||[]),E,N=[];return E={},B("next"),B("throw"),B("return"),E[Symbol.asyncIterator]=function(){return this},E;function B(Be){y[Be]&&(E[Be]=function(ft){return new Promise(function(Wt,mn){N.push([Be,ft,Wt,mn])>1||Z(Be,ft)})})}function Z(Be,ft){try{re(y[Be](ft))}catch(Wt){mt(N[0][3],Wt)}}function re(Be){Be.value instanceof jm?Promise.resolve(Be.value.v).then(se,xe):mt(N[0][2],Be)}function se(Be){Z("next",Be)}function xe(Be){Z("throw",Be)}function mt(Be,ft){Be(ft),N.shift(),N.length&&Z(N[0][0],N[0][1])}};function cP(g,u){return YE(g,f=>{switch(f.kind){case js.Unary:return dP(u,g,f);case js.ServerStreaming:return fP(u,g,f);case js.ClientStreaming:return $y(u,g,f);case js.BiDiStreaming:return Hf(u,g,f);default:return null}})}function dP(g,u,f){return async function(y,E){var N,B;const Z=await g.unary(u,f,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,y,E==null?void 0:E.contextValues);return(N=E==null?void 0:E.onHeader)===null||N===void 0||N.call(E,Z.header),(B=E==null?void 0:E.onTrailer)===null||B===void 0||B.call(E,Z.trailer),Z.message}}function fP(g,u,f){return function(y,E){return l1(g.stream(u,f,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,My([y]),E==null?void 0:E.contextValues),E)}}function $y(g,u,f){return async function(y,E){var N,B,Z,re,se,xe;const mt=await g.stream(u,f,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,y,E==null?void 0:E.contextValues);(se=E==null?void 0:E.onHeader)===null||se===void 0||se.call(E,mt.header);let Be;try{for(var ft=!0,Wt=ei(mt.message),mn;mn=await Wt.next(),N=mn.done,!N;ft=!0)re=mn.value,ft=!1,Be=re}catch(Sn){B={error:Sn}}finally{try{!ft&&!N&&(Z=Wt.return)&&await Z.call(Wt)}finally{if(B)throw B.error}}if(!Be)throw new Kn("protocol error: missing response message",o.Internal);return(xe=E==null?void 0:E.onTrailer)===null||xe===void 0||xe.call(E,mt.trailer),Be}}function Hf(g,u,f){return function(y,E){return l1(g.stream(u,f,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,y,E==null?void 0:E.contextValues),E)}}function l1(g,u){const f=function(){var y,E;return Ly(this,arguments,function*(){const N=yield jm(g);(y=u==null?void 0:u.onHeader)===null||y===void 0||y.call(u,N.header),yield jm(yield*l_(ei(N.message))),(E=u==null?void 0:u.onTrailer)===null||E===void 0||E.call(u,N.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>f.next()})}}function u_(...g){const u=new AbortController,f=g.filter(E=>E!==void 0).concat(u.signal);for(const E of f){if(E.aborted){y.apply(E);break}E.addEventListener("abort",y)}function y(){u.signal.aborted||u.abort(qE(this));for(const E of f)E.removeEventListener("abort",y)}return u}function Fy(g){const u=new AbortController,f=()=>{u.abort(new Kn("the operation timed out",o.DeadlineExceeded))};let y;return g!==void 0&&(g<=0?f():y=setTimeout(f,g)),{signal:u.signal,cleanup:()=>clearTimeout(y)}}function qE(g){if(!g.aborted)return;if(g.reason!==void 0)return g.reason;const u=new Error("This operation was aborted");return u.name="AbortError",u}function GE(){return{get(g){return g.id in this?this[g.id]:g.defaultValue},set(g,u){return this[g.id]=u,this},delete(g){return delete this[g.id],this}}}const Hm=128;function ZE(g){const u=new Headers,f=new TextDecoder().decode(g).split(`\r +`);for(const y of f){if(y==="")continue;const E=y.indexOf(":");if(E>0){const N=y.substring(0,E).trim(),B=y.substring(E+1).trim();u.append(N,B)}}return u}const u1="Content-Type",gp="Grpc-Timeout",c1="Grpc-Status",c_="Grpc-Message",hP="Grpc-Status-Details-Bin",pP="User-Agent",By="X-User-Agent",Uy="X-Grpc-Web",XE="application/grpc-web+proto",mP="application/grpc-web+json";class $c extends A{constructor(u){super(),this.code=0,this.message="",this.details=[],ke.util.initPartial(u,this)}static fromBinary(u,f){return new $c().fromBinary(u,f)}static fromJson(u,f){return new $c().fromJson(u,f)}static fromJsonString(u,f){return new $c().fromJsonString(u,f)}static equals(u,f){return ke.util.equals($c,u,f)}}$c.runtime=ke,$c.typeName="google.rpc.Status",$c.fields=ke.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Wo,repeated:!0}]);const gP="0";function d_(g){var u;const f=g.get(hP);if(f!=null){const E=bi(f,$c);if(E.code==0)return;const N=new Kn(E.message,E.code,g);return N.details=E.details.map(B=>({type:B.typeUrl.substring(B.typeUrl.lastIndexOf("/")+1),value:B.value})),N}const y=g.get(c1);if(y!=null){if(y===gP)return;const E=parseInt(y,10);return E in o?new Kn(decodeURIComponent((u=g.get(c_))!==null&&u!==void 0?u:""),E,g):new Kn(`invalid grpc-status: ${y}`,o.Internal,g)}}function ka(g,u,f){const y=typeof u=="string"?u:u.typeName,E=typeof f=="string"?f:f.name;return g.toString().replace(/\/?$/,`/${y}/${E}`)}function os(g,u){return u instanceof A?u:new g(u)}function bP(g,u){function f(y){return y.done===!0?y:{done:y.done,value:os(g,y.value)}}return{[Symbol.asyncIterator](){const y=u[Symbol.asyncIterator](),E={next:()=>y.next().then(f)};return y.throw!==void 0&&(E.throw=N=>y.throw(N).then(f)),y.return!==void 0&&(E.return=N=>y.return(N).then(f)),E}}}function yP(g){var u;const f=Object.assign({},g);return(u=f.ignoreUnknownFields)!==null&&u!==void 0||(f.ignoreUnknownFields=!0),f}function KE(g,u,f,y){const E=u?f_(g.I,y):zy(g.I,f);return{parse:(u?f_(g.O,y):zy(g.O,f)).parse,serialize:E.serialize}}function f_(g,u){return{parse(f){try{return g.fromBinary(f,u)}catch(y){const E=y instanceof Error?y.message:String(y);throw new Kn(`parse binary: ${E}`,o.InvalidArgument)}},serialize(f){try{return f.toBinary(u)}catch(y){const E=y instanceof Error?y.message:String(y);throw new Kn(`serialize binary: ${E}`,o.Internal)}}}}function zy(g,u){var f,y;const E=(f=u==null?void 0:u.textEncoder)!==null&&f!==void 0?f:new TextEncoder,N=(y=u==null?void 0:u.textDecoder)!==null&&y!==void 0?y:new TextDecoder,B=yP(u);return{parse(Z){try{const re=N.decode(Z);return g.fromJsonString(re,B)}catch(re){throw Kn.from(re,o.InvalidArgument)}},serialize(Z){try{const re=Z.toJsonString(B);return E.encode(re)}catch(re){throw Kn.from(re,o.Internal)}}}}function d1(g){const u=Vm(g.next,g.interceptors),[f,y,E]=bp(g),N=Object.assign(Object.assign({},g.req),{message:os(g.req.method.I,g.req.message),signal:f});return u(N).then(B=>(E(),B),y)}function JE(g){const u=Vm(g.next,g.interceptors),[f,y,E]=bp(g),N=Object.assign(Object.assign({},g.req),{message:bP(g.req.method.I,g.req.message),signal:f});let B=!1;return f.addEventListener("abort",function(){var Z,re;const se=g.req.message[Symbol.asyncIterator]();B||(Z=se.throw)===null||Z===void 0||Z.call(se,this.reason).catch(()=>{}),(re=se.return)===null||re===void 0||re.call(se).catch(()=>{})}),u(N).then(Z=>Object.assign(Object.assign({},Z),{message:{[Symbol.asyncIterator](){const re=Z.message[Symbol.asyncIterator]();return{next(){return re.next().then(se=>(se.done==!0&&(B=!0,E()),se),y)}}}}}),y)}function bp(g){const{signal:u,cleanup:f}=Fy(g.timeoutMs),y=u_(g.signal,u);return[y.signal,function(N){const B=Kn.from(u.aborted?qE(u):N);return y.abort(B),f(),Promise.reject(B)},function(){f(),y.abort()}]}function Vm(g,u){var f;return(f=u==null?void 0:u.concat().reverse().reduce((y,E)=>E(y),g))!==null&&f!==void 0?f:g}function f1(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function h1(g,u){const f=d_(g);if(f)throw u.forEach((y,E)=>{f.metadata.append(E,y)}),f}function yp(g,u,f,y){const E=new Headers(f??{});return E.set(u1,g?XE:mP),E.set(Uy,"1"),E.set(By,"connect-es/1.2.0"),y&&E.set(pP,"connect-es/1.2.0"),u!==void 0&&E.set(gp,`${u}m`),E}function vP(g){switch(g){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function h_(g,u){var f;if(g>=200&&g<300){const y=d_(u);if(y)throw y;return{foundStatus:u.has(c1)}}throw new Kn(decodeURIComponent((f=u.get(c_))!==null&&f!==void 0?f:`HTTP ${g}`),vP(g),u)}var vp=globalThis&&globalThis.__await||function(g){return this instanceof vp?(this.v=g,this):new vp(g)},OP=globalThis&&globalThis.__asyncGenerator||function(g,u,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=f.apply(g,u||[]),E,N=[];return E={},B("next"),B("throw"),B("return"),E[Symbol.asyncIterator]=function(){return this},E;function B(Be){y[Be]&&(E[Be]=function(ft){return new Promise(function(Wt,mn){N.push([Be,ft,Wt,mn])>1||Z(Be,ft)})})}function Z(Be,ft){try{re(y[Be](ft))}catch(Wt){mt(N[0][3],Wt)}}function re(Be){Be.value instanceof vp?Promise.resolve(Be.value.v).then(se,xe):mt(N[0][2],Be)}function se(Be){Z("next",Be)}function xe(Be){Z("throw",Be)}function mt(Be,ft){Be(ft),N.shift(),N.length&&Z(N[0][0],N[0][1])}};function SP(g){var u;f1();const f=(u=g.useBinaryFormat)!==null&&u!==void 0?u:!0;return{async unary(y,E,N,B,Z,re,se){var xe;const{serialize:mt,parse:Be}=KE(E,f,g.jsonOptions,g.binaryOptions);return B=B===void 0?g.defaultTimeoutMs:B<=0?void 0:B,await d1({interceptors:g.interceptors,signal:N,timeoutMs:B,req:{stream:!1,service:y,method:E,url:ka(g.baseUrl,y,E),init:{method:"POST",credentials:(xe=g.credentials)!==null&&xe!==void 0?xe:"same-origin",redirect:"error",mode:"cors"},header:yp(f,B,Z,!1),contextValues:se??GE(),message:re},next:async ft=>{var Wt;const Sn=await((Wt=g.fetch)!==null&&Wt!==void 0?Wt:globalThis.fetch)(ft.url,Object.assign(Object.assign({},ft.init),{headers:ft.header,signal:ft.signal,body:qo(0,mt(ft.message))}));if(h_(Sn.status,Sn.headers),!Sn.body)throw"missing response body";const cr=o_(Sn.body).getReader();let yi,jn;for(;;){const dr=await cr.read();if(dr.done)break;const{flags:vi,data:Pi}=dr.value;if(vi===Hm){if(yi!==void 0)throw"extra trailer";yi=ZE(Pi);continue}if(jn!==void 0)throw"extra message";jn=Be(Pi)}if(yi===void 0)throw"missing trailer";if(h1(yi,Sn.headers),jn===void 0)throw"missing message";return{stream:!1,header:Sn.headers,message:jn,trailer:yi}}})},async stream(y,E,N,B,Z,re,se){var xe;const{serialize:mt,parse:Be}=KE(E,f,g.jsonOptions,g.binaryOptions);function ft(mn,Sn,cr,yi){return OP(this,arguments,function*(){const dr=o_(mn).getReader();if(Sn){if(!(yield vp(dr.read())).done)throw"extra data for trailers-only";return yield vp(void 0)}let vi=!1;for(;;){const Pi=yield vp(dr.read());if(Pi.done)break;const{flags:Cp,data:sh}=Pi.value;if((Cp&Hm)===Hm){if(vi)throw"extra trailer";vi=!0;const H1=ZE(sh);h1(H1,yi),H1.forEach((F7,B7)=>cr.set(B7,F7));continue}if(vi)throw"extra message";yield yield vp(Be(sh))}if(!vi)throw"missing trailer"})}async function Wt(mn){if(E.kind!=js.ServerStreaming)throw"The fetch API does not support streaming request bodies";const Sn=await mn[Symbol.asyncIterator]().next();if(Sn.done==!0)throw"missing request message";return qo(0,mt(Sn.value))}return B=B===void 0?g.defaultTimeoutMs:B<=0?void 0:B,JE({interceptors:g.interceptors,signal:N,timeoutMs:B,req:{stream:!0,service:y,method:E,url:ka(g.baseUrl,y,E),init:{method:"POST",credentials:(xe=g.credentials)!==null&&xe!==void 0?xe:"same-origin",redirect:"error",mode:"cors"},header:yp(f,B,Z,!1),contextValues:se??GE(),message:re},next:async mn=>{var Sn;const yi=await((Sn=g.fetch)!==null&&Sn!==void 0?Sn:globalThis.fetch)(mn.url,Object.assign(Object.assign({},mn.init),{headers:mn.header,signal:mn.signal,body:await Wt(mn.message)})),{foundStatus:jn}=h_(yi.status,yi.headers);if(!yi.body)throw"missing response body";const dr=new Headers;return Object.assign(Object.assign({},mn),{header:yi.headers,trailer:dr,message:ft(yi.body,jn,dr,yi.headers)})}})}}}var It={exports:{}},Vn=It.exports;Object.defineProperty(Vn,"__esModule",{value:!0});const{proto3:Un,StringValue:le,Timestamp:ku}=pn,Op=Un.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),Go=Un.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),_r=Un.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:Nl},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Vy}}]),EP=Un.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:M_},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:p_,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:kn},{no:6,name:"is_removed",kind:"scalar",T:8}]),p_=Un.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:m_},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:Vf,repeated:!0},{no:4,name:"presence_change",kind:"message",T:m1}]),m_=Un.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),Vf=Un.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:g_,oneof:"body"},{no:2,name:"add",kind:"message",T:b_,oneof:"body"},{no:3,name:"move",kind:"message",T:y_,oneof:"body"},{no:4,name:"remove",kind:"message",T:v_,oneof:"body"},{no:5,name:"edit",kind:"message",T:O_,oneof:"body"},{no:6,name:"select",kind:"message",T:Fc,oneof:"body"},{no:7,name:"style",kind:"message",T:S_,oneof:"body"},{no:8,name:"increase",kind:"message",T:E_,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:w_,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:T_,oneof:"body"}]),g_=Un.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:jy},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Set"}),b_=Un.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"prev_created_at",kind:"message",T:kn},{no:3,name:"value",kind:"message",T:jy},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Add"}),y_=Un.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"prev_created_at",kind:"message",T:kn},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Move"}),v_=Un.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Remove"}),O_=Un.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qs},{no:3,name:"to",kind:"message",T:Qs},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:kn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),Fc=Un.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qs},{no:3,name:"to",kind:"message",T:Qs},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Select"}),S_=Un.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qs},{no:3,name:"to",kind:"message",T:Qs},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:kn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}}],{localName:"Operation_Style"}),E_=Un.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"value",kind:"message",T:jy},{no:3,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Increase"}),w_=Un.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qm},{no:3,name:"to",kind:"message",T:Qm},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}},{no:5,name:"contents",kind:"message",T:D_,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_TreeEdit"}),T_=Un.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Qm},{no:3,name:"to",kind:"message",T:Qm},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:kn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}}],{localName:"Operation_TreeStyle"}),jy=Un.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"moved_at",kind:"message",T:kn},{no:3,name:"removed_at",kind:"message",T:kn},{no:4,name:"type",kind:"enum",T:Un.getEnumType(Op)},{no:5,name:"value",kind:"scalar",T:12}]),Nl=Un.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:x_,oneof:"body"},{no:2,name:"json_array",kind:"message",T:k_,oneof:"body"},{no:3,name:"primitive",kind:"message",T:C_,oneof:"body"},{no:5,name:"text",kind:"message",T:__,oneof:"body"},{no:6,name:"counter",kind:"message",T:A_,oneof:"body"},{no:7,name:"tree",kind:"message",T:Wf,oneof:"body"}]),x_=Un.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:R_,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_JSONObject"}),k_=Un.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:ew,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_JSONArray"}),C_=Un.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:Un.getEnumType(Op)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"moved_at",kind:"message",T:kn},{no:5,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Primitive"}),__=Un.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:I_,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Text"}),A_=Un.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:Un.getEnumType(Op)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"moved_at",kind:"message",T:kn},{no:5,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Counter"}),Wf=Un.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:nw,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Tree"}),R_=Un.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:Nl}]),ew=Un.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:ew},{no:2,name:"element",kind:"message",T:Nl}]),Zo=Un.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:kn},{no:3,name:"is_removed",kind:"scalar",T:8}]),I_=Un.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:tw},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:kn},{no:4,name:"ins_prev_id",kind:"message",T:tw},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Zo}}]),tw=Un.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5}]),nw=Un.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Wm},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:kn},{no:5,name:"ins_prev_id",kind:"message",T:Wm},{no:6,name:"ins_next_id",kind:"message",T:Wm},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Zo}}]),D_=Un.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:nw,repeated:!0}]),Wm=Un.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5}]),Qm=Un.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Wm},{no:2,name:"left_sibling_id",kind:"message",T:Wm}]),N_=Un.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:ku}]),wP=Un.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:ku},{no:9,name:"updated_at",kind:"message",T:ku}]),TP=Un.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:le},{no:2,name:"auth_webhook_url",kind:"message",T:le},{no:3,name:"auth_webhook_methods",kind:"message",T:Hy},{no:4,name:"client_deactivate_threshold",kind:"message",T:le}]),Hy=Un.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),p1=Un.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:ku},{no:5,name:"accessed_at",kind:"message",T:ku},{no:6,name:"updated_at",kind:"message",T:ku}]),m1=Un.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:Un.getEnumType(P_)},{no:2,name:"presence",kind:"message",T:Vy}]),P_=Un.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),Vy=Un.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),M_=Un.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),Qs=Un.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),kn=Un.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),Qf=Un.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Pl=Un.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:Un.getEnumType(Go)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Qf}]);Vn.ValueType=Op,Vn.DocEventType=Go,Vn.Snapshot=_r,Vn.ChangePack=EP,Vn.Change=p_,Vn.ChangeID=m_,Vn.Operation=Vf,Vn.Operation_Set=g_,Vn.Operation_Add=b_,Vn.Operation_Move=y_,Vn.Operation_Remove=v_,Vn.Operation_Edit=O_,Vn.Operation_Select=Fc,Vn.Operation_Style=S_,Vn.Operation_Increase=E_,Vn.Operation_TreeEdit=w_,Vn.Operation_TreeStyle=T_,Vn.JSONElementSimple=jy,Vn.JSONElement=Nl,Vn.JSONElement_JSONObject=x_,Vn.JSONElement_JSONArray=k_,Vn.JSONElement_Primitive=C_,Vn.JSONElement_Text=__,Vn.JSONElement_Counter=A_,Vn.JSONElement_Tree=Wf,Vn.RHTNode=R_,Vn.RGANode=ew,Vn.NodeAttr=Zo,Vn.TextNode=I_,Vn.TextNodeID=tw,Vn.TreeNode=nw,Vn.TreeNodes=D_,Vn.TreeNodeID=Wm,Vn.TreePos=Qm,Vn.User=N_,Vn.Project=wP,Vn.UpdatableProjectFields=TP,Vn.UpdatableProjectFields_AuthWebhookMethods=Hy,Vn.DocumentSummary=p1,Vn.PresenceChange=m1,Vn.PresenceChange_ChangeType=P_,Vn.Presence=Vy,Vn.Checkpoint=M_,Vn.TextNodePos=Qs,Vn.TimeTicket=kn,Vn.DocEventBody=Qf,Vn.DocEvent=Pl;const L_=(It.exports==null?{}:It.exports).default||It.exports,pr=(It.exports==null?{}:It.exports).ValueType,g1=(It.exports==null?{}:It.exports).DocEventType,Ym=(It.exports==null?{}:It.exports).Snapshot,Bd=(It.exports==null?{}:It.exports).ChangePack,rw=(It.exports==null?{}:It.exports).Change,Wy=(It.exports==null?{}:It.exports).ChangeID,qm=(It.exports==null?{}:It.exports).Operation,$_=(It.exports==null?{}:It.exports).Operation_Set,iw=(It.exports==null?{}:It.exports).Operation_Add,Xa=(It.exports==null?{}:It.exports).Operation_Move,Qy=(It.exports==null?{}:It.exports).Operation_Remove,aw=(It.exports==null?{}:It.exports).Operation_Edit,Bc=(It.exports==null?{}:It.exports).Operation_Select,Yy=(It.exports==null?{}:It.exports).Operation_Style,b1=(It.exports==null?{}:It.exports).Operation_Increase,Yf=(It.exports==null?{}:It.exports).Operation_TreeEdit,sw=(It.exports==null?{}:It.exports).Operation_TreeStyle,ma=(It.exports==null?{}:It.exports).JSONElementSimple,Ml=(It.exports==null?{}:It.exports).JSONElement,F_=(It.exports==null?{}:It.exports).JSONElement_JSONObject,B_=(It.exports==null?{}:It.exports).JSONElement_JSONArray,U_=(It.exports==null?{}:It.exports).JSONElement_Primitive,qy=(It.exports==null?{}:It.exports).JSONElement_Text,z_=(It.exports==null?{}:It.exports).JSONElement_Counter,Gm=(It.exports==null?{}:It.exports).JSONElement_Tree,ow=(It.exports==null?{}:It.exports).RHTNode,j_=(It.exports==null?{}:It.exports).RGANode,lw=(It.exports==null?{}:It.exports).NodeAttr,Zm=(It.exports==null?{}:It.exports).TextNode,H_=(It.exports==null?{}:It.exports).TextNodeID,V_=(It.exports==null?{}:It.exports).TreeNode,Gy=(It.exports==null?{}:It.exports).TreeNodes,uw=(It.exports==null?{}:It.exports).TreeNodeID,W_=(It.exports==null?{}:It.exports).TreePos,xP=(It.exports==null?{}:It.exports).User,kP=(It.exports==null?{}:It.exports).Project,Q_=(It.exports==null?{}:It.exports).UpdatableProjectFields,cw=(It.exports==null?{}:It.exports).UpdatableProjectFields_AuthWebhookMethods,CP=(It.exports==null?{}:It.exports).DocumentSummary,y1=(It.exports==null?{}:It.exports).PresenceChange,Xm=(It.exports==null?{}:It.exports).PresenceChange_ChangeType,dw=(It.exports==null?{}:It.exports).Presence,fw=(It.exports==null?{}:It.exports).Checkpoint,v1=(It.exports==null?{}:It.exports).TextNodePos,Y_=(It.exports==null?{}:It.exports).TimeTicket,q_=(It.exports==null?{}:It.exports).DocEventBody,G_=(It.exports==null?{}:It.exports).DocEvent,_P=Object.freeze(Object.defineProperty({__proto__:null,Change:rw,ChangeID:Wy,ChangePack:Bd,Checkpoint:fw,DocEvent:G_,DocEventBody:q_,DocEventType:g1,DocumentSummary:CP,JSONElement:Ml,JSONElementSimple:ma,JSONElement_Counter:z_,JSONElement_JSONArray:B_,JSONElement_JSONObject:F_,JSONElement_Primitive:U_,JSONElement_Text:qy,JSONElement_Tree:Gm,NodeAttr:lw,Operation:qm,Operation_Add:iw,Operation_Edit:aw,Operation_Increase:b1,Operation_Move:Xa,Operation_Remove:Qy,Operation_Select:Bc,Operation_Set:$_,Operation_Style:Yy,Operation_TreeEdit:Yf,Operation_TreeStyle:sw,Presence:dw,PresenceChange:y1,PresenceChange_ChangeType:Xm,Project:kP,RGANode:j_,RHTNode:ow,Snapshot:Ym,TextNode:Zm,TextNodeID:H_,TextNodePos:v1,TimeTicket:Y_,TreeNode:V_,TreeNodeID:uw,TreeNodes:Gy,TreePos:W_,UpdatableProjectFields:Q_,UpdatableProjectFields_AuthWebhookMethods:cw,User:xP,ValueType:pr,default:L_},Symbol.toStringTag,{value:"Module"}));var vr={exports:{}},Ka=vr.exports;Object.defineProperty(Ka,"__esModule",{value:!0});const{proto3:Ba}=pn,{ChangePack:Ud,DocEvent:hw}=L_||_P,AP=Ba.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),pw=Ba.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),Or=Ba.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),RP=Ba.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),IP=Ba.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Ud}]),O1=Ba.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Ud}]),Z_=Ba.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Ud},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),DP=Ba.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:Ud}]),NP=Ba.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),Ll=Ba.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:X_,oneof:"body"},{no:2,name:"event",kind:"message",T:hw,oneof:"body"}]),X_=Ba.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),Zy=Ba.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Ud}]),mw=Ba.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Ud}]),K_=Ba.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Ud},{no:4,name:"push_only",kind:"scalar",T:8}]),J_=Ba.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Ud}]),Xo=Ba.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),qf=Ba.makeMessageType("yorkie.v1.BroadcastResponse",[]);Ka.ActivateClientRequest=AP,Ka.ActivateClientResponse=pw,Ka.DeactivateClientRequest=Or,Ka.DeactivateClientResponse=RP,Ka.AttachDocumentRequest=IP,Ka.AttachDocumentResponse=O1,Ka.DetachDocumentRequest=Z_,Ka.DetachDocumentResponse=DP,Ka.WatchDocumentRequest=NP,Ka.WatchDocumentResponse=Ll,Ka.WatchDocumentResponse_Initialization=X_,Ka.RemoveDocumentRequest=Zy,Ka.RemoveDocumentResponse=mw,Ka.PushPullChangesRequest=K_,Ka.PushPullChangesResponse=J_,Ka.BroadcastRequest=Xo,Ka.BroadcastResponse=qf;const Xy=(vr.exports==null?{}:vr.exports).default||vr.exports,eA=(vr.exports==null?{}:vr.exports).ActivateClientRequest,Ky=(vr.exports==null?{}:vr.exports).ActivateClientResponse,tA=(vr.exports==null?{}:vr.exports).DeactivateClientRequest,gw=(vr.exports==null?{}:vr.exports).DeactivateClientResponse,nA=(vr.exports==null?{}:vr.exports).AttachDocumentRequest,bw=(vr.exports==null?{}:vr.exports).AttachDocumentResponse,yw=(vr.exports==null?{}:vr.exports).DetachDocumentRequest,Gf=(vr.exports==null?{}:vr.exports).DetachDocumentResponse,PP=(vr.exports==null?{}:vr.exports).WatchDocumentRequest,Zf=(vr.exports==null?{}:vr.exports).WatchDocumentResponse,rA=(vr.exports==null?{}:vr.exports).WatchDocumentResponse_Initialization,iA=(vr.exports==null?{}:vr.exports).RemoveDocumentRequest,vw=(vr.exports==null?{}:vr.exports).RemoveDocumentResponse,MP=(vr.exports==null?{}:vr.exports).PushPullChangesRequest,LP=(vr.exports==null?{}:vr.exports).PushPullChangesResponse,$P=(vr.exports==null?{}:vr.exports).BroadcastRequest,aA=(vr.exports==null?{}:vr.exports).BroadcastResponse,sA=Object.freeze(Object.defineProperty({__proto__:null,ActivateClientRequest:eA,ActivateClientResponse:Ky,AttachDocumentRequest:nA,AttachDocumentResponse:bw,BroadcastRequest:$P,BroadcastResponse:aA,DeactivateClientRequest:tA,DeactivateClientResponse:gw,DetachDocumentRequest:yw,DetachDocumentResponse:Gf,PushPullChangesRequest:MP,PushPullChangesResponse:LP,RemoveDocumentRequest:iA,RemoveDocumentResponse:vw,WatchDocumentRequest:PP,WatchDocumentResponse:Zf,WatchDocumentResponse_Initialization:rA,default:Xy},Symbol.toStringTag,{value:"Module"}));var Km={exports:{}},Ow=Km.exports;Object.defineProperty(Ow,"__esModule",{value:!0});const{ActivateClientRequest:oA,ActivateClientResponse:wo,AttachDocumentRequest:Uc,AttachDocumentResponse:FP,BroadcastRequest:BP,BroadcastResponse:Jy,DeactivateClientRequest:Jm,DeactivateClientResponse:lA,DetachDocumentRequest:uA,DetachDocumentResponse:UP,PushPullChangesRequest:cA,PushPullChangesResponse:e0,RemoveDocumentRequest:S1,RemoveDocumentResponse:zP,WatchDocumentRequest:dA,WatchDocumentResponse:fA}=Xy||sA,{MethodKind:Cu}=pn,hA={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:oA,O:wo,kind:Cu.Unary},deactivateClient:{name:"DeactivateClient",I:Jm,O:lA,kind:Cu.Unary},attachDocument:{name:"AttachDocument",I:Uc,O:FP,kind:Cu.Unary},detachDocument:{name:"DetachDocument",I:uA,O:UP,kind:Cu.Unary},removeDocument:{name:"RemoveDocument",I:S1,O:zP,kind:Cu.Unary},pushPullChanges:{name:"PushPullChanges",I:cA,O:e0,kind:Cu.Unary},watchDocument:{name:"WatchDocument",I:dA,O:fA,kind:Cu.ServerStreaming},broadcast:{name:"Broadcast",I:BP,O:Jy,kind:Cu.Unary}}};Ow.YorkieService=hA,(Km.exports==null?{}:Km.exports).default||Km.exports;const ev=(Km.exports==null?{}:Km.exports).YorkieService;/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -241,77 +242,77 @@ Error generating stack: `+a.message+` * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 - */var To=null;try{To=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function er(g,u,f){this.low=g|0,this.high=u|0,this.unsigned=!!f}er.prototype.__isLong__,Object.defineProperty(er.prototype,"__isLong__",{value:!0});function ks(g){return(g&&g.__isLong__)===!0}function Ow(g){var u=Math.clz32(g&-g);return g?31-u:u}er.isLong=ks;var S1={},Sw={};function zd(g,u){var f,y,E;return u?(g>>>=0,(E=0<=g&&g<256)&&(y=Sw[g],y)?y:(f=Ur(g,0,!0),E&&(Sw[g]=f),f)):(g|=0,(E=-128<=g&&g<128)&&(y=S1[g],y)?y:(f=Ur(g,g<0?-1:0,!1),E&&(S1[g]=f),f))}er.fromInt=zd;function $l(g,u){if(isNaN(g))return u?_u:Ko;if(u){if(g<0)return _u;if(g>=cA)return nv}else{if(g<=-zc)return xa;if(g+1>=zc)return E1}return g<0?$l(-g,u).neg():Ur(g%t0|0,g/t0|0,u)}er.fromNumber=$l;function Ur(g,u,f){return new er(g,u,f)}er.fromBits=Ur;var Fl=Math.pow;function ev(g,u,f){if(g.length===0)throw Error("empty string");if(typeof u=="number"?(f=u,u=!1):u=!!u,g==="NaN"||g==="Infinity"||g==="+Infinity"||g==="-Infinity")return u?_u:Ko;if(f=f||10,f<2||360)throw Error("interior hyphen");if(y===0)return ev(g.substring(1),u,f).neg();for(var E=$l(Fl(f,8)),N=Ko,B=0;B>>0:this.low},Ut.toNumber=function(){return this.unsigned?(this.high>>>0)*t0+(this.low>>>0):this.high*t0+(this.low>>>0)},Ut.toString=function(u){if(u=u||10,u<2||36>>0,xe=se.toString(u);if(B=re,B.isZero())return xe+Z;for(;xe.length<6;)xe="0"+xe;Z=""+xe+Z}},Ut.getHighBits=function(){return this.high},Ut.getHighBitsUnsigned=function(){return this.high>>>0},Ut.getLowBits=function(){return this.low},Ut.getLowBitsUnsigned=function(){return this.low>>>0},Ut.getNumBitsAbs=function(){if(this.isNegative())return this.eq(xa)?64:this.neg().getNumBitsAbs();for(var u=this.high!=0?this.high:this.low,f=31;f>0&&!(u&1<=0},Ut.isOdd=function(){return(this.low&1)===1},Ut.isEven=function(){return(this.low&1)===0},Ut.equals=function(u){return ks(u)||(u=Bl(u)),this.unsigned!==u.unsigned&&this.high>>>31===1&&u.high>>>31===1?!1:this.high===u.high&&this.low===u.low},Ut.eq=Ut.equals,Ut.notEquals=function(u){return!this.eq(u)},Ut.neq=Ut.notEquals,Ut.ne=Ut.notEquals,Ut.lessThan=function(u){return this.comp(u)<0},Ut.lt=Ut.lessThan,Ut.lessThanOrEqual=function(u){return this.comp(u)<=0},Ut.lte=Ut.lessThanOrEqual,Ut.le=Ut.lessThanOrEqual,Ut.greaterThan=function(u){return this.comp(u)>0},Ut.gt=Ut.greaterThan,Ut.greaterThanOrEqual=function(u){return this.comp(u)>=0},Ut.gte=Ut.greaterThanOrEqual,Ut.ge=Ut.greaterThanOrEqual,Ut.compare=function(u){if(ks(u)||(u=Bl(u)),this.eq(u))return 0;var f=this.isNegative(),y=u.isNegative();return f&&!y?-1:!f&&y?1:this.unsigned?u.high>>>0>this.high>>>0||u.high===this.high&&u.low>>>0>this.low>>>0?-1:1:this.sub(u).isNegative()?-1:1},Ut.comp=Ut.compare,Ut.negate=function(){return!this.unsigned&&this.eq(xa)?xa:this.not().add(jd)},Ut.neg=Ut.negate,Ut.add=function(u){ks(u)||(u=Bl(u));var f=this.high>>>16,y=this.high&65535,E=this.low>>>16,N=this.low&65535,B=u.high>>>16,Z=u.high&65535,re=u.low>>>16,se=u.low&65535,xe=0,mt=0,Be=0,ft=0;return ft+=N+se,Be+=ft>>>16,ft&=65535,Be+=E+re,mt+=Be>>>16,Be&=65535,mt+=y+Z,xe+=mt>>>16,mt&=65535,xe+=f+B,xe&=65535,Ur(Be<<16|ft,xe<<16|mt,this.unsigned)},Ut.subtract=function(u){return ks(u)||(u=Bl(u)),this.add(u.neg())},Ut.sub=Ut.subtract,Ut.multiply=function(u){if(this.isZero())return this;if(ks(u)||(u=Bl(u)),To){var f=To.mul(this.low,this.high,u.low,u.high);return Ur(f,To.get_high(),this.unsigned)}if(u.isZero())return this.unsigned?_u:Ko;if(this.eq(xa))return u.isOdd()?xa:Ko;if(u.eq(xa))return this.isOdd()?xa:Ko;if(this.isNegative())return u.isNegative()?this.neg().mul(u.neg()):this.neg().mul(u).neg();if(u.isNegative())return this.mul(u.neg()).neg();if(this.lt(tv)&&u.lt(tv))return $l(this.toNumber()*u.toNumber(),this.unsigned);var y=this.high>>>16,E=this.high&65535,N=this.low>>>16,B=this.low&65535,Z=u.high>>>16,re=u.high&65535,se=u.low>>>16,xe=u.low&65535,mt=0,Be=0,ft=0,jt=0;return jt+=B*xe,ft+=jt>>>16,jt&=65535,ft+=N*xe,Be+=ft>>>16,ft&=65535,ft+=B*se,Be+=ft>>>16,ft&=65535,Be+=E*xe,mt+=Be>>>16,Be&=65535,Be+=N*se,mt+=Be>>>16,Be&=65535,Be+=B*re,mt+=Be>>>16,Be&=65535,mt+=y*xe+E*se+N*re+B*Z,mt&=65535,Ur(ft<<16|jt,mt<<16|Be,this.unsigned)},Ut.mul=Ut.multiply,Ut.divide=function(u){if(ks(u)||(u=Bl(u)),u.isZero())throw Error("division by zero");if(To){if(!this.unsigned&&this.high===-2147483648&&u.low===-1&&u.high===-1)return this;var f=(this.unsigned?To.div_u:To.div_s)(this.low,this.high,u.low,u.high);return Ur(f,To.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?_u:Ko;var y,E,N;if(this.unsigned){if(u.unsigned||(u=u.toUnsigned()),u.gt(this))return _u;if(u.gt(this.shru(1)))return Op;N=_u}else{if(this.eq(xa)){if(u.eq(jd)||u.eq(zn))return xa;if(u.eq(xa))return jd;var B=this.shr(1);return y=B.div(u).shl(1),y.eq(Ko)?u.isNegative()?jd:zn:(E=this.sub(u.mul(y)),N=y.add(E.div(u)),N)}else if(u.eq(xa))return this.unsigned?_u:Ko;if(this.isNegative())return u.isNegative()?this.neg().div(u.neg()):this.neg().div(u).neg();if(u.isNegative())return this.div(u.neg()).neg();N=Ko}for(E=this;E.gte(u);){y=Math.max(1,Math.floor(E.toNumber()/u.toNumber()));for(var Z=Math.ceil(Math.log(y)/Math.LN2),re=Z<=48?1:Fl(2,Z-48),se=$l(y),xe=se.mul(u);xe.isNegative()||xe.gt(E);)y-=re,se=$l(y,this.unsigned),xe=se.mul(u);se.isZero()&&(se=jd),N=N.add(se),E=E.sub(xe)}return N},Ut.div=Ut.divide,Ut.modulo=function(u){if(ks(u)||(u=Bl(u)),To){var f=(this.unsigned?To.rem_u:To.rem_s)(this.low,this.high,u.low,u.high);return Ur(f,To.get_high(),this.unsigned)}return this.sub(this.div(u).mul(u))},Ut.mod=Ut.modulo,Ut.rem=Ut.modulo,Ut.not=function(){return Ur(~this.low,~this.high,this.unsigned)},Ut.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Ut.clz=Ut.countLeadingZeros,Ut.countTrailingZeros=function(){return this.low?Ow(this.low):Ow(this.high)+32},Ut.ctz=Ut.countTrailingZeros,Ut.and=function(u){return ks(u)||(u=Bl(u)),Ur(this.low&u.low,this.high&u.high,this.unsigned)},Ut.or=function(u){return ks(u)||(u=Bl(u)),Ur(this.low|u.low,this.high|u.high,this.unsigned)},Ut.xor=function(u){return ks(u)||(u=Bl(u)),Ur(this.low^u.low,this.high^u.high,this.unsigned)},Ut.shiftLeft=function(u){return ks(u)&&(u=u.toInt()),(u&=63)===0?this:u<32?Ur(this.low<>>32-u,this.unsigned):Ur(0,this.low<>>u|this.high<<32-u,this.high>>u,this.unsigned):Ur(this.high>>u-32,this.high>=0?0:-1,this.unsigned)},Ut.shr=Ut.shiftRight,Ut.shiftRightUnsigned=function(u){return ks(u)&&(u=u.toInt()),(u&=63)===0?this:u<32?Ur(this.low>>>u|this.high<<32-u,this.high>>>u,this.unsigned):u===32?Ur(this.high,0,this.unsigned):Ur(this.high>>>u-32,0,this.unsigned)},Ut.shru=Ut.shiftRightUnsigned,Ut.shr_u=Ut.shiftRightUnsigned,Ut.rotateLeft=function(u){var f;return ks(u)&&(u=u.toInt()),(u&=63)===0?this:u===32?Ur(this.high,this.low,this.unsigned):u<32?(f=32-u,Ur(this.low<>>f,this.high<>>f,this.unsigned)):(u-=32,f=32-u,Ur(this.high<>>f,this.low<>>f,this.unsigned))},Ut.rotl=Ut.rotateLeft,Ut.rotateRight=function(u){var f;return ks(u)&&(u=u.toInt()),(u&=63)===0?this:u===32?Ur(this.high,this.low,this.unsigned):u<32?(f=32-u,Ur(this.high<>>u,this.low<>>u,this.unsigned)):(u-=32,f=32-u,Ur(this.low<>>u,this.high<>>u,this.unsigned))},Ut.rotr=Ut.rotateRight,Ut.toSigned=function(){return this.unsigned?Ur(this.low,this.high,!1):this},Ut.toUnsigned=function(){return this.unsigned?this:Ur(this.low,this.high,!0)},Ut.toBytes=function(u){return u?this.toBytesLE():this.toBytesBE()},Ut.toBytesLE=function(){var u=this.high,f=this.low;return[f&255,f>>>8&255,f>>>16&255,f>>>24,u&255,u>>>8&255,u>>>16&255,u>>>24]},Ut.toBytesBE=function(){var u=this.high,f=this.low;return[u>>>24,u>>>16&255,u>>>8&255,u&255,f>>>24,f>>>16&255,f>>>8&255,f&255]},er.fromBytes=function(u,f,y){return y?er.fromBytesLE(u,f):er.fromBytesBE(u,f)},er.fromBytesLE=function(u,f){return new er(u[0]|u[1]<<8|u[2]<<16|u[3]<<24,u[4]|u[5]<<8|u[6]<<16|u[7]<<24,f)},er.fromBytesBE=function(u,f){return new er(u[4]<<24|u[5]<<16|u[6]<<8|u[7],u[0]<<24|u[1]<<16|u[2]<<8|u[3],f)};var Dr=(g=>(g.Ok="ok",g.ClientNotActive="client-not-active",g.Unimplemented="unimplemented",g.Unsupported="unsupported",g.DocumentNotAttached="document-not-attached",g.DocumentNotDetached="document-not-detached",g.DocumentRemoved="document-removed",g.InvalidObjectKey="invalid-object-key",g.InvalidArgument="invalid-argument",g))(Dr||{});class zr extends Error{constructor(u,f){super(f),s(this,"name","YorkieError"),s(this,"stack"),this.code=u,this.message=f,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function Ei(g){if(g instanceof Map){const u=Array.from(g);return new Map(JSON.parse(JSON.stringify(u)))}return JSON.parse(JSON.stringify(g))}const dA=g=>g?Object.entries(g).length===0:!0,n0=g=>{const u={};for(const[f,y]of Object.entries(g))u[f]=JSON.stringify(y);return u},Sp=g=>{const u={};for(const[f,y]of Object.entries(g))u[f]=JSON.parse(y);return u};var Xf=(g=>(g.Put="put",g.Clear="clear",g))(Xf||{});class rv{constructor(u,f){s(this,"context"),s(this,"presence"),this.context=u,this.presence=f}set(u,f){for(const y of Object.keys(u))this.presence[y]=u[y];this.context.setPresenceChange({type:"put",presence:Ei(this.presence)}),this.context.setReversePresence(u,f)}get(u){return this.presence[u]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const iv="000000000000000000000000",zP="FFFFFFFFFFFFFFFFFFFFFFFF";class Ys{constructor(u,f,y){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=u,this.delimiter=f,this.actorID=y}static of(u,f,y){return new Ys(u,f,y)}static fromStruct(u){return Ys.of(er.fromString(u.lamport,!0),u.delimiter,u.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(u){return new Ys(this.lamport,this.delimiter,u)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(u){return this.compare(u)>0}equals(u){return this.compare(u)===0}compare(u){if(this.lamport.greaterThan(u.lamport))return 1;if(u.lamport.greaterThan(this.lamport))return-1;const f=this.actorID.localeCompare(u.actorID);return f!==0?f:this.delimiter>u.delimiter?1:u.delimiter>this.delimiter?-1:0}}const Au=0,qs=4294967295,Ew=er.MAX_VALUE,Ru=new Ys(er.fromNumber(0),Au,iv);new Ys(er.fromNumber(1),Au+1,iv);const Ep=new Ys(Ew,qs,zP);var Jo=(g=>(g[g.Trivial=0]="Trivial",g[g.Debug=1]="Debug",g[g.Info=2]="Info",g[g.Warn=3]="Warn",g[g.Error=4]="Error",g[g.Fatal=5]="Fatal",g))(Jo||{});let wp=2;function w1(g){wp=g}const Lt={trivial:(...g)=>{wp>0||typeof console<"u"&&console.log("YORKIE T:",...g)},debug:(...g)=>{wp>1||typeof console<"u"&&console.log("YORKIE D:",...g)},info:(...g)=>{wp>2||typeof console<"u"&&console.log("YORKIE I:",...g)},warn:(...g)=>{wp>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...g):console.log("YORKIE W:",...g))},error:(...g)=>{wp>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...g):console.log("YORKIE E:",...g))},fatal:(g,...u)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...u):console.log("YORKIE F:",...u)),new Error(`YORKIE F: ${g}`)},isEnabled:g=>wp<=g};function Iu(g){return g.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(u){switch(u){case'"':case"\\":return"\\"+u;case` -`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return u}})}class T1{constructor(u){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=u}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(u){return!this.movedAt||u&&u.after(this.movedAt)?(this.movedAt=u,!0):!1}setRemovedAt(u){this.removedAt=u}remove(u){return u&&u.after(this.getPositionedAt())&&(!this.removedAt||u.after(this.removedAt))?(this.removedAt=u,!0):!1}isRemoved(){return!!this.removedAt}}class Kf extends T1{constructor(u){super(u)}}class ww{constructor(u,f){s(this,"strKey"),s(this,"value"),this.strKey=u,this.value=f}static of(u,f){return new ww(u,f)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(u){return this.value.remove(u)}}class x1{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new x1}set(u,f,y){let E;const N=this.nodeMapByKey.get(u);N!=null&&!N.isRemoved()&&N.remove(y)&&(E=N.getValue());const B=ww.of(u,f);return this.nodeMapByCreatedAt.set(f.getCreatedAt().toIDString(),B),(N==null||y.after(N.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(u,B),f.setMovedAt(y)),E}delete(u,f){this.nodeMapByCreatedAt.has(u.toIDString())||Lt.fatal(`fail to find ${u.toIDString()}`);const y=this.nodeMapByCreatedAt.get(u.toIDString());return y.remove(f),y.getValue()}subPathOf(u){const f=this.nodeMapByCreatedAt.get(u.toIDString());if(f)return f.getStrKey()}purge(u){const f=this.nodeMapByCreatedAt.get(u.getCreatedAt().toIDString());if(!f){Lt.fatal(`fail to find ${u.getCreatedAt().toIDString()}`);return}const y=this.nodeMapByKey.get(f.getStrKey());f===y&&this.nodeMapByKey.delete(y.getStrKey()),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}deleteByKey(u,f){const y=this.nodeMapByKey.get(u);if(y!=null&&y.remove(f))return y.getValue()}has(u){const f=this.nodeMapByKey.get(u);return f==null?!1:!f.isRemoved()}getByID(u){return this.nodeMapByCreatedAt.get(u.toIDString())}get(u){const f=this.nodeMapByKey.get(u);if(!(!f||f.isRemoved()))return f}*[Symbol.iterator](){for(const[,u]of this.nodeMapByKey)yield u}}class Gs extends Kf{constructor(u,f){super(u),s(this,"memberNodes"),this.memberNodes=f}static create(u,f){if(!f)return new Gs(u,x1.create());const y=x1.create();for(const[E,N]of Object.entries(f))y.set(E,N.deepcopy(),N.getCreatedAt());return new Gs(u,y)}subPathOf(u){return this.memberNodes.subPathOf(u)}purge(u){this.memberNodes.purge(u)}set(u,f,y){return this.memberNodes.set(u,f,y)}delete(u,f){return this.memberNodes.delete(u,f)}deleteByKey(u,f){return this.memberNodes.deleteByKey(u,f)}get(u){const f=this.memberNodes.get(u);return f==null?void 0:f.getValue()}getByID(u){const f=this.memberNodes.getByID(u);return f==null?void 0:f.getValue()}has(u){return this.memberNodes.has(u)}toJSON(){const u=[];for(const[f,y]of this)u.push(`"${Iu(f)}":${y.toJSON()}`);return`{${u.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const u={};for(const[f,y]of this){const{createdAt:E,value:N,type:B}=y.toJSForTest();u[f]={key:f,createdAt:E,value:N,type:B}}return{createdAt:this.getCreatedAt().toTestString(),value:u,type:"YORKIE_OBJECT"}}getKeys(){const u=Array();for(const[f]of this)u.push(f);return u}toSortedJSON(){var u;const f=Array();for(const[E]of this)f.push(E);const y=[];for(const E of f.sort()){const N=(u=this.memberNodes.get(E))==null?void 0:u.getValue();y.push(`"${Iu(E)}":${N.toSortedJSON()}`)}return`{${y.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const u=Gs.create(this.getCreatedAt());for(const f of this.memberNodes)u.memberNodes.set(f.getStrKey(),f.getValue().deepcopy(),this.getPositionedAt());return u.remove(this.getRemovedAt()),u}getDescendants(u){for(const f of this.memberNodes){const y=f.getValue();if(u(y,this))return;y instanceof Kf&&y.getDescendants(u)}}*[Symbol.iterator](){const u=new Set;for(const f of this.memberNodes)u.has(f.getStrKey())||(u.add(f.getStrKey()),f.isRemoved()||(yield[f.getStrKey(),f.getValue()]))}}var di=(g=>(g.Local="local",g.Remote="remote",g.UndoRedo="undoredo",g))(di||{});class Du{constructor(u,f){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=u,this.executedAt=f}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(u){this.executedAt&&(this.executedAt=this.executedAt.setActor(u))}setExecutedAt(u){this.executedAt=u}}class av{constructor(u){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=u,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(u){this.left=u}setRight(u){this.right=u}setParent(u){this.parent=u}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(u){this.weight+=u}initWeight(){this.weight=this.getLength()}}class r0{constructor(u){s(this,"root"),this.root=u}get length(){return this.root?this.root.getWeight():0}find(u){if(!this.root||u<0)return[void 0,0];let f=this.root;for(;;)if(f.hasLeft()&&u<=f.getLeftWeight())f=f.getLeft();else if(f.hasRight()&&f.getLeftWeight()+f.getLength()f.getLength()&&Lt.fatal(`out of index range: pos: ${u} > node.length: ${f.getLength()}`),[f,u]}indexOf(u){if(!u||u!==this.root&&!u.hasLinks())return-1;let f=0,y=u,E;for(;y;)(!E||E===y.getRight())&&(f+=y.getLength()+(y.hasLeft()?y.getLeftWeight():0)),E=y,y=y.getParent();return f-u.getLength()}getRoot(){return this.root}insert(u){return this.insertAfter(this.root,u)}insertAfter(u,f){return u?(this.splayNode(u),this.root=f,f.setRight(u.getRight()),u.hasRight()&&u.getRight().setParent(f),f.setLeft(u),u.setParent(f),u.setRight(),this.updateWeight(u),this.updateWeight(f),f):(this.root=f,f)}updateWeight(u){u.initWeight(),u.hasLeft()&&u.increaseWeight(u.getLeftWeight()),u.hasRight()&&u.increaseWeight(u.getRightWeight())}updateTreeWeight(u){for(;u;)this.updateWeight(u),u=u.getParent()}splayNode(u){if(u)for(;;)if(this.isLeftChild(u.getParent())&&this.isRightChild(u))this.rotateLeft(u),this.rotateRight(u);else if(this.isRightChild(u.getParent())&&this.isLeftChild(u))this.rotateRight(u),this.rotateLeft(u);else if(this.isLeftChild(u.getParent())&&this.isLeftChild(u))this.rotateRight(u.getParent()),this.rotateRight(u);else if(this.isRightChild(u.getParent())&&this.isRightChild(u))this.rotateLeft(u.getParent()),this.rotateLeft(u);else{this.isLeftChild(u)?this.rotateRight(u):this.isRightChild(u)&&this.rotateLeft(u),this.updateWeight(u);return}}delete(u){this.splayNode(u);const f=new r0(u.getLeft());f.root&&f.root.setParent();const y=new r0(u.getRight());if(y.root&&y.root.setParent(),f.root){const E=f.getRightmost();f.splayNode(E),f.root.setRight(y.root),y.root&&y.root.setParent(f.root),this.root=f.root}else this.root=y.root;u.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(u,f){if(!f){this.splayNode(u),this.cutOffRight(u);return}this.splayNode(u),this.splayNode(f),f.getLeft()!=u&&this.rotateRight(u),this.cutOffRight(u)}cutOffRight(u){const f=[];this.traversePostorder(u.getRight(),f);for(const y of f)y.initWeight();this.updateTreeWeight(u)}toTestString(){const u=[];return this.traverseInorder(this.root,u),u.map(f=>`[${f.getWeight()},${f.getLength()}]${f.getValue()||""}`).join("")}checkWeight(){const u=[];this.traverseInorder(this.root,u);for(const f of u)if(f.getWeight()!=f.getLength()+f.getLeftWeight()+f.getRightWeight())return!1;return!0}getRightmost(){let u=this.root;for(;u.hasRight();)u=u.getRight();return u}traverseInorder(u,f){u&&(this.traverseInorder(u.getLeft(),f),f.push(u),this.traverseInorder(u.getRight(),f))}traversePostorder(u,f){u&&(this.traversePostorder(u.getLeft(),f),this.traversePostorder(u.getRight(),f),f.push(u))}rotateLeft(u){const f=u.getParent();f.hasParent()?f===f.getParent().getLeft()?f.getParent().setLeft(u):f.getParent().setRight(u):this.root=u,u.setParent(f.getParent()),f.setRight(u.getLeft()),f.hasRight()&&f.getRight().setParent(f),u.setLeft(f),u.getLeft().setParent(u),this.updateWeight(f),this.updateWeight(u)}rotateRight(u){const f=u.getParent();f.hasParent()?f===f.getParent().getLeft()?f.getParent().setLeft(u):f.getParent().setRight(u):this.root=u,u.setParent(f.getParent()),f.setLeft(u.getRight()),f.hasLeft()&&f.getLeft().setParent(f),u.setRight(f),u.getRight().setParent(u),this.updateWeight(f),this.updateWeight(u)}isLeftChild(u){return u&&u.hasParent()?u.getParent().getLeft()===u:!1}isRightChild(u){return u&&u.hasParent()?u.getParent().getRight()===u:!1}}var Hi=(g=>(g[g.Null=0]="Null",g[g.Boolean=1]="Boolean",g[g.Integer=2]="Integer",g[g.Long=3]="Long",g[g.Double=4]="Double",g[g.String=5]="String",g[g.Bytes=6]="Bytes",g[g.Date=7]="Date",g))(Hi||{});class wi extends T1{constructor(u,f){super(f),s(this,"valueType"),s(this,"value"),this.valueType=wi.getPrimitiveType(u),this.value=u===void 0?null:u}static of(u,f){return new wi(u,f)}static valueFromBytes(u,f){switch(u){case 0:return null;case 1:return!!f[0];case 2:return f[0]|f[1]<<8|f[2]<<16|f[3]<<24;case 4:{const y=new DataView(f.buffer);return f.forEach(function(E,N){y.setUint8(N,E)}),y.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(f);case 3:return er.fromBytesLE(Array.from(f));case 6:return f;case 7:return new Date(er.fromBytesLE(Array.from(f),!0).toNumber());default:throw new zr(Dr.Unimplemented,`unimplemented type: ${u}`)}}toJSON(){return this.valueType===5?`"${Iu(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const u=wi.of(this.value,this.getCreatedAt());return u.setMovedAt(this.getMovedAt()),u.setRemovedAt(this.getRemovedAt()),u}getType(){return this.valueType}static getPrimitiveType(u){switch(typeof u){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(u)?2:4;case"string":return 5;case"object":if(u===null)return 0;if(u instanceof er)return 3;if(u instanceof Uint8Array)return 6;if(u instanceof Date)return 7}}static isSupport(u){return wi.getPrimitiveType(u)!==void 0}static isInteger(u){return u%1===0}isNumericType(){const u=this.valueType;return u===2||u===3||u===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const u=this.value;return new Uint8Array([u&255,u>>8&255,u>>16&255,u>>24&255])}case 4:{const u=this.value,f=new Uint8Array(8);return new DataView(f.buffer).setFloat64(0,u,!0),f}case 5:return new TextEncoder().encode(this.value);case 3:{const f=this.value.toBytesLE();return Uint8Array.from(f)}case 6:return this.value;case 7:{const u=this.value,f=er.fromNumber(u.getTime(),!0).toBytesLE();return Uint8Array.from(f)}default:throw new zr(Dr.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class k1 extends av{constructor(u){super(u),s(this,"prev"),s(this,"next"),this.value=u}static createAfter(u,f){const y=new k1(f),E=u.next;return u.next=y,y.prev=u,y.next=E,E&&(E.prev=y),y}remove(u){return this.value.remove(u)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class i0{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const u=wi.of(0,Ru);u.setRemovedAt(Ru),this.dummyHead=new k1(u),this.last=this.dummyHead,this.nodeMapByIndex=new r0,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new i0}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(u,f){let y=this.nodeMapByCreatedAt.get(u.toIDString());for(y||Lt.fatal(`cant find the given node: ${u.toIDString()}`);y.getNext()&&y.getNext().getPositionedAt().after(f);)y=y.getNext();return y}release(u){this.last===u&&(this.last=u.getPrev()),u.release(),this.nodeMapByIndex.delete(u),this.nodeMapByCreatedAt.delete(u.getValue().getCreatedAt().toIDString())}insertAfter(u,f,y=f.getCreatedAt()){const E=this.findNextBeforeExecutedAt(u,y),N=k1.createAfter(E,f);E===this.last&&(this.last=N),this.nodeMapByIndex.insertAfter(E,N),this.nodeMapByCreatedAt.set(N.getCreatedAt().toIDString(),N)}moveAfter(u,f,y){const E=this.nodeMapByCreatedAt.get(u.toIDString());E||Lt.fatal(`cant find the given node: ${u.toIDString()}`);const N=this.nodeMapByCreatedAt.get(f.toIDString());N||Lt.fatal(`cant find the given node: ${f.toIDString()}`),E!==N&&(!N.getValue().getMovedAt()||y.after(N.getValue().getMovedAt()))&&(this.release(N),this.insertAfter(E.getCreatedAt(),N.getValue(),y),N.getValue().setMovedAt(y))}insert(u){this.insertAfter(this.last.getCreatedAt(),u)}getByID(u){return this.nodeMapByCreatedAt.get(u.toIDString())}subPathOf(u){const f=this.nodeMapByCreatedAt.get(u.toIDString());if(f)return String(this.nodeMapByIndex.indexOf(f))}purge(u){const f=this.nodeMapByCreatedAt.get(u.getCreatedAt().toIDString());f||Lt.fatal(`fail to find the given createdAt: ${u.getCreatedAt().toIDString()}`),this.release(f)}getByIndex(u){if(u>=this.length)return;const[f,y]=this.nodeMapByIndex.find(u);let E=f;if(u===0&&f===this.dummyHead||y>0)do E&&(E=E.getNext());while(E&&E.isRemoved());return E}getPrevCreatedAt(u){let f=this.nodeMapByCreatedAt.get(u.toIDString());do f=f.getPrev();while(this.dummyHead!==f&&f.isRemoved());return f.getValue().getCreatedAt()}delete(u,f){const y=this.nodeMapByCreatedAt.get(u.toIDString()),E=y.isRemoved();return y.remove(f)&&!E&&this.nodeMapByIndex.splayNode(y),y.getValue()}deleteByIndex(u,f){const y=this.getByIndex(u);if(y)return y.remove(f)&&this.nodeMapByIndex.splayNode(y),y.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const u=[];for(const f of this){const y=`${f.getCreatedAt().toIDString()}:${f.getValue().toJSON()}`;f.isRemoved()?u.push(`{${y}}`):u.push(`[${y}]`)}return u.join("")}*[Symbol.iterator](){let u=this.dummyHead.getNext();for(;u;)yield u,u=u.getNext()}}class Cs extends Kf{constructor(u,f){super(u),s(this,"elements"),this.elements=f}static create(u,f){if(!f)return new Cs(u,i0.create());const y=i0.create();for(const E of f)y.insertAfter(y.getLastCreatedAt(),E.deepcopy());return new Cs(u,y)}subPathOf(u){return this.elements.subPathOf(u)}purge(u){this.elements.purge(u)}insertAfter(u,f){this.elements.insertAfter(u,f)}moveAfter(u,f,y){this.elements.moveAfter(u,f,y)}get(u){const f=this.elements.getByIndex(u);return f==null?void 0:f.getValue()}getByID(u){const f=this.elements.getByID(u);return f==null?void 0:f.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(u){return this.elements.getPrevCreatedAt(u)}delete(u,f){return this.elements.delete(u,f)}deleteByIndex(u,f){return this.elements.deleteByIndex(u,f)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const u of this.elements)u.isRemoved()||(yield u.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(u){for(const f of this.elements){const y=f.getValue();if(u(y,this))return;y instanceof Kf&&y.getDescendants(u)}}toJSON(){const u=[];for(const f of this)u.push(f.toJSON());return`[${u.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const u={};for(let f=0;f({...Be,value:Be.value?{attributes:Sp(Be.value.getAttributes()),content:Be.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[re,mt,se,[Z,Z]]}setStyle(u,f,y,E){const[,N]=this.rgaTreeSplit.findNodeWithSplit(u[1],y),[,B]=this.rgaTreeSplit.findNodeWithSplit(u[0],y),Z=[],re=this.rgaTreeSplit.findBetween(B,N),se=new Map,xe=[];for(const Be of re){const ft=Be.getCreatedAt().getActorID(),jt=E!=null&&E.size?E.has(ft)?E.get(ft):Ru:Ep;if(Be.canStyle(y,jt)){const mn=se.get(ft),Sn=Be.getCreatedAt();(!mn||Sn.after(mn))&&se.set(ft,Sn),xe.push(Be)}}const mt=[];for(const Be of xe){if(Be.isRemoved())continue;const[ft,jt]=this.rgaTreeSplit.findIndexesFromRange(Be.createPosRange());Z.push({type:"style",actor:y.getActorID(),from:ft,to:jt,value:{attributes:Sp(f)}});for(const[mn,Sn]of Object.entries(f)){const[cr]=Be.getValue().setAttr(mn,Sn,y);cr!==void 0&&mt.push({parent:Be.getValue(),child:cr})}}return[se,mt,Z]}indexRangeToPosRange(u,f){const y=this.rgaTreeSplit.indexToPos(u);return u===f?[y,y]:[y,this.rgaTreeSplit.indexToPos(f)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const u=[];for(const f of this.rgaTreeSplit)f.isRemoved()||u.push(f.getValue().toJSON());return`[${u.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const u=[];for(const f of this.rgaTreeSplit)if(!f.isRemoved()){const y=f.getValue();u.push({attributes:Sp(y.getAttributes()),content:y.getContent()})}return u}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const u=new Ul(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return u.remove(this.getRemovedAt()),u}findIndexesFromRange(u){return this.rgaTreeSplit.findIndexesFromRange(u)}getGCPairs(){const u=[];for(const f of this.rgaTreeSplit){f.getRemovedAt()&&u.push({parent:this.rgaTreeSplit,child:f});for(const y of f.getValue().getGCPairs())u.push(y)}return u}}class _1 extends Du{constructor(u,f,y,E,N,B,Z){super(u,Z),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=f,this.toPos=y,this.maxCreatedAtMapByActor=E,this.content=N,this.attributes=B}static create(u,f,y,E,N,B,Z){return new _1(u,f,y,E,N,B,Z)}execute(u){const f=u.findByCreatedAt(this.getParentCreatedAt());f||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),f instanceof Ul||Lt.fatal("fail to execute, only Text can execute edit");const y=f,[,E,N]=y.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const B of N)u.registerGCPair(B);return{opInfos:E.map(({from:B,to:Z,value:re})=>({type:"edit",from:B,to:Z,value:re,path:u.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const u=this.getParentCreatedAt().toTestString(),f=this.fromPos.toTestString(),y=this.toPos.toTestString(),E=this.content;return`${u}.EDIT(${f},${y},${E})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class A1 extends Du{constructor(u,f,y,E,N,B){super(u,B),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=f,this.toPos=y,this.maxCreatedAtMapByActor=E,this.attributes=N}static create(u,f,y,E,N,B){return new A1(u,f,y,E,N,B)}execute(u){const f=u.findByCreatedAt(this.getParentCreatedAt());f||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),f instanceof Ul||Lt.fatal("fail to execute, only Text can execute edit");const y=f,[,E,N]=y.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const B of E)u.registerGCPair(B);return{opInfos:N.map(({from:B,to:Z,value:re})=>({type:"style",from:B,to:Z,value:re,path:u.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const u=this.getParentCreatedAt().toTestString(),f=this.fromPos.toTestString(),y=this.toPos.toTestString(),E=this.attributes;return`${u}.STYL(${f},${y},${JSON.stringify(E)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const jP=2,HP="root",Wd="text";function R1(g,u){let f=0;const y=g.children;for(let E=0;E0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let u=this.parent;const f=this.isRemoved?-1:1;for(;u&&(u.size+=this.paddedSize*f,!u.isRemoved);)u=u.parent}updateDescendantsSize(){let u=0;for(const f of this._children){const y=f.updateDescendantsSize();f.isRemoved||(u+=y)}return this.size+=u,this.paddedSize}get isText(){return this.type===Wd}get paddedSize(){return this.size+(this.isText?0:jP)}isAncestorOf(u){return WP(this,u)}get nextSibling(){const u=this.parent.findOffset(this),f=this.parent.children[u+1];if(f)return f}get prevSibling(){const u=this.parent.findOffset(this),f=this.parent.children[u-1];if(f)return f}splitText(u,f){if(u===0||u===this.size)return;const y=this.value.slice(0,u),E=this.value.slice(u);if(!E.length)return;this.value=y;const N=this.cloneText(u+f);return N.value=E,this.parent.insertAfterInternal(N,this),N}get children(){return this._children.filter(u=>!u.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(u=>u.isText)}append(...u){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...u);for(const f of u)f.parent=this,f.updateAncestorsSize()}prepend(...u){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...u);for(const f of u)f.parent=this}insertBefore(u,f){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(f);if(y===-1)throw new Error("child not found");this.insertAtInternal(u,y),u.updateAncestorsSize()}insertAfter(u,f){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(f);if(y===-1)throw new Error("child not found");this.insertAtInternal(u,y+1),u.updateAncestorsSize()}insertAt(u,f){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(u,f),u.updateAncestorsSize()}removeChild(u){if(this.isText)throw new Error("Text node cannot have children");const f=this._children.indexOf(u);if(f===-1)throw new Error("child not found");this._children.splice(f,1),u.parent=void 0}splitElement(u,f){const y=this.cloneElement(f);this.parent.insertAfterInternal(y,this),y.updateAncestorsSize();const E=this.children.slice(0,u),N=this.children.slice(u);this._children=E,y._children=N,this.size=this._children.reduce((B,Z)=>B+Z.paddedSize,0),y.size=y._children.reduce((B,Z)=>B+Z.paddedSize,0);for(const B of y._children)B.parent=y;return y}insertAfterInternal(u,f){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(f);if(y===-1)throw new Error("child not found");this.insertAtInternal(u,y+1)}insertAtInternal(u,f){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(f,0,u),u.parent=this}findOffset(u){if(this.isText)throw new Error("Text node cannot have children");if(u.isRemoved){const f=this._children.indexOf(u);return this.allChildren.splice(0,f).filter(E=>!E.isRemoved).length}return this.children.indexOf(u)}findBranchOffset(u){if(this.isText)throw new Error("Text node cannot have children");let f=u;for(;f;){const y=this._children.indexOf(f);if(y!==-1)return y;f=f.parent}return-1}}function WP(g,u){if(g===u)return!1;for(;u.parent;){if(u.parent===g)return!0;u=u.parent}return!1}var ha=(g=>(g.Start="Start",g.End="End",g.Text="Text",g))(ha||{});function Tw(g,u,f,y){if(u>f)throw new Error(`from is greater than to: ${u} > ${f}`);if(u>g.size)throw new Error(`from is out of range: ${u} > ${g.size}`);if(f>g.size)throw new Error(`to is out of range: ${f} > ${g.size}`);if(u===f)return;let E=0;for(const N of g.children){if(u-N.paddedSizeN.size;(N.isText||re)&&y([N,N.isText?"Text":"Start"],se),Tw(N,Math.max(0,B),Math.min(Z,N.size),y),se&&y([N,"End"],se)}E+=N.paddedSize}}function xw(g,u,f=0){for(const y of g.children)xw(y,u,f+1);u(g,f)}function sv(g,u,f=0){for(const y of g._children)sv(y,u,f+1);u(g,f)}function kw(g,u,f=!0){if(u>g.size)throw new Error(`index is out of range: ${u} > ${g.size}`);if(g.isText)return{node:g,offset:u};let y=0,E=0;for(const N of g.children){if(f&&N.isText&&N.size>=u-E)return kw(N,u-E,f);if(u===E)return{node:g,offset:y};if(!f&&N.paddedSize===u-E)return{node:g,offset:y+1};if(N.paddedSize>u-E)return kw(N,u-E-1,f);E+=N.paddedSize,y+=1}return{node:g,offset:y}}function fA(g){return g.isText||g.children.length===0?g:fA(g.children[0])}function hA(g,u){if(g.sizeg===u?0:g0)if(f.right)f.right.parent=f,f=f.right;else return f;else if(y<0)if(f.left)f.left.parent=f,f=f.left;else{let E=f.parent,N=f;for(;E&&N===E.left;)N=E,E=E.parent;return E}else return f}}lastEntry(){if(!this.root)return this.root;let u=this.root;for(;u.right;)u=u.right;return u}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(u,f){for(;f;){const y=this.comparator(u,f.key);if(y===0)return f;y<0?f=f.left:y>0&&(f=f.right)}}putInternal(u,f,y){if(!y)return this.counter+=1,new qP(u,f,!0);const E=this.comparator(u,y.key);return E<0?y.left=this.putInternal(u,f,y.left):E>0?y.right=this.putInternal(u,f,y.right):y.value=f,this.isRed(y.right)&&!this.isRed(y.left)&&(y=this.rotateLeft(y)),this.isRed(y.left)&&this.isRed(y.left.left)&&(y=this.rotateRight(y)),this.isRed(y.left)&&this.isRed(y.right)&&this.flipColors(y),y}removeInternal(u,f){if(this.comparator(f,u.key)<0)!this.isRed(u.left)&&!this.isRed(u.left.left)&&(u=this.moveRedLeft(u)),u.left=this.removeInternal(u.left,f);else{if(this.isRed(u.left)&&(u=this.rotateRight(u)),this.comparator(f,u.key)===0&&!u.right){this.counter-=1;return}if(!this.isRed(u.right)&&!this.isRed(u.right.left)&&(u=this.moveRedRight(u)),this.comparator(f,u.key)===0){this.counter-=1;const y=this.min(u.right);u.value=y.value,u.key=y.key,u.right=this.removeMin(u.right)}else u.right=this.removeInternal(u.right,f)}return this.fixUp(u)}min(u){return u.left?this.min(u.left):u}removeMin(u){if(u.left)return!this.isRed(u.left)&&!this.isRed(u.left.left)&&(u=this.moveRedLeft(u)),u.left=this.removeMin(u.left),this.fixUp(u)}fixUp(u){return this.isRed(u.right)&&(u=this.rotateLeft(u)),this.isRed(u.left)&&this.isRed(u.left.left)&&(u=this.rotateRight(u)),this.isRed(u.left)&&this.isRed(u.right)&&this.flipColors(u),u}moveRedLeft(u){return this.flipColors(u),this.isRed(u.right.left)&&(u.right=this.rotateRight(u.right),u=this.rotateLeft(u),this.flipColors(u)),u}moveRedRight(u){return this.flipColors(u),this.isRed(u.left.left)&&(u=this.rotateRight(u),this.flipColors(u)),u}isRed(u){return u&&u.isRed}rotateLeft(u){const f=u.right;return u.right=f.left,f.left=u,f.isRed=f.left.isRed,f.left.isRed=!0,f}rotateRight(u){const f=u.left;return u.left=f.right,f.right=u,f.isRed=f.right.isRed,f.right.isRed=!0,f}flipColors(u){u.isRed=!u.isRed,u.left.isRed=!u.left.isRed,u.right.isRed=!u.right.isRed}}class Pu{constructor(u,f){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=u,this.leftSiblingID=f}static of(u,f){return new Pu(u,f)}static fromTreePos(u){const{offset:f}=u;let{node:y}=u,E;return y.isText?(y.parent.children[0]===y&&f===0?E=y.parent:E=y,y=y.parent):f===0?E=y:E=y.children[f-1],Pu.of(y.id,fi.of(E.getCreatedAt(),E.getOffset()+f))}getParentID(){return this.parentID}static fromStruct(u){return Pu.of(fi.of(Ys.fromStruct(u.parentID.createdAt),u.parentID.offset),fi.of(Ys.fromStruct(u.leftSiblingID.createdAt),u.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(u){const f=this.getParentID(),y=this.getLeftSiblingID(),E=u.findFloorNode(f);let N=u.findFloorNode(y);if(!E||!N)throw new Error(`cannot find node of CRDTTreePos(${f.toTestString()}, ${y.toTestString()})`);return!y.equals(f)&&y.getOffset()>0&&y.getOffset()===N.id.getOffset()&&N.insPrevID&&(N=u.findFloorNode(N.insPrevID)),[E,N]}getLeftSiblingID(){return this.leftSiblingID}equals(u){return this.getParentID().getCreatedAt().equals(u.getParentID().getCreatedAt())&&this.getParentID().getOffset()===u.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(u.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===u.getLeftSiblingID().getOffset()}}class fi{constructor(u,f){s(this,"createdAt"),s(this,"offset"),this.createdAt=u,this.offset=f}static of(u,f){return new fi(u,f)}static fromStruct(u){return fi.of(Ys.fromStruct(u.createdAt),u.offset)}static createComparator(){return(u,f)=>{const y=u.getCreatedAt().compare(f.getCreatedAt());return y!==0?y:u.getOffset()>f.getOffset()?1:u.getOffset(){const E=y.deepcopy();return E.parent=f,E}),f.insPrevID=this.insPrevID,f.insNextID=this.insNextID,f}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(u){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=u,this.size=u.length}get isRemoved(){return!!this.removedAt}remove(u){const f=!this.removedAt;(!this.removedAt||this.removedAt.compare(u)>0)&&(this.removedAt=u),f&&this.updateAncestorsSize()}cloneText(u){return new el(fi.of(this.id.getCreatedAt(),u),this.type,void 0,void 0,this.removedAt)}cloneElement(u){return new el(fi.of(u(),0),this.type,void 0,void 0,this.removedAt)}split(u,f,y){const E=this.isText?this.splitText(f,this.id.getOffset()):this.splitElement(f,y);if(E){if(E.insPrevID=this.id,this.insNextID){const N=u.findFloorNode(this.insNextID);N.insPrevID=E.id,E.insNextID=this.insNextID}this.insNextID=E.id,u.registerNode(E)}return E}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(u,f){return!this.getCreatedAt().after(f)&&(!this.removedAt||u.after(this.removedAt))}canStyle(u,f){return this.isText?!1:!this.getCreatedAt().after(f)&&(!this.removedAt||u.after(this.removedAt))}setAttrs(u,f){this.attrs||(this.attrs=new Vd);const y=new Array;for(const[E,N]of Object.entries(u))y.push(this.attrs.set(E,N,f));return y}purge(u){this.attrs&&this.attrs.purge(u)}getGCPairs(){const u=[];if(!this.attrs)return u;for(const f of this.attrs)f.getRemovedAt()&&u.push({parent:this,child:f});return u}}function Cw(g){var u;if(g.isText){const y=g;return{type:y.type,value:y.value}}const f={type:g.type,children:g.children.map(Cw)};return g.attrs&&(f.attributes=Sp((u=g.attrs)==null?void 0:u.toObject())),f}function _w(g){if(g.isText)return g.value;let u="";return g.attrs&&g.attrs.size()&&(u=" "+Array.from(g.attrs).filter(f=>!f.isRemoved()).sort((f,y)=>f.getKey().localeCompare(y.getKey())).map(f=>{const y=JSON.parse(f.getValue());return typeof y=="string"?`${f.getKey()}="${y}"`:`${f.getKey()}="${Iu(f.getValue())}"`}).join(" ")),`<${g.type}${u}>${g.children.map(f=>_w(f)).join("")}`}function Aw(g){if(g.isText){const u=g;return{type:u.type,value:u.value,size:u.size,isRemoved:u.isRemoved}}return{type:g.type,children:g.children.map(Aw),size:g.size,isRemoved:g.isRemoved}}class zl extends T1{constructor(u,f){super(f),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new QP(u),this.nodeMapByID=new pA(fi.createComparator()),this.indexTree.traverseAll(y=>{this.nodeMapByID.put(y.id,y)})}static create(u,f){return new zl(u,f)}findFloorNode(u){const f=this.nodeMapByID.floorEntry(u);if(!(!f||!f.key.getCreatedAt().equals(u.getCreatedAt())))return f.value}registerNode(u){this.nodeMapByID.put(u.id,u)}findNodesAndSplitText(u,f){const[y,E]=u.toTreeNodePair(this);let N=E;const B=y===N,Z=N.parent&&!B?N.parent:y;if(N.isText&&N.split(this,u.getLeftSiblingID().getOffset()-N.id.getOffset()),f){const re=Z.allChildren,se=B?0:re.indexOf(N)+1;for(let xe=se;xe{const jt=ft.getCreatedAt().getActorID(),mn=E?E.has(jt)?E.get(jt):Ru:Ep;if(ft.canStyle(y,mn)&&f){const Sn=mt.get(jt),cr=ft.getCreatedAt();(!Sn||cr.after(Sn))&&mt.set(jt,cr);const yi=ft.setAttrs(f,y),jn=yi.reduce((Pi,[,kp])=>(kp&&(Pi[kp.getKey()]=xe[kp.getKey()]),Pi),{}),dr=ft.parent,vi=ft.prevSibling||ft.parent;Object.keys(jn).length>0&&se.push({type:"style",from:this.toIndex(dr,vi),to:this.toIndex(ft,ft),fromPath:this.toPath(dr,vi),toPath:this.toPath(ft,ft),actor:y.getActorID(),value:jn});for(const[Pi]of yi)Pi&&Be.push({parent:ft,child:Pi})}}),[mt,Be,se]}removeStyle(u,f,y,E){const[N,B]=this.findNodesAndSplitText(u[0],y),[Z,re]=this.findNodesAndSplitText(u[1],y),se=[],xe=new Map,mt=[];return this.traverseInPosRange(N,B,Z,re,([Be])=>{const ft=Be.getCreatedAt().getActorID(),jt=E?E.has(ft)?E.get(ft):Ru:Ep;if(Be.canStyle(y,jt)&&f){const mn=xe.get(ft),Sn=Be.getCreatedAt();(!mn||Sn.after(mn))&&xe.set(ft,Sn),Be.attrs||(Be.attrs=new Vd);for(const jn of f){const dr=Be.attrs.remove(jn,y);for(const vi of dr)mt.push({parent:Be,child:vi})}const cr=Be.parent,yi=Be.prevSibling||Be.parent;se.push({actor:y.getActorID(),type:"removeStyle",from:this.toIndex(cr,yi),to:this.toIndex(Be,Be),fromPath:this.toPath(cr,yi),toPath:this.toPath(Be,Be),value:f})}}),[xe,mt,se]}edit(u,f,y,E,N,B){const[Z,re]=this.findNodesAndSplitText(u[0],E),[se,xe]=this.findNodesAndSplitText(u[1],E),mt=this.toIndex(Z,re),Be=this.toPath(Z,re),ft=[],jt=[],mn=[],Sn=new Map;this.traverseInPosRange(Z,re,se,xe,([jn,dr],vi)=>{if(dr===ha.Start&&!vi)for(const sh of jn.children)mn.push(sh);const Pi=jn.getCreatedAt().getActorID(),kp=B?B.has(Pi)?B.get(Pi):Ru:Ep;if(jn.canDelete(E,kp)||ft.includes(jn.parent)){const sh=Sn.get(Pi),j1=jn.getCreatedAt();(!sh||j1.after(sh))&&Sn.set(Pi,j1),(dr===ha.Text||dr===ha.Start)&&ft.push(jn),jt.push([jn,dr])}});const cr=this.makeDeletionChanges(jt,E),yi=[];for(const jn of ft)jn.remove(E),jn.isRemoved&&yi.push({parent:this,child:jn});for(const jn of mn)jn.removedAt||Z.append(jn);if(y>0){let jn=0,dr=Z,vi=re;for(;jn{Z.isRemoved&&(Pi.remove(E),yi.push({parent:this,child:Pi})),this.nodeMapByID.put(Pi.id,Pi)}),vi.isRemoved||jn.push(vi);if(jn.length){const vi=jn.map(Pi=>Cw(Pi));cr.length&&cr[cr.length-1].from===mt?cr[cr.length-1].value=vi:cr.push({type:"content",from:mt,to:mt,fromPath:Be,toPath:Be,actor:E.getActorID(),value:vi})}}return[cr,yi,Sn]}editT(u,f,y,E,N){const B=this.findPos(u[0]),Z=this.findPos(u[1]);this.edit([B,Z],f,y,E,N)}move(u,f,y){throw new Error(`not implemented: ${u}, ${f}, ${y}`)}purge(u){var f;(f=u.parent)==null||f.removeChild(u),this.nodeMapByID.remove(u.id);const y=u.insPrevID,E=u.insNextID;if(y){const N=this.findFloorNode(y);N.insNextID=E}if(E){const N=this.findFloorNode(E);N.insPrevID=y}u.insPrevID=void 0,u.insNextID=void 0}getGCPairs(){const u=[];return this.indexTree.traverse(f=>{f.getRemovedAt()&&u.push({parent:this,child:f});for(const y of f.getGCPairs())u.push(y)}),u}findPos(u,f=!0){const y=this.indexTree.findTreePos(u,f);return Pu.fromTreePos(y)}pathToPosRange(u){const f=this.pathToIndex(u);return[this.findPos(f),this.findPos(f+1)]}pathToPos(u){const f=this.indexTree.pathToIndex(u);return this.findPos(f)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return _w(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const u=this.indexTree.getRoot(),f=(y,E=void 0,N=void 0,B=0)=>{var Z,re,se,xe;let mt,Be,ft;const jt=y.isText?{node:y,offset:0}:E&&N?this.toTreePos(E,N):null;jt&&(mt=this.indexTree.indexOf(jt),Be=this.indexTree.treePosToPath(jt),ft=Pu.fromTreePos(jt).toStruct());const mn={type:y.type,parent:E==null?void 0:E.id.toTestString(),size:y.size,id:y.id.toTestString(),removedAt:(Z=y.removedAt)==null?void 0:Z.toTestString(),insPrev:(re=y.insPrevID)==null?void 0:re.toTestString(),insNext:(se=y.insNextID)==null?void 0:se.toTestString(),value:y.isText?y.value:void 0,isRemoved:y.isRemoved,children:[],depth:B,attributes:y.attrs?Sp((xe=y.attrs)==null?void 0:xe.toObject()):void 0,index:mt,path:Be,pos:ft};for(let Sn=0;Sn0&&Sn===y[y.length-1].to?(y[y.length-1].to=cr,y[y.length-1].toPath=this.toPath(mn,Be)):y.push({type:"content",from:Sn,to:cr,fromPath:this.toPath(jt,xe),toPath:this.toPath(mn,Be),actor:f.getActorID()}))}return y.reverse()}findRightToken([u,f]){if(f===ha.Start){const Z=u.allChildren;return Z.length>0?[Z[0],Z[0].isText?ha.Text:ha.Start]:[u,ha.End]}const y=u.parent,E=y.allChildren,N=E.indexOf(u);if(y&&N===E.length-1)return[y,ha.End];const B=E[N+1];return[B,B.isText?ha.Text:ha.Start]}findLeftToken([u,f]){if(f===ha.End){const Z=u.allChildren;if(Z.length>0){const re=Z[Z.length-1];return[re,re.isText?ha.Text:ha.End]}return[u,ha.Start]}const y=u.parent,E=y.allChildren,N=E.indexOf(u);if(y&&N===0)return[y,ha.Start];const B=E[N-1];return[B,B.isText?ha.Text:ha.End]}}class I1 extends Du{constructor(u,f,y,E,N,B,Z){super(u,Z),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=f,this.toPos=y,this.contents=E,this.splitLevel=N,this.maxCreatedAtMapByActor=B}static create(u,f,y,E,N,B,Z){return new I1(u,f,y,E,N,B,Z)}execute(u){var f;const y=u.findByCreatedAt(this.getParentCreatedAt());y||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),y instanceof zl||Lt.fatal("fail to execute, only Tree can execute edit");const E=this.getExecutedAt(),N=y,[B,Z]=N.edit([this.fromPos,this.toPos],(f=this.contents)==null?void 0:f.map(re=>re.deepcopy()),this.splitLevel,E,(()=>{let re=E.getDelimiter();return this.contents!==void 0&&(re+=this.contents.length),()=>Ys.of(E.getLamport(),++re,E.getActorID())})(),this.maxCreatedAtMapByActor);for(const re of Z)u.registerGCPair(re);return{opInfos:B.map(({from:re,to:se,value:xe,splitLevel:mt,fromPath:Be,toPath:ft})=>({type:"tree-edit",path:u.createPath(this.getParentCreatedAt()),from:re,to:se,value:xe,splitLevel:mt,fromPath:Be,toPath:ft}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const u=this.getParentCreatedAt().toTestString(),f=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,E=this.contents||[];return`${u}.EDIT(${f},${y},${E.map(N=>_w(N)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class th{constructor(u,f,y,E){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=u,this.serverSeq=E,this.lamport=f,this.actor=y}static of(u,f,y,E){return new th(u,f,y,E)}next(){return new th(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(u){return u.greaterThan(this.lamport)?new th(this.clientSeq,u,this.actor):new th(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(u){return Ys.of(this.lamport,u,this.actor)}setActor(u){return new th(this.clientSeq,this.lamport,u,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const ZP=new th(0,er.fromInt(0,!0),iv);class Qd{constructor({id:u,operations:f,presenceChange:y,message:E}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=u,this.operations=f||[],this.presenceChange=y,this.message=E}static create({id:u,operations:f,presenceChange:y,message:E}){return new Qd({id:u,operations:f,presenceChange:y,message:E})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(u){for(const f of this.operations)f.setActor(u);this.id=this.id.setActor(u)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(u,f,y){const E=[],N=[];for(const B of this.operations){const Z=B.execute(u,y);if(!Z)continue;const{opInfos:re,reverseOp:se}=Z;E.push(...re),se&&N.unshift(se)}return this.presenceChange&&(this.presenceChange.type===Xf.Put?f.set(this.id.getActorID(),Ei(this.presenceChange.presence)):f.delete(this.id.getActorID())),{opInfos:E,reverseOps:N}}toTestString(){return`${this.operations.map(u=>u.toTestString()).join(",")}`}toStruct(){return{changeID:ka.bytesToHex(ka.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(u=>ka.bytesToHex(ka.toOperation(u).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(u){const{changeID:f,operations:y,presenceChange:E,message:N}=u;return Qd.create({id:ka.bytesToChangeID(ka.hexToBytes(f)),operations:y==null?void 0:y.map(B=>ka.bytesToOperation(ka.hexToBytes(B))),presenceChange:E,message:N})}}class ov{constructor(u,f,y,E,N,B){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=u,this.checkpoint=f,this.isRemoved=y,this.changes=E,this.snapshot=N,this.minSyncedTicket=B}static create(u,f,y,E,N,B){return new ov(u,f,y,E,N,B)}getDocumentKey(){return this.documentKey}getCheckpoint(){return this.checkpoint}getIsRemoved(){return this.isRemoved}getChanges(){return this.changes}hasChanges(){return this.changes.length>0}getChangeSize(){return this.changes.length}hasSnapshot(){return!!this.snapshot&&!!this.snapshot.length}getSnapshot(){return this.snapshot}getMinSyncedTicket(){return this.minSyncedTicket}}class a0{constructor(u,f){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=u,this.clientSeq=f}static of(u,f){return new a0(u,f)}increaseClientSeq(u){return u===0?this:new a0(this.serverSeq,this.clientSeq+u)}forward(u){if(this.equals(u))return this;const f=this.serverSeq.greaterThan(u.serverSeq)?this.serverSeq:u.serverSeq,y=Math.max(this.clientSeq,u.clientSeq);return a0.of(f,y)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(u){return this.clientSeq===u.clientSeq&&this.serverSeq.equals(u.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const XP=new a0(er.fromInt(0,!0),0);class jc{constructor(u,f){s(this,"createdAt"),s(this,"offset"),this.createdAt=u,this.offset=f}static of(u,f){return new jc(u,f)}static fromStruct(u){return jc.of(Ys.fromStruct(u.createdAt),u.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(u){return this.createdAt.compare(u.createdAt)===0&&this.offset===u.offset}hasSameCreatedAt(u){return this.createdAt.compare(u.createdAt)===0}split(u){return new jc(this.createdAt,this.offset+u)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const KP=jc.of(Ru,0);class Mu{constructor(u,f){s(this,"id"),s(this,"relativeOffset"),this.id=u,this.relativeOffset=f}static of(u,f){return new Mu(u,f)}static fromStruct(u){const f=jc.fromStruct(u.id);return Mu.of(f,u.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return jc.of(this.id.getCreatedAt(),this.id.getOffset()+this.relativeOffset)}toTestString(){return`${this.id.toTestString()}:${this.relativeOffset}`}toStruct(){return{id:this.id.toStruct(),relativeOffset:this.relativeOffset}}equals(u){return this.id.equals(u.id)?this.relativeOffset===u.relativeOffset:!1}}class nh extends av{constructor(u,f,y){super(f),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=u,this.removedAt=y}static create(u,f){return new nh(u,f)}static createComparator(){return(u,f)=>{const y=u.getCreatedAt().compare(f.getCreatedAt());return y!==0?y:u.getOffset()>f.getOffset()?1:u.getOffset()0&&f.getID().getOffset()==u.getOffset()){if(!f.hasInsPrev())return f;f=f.getInsPrev()}return f}findFloorNode(u){const f=this.treeByID.floorEntry(u);if(f&&!(!f.key.equals(u)&&!f.key.hasSameCreatedAt(u)))return f.value}findBetween(u,f){const y=[];let E=u;for(;E&&E!==f;)y.push(E),E=E.getNext();return y}splitNode(u,f){if(f>u.getContentLength()&&Lt.fatal("offset should be less than or equal to length"),f===0)return u;if(f===u.getContentLength())return u.getNext();const y=u.split(f);this.treeByIndex.updateWeight(y),this.insertAfter(u,y);const E=u.getInsNext();return E&&E.setInsPrev(y),y.setInsPrev(u),y}deleteNodes(u,f,y){if(!u.length)return[[],new Map,new Map];const[E,N]=this.filterNodes(u,f,y),B=new Map,Z=new Map,re=this.makeChanges(N,f);for(const se of E){const xe=se.getCreatedAt().getActorID();(!B.has(xe)||se.getID().getCreatedAt().after(B.get(xe)))&&B.set(xe,se.getID().getCreatedAt()),Z.set(se.getID().toIDString(),se),se.remove(f)}return this.deleteIndexNodes(N),[re,B,Z]}filterNodes(u,f,y){const E=!!y,N=[],B=[],[Z,re]=this.findEdgesOfCandidates(u);B.push(Z);for(const se of u){const xe=se.getCreatedAt().getActorID(),mt=E?y.has(xe)?y.get(xe):Ru:Ep;se.canDelete(f,mt)?N.push(se):B.push(se)}return B.push(re),[N,B]}findEdgesOfCandidates(u){return[u[0].getPrev(),u[u.length-1].getNext()]}makeChanges(u,f){const y=[];let E,N;for(let B=0;Bg<0?Math.ceil(g):Math.floor(g);var Hc=(g=>(g[g.IntegerCnt=0]="IntegerCnt",g[g.LongCnt=1]="LongCnt",g))(Hc||{});class tl extends T1{constructor(u,f,y){switch(super(y),s(this,"valueType"),s(this,"value"),this.valueType=u,u){case 0:typeof f=="number"?f>Math.pow(2,31)-1||f<-Math.pow(2,31)?this.value=er.fromNumber(f).toInt():this.value=mA(f):this.value=f.toInt();break;case 1:typeof f=="number"?this.value=er.fromNumber(f):this.value=f;break;default:throw new zr(Dr.Unimplemented,`unimplemented type: ${u}`)}}static create(u,f,y){return new tl(u,f,y)}static valueFromBytes(u,f){switch(u){case 0:return f[0]|f[1]<<8|f[2]<<16|f[3]<<24;case 1:return er.fromBytesLE(Array.from(f));default:throw new zr(Dr.Unimplemented,`unimplemented type: ${u}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const u=tl.create(this.valueType,this.value,this.getCreatedAt());return u.setMovedAt(this.getMovedAt()),u}getType(){return this.valueType}static getCounterType(u){switch(typeof u){case"object":return u instanceof er?1:void 0;case"number":return u>Math.pow(2,31)-1||u<-Math.pow(2,31)?1:0;default:return}}static isSupport(u){return!!tl.getCounterType(u)}static isInteger(u){return u%1===0}isNumericType(){const u=this.valueType;return u===0||u===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const u=this.value;return new Uint8Array([u&255,u>>8&255,u>>16&255,u>>24&255])}case 1:{const f=this.value.toBytesLE();return Uint8Array.from(f)}default:throw new zr(Dr.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(u){function f(y){if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`)}return f(this),f(u),this.valueType===1?this.value=this.value.add(u.getValue()):u.getType()===Hi.Long?this.value=this.value+u.getValue().toInt():this.value=er.fromNumber(this.value+mA(u.getValue())).toInt(),this}}class o0 extends Du{constructor(u,f,y){super(u,y),s(this,"value"),this.value=f}static create(u,f,y){return new o0(u,f,y)}execute(u){const f=u.findByCreatedAt(this.getParentCreatedAt());f||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),f instanceof tl||Lt.fatal("fail to execute, only Counter can execute increase");const y=f,E=this.value.deepcopy();return y.increase(E),{opInfos:[{type:"increase",path:u.createPath(this.getParentCreatedAt()),value:E.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const u=this.value.deepcopy(),y=u.getType()===Hi.Long?u.getValue().multiply(-1):u.getValue()*-1;return o0.create(this.getParentCreatedAt(),wi.of(y,u.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class Yd extends Du{constructor(u,f,y,E,N,B,Z){super(u,Z),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=f,this.toPos=y,this.maxCreatedAtMapByActor=E,this.attributes=N,this.attributesToRemove=B}static create(u,f,y,E,N,B){return new Yd(u,f,y,E,N,new Array,B)}static createTreeRemoveStyleOperation(u,f,y,E,N,B){return new Yd(u,f,y,E,new Map,N,B)}execute(u){const f=u.findByCreatedAt(this.getParentCreatedAt());f||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),f instanceof zl||Lt.fatal("fail to execute, only Tree can execute edit");const y=f;let E,N;if(this.attributes.size){const B={};[...this.attributes].forEach(([Z,re])=>B[Z]=re),[,N,E]=y.style([this.fromPos,this.toPos],B,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const B=this.attributesToRemove;[,N,E]=y.removeStyle([this.fromPos,this.toPos],B,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const B of N)u.registerGCPair(B);return{opInfos:E.map(({from:B,to:Z,value:re,fromPath:se,toPath:xe})=>({type:"tree-style",from:B,to:Z,value:this.attributes.size?{attributes:re}:{attributesToRemove:re},fromPath:se,toPath:xe,path:u.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const u=this.getParentCreatedAt().toTestString(),f=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${u}.STYLE(${f},${y},${Object.entries(this.attributes||{}).map(([E,N])=>`${E}:"${N}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function JP(g){const u=new cw,f=u.data;for(const[y,E]of Object.entries(g))f[y]=JSON.stringify(E);return u}function e7(g){if(g.type===Xf.Put)return new b1({type:Xm.PUT,presence:JP(g.presence)});if(g.type===Xf.Clear)return new b1({type:Xm.CLEAR});throw new zr(Dr.Unimplemented,"unimplemented type")}function t7(g){return new dw({serverSeq:g.getServerSeqAsString(),clientSeq:g.getClientSeq()})}function gA(g){return new Vy({clientSeq:g.getClientSeq(),lamport:g.getLamportAsString(),actorId:Mw(g.getActorID())})}function An(g){if(g)return new z_({lamport:g.getLamportAsString(),delimiter:g.getDelimiter(),actorId:Mw(g.getActorID())})}function bA(g){switch(g){case Hi.Null:return hr.NULL;case Hi.Boolean:return hr.BOOLEAN;case Hi.Integer:return hr.INTEGER;case Hi.Long:return hr.LONG;case Hi.Double:return hr.DOUBLE;case Hi.String:return hr.STRING;case Hi.Bytes:return hr.BYTES;case Hi.Date:return hr.DATE;default:throw new zr(Dr.Unsupported,`unsupported type: ${g}`)}}function yA(g){switch(g){case Hc.IntegerCnt:return hr.INTEGER_CNT;case Hc.LongCnt:return hr.LONG_CNT;default:throw new zr(Dr.Unsupported,`unsupported type: ${g}`)}}function D1(g){if(g instanceof Gs)return new fa({type:hr.JSON_OBJECT,createdAt:An(g.getCreatedAt()),value:Pw(g)});if(g instanceof Cs)return new fa({type:hr.JSON_ARRAY,createdAt:An(g.getCreatedAt()),value:w7(g)});if(g instanceof Ul)return new fa({type:hr.TEXT,createdAt:An(g.getCreatedAt())});if(g instanceof wi)return new fa({type:bA(g.getType()),createdAt:An(g.getCreatedAt()),value:g.toBytes()});if(g instanceof tl)return new fa({type:yA(g.getType()),createdAt:An(g.getCreatedAt()),value:g.toBytes()});if(g instanceof zl)return new fa({type:hr.TREE,createdAt:An(g.getCreatedAt()),value:x7(g)});throw new zr(Dr.Unimplemented,"unimplemented element")}function vA(g){return new $_({createdAt:An(g.getCreatedAt()),offset:g.getOffset()})}function lv(g){return new y1({createdAt:An(g.getID().getCreatedAt()),offset:g.getID().getOffset(),relativeOffset:g.getRelativeOffset()})}function uv(g){return new B_({parentId:N1(g.getParentID()),leftSiblingId:N1(g.getLeftSiblingID())})}function N1(g){return new lw({createdAt:An(g.getCreatedAt()),offset:g.getOffset()})}function OA(g){const u=new qm;if(g instanceof _s){const f=g,y=new I_;y.parentCreatedAt=An(f.getParentCreatedAt()),y.key=f.getKey(),y.value=D1(f.getValue()),y.executedAt=An(f.getExecutedAt()),u.body.case="set",u.body.value=y}else if(g instanceof Nu){const f=g,y=new rw;y.parentCreatedAt=An(f.getParentCreatedAt()),y.prevCreatedAt=An(f.getPrevCreatedAt()),y.value=D1(f.getValue()),y.executedAt=An(f.getExecutedAt()),u.body.case="add",u.body.value=y}else if(g instanceof Jf){const f=g,y=new Za;y.parentCreatedAt=An(f.getParentCreatedAt()),y.prevCreatedAt=An(f.getPrevCreatedAt()),y.createdAt=An(f.getCreatedAt()),y.executedAt=An(f.getExecutedAt()),u.body.case="move",u.body.value=y}else if(g instanceof Hd){const f=g,y=new Wy;y.parentCreatedAt=An(f.getParentCreatedAt()),y.createdAt=An(f.getCreatedAt()),y.executedAt=An(f.getExecutedAt()),u.body.case="remove",u.body.value=y}else if(g instanceof _1){const f=g,y=new iw;y.parentCreatedAt=An(f.getParentCreatedAt()),y.from=lv(f.getFromPos()),y.to=lv(f.getToPos());const E=y.createdAtMapByActor;for(const[B,Z]of f.getMaxCreatedAtMapByActor())E[B]=An(Z);y.content=f.getContent();const N=y.attributes;for(const[B,Z]of f.getAttributes())N[B]=Z;y.executedAt=An(f.getExecutedAt()),u.body.case="edit",u.body.value=y}else if(g instanceof A1){const f=g,y=new Qy;y.parentCreatedAt=An(f.getParentCreatedAt()),y.from=lv(f.getFromPos()),y.to=lv(f.getToPos());const E=y.createdAtMapByActor;for(const[B,Z]of f.getMaxCreatedAtMapByActor())E[B]=An(Z);const N=y.attributes;for(const[B,Z]of f.getAttributes())N[B]=Z;y.executedAt=An(f.getExecutedAt()),u.body.case="style",u.body.value=y}else if(g instanceof o0){const f=g,y=new g1;y.parentCreatedAt=An(f.getParentCreatedAt()),y.value=D1(f.getValue()),y.executedAt=An(f.getExecutedAt()),u.body.case="increase",u.body.value=y}else if(g instanceof I1){const f=g,y=new Yf,E=y.createdAtMapByActor;for(const[N,B]of f.getMaxCreatedAtMapByActor())E[N]=An(B);y.parentCreatedAt=An(f.getParentCreatedAt()),y.from=uv(f.getFromPos()),y.to=uv(f.getToPos()),y.contents=cv(f.getContents()),y.splitLevel=f.getSplitLevel(),y.executedAt=An(f.getExecutedAt()),u.body.case="treeEdit",u.body.value=y}else if(g instanceof Yd){const f=g,y=new aw;y.parentCreatedAt=An(f.getParentCreatedAt()),y.from=uv(f.getFromPos()),y.to=uv(f.getToPos());const E=y.createdAtMapByActor;for(const[B,Z]of f.getMaxCreatedAtMapByActor())E[B]=An(Z);const N=f.getAttributesToRemove();if(N.length>0)y.attributesToRemove=N;else{const B=y.attributes;for(const[Z,re]of f.getAttributes())B[Z]=re}y.executedAt=An(f.getExecutedAt()),u.body.case="treeStyle",u.body.value=y}else throw new zr(Dr.Unimplemented,"unimplemented operation");return u}function n7(g){const u=[];for(const f of g)u.push(OA(f));return u}function r7(g){const u=new nw({id:gA(g.getID()),message:g.getMessage()});return g.hasOperations()&&(u.operations=n7(g.getOperations())),g.hasPresenceChange()&&(u.presenceChange=e7(g.getPresenceChange())),u}function i7(g){const u=[];for(const f of g)u.push(r7(f));return u}function a7(g){const u=[];for(const f of g)u.push(new sw({key:f.getStrKey(),element:Rw(f.getValue())}));return u}function SA(g){const u=[];for(const f of g)u.push(new L_({element:Rw(f.getValue())}));return u}function s7(g){const u=[];for(const f of g){const y=new Zm;y.id=vA(f.getID()),y.value=f.getValue().getContent(),y.removedAt=An(f.getRemovedAt());const E=y.attributes,N=f.getValue().getAttrs();for(const B of N){const Z=new ow;Z.value=B.getValue(),Z.updatedAt=An(B.getUpdatedAt()),E[B.getKey()]=Z}u.push(y)}return u}function cv(g){const u=[];if(!g||!g.length)return u;for(const f of g)u.push(new qy({content:EA(f)}));return u}function o7(g){const u={};for(const f of g)u[f.getKey()]=new ow({value:f.getValue(),updatedAt:An(f.getUpdatedAt()),isRemoved:f.isRemoved()});return u}function EA(g){if(!g)return[];const u=[];return sv(g,(f,y)=>{const E=new F_({id:N1(f.id),type:f.type,removedAt:An(f.removedAt),depth:y});f.isText&&(E.value=f.value),f.insPrevID&&(E.insPrevId=N1(f.insPrevID)),f.insNextID&&(E.insNextId=N1(f.insNextID)),f.attrs&&(E.attributes=o7(f.attrs)),u.push(E)}),u}function l7(g){const u=new Ml;return u.body.case="jsonObject",u.body.value=new D_({nodes:a7(g.getRHT()),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function wA(g){const u=new Ml;return u.body.case="jsonArray",u.body.value=new N_({nodes:SA(g.getElements()),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function u7(g){const u=new Ml;return u.body.case="primitive",u.body.value=new P_({type:bA(g.getType()),value:g.toBytes(),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function c7(g){const u=new Ml;return u.body.case="text",u.body.value=new Yy({nodes:s7(g.getRGATreeSplit()),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function d7(g){const u=new Ml;return u.body.case="counter",u.body.value=new M_({type:yA(g.getType()),value:g.toBytes(),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function TA(g){const u=new Ml;return u.body.case="tree",u.body.value=new Gm({nodes:EA(g.getRoot()),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function Rw(g){if(g instanceof Gs)return l7(g);if(g instanceof Cs)return wA(g);if(g instanceof wi)return u7(g);if(g instanceof Ul)return c7(g);if(g instanceof tl)return d7(g);if(g instanceof zl)return TA(g);throw new zr(Dr.Unimplemented,"unimplemented element")}function f7(g){return new Bd({documentKey:g.getDocumentKey(),checkpoint:t7(g.getCheckpoint()),isRemoved:g.getIsRemoved(),changes:i7(g.getChanges()),snapshot:g.getSnapshot(),minSyncedTicket:An(g.getMinSyncedTicket())})}function xA(g){let u;return g.serverSeq&&(u=er.fromString(g.serverSeq,!0)),th.of(g.clientSeq,er.fromString(g.lamport,!0),u0(g.actorId),u)}function Nn(g){if(g)return Ys.of(er.fromString(g.lamport,!0),g.delimiter,u0(g.actorId))}function Iw(g){const u={};return Object.entries(g.data).forEach(([f,y])=>{u[f]=JSON.parse(y)}),u}function h7(g){const u=g.type;if(u===Xm.PUT){const f=Iw(g.presence);return{type:Xf.Put,presence:f}}if(u===Xm.CLEAR)return{type:Xf.Clear};throw new zr(Dr.Unsupported,`unsupported type: ${u}`)}function p7(g){const u=new Map;return Object.entries(g).forEach(([f,y])=>{u.set(f,Iw(y))}),u}function kA(g){switch(g){case hr.NULL:return Hi.Null;case hr.BOOLEAN:return Hi.Boolean;case hr.INTEGER:return Hi.Integer;case hr.LONG:return Hi.Long;case hr.DOUBLE:return Hi.Double;case hr.STRING:return Hi.String;case hr.BYTES:return Hi.Bytes;case hr.DATE:return Hi.Date}throw new zr(Dr.Unimplemented,`unimplemented value type: ${g}`)}function P1(g){switch(g){case hr.INTEGER_CNT:return Hc.IntegerCnt;case hr.LONG_CNT:return Hc.LongCnt}throw new zr(Dr.Unimplemented,`unimplemented value type: ${g}`)}function dv(g){switch(g.type){case hr.JSON_OBJECT:return g.value?Nw(g.value):Gs.create(Nn(g.createdAt));case hr.JSON_ARRAY:return g.value?MA(g.value):Cs.create(Nn(g.createdAt));case hr.TEXT:return Ul.create(s0.create(),Nn(g.createdAt));case hr.TREE:return T7(g.value);case hr.NULL:case hr.BOOLEAN:case hr.INTEGER:case hr.LONG:case hr.DOUBLE:case hr.STRING:case hr.BYTES:case hr.DATE:return wi.of(wi.valueFromBytes(kA(g.type),g.value),Nn(g.createdAt));case hr.INTEGER_CNT:case hr.LONG_CNT:return tl.create(P1(g.type),tl.valueFromBytes(P1(g.type),g.value),Nn(g.createdAt))}}function fv(g){return Mu.of(jc.of(Nn(g.createdAt),g.offset),g.relativeOffset)}function CA(g){return jc.of(Nn(g.createdAt),g.offset)}function m7(g){const u=C1.create(g.value);Object.entries(g.attributes).forEach(([y,E])=>{u.setAttr(y,E.value,Nn(E.updatedAt))});const f=nh.create(CA(g.id),u);return f.remove(Nn(g.removedAt)),f}function l0(g){return Pu.of(rh(g.parentId),rh(g.leftSiblingId))}function rh(g){return fi.of(Nn(g.createdAt),g.offset)}function g7(g){if(!g.length)return;const u=[];return g.forEach(f=>{const y=_A(f.content);u.push(y)}),u}function _A(g){if(g.length===0)return;const u=[];for(const y of g)u.push(y7(y));const f=u[u.length-1];for(let y=u.length-2;y>=0;y--){let E;for(let N=y+1;N{f.set(E,Nn(N))});const y=new Map;return Object.entries(u.attributes).forEach(([E,N])=>{y.set(E,N)}),_1.create(Nn(u.parentCreatedAt),fv(u.from),fv(u.to),f,u.content,y,Nn(u.executedAt))}else if(g.body.case==="style"){const u=g.body.value,f=new Map;Object.entries(u.createdAtMapByActor).forEach(([E,N])=>{f.set(E,Nn(N))});const y=new Map;return Object.entries(u.attributes).forEach(([E,N])=>{y.set(E,N)}),A1.create(Nn(u.parentCreatedAt),fv(u.from),fv(u.to),f,y,Nn(u.executedAt))}else{if(g.body.case==="select")return;if(g.body.case==="increase"){const u=g.body.value;return o0.create(Nn(u.parentCreatedAt),dv(u.value),Nn(u.executedAt))}else if(g.body.case==="treeEdit"){const u=g.body.value,f=new Map;return Object.entries(u.createdAtMapByActor).forEach(([y,E])=>{f.set(y,Nn(E))}),I1.create(Nn(u.parentCreatedAt),l0(u.from),l0(u.to),g7(u.contents),u.splitLevel,f,Nn(u.executedAt))}else if(g.body.case==="treeStyle"){const u=g.body.value,f=new Map,y=u.attributesToRemove,E=new Map;return u!=null&&u.createdAtMapByActor&&Object.entries(u.createdAtMapByActor).forEach(([N,B])=>{E.set(N,Nn(B))}),(y==null?void 0:y.length)>0?Yd.createTreeRemoveStyleOperation(Nn(u.parentCreatedAt),l0(u.from),l0(u.to),E,y,Nn(u.executedAt)):(Object.entries(u.attributes).forEach(([N,B])=>{f.set(N,B)}),Yd.create(Nn(u.parentCreatedAt),l0(u.from),l0(u.to),E,f,Nn(u.executedAt)))}else throw new zr(Dr.Unimplemented,"unimplemented operation")}}function v7(g){const u=[];for(const f of g){const y=AA(f);y&&u.push(y)}return u}function RA(g){const u=[];for(const f of g)u.push(Qd.create({id:xA(f.id),operations:v7(f.operations),presenceChange:f.presenceChange?h7(f.presenceChange):void 0,message:f.message}));return u}function O7(g){return a0.of(er.fromString(g.serverSeq,!0),g.clientSeq)}function S7(g){return ov.create(g.documentKey,O7(g.checkpoint),g.isRemoved,RA(g.changes),g.snapshot,Nn(g.minSyncedTicket))}function IA(g){const u=new x1;for(const y of g.nodes){const E=M1(y.element);u.set(y.key,E,E.getPositionedAt())}const f=new Gs(Nn(g.createdAt),u);return f.setMovedAt(Nn(g.movedAt)),f.setRemovedAt(Nn(g.removedAt)),f}function DA(g){const u=new i0;for(const y of g.nodes)u.insert(M1(y.element));const f=new Cs(Nn(g.createdAt),u);return f.setMovedAt(Nn(g.movedAt)),f.setRemovedAt(Nn(g.removedAt)),f}function hv(g){const u=wi.of(wi.valueFromBytes(kA(g.type),g.value),Nn(g.createdAt));return u.setMovedAt(Nn(g.movedAt)),u.setRemovedAt(Nn(g.removedAt)),u}function E7(g){const u=new s0;let f=u.getHead();for(const E of g.nodes){const N=u.insertAfter(f,m7(E));E.insPrevId&&N.setInsPrev(u.findNode(CA(E.insPrevId))),f=N}const y=new Ul(u,Nn(g.createdAt));return y.setMovedAt(Nn(g.movedAt)),y.setRemovedAt(Nn(g.removedAt)),y}function NA(g){const u=tl.create(P1(g.type),tl.valueFromBytes(P1(g.type),g.value),Nn(g.createdAt));return u.setMovedAt(Nn(g.movedAt)),u.setRemovedAt(Nn(g.removedAt)),u}function Dw(g){const u=_A(g.nodes);return zl.create(u,Nn(g.createdAt))}function M1(g){if(g.body.case==="jsonObject")return IA(g.body.value);if(g.body.case==="jsonArray")return DA(g.body.value);if(g.body.case==="primitive")return hv(g.body.value);if(g.body.case==="text")return E7(g.body.value);if(g.body.case==="counter")return NA(g.body.value);if(g.body.case==="tree")return Dw(g.body.value);throw new zr(Dr.Unimplemented,"unimplemented element")}function PA(g){if(!g)return{root:Gs.create(Ru),presences:new Map};const u=Ym.fromBinary(g);return{root:M1(u.root),presences:p7(u.presences)}}function Nw(g){if(!g)throw new Error("bytes is empty");const u=Ml.fromBinary(g);return IA(u.body.value)}function Pw(g){return Rw(g).toBinary()}function MA(g){if(!g)throw new Error("bytes is empty");const u=Ml.fromBinary(g);return DA(u.body.value)}function w7(g){return wA(g).toBinary()}function T7(g){if(!g)throw new Error("bytes is empty");const u=Ml.fromBinary(g);return Dw(u.body.value)}function x7(g){return TA(g).toBinary()}function L1(g){return g?Array.from(g).map(u=>u.toString(16).padStart(2,"0")).join(""):""}function u0(g){return L1(g)}function LA(g){return new Uint8Array(g.match(/.{1,2}/g).map(u=>parseInt(u,16)))}function Mw(g){return LA(g)}function Lw(g){const u=Vy.fromBinary(g);return xA(u)}function $A(g){const u=qm.fromBinary(g);return AA(u)}const ka={fromPresence:Iw,toChangePack:f7,fromChangePack:S7,fromChanges:RA,objectToBytes:Pw,bytesToObject:Nw,bytesToSnapshot:PA,bytesToHex:L1,hexToBytes:LA,toHexString:u0,toUint8Array:Mw,toOperation:OA,toChangeID:gA,PbChangeID:Vy,bytesToChangeID:Lw,bytesToOperation:$A};function FA(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,g=>{const u=Math.random()*16|0;return(g==="x"?u:u&3|8).toString(16)})}class k7{constructor(u,f,y,E){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=u,this.doc=f,this.docID=y,this.syncMode=E,this.remoteChangeEventReceived=!1}changeSyncMode(u){this.syncMode=u}needRealtimeSync(){return this.syncMode===d0.RealtimeSyncOff?!1:this.syncMode===d0.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==d0.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(u){const f=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await u(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(f,this.reconnectStreamDelay)})}catch{}};await f()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const $w=()=>{};class C7{constructor(u){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{u(this)}catch(f){this.error(f)}}next(u){this.forEachObserver(f=>{f.next(u)})}error(u){this.forEachObserver(f=>{f.error(u)}),this.close(u)}complete(){this.forEachObserver(u=>{u.complete()}),this.close()}subscribe(u,f,y){let E;u||Lt.fatal("missing observer"),this.finalized&&Lt.fatal("observable is finalized due to previous error"),typeof u=="object"?E=u:E={next:u,error:f,complete:y},E.next===void 0&&(E.next=$w),E.error===void 0&&(E.error=$w),E.complete===void 0&&(E.complete=$w);const N=FA(),B=this.unsubscribeOne.bind(this,N);if(this.observers.push({subscriptionID:N,observer:E}),this.finalized)try{this.finalError?E.error(this.finalError):E.complete()}catch(Z){Lt.warn(Z)}return B}unsubscribeOne(u){var f;this.observers=(f=this.observers)==null?void 0:f.filter(y=>y.subscriptionID!==u)}forEachObserver(u){if(!this.finalized)for(let f=0;fu}}class c0{constructor(u,f,y,E){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=u,this.delimiter=Au,this.root=f,this.operations=[],this.previousPresence=Ei(y),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=E}static create(u,f,y,E){return new c0(u,f,y,E)}push(u){this.operations.push(u)}registerElement(u,f){this.root.registerElement(u,f)}registerRemovedElement(u){this.root.registerRemovedElement(u)}registerGCPair(u){this.root.registerGCPair(u)}getChange(){return Qd.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(u){this.presenceChange=u}setReversePresence(u,f){for(const y of Object.keys(u))f!=null&&f.addToHistory?this.reversePresenceKeys.add(y):this.reversePresenceKeys.delete(y)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const u={};for(const f of this.reversePresenceKeys)u[f]=this.previousPresence[f];return u}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class $1{constructor(u){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=u,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(u,void 0),u.getDescendants(f=>{if(f.getRemovedAt()&&this.registerRemovedElement(f),f instanceof Ul||f instanceof zl)for(const y of f.getGCPairs())this.registerGCPair(y);return!1})}static create(){return new $1(Gs.create(Ru))}findByCreatedAt(u){const f=this.elementPairMapByCreatedAt.get(u.toIDString());if(f)return f.element}findElementPairByCreatedAt(u){return this.elementPairMapByCreatedAt.get(u.toIDString())}createSubPaths(u){let f=this.elementPairMapByCreatedAt.get(u.toIDString());if(!f)return[];const y=[];for(;f.parent;){const E=f.element.getCreatedAt(),N=f.parent.subPathOf(E);N===void 0&&Lt.fatal(`cant find the given element: ${E.toIDString()}`),y.unshift(N),f=this.elementPairMapByCreatedAt.get(f.parent.getCreatedAt().toIDString())}return y.unshift("$"),y}createPath(u){return this.createSubPaths(u).join(".")}registerElement(u,f){this.elementPairMapByCreatedAt.set(u.getCreatedAt().toIDString(),{parent:f,element:u}),u instanceof Kf&&u.getDescendants((y,E)=>(this.registerElement(y,E),!1))}deregisterElement(u){let f=0;const y=E=>{const N=E.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(N),this.gcElementSetByCreatedAt.delete(N),f++};return y(u),u instanceof Kf&&u.getDescendants(E=>(y(E),!1)),f}registerRemovedElement(u){this.gcElementSetByCreatedAt.add(u.getCreatedAt().toIDString())}registerGCPair(u){if(this.gcPairMap.get(u.child.toIDString())){this.gcPairMap.delete(u.child.toIDString());return}this.gcPairMap.set(u.child.toIDString(),u)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const u=new Set;for(const f of this.gcElementSetByCreatedAt){u.add(f);const y=this.elementPairMapByCreatedAt.get(f);y.element instanceof Kf&&y.element.getDescendants(E=>(u.add(E.getCreatedAt().toIDString()),!1))}return u.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new $1(this.rootObject.deepcopy())}garbageCollect(u){let f=0;for(const y of this.gcElementSetByCreatedAt){const E=this.elementPairMapByCreatedAt.get(y);E.element.getRemovedAt()&&u.compare(E.element.getRemovedAt())>=0&&(E.parent.purge(E.element),f+=this.deregisterElement(E.element))}for(const[,y]of this.gcPairMap){const E=y.child.getRemovedAt();E!==void 0&&u.compare(E)>=0&&(y.parent.purge(y.child),this.gcPairMap.delete(y.child.toIDString()),f+=1)}return f}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function BA(g,u){const f=new F1(g);return new Proxy(u,f.getHandlers())}class F1{constructor(u){s(this,"context"),s(this,"handlers"),this.context=u,this.handlers={set:(f,y,E)=>(Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`obj[${y}]=${JSON.stringify(E)}`),F1.setInternal(u,f,y,E),!0),get:(f,y)=>(Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`obj[${y}]`),y==="getID"?()=>f.getCreatedAt():y==="toJSON"||y==="toString"?()=>f.toJSON():y==="toJS"?()=>f.toJS():y==="toJSForTest"?()=>f.toJSForTest():Tp(u,f.get(y))),ownKeys:f=>f.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(f,y)=>(Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`obj[${y}]`),F1.deleteInternal(u,f,y),!0)}}static setInternal(u,f,y,E){if(y.includes("."))throw new zr(Dr.InvalidObjectKey,"key must not contain the '.'.");const N=u.issueTimeTicket(),B=pv(u,E,N),Z=f.set(y,B,N);u.registerElement(B,f),Z&&u.registerRemovedElement(Z),u.push(_s.create(y,B.deepcopy(),f.getCreatedAt(),N))}static buildObjectMembers(u,f){const y={};for(const[E,N]of Object.entries(f)){if(E.includes("."))throw new zr(Dr.InvalidObjectKey,"key must not contain the '.'.");const B=u.issueTimeTicket(),Z=pv(u,N,B);y[E]=Z}return y}static deleteInternal(u,f,y){const E=u.issueTimeTicket(),N=f.deleteByKey(y,E);N&&(u.push(Hd.create(f.getCreatedAt(),N.getCreatedAt(),E)),u.registerRemovedElement(N))}getHandlers(){return this.handlers}}function A7(g,u){const f=new na(g,u);return new Proxy(u,f.getHandlers())}function R7(g){return typeof g=="string"||g instanceof String?!isNaN(g):!1}function Lu(g){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(g)}class na{constructor(u,f){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=u,this.array=f,this.handlers={get:(y,E,N)=>E==="getID"?()=>y.getCreatedAt():E==="getElementByID"?B=>{const Z=y.getByID(B);if(!(!Z||Z.isRemoved()))return ih(u,Z)}:E==="getElementByIndex"?B=>{const Z=y.get(B);return ih(u,Z)}:E==="getLast"?()=>ih(u,y.getLast()):E==="deleteByID"?B=>{const Z=na.deleteInternalByID(u,y,B);return ih(u,Z)}:E==="insertAfter"?(B,Z)=>{const re=na.insertAfterInternal(u,y,B,Z);return ih(u,re)}:E==="insertBefore"?(B,Z)=>{const re=na.insertBeforeInternal(u,y,B,Z);return ih(u,re)}:E==="moveBefore"?(B,Z)=>{na.moveBeforeInternal(u,y,B,Z)}:E==="moveAfter"?(B,Z)=>{na.moveAfterInternal(u,y,B,Z)}:E==="moveFront"?B=>{na.moveFrontInternal(u,y,B)}:E==="moveLast"?B=>{na.moveLastInternal(u,y,B)}:R7(E)?Tp(u,y.get(Number(E))):E==="push"?B=>na.pushInternal(u,y,B):E==="splice"?(B,Z,...re)=>na.splice(u,y,B,Z,...re):E==="length"?y.length:typeof E=="symbol"&&E===Symbol.iterator?na.iteratorInternal.bind(this,u,y):E==="includes"?(B,Z)=>na.includes(u,y,B,Z):E==="indexOf"?(B,Z)=>na.indexOf(u,y,B,Z):E==="lastIndexOf"?(B,Z)=>na.lastIndexOf(u,y,B,Z):E==="toJSForTest"?()=>y.toJSForTest():E==="toTestString"?()=>na.toTestString(y):typeof E=="string"&&Lu(E)?(...B)=>{const Z=Array.from(y).map(re=>Tp(u,re));return Array.prototype[E].apply(Z,B)}:Reflect.get(y,E,N),deleteProperty:(y,E)=>(Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`array[${E}]`),na.deleteInternalByIndex(u,y,Number.parseInt(E)),!0)}}static*iteratorInternal(u,f){for(const y of f)yield ih(u,y)}static buildArrayElements(u,f){const y=[];for(const E of f){const N=u.issueTimeTicket(),B=pv(u,E,N);y.push(B)}return y}static pushInternal(u,f,y){return na.insertAfterInternal(u,f,f.getLastCreatedAt(),y),f.length}static moveBeforeInternal(u,f,y,E){const N=u.issueTimeTicket(),B=f.getPrevCreatedAt(y);f.moveAfter(B,E,N),u.push(Jf.create(f.getCreatedAt(),B,E,N))}static moveAfterInternal(u,f,y,E){const N=u.issueTimeTicket();f.moveAfter(y,E,N),u.push(Jf.create(f.getCreatedAt(),y,E,N))}static moveFrontInternal(u,f,y){const E=u.issueTimeTicket(),N=f.getHead();f.moveAfter(N.getCreatedAt(),y,E),u.push(Jf.create(f.getCreatedAt(),N.getCreatedAt(),y,E))}static moveLastInternal(u,f,y){const E=u.issueTimeTicket(),N=f.getLastCreatedAt();f.moveAfter(N,y,E),u.push(Jf.create(f.getCreatedAt(),N,y,E))}static insertAfterInternal(u,f,y,E){const N=u.issueTimeTicket(),B=pv(u,E,N);return f.insertAfter(y,B),u.registerElement(B,f),u.push(Nu.create(f.getCreatedAt(),y,B.deepcopy(),N)),B}static insertBeforeInternal(u,f,y,E){return na.insertAfterInternal(u,f,f.getPrevCreatedAt(y),E)}static deleteInternalByIndex(u,f,y){const E=u.issueTimeTicket(),N=f.deleteByIndex(y,E);if(N)return u.push(Hd.create(f.getCreatedAt(),N.getCreatedAt(),E)),u.registerRemovedElement(N),N}static deleteInternalByID(u,f,y){const E=u.issueTimeTicket(),N=f.delete(y,E);return u.push(Hd.create(f.getCreatedAt(),N.getCreatedAt(),E)),u.registerRemovedElement(N),N}static splice(u,f,y,E,...N){const B=f.length,Z=y>=0?Math.min(y,B):Math.max(B+y,0),re=E===void 0?B:E<0?Z:Math.min(Z+E,B),se=[];for(let xe=Z;xe=B)return!1;if(wi.isSupport(y))return Array.from(f).map(se=>Tp(u,se)).includes(y,Z);for(let re=Z;re=B)return-1;if(wi.isSupport(y))return Array.from(f).map(se=>Tp(u,se)).indexOf(y,Z);for(let re=Z;re=B?B-1:E<0?E+B:E;if(Z<0)return-1;if(wi.isSupport(y))return Array.from(f).map(se=>Tp(u,se)).lastIndexOf(y,Z);for(let re=Z;re>0;re--)if(((N=f.get(re))==null?void 0:N.getID())===y.getID())return re;return-1}static toTestString(u){return u.toTestString()}getHandlers(){return this.handlers}}class B1{constructor(u,f){s(this,"context"),s(this,"text"),this.context=u,this.text=f}initialize(u,f){this.context=u,this.text=f}getID(){return this.text.getID()}edit(u,f,y,E){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}if(u>f){Lt.fatal("from should be less than or equal to to");return}const N=this.text.indexRangeToPosRange(u,f);Lt.isEnabled(Jo.Debug)&&Lt.debug(`EDIT: f:${u}->${N[0].toTestString()}, t:${f}->${N[1].toTestString()} c:${y}`);const B=E?n0(E):void 0,Z=this.context.issueTimeTicket(),[re,,se,xe]=this.text.edit(N,y,Z,B);for(const mt of se)this.context.registerGCPair(mt);return this.context.push(new _1(this.text.getCreatedAt(),N[0],N[1],re,y,B?new Map(Object.entries(B)):new Map,Z)),this.text.findIndexesFromRange(xe)}delete(u,f){return this.edit(u,f,"")}empty(){return this.edit(0,this.length,"")}setStyle(u,f,y){if(!this.context||!this.text)return Lt.fatal("it is not initialized yet"),!1;if(u>f)return Lt.fatal("from should be less than or equal to to"),!1;const E=this.text.indexRangeToPosRange(u,f);Lt.isEnabled(Jo.Debug)&&Lt.debug(`STYL: f:${u}->${E[0].toTestString()}, t:${f}->${E[1].toTestString()} a:${JSON.stringify(y)}`);const N=n0(y),B=this.context.issueTimeTicket(),[Z,re]=this.text.setStyle(E,N,B);for(const se of re)this.context.registerGCPair(se);return this.context.push(new A1(this.text.getCreatedAt(),E[0],E[1],Z,new Map(Object.entries(N)),B)),!0}indexRangeToPosRange(u){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}const f=this.text.indexRangeToPosRange(u[0],u[1]);return[f[0].toStruct(),f[1].toStruct()]}posRangeToIndexRange(u){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}const f=this.text.findIndexesFromRange([Mu.fromStruct(u[0]),Mu.fromStruct(u[1])]);return[f[0],f[1]]}toTestString(){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}checkWeight(){return this.text.checkWeight()}toString(){return!this.context||!this.text?(Lt.fatal("it is not initialized yet"),""):this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSForTest()}createRangeForTest(u,f){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(u,f)}}class $u{constructor(u,f){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=u,this.value=f}initialize(u,f){this.valueType=f.getValueType(),this.context=u,this.counter=f,this.value=f.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(u){if(!this.context||!this.counter){Lt.fatal("it is not initialized yet");return}const f=this.context.issueTimeTicket(),y=wi.of(u,f);if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`);return this.counter.increase(y),this.context.push(o0.create(this.counter.getCreatedAt(),y,f)),this}toJSForTest(){if(!this.context||!this.counter)throw new Error("it is not initialized yet");return this.counter.toJSForTest()}}function or(g,u,f){const{type:y}=g,E=f.issueTimeTicket();if(y===Wd){Zs(g);const{value:N}=g,B=el.create(fi.of(E,0),y,N);u.append(B)}else{const{children:N=[]}=g;let{attributes:B}=g,Z;if(typeof B=="object"&&!dA(B)){B=n0(B),Z=new Vd;for(const[se,xe]of Object.entries(B))Z.set(se,xe,E)}const re=el.create(fi.of(E,0),y,void 0,Z);u.append(re);for(const se of N)or(se,re,f)}}function I7(g,u){const{type:f}=u,y=g.issueTimeTicket();let E;if(u.type===Wd){const{value:N}=u;E=el.create(fi.of(y,0),f,N)}else if(u){const{children:N=[]}=u;let{attributes:B}=u,Z;if(typeof B=="object"&&!dA(B)){B=n0(B),Z=new Vd;for(const[re,se]of Object.entries(B))Z.set(re,se,y)}E=el.create(fi.of(g.issueTimeTicket(),0),f,void 0,Z);for(const re of N)or(re,E,g)}return E}function Zs(g){if(!g.value.length)throw new Error("text node cannot have empty value");return!0}function ra(g){if(!g.length)return!0;if(g[0].type===Wd)for(const f of g){const{type:y}=f;if(y!==Wd)throw new Error("element node and text node cannot be passed together");Zs(f)}else for(const f of g){const{type:y}=f;if(y===Wd)throw new Error("element node and text node cannot be passed together")}return!0}class U1{constructor(u){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=u}initialize(u,f){this.context=u,this.tree=f}getID(){return this.tree.getID()}buildRoot(u){if(!this.initialRoot)return el.create(fi.of(u.issueTimeTicket(),0),HP);const f=el.create(fi.of(u.issueTimeTicket(),0),this.initialRoot.type);for(const y of this.initialRoot.children)or(y,f,u);return f}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(u,f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!u.length)throw new Error("path should not be empty");const[y,E]=this.tree.pathToPosRange(u),N=this.context.issueTimeTicket(),B=f?n0(f):void 0,[Z]=this.tree.style([y,E],B,N);this.context.push(Yd.create(this.tree.getCreatedAt(),y,E,Z,B?new Map(Object.entries(B)):new Map,N))}style(u,f,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u>f)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(u),N=this.tree.findPos(f),B=this.context.issueTimeTicket(),Z=y?n0(y):void 0,[re,se]=this.tree.style([E,N],Z,B);for(const xe of se)this.context.registerGCPair(xe);this.context.push(Yd.create(this.tree.getCreatedAt(),E,N,re,Z?new Map(Object.entries(Z)):new Map,B))}removeStyle(u,f,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u>f)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(u),N=this.tree.findPos(f),B=this.context.issueTimeTicket(),[Z,re]=this.tree.removeStyle([E,N],y,B);for(const se of re)this.context.registerGCPair(se);this.context.push(Yd.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),E,N,Z,y,B))}editInternal(u,f,y,E=0){var N;if(y.length!==0&&y[0]&&(ra(y),y[0].type!==Wd))for(const xe of y){const{children:mt=[]}=xe;ra(mt)}const B=this.context.getLastTimeTicket();let Z=new Array;if(((N=y[0])==null?void 0:N.type)===Wd){let xe="";for(const mt of y){const{value:Be}=mt;xe+=Be}Z.push(el.create(fi.of(this.context.issueTimeTicket(),0),Wd,xe))}else Z=y.map(xe=>xe&&I7(this.context,xe)).filter(xe=>xe);const[,re,se]=this.tree.edit([u,f],Z.length?Z.map(xe=>xe==null?void 0:xe.deepcopy()):void 0,E,B,()=>this.context.issueTimeTicket());for(const xe of re)this.context.registerGCPair(xe);return this.context.push(I1.create(this.tree.getCreatedAt(),u,f,Z.length?Z:void 0,E,se,B)),!0}editByPath(u,f,y,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u.length!==f.length)throw new Error("path length should be equal");if(!u.length||!f.length)throw new Error("path should not be empty");const N=this.tree.pathToPos(u),B=this.tree.pathToPos(f);return this.editInternal(N,B,y?[y]:[],E)}editBulkByPath(u,f,y,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u.length!==f.length)throw new Error("path length should be equal");if(!u.length||!f.length)throw new Error("path should not be empty");const N=this.tree.pathToPos(u),B=this.tree.pathToPos(f);return this.editInternal(N,B,y,E)}edit(u,f,y,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u>f)throw new Error("from should be less than or equal to to");const N=this.tree.findPos(u),B=this.tree.findPos(f);return this.editInternal(N,B,y?[y]:[],E)}editBulk(u,f,y,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u>f)throw new Error("from should be less than or equal to to");const N=this.tree.findPos(u),B=this.tree.findPos(f);return this.editInternal(N,B,y,E)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(u){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(u)}pathToIndex(u){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(u)}pathRangeToPosRange(u){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const f=[this.tree.pathToIndex(u[0]),this.tree.pathToIndex(u[1])],y=this.tree.indexRangeToPosRange(f);return[y[0].toStruct(),y[1].toStruct()]}indexRangeToPosRange(u){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(u)}posRangeToIndexRange(u){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const f=[Pu.fromStruct(u[0]),Pu.fromStruct(u[1])];return this.tree.posRangeToIndexRange(f)}posRangeToPathRange(u){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const f=[Pu.fromStruct(u[0]),Pu.fromStruct(u[1])];return this.tree.posRangeToPathRange(f)}}function qd(g,u){return BA(g,u)}function ih(g,u){if(u){if(u instanceof wi)return u;if(u instanceof Gs)return BA(g,u);if(u instanceof Cs)return A7(g,u);if(u instanceof Ul)return new B1(g,u);if(u instanceof tl){const f=new $u(Hc.IntegerCnt,0);return f.initialize(g,u),f}else if(u instanceof zl){const f=new U1;return f.initialize(g,u),f}}else return;throw new TypeError(`Unsupported type of element: ${typeof u}`)}function Tp(g,u){const f=ih(g,u);return f instanceof wi?f.getValue():f}function pv(g,u,f){let y;if(wi.isSupport(u))y=wi.of(u,f);else if(Array.isArray(u))y=Cs.create(f,na.buildArrayElements(g,u));else if(typeof u=="object")u instanceof B1?(y=Ul.create(s0.create(),f),u.initialize(g,y)):u instanceof $u?(y=tl.create(u.getValueType(),u.getValue(),f),u.initialize(g,y)):u instanceof U1?(y=zl.create(u.buildRoot(g),f),u.initialize(g,y)):y=Gs.create(f,F1.buildObjectMembers(g,u));else throw new TypeError(`Unsupported type of value: ${typeof u}`);return y}const UA=50;class D7{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(u){this.undoStack.length>=UA&&this.undoStack.shift(),this.undoStack.push(u)}popUndo(){return this.undoStack.pop()}pushRedo(u){this.redoStack.length>=UA&&this.redoStack.shift(),this.redoStack.push(u)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const mv="yorkie-devtools-panel",zA="yorkie-devtools-sdk";let xo="disconnected";const Fw=new Map,xp=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=xp);function Ti(g,u){(u!=null&&u.force||xo!=="disconnected")&&window.postMessage({source:zA,...g},"*")}function ia(g){if(!g.isEnableDevtools()||typeof window>"u"||Fw.has(g.getKey()))return;xp.set(g.getKey(),[]);const u=g.subscribe("all",f=>{f.some(y=>y.type!==Xs.StatusChanged&&y.type!==Xs.Snapshot&&y.type!==Xs.LocalChange&&y.type!==Xs.RemoteChange&&y.type!==Xs.Initialized&&y.type!==Xs.Watched&&y.type!==Xs.Unwatched&&y.type!==Xs.PresenceChanged)||(xp.get(g.getKey()).push(f),xo==="synced"&&Ti({msg:"doc::sync::partial",docKey:g.getKey(),event:f}))});Fw.set(g.getKey(),[u]),Ti({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",f=>{var y;if(((y=f.data)==null?void 0:y.source)!==mv)return;switch(f.data.msg){case"devtools::connect":if(xo!=="disconnected")break;xo="connected",Ti({msg:"doc::available",docKey:g.getKey()}),Lt.info(`[YD] Devtools connected. Doc: ${g.getKey()}`);break;case"devtools::disconnect":xo="disconnected",Lt.info(`[YD] Devtools disconnected. Doc: ${g.getKey()}`);break;case"devtools::subscribe":xo="synced",Ti({msg:"doc::sync::full",docKey:g.getKey(),events:xp.get(g.getKey())}),Lt.info(`[YD] Devtools subscribed. Doc: ${g.getKey()}`);break}})}var Gd=(g=>(g.Detached="detached",g.Attached="attached",g.Removed="removed",g))(Gd||{}),Xs=(g=>(g.StatusChanged="status-changed",g.ConnectionChanged="connection-changed",g.SyncStatusChanged="sync-status-changed",g.Snapshot="snapshot",g.LocalChange="local-change",g.RemoteChange="remote-change",g.Initialized="initialized",g.Watched="watched",g.Unwatched="unwatched",g.PresenceChanged="presence-changed",g))(Xs||{}),gv=(g=>(g.Connected="connected",g.Disconnected="disconnected",g))(gv||{}),bv=(g=>(g.Synced="synced",g.SyncFailed="sync-failed",g))(bv||{});class Bw{constructor(u,f){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=f||{},this.key=u,this.status="detached",this.root=$1.create(),this.changeID=ZP,this.checkpoint=XP,this.localChanges=[],this.eventStream=_7(y=>{this.eventStreamObserver=y}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new D7,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},ia(this)}update(u,f){if(this.getStatus()==="removed")throw new zr(Dr.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const y=this.changeID.getActorID(),E=c0.create(this.changeID.next(),this.clone.root,this.clone.presences.get(y)||{},f);try{const N=qd(E,this.clone.root.getObject());this.presences.has(y)||this.clone.presences.set(y,{}),this.isUpdating=!0,u(N,new rv(E,this.clone.presences.get(y)))}catch(N){throw this.clone=void 0,Lt.error(N),N}finally{this.isUpdating=!1}if(E.hasChange()){Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`trying to update a local change: ${this.toJSON()}`);const N=E.getChange(),{opInfos:B,reverseOps:Z}=N.execute(this.root,this.presences,di.Local),re=E.getReversePresence();re&&Z.push({type:"presence",value:re}),this.localChanges.push(N),Z.length>0&&this.internalHistory.pushUndo(Z),B.length>0&&this.internalHistory.clearRedo(),this.changeID=N.getID();const se=[];B.length>0&&se.push({type:"local-change",source:di.Local,value:{message:N.getMessage()||"",operations:B,actor:y,clientSeq:N.getID().getClientSeq(),serverSeq:N.getID().getServerSeq()},rawChange:this.isEnableDevtools()?N.toStruct():void 0}),N.hasPresenceChange()&&se.push({type:"presence-changed",source:di.Local,value:{clientID:y,presence:this.getPresence(y)}}),this.publish(se),Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(u,f,y,E){if(typeof u=="string"){if(typeof f!="function")throw new Error("Second argument must be a callback function");if(u==="presence"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type!=="initialized"&&se.type!=="watched"&&se.type!=="unwatched"&&se.type!=="presence-changed"||Z(se)},y,E)}if(u==="my-presence"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type!=="initialized"&&se.type!=="presence-changed"||se.type==="presence-changed"&&se.value.clientID!==this.changeID.getActorID()||Z(se)},y,E)}if(u==="others"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type!=="watched"&&se.type!=="unwatched"&&se.type!=="presence-changed"||se.value.clientID!==this.changeID.getActorID()&&Z(se)},y,E)}if(u==="connection"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type==="connection-changed"&&Z(se)},y,E)}if(u==="sync"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type==="sync-status-changed"&&Z(se)},y,E)}if(u==="all"){const Z=f;return this.eventStream.subscribe(Z,y,E)}const N=u,B=f;return this.eventStream.subscribe(Z=>{for(const re of Z){if(re.type!=="local-change"&&re.type!=="remote-change")continue;const se=[];for(const xe of re.value.operations)this.isSameElementOrChildOf(xe.path,N)&&se.push(xe);se.length&&B({...re,value:{...re.value,operations:se}})}},y,E)}if(typeof u=="function"){const N=u,B=f,Z=y;return this.eventStream.subscribe(re=>{for(const se of re)se.type!=="snapshot"&&se.type!=="local-change"&&se.type!=="remote-change"||N(se)},B,Z)}throw new Error(`"${u}" is not a valid`)}publish(u){this.eventStreamObserver&&this.eventStreamObserver.next(u)}isSameElementOrChildOf(u,f){if(f===u)return!0;const y=u.split(".");return f.split(".").every((N,B)=>N===y[B])}applyChangePack(u){for(u.hasSnapshot()?this.applySnapshot(u.getCheckpoint().getServerSeq(),u.getSnapshot()):u.hasChanges()&&this.applyChanges(u.getChanges(),di.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>u.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(u.getCheckpoint()),this.garbageCollect(u.getMinSyncedTicket()),u.getIsRemoved()&&this.applyStatus("removed"),Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:Ei(this.presences)})}createChangePack(){const u=Array.from(this.localChanges),f=this.checkpoint.increaseClientSeq(u.length);return ov.create(this.key,f,!1,u)}setActor(u){for(const f of this.localChanges)f.setActor(u);this.changeID=this.changeID.setActor(u)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const u=c0.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return qd(u,this.clone.root.getObject())}garbageCollect(u){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(u),this.root.garbageCollect(u))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(u,f){const{root:y,presences:E}=ka.bytesToSnapshot(f);this.root=new $1(y),this.presences=E,this.changeID=this.changeID.syncLamport(u),this.clone=void 0,this.publish([{type:"snapshot",source:di.Remote,value:{snapshot:this.isEnableDevtools()?ka.bytesToHex(f):void 0,serverSeq:u.toString()}}])}applyChanges(u,f){Lt.isEnabled(Jo.Debug)&&Lt.debug(`trying to apply ${u.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Lt.isEnabled(Jo.Trivial)&&Lt.trivial(u.map(y=>`${y.getID().toTestString()} ${y.toTestString()}`).join(` -`));for(const y of u)this.applyChange(y,f);Lt.isEnabled(Jo.Debug)&&Lt.debug(`after appling ${u.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(u,f){this.ensureClone(),u.execute(this.clone.root,this.clone.presences,f);const y=[],E=u.getID().getActorID();if(u.hasPresenceChange()&&this.onlineClients.has(E)){const B=u.getPresenceChange();switch(B.type){case Xf.Put:y.push(this.presences.has(E)?{type:"presence-changed",source:f,value:{clientID:E,presence:B.presence}}:{type:"watched",source:di.Remote,value:{clientID:E,presence:B.presence}});break;case Xf.Clear:y.push({type:"unwatched",source:di.Remote,value:{clientID:E,presence:this.getPresence(E)}}),this.removeOnlineClient(E);break}}const{opInfos:N}=u.execute(this.root,this.presences,f);if(this.changeID=this.changeID.syncLamport(u.getID().getLamport()),N.length>0){const B=this.isEnableDevtools()?u.toStruct():void 0;y.push(f===di.Remote?{type:"remote-change",source:f,value:{actor:E,clientSeq:u.getID().getClientSeq(),serverSeq:u.getID().getServerSeq(),message:u.getMessage()||"",operations:N},rawChange:B}:{type:"local-change",source:f,value:{actor:E,clientSeq:u.getID().getClientSeq(),serverSeq:u.getID().getServerSeq(),message:u.getMessage()||"",operations:N},rawChange:B})}y.length>0&&this.publish(y)}applyWatchStream(u){if(u.body.case==="initialization"){const f=u.body.value.clientIds,y=new Set;for(const E of f)E!==this.changeID.getActorID()&&y.add(E);this.setOnlineClients(y),this.publish([{type:"initialized",source:di.Local,value:this.getPresences()}]);return}if(u.body.case==="event"){const{type:f,publisher:y}=u.body.value,E=[];if(f===m1.DOCUMENT_WATCHED)this.addOnlineClient(y),this.hasPresence(y)&&E.push({type:"watched",source:di.Remote,value:{clientID:y,presence:this.getPresence(y)}});else if(f===m1.DOCUMENT_UNWATCHED){const N=this.getPresence(y);this.removeOnlineClient(y),N&&E.push({type:"unwatched",source:di.Remote,value:{clientID:y,presence:N}})}E.length>0&&this.publish(E)}}applyStatus(u){this.status=u,u==="detached"&&this.setActor(iv),this.publish([{source:u==="removed"?di.Remote:di.Local,type:"status-changed",value:u==="attached"?{status:u,actorID:this.changeID.getActorID()}:{status:u}}])}applyDocEvent(u){if(u.type==="status-changed"){this.applyStatus(u.value.status),u.value.status==="attached"&&this.setActor(u.value.actorID);return}if(u.type==="snapshot"){const{snapshot:f,serverSeq:y}=u.value;if(!f)return;this.applySnapshot(er.fromString(y),ka.hexToBytes(f));return}if(u.type==="local-change"||u.type==="remote-change"){if(!u.rawChange)return;const f=Qd.fromStruct(u.rawChange);this.applyChange(f,u.source)}if(u.type==="initialized"){const f=new Set;for(const{clientID:y,presence:E}of u.value)f.add(y),this.presences.set(y,E);this.setOnlineClients(f);return}if(u.type==="watched"){const{clientID:f,presence:y}=u.value;this.addOnlineClient(f),this.presences.set(f,y);return}if(u.type==="unwatched"){const{clientID:f}=u.value;this.removeOnlineClient(f),this.presences.delete(f)}if(u.type==="presence-changed"){const{clientID:f,presence:y}=u.value;this.presences.set(f,y)}}applyTransactionEvent(u){for(const f of u)this.applyDocEvent(f)}getValueByPath(u){if(!u.startsWith("$"))throw new zr(Dr.InvalidArgument,'path must start with "$"');const f=u.split(".");f.shift();let y=this.getRoot();for(const E of f)if(y=y[E],y===void 0)return;return y}setOnlineClients(u){this.onlineClients=u}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(u){this.onlineClients.add(u)}removeOnlineClient(u){this.onlineClients.delete(u)}hasPresence(u){return this.presences.has(u)}getMyPresence(){if(this.status!=="attached")return{};const u=this.presences.get(this.changeID.getActorID());return u?Ei(u):{}}getPresence(u){if(u===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(u))return;const f=this.presences.get(u);return f?Ei(f):void 0}getPresenceForTest(u){const f=this.presences.get(u);return f?Ei(f):void 0}getPresences(){const u=[];u.push({clientID:this.changeID.getActorID(),presence:Ei(this.getMyPresence())});for(const f of this.onlineClients)this.presences.has(f)&&u.push({clientID:f,presence:Ei(this.presences.get(f))});return u}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const u=this.getChangeID().getActorID();return this.getPresences().filter(f=>f.clientID!==u).sort((f,y)=>f.clientID>y.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const u=this.internalHistory.popUndo();if(u===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const f=c0.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const se of u){if(!(se instanceof Du)){new rv(f,Ei(this.clone.presences.get(this.changeID.getActorID()))).set(se.value,{addToHistory:!0});continue}const xe=f.issueTimeTicket();se.setExecutedAt(xe),f.push(se)}const y=f.getChange();y.execute(this.clone.root,this.clone.presences,di.UndoRedo);const{opInfos:E,reverseOps:N}=y.execute(this.root,this.presences,di.UndoRedo),B=f.getReversePresence();if(B&&N.push({type:"presence",value:B}),N.length>0&&this.internalHistory.pushRedo(N),!y.hasPresenceChange()&&E.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const Z=this.changeID.getActorID(),re=[];E.length>0&&re.push({type:"local-change",source:di.UndoRedo,value:{message:y.getMessage()||"",operations:E,actor:Z,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&re.push({type:"presence-changed",source:di.UndoRedo,value:{clientID:Z,presence:this.getPresence(Z)}}),this.publish(re)}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const u=this.internalHistory.popRedo();if(u===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const f=c0.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const se of u){if(!(se instanceof Du)){new rv(f,Ei(this.clone.presences.get(this.changeID.getActorID()))).set(se.value,{addToHistory:!0});continue}const xe=f.issueTimeTicket();se.setExecutedAt(xe),f.push(se)}const y=f.getChange();y.execute(this.clone.root,this.clone.presences,di.UndoRedo);const{opInfos:E,reverseOps:N}=y.execute(this.root,this.presences,di.UndoRedo),B=f.getReversePresence();if(B&&N.push({type:"presence",value:B}),N.length>0&&this.internalHistory.pushUndo(N),!y.hasPresenceChange()&&E.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const Z=this.changeID.getActorID(),re=[];E.length>0&&re.push({type:"local-change",source:di.UndoRedo,value:{message:y.getMessage()||"",operations:E,actor:Z,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&re.push({type:"presence-changed",source:di.UndoRedo,value:{clientID:Z,presence:this.getPresence(Z)}}),this.publish(re)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function N7(g,u){return f=>async y=>(g&&y.header.set("x-api-key",g),u&&y.header.set("authorization",u),await f(y))}const zw={name:"yorkie-js-sdk",version:"0.4.24",description:"Yorkie JS SDK",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts",files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:examples":"npm run build --workspace examples","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"npm run build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.2.0","@types/google-protobuf":"^3.15.5","@types/jsdom":"^21.1.3","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",jsdom:"^22.1.0",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^4.7.4","typescript-transform-paths":"^3.3.1",vite:"^4.4.9","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5","vitest-environment-custom-jsdom":"file:test/vitest/env"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.2.0","@connectrpc/connect-web":"^1.2.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"npm run lint"}},workspaces:["examples/*"]};function Hl(){return g=>async u=>(u.header.set("x-yorkie-user-agent",zw.name+"/"+zw.version),await g(u))}var d0=(g=>(g.Manual="manual",g.Realtime="realtime",g.RealtimePushOnly="realtime-pushonly",g.RealtimeSyncOff="realtime-syncoff",g))(d0||{}),HA=(g=>(g.Deactivated="deactivated",g.Activated="activated",g))(HA||{});const jr={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class jw{constructor(u,f){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),f=f||jr,this.key=f.key?f.key:FA(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=f.apiKey||"",this.syncLoopDuration=f.syncLoopDuration||jr.syncLoopDuration,this.reconnectStreamDelay=f.reconnectStreamDelay||jr.reconnectStreamDelay,this.retrySyncLoopDelay=f.retrySyncLoopDelay||jr.retrySyncLoopDelay,this.rpcClient=uP(Jy,OP({baseUrl:u,interceptors:[N7(f.apiKey,f.token),Hl()]}))}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(u=>{this.id=u.clientId,this.status="activated",this.runSyncLoop(),Lt.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(u=>{throw Lt.error(`[AC] c:"${this.getKey()}" err :`,u),u})}deactivate(){if(this.status==="deactivated")return Promise.resolve();for(const[u]of this.attachmentMap)this.detachInternal(u);return this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status="deactivated",Lt.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(u=>{throw Lt.error(`[DC] c:"${this.getKey()}" err :`,u),u})}attach(u,f={}){if(!this.isActive())throw new zr(Dr.ClientNotActive,`${this.key} is not active`);if(u.getStatus()!==Gd.Detached)throw new zr(Dr.DocumentNotDetached,`${u.getKey()} is not detached`);u.setActor(this.id),u.update((E,N)=>N.set(f.initialPresence||{}));const y=f.syncMode??"realtime";return this.rpcClient.attachDocument({clientId:this.id,changePack:ka.toChangePack(u.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${u.getKey()}`}}).then(async E=>{const N=ka.fromChangePack(E.changePack);return u.applyChangePack(N),u.getStatus()===Gd.Removed||(u.applyStatus(Gd.Attached),this.attachmentMap.set(u.getKey(),new k7(this.reconnectStreamDelay,u,E.documentId,y)),y!=="manual"&&await this.runWatchLoop(u.getKey()),Lt.info(`[AD] c:"${this.getKey()}" attaches d:"${u.getKey()}"`)),u}).catch(E=>{throw Lt.error(`[AD] c:"${this.getKey()}" err :`,E),E})}detach(u,f={}){if(!this.isActive())throw new zr(Dr.ClientNotActive,`${this.key} is not active`);const y=this.attachmentMap.get(u.getKey());if(!y)throw new zr(Dr.DocumentNotAttached,`${u.getKey()} is not attached`);return u.update((E,N)=>N.clear()),this.rpcClient.detachDocument({clientId:this.id,documentId:y.docID,changePack:ka.toChangePack(u.createChangePack()),removeIfNotAttached:f.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${u.getKey()}`}}).then(E=>{const N=ka.fromChangePack(E.changePack);return u.applyChangePack(N),u.getStatus()!==Gd.Removed&&u.applyStatus(Gd.Detached),this.detachInternal(u.getKey()),Lt.info(`[DD] c:"${this.getKey()}" detaches d:"${u.getKey()}"`),u}).catch(E=>{throw Lt.error(`[DD] c:"${this.getKey()}" err :`,E),E})}async changeSyncMode(u,f){if(!this.isActive())throw new zr(Dr.ClientNotActive,`${this.key} is not active`);const y=this.attachmentMap.get(u.getKey());if(!y)throw new zr(Dr.DocumentNotAttached,`${u.getKey()} is not attached`);const E=y.syncMode;return E===f?u:(y.changeSyncMode(f),f==="manual"?(y.cancelWatchStream(),u):(f==="realtime"&&(y.remoteChangeEventReceived=!0),E==="manual"&&await this.runWatchLoop(u.getKey()),u))}sync(u){if(!this.isActive())throw new zr(Dr.ClientNotActive,`${this.key} is not active`);const f=[];if(u){const y=this.attachmentMap.get(u.getKey());if(!y)throw new zr(Dr.DocumentNotAttached,`${u.getKey()} is not attached`);f.push(this.syncInternal(y,"realtime"))}else this.attachmentMap.forEach(y=>{f.push(this.syncInternal(y,y.syncMode))});return Promise.all(f)}remove(u){if(!this.isActive())throw new zr(Dr.ClientNotActive,`${this.key} is not active`);const f=this.attachmentMap.get(u.getKey());if(!f)throw new zr(Dr.DocumentNotAttached,`${u.getKey()} is not attached`);u.setActor(this.id);const y=ka.toChangePack(u.createChangePack());return y.isRemoved=!0,this.rpcClient.removeDocument({clientId:this.id,documentId:f.docID,changePack:y},{headers:{"x-shard-key":`${this.apiKey}/${u.getKey()}`}}).then(E=>{const N=ka.fromChangePack(E.changePack);u.applyChangePack(N),this.detachInternal(u.getKey()),Lt.info(`[RD] c:"${this.getKey()}" removes d:"${u.getKey()}"`)}).catch(E=>{throw Lt.error(`[RD] c:"${this.getKey()}" err :`,E),E})}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}runSyncLoop(){const u=()=>{if(!this.isActive()){Lt.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const f=[];for(const[,y]of this.attachmentMap)y.needRealtimeSync()&&(y.remoteChangeEventReceived=!1,f.push(this.syncInternal(y,y.syncMode)));Promise.all(f).then(()=>setTimeout(u,this.syncLoopDuration)).catch(y=>{Lt.error(`[SL] c:"${this.getKey()}" sync failed:`,y),setTimeout(u,this.retrySyncLoopDelay)})};Lt.debug(`[SL] c:"${this.getKey()}" run sync loop`),u()}async runWatchLoop(u){const f=this.attachmentMap.get(u);if(!f)throw new zr(Dr.DocumentNotAttached,`${u} is not attached`);return f.runWatchLoop(y=>{if(!this.isActive())return Promise.reject(new zr(Dr.ClientNotActive,`${this.key} is not active`));const E=new AbortController,N=this.rpcClient.watchDocument({clientId:this.id,documentId:f.docID},{headers:{"x-shard-key":`${this.apiKey}/${u}`},signal:E.signal});return f.doc.publish([{type:Xs.ConnectionChanged,value:gv.Connected}]),Lt.info(`[WD] c:"${this.getKey()}" watches d:"${u}"`),new Promise((B,Z)=>{(async()=>{try{for await(const se of N)this.handleWatchDocumentsResponse(f,se),se.body.case==="initialization"&&B([N,E])}catch(se){f.doc.resetOnlineClients(),f.doc.publish([{type:Xs.Initialized,source:di.Local,value:f.doc.getPresences()}]),f.doc.publish([{type:Xs.ConnectionChanged,value:gv.Disconnected}]),Lt.debug(`[WD] c:"${this.getKey()}" unwatches`),se instanceof Kn&&se.code!=o.Canceled&&y(),Z(se)}})()})})}handleWatchDocumentsResponse(u,f){if(f.body.case==="event"&&f.body.value.type===m1.DOCUMENT_CHANGED){u.remoteChangeEventReceived=!0;return}u.doc.applyWatchStream(f)}detachInternal(u){const f=this.attachmentMap.get(u);f&&(f.cancelWatchStream(),Lt.debug(`[WD] c:"${this.getKey()}" unwatches`),this.attachmentMap.delete(u))}syncInternal(u,f){const{doc:y,docID:E}=u,N=y.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:E,changePack:ka.toChangePack(N),pushOnly:f==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${y.getKey()}`}}).then(B=>{const Z=ka.fromChangePack(B.changePack);if(Z.hasChanges()&&(u.syncMode==="realtime-pushonly"||u.syncMode==="realtime-syncoff"))return y;y.applyChangePack(Z),u.doc.publish([{type:Xs.SyncStatusChanged,value:bv.Synced}]),y.getStatus()===Gd.Removed&&this.detachInternal(y.getKey());const re=y.getKey(),se=Z.getChangeSize();return Lt.info(`[PP] c:"${this.getKey()}" sync d:"${re}", push:${N.getChangeSize()} pull:${se} cp:${Z.getCheckpoint().toTestString()}`),y}).catch(B=>{throw y.publish([{type:Xs.SyncStatusChanged,value:bv.SyncFailed}]),Lt.error(`[PP] c:"${this.getKey()}" err :`,B),B})}}const VA=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),vv={Client:jw,Document:Bw,Primitive:wi,Text:B1,Counter:$u,Tree:U1,IntType:Hc.IntegerCnt,LongType:Hc.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:jw,Document:Bw,Primitive:wi,Text:B1,Counter:$u,Tree:U1,IntType:Hc.IntegerCnt,LongType:Hc.LongCnt}),r.Change=Qd,r.Client=jw,r.ClientStatus=HA,r.Counter=$u,r.Devtools=VA,r.DocEventType=Xs,r.Document=Bw,r.DocumentStatus=Gd,r.DocumentSyncStatus=bv,r.EventSourceDevPanel=mv,r.EventSourceSDK=zA,r.OpSource=di,r.Primitive=wi,r.StreamConnectionStatus=gv,r.SyncMode=d0,r.Text=B1,r.TimeTicket=Ys,r.Tree=U1,r.converter=ka,r.default=vv,r.setLogLevel=w1,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(wF,wF.exports);var dI=wF.exports;class SGe{constructor(t,n){Ks(this,"doc");Ks(this,"client");this.doc=t,this.client=n}}const Wj=wn.define({combine(e){return e[e.length-1]}});Rf.define();class EGe{constructor(t){Ks(this,"view");Ks(this,"conf");Ks(this,"_doc");this.view=t,this.conf=t.state.facet(Wj),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[$s.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new dI.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[$s.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation($s.remote))continue;let i=0;n.changes.iterChanges((a,s,o,l,c)=>{const d=c.toJSON().join(` -`);this._doc.update(h=>{h.content.edit(a+i,s+i,d)}),i+=d.length-(s-a)})}}}const wGe=Ea.fromClass(EGe);class TGe{constructor(t,n){this.left=t,this.right=n}}const Ob=(e,t)=>new TGe(e,t),xGe=(e,t)=>e.forEach(n=>t(n.left,n.right)),rp=typeof document<"u"?document:{},kGe=e=>rp.createElement(e),CGe=()=>rp.createDocumentFragment(),_Ge=e=>rp.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const AGe=(e,t)=>(xGe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),RGe=e=>{const t=CGe();for(let n=0;n(N0e(e,RGe(t)),e),p5=(e,t=[],n=[])=>IGe(AGe(kGe(e),t),n),G4=_Ge,N0e=(e,t)=>e.appendChild(t);rp.ELEMENT_NODE;rp.TEXT_NODE;rp.CDATA_SECTION_NODE;rp.COMMENT_NODE;rp.DOCUMENT_NODE;rp.DOCUMENT_TYPE_NODE;rp.DOCUMENT_FRAGMENT_NODE;var fI={exports:{}};/** + */var To=null;try{To=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function er(g,u,f){this.low=g|0,this.high=u|0,this.unsigned=!!f}er.prototype.__isLong__,Object.defineProperty(er.prototype,"__isLong__",{value:!0});function xs(g){return(g&&g.__isLong__)===!0}function Sw(g){var u=Math.clz32(g&-g);return g?31-u:u}er.isLong=xs;var E1={},Ew={};function zd(g,u){var f,y,E;return u?(g>>>=0,(E=0<=g&&g<256)&&(y=Ew[g],y)?y:(f=zr(g,0,!0),E&&(Ew[g]=f),f)):(g|=0,(E=-128<=g&&g<128)&&(y=E1[g],y)?y:(f=zr(g,g<0?-1:0,!1),E&&(E1[g]=f),f))}er.fromInt=zd;function $l(g,u){if(isNaN(g))return u?_u:Ko;if(u){if(g<0)return _u;if(g>=gA)return rv}else{if(g<=-zc)return Ca;if(g+1>=zc)return w1}return g<0?$l(-g,u).neg():zr(g%t0|0,g/t0|0,u)}er.fromNumber=$l;function zr(g,u,f){return new er(g,u,f)}er.fromBits=zr;var Fl=Math.pow;function tv(g,u,f){if(g.length===0)throw Error("empty string");if(typeof u=="number"?(f=u,u=!1):u=!!u,g==="NaN"||g==="Infinity"||g==="+Infinity"||g==="-Infinity")return u?_u:Ko;if(f=f||10,f<2||360)throw Error("interior hyphen");if(y===0)return tv(g.substring(1),u,f).neg();for(var E=$l(Fl(f,8)),N=Ko,B=0;B>>0:this.low},Ht.toNumber=function(){return this.unsigned?(this.high>>>0)*t0+(this.low>>>0):this.high*t0+(this.low>>>0)},Ht.toString=function(u){if(u=u||10,u<2||36>>0,xe=se.toString(u);if(B=re,B.isZero())return xe+Z;for(;xe.length<6;)xe="0"+xe;Z=""+xe+Z}},Ht.getHighBits=function(){return this.high},Ht.getHighBitsUnsigned=function(){return this.high>>>0},Ht.getLowBits=function(){return this.low},Ht.getLowBitsUnsigned=function(){return this.low>>>0},Ht.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Ca)?64:this.neg().getNumBitsAbs();for(var u=this.high!=0?this.high:this.low,f=31;f>0&&!(u&1<=0},Ht.isOdd=function(){return(this.low&1)===1},Ht.isEven=function(){return(this.low&1)===0},Ht.equals=function(u){return xs(u)||(u=Bl(u)),this.unsigned!==u.unsigned&&this.high>>>31===1&&u.high>>>31===1?!1:this.high===u.high&&this.low===u.low},Ht.eq=Ht.equals,Ht.notEquals=function(u){return!this.eq(u)},Ht.neq=Ht.notEquals,Ht.ne=Ht.notEquals,Ht.lessThan=function(u){return this.comp(u)<0},Ht.lt=Ht.lessThan,Ht.lessThanOrEqual=function(u){return this.comp(u)<=0},Ht.lte=Ht.lessThanOrEqual,Ht.le=Ht.lessThanOrEqual,Ht.greaterThan=function(u){return this.comp(u)>0},Ht.gt=Ht.greaterThan,Ht.greaterThanOrEqual=function(u){return this.comp(u)>=0},Ht.gte=Ht.greaterThanOrEqual,Ht.ge=Ht.greaterThanOrEqual,Ht.compare=function(u){if(xs(u)||(u=Bl(u)),this.eq(u))return 0;var f=this.isNegative(),y=u.isNegative();return f&&!y?-1:!f&&y?1:this.unsigned?u.high>>>0>this.high>>>0||u.high===this.high&&u.low>>>0>this.low>>>0?-1:1:this.sub(u).isNegative()?-1:1},Ht.comp=Ht.compare,Ht.negate=function(){return!this.unsigned&&this.eq(Ca)?Ca:this.not().add(jd)},Ht.neg=Ht.negate,Ht.add=function(u){xs(u)||(u=Bl(u));var f=this.high>>>16,y=this.high&65535,E=this.low>>>16,N=this.low&65535,B=u.high>>>16,Z=u.high&65535,re=u.low>>>16,se=u.low&65535,xe=0,mt=0,Be=0,ft=0;return ft+=N+se,Be+=ft>>>16,ft&=65535,Be+=E+re,mt+=Be>>>16,Be&=65535,mt+=y+Z,xe+=mt>>>16,mt&=65535,xe+=f+B,xe&=65535,zr(Be<<16|ft,xe<<16|mt,this.unsigned)},Ht.subtract=function(u){return xs(u)||(u=Bl(u)),this.add(u.neg())},Ht.sub=Ht.subtract,Ht.multiply=function(u){if(this.isZero())return this;if(xs(u)||(u=Bl(u)),To){var f=To.mul(this.low,this.high,u.low,u.high);return zr(f,To.get_high(),this.unsigned)}if(u.isZero())return this.unsigned?_u:Ko;if(this.eq(Ca))return u.isOdd()?Ca:Ko;if(u.eq(Ca))return this.isOdd()?Ca:Ko;if(this.isNegative())return u.isNegative()?this.neg().mul(u.neg()):this.neg().mul(u).neg();if(u.isNegative())return this.mul(u.neg()).neg();if(this.lt(nv)&&u.lt(nv))return $l(this.toNumber()*u.toNumber(),this.unsigned);var y=this.high>>>16,E=this.high&65535,N=this.low>>>16,B=this.low&65535,Z=u.high>>>16,re=u.high&65535,se=u.low>>>16,xe=u.low&65535,mt=0,Be=0,ft=0,Wt=0;return Wt+=B*xe,ft+=Wt>>>16,Wt&=65535,ft+=N*xe,Be+=ft>>>16,ft&=65535,ft+=B*se,Be+=ft>>>16,ft&=65535,Be+=E*xe,mt+=Be>>>16,Be&=65535,Be+=N*se,mt+=Be>>>16,Be&=65535,Be+=B*re,mt+=Be>>>16,Be&=65535,mt+=y*xe+E*se+N*re+B*Z,mt&=65535,zr(ft<<16|Wt,mt<<16|Be,this.unsigned)},Ht.mul=Ht.multiply,Ht.divide=function(u){if(xs(u)||(u=Bl(u)),u.isZero())throw Error("division by zero");if(To){if(!this.unsigned&&this.high===-2147483648&&u.low===-1&&u.high===-1)return this;var f=(this.unsigned?To.div_u:To.div_s)(this.low,this.high,u.low,u.high);return zr(f,To.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?_u:Ko;var y,E,N;if(this.unsigned){if(u.unsigned||(u=u.toUnsigned()),u.gt(this))return _u;if(u.gt(this.shru(1)))return Sp;N=_u}else{if(this.eq(Ca)){if(u.eq(jd)||u.eq(zn))return Ca;if(u.eq(Ca))return jd;var B=this.shr(1);return y=B.div(u).shl(1),y.eq(Ko)?u.isNegative()?jd:zn:(E=this.sub(u.mul(y)),N=y.add(E.div(u)),N)}else if(u.eq(Ca))return this.unsigned?_u:Ko;if(this.isNegative())return u.isNegative()?this.neg().div(u.neg()):this.neg().div(u).neg();if(u.isNegative())return this.div(u.neg()).neg();N=Ko}for(E=this;E.gte(u);){y=Math.max(1,Math.floor(E.toNumber()/u.toNumber()));for(var Z=Math.ceil(Math.log(y)/Math.LN2),re=Z<=48?1:Fl(2,Z-48),se=$l(y),xe=se.mul(u);xe.isNegative()||xe.gt(E);)y-=re,se=$l(y,this.unsigned),xe=se.mul(u);se.isZero()&&(se=jd),N=N.add(se),E=E.sub(xe)}return N},Ht.div=Ht.divide,Ht.modulo=function(u){if(xs(u)||(u=Bl(u)),To){var f=(this.unsigned?To.rem_u:To.rem_s)(this.low,this.high,u.low,u.high);return zr(f,To.get_high(),this.unsigned)}return this.sub(this.div(u).mul(u))},Ht.mod=Ht.modulo,Ht.rem=Ht.modulo,Ht.not=function(){return zr(~this.low,~this.high,this.unsigned)},Ht.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Ht.clz=Ht.countLeadingZeros,Ht.countTrailingZeros=function(){return this.low?Sw(this.low):Sw(this.high)+32},Ht.ctz=Ht.countTrailingZeros,Ht.and=function(u){return xs(u)||(u=Bl(u)),zr(this.low&u.low,this.high&u.high,this.unsigned)},Ht.or=function(u){return xs(u)||(u=Bl(u)),zr(this.low|u.low,this.high|u.high,this.unsigned)},Ht.xor=function(u){return xs(u)||(u=Bl(u)),zr(this.low^u.low,this.high^u.high,this.unsigned)},Ht.shiftLeft=function(u){return xs(u)&&(u=u.toInt()),(u&=63)===0?this:u<32?zr(this.low<>>32-u,this.unsigned):zr(0,this.low<>>u|this.high<<32-u,this.high>>u,this.unsigned):zr(this.high>>u-32,this.high>=0?0:-1,this.unsigned)},Ht.shr=Ht.shiftRight,Ht.shiftRightUnsigned=function(u){return xs(u)&&(u=u.toInt()),(u&=63)===0?this:u<32?zr(this.low>>>u|this.high<<32-u,this.high>>>u,this.unsigned):u===32?zr(this.high,0,this.unsigned):zr(this.high>>>u-32,0,this.unsigned)},Ht.shru=Ht.shiftRightUnsigned,Ht.shr_u=Ht.shiftRightUnsigned,Ht.rotateLeft=function(u){var f;return xs(u)&&(u=u.toInt()),(u&=63)===0?this:u===32?zr(this.high,this.low,this.unsigned):u<32?(f=32-u,zr(this.low<>>f,this.high<>>f,this.unsigned)):(u-=32,f=32-u,zr(this.high<>>f,this.low<>>f,this.unsigned))},Ht.rotl=Ht.rotateLeft,Ht.rotateRight=function(u){var f;return xs(u)&&(u=u.toInt()),(u&=63)===0?this:u===32?zr(this.high,this.low,this.unsigned):u<32?(f=32-u,zr(this.high<>>u,this.low<>>u,this.unsigned)):(u-=32,f=32-u,zr(this.low<>>u,this.high<>>u,this.unsigned))},Ht.rotr=Ht.rotateRight,Ht.toSigned=function(){return this.unsigned?zr(this.low,this.high,!1):this},Ht.toUnsigned=function(){return this.unsigned?this:zr(this.low,this.high,!0)},Ht.toBytes=function(u){return u?this.toBytesLE():this.toBytesBE()},Ht.toBytesLE=function(){var u=this.high,f=this.low;return[f&255,f>>>8&255,f>>>16&255,f>>>24,u&255,u>>>8&255,u>>>16&255,u>>>24]},Ht.toBytesBE=function(){var u=this.high,f=this.low;return[u>>>24,u>>>16&255,u>>>8&255,u&255,f>>>24,f>>>16&255,f>>>8&255,f&255]},er.fromBytes=function(u,f,y){return y?er.fromBytesLE(u,f):er.fromBytesBE(u,f)},er.fromBytesLE=function(u,f){return new er(u[0]|u[1]<<8|u[2]<<16|u[3]<<24,u[4]|u[5]<<8|u[6]<<16|u[7]<<24,f)},er.fromBytesBE=function(u,f){return new er(u[4]<<24|u[5]<<16|u[6]<<8|u[7],u[0]<<24|u[1]<<16|u[2]<<8|u[3],f)};var Nr=(g=>(g.Ok="ok",g.ClientNotActive="client-not-active",g.Unimplemented="unimplemented",g.Unsupported="unsupported",g.DocumentNotAttached="document-not-attached",g.DocumentNotDetached="document-not-detached",g.DocumentRemoved="document-removed",g.InvalidObjectKey="invalid-object-key",g.InvalidArgument="invalid-argument",g))(Nr||{});class jr extends Error{constructor(u,f){super(f),s(this,"name","YorkieError"),s(this,"stack"),this.code=u,this.message=f,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function Ei(g){if(g instanceof Map){const u=Array.from(g);return new Map(JSON.parse(JSON.stringify(u)))}return JSON.parse(JSON.stringify(g))}const bA=g=>g?Object.entries(g).length===0:!0,n0=g=>{const u={};for(const[f,y]of Object.entries(g))u[f]=JSON.stringify(y);return u},Ep=g=>{const u={};for(const[f,y]of Object.entries(g))u[f]=JSON.parse(y);return u};var Xf=(g=>(g.Put="put",g.Clear="clear",g))(Xf||{});class iv{constructor(u,f){s(this,"context"),s(this,"presence"),this.context=u,this.presence=f}set(u,f){for(const y of Object.keys(u))this.presence[y]=u[y];this.context.setPresenceChange({type:"put",presence:Ei(this.presence)}),this.context.setReversePresence(u,f)}get(u){return this.presence[u]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const av="000000000000000000000000",jP="FFFFFFFFFFFFFFFFFFFFFFFF";class Ys{constructor(u,f,y){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=u,this.delimiter=f,this.actorID=y}static of(u,f,y){return new Ys(u,f,y)}static fromStruct(u){return Ys.of(er.fromString(u.lamport,!0),u.delimiter,u.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(u){return new Ys(this.lamport,this.delimiter,u)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(u){return this.compare(u)>0}equals(u){return this.compare(u)===0}compare(u){if(this.lamport.greaterThan(u.lamport))return 1;if(u.lamport.greaterThan(this.lamport))return-1;const f=this.actorID.localeCompare(u.actorID);return f!==0?f:this.delimiter>u.delimiter?1:u.delimiter>this.delimiter?-1:0}}const Au=0,qs=4294967295,ww=er.MAX_VALUE,Ru=new Ys(er.fromNumber(0),Au,av);new Ys(er.fromNumber(1),Au+1,av);const wp=new Ys(ww,qs,jP);var Jo=(g=>(g[g.Trivial=0]="Trivial",g[g.Debug=1]="Debug",g[g.Info=2]="Info",g[g.Warn=3]="Warn",g[g.Error=4]="Error",g[g.Fatal=5]="Fatal",g))(Jo||{});let Tp=2;function T1(g){Tp=g}const Lt={trivial:(...g)=>{Tp>0||typeof console<"u"&&console.log("YORKIE T:",...g)},debug:(...g)=>{Tp>1||typeof console<"u"&&console.log("YORKIE D:",...g)},info:(...g)=>{Tp>2||typeof console<"u"&&console.log("YORKIE I:",...g)},warn:(...g)=>{Tp>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...g):console.log("YORKIE W:",...g))},error:(...g)=>{Tp>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...g):console.log("YORKIE E:",...g))},fatal:(g,...u)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...u):console.log("YORKIE F:",...u)),new Error(`YORKIE F: ${g}`)},isEnabled:g=>Tp<=g};function Iu(g){return g.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(u){switch(u){case'"':case"\\":return"\\"+u;case` +`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return u}})}class x1{constructor(u){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=u}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(u){return!this.movedAt||u&&u.after(this.movedAt)?(this.movedAt=u,!0):!1}setRemovedAt(u){this.removedAt=u}remove(u){return u&&u.after(this.getPositionedAt())&&(!this.removedAt||u.after(this.removedAt))?(this.removedAt=u,!0):!1}isRemoved(){return!!this.removedAt}}class Kf extends x1{constructor(u){super(u)}}class Tw{constructor(u,f){s(this,"strKey"),s(this,"value"),this.strKey=u,this.value=f}static of(u,f){return new Tw(u,f)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(u){return this.value.remove(u)}}class k1{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new k1}set(u,f,y){let E;const N=this.nodeMapByKey.get(u);N!=null&&!N.isRemoved()&&N.remove(y)&&(E=N.getValue());const B=Tw.of(u,f);return this.nodeMapByCreatedAt.set(f.getCreatedAt().toIDString(),B),(N==null||y.after(N.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(u,B),f.setMovedAt(y)),E}delete(u,f){this.nodeMapByCreatedAt.has(u.toIDString())||Lt.fatal(`fail to find ${u.toIDString()}`);const y=this.nodeMapByCreatedAt.get(u.toIDString());return y.remove(f),y.getValue()}subPathOf(u){const f=this.nodeMapByCreatedAt.get(u.toIDString());if(f)return f.getStrKey()}purge(u){const f=this.nodeMapByCreatedAt.get(u.getCreatedAt().toIDString());if(!f){Lt.fatal(`fail to find ${u.getCreatedAt().toIDString()}`);return}const y=this.nodeMapByKey.get(f.getStrKey());f===y&&this.nodeMapByKey.delete(y.getStrKey()),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}deleteByKey(u,f){const y=this.nodeMapByKey.get(u);if(y!=null&&y.remove(f))return y.getValue()}has(u){const f=this.nodeMapByKey.get(u);return f==null?!1:!f.isRemoved()}getByID(u){return this.nodeMapByCreatedAt.get(u.toIDString())}get(u){const f=this.nodeMapByKey.get(u);if(!(!f||f.isRemoved()))return f}*[Symbol.iterator](){for(const[,u]of this.nodeMapByKey)yield u}}class Gs extends Kf{constructor(u,f){super(u),s(this,"memberNodes"),this.memberNodes=f}static create(u,f){if(!f)return new Gs(u,k1.create());const y=k1.create();for(const[E,N]of Object.entries(f))y.set(E,N.deepcopy(),N.getCreatedAt());return new Gs(u,y)}subPathOf(u){return this.memberNodes.subPathOf(u)}purge(u){this.memberNodes.purge(u)}set(u,f,y){return this.memberNodes.set(u,f,y)}delete(u,f){return this.memberNodes.delete(u,f)}deleteByKey(u,f){return this.memberNodes.deleteByKey(u,f)}get(u){const f=this.memberNodes.get(u);return f==null?void 0:f.getValue()}getByID(u){const f=this.memberNodes.getByID(u);return f==null?void 0:f.getValue()}has(u){return this.memberNodes.has(u)}toJSON(){const u=[];for(const[f,y]of this)u.push(`"${Iu(f)}":${y.toJSON()}`);return`{${u.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const u={};for(const[f,y]of this){const{createdAt:E,value:N,type:B}=y.toJSForTest();u[f]={key:f,createdAt:E,value:N,type:B}}return{createdAt:this.getCreatedAt().toTestString(),value:u,type:"YORKIE_OBJECT"}}getKeys(){const u=Array();for(const[f]of this)u.push(f);return u}toSortedJSON(){var u;const f=Array();for(const[E]of this)f.push(E);const y=[];for(const E of f.sort()){const N=(u=this.memberNodes.get(E))==null?void 0:u.getValue();y.push(`"${Iu(E)}":${N.toSortedJSON()}`)}return`{${y.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const u=Gs.create(this.getCreatedAt());for(const f of this.memberNodes)u.memberNodes.set(f.getStrKey(),f.getValue().deepcopy(),this.getPositionedAt());return u.remove(this.getRemovedAt()),u}getDescendants(u){for(const f of this.memberNodes){const y=f.getValue();if(u(y,this))return;y instanceof Kf&&y.getDescendants(u)}}*[Symbol.iterator](){const u=new Set;for(const f of this.memberNodes)u.has(f.getStrKey())||(u.add(f.getStrKey()),f.isRemoved()||(yield[f.getStrKey(),f.getValue()]))}}var di=(g=>(g.Local="local",g.Remote="remote",g.UndoRedo="undoredo",g))(di||{});class Du{constructor(u,f){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=u,this.executedAt=f}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(u){this.executedAt&&(this.executedAt=this.executedAt.setActor(u))}setExecutedAt(u){this.executedAt=u}}class sv{constructor(u){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=u,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(u){this.left=u}setRight(u){this.right=u}setParent(u){this.parent=u}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(u){this.weight+=u}initWeight(){this.weight=this.getLength()}}class r0{constructor(u){s(this,"root"),this.root=u}get length(){return this.root?this.root.getWeight():0}find(u){if(!this.root||u<0)return[void 0,0];let f=this.root;for(;;)if(f.hasLeft()&&u<=f.getLeftWeight())f=f.getLeft();else if(f.hasRight()&&f.getLeftWeight()+f.getLength()f.getLength()&&Lt.fatal(`out of index range: pos: ${u} > node.length: ${f.getLength()}`),[f,u]}indexOf(u){if(!u||u!==this.root&&!u.hasLinks())return-1;let f=0,y=u,E;for(;y;)(!E||E===y.getRight())&&(f+=y.getLength()+(y.hasLeft()?y.getLeftWeight():0)),E=y,y=y.getParent();return f-u.getLength()}getRoot(){return this.root}insert(u){return this.insertAfter(this.root,u)}insertAfter(u,f){return u?(this.splayNode(u),this.root=f,f.setRight(u.getRight()),u.hasRight()&&u.getRight().setParent(f),f.setLeft(u),u.setParent(f),u.setRight(),this.updateWeight(u),this.updateWeight(f),f):(this.root=f,f)}updateWeight(u){u.initWeight(),u.hasLeft()&&u.increaseWeight(u.getLeftWeight()),u.hasRight()&&u.increaseWeight(u.getRightWeight())}updateTreeWeight(u){for(;u;)this.updateWeight(u),u=u.getParent()}splayNode(u){if(u)for(;;)if(this.isLeftChild(u.getParent())&&this.isRightChild(u))this.rotateLeft(u),this.rotateRight(u);else if(this.isRightChild(u.getParent())&&this.isLeftChild(u))this.rotateRight(u),this.rotateLeft(u);else if(this.isLeftChild(u.getParent())&&this.isLeftChild(u))this.rotateRight(u.getParent()),this.rotateRight(u);else if(this.isRightChild(u.getParent())&&this.isRightChild(u))this.rotateLeft(u.getParent()),this.rotateLeft(u);else{this.isLeftChild(u)?this.rotateRight(u):this.isRightChild(u)&&this.rotateLeft(u),this.updateWeight(u);return}}delete(u){this.splayNode(u);const f=new r0(u.getLeft());f.root&&f.root.setParent();const y=new r0(u.getRight());if(y.root&&y.root.setParent(),f.root){const E=f.getRightmost();f.splayNode(E),f.root.setRight(y.root),y.root&&y.root.setParent(f.root),this.root=f.root}else this.root=y.root;u.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(u,f){if(!f){this.splayNode(u),this.cutOffRight(u);return}this.splayNode(u),this.splayNode(f),f.getLeft()!=u&&this.rotateRight(u),this.cutOffRight(u)}cutOffRight(u){const f=[];this.traversePostorder(u.getRight(),f);for(const y of f)y.initWeight();this.updateTreeWeight(u)}toTestString(){const u=[];return this.traverseInorder(this.root,u),u.map(f=>`[${f.getWeight()},${f.getLength()}]${f.getValue()||""}`).join("")}checkWeight(){const u=[];this.traverseInorder(this.root,u);for(const f of u)if(f.getWeight()!=f.getLength()+f.getLeftWeight()+f.getRightWeight())return!1;return!0}getRightmost(){let u=this.root;for(;u.hasRight();)u=u.getRight();return u}traverseInorder(u,f){u&&(this.traverseInorder(u.getLeft(),f),f.push(u),this.traverseInorder(u.getRight(),f))}traversePostorder(u,f){u&&(this.traversePostorder(u.getLeft(),f),this.traversePostorder(u.getRight(),f),f.push(u))}rotateLeft(u){const f=u.getParent();f.hasParent()?f===f.getParent().getLeft()?f.getParent().setLeft(u):f.getParent().setRight(u):this.root=u,u.setParent(f.getParent()),f.setRight(u.getLeft()),f.hasRight()&&f.getRight().setParent(f),u.setLeft(f),u.getLeft().setParent(u),this.updateWeight(f),this.updateWeight(u)}rotateRight(u){const f=u.getParent();f.hasParent()?f===f.getParent().getLeft()?f.getParent().setLeft(u):f.getParent().setRight(u):this.root=u,u.setParent(f.getParent()),f.setLeft(u.getRight()),f.hasLeft()&&f.getLeft().setParent(f),u.setRight(f),u.getRight().setParent(u),this.updateWeight(f),this.updateWeight(u)}isLeftChild(u){return u&&u.hasParent()?u.getParent().getLeft()===u:!1}isRightChild(u){return u&&u.hasParent()?u.getParent().getRight()===u:!1}}var Vi=(g=>(g[g.Null=0]="Null",g[g.Boolean=1]="Boolean",g[g.Integer=2]="Integer",g[g.Long=3]="Long",g[g.Double=4]="Double",g[g.String=5]="String",g[g.Bytes=6]="Bytes",g[g.Date=7]="Date",g))(Vi||{});class wi extends x1{constructor(u,f){super(f),s(this,"valueType"),s(this,"value"),this.valueType=wi.getPrimitiveType(u),this.value=u===void 0?null:u}static of(u,f){return new wi(u,f)}static valueFromBytes(u,f){switch(u){case 0:return null;case 1:return!!f[0];case 2:return f[0]|f[1]<<8|f[2]<<16|f[3]<<24;case 4:{const y=new DataView(f.buffer);return f.forEach(function(E,N){y.setUint8(N,E)}),y.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(f);case 3:return er.fromBytesLE(Array.from(f));case 6:return f;case 7:return new Date(er.fromBytesLE(Array.from(f),!0).toNumber());default:throw new jr(Nr.Unimplemented,`unimplemented type: ${u}`)}}toJSON(){return this.valueType===5?`"${Iu(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const u=wi.of(this.value,this.getCreatedAt());return u.setMovedAt(this.getMovedAt()),u.setRemovedAt(this.getRemovedAt()),u}getType(){return this.valueType}static getPrimitiveType(u){switch(typeof u){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(u)?2:4;case"string":return 5;case"object":if(u===null)return 0;if(u instanceof er)return 3;if(u instanceof Uint8Array)return 6;if(u instanceof Date)return 7}}static isSupport(u){return wi.getPrimitiveType(u)!==void 0}static isInteger(u){return u%1===0}isNumericType(){const u=this.valueType;return u===2||u===3||u===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const u=this.value;return new Uint8Array([u&255,u>>8&255,u>>16&255,u>>24&255])}case 4:{const u=this.value,f=new Uint8Array(8);return new DataView(f.buffer).setFloat64(0,u,!0),f}case 5:return new TextEncoder().encode(this.value);case 3:{const f=this.value.toBytesLE();return Uint8Array.from(f)}case 6:return this.value;case 7:{const u=this.value,f=er.fromNumber(u.getTime(),!0).toBytesLE();return Uint8Array.from(f)}default:throw new jr(Nr.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class C1 extends sv{constructor(u){super(u),s(this,"prev"),s(this,"next"),this.value=u}static createAfter(u,f){const y=new C1(f),E=u.next;return u.next=y,y.prev=u,y.next=E,E&&(E.prev=y),y}remove(u){return this.value.remove(u)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class i0{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const u=wi.of(0,Ru);u.setRemovedAt(Ru),this.dummyHead=new C1(u),this.last=this.dummyHead,this.nodeMapByIndex=new r0,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new i0}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(u,f){let y=this.nodeMapByCreatedAt.get(u.toIDString());for(y||Lt.fatal(`cant find the given node: ${u.toIDString()}`);y.getNext()&&y.getNext().getPositionedAt().after(f);)y=y.getNext();return y}release(u){this.last===u&&(this.last=u.getPrev()),u.release(),this.nodeMapByIndex.delete(u),this.nodeMapByCreatedAt.delete(u.getValue().getCreatedAt().toIDString())}insertAfter(u,f,y=f.getCreatedAt()){const E=this.findNextBeforeExecutedAt(u,y),N=C1.createAfter(E,f);E===this.last&&(this.last=N),this.nodeMapByIndex.insertAfter(E,N),this.nodeMapByCreatedAt.set(N.getCreatedAt().toIDString(),N)}moveAfter(u,f,y){const E=this.nodeMapByCreatedAt.get(u.toIDString());E||Lt.fatal(`cant find the given node: ${u.toIDString()}`);const N=this.nodeMapByCreatedAt.get(f.toIDString());N||Lt.fatal(`cant find the given node: ${f.toIDString()}`),E!==N&&(!N.getValue().getMovedAt()||y.after(N.getValue().getMovedAt()))&&(this.release(N),this.insertAfter(E.getCreatedAt(),N.getValue(),y),N.getValue().setMovedAt(y))}insert(u){this.insertAfter(this.last.getCreatedAt(),u)}getByID(u){return this.nodeMapByCreatedAt.get(u.toIDString())}subPathOf(u){const f=this.nodeMapByCreatedAt.get(u.toIDString());if(f)return String(this.nodeMapByIndex.indexOf(f))}purge(u){const f=this.nodeMapByCreatedAt.get(u.getCreatedAt().toIDString());f||Lt.fatal(`fail to find the given createdAt: ${u.getCreatedAt().toIDString()}`),this.release(f)}getByIndex(u){if(u>=this.length)return;const[f,y]=this.nodeMapByIndex.find(u);let E=f;if(u===0&&f===this.dummyHead||y>0)do E&&(E=E.getNext());while(E&&E.isRemoved());return E}getPrevCreatedAt(u){let f=this.nodeMapByCreatedAt.get(u.toIDString());do f=f.getPrev();while(this.dummyHead!==f&&f.isRemoved());return f.getValue().getCreatedAt()}delete(u,f){const y=this.nodeMapByCreatedAt.get(u.toIDString()),E=y.isRemoved();return y.remove(f)&&!E&&this.nodeMapByIndex.splayNode(y),y.getValue()}deleteByIndex(u,f){const y=this.getByIndex(u);if(y)return y.remove(f)&&this.nodeMapByIndex.splayNode(y),y.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const u=[];for(const f of this){const y=`${f.getCreatedAt().toIDString()}:${f.getValue().toJSON()}`;f.isRemoved()?u.push(`{${y}}`):u.push(`[${y}]`)}return u.join("")}*[Symbol.iterator](){let u=this.dummyHead.getNext();for(;u;)yield u,u=u.getNext()}}class ks extends Kf{constructor(u,f){super(u),s(this,"elements"),this.elements=f}static create(u,f){if(!f)return new ks(u,i0.create());const y=i0.create();for(const E of f)y.insertAfter(y.getLastCreatedAt(),E.deepcopy());return new ks(u,y)}subPathOf(u){return this.elements.subPathOf(u)}purge(u){this.elements.purge(u)}insertAfter(u,f){this.elements.insertAfter(u,f)}moveAfter(u,f,y){this.elements.moveAfter(u,f,y)}get(u){const f=this.elements.getByIndex(u);return f==null?void 0:f.getValue()}getByID(u){const f=this.elements.getByID(u);return f==null?void 0:f.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(u){return this.elements.getPrevCreatedAt(u)}delete(u,f){return this.elements.delete(u,f)}deleteByIndex(u,f){return this.elements.deleteByIndex(u,f)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const u of this.elements)u.isRemoved()||(yield u.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(u){for(const f of this.elements){const y=f.getValue();if(u(y,this))return;y instanceof Kf&&y.getDescendants(u)}}toJSON(){const u=[];for(const f of this)u.push(f.toJSON());return`[${u.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const u={};for(let f=0;f({...Be,value:Be.value?{attributes:Ep(Be.value.getAttributes()),content:Be.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[re,mt,se,[Z,Z]]}setStyle(u,f,y,E){const[,N]=this.rgaTreeSplit.findNodeWithSplit(u[1],y),[,B]=this.rgaTreeSplit.findNodeWithSplit(u[0],y),Z=[],re=this.rgaTreeSplit.findBetween(B,N),se=new Map,xe=[];for(const Be of re){const ft=Be.getCreatedAt().getActorID(),Wt=E!=null&&E.size?E.has(ft)?E.get(ft):Ru:wp;if(Be.canStyle(y,Wt)){const mn=se.get(ft),Sn=Be.getCreatedAt();(!mn||Sn.after(mn))&&se.set(ft,Sn),xe.push(Be)}}const mt=[];for(const Be of xe){if(Be.isRemoved())continue;const[ft,Wt]=this.rgaTreeSplit.findIndexesFromRange(Be.createPosRange());Z.push({type:"style",actor:y.getActorID(),from:ft,to:Wt,value:{attributes:Ep(f)}});for(const[mn,Sn]of Object.entries(f)){const[cr]=Be.getValue().setAttr(mn,Sn,y);cr!==void 0&&mt.push({parent:Be.getValue(),child:cr})}}return[se,mt,Z]}indexRangeToPosRange(u,f){const y=this.rgaTreeSplit.indexToPos(u);return u===f?[y,y]:[y,this.rgaTreeSplit.indexToPos(f)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const u=[];for(const f of this.rgaTreeSplit)f.isRemoved()||u.push(f.getValue().toJSON());return`[${u.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const u=[];for(const f of this.rgaTreeSplit)if(!f.isRemoved()){const y=f.getValue();u.push({attributes:Ep(y.getAttributes()),content:y.getContent()})}return u}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const u=new Ul(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return u.remove(this.getRemovedAt()),u}findIndexesFromRange(u){return this.rgaTreeSplit.findIndexesFromRange(u)}getGCPairs(){const u=[];for(const f of this.rgaTreeSplit){f.getRemovedAt()&&u.push({parent:this.rgaTreeSplit,child:f});for(const y of f.getValue().getGCPairs())u.push(y)}return u}}class A1 extends Du{constructor(u,f,y,E,N,B,Z){super(u,Z),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=f,this.toPos=y,this.maxCreatedAtMapByActor=E,this.content=N,this.attributes=B}static create(u,f,y,E,N,B,Z){return new A1(u,f,y,E,N,B,Z)}execute(u){const f=u.findByCreatedAt(this.getParentCreatedAt());f||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),f instanceof Ul||Lt.fatal("fail to execute, only Text can execute edit");const y=f,[,E,N]=y.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const B of N)u.registerGCPair(B);return{opInfos:E.map(({from:B,to:Z,value:re})=>({type:"edit",from:B,to:Z,value:re,path:u.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const u=this.getParentCreatedAt().toTestString(),f=this.fromPos.toTestString(),y=this.toPos.toTestString(),E=this.content;return`${u}.EDIT(${f},${y},${E})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class R1 extends Du{constructor(u,f,y,E,N,B){super(u,B),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=f,this.toPos=y,this.maxCreatedAtMapByActor=E,this.attributes=N}static create(u,f,y,E,N,B){return new R1(u,f,y,E,N,B)}execute(u){const f=u.findByCreatedAt(this.getParentCreatedAt());f||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),f instanceof Ul||Lt.fatal("fail to execute, only Text can execute edit");const y=f,[,E,N]=y.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const B of E)u.registerGCPair(B);return{opInfos:N.map(({from:B,to:Z,value:re})=>({type:"style",from:B,to:Z,value:re,path:u.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const u=this.getParentCreatedAt().toTestString(),f=this.fromPos.toTestString(),y=this.toPos.toTestString(),E=this.attributes;return`${u}.STYL(${f},${y},${JSON.stringify(E)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const HP=2,VP="root",Wd="text";function I1(g,u){let f=0;const y=g.children;for(let E=0;E0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let u=this.parent;const f=this.isRemoved?-1:1;for(;u&&(u.size+=this.paddedSize*f,!u.isRemoved);)u=u.parent}updateDescendantsSize(){let u=0;for(const f of this._children){const y=f.updateDescendantsSize();f.isRemoved||(u+=y)}return this.size+=u,this.paddedSize}get isText(){return this.type===Wd}get paddedSize(){return this.size+(this.isText?0:HP)}isAncestorOf(u){return QP(this,u)}get nextSibling(){const u=this.parent.findOffset(this),f=this.parent.children[u+1];if(f)return f}get prevSibling(){const u=this.parent.findOffset(this),f=this.parent.children[u-1];if(f)return f}splitText(u,f){if(u===0||u===this.size)return;const y=this.value.slice(0,u),E=this.value.slice(u);if(!E.length)return;this.value=y;const N=this.cloneText(u+f);return N.value=E,this.parent.insertAfterInternal(N,this),N}get children(){return this._children.filter(u=>!u.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(u=>u.isText)}append(...u){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...u);for(const f of u)f.parent=this,f.updateAncestorsSize()}prepend(...u){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...u);for(const f of u)f.parent=this}insertBefore(u,f){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(f);if(y===-1)throw new Error("child not found");this.insertAtInternal(u,y),u.updateAncestorsSize()}insertAfter(u,f){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(f);if(y===-1)throw new Error("child not found");this.insertAtInternal(u,y+1),u.updateAncestorsSize()}insertAt(u,f){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(u,f),u.updateAncestorsSize()}removeChild(u){if(this.isText)throw new Error("Text node cannot have children");const f=this._children.indexOf(u);if(f===-1)throw new Error("child not found");this._children.splice(f,1),u.parent=void 0}splitElement(u,f){const y=this.cloneElement(f);this.parent.insertAfterInternal(y,this),y.updateAncestorsSize();const E=this.children.slice(0,u),N=this.children.slice(u);this._children=E,y._children=N,this.size=this._children.reduce((B,Z)=>B+Z.paddedSize,0),y.size=y._children.reduce((B,Z)=>B+Z.paddedSize,0);for(const B of y._children)B.parent=y;return y}insertAfterInternal(u,f){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(f);if(y===-1)throw new Error("child not found");this.insertAtInternal(u,y+1)}insertAtInternal(u,f){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(f,0,u),u.parent=this}findOffset(u){if(this.isText)throw new Error("Text node cannot have children");if(u.isRemoved){const f=this._children.indexOf(u);return this.allChildren.splice(0,f).filter(E=>!E.isRemoved).length}return this.children.indexOf(u)}findBranchOffset(u){if(this.isText)throw new Error("Text node cannot have children");let f=u;for(;f;){const y=this._children.indexOf(f);if(y!==-1)return y;f=f.parent}return-1}}function QP(g,u){if(g===u)return!1;for(;u.parent;){if(u.parent===g)return!0;u=u.parent}return!1}var ga=(g=>(g.Start="Start",g.End="End",g.Text="Text",g))(ga||{});function xw(g,u,f,y){if(u>f)throw new Error(`from is greater than to: ${u} > ${f}`);if(u>g.size)throw new Error(`from is out of range: ${u} > ${g.size}`);if(f>g.size)throw new Error(`to is out of range: ${f} > ${g.size}`);if(u===f)return;let E=0;for(const N of g.children){if(u-N.paddedSizeN.size;(N.isText||re)&&y([N,N.isText?"Text":"Start"],se),xw(N,Math.max(0,B),Math.min(Z,N.size),y),se&&y([N,"End"],se)}E+=N.paddedSize}}function kw(g,u,f=0){for(const y of g.children)kw(y,u,f+1);u(g,f)}function ov(g,u,f=0){for(const y of g._children)ov(y,u,f+1);u(g,f)}function Cw(g,u,f=!0){if(u>g.size)throw new Error(`index is out of range: ${u} > ${g.size}`);if(g.isText)return{node:g,offset:u};let y=0,E=0;for(const N of g.children){if(f&&N.isText&&N.size>=u-E)return Cw(N,u-E,f);if(u===E)return{node:g,offset:y};if(!f&&N.paddedSize===u-E)return{node:g,offset:y+1};if(N.paddedSize>u-E)return Cw(N,u-E-1,f);E+=N.paddedSize,y+=1}return{node:g,offset:y}}function yA(g){return g.isText||g.children.length===0?g:yA(g.children[0])}function vA(g,u){if(g.sizeg===u?0:g0)if(f.right)f.right.parent=f,f=f.right;else return f;else if(y<0)if(f.left)f.left.parent=f,f=f.left;else{let E=f.parent,N=f;for(;E&&N===E.left;)N=E,E=E.parent;return E}else return f}}lastEntry(){if(!this.root)return this.root;let u=this.root;for(;u.right;)u=u.right;return u}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(u,f){for(;f;){const y=this.comparator(u,f.key);if(y===0)return f;y<0?f=f.left:y>0&&(f=f.right)}}putInternal(u,f,y){if(!y)return this.counter+=1,new GP(u,f,!0);const E=this.comparator(u,y.key);return E<0?y.left=this.putInternal(u,f,y.left):E>0?y.right=this.putInternal(u,f,y.right):y.value=f,this.isRed(y.right)&&!this.isRed(y.left)&&(y=this.rotateLeft(y)),this.isRed(y.left)&&this.isRed(y.left.left)&&(y=this.rotateRight(y)),this.isRed(y.left)&&this.isRed(y.right)&&this.flipColors(y),y}removeInternal(u,f){if(this.comparator(f,u.key)<0)!this.isRed(u.left)&&!this.isRed(u.left.left)&&(u=this.moveRedLeft(u)),u.left=this.removeInternal(u.left,f);else{if(this.isRed(u.left)&&(u=this.rotateRight(u)),this.comparator(f,u.key)===0&&!u.right){this.counter-=1;return}if(!this.isRed(u.right)&&!this.isRed(u.right.left)&&(u=this.moveRedRight(u)),this.comparator(f,u.key)===0){this.counter-=1;const y=this.min(u.right);u.value=y.value,u.key=y.key,u.right=this.removeMin(u.right)}else u.right=this.removeInternal(u.right,f)}return this.fixUp(u)}min(u){return u.left?this.min(u.left):u}removeMin(u){if(u.left)return!this.isRed(u.left)&&!this.isRed(u.left.left)&&(u=this.moveRedLeft(u)),u.left=this.removeMin(u.left),this.fixUp(u)}fixUp(u){return this.isRed(u.right)&&(u=this.rotateLeft(u)),this.isRed(u.left)&&this.isRed(u.left.left)&&(u=this.rotateRight(u)),this.isRed(u.left)&&this.isRed(u.right)&&this.flipColors(u),u}moveRedLeft(u){return this.flipColors(u),this.isRed(u.right.left)&&(u.right=this.rotateRight(u.right),u=this.rotateLeft(u),this.flipColors(u)),u}moveRedRight(u){return this.flipColors(u),this.isRed(u.left.left)&&(u=this.rotateRight(u),this.flipColors(u)),u}isRed(u){return u&&u.isRed}rotateLeft(u){const f=u.right;return u.right=f.left,f.left=u,f.isRed=f.left.isRed,f.left.isRed=!0,f}rotateRight(u){const f=u.left;return u.left=f.right,f.right=u,f.isRed=f.right.isRed,f.right.isRed=!0,f}flipColors(u){u.isRed=!u.isRed,u.left.isRed=!u.left.isRed,u.right.isRed=!u.right.isRed}}class Pu{constructor(u,f){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=u,this.leftSiblingID=f}static of(u,f){return new Pu(u,f)}static fromTreePos(u){const{offset:f}=u;let{node:y}=u,E;return y.isText?(y.parent.children[0]===y&&f===0?E=y.parent:E=y,y=y.parent):f===0?E=y:E=y.children[f-1],Pu.of(y.id,fi.of(E.getCreatedAt(),E.getOffset()+f))}getParentID(){return this.parentID}static fromStruct(u){return Pu.of(fi.of(Ys.fromStruct(u.parentID.createdAt),u.parentID.offset),fi.of(Ys.fromStruct(u.leftSiblingID.createdAt),u.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(u){const f=this.getParentID(),y=this.getLeftSiblingID(),E=u.findFloorNode(f);let N=u.findFloorNode(y);if(!E||!N)throw new Error(`cannot find node of CRDTTreePos(${f.toTestString()}, ${y.toTestString()})`);return!y.equals(f)&&y.getOffset()>0&&y.getOffset()===N.id.getOffset()&&N.insPrevID&&(N=u.findFloorNode(N.insPrevID)),[E,N]}getLeftSiblingID(){return this.leftSiblingID}equals(u){return this.getParentID().getCreatedAt().equals(u.getParentID().getCreatedAt())&&this.getParentID().getOffset()===u.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(u.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===u.getLeftSiblingID().getOffset()}}class fi{constructor(u,f){s(this,"createdAt"),s(this,"offset"),this.createdAt=u,this.offset=f}static of(u,f){return new fi(u,f)}static fromStruct(u){return fi.of(Ys.fromStruct(u.createdAt),u.offset)}static createComparator(){return(u,f)=>{const y=u.getCreatedAt().compare(f.getCreatedAt());return y!==0?y:u.getOffset()>f.getOffset()?1:u.getOffset(){const E=y.deepcopy();return E.parent=f,E}),f.insPrevID=this.insPrevID,f.insNextID=this.insNextID,f}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(u){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=u,this.size=u.length}get isRemoved(){return!!this.removedAt}remove(u){const f=!this.removedAt;(!this.removedAt||this.removedAt.compare(u)>0)&&(this.removedAt=u),f&&this.updateAncestorsSize()}cloneText(u){return new el(fi.of(this.id.getCreatedAt(),u),this.type,void 0,void 0,this.removedAt)}cloneElement(u){return new el(fi.of(u(),0),this.type,void 0,void 0,this.removedAt)}split(u,f,y){const E=this.isText?this.splitText(f,this.id.getOffset()):this.splitElement(f,y);if(E){if(E.insPrevID=this.id,this.insNextID){const N=u.findFloorNode(this.insNextID);N.insPrevID=E.id,E.insNextID=this.insNextID}this.insNextID=E.id,u.registerNode(E)}return E}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(u,f){return!this.getCreatedAt().after(f)&&(!this.removedAt||u.after(this.removedAt))}canStyle(u,f){return this.isText?!1:!this.getCreatedAt().after(f)&&(!this.removedAt||u.after(this.removedAt))}setAttrs(u,f){this.attrs||(this.attrs=new Vd);const y=new Array;for(const[E,N]of Object.entries(u))y.push(this.attrs.set(E,N,f));return y}purge(u){this.attrs&&this.attrs.purge(u)}getGCPairs(){const u=[];if(!this.attrs)return u;for(const f of this.attrs)f.getRemovedAt()&&u.push({parent:this,child:f});return u}}function _w(g){var u;if(g.isText){const y=g;return{type:y.type,value:y.value}}const f={type:g.type,children:g.children.map(_w)};return g.attrs&&(f.attributes=Ep((u=g.attrs)==null?void 0:u.toObject())),f}function Aw(g){if(g.isText)return g.value;let u="";return g.attrs&&g.attrs.size()&&(u=" "+Array.from(g.attrs).filter(f=>!f.isRemoved()).sort((f,y)=>f.getKey().localeCompare(y.getKey())).map(f=>{const y=JSON.parse(f.getValue());return typeof y=="string"?`${f.getKey()}="${y}"`:`${f.getKey()}="${Iu(f.getValue())}"`}).join(" ")),`<${g.type}${u}>${g.children.map(f=>Aw(f)).join("")}`}function Rw(g){if(g.isText){const u=g;return{type:u.type,value:u.value,size:u.size,isRemoved:u.isRemoved}}return{type:g.type,children:g.children.map(Rw),size:g.size,isRemoved:g.isRemoved}}class zl extends x1{constructor(u,f){super(f),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new YP(u),this.nodeMapByID=new OA(fi.createComparator()),this.indexTree.traverseAll(y=>{this.nodeMapByID.put(y.id,y)})}static create(u,f){return new zl(u,f)}findFloorNode(u){const f=this.nodeMapByID.floorEntry(u);if(!(!f||!f.key.getCreatedAt().equals(u.getCreatedAt())))return f.value}registerNode(u){this.nodeMapByID.put(u.id,u)}findNodesAndSplitText(u,f){const[y,E]=u.toTreeNodePair(this);let N=E;const B=y===N,Z=N.parent&&!B?N.parent:y;if(N.isText&&N.split(this,u.getLeftSiblingID().getOffset()-N.id.getOffset()),f){const re=Z.allChildren,se=B?0:re.indexOf(N)+1;for(let xe=se;xe{const Wt=ft.getCreatedAt().getActorID(),mn=E?E.has(Wt)?E.get(Wt):Ru:wp;if(ft.canStyle(y,mn)&&f){const Sn=mt.get(Wt),cr=ft.getCreatedAt();(!Sn||cr.after(Sn))&&mt.set(Wt,cr);const yi=ft.setAttrs(f,y),jn=yi.reduce((Pi,[,Cp])=>(Cp&&(Pi[Cp.getKey()]=xe[Cp.getKey()]),Pi),{}),dr=ft.parent,vi=ft.prevSibling||ft.parent;Object.keys(jn).length>0&&se.push({type:"style",from:this.toIndex(dr,vi),to:this.toIndex(ft,ft),fromPath:this.toPath(dr,vi),toPath:this.toPath(ft,ft),actor:y.getActorID(),value:jn});for(const[Pi]of yi)Pi&&Be.push({parent:ft,child:Pi})}}),[mt,Be,se]}removeStyle(u,f,y,E){const[N,B]=this.findNodesAndSplitText(u[0],y),[Z,re]=this.findNodesAndSplitText(u[1],y),se=[],xe=new Map,mt=[];return this.traverseInPosRange(N,B,Z,re,([Be])=>{const ft=Be.getCreatedAt().getActorID(),Wt=E?E.has(ft)?E.get(ft):Ru:wp;if(Be.canStyle(y,Wt)&&f){const mn=xe.get(ft),Sn=Be.getCreatedAt();(!mn||Sn.after(mn))&&xe.set(ft,Sn),Be.attrs||(Be.attrs=new Vd);for(const jn of f){const dr=Be.attrs.remove(jn,y);for(const vi of dr)mt.push({parent:Be,child:vi})}const cr=Be.parent,yi=Be.prevSibling||Be.parent;se.push({actor:y.getActorID(),type:"removeStyle",from:this.toIndex(cr,yi),to:this.toIndex(Be,Be),fromPath:this.toPath(cr,yi),toPath:this.toPath(Be,Be),value:f})}}),[xe,mt,se]}edit(u,f,y,E,N,B){const[Z,re]=this.findNodesAndSplitText(u[0],E),[se,xe]=this.findNodesAndSplitText(u[1],E),mt=this.toIndex(Z,re),Be=this.toPath(Z,re),ft=[],Wt=[],mn=[],Sn=new Map;this.traverseInPosRange(Z,re,se,xe,([jn,dr],vi)=>{if(dr===ga.Start&&!vi)for(const sh of jn.children)mn.push(sh);const Pi=jn.getCreatedAt().getActorID(),Cp=B?B.has(Pi)?B.get(Pi):Ru:wp;if(jn.canDelete(E,Cp)||ft.includes(jn.parent)){const sh=Sn.get(Pi),H1=jn.getCreatedAt();(!sh||H1.after(sh))&&Sn.set(Pi,H1),(dr===ga.Text||dr===ga.Start)&&ft.push(jn),Wt.push([jn,dr])}});const cr=this.makeDeletionChanges(Wt,E),yi=[];for(const jn of ft)jn.remove(E),jn.isRemoved&&yi.push({parent:this,child:jn});for(const jn of mn)jn.removedAt||Z.append(jn);if(y>0){let jn=0,dr=Z,vi=re;for(;jn{Z.isRemoved&&(Pi.remove(E),yi.push({parent:this,child:Pi})),this.nodeMapByID.put(Pi.id,Pi)}),vi.isRemoved||jn.push(vi);if(jn.length){const vi=jn.map(Pi=>_w(Pi));cr.length&&cr[cr.length-1].from===mt?cr[cr.length-1].value=vi:cr.push({type:"content",from:mt,to:mt,fromPath:Be,toPath:Be,actor:E.getActorID(),value:vi})}}return[cr,yi,Sn]}editT(u,f,y,E,N){const B=this.findPos(u[0]),Z=this.findPos(u[1]);this.edit([B,Z],f,y,E,N)}move(u,f,y){throw new Error(`not implemented: ${u}, ${f}, ${y}`)}purge(u){var f;(f=u.parent)==null||f.removeChild(u),this.nodeMapByID.remove(u.id);const y=u.insPrevID,E=u.insNextID;if(y){const N=this.findFloorNode(y);N.insNextID=E}if(E){const N=this.findFloorNode(E);N.insPrevID=y}u.insPrevID=void 0,u.insNextID=void 0}getGCPairs(){const u=[];return this.indexTree.traverse(f=>{f.getRemovedAt()&&u.push({parent:this,child:f});for(const y of f.getGCPairs())u.push(y)}),u}findPos(u,f=!0){const y=this.indexTree.findTreePos(u,f);return Pu.fromTreePos(y)}pathToPosRange(u){const f=this.pathToIndex(u);return[this.findPos(f),this.findPos(f+1)]}pathToPos(u){const f=this.indexTree.pathToIndex(u);return this.findPos(f)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return Aw(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const u=this.indexTree.getRoot(),f=(y,E=void 0,N=void 0,B=0)=>{var Z,re,se,xe;let mt,Be,ft;const Wt=y.isText?{node:y,offset:0}:E&&N?this.toTreePos(E,N):null;Wt&&(mt=this.indexTree.indexOf(Wt),Be=this.indexTree.treePosToPath(Wt),ft=Pu.fromTreePos(Wt).toStruct());const mn={type:y.type,parent:E==null?void 0:E.id.toTestString(),size:y.size,id:y.id.toTestString(),removedAt:(Z=y.removedAt)==null?void 0:Z.toTestString(),insPrev:(re=y.insPrevID)==null?void 0:re.toTestString(),insNext:(se=y.insNextID)==null?void 0:se.toTestString(),value:y.isText?y.value:void 0,isRemoved:y.isRemoved,children:[],depth:B,attributes:y.attrs?Ep((xe=y.attrs)==null?void 0:xe.toObject()):void 0,index:mt,path:Be,pos:ft};for(let Sn=0;Sn0&&Sn===y[y.length-1].to?(y[y.length-1].to=cr,y[y.length-1].toPath=this.toPath(mn,Be)):y.push({type:"content",from:Sn,to:cr,fromPath:this.toPath(Wt,xe),toPath:this.toPath(mn,Be),actor:f.getActorID()}))}return y.reverse()}findRightToken([u,f]){if(f===ga.Start){const Z=u.allChildren;return Z.length>0?[Z[0],Z[0].isText?ga.Text:ga.Start]:[u,ga.End]}const y=u.parent,E=y.allChildren,N=E.indexOf(u);if(y&&N===E.length-1)return[y,ga.End];const B=E[N+1];return[B,B.isText?ga.Text:ga.Start]}findLeftToken([u,f]){if(f===ga.End){const Z=u.allChildren;if(Z.length>0){const re=Z[Z.length-1];return[re,re.isText?ga.Text:ga.End]}return[u,ga.Start]}const y=u.parent,E=y.allChildren,N=E.indexOf(u);if(y&&N===0)return[y,ga.Start];const B=E[N-1];return[B,B.isText?ga.Text:ga.End]}}class D1 extends Du{constructor(u,f,y,E,N,B,Z){super(u,Z),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=f,this.toPos=y,this.contents=E,this.splitLevel=N,this.maxCreatedAtMapByActor=B}static create(u,f,y,E,N,B,Z){return new D1(u,f,y,E,N,B,Z)}execute(u){var f;const y=u.findByCreatedAt(this.getParentCreatedAt());y||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),y instanceof zl||Lt.fatal("fail to execute, only Tree can execute edit");const E=this.getExecutedAt(),N=y,[B,Z]=N.edit([this.fromPos,this.toPos],(f=this.contents)==null?void 0:f.map(re=>re.deepcopy()),this.splitLevel,E,(()=>{let re=E.getDelimiter();return this.contents!==void 0&&(re+=this.contents.length),()=>Ys.of(E.getLamport(),++re,E.getActorID())})(),this.maxCreatedAtMapByActor);for(const re of Z)u.registerGCPair(re);return{opInfos:B.map(({from:re,to:se,value:xe,splitLevel:mt,fromPath:Be,toPath:ft})=>({type:"tree-edit",path:u.createPath(this.getParentCreatedAt()),from:re,to:se,value:xe,splitLevel:mt,fromPath:Be,toPath:ft}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const u=this.getParentCreatedAt().toTestString(),f=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,E=this.contents||[];return`${u}.EDIT(${f},${y},${E.map(N=>Aw(N)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class th{constructor(u,f,y,E){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=u,this.serverSeq=E,this.lamport=f,this.actor=y}static of(u,f,y,E){return new th(u,f,y,E)}next(){return new th(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(u){return u.greaterThan(this.lamport)?new th(this.clientSeq,u,this.actor):new th(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(u){return Ys.of(this.lamport,u,this.actor)}setActor(u){return new th(this.clientSeq,this.lamport,u,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const XP=new th(0,er.fromInt(0,!0),av);class Qd{constructor({id:u,operations:f,presenceChange:y,message:E}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=u,this.operations=f||[],this.presenceChange=y,this.message=E}static create({id:u,operations:f,presenceChange:y,message:E}){return new Qd({id:u,operations:f,presenceChange:y,message:E})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(u){for(const f of this.operations)f.setActor(u);this.id=this.id.setActor(u)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(u,f,y){const E=[],N=[];for(const B of this.operations){const Z=B.execute(u,y);if(!Z)continue;const{opInfos:re,reverseOp:se}=Z;E.push(...re),se&&N.unshift(se)}return this.presenceChange&&(this.presenceChange.type===Xf.Put?f.set(this.id.getActorID(),Ei(this.presenceChange.presence)):f.delete(this.id.getActorID())),{opInfos:E,reverseOps:N}}toTestString(){return`${this.operations.map(u=>u.toTestString()).join(",")}`}toStruct(){return{changeID:_a.bytesToHex(_a.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(u=>_a.bytesToHex(_a.toOperation(u).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(u){const{changeID:f,operations:y,presenceChange:E,message:N}=u;return Qd.create({id:_a.bytesToChangeID(_a.hexToBytes(f)),operations:y==null?void 0:y.map(B=>_a.bytesToOperation(_a.hexToBytes(B))),presenceChange:E,message:N})}}class lv{constructor(u,f,y,E,N,B){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=u,this.checkpoint=f,this.isRemoved=y,this.changes=E,this.snapshot=N,this.minSyncedTicket=B}static create(u,f,y,E,N,B){return new lv(u,f,y,E,N,B)}getDocumentKey(){return this.documentKey}getCheckpoint(){return this.checkpoint}getIsRemoved(){return this.isRemoved}getChanges(){return this.changes}hasChanges(){return this.changes.length>0}getChangeSize(){return this.changes.length}hasSnapshot(){return!!this.snapshot&&!!this.snapshot.length}getSnapshot(){return this.snapshot}getMinSyncedTicket(){return this.minSyncedTicket}}class a0{constructor(u,f){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=u,this.clientSeq=f}static of(u,f){return new a0(u,f)}increaseClientSeq(u){return u===0?this:new a0(this.serverSeq,this.clientSeq+u)}forward(u){if(this.equals(u))return this;const f=this.serverSeq.greaterThan(u.serverSeq)?this.serverSeq:u.serverSeq,y=Math.max(this.clientSeq,u.clientSeq);return a0.of(f,y)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(u){return this.clientSeq===u.clientSeq&&this.serverSeq.equals(u.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const KP=new a0(er.fromInt(0,!0),0);class jc{constructor(u,f){s(this,"createdAt"),s(this,"offset"),this.createdAt=u,this.offset=f}static of(u,f){return new jc(u,f)}static fromStruct(u){return jc.of(Ys.fromStruct(u.createdAt),u.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(u){return this.createdAt.compare(u.createdAt)===0&&this.offset===u.offset}hasSameCreatedAt(u){return this.createdAt.compare(u.createdAt)===0}split(u){return new jc(this.createdAt,this.offset+u)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const JP=jc.of(Ru,0);class Mu{constructor(u,f){s(this,"id"),s(this,"relativeOffset"),this.id=u,this.relativeOffset=f}static of(u,f){return new Mu(u,f)}static fromStruct(u){const f=jc.fromStruct(u.id);return Mu.of(f,u.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return jc.of(this.id.getCreatedAt(),this.id.getOffset()+this.relativeOffset)}toTestString(){return`${this.id.toTestString()}:${this.relativeOffset}`}toStruct(){return{id:this.id.toStruct(),relativeOffset:this.relativeOffset}}equals(u){return this.id.equals(u.id)?this.relativeOffset===u.relativeOffset:!1}}class nh extends sv{constructor(u,f,y){super(f),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=u,this.removedAt=y}static create(u,f){return new nh(u,f)}static createComparator(){return(u,f)=>{const y=u.getCreatedAt().compare(f.getCreatedAt());return y!==0?y:u.getOffset()>f.getOffset()?1:u.getOffset()0&&f.getID().getOffset()==u.getOffset()){if(!f.hasInsPrev())return f;f=f.getInsPrev()}return f}findFloorNode(u){const f=this.treeByID.floorEntry(u);if(f&&!(!f.key.equals(u)&&!f.key.hasSameCreatedAt(u)))return f.value}findBetween(u,f){const y=[];let E=u;for(;E&&E!==f;)y.push(E),E=E.getNext();return y}splitNode(u,f){if(f>u.getContentLength()&&Lt.fatal("offset should be less than or equal to length"),f===0)return u;if(f===u.getContentLength())return u.getNext();const y=u.split(f);this.treeByIndex.updateWeight(y),this.insertAfter(u,y);const E=u.getInsNext();return E&&E.setInsPrev(y),y.setInsPrev(u),y}deleteNodes(u,f,y){if(!u.length)return[[],new Map,new Map];const[E,N]=this.filterNodes(u,f,y),B=new Map,Z=new Map,re=this.makeChanges(N,f);for(const se of E){const xe=se.getCreatedAt().getActorID();(!B.has(xe)||se.getID().getCreatedAt().after(B.get(xe)))&&B.set(xe,se.getID().getCreatedAt()),Z.set(se.getID().toIDString(),se),se.remove(f)}return this.deleteIndexNodes(N),[re,B,Z]}filterNodes(u,f,y){const E=!!y,N=[],B=[],[Z,re]=this.findEdgesOfCandidates(u);B.push(Z);for(const se of u){const xe=se.getCreatedAt().getActorID(),mt=E?y.has(xe)?y.get(xe):Ru:wp;se.canDelete(f,mt)?N.push(se):B.push(se)}return B.push(re),[N,B]}findEdgesOfCandidates(u){return[u[0].getPrev(),u[u.length-1].getNext()]}makeChanges(u,f){const y=[];let E,N;for(let B=0;Bg<0?Math.ceil(g):Math.floor(g);var Hc=(g=>(g[g.IntegerCnt=0]="IntegerCnt",g[g.LongCnt=1]="LongCnt",g))(Hc||{});class tl extends x1{constructor(u,f,y){switch(super(y),s(this,"valueType"),s(this,"value"),this.valueType=u,u){case 0:typeof f=="number"?f>Math.pow(2,31)-1||f<-Math.pow(2,31)?this.value=er.fromNumber(f).toInt():this.value=SA(f):this.value=f.toInt();break;case 1:typeof f=="number"?this.value=er.fromNumber(f):this.value=f;break;default:throw new jr(Nr.Unimplemented,`unimplemented type: ${u}`)}}static create(u,f,y){return new tl(u,f,y)}static valueFromBytes(u,f){switch(u){case 0:return f[0]|f[1]<<8|f[2]<<16|f[3]<<24;case 1:return er.fromBytesLE(Array.from(f));default:throw new jr(Nr.Unimplemented,`unimplemented type: ${u}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const u=tl.create(this.valueType,this.value,this.getCreatedAt());return u.setMovedAt(this.getMovedAt()),u}getType(){return this.valueType}static getCounterType(u){switch(typeof u){case"object":return u instanceof er?1:void 0;case"number":return u>Math.pow(2,31)-1||u<-Math.pow(2,31)?1:0;default:return}}static isSupport(u){return!!tl.getCounterType(u)}static isInteger(u){return u%1===0}isNumericType(){const u=this.valueType;return u===0||u===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const u=this.value;return new Uint8Array([u&255,u>>8&255,u>>16&255,u>>24&255])}case 1:{const f=this.value.toBytesLE();return Uint8Array.from(f)}default:throw new jr(Nr.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(u){function f(y){if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`)}return f(this),f(u),this.valueType===1?this.value=this.value.add(u.getValue()):u.getType()===Vi.Long?this.value=this.value+u.getValue().toInt():this.value=er.fromNumber(this.value+SA(u.getValue())).toInt(),this}}class o0 extends Du{constructor(u,f,y){super(u,y),s(this,"value"),this.value=f}static create(u,f,y){return new o0(u,f,y)}execute(u){const f=u.findByCreatedAt(this.getParentCreatedAt());f||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),f instanceof tl||Lt.fatal("fail to execute, only Counter can execute increase");const y=f,E=this.value.deepcopy();return y.increase(E),{opInfos:[{type:"increase",path:u.createPath(this.getParentCreatedAt()),value:E.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const u=this.value.deepcopy(),y=u.getType()===Vi.Long?u.getValue().multiply(-1):u.getValue()*-1;return o0.create(this.getParentCreatedAt(),wi.of(y,u.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class Yd extends Du{constructor(u,f,y,E,N,B,Z){super(u,Z),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=f,this.toPos=y,this.maxCreatedAtMapByActor=E,this.attributes=N,this.attributesToRemove=B}static create(u,f,y,E,N,B){return new Yd(u,f,y,E,N,new Array,B)}static createTreeRemoveStyleOperation(u,f,y,E,N,B){return new Yd(u,f,y,E,new Map,N,B)}execute(u){const f=u.findByCreatedAt(this.getParentCreatedAt());f||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),f instanceof zl||Lt.fatal("fail to execute, only Tree can execute edit");const y=f;let E,N;if(this.attributes.size){const B={};[...this.attributes].forEach(([Z,re])=>B[Z]=re),[,N,E]=y.style([this.fromPos,this.toPos],B,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const B=this.attributesToRemove;[,N,E]=y.removeStyle([this.fromPos,this.toPos],B,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const B of N)u.registerGCPair(B);return{opInfos:E.map(({from:B,to:Z,value:re,fromPath:se,toPath:xe})=>({type:"tree-style",from:B,to:Z,value:this.attributes.size?{attributes:re}:{attributesToRemove:re},fromPath:se,toPath:xe,path:u.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const u=this.getParentCreatedAt().toTestString(),f=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${u}.STYLE(${f},${y},${Object.entries(this.attributes||{}).map(([E,N])=>`${E}:"${N}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function e7(g){const u=new dw,f=u.data;for(const[y,E]of Object.entries(g))f[y]=JSON.stringify(E);return u}function t7(g){if(g.type===Xf.Put)return new y1({type:Xm.PUT,presence:e7(g.presence)});if(g.type===Xf.Clear)return new y1({type:Xm.CLEAR});throw new jr(Nr.Unimplemented,"unimplemented type")}function n7(g){return new fw({serverSeq:g.getServerSeqAsString(),clientSeq:g.getClientSeq()})}function EA(g){return new Wy({clientSeq:g.getClientSeq(),lamport:g.getLamportAsString(),actorId:Lw(g.getActorID())})}function An(g){if(g)return new Y_({lamport:g.getLamportAsString(),delimiter:g.getDelimiter(),actorId:Lw(g.getActorID())})}function wA(g){switch(g){case Vi.Null:return pr.NULL;case Vi.Boolean:return pr.BOOLEAN;case Vi.Integer:return pr.INTEGER;case Vi.Long:return pr.LONG;case Vi.Double:return pr.DOUBLE;case Vi.String:return pr.STRING;case Vi.Bytes:return pr.BYTES;case Vi.Date:return pr.DATE;default:throw new jr(Nr.Unsupported,`unsupported type: ${g}`)}}function TA(g){switch(g){case Hc.IntegerCnt:return pr.INTEGER_CNT;case Hc.LongCnt:return pr.LONG_CNT;default:throw new jr(Nr.Unsupported,`unsupported type: ${g}`)}}function N1(g){if(g instanceof Gs)return new ma({type:pr.JSON_OBJECT,createdAt:An(g.getCreatedAt()),value:Mw(g)});if(g instanceof ks)return new ma({type:pr.JSON_ARRAY,createdAt:An(g.getCreatedAt()),value:T7(g)});if(g instanceof Ul)return new ma({type:pr.TEXT,createdAt:An(g.getCreatedAt())});if(g instanceof wi)return new ma({type:wA(g.getType()),createdAt:An(g.getCreatedAt()),value:g.toBytes()});if(g instanceof tl)return new ma({type:TA(g.getType()),createdAt:An(g.getCreatedAt()),value:g.toBytes()});if(g instanceof zl)return new ma({type:pr.TREE,createdAt:An(g.getCreatedAt()),value:k7(g)});throw new jr(Nr.Unimplemented,"unimplemented element")}function xA(g){return new H_({createdAt:An(g.getCreatedAt()),offset:g.getOffset()})}function uv(g){return new v1({createdAt:An(g.getID().getCreatedAt()),offset:g.getID().getOffset(),relativeOffset:g.getRelativeOffset()})}function cv(g){return new W_({parentId:P1(g.getParentID()),leftSiblingId:P1(g.getLeftSiblingID())})}function P1(g){return new uw({createdAt:An(g.getCreatedAt()),offset:g.getOffset()})}function kA(g){const u=new qm;if(g instanceof Cs){const f=g,y=new $_;y.parentCreatedAt=An(f.getParentCreatedAt()),y.key=f.getKey(),y.value=N1(f.getValue()),y.executedAt=An(f.getExecutedAt()),u.body.case="set",u.body.value=y}else if(g instanceof Nu){const f=g,y=new iw;y.parentCreatedAt=An(f.getParentCreatedAt()),y.prevCreatedAt=An(f.getPrevCreatedAt()),y.value=N1(f.getValue()),y.executedAt=An(f.getExecutedAt()),u.body.case="add",u.body.value=y}else if(g instanceof Jf){const f=g,y=new Xa;y.parentCreatedAt=An(f.getParentCreatedAt()),y.prevCreatedAt=An(f.getPrevCreatedAt()),y.createdAt=An(f.getCreatedAt()),y.executedAt=An(f.getExecutedAt()),u.body.case="move",u.body.value=y}else if(g instanceof Hd){const f=g,y=new Qy;y.parentCreatedAt=An(f.getParentCreatedAt()),y.createdAt=An(f.getCreatedAt()),y.executedAt=An(f.getExecutedAt()),u.body.case="remove",u.body.value=y}else if(g instanceof A1){const f=g,y=new aw;y.parentCreatedAt=An(f.getParentCreatedAt()),y.from=uv(f.getFromPos()),y.to=uv(f.getToPos());const E=y.createdAtMapByActor;for(const[B,Z]of f.getMaxCreatedAtMapByActor())E[B]=An(Z);y.content=f.getContent();const N=y.attributes;for(const[B,Z]of f.getAttributes())N[B]=Z;y.executedAt=An(f.getExecutedAt()),u.body.case="edit",u.body.value=y}else if(g instanceof R1){const f=g,y=new Yy;y.parentCreatedAt=An(f.getParentCreatedAt()),y.from=uv(f.getFromPos()),y.to=uv(f.getToPos());const E=y.createdAtMapByActor;for(const[B,Z]of f.getMaxCreatedAtMapByActor())E[B]=An(Z);const N=y.attributes;for(const[B,Z]of f.getAttributes())N[B]=Z;y.executedAt=An(f.getExecutedAt()),u.body.case="style",u.body.value=y}else if(g instanceof o0){const f=g,y=new b1;y.parentCreatedAt=An(f.getParentCreatedAt()),y.value=N1(f.getValue()),y.executedAt=An(f.getExecutedAt()),u.body.case="increase",u.body.value=y}else if(g instanceof D1){const f=g,y=new Yf,E=y.createdAtMapByActor;for(const[N,B]of f.getMaxCreatedAtMapByActor())E[N]=An(B);y.parentCreatedAt=An(f.getParentCreatedAt()),y.from=cv(f.getFromPos()),y.to=cv(f.getToPos()),y.contents=dv(f.getContents()),y.splitLevel=f.getSplitLevel(),y.executedAt=An(f.getExecutedAt()),u.body.case="treeEdit",u.body.value=y}else if(g instanceof Yd){const f=g,y=new sw;y.parentCreatedAt=An(f.getParentCreatedAt()),y.from=cv(f.getFromPos()),y.to=cv(f.getToPos());const E=y.createdAtMapByActor;for(const[B,Z]of f.getMaxCreatedAtMapByActor())E[B]=An(Z);const N=f.getAttributesToRemove();if(N.length>0)y.attributesToRemove=N;else{const B=y.attributes;for(const[Z,re]of f.getAttributes())B[Z]=re}y.executedAt=An(f.getExecutedAt()),u.body.case="treeStyle",u.body.value=y}else throw new jr(Nr.Unimplemented,"unimplemented operation");return u}function r7(g){const u=[];for(const f of g)u.push(kA(f));return u}function i7(g){const u=new rw({id:EA(g.getID()),message:g.getMessage()});return g.hasOperations()&&(u.operations=r7(g.getOperations())),g.hasPresenceChange()&&(u.presenceChange=t7(g.getPresenceChange())),u}function a7(g){const u=[];for(const f of g)u.push(i7(f));return u}function s7(g){const u=[];for(const f of g)u.push(new ow({key:f.getStrKey(),element:Iw(f.getValue())}));return u}function CA(g){const u=[];for(const f of g)u.push(new j_({element:Iw(f.getValue())}));return u}function o7(g){const u=[];for(const f of g){const y=new Zm;y.id=xA(f.getID()),y.value=f.getValue().getContent(),y.removedAt=An(f.getRemovedAt());const E=y.attributes,N=f.getValue().getAttrs();for(const B of N){const Z=new lw;Z.value=B.getValue(),Z.updatedAt=An(B.getUpdatedAt()),E[B.getKey()]=Z}u.push(y)}return u}function dv(g){const u=[];if(!g||!g.length)return u;for(const f of g)u.push(new Gy({content:_A(f)}));return u}function l7(g){const u={};for(const f of g)u[f.getKey()]=new lw({value:f.getValue(),updatedAt:An(f.getUpdatedAt()),isRemoved:f.isRemoved()});return u}function _A(g){if(!g)return[];const u=[];return ov(g,(f,y)=>{const E=new V_({id:P1(f.id),type:f.type,removedAt:An(f.removedAt),depth:y});f.isText&&(E.value=f.value),f.insPrevID&&(E.insPrevId=P1(f.insPrevID)),f.insNextID&&(E.insNextId=P1(f.insNextID)),f.attrs&&(E.attributes=l7(f.attrs)),u.push(E)}),u}function u7(g){const u=new Ml;return u.body.case="jsonObject",u.body.value=new F_({nodes:s7(g.getRHT()),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function AA(g){const u=new Ml;return u.body.case="jsonArray",u.body.value=new B_({nodes:CA(g.getElements()),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function c7(g){const u=new Ml;return u.body.case="primitive",u.body.value=new U_({type:wA(g.getType()),value:g.toBytes(),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function d7(g){const u=new Ml;return u.body.case="text",u.body.value=new qy({nodes:o7(g.getRGATreeSplit()),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function f7(g){const u=new Ml;return u.body.case="counter",u.body.value=new z_({type:TA(g.getType()),value:g.toBytes(),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function RA(g){const u=new Ml;return u.body.case="tree",u.body.value=new Gm({nodes:_A(g.getRoot()),createdAt:An(g.getCreatedAt()),movedAt:An(g.getMovedAt()),removedAt:An(g.getRemovedAt())}),u}function Iw(g){if(g instanceof Gs)return u7(g);if(g instanceof ks)return AA(g);if(g instanceof wi)return c7(g);if(g instanceof Ul)return d7(g);if(g instanceof tl)return f7(g);if(g instanceof zl)return RA(g);throw new jr(Nr.Unimplemented,"unimplemented element")}function h7(g){return new Bd({documentKey:g.getDocumentKey(),checkpoint:n7(g.getCheckpoint()),isRemoved:g.getIsRemoved(),changes:a7(g.getChanges()),snapshot:g.getSnapshot(),minSyncedTicket:An(g.getMinSyncedTicket())})}function IA(g){let u;return g.serverSeq&&(u=er.fromString(g.serverSeq,!0)),th.of(g.clientSeq,er.fromString(g.lamport,!0),u0(g.actorId),u)}function Pn(g){if(g)return Ys.of(er.fromString(g.lamport,!0),g.delimiter,u0(g.actorId))}function Dw(g){const u={};return Object.entries(g.data).forEach(([f,y])=>{u[f]=JSON.parse(y)}),u}function p7(g){const u=g.type;if(u===Xm.PUT){const f=Dw(g.presence);return{type:Xf.Put,presence:f}}if(u===Xm.CLEAR)return{type:Xf.Clear};throw new jr(Nr.Unsupported,`unsupported type: ${u}`)}function m7(g){const u=new Map;return Object.entries(g).forEach(([f,y])=>{u.set(f,Dw(y))}),u}function DA(g){switch(g){case pr.NULL:return Vi.Null;case pr.BOOLEAN:return Vi.Boolean;case pr.INTEGER:return Vi.Integer;case pr.LONG:return Vi.Long;case pr.DOUBLE:return Vi.Double;case pr.STRING:return Vi.String;case pr.BYTES:return Vi.Bytes;case pr.DATE:return Vi.Date}throw new jr(Nr.Unimplemented,`unimplemented value type: ${g}`)}function M1(g){switch(g){case pr.INTEGER_CNT:return Hc.IntegerCnt;case pr.LONG_CNT:return Hc.LongCnt}throw new jr(Nr.Unimplemented,`unimplemented value type: ${g}`)}function fv(g){switch(g.type){case pr.JSON_OBJECT:return g.value?Pw(g.value):Gs.create(Pn(g.createdAt));case pr.JSON_ARRAY:return g.value?zA(g.value):ks.create(Pn(g.createdAt));case pr.TEXT:return Ul.create(s0.create(),Pn(g.createdAt));case pr.TREE:return x7(g.value);case pr.NULL:case pr.BOOLEAN:case pr.INTEGER:case pr.LONG:case pr.DOUBLE:case pr.STRING:case pr.BYTES:case pr.DATE:return wi.of(wi.valueFromBytes(DA(g.type),g.value),Pn(g.createdAt));case pr.INTEGER_CNT:case pr.LONG_CNT:return tl.create(M1(g.type),tl.valueFromBytes(M1(g.type),g.value),Pn(g.createdAt))}}function hv(g){return Mu.of(jc.of(Pn(g.createdAt),g.offset),g.relativeOffset)}function NA(g){return jc.of(Pn(g.createdAt),g.offset)}function g7(g){const u=_1.create(g.value);Object.entries(g.attributes).forEach(([y,E])=>{u.setAttr(y,E.value,Pn(E.updatedAt))});const f=nh.create(NA(g.id),u);return f.remove(Pn(g.removedAt)),f}function l0(g){return Pu.of(rh(g.parentId),rh(g.leftSiblingId))}function rh(g){return fi.of(Pn(g.createdAt),g.offset)}function b7(g){if(!g.length)return;const u=[];return g.forEach(f=>{const y=PA(f.content);u.push(y)}),u}function PA(g){if(g.length===0)return;const u=[];for(const y of g)u.push(v7(y));const f=u[u.length-1];for(let y=u.length-2;y>=0;y--){let E;for(let N=y+1;N{f.set(E,Pn(N))});const y=new Map;return Object.entries(u.attributes).forEach(([E,N])=>{y.set(E,N)}),A1.create(Pn(u.parentCreatedAt),hv(u.from),hv(u.to),f,u.content,y,Pn(u.executedAt))}else if(g.body.case==="style"){const u=g.body.value,f=new Map;Object.entries(u.createdAtMapByActor).forEach(([E,N])=>{f.set(E,Pn(N))});const y=new Map;return Object.entries(u.attributes).forEach(([E,N])=>{y.set(E,N)}),R1.create(Pn(u.parentCreatedAt),hv(u.from),hv(u.to),f,y,Pn(u.executedAt))}else{if(g.body.case==="select")return;if(g.body.case==="increase"){const u=g.body.value;return o0.create(Pn(u.parentCreatedAt),fv(u.value),Pn(u.executedAt))}else if(g.body.case==="treeEdit"){const u=g.body.value,f=new Map;return Object.entries(u.createdAtMapByActor).forEach(([y,E])=>{f.set(y,Pn(E))}),D1.create(Pn(u.parentCreatedAt),l0(u.from),l0(u.to),b7(u.contents),u.splitLevel,f,Pn(u.executedAt))}else if(g.body.case==="treeStyle"){const u=g.body.value,f=new Map,y=u.attributesToRemove,E=new Map;return u!=null&&u.createdAtMapByActor&&Object.entries(u.createdAtMapByActor).forEach(([N,B])=>{E.set(N,Pn(B))}),(y==null?void 0:y.length)>0?Yd.createTreeRemoveStyleOperation(Pn(u.parentCreatedAt),l0(u.from),l0(u.to),E,y,Pn(u.executedAt)):(Object.entries(u.attributes).forEach(([N,B])=>{f.set(N,B)}),Yd.create(Pn(u.parentCreatedAt),l0(u.from),l0(u.to),E,f,Pn(u.executedAt)))}else throw new jr(Nr.Unimplemented,"unimplemented operation")}}function O7(g){const u=[];for(const f of g){const y=MA(f);y&&u.push(y)}return u}function LA(g){const u=[];for(const f of g)u.push(Qd.create({id:IA(f.id),operations:O7(f.operations),presenceChange:f.presenceChange?p7(f.presenceChange):void 0,message:f.message}));return u}function S7(g){return a0.of(er.fromString(g.serverSeq,!0),g.clientSeq)}function E7(g){return lv.create(g.documentKey,S7(g.checkpoint),g.isRemoved,LA(g.changes),g.snapshot,Pn(g.minSyncedTicket))}function $A(g){const u=new k1;for(const y of g.nodes){const E=L1(y.element);u.set(y.key,E,E.getPositionedAt())}const f=new Gs(Pn(g.createdAt),u);return f.setMovedAt(Pn(g.movedAt)),f.setRemovedAt(Pn(g.removedAt)),f}function FA(g){const u=new i0;for(const y of g.nodes)u.insert(L1(y.element));const f=new ks(Pn(g.createdAt),u);return f.setMovedAt(Pn(g.movedAt)),f.setRemovedAt(Pn(g.removedAt)),f}function pv(g){const u=wi.of(wi.valueFromBytes(DA(g.type),g.value),Pn(g.createdAt));return u.setMovedAt(Pn(g.movedAt)),u.setRemovedAt(Pn(g.removedAt)),u}function w7(g){const u=new s0;let f=u.getHead();for(const E of g.nodes){const N=u.insertAfter(f,g7(E));E.insPrevId&&N.setInsPrev(u.findNode(NA(E.insPrevId))),f=N}const y=new Ul(u,Pn(g.createdAt));return y.setMovedAt(Pn(g.movedAt)),y.setRemovedAt(Pn(g.removedAt)),y}function BA(g){const u=tl.create(M1(g.type),tl.valueFromBytes(M1(g.type),g.value),Pn(g.createdAt));return u.setMovedAt(Pn(g.movedAt)),u.setRemovedAt(Pn(g.removedAt)),u}function Nw(g){const u=PA(g.nodes);return zl.create(u,Pn(g.createdAt))}function L1(g){if(g.body.case==="jsonObject")return $A(g.body.value);if(g.body.case==="jsonArray")return FA(g.body.value);if(g.body.case==="primitive")return pv(g.body.value);if(g.body.case==="text")return w7(g.body.value);if(g.body.case==="counter")return BA(g.body.value);if(g.body.case==="tree")return Nw(g.body.value);throw new jr(Nr.Unimplemented,"unimplemented element")}function UA(g){if(!g)return{root:Gs.create(Ru),presences:new Map};const u=Ym.fromBinary(g);return{root:L1(u.root),presences:m7(u.presences)}}function Pw(g){if(!g)throw new Error("bytes is empty");const u=Ml.fromBinary(g);return $A(u.body.value)}function Mw(g){return Iw(g).toBinary()}function zA(g){if(!g)throw new Error("bytes is empty");const u=Ml.fromBinary(g);return FA(u.body.value)}function T7(g){return AA(g).toBinary()}function x7(g){if(!g)throw new Error("bytes is empty");const u=Ml.fromBinary(g);return Nw(u.body.value)}function k7(g){return RA(g).toBinary()}function $1(g){return g?Array.from(g).map(u=>u.toString(16).padStart(2,"0")).join(""):""}function u0(g){return $1(g)}function jA(g){return new Uint8Array(g.match(/.{1,2}/g).map(u=>parseInt(u,16)))}function Lw(g){return jA(g)}function $w(g){const u=Wy.fromBinary(g);return IA(u)}function HA(g){const u=qm.fromBinary(g);return MA(u)}const _a={fromPresence:Dw,toChangePack:h7,fromChangePack:E7,fromChanges:LA,objectToBytes:Mw,bytesToObject:Pw,bytesToSnapshot:UA,bytesToHex:$1,hexToBytes:jA,toHexString:u0,toUint8Array:Lw,toOperation:kA,toChangeID:EA,PbChangeID:Wy,bytesToChangeID:$w,bytesToOperation:HA};function VA(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,g=>{const u=Math.random()*16|0;return(g==="x"?u:u&3|8).toString(16)})}class C7{constructor(u,f,y,E){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=u,this.doc=f,this.docID=y,this.syncMode=E,this.remoteChangeEventReceived=!1}changeSyncMode(u){this.syncMode=u}needRealtimeSync(){return this.syncMode===d0.RealtimeSyncOff?!1:this.syncMode===d0.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==d0.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(u){const f=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await u(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(f,this.reconnectStreamDelay)})}catch{}};await f()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const Fw=()=>{};class _7{constructor(u){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{u(this)}catch(f){this.error(f)}}next(u){this.forEachObserver(f=>{f.next(u)})}error(u){this.forEachObserver(f=>{f.error(u)}),this.close(u)}complete(){this.forEachObserver(u=>{u.complete()}),this.close()}subscribe(u,f,y){let E;u||Lt.fatal("missing observer"),this.finalized&&Lt.fatal("observable is finalized due to previous error"),typeof u=="object"?E=u:E={next:u,error:f,complete:y},E.next===void 0&&(E.next=Fw),E.error===void 0&&(E.error=Fw),E.complete===void 0&&(E.complete=Fw);const N=VA(),B=this.unsubscribeOne.bind(this,N);if(this.observers.push({subscriptionID:N,observer:E}),this.finalized)try{this.finalError?E.error(this.finalError):E.complete()}catch(Z){Lt.warn(Z)}return B}unsubscribeOne(u){var f;this.observers=(f=this.observers)==null?void 0:f.filter(y=>y.subscriptionID!==u)}forEachObserver(u){if(!this.finalized)for(let f=0;fu}}class c0{constructor(u,f,y,E){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=u,this.delimiter=Au,this.root=f,this.operations=[],this.previousPresence=Ei(y),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=E}static create(u,f,y,E){return new c0(u,f,y,E)}push(u){this.operations.push(u)}registerElement(u,f){this.root.registerElement(u,f)}registerRemovedElement(u){this.root.registerRemovedElement(u)}registerGCPair(u){this.root.registerGCPair(u)}getChange(){return Qd.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(u){this.presenceChange=u}setReversePresence(u,f){for(const y of Object.keys(u))f!=null&&f.addToHistory?this.reversePresenceKeys.add(y):this.reversePresenceKeys.delete(y)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const u={};for(const f of this.reversePresenceKeys)u[f]=this.previousPresence[f];return u}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class F1{constructor(u){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=u,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(u,void 0),u.getDescendants(f=>{if(f.getRemovedAt()&&this.registerRemovedElement(f),f instanceof Ul||f instanceof zl)for(const y of f.getGCPairs())this.registerGCPair(y);return!1})}static create(){return new F1(Gs.create(Ru))}findByCreatedAt(u){const f=this.elementPairMapByCreatedAt.get(u.toIDString());if(f)return f.element}findElementPairByCreatedAt(u){return this.elementPairMapByCreatedAt.get(u.toIDString())}createSubPaths(u){let f=this.elementPairMapByCreatedAt.get(u.toIDString());if(!f)return[];const y=[];for(;f.parent;){const E=f.element.getCreatedAt(),N=f.parent.subPathOf(E);N===void 0&&Lt.fatal(`cant find the given element: ${E.toIDString()}`),y.unshift(N),f=this.elementPairMapByCreatedAt.get(f.parent.getCreatedAt().toIDString())}return y.unshift("$"),y}createPath(u){return this.createSubPaths(u).join(".")}registerElement(u,f){this.elementPairMapByCreatedAt.set(u.getCreatedAt().toIDString(),{parent:f,element:u}),u instanceof Kf&&u.getDescendants((y,E)=>(this.registerElement(y,E),!1))}deregisterElement(u){let f=0;const y=E=>{const N=E.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(N),this.gcElementSetByCreatedAt.delete(N),f++};return y(u),u instanceof Kf&&u.getDescendants(E=>(y(E),!1)),f}registerRemovedElement(u){this.gcElementSetByCreatedAt.add(u.getCreatedAt().toIDString())}registerGCPair(u){if(this.gcPairMap.get(u.child.toIDString())){this.gcPairMap.delete(u.child.toIDString());return}this.gcPairMap.set(u.child.toIDString(),u)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const u=new Set;for(const f of this.gcElementSetByCreatedAt){u.add(f);const y=this.elementPairMapByCreatedAt.get(f);y.element instanceof Kf&&y.element.getDescendants(E=>(u.add(E.getCreatedAt().toIDString()),!1))}return u.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new F1(this.rootObject.deepcopy())}garbageCollect(u){let f=0;for(const y of this.gcElementSetByCreatedAt){const E=this.elementPairMapByCreatedAt.get(y);E.element.getRemovedAt()&&u.compare(E.element.getRemovedAt())>=0&&(E.parent.purge(E.element),f+=this.deregisterElement(E.element))}for(const[,y]of this.gcPairMap){const E=y.child.getRemovedAt();E!==void 0&&u.compare(E)>=0&&(y.parent.purge(y.child),this.gcPairMap.delete(y.child.toIDString()),f+=1)}return f}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function WA(g,u){const f=new B1(g);return new Proxy(u,f.getHandlers())}class B1{constructor(u){s(this,"context"),s(this,"handlers"),this.context=u,this.handlers={set:(f,y,E)=>(Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`obj[${y}]=${JSON.stringify(E)}`),B1.setInternal(u,f,y,E),!0),get:(f,y)=>(Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`obj[${y}]`),y==="getID"?()=>f.getCreatedAt():y==="toJSON"||y==="toString"?()=>f.toJSON():y==="toJS"?()=>f.toJS():y==="toJSForTest"?()=>f.toJSForTest():xp(u,f.get(y))),ownKeys:f=>f.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(f,y)=>(Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`obj[${y}]`),B1.deleteInternal(u,f,y),!0)}}static setInternal(u,f,y,E){if(y.includes("."))throw new jr(Nr.InvalidObjectKey,"key must not contain the '.'.");const N=u.issueTimeTicket(),B=mv(u,E,N),Z=f.set(y,B,N);u.registerElement(B,f),Z&&u.registerRemovedElement(Z),u.push(Cs.create(y,B.deepcopy(),f.getCreatedAt(),N))}static buildObjectMembers(u,f){const y={};for(const[E,N]of Object.entries(f)){if(E.includes("."))throw new jr(Nr.InvalidObjectKey,"key must not contain the '.'.");const B=u.issueTimeTicket(),Z=mv(u,N,B);y[E]=Z}return y}static deleteInternal(u,f,y){const E=u.issueTimeTicket(),N=f.deleteByKey(y,E);N&&(u.push(Hd.create(f.getCreatedAt(),N.getCreatedAt(),E)),u.registerRemovedElement(N))}getHandlers(){return this.handlers}}function R7(g,u){const f=new ra(g,u);return new Proxy(u,f.getHandlers())}function I7(g){return typeof g=="string"||g instanceof String?!isNaN(g):!1}function Lu(g){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(g)}class ra{constructor(u,f){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=u,this.array=f,this.handlers={get:(y,E,N)=>E==="getID"?()=>y.getCreatedAt():E==="getElementByID"?B=>{const Z=y.getByID(B);if(!(!Z||Z.isRemoved()))return ih(u,Z)}:E==="getElementByIndex"?B=>{const Z=y.get(B);return ih(u,Z)}:E==="getLast"?()=>ih(u,y.getLast()):E==="deleteByID"?B=>{const Z=ra.deleteInternalByID(u,y,B);return ih(u,Z)}:E==="insertAfter"?(B,Z)=>{const re=ra.insertAfterInternal(u,y,B,Z);return ih(u,re)}:E==="insertBefore"?(B,Z)=>{const re=ra.insertBeforeInternal(u,y,B,Z);return ih(u,re)}:E==="moveBefore"?(B,Z)=>{ra.moveBeforeInternal(u,y,B,Z)}:E==="moveAfter"?(B,Z)=>{ra.moveAfterInternal(u,y,B,Z)}:E==="moveFront"?B=>{ra.moveFrontInternal(u,y,B)}:E==="moveLast"?B=>{ra.moveLastInternal(u,y,B)}:I7(E)?xp(u,y.get(Number(E))):E==="push"?B=>ra.pushInternal(u,y,B):E==="splice"?(B,Z,...re)=>ra.splice(u,y,B,Z,...re):E==="length"?y.length:typeof E=="symbol"&&E===Symbol.iterator?ra.iteratorInternal.bind(this,u,y):E==="includes"?(B,Z)=>ra.includes(u,y,B,Z):E==="indexOf"?(B,Z)=>ra.indexOf(u,y,B,Z):E==="lastIndexOf"?(B,Z)=>ra.lastIndexOf(u,y,B,Z):E==="toJSForTest"?()=>y.toJSForTest():E==="toTestString"?()=>ra.toTestString(y):typeof E=="string"&&Lu(E)?(...B)=>{const Z=Array.from(y).map(re=>xp(u,re));return Array.prototype[E].apply(Z,B)}:Reflect.get(y,E,N),deleteProperty:(y,E)=>(Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`array[${E}]`),ra.deleteInternalByIndex(u,y,Number.parseInt(E)),!0)}}static*iteratorInternal(u,f){for(const y of f)yield ih(u,y)}static buildArrayElements(u,f){const y=[];for(const E of f){const N=u.issueTimeTicket(),B=mv(u,E,N);y.push(B)}return y}static pushInternal(u,f,y){return ra.insertAfterInternal(u,f,f.getLastCreatedAt(),y),f.length}static moveBeforeInternal(u,f,y,E){const N=u.issueTimeTicket(),B=f.getPrevCreatedAt(y);f.moveAfter(B,E,N),u.push(Jf.create(f.getCreatedAt(),B,E,N))}static moveAfterInternal(u,f,y,E){const N=u.issueTimeTicket();f.moveAfter(y,E,N),u.push(Jf.create(f.getCreatedAt(),y,E,N))}static moveFrontInternal(u,f,y){const E=u.issueTimeTicket(),N=f.getHead();f.moveAfter(N.getCreatedAt(),y,E),u.push(Jf.create(f.getCreatedAt(),N.getCreatedAt(),y,E))}static moveLastInternal(u,f,y){const E=u.issueTimeTicket(),N=f.getLastCreatedAt();f.moveAfter(N,y,E),u.push(Jf.create(f.getCreatedAt(),N,y,E))}static insertAfterInternal(u,f,y,E){const N=u.issueTimeTicket(),B=mv(u,E,N);return f.insertAfter(y,B),u.registerElement(B,f),u.push(Nu.create(f.getCreatedAt(),y,B.deepcopy(),N)),B}static insertBeforeInternal(u,f,y,E){return ra.insertAfterInternal(u,f,f.getPrevCreatedAt(y),E)}static deleteInternalByIndex(u,f,y){const E=u.issueTimeTicket(),N=f.deleteByIndex(y,E);if(N)return u.push(Hd.create(f.getCreatedAt(),N.getCreatedAt(),E)),u.registerRemovedElement(N),N}static deleteInternalByID(u,f,y){const E=u.issueTimeTicket(),N=f.delete(y,E);return u.push(Hd.create(f.getCreatedAt(),N.getCreatedAt(),E)),u.registerRemovedElement(N),N}static splice(u,f,y,E,...N){const B=f.length,Z=y>=0?Math.min(y,B):Math.max(B+y,0),re=E===void 0?B:E<0?Z:Math.min(Z+E,B),se=[];for(let xe=Z;xe=B)return!1;if(wi.isSupport(y))return Array.from(f).map(se=>xp(u,se)).includes(y,Z);for(let re=Z;re=B)return-1;if(wi.isSupport(y))return Array.from(f).map(se=>xp(u,se)).indexOf(y,Z);for(let re=Z;re=B?B-1:E<0?E+B:E;if(Z<0)return-1;if(wi.isSupport(y))return Array.from(f).map(se=>xp(u,se)).lastIndexOf(y,Z);for(let re=Z;re>0;re--)if(((N=f.get(re))==null?void 0:N.getID())===y.getID())return re;return-1}static toTestString(u){return u.toTestString()}getHandlers(){return this.handlers}}class U1{constructor(u,f){s(this,"context"),s(this,"text"),this.context=u,this.text=f}initialize(u,f){this.context=u,this.text=f}getID(){return this.text.getID()}edit(u,f,y,E){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}if(u>f){Lt.fatal("from should be less than or equal to to");return}const N=this.text.indexRangeToPosRange(u,f);Lt.isEnabled(Jo.Debug)&&Lt.debug(`EDIT: f:${u}->${N[0].toTestString()}, t:${f}->${N[1].toTestString()} c:${y}`);const B=E?n0(E):void 0,Z=this.context.issueTimeTicket(),[re,,se,xe]=this.text.edit(N,y,Z,B);for(const mt of se)this.context.registerGCPair(mt);return this.context.push(new A1(this.text.getCreatedAt(),N[0],N[1],re,y,B?new Map(Object.entries(B)):new Map,Z)),this.text.findIndexesFromRange(xe)}delete(u,f){return this.edit(u,f,"")}empty(){return this.edit(0,this.length,"")}setStyle(u,f,y){if(!this.context||!this.text)return Lt.fatal("it is not initialized yet"),!1;if(u>f)return Lt.fatal("from should be less than or equal to to"),!1;const E=this.text.indexRangeToPosRange(u,f);Lt.isEnabled(Jo.Debug)&&Lt.debug(`STYL: f:${u}->${E[0].toTestString()}, t:${f}->${E[1].toTestString()} a:${JSON.stringify(y)}`);const N=n0(y),B=this.context.issueTimeTicket(),[Z,re]=this.text.setStyle(E,N,B);for(const se of re)this.context.registerGCPair(se);return this.context.push(new R1(this.text.getCreatedAt(),E[0],E[1],Z,new Map(Object.entries(N)),B)),!0}indexRangeToPosRange(u){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}const f=this.text.indexRangeToPosRange(u[0],u[1]);return[f[0].toStruct(),f[1].toStruct()]}posRangeToIndexRange(u){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}const f=this.text.findIndexesFromRange([Mu.fromStruct(u[0]),Mu.fromStruct(u[1])]);return[f[0],f[1]]}toTestString(){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}checkWeight(){return this.text.checkWeight()}toString(){return!this.context||!this.text?(Lt.fatal("it is not initialized yet"),""):this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSForTest()}createRangeForTest(u,f){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(u,f)}}class $u{constructor(u,f){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=u,this.value=f}initialize(u,f){this.valueType=f.getValueType(),this.context=u,this.counter=f,this.value=f.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(u){if(!this.context||!this.counter){Lt.fatal("it is not initialized yet");return}const f=this.context.issueTimeTicket(),y=wi.of(u,f);if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`);return this.counter.increase(y),this.context.push(o0.create(this.counter.getCreatedAt(),y,f)),this}toJSForTest(){if(!this.context||!this.counter)throw new Error("it is not initialized yet");return this.counter.toJSForTest()}}function or(g,u,f){const{type:y}=g,E=f.issueTimeTicket();if(y===Wd){Zs(g);const{value:N}=g,B=el.create(fi.of(E,0),y,N);u.append(B)}else{const{children:N=[]}=g;let{attributes:B}=g,Z;if(typeof B=="object"&&!bA(B)){B=n0(B),Z=new Vd;for(const[se,xe]of Object.entries(B))Z.set(se,xe,E)}const re=el.create(fi.of(E,0),y,void 0,Z);u.append(re);for(const se of N)or(se,re,f)}}function D7(g,u){const{type:f}=u,y=g.issueTimeTicket();let E;if(u.type===Wd){const{value:N}=u;E=el.create(fi.of(y,0),f,N)}else if(u){const{children:N=[]}=u;let{attributes:B}=u,Z;if(typeof B=="object"&&!bA(B)){B=n0(B),Z=new Vd;for(const[re,se]of Object.entries(B))Z.set(re,se,y)}E=el.create(fi.of(g.issueTimeTicket(),0),f,void 0,Z);for(const re of N)or(re,E,g)}return E}function Zs(g){if(!g.value.length)throw new Error("text node cannot have empty value");return!0}function ia(g){if(!g.length)return!0;if(g[0].type===Wd)for(const f of g){const{type:y}=f;if(y!==Wd)throw new Error("element node and text node cannot be passed together");Zs(f)}else for(const f of g){const{type:y}=f;if(y===Wd)throw new Error("element node and text node cannot be passed together")}return!0}class z1{constructor(u){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=u}initialize(u,f){this.context=u,this.tree=f}getID(){return this.tree.getID()}buildRoot(u){if(!this.initialRoot)return el.create(fi.of(u.issueTimeTicket(),0),VP);const f=el.create(fi.of(u.issueTimeTicket(),0),this.initialRoot.type);for(const y of this.initialRoot.children)or(y,f,u);return f}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(u,f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!u.length)throw new Error("path should not be empty");const[y,E]=this.tree.pathToPosRange(u),N=this.context.issueTimeTicket(),B=f?n0(f):void 0,[Z]=this.tree.style([y,E],B,N);this.context.push(Yd.create(this.tree.getCreatedAt(),y,E,Z,B?new Map(Object.entries(B)):new Map,N))}style(u,f,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u>f)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(u),N=this.tree.findPos(f),B=this.context.issueTimeTicket(),Z=y?n0(y):void 0,[re,se]=this.tree.style([E,N],Z,B);for(const xe of se)this.context.registerGCPair(xe);this.context.push(Yd.create(this.tree.getCreatedAt(),E,N,re,Z?new Map(Object.entries(Z)):new Map,B))}removeStyle(u,f,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u>f)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(u),N=this.tree.findPos(f),B=this.context.issueTimeTicket(),[Z,re]=this.tree.removeStyle([E,N],y,B);for(const se of re)this.context.registerGCPair(se);this.context.push(Yd.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),E,N,Z,y,B))}editInternal(u,f,y,E=0){var N;if(y.length!==0&&y[0]&&(ia(y),y[0].type!==Wd))for(const xe of y){const{children:mt=[]}=xe;ia(mt)}const B=this.context.getLastTimeTicket();let Z=new Array;if(((N=y[0])==null?void 0:N.type)===Wd){let xe="";for(const mt of y){const{value:Be}=mt;xe+=Be}Z.push(el.create(fi.of(this.context.issueTimeTicket(),0),Wd,xe))}else Z=y.map(xe=>xe&&D7(this.context,xe)).filter(xe=>xe);const[,re,se]=this.tree.edit([u,f],Z.length?Z.map(xe=>xe==null?void 0:xe.deepcopy()):void 0,E,B,()=>this.context.issueTimeTicket());for(const xe of re)this.context.registerGCPair(xe);return this.context.push(D1.create(this.tree.getCreatedAt(),u,f,Z.length?Z:void 0,E,se,B)),!0}editByPath(u,f,y,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u.length!==f.length)throw new Error("path length should be equal");if(!u.length||!f.length)throw new Error("path should not be empty");const N=this.tree.pathToPos(u),B=this.tree.pathToPos(f);return this.editInternal(N,B,y?[y]:[],E)}editBulkByPath(u,f,y,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u.length!==f.length)throw new Error("path length should be equal");if(!u.length||!f.length)throw new Error("path should not be empty");const N=this.tree.pathToPos(u),B=this.tree.pathToPos(f);return this.editInternal(N,B,y,E)}edit(u,f,y,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u>f)throw new Error("from should be less than or equal to to");const N=this.tree.findPos(u),B=this.tree.findPos(f);return this.editInternal(N,B,y?[y]:[],E)}editBulk(u,f,y,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(u>f)throw new Error("from should be less than or equal to to");const N=this.tree.findPos(u),B=this.tree.findPos(f);return this.editInternal(N,B,y,E)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(u){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(u)}pathToIndex(u){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(u)}pathRangeToPosRange(u){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const f=[this.tree.pathToIndex(u[0]),this.tree.pathToIndex(u[1])],y=this.tree.indexRangeToPosRange(f);return[y[0].toStruct(),y[1].toStruct()]}indexRangeToPosRange(u){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(u)}posRangeToIndexRange(u){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const f=[Pu.fromStruct(u[0]),Pu.fromStruct(u[1])];return this.tree.posRangeToIndexRange(f)}posRangeToPathRange(u){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const f=[Pu.fromStruct(u[0]),Pu.fromStruct(u[1])];return this.tree.posRangeToPathRange(f)}}function qd(g,u){return WA(g,u)}function ih(g,u){if(u){if(u instanceof wi)return u;if(u instanceof Gs)return WA(g,u);if(u instanceof ks)return R7(g,u);if(u instanceof Ul)return new U1(g,u);if(u instanceof tl){const f=new $u(Hc.IntegerCnt,0);return f.initialize(g,u),f}else if(u instanceof zl){const f=new z1;return f.initialize(g,u),f}}else return;throw new TypeError(`Unsupported type of element: ${typeof u}`)}function xp(g,u){const f=ih(g,u);return f instanceof wi?f.getValue():f}function mv(g,u,f){let y;if(wi.isSupport(u))y=wi.of(u,f);else if(Array.isArray(u))y=ks.create(f,ra.buildArrayElements(g,u));else if(typeof u=="object")u instanceof U1?(y=Ul.create(s0.create(),f),u.initialize(g,y)):u instanceof $u?(y=tl.create(u.getValueType(),u.getValue(),f),u.initialize(g,y)):u instanceof z1?(y=zl.create(u.buildRoot(g),f),u.initialize(g,y)):y=Gs.create(f,B1.buildObjectMembers(g,u));else throw new TypeError(`Unsupported type of value: ${typeof u}`);return y}const QA=50;class N7{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(u){this.undoStack.length>=QA&&this.undoStack.shift(),this.undoStack.push(u)}popUndo(){return this.undoStack.pop()}pushRedo(u){this.redoStack.length>=QA&&this.redoStack.shift(),this.redoStack.push(u)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const gv="yorkie-devtools-panel",YA="yorkie-devtools-sdk";let xo="disconnected";const Bw=new Map,kp=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=kp);function Ti(g,u){(u!=null&&u.force||xo!=="disconnected")&&window.postMessage({source:YA,...g},"*")}function aa(g){if(!g.isEnableDevtools()||typeof window>"u"||Bw.has(g.getKey()))return;kp.set(g.getKey(),[]);const u=g.subscribe("all",f=>{f.some(y=>y.type!==Xs.StatusChanged&&y.type!==Xs.Snapshot&&y.type!==Xs.LocalChange&&y.type!==Xs.RemoteChange&&y.type!==Xs.Initialized&&y.type!==Xs.Watched&&y.type!==Xs.Unwatched&&y.type!==Xs.PresenceChanged)||(kp.get(g.getKey()).push(f),xo==="synced"&&Ti({msg:"doc::sync::partial",docKey:g.getKey(),event:f}))});Bw.set(g.getKey(),[u]),Ti({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",f=>{var y;if(((y=f.data)==null?void 0:y.source)!==gv)return;switch(f.data.msg){case"devtools::connect":if(xo!=="disconnected")break;xo="connected",Ti({msg:"doc::available",docKey:g.getKey()}),Lt.info(`[YD] Devtools connected. Doc: ${g.getKey()}`);break;case"devtools::disconnect":xo="disconnected",Lt.info(`[YD] Devtools disconnected. Doc: ${g.getKey()}`);break;case"devtools::subscribe":xo="synced",Ti({msg:"doc::sync::full",docKey:g.getKey(),events:kp.get(g.getKey())}),Lt.info(`[YD] Devtools subscribed. Doc: ${g.getKey()}`);break}})}var Gd=(g=>(g.Detached="detached",g.Attached="attached",g.Removed="removed",g))(Gd||{}),Xs=(g=>(g.StatusChanged="status-changed",g.ConnectionChanged="connection-changed",g.SyncStatusChanged="sync-status-changed",g.Snapshot="snapshot",g.LocalChange="local-change",g.RemoteChange="remote-change",g.Initialized="initialized",g.Watched="watched",g.Unwatched="unwatched",g.PresenceChanged="presence-changed",g))(Xs||{}),bv=(g=>(g.Connected="connected",g.Disconnected="disconnected",g))(bv||{}),yv=(g=>(g.Synced="synced",g.SyncFailed="sync-failed",g))(yv||{});class Uw{constructor(u,f){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=f||{},this.key=u,this.status="detached",this.root=F1.create(),this.changeID=XP,this.checkpoint=KP,this.localChanges=[],this.eventStream=A7(y=>{this.eventStreamObserver=y}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new N7,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},aa(this)}update(u,f){if(this.getStatus()==="removed")throw new jr(Nr.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const y=this.changeID.getActorID(),E=c0.create(this.changeID.next(),this.clone.root,this.clone.presences.get(y)||{},f);try{const N=qd(E,this.clone.root.getObject());this.presences.has(y)||this.clone.presences.set(y,{}),this.isUpdating=!0,u(N,new iv(E,this.clone.presences.get(y)))}catch(N){throw this.clone=void 0,Lt.error(N),N}finally{this.isUpdating=!1}if(E.hasChange()){Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`trying to update a local change: ${this.toJSON()}`);const N=E.getChange(),{opInfos:B,reverseOps:Z}=N.execute(this.root,this.presences,di.Local),re=E.getReversePresence();re&&Z.push({type:"presence",value:re}),this.localChanges.push(N),Z.length>0&&this.internalHistory.pushUndo(Z),B.length>0&&this.internalHistory.clearRedo(),this.changeID=N.getID();const se=[];B.length>0&&se.push({type:"local-change",source:di.Local,value:{message:N.getMessage()||"",operations:B,actor:y,clientSeq:N.getID().getClientSeq(),serverSeq:N.getID().getServerSeq()},rawChange:this.isEnableDevtools()?N.toStruct():void 0}),N.hasPresenceChange()&&se.push({type:"presence-changed",source:di.Local,value:{clientID:y,presence:this.getPresence(y)}}),this.publish(se),Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(u,f,y,E){if(typeof u=="string"){if(typeof f!="function")throw new Error("Second argument must be a callback function");if(u==="presence"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type!=="initialized"&&se.type!=="watched"&&se.type!=="unwatched"&&se.type!=="presence-changed"||Z(se)},y,E)}if(u==="my-presence"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type!=="initialized"&&se.type!=="presence-changed"||se.type==="presence-changed"&&se.value.clientID!==this.changeID.getActorID()||Z(se)},y,E)}if(u==="others"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type!=="watched"&&se.type!=="unwatched"&&se.type!=="presence-changed"||se.value.clientID!==this.changeID.getActorID()&&Z(se)},y,E)}if(u==="connection"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type==="connection-changed"&&Z(se)},y,E)}if(u==="sync"){const Z=f;return this.eventStream.subscribe(re=>{for(const se of re)se.type==="sync-status-changed"&&Z(se)},y,E)}if(u==="all"){const Z=f;return this.eventStream.subscribe(Z,y,E)}const N=u,B=f;return this.eventStream.subscribe(Z=>{for(const re of Z){if(re.type!=="local-change"&&re.type!=="remote-change")continue;const se=[];for(const xe of re.value.operations)this.isSameElementOrChildOf(xe.path,N)&&se.push(xe);se.length&&B({...re,value:{...re.value,operations:se}})}},y,E)}if(typeof u=="function"){const N=u,B=f,Z=y;return this.eventStream.subscribe(re=>{for(const se of re)se.type!=="snapshot"&&se.type!=="local-change"&&se.type!=="remote-change"||N(se)},B,Z)}throw new Error(`"${u}" is not a valid`)}publish(u){this.eventStreamObserver&&this.eventStreamObserver.next(u)}isSameElementOrChildOf(u,f){if(f===u)return!0;const y=u.split(".");return f.split(".").every((N,B)=>N===y[B])}applyChangePack(u){for(u.hasSnapshot()?this.applySnapshot(u.getCheckpoint().getServerSeq(),u.getSnapshot()):u.hasChanges()&&this.applyChanges(u.getChanges(),di.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>u.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(u.getCheckpoint()),this.garbageCollect(u.getMinSyncedTicket()),u.getIsRemoved()&&this.applyStatus("removed"),Lt.isEnabled(Jo.Trivial)&&Lt.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:Ei(this.presences)})}createChangePack(){const u=Array.from(this.localChanges),f=this.checkpoint.increaseClientSeq(u.length);return lv.create(this.key,f,!1,u)}setActor(u){for(const f of this.localChanges)f.setActor(u);this.changeID=this.changeID.setActor(u)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const u=c0.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return qd(u,this.clone.root.getObject())}garbageCollect(u){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(u),this.root.garbageCollect(u))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(u,f){const{root:y,presences:E}=_a.bytesToSnapshot(f);this.root=new F1(y),this.presences=E,this.changeID=this.changeID.syncLamport(u),this.clone=void 0,this.publish([{type:"snapshot",source:di.Remote,value:{snapshot:this.isEnableDevtools()?_a.bytesToHex(f):void 0,serverSeq:u.toString()}}])}applyChanges(u,f){Lt.isEnabled(Jo.Debug)&&Lt.debug(`trying to apply ${u.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Lt.isEnabled(Jo.Trivial)&&Lt.trivial(u.map(y=>`${y.getID().toTestString()} ${y.toTestString()}`).join(` +`));for(const y of u)this.applyChange(y,f);Lt.isEnabled(Jo.Debug)&&Lt.debug(`after appling ${u.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(u,f){this.ensureClone(),u.execute(this.clone.root,this.clone.presences,f);const y=[],E=u.getID().getActorID();if(u.hasPresenceChange()&&this.onlineClients.has(E)){const B=u.getPresenceChange();switch(B.type){case Xf.Put:y.push(this.presences.has(E)?{type:"presence-changed",source:f,value:{clientID:E,presence:B.presence}}:{type:"watched",source:di.Remote,value:{clientID:E,presence:B.presence}});break;case Xf.Clear:y.push({type:"unwatched",source:di.Remote,value:{clientID:E,presence:this.getPresence(E)}}),this.removeOnlineClient(E);break}}const{opInfos:N}=u.execute(this.root,this.presences,f);if(this.changeID=this.changeID.syncLamport(u.getID().getLamport()),N.length>0){const B=this.isEnableDevtools()?u.toStruct():void 0;y.push(f===di.Remote?{type:"remote-change",source:f,value:{actor:E,clientSeq:u.getID().getClientSeq(),serverSeq:u.getID().getServerSeq(),message:u.getMessage()||"",operations:N},rawChange:B}:{type:"local-change",source:f,value:{actor:E,clientSeq:u.getID().getClientSeq(),serverSeq:u.getID().getServerSeq(),message:u.getMessage()||"",operations:N},rawChange:B})}y.length>0&&this.publish(y)}applyWatchStream(u){if(u.body.case==="initialization"){const f=u.body.value.clientIds,y=new Set;for(const E of f)E!==this.changeID.getActorID()&&y.add(E);this.setOnlineClients(y),this.publish([{type:"initialized",source:di.Local,value:this.getPresences()}]);return}if(u.body.case==="event"){const{type:f,publisher:y}=u.body.value,E=[];if(f===g1.DOCUMENT_WATCHED)this.addOnlineClient(y),this.hasPresence(y)&&E.push({type:"watched",source:di.Remote,value:{clientID:y,presence:this.getPresence(y)}});else if(f===g1.DOCUMENT_UNWATCHED){const N=this.getPresence(y);this.removeOnlineClient(y),N&&E.push({type:"unwatched",source:di.Remote,value:{clientID:y,presence:N}})}E.length>0&&this.publish(E)}}applyStatus(u){this.status=u,u==="detached"&&this.setActor(av),this.publish([{source:u==="removed"?di.Remote:di.Local,type:"status-changed",value:u==="attached"?{status:u,actorID:this.changeID.getActorID()}:{status:u}}])}applyDocEvent(u){if(u.type==="status-changed"){this.applyStatus(u.value.status),u.value.status==="attached"&&this.setActor(u.value.actorID);return}if(u.type==="snapshot"){const{snapshot:f,serverSeq:y}=u.value;if(!f)return;this.applySnapshot(er.fromString(y),_a.hexToBytes(f));return}if(u.type==="local-change"||u.type==="remote-change"){if(!u.rawChange)return;const f=Qd.fromStruct(u.rawChange);this.applyChange(f,u.source)}if(u.type==="initialized"){const f=new Set;for(const{clientID:y,presence:E}of u.value)f.add(y),this.presences.set(y,E);this.setOnlineClients(f);return}if(u.type==="watched"){const{clientID:f,presence:y}=u.value;this.addOnlineClient(f),this.presences.set(f,y);return}if(u.type==="unwatched"){const{clientID:f}=u.value;this.removeOnlineClient(f),this.presences.delete(f)}if(u.type==="presence-changed"){const{clientID:f,presence:y}=u.value;this.presences.set(f,y)}}applyTransactionEvent(u){for(const f of u)this.applyDocEvent(f)}getValueByPath(u){if(!u.startsWith("$"))throw new jr(Nr.InvalidArgument,'path must start with "$"');const f=u.split(".");f.shift();let y=this.getRoot();for(const E of f)if(y=y[E],y===void 0)return;return y}setOnlineClients(u){this.onlineClients=u}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(u){this.onlineClients.add(u)}removeOnlineClient(u){this.onlineClients.delete(u)}hasPresence(u){return this.presences.has(u)}getMyPresence(){if(this.status!=="attached")return{};const u=this.presences.get(this.changeID.getActorID());return u?Ei(u):{}}getPresence(u){if(u===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(u))return;const f=this.presences.get(u);return f?Ei(f):void 0}getPresenceForTest(u){const f=this.presences.get(u);return f?Ei(f):void 0}getPresences(){const u=[];u.push({clientID:this.changeID.getActorID(),presence:Ei(this.getMyPresence())});for(const f of this.onlineClients)this.presences.has(f)&&u.push({clientID:f,presence:Ei(this.presences.get(f))});return u}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const u=this.getChangeID().getActorID();return this.getPresences().filter(f=>f.clientID!==u).sort((f,y)=>f.clientID>y.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const u=this.internalHistory.popUndo();if(u===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const f=c0.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const se of u){if(!(se instanceof Du)){new iv(f,Ei(this.clone.presences.get(this.changeID.getActorID()))).set(se.value,{addToHistory:!0});continue}const xe=f.issueTimeTicket();se.setExecutedAt(xe),f.push(se)}const y=f.getChange();y.execute(this.clone.root,this.clone.presences,di.UndoRedo);const{opInfos:E,reverseOps:N}=y.execute(this.root,this.presences,di.UndoRedo),B=f.getReversePresence();if(B&&N.push({type:"presence",value:B}),N.length>0&&this.internalHistory.pushRedo(N),!y.hasPresenceChange()&&E.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const Z=this.changeID.getActorID(),re=[];E.length>0&&re.push({type:"local-change",source:di.UndoRedo,value:{message:y.getMessage()||"",operations:E,actor:Z,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&re.push({type:"presence-changed",source:di.UndoRedo,value:{clientID:Z,presence:this.getPresence(Z)}}),this.publish(re)}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const u=this.internalHistory.popRedo();if(u===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const f=c0.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const se of u){if(!(se instanceof Du)){new iv(f,Ei(this.clone.presences.get(this.changeID.getActorID()))).set(se.value,{addToHistory:!0});continue}const xe=f.issueTimeTicket();se.setExecutedAt(xe),f.push(se)}const y=f.getChange();y.execute(this.clone.root,this.clone.presences,di.UndoRedo);const{opInfos:E,reverseOps:N}=y.execute(this.root,this.presences,di.UndoRedo),B=f.getReversePresence();if(B&&N.push({type:"presence",value:B}),N.length>0&&this.internalHistory.pushUndo(N),!y.hasPresenceChange()&&E.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const Z=this.changeID.getActorID(),re=[];E.length>0&&re.push({type:"local-change",source:di.UndoRedo,value:{message:y.getMessage()||"",operations:E,actor:Z,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&re.push({type:"presence-changed",source:di.UndoRedo,value:{clientID:Z,presence:this.getPresence(Z)}}),this.publish(re)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function P7(g,u){return f=>async y=>(g&&y.header.set("x-api-key",g),u&&y.header.set("authorization",u),await f(y))}const jw={name:"yorkie-js-sdk",version:"0.4.24",description:"Yorkie JS SDK",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts",files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:examples":"npm run build --workspace examples","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"npm run build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.2.0","@types/google-protobuf":"^3.15.5","@types/jsdom":"^21.1.3","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",jsdom:"^22.1.0",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^4.7.4","typescript-transform-paths":"^3.3.1",vite:"^4.4.9","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5","vitest-environment-custom-jsdom":"file:test/vitest/env"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.2.0","@connectrpc/connect-web":"^1.2.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"npm run lint"}},workspaces:["examples/*"]};function Hl(){return g=>async u=>(u.header.set("x-yorkie-user-agent",jw.name+"/"+jw.version),await g(u))}var d0=(g=>(g.Manual="manual",g.Realtime="realtime",g.RealtimePushOnly="realtime-pushonly",g.RealtimeSyncOff="realtime-syncoff",g))(d0||{}),GA=(g=>(g.Deactivated="deactivated",g.Activated="activated",g))(GA||{});const Hr={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class Hw{constructor(u,f){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),f=f||Hr,this.key=f.key?f.key:VA(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=f.apiKey||"",this.syncLoopDuration=f.syncLoopDuration||Hr.syncLoopDuration,this.reconnectStreamDelay=f.reconnectStreamDelay||Hr.reconnectStreamDelay,this.retrySyncLoopDelay=f.retrySyncLoopDelay||Hr.retrySyncLoopDelay,this.rpcClient=cP(ev,SP({baseUrl:u,interceptors:[P7(f.apiKey,f.token),Hl()]}))}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(u=>{this.id=u.clientId,this.status="activated",this.runSyncLoop(),Lt.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(u=>{throw Lt.error(`[AC] c:"${this.getKey()}" err :`,u),u})}deactivate(){if(this.status==="deactivated")return Promise.resolve();for(const[u]of this.attachmentMap)this.detachInternal(u);return this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status="deactivated",Lt.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(u=>{throw Lt.error(`[DC] c:"${this.getKey()}" err :`,u),u})}attach(u,f={}){if(!this.isActive())throw new jr(Nr.ClientNotActive,`${this.key} is not active`);if(u.getStatus()!==Gd.Detached)throw new jr(Nr.DocumentNotDetached,`${u.getKey()} is not detached`);u.setActor(this.id),u.update((E,N)=>N.set(f.initialPresence||{}));const y=f.syncMode??"realtime";return this.rpcClient.attachDocument({clientId:this.id,changePack:_a.toChangePack(u.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${u.getKey()}`}}).then(async E=>{const N=_a.fromChangePack(E.changePack);return u.applyChangePack(N),u.getStatus()===Gd.Removed||(u.applyStatus(Gd.Attached),this.attachmentMap.set(u.getKey(),new C7(this.reconnectStreamDelay,u,E.documentId,y)),y!=="manual"&&await this.runWatchLoop(u.getKey()),Lt.info(`[AD] c:"${this.getKey()}" attaches d:"${u.getKey()}"`)),u}).catch(E=>{throw Lt.error(`[AD] c:"${this.getKey()}" err :`,E),E})}detach(u,f={}){if(!this.isActive())throw new jr(Nr.ClientNotActive,`${this.key} is not active`);const y=this.attachmentMap.get(u.getKey());if(!y)throw new jr(Nr.DocumentNotAttached,`${u.getKey()} is not attached`);return u.update((E,N)=>N.clear()),this.rpcClient.detachDocument({clientId:this.id,documentId:y.docID,changePack:_a.toChangePack(u.createChangePack()),removeIfNotAttached:f.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${u.getKey()}`}}).then(E=>{const N=_a.fromChangePack(E.changePack);return u.applyChangePack(N),u.getStatus()!==Gd.Removed&&u.applyStatus(Gd.Detached),this.detachInternal(u.getKey()),Lt.info(`[DD] c:"${this.getKey()}" detaches d:"${u.getKey()}"`),u}).catch(E=>{throw Lt.error(`[DD] c:"${this.getKey()}" err :`,E),E})}async changeSyncMode(u,f){if(!this.isActive())throw new jr(Nr.ClientNotActive,`${this.key} is not active`);const y=this.attachmentMap.get(u.getKey());if(!y)throw new jr(Nr.DocumentNotAttached,`${u.getKey()} is not attached`);const E=y.syncMode;return E===f?u:(y.changeSyncMode(f),f==="manual"?(y.cancelWatchStream(),u):(f==="realtime"&&(y.remoteChangeEventReceived=!0),E==="manual"&&await this.runWatchLoop(u.getKey()),u))}sync(u){if(!this.isActive())throw new jr(Nr.ClientNotActive,`${this.key} is not active`);const f=[];if(u){const y=this.attachmentMap.get(u.getKey());if(!y)throw new jr(Nr.DocumentNotAttached,`${u.getKey()} is not attached`);f.push(this.syncInternal(y,"realtime"))}else this.attachmentMap.forEach(y=>{f.push(this.syncInternal(y,y.syncMode))});return Promise.all(f)}remove(u){if(!this.isActive())throw new jr(Nr.ClientNotActive,`${this.key} is not active`);const f=this.attachmentMap.get(u.getKey());if(!f)throw new jr(Nr.DocumentNotAttached,`${u.getKey()} is not attached`);u.setActor(this.id);const y=_a.toChangePack(u.createChangePack());return y.isRemoved=!0,this.rpcClient.removeDocument({clientId:this.id,documentId:f.docID,changePack:y},{headers:{"x-shard-key":`${this.apiKey}/${u.getKey()}`}}).then(E=>{const N=_a.fromChangePack(E.changePack);u.applyChangePack(N),this.detachInternal(u.getKey()),Lt.info(`[RD] c:"${this.getKey()}" removes d:"${u.getKey()}"`)}).catch(E=>{throw Lt.error(`[RD] c:"${this.getKey()}" err :`,E),E})}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}runSyncLoop(){const u=()=>{if(!this.isActive()){Lt.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const f=[];for(const[,y]of this.attachmentMap)y.needRealtimeSync()&&(y.remoteChangeEventReceived=!1,f.push(this.syncInternal(y,y.syncMode)));Promise.all(f).then(()=>setTimeout(u,this.syncLoopDuration)).catch(y=>{Lt.error(`[SL] c:"${this.getKey()}" sync failed:`,y),setTimeout(u,this.retrySyncLoopDelay)})};Lt.debug(`[SL] c:"${this.getKey()}" run sync loop`),u()}async runWatchLoop(u){const f=this.attachmentMap.get(u);if(!f)throw new jr(Nr.DocumentNotAttached,`${u} is not attached`);return f.runWatchLoop(y=>{if(!this.isActive())return Promise.reject(new jr(Nr.ClientNotActive,`${this.key} is not active`));const E=new AbortController,N=this.rpcClient.watchDocument({clientId:this.id,documentId:f.docID},{headers:{"x-shard-key":`${this.apiKey}/${u}`},signal:E.signal});return f.doc.publish([{type:Xs.ConnectionChanged,value:bv.Connected}]),Lt.info(`[WD] c:"${this.getKey()}" watches d:"${u}"`),new Promise((B,Z)=>{(async()=>{try{for await(const se of N)this.handleWatchDocumentsResponse(f,se),se.body.case==="initialization"&&B([N,E])}catch(se){f.doc.resetOnlineClients(),f.doc.publish([{type:Xs.Initialized,source:di.Local,value:f.doc.getPresences()}]),f.doc.publish([{type:Xs.ConnectionChanged,value:bv.Disconnected}]),Lt.debug(`[WD] c:"${this.getKey()}" unwatches`),se instanceof Kn&&se.code!=o.Canceled&&y(),Z(se)}})()})})}handleWatchDocumentsResponse(u,f){if(f.body.case==="event"&&f.body.value.type===g1.DOCUMENT_CHANGED){u.remoteChangeEventReceived=!0;return}u.doc.applyWatchStream(f)}detachInternal(u){const f=this.attachmentMap.get(u);f&&(f.cancelWatchStream(),Lt.debug(`[WD] c:"${this.getKey()}" unwatches`),this.attachmentMap.delete(u))}syncInternal(u,f){const{doc:y,docID:E}=u,N=y.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:E,changePack:_a.toChangePack(N),pushOnly:f==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${y.getKey()}`}}).then(B=>{const Z=_a.fromChangePack(B.changePack);if(Z.hasChanges()&&(u.syncMode==="realtime-pushonly"||u.syncMode==="realtime-syncoff"))return y;y.applyChangePack(Z),u.doc.publish([{type:Xs.SyncStatusChanged,value:yv.Synced}]),y.getStatus()===Gd.Removed&&this.detachInternal(y.getKey());const re=y.getKey(),se=Z.getChangeSize();return Lt.info(`[PP] c:"${this.getKey()}" sync d:"${re}", push:${N.getChangeSize()} pull:${se} cp:${Z.getCheckpoint().toTestString()}`),y}).catch(B=>{throw y.publish([{type:Xs.SyncStatusChanged,value:yv.SyncFailed}]),Lt.error(`[PP] c:"${this.getKey()}" err :`,B),B})}}const ZA=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ov={Client:Hw,Document:Uw,Primitive:wi,Text:U1,Counter:$u,Tree:z1,IntType:Hc.IntegerCnt,LongType:Hc.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:Hw,Document:Uw,Primitive:wi,Text:U1,Counter:$u,Tree:z1,IntType:Hc.IntegerCnt,LongType:Hc.LongCnt}),r.Change=Qd,r.Client=Hw,r.ClientStatus=GA,r.Counter=$u,r.Devtools=ZA,r.DocEventType=Xs,r.Document=Uw,r.DocumentStatus=Gd,r.DocumentSyncStatus=yv,r.EventSourceDevPanel=gv,r.EventSourceSDK=YA,r.OpSource=di,r.Primitive=wi,r.StreamConnectionStatus=bv,r.SyncMode=d0,r.Text=U1,r.TimeTicket=Ys,r.Tree=z1,r.converter=_a,r.default=Ov,r.setLogLevel=T1,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(wF,wF.exports);var gI=wF.exports;class yZe{constructor(t,n){Ks(this,"doc");Ks(this,"client");this.doc=t,this.client=n}}const Gj=wn.define({combine(e){return e[e.length-1]}});Rf.define();class vZe{constructor(t){Ks(this,"view");Ks(this,"conf");Ks(this,"_doc");this.view=t,this.conf=t.state.facet(Gj),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[Ls.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new gI.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[Ls.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(Ls.remote))continue;let i=0;n.changes.iterChanges((a,s,o,l,c)=>{const d=c.toJSON().join(` +`);this._doc.update(h=>{h.content.edit(a+i,s+i,d)}),i+=d.length-(s-a)})}}}const OZe=Ta.fromClass(vZe);class SZe{constructor(t,n){this.left=t,this.right=n}}const Sb=(e,t)=>new SZe(e,t),EZe=(e,t)=>e.forEach(n=>t(n.left,n.right)),ip=typeof document<"u"?document:{},wZe=e=>ip.createElement(e),TZe=()=>ip.createDocumentFragment(),xZe=e=>ip.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const kZe=(e,t)=>(EZe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),CZe=e=>{const t=TZe();for(let n=0;n(G0e(e,CZe(t)),e),O5=(e,t=[],n=[])=>_Ze(kZe(wZe(e),t),n),t3=xZe,G0e=(e,t)=>e.appendChild(t);ip.ELEMENT_NODE;ip.TEXT_NODE;ip.CDATA_SECTION_NODE;ip.COMMENT_NODE;ip.DOCUMENT_NODE;ip.DOCUMENT_TYPE_NODE;ip.DOCUMENT_FRAGMENT_NODE;var bI={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */fI.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",h=1,p=2,b=4,v=1,S=2,w=1,T=2,x=4,k=8,C=16,I=32,_=64,A=128,U=256,F=512,P=30,V="...",Q=800,X=16,Y=1,W=2,ee=3,J=1/0,K=9007199254740991,ne=17976931348623157e292,j=NaN,Ce=4294967295,ye=Ce-1,te=Ce>>>1,ve=[["ary",A],["bind",w],["bindKey",T],["curry",k],["curryRight",C],["flip",F],["partial",I],["partialRight",_],["rearg",U]],Se="[object Arguments]",he="[object Array]",Ne="[object AsyncFunction]",Pe="[object Boolean]",Ze="[object Date]",st="[object DOMException]",Qe="[object Error]",Je="[object Function]",Ye="[object GeneratorFunction]",nt="[object Map]",tt="[object Number]",ht="[object Null]",_t="[object Object]",ot="[object Promise]",ge="[object Proxy]",ue="[object RegExp]",me="[object Set]",We="[object String]",et="[object Symbol]",qe="[object Undefined]",pe="[object WeakMap]",Te="[object WeakSet]",Oe="[object ArrayBuffer]",De="[object DataView]",je="[object Float32Array]",Ot="[object Float64Array]",Bt="[object Int8Array]",Xt="[object Int16Array]",St="[object Int32Array]",Kt="[object Uint8Array]",pt="[object Uint8ClampedArray]",At="[object Uint16Array]",en="[object Uint32Array]",In=/\b__p \+= '';/g,Ln=/\b(__p \+=) '' \+/g,Qn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ur=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,$e=RegExp(ur.source),Ve=RegExp(Wr.source),ct=/<%-([\s\S]+?)%>/g,Dt=/<%([\s\S]+?)%>/g,Qt=/<%=([\s\S]+?)%>/g,Fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yn=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zt=/[\\^$.*+?()[\]{}|]/g,$n=RegExp(Zt.source),Ge=/^\s+/,Ke=/\s/,dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Et=/\{\n\/\* \[wrapped with (.+)\] \*/,Jn=/,? & /,bn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yn=/[()=,{}\[\]\/\s]/,mi=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,ke=/^[-+]0x[0-9a-f]+$/i,ln=/^0b[01]+$/i,qn=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,Ie=/^(?:0|[1-9]\d*)$/,Dn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,ci=/['\n\r\u2028\u2029\\]/g,ea="\\ud800-\\udfff",Nd="\\u0300-\\u036f",fp="\\ufe20-\\ufe2f",Ty="\\u20d0-\\u20ff",ji=Nd+fp+Ty,xy="\\u2700-\\u27bf",js="a-z\\xdf-\\xf6\\xf8-\\xff",Kg="\\xac\\xb1\\xd7\\xf7",gi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ol="\\u2000-\\u206f",Sl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",El="A-Z\\xc0-\\xd6\\xd8-\\xde",pu="\\ufe0e\\ufe0f",mu=Kg+gi+Ol+Sl,wl="['’]",Pm="["+ea+"]",gu="["+mu+"]",Hs="["+ji+"]",Tr="\\d+",Bf="["+xy+"]",bu="["+js+"]",Tl="[^"+ea+mu+Tr+xy+js+El+"]",xl="\\ud83c[\\udffb-\\udfff]",Ec="(?:"+Hs+"|"+xl+")",yu="[^"+ea+"]",kl="(?:\\ud83c[\\udde6-\\uddff]){2}",Cl="[\\ud800-\\udbff][\\udc00-\\udfff]",vu="["+El+"]",Ou="\\u200d",Su="(?:"+bu+"|"+Tl+")",Mm="(?:"+vu+"|"+Tl+")",Pd="(?:"+wl+"(?:d|ll|m|re|s|t|ve))?",Lm="(?:"+wl+"(?:D|LL|M|RE|S|T|VE))?",$m=Ec+"?",Eu="["+pu+"]?",wc="(?:"+Ou+"(?:"+[yu,kl,Cl].join("|")+")"+Eu+$m+")*",Tc="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wu=Eu+$m+wc,kc="(?:"+[Bf,kl,Cl].join("|")+")"+wu,Md="(?:"+[yu+Hs+"?",Hs,kl,Cl,Pm].join("|")+")",Ga=RegExp(wl,"g"),Cc=RegExp(Hs,"g"),Ii=RegExp(xl+"(?="+xl+")|"+Md+wu,"g"),Jg=RegExp([vu+"?"+bu+"+"+Pd+"(?="+[gu,vu,"$"].join("|")+")",Mm+"+"+Lm+"(?="+[gu,vu+Su,"$"].join("|")+")",vu+"?"+Su+"+"+Pd,vu+"+"+Lm,xc,Tc,Tr,kc].join("|"),"g"),e1=RegExp("["+Ou+ea+ji+pu+"]"),hp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,t1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],n1=-1,ai={};ai[je]=ai[Ot]=ai[Bt]=ai[Xt]=ai[St]=ai[Kt]=ai[pt]=ai[At]=ai[en]=!0,ai[Se]=ai[he]=ai[Oe]=ai[Pe]=ai[De]=ai[Ze]=ai[Qe]=ai[Je]=ai[nt]=ai[tt]=ai[_t]=ai[ue]=ai[me]=ai[We]=ai[pe]=!1;var Ir={};Ir[Se]=Ir[he]=Ir[Oe]=Ir[De]=Ir[Pe]=Ir[Ze]=Ir[je]=Ir[Ot]=Ir[Bt]=Ir[Xt]=Ir[St]=Ir[nt]=Ir[tt]=Ir[_t]=Ir[ue]=Ir[me]=Ir[We]=Ir[et]=Ir[Kt]=Ir[pt]=Ir[At]=Ir[en]=!0,Ir[Qe]=Ir[Je]=Ir[pe]=!1;var _c={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ac={"&":"&","<":"<",">":">",'"':""","'":"'"},Rc={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ic={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dc=parseFloat,r1=parseInt,qC=typeof Th=="object"&&Th&&Th.Object===Object&&Th,K6=typeof self=="object"&&self&&self.Object===Object&&self,rs=qC||K6||Function("return this")(),zE=t&&!t.nodeType&&t,pp=zE&&!0&&e&&!e.nodeType&&e,GC=pp&&pp.exports===zE,ky=GC&&qC.process,_l=function(){try{var He=pp&&pp.require&&pp.require("util").types;return He||ky&&ky.binding&&ky.binding("util")}catch{}}(),Cy=_l&&_l.isArrayBuffer,_y=_l&&_l.isDate,jE=_l&&_l.isMap,HE=_l&&_l.isRegExp,ZC=_l&&_l.isSet,XC=_l&&_l.isTypedArray;function jo(He,yt,lt){switch(lt.length){case 0:return He.call(yt);case 1:return He.call(yt,lt[0]);case 2:return He.call(yt,lt[0],lt[1]);case 3:return He.call(yt,lt[0],lt[1],lt[2])}return He.apply(yt,lt)}function KC(He,yt,lt,pn){for(var sr=-1,Kn=He==null?0:He.length;++sr-1}function VE(He,yt,lt){for(var pn=-1,sr=He==null?0:He.length;++pn-1;);return lt}function Yo(He,yt){for(var lt=He.length;lt--&&Ts(yt,He[lt],0)>-1;);return lt}function nP(He,yt){for(var lt=He.length,pn=0;lt--;)He[lt]===yt&&++pn;return pn}var rP=vo(_c),iP=vo(Ac);function aP(He){return"\\"+Ic[He]}function sP(He,yt){return He==null?n:He[yt]}function Fm(He){return e1.test(He)}function oP(He){return hp.test(He)}function lP(He){for(var yt,lt=[];!(yt=He.next()).done;)lt.push(yt.value);return lt}function Ry(He){var yt=-1,lt=Array(He.size);return He.forEach(function(pn,sr){lt[++yt]=[sr,pn]}),lt}function a1(He,yt){return function(lt){return He(yt(lt))}}function is(He,yt){for(var lt=-1,pn=He.length,sr=0,Kn=[];++lt-1}function zy(m,O){var R=this.__data__,H=p1(R,m);return H<0?(++this.size,R.push([m,O])):R[H][1]=O,this}Fc.prototype.clear=m_,Fc.prototype.delete=g_,Fc.prototype.get=b_,Fc.prototype.has=y_,Fc.prototype.set=zy;function Nl(m){var O=-1,R=m==null?0:m.length;for(this.clear();++O=O?m:O)),m}function Pl(m,O,R,H,ie,de){var _e,Me=O&h,Xe=O&p,xt=O&b;if(R&&(_e=ie?R(m,H,ie,de):R(m)),_e!==n)return _e;if(!Ti(m))return m;var kt=or(m);if(kt){if(_e=Xf(m),!Me)return wo(m,_e)}else{var It=Ei(m),an=It==Je||It==Ye;if(qd(m))return K_(m,Me);if(It==_t||It==Se||an&&!ie){if(_e=Xe||an?{}:rv(m),!Me)return Xe?FP(m,A_(_e,m)):$P(m,Hy(_e,m))}else{if(!Ir[It])return ie?m:{};_e=iv(m,It,Me)}}de||(de=new Zo);var Rn=de.get(m);if(Rn)return Rn;de.set(m,_e),M7(m)?m.forEach(function(nr){_e.add(Pl(nr,O,R,nr,m,de))}):Gd(m)&&m.forEach(function(nr,Nr){_e.set(Nr,Pl(nr,O,R,Nr,m,de))});var tr=xt?Xe?Ko:tv:Xe?dr:jn,xr=kt?n:tr(m);return Ho(xr||m,function(nr,Nr){xr&&(Nr=nr,nr=m[Nr]),h1(_e,Nr,Pl(nr,O,R,Nr,m,de))}),_e}function R_(m){var O=jn(m);return function(R){return hr(R,m,O)}}function hr(m,O,R){var H=R.length;if(m==null)return!H;for(m=bi(m);H--;){var ie=R[H],de=O[ie],_e=m[ie];if(_e===n&&!(ie in m)||!de(_e))return!1}return!0}function m1(m,O,R){if(typeof m!="function")throw new qo(s);return Hi(function(){m.apply(n,R)},O)}function Ym(m,O,R,H){var ie=-1,de=Ay,_e=!0,Me=m.length,Xe=[],xt=O.length;if(!Me)return Xe;R&&(O=Di(O,Ni(R))),H?(de=VE,_e=!1):O.length>=i&&(de=xs,_e=!1,O=new Wf(O));e:for(;++ieie?0:ie+R),H=H===n||H>ie?ie:pr(H),H<0&&(H+=ie),H=R>H?0:zw(H);R0&&R(Me)?O>1?Za(Me,O-1,R,H,ie):Uf(ie,Me):H||(ie[ie.length]=Me)}return ie}var Wy=rA(),iw=rA(!0);function Bc(m,O){return m&&Wy(m,O,jn)}function Qy(m,O){return m&&iw(m,O,jn)}function g1(m,O){return Vo(O,function(R){return xo(m[R])})}function Yf(m,O){O=Gf(O,m);for(var R=0,H=O.length;m!=null&&RO}function D_(m,O){return m!=null&&ei.call(m,O)}function N_(m,O){return m!=null&&O in bi(m)}function P_(m,O,R){return m>=ss(O,R)&&m=120&&kt.length>=120)?new Wf(_e&&kt):n}kt=m[0];var It=-1,an=Me[0];e:for(;++It-1;)Me!==m&&Hm.call(Me,Xe,1),Hm.call(m,Xe,1);return m}function Ud(m,O){for(var R=m?O.length:0,H=R-1;R--;){var ie=O[R];if(R==H||ie!==de){var de=ie;Au(ie)?Hm.call(m,ie,1):Zy(m,ie)}}return m}function fw(m,O){return m+By(XE()*(O-m+1))}function _P(m,O,R,H){for(var ie=-1,de=Ta(Fy((O-m)/(R||1)),0),_e=lt(de);de--;)_e[H?de:++ie]=m,m+=R;return _e}function hw(m,O){var R="";if(!m||O<1||O>K)return R;do O%2&&(R+=m),O=By(O/2),O&&(m+=m);while(O);return R}function vr(m,O){return wi(Gs(m,O,Vl),m+"")}function AP(m){return C_(Ov(m))}function RP(m,O){var R=Ov(m);return Cs(R,Qf(O,0,R.length))}function v1(m,O,R,H){if(!Ti(m))return m;O=Gf(O,m);for(var ie=-1,de=O.length,_e=de-1,Me=m;Me!=null&&++ieie?0:ie+O),R=R>ie?ie:R,R<0&&(R+=ie),ie=O>R?0:R-O>>>0,O>>>=0;for(var de=lt(ie);++H>>1,_e=m[de];_e!==null&&!jl(_e)&&(R?_e<=O:_e=i){var xt=O?null:$l(m);if(xt)return Dl(xt);_e=!1,ie=xs,Xe=new Wf}else Xe=O?[]:Me;e:for(;++H=H?m:Ll(m,O,R)}var X_=i_||function(m){return rs.clearTimeout(m)};function K_(m,O){if(O)return m.slice();var R=m.length,H=r_?r_(R):new m.constructor(R);return m.copy(H),H}function yw(m){var O=new m.constructor(m.byteLength);return new o1(O).set(new o1(m)),O}function PP(m,O){var R=O?yw(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.byteLength)}function MP(m){var O=new m.constructor(m.source,Ue.exec(m));return O.lastIndex=m.lastIndex,O}function LP(m){return Vn?bi(Vn.call(m)):{}}function J_(m,O){var R=O?yw(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.length)}function eA(m,O){if(m!==O){var R=m!==n,H=m===null,ie=m===m,de=jl(m),_e=O!==n,Me=O===null,Xe=O===O,xt=jl(O);if(!Me&&!xt&&!de&&m>O||de&&_e&&Xe&&!Me&&!xt||H&&_e&&Xe||!R&&Xe||!ie)return 1;if(!H&&!de&&!xt&&m=Me)return Xe;var xt=R[H];return Xe*(xt=="desc"?-1:1)}}return m.index-O.index}function vw(m,O,R,H){for(var ie=-1,de=m.length,_e=R.length,Me=-1,Xe=O.length,xt=Ta(de-_e,0),kt=lt(Xe+xt),It=!H;++Me1?R[ie-1]:n,_e=ie>2?R[2]:n;for(de=m.length>3&&typeof de=="function"?(ie--,de):n,_e&&qs(R[0],R[1],_e)&&(de=ie<3?n:de,ie=1),O=bi(O);++H-1?ie[de?O[_e]:_e]:n}}function sA(m){return zc(function(O){var R=O.length,H=R,ie=Go.prototype.thru;for(m&&O.reverse();H--;){var de=O[H];if(typeof de!="function")throw new qo(s);if(ie&&!_e&&jd(de)=="wrapper")var _e=new Go([],!0)}for(H=_e?H:R;++H1&&Hr.reverse(),kt&&XeMe))return!1;var xt=de.get(m),kt=de.get(O);if(xt&&kt)return xt==O&&kt==m;var It=-1,an=!0,Rn=R&S?new Wf:n;for(de.set(m,O),de.set(O,m);++It1?"& ":"")+O[H],O=O.join(R>2?", ":" "),m.replace(dt,`{ + */bI.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",h=1,p=2,b=4,v=1,S=2,w=1,T=2,x=4,k=8,C=16,I=32,_=64,A=128,U=256,F=512,M=30,V="...",Q=800,X=16,Y=1,W=2,ee=3,J=1/0,K=9007199254740991,ne=17976931348623157e292,j=NaN,Ce=4294967295,ye=Ce-1,te=Ce>>>1,ve=[["ary",A],["bind",w],["bindKey",T],["curry",k],["curryRight",C],["flip",F],["partial",I],["partialRight",_],["rearg",U]],Se="[object Arguments]",he="[object Array]",Pe="[object AsyncFunction]",Me="[object Boolean]",Ze="[object Date]",ot="[object DOMException]",Qe="[object Error]",Je="[object Function]",Ye="[object GeneratorFunction]",nt="[object Map]",tt="[object Number]",ht="[object Null]",_t="[object Object]",lt="[object Promise]",ge="[object Proxy]",ue="[object RegExp]",me="[object Set]",We="[object String]",et="[object Symbol]",qe="[object Undefined]",pe="[object WeakMap]",Te="[object WeakSet]",Oe="[object ArrayBuffer]",De="[object DataView]",je="[object Float32Array]",Ot="[object Float64Array]",jt="[object Int8Array]",Xt="[object Int16Array]",St="[object Int32Array]",Kt="[object Uint8Array]",pt="[object Uint8ClampedArray]",At="[object Uint16Array]",en="[object Uint32Array]",Dn=/\b__p \+= '';/g,$n=/\b(__p \+=) '' \+/g,Qn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ur=/&(?:amp|lt|gt|quot|#39);/g,Qr=/[&<>"']/g,$e=RegExp(ur.source),Ve=RegExp(Qr.source),ct=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,qt=/<%=([\s\S]+?)%>/g,Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yn=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zt=/[\\^$.*+?()[\]{}|]/g,Fn=RegExp(Zt.source),Ge=/^\s+/,Ke=/\s/,dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Et=/\{\n\/\* \[wrapped with (.+)\] \*/,Jn=/,? & /,bn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yn=/[()=,{}\[\]\/\s]/,mi=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,ke=/^[-+]0x[0-9a-f]+$/i,ln=/^0b[01]+$/i,qn=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,Ie=/^(?:0|[1-9]\d*)$/,Nn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,ci=/['\n\r\u2028\u2029\\]/g,ta="\\ud800-\\udfff",Nd="\\u0300-\\u036f",hp="\\ufe20-\\ufe2f",xy="\\u20d0-\\u20ff",Hi=Nd+hp+xy,ky="\\u2700-\\u27bf",js="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",gi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ol="\\u2000-\\u206f",Sl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",El="A-Z\\xc0-\\xd6\\xd8-\\xde",pu="\\ufe0e\\ufe0f",mu=Jg+gi+Ol+Sl,wl="['’]",Pm="["+ta+"]",gu="["+mu+"]",Hs="["+Hi+"]",xr="\\d+",Bf="["+ky+"]",bu="["+js+"]",Tl="[^"+ta+mu+xr+ky+js+El+"]",xl="\\ud83c[\\udffb-\\udfff]",Ec="(?:"+Hs+"|"+xl+")",yu="[^"+ta+"]",kl="(?:\\ud83c[\\udde6-\\uddff]){2}",Cl="[\\ud800-\\udbff][\\udc00-\\udfff]",vu="["+El+"]",Ou="\\u200d",Su="(?:"+bu+"|"+Tl+")",Mm="(?:"+vu+"|"+Tl+")",Pd="(?:"+wl+"(?:d|ll|m|re|s|t|ve))?",Lm="(?:"+wl+"(?:D|LL|M|RE|S|T|VE))?",$m=Ec+"?",Eu="["+pu+"]?",wc="(?:"+Ou+"(?:"+[yu,kl,Cl].join("|")+")"+Eu+$m+")*",Tc="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wu=Eu+$m+wc,kc="(?:"+[Bf,kl,Cl].join("|")+")"+wu,Md="(?:"+[yu+Hs+"?",Hs,kl,Cl,Pm].join("|")+")",Za=RegExp(wl,"g"),Cc=RegExp(Hs,"g"),Ii=RegExp(xl+"(?="+xl+")|"+Md+wu,"g"),e1=RegExp([vu+"?"+bu+"+"+Pd+"(?="+[gu,vu,"$"].join("|")+")",Mm+"+"+Lm+"(?="+[gu,vu+Su,"$"].join("|")+")",vu+"?"+Su+"+"+Pd,vu+"+"+Lm,xc,Tc,xr,kc].join("|"),"g"),t1=RegExp("["+Ou+ta+Hi+pu+"]"),pp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,n1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],r1=-1,ai={};ai[je]=ai[Ot]=ai[jt]=ai[Xt]=ai[St]=ai[Kt]=ai[pt]=ai[At]=ai[en]=!0,ai[Se]=ai[he]=ai[Oe]=ai[Me]=ai[De]=ai[Ze]=ai[Qe]=ai[Je]=ai[nt]=ai[tt]=ai[_t]=ai[ue]=ai[me]=ai[We]=ai[pe]=!1;var Dr={};Dr[Se]=Dr[he]=Dr[Oe]=Dr[De]=Dr[Me]=Dr[Ze]=Dr[je]=Dr[Ot]=Dr[jt]=Dr[Xt]=Dr[St]=Dr[nt]=Dr[tt]=Dr[_t]=Dr[ue]=Dr[me]=Dr[We]=Dr[et]=Dr[Kt]=Dr[pt]=Dr[At]=Dr[en]=!0,Dr[Qe]=Dr[Je]=Dr[pe]=!1;var _c={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ac={"&":"&","<":"<",">":">",'"':""","'":"'"},Rc={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ic={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dc=parseFloat,i1=parseInt,e_=typeof Th=="object"&&Th&&Th.Object===Object&&Th,J6=typeof self=="object"&&self&&self.Object===Object&&self,is=e_||J6||Function("return this")(),jE=t&&!t.nodeType&&t,mp=jE&&!0&&e&&!e.nodeType&&e,t_=mp&&mp.exports===jE,Cy=t_&&e_.process,_l=function(){try{var He=mp&&mp.require&&mp.require("util").types;return He||Cy&&Cy.binding&&Cy.binding("util")}catch{}}(),_y=_l&&_l.isArrayBuffer,Ay=_l&&_l.isDate,HE=_l&&_l.isMap,VE=_l&&_l.isRegExp,n_=_l&&_l.isSet,r_=_l&&_l.isTypedArray;function jo(He,vt,ut){switch(ut.length){case 0:return He.call(vt);case 1:return He.call(vt,ut[0]);case 2:return He.call(vt,ut[0],ut[1]);case 3:return He.call(vt,ut[0],ut[1],ut[2])}return He.apply(vt,ut)}function i_(He,vt,ut,pn){for(var sr=-1,Kn=He==null?0:He.length;++sr-1}function WE(He,vt,ut){for(var pn=-1,sr=He==null?0:He.length;++pn-1;);return ut}function Yo(He,vt){for(var ut=He.length;ut--&&ws(vt,He[ut],0)>-1;);return ut}function rP(He,vt){for(var ut=He.length,pn=0;ut--;)He[ut]===vt&&++pn;return pn}var iP=vo(_c),aP=vo(Ac);function sP(He){return"\\"+Ic[He]}function oP(He,vt){return He==null?n:He[vt]}function Fm(He){return t1.test(He)}function lP(He){return pp.test(He)}function uP(He){for(var vt,ut=[];!(vt=He.next()).done;)ut.push(vt.value);return ut}function Iy(He){var vt=-1,ut=Array(He.size);return He.forEach(function(pn,sr){ut[++vt]=[sr,pn]}),ut}function s1(He,vt){return function(ut){return He(vt(ut))}}function as(He,vt){for(var ut=-1,pn=He.length,sr=0,Kn=[];++ut-1}function jy(m,O){var R=this.__data__,H=m1(R,m);return H<0?(++this.size,R.push([m,O])):R[H][1]=O,this}Fc.prototype.clear=S_,Fc.prototype.delete=E_,Fc.prototype.get=w_,Fc.prototype.has=T_,Fc.prototype.set=jy;function Nl(m){var O=-1,R=m==null?0:m.length;for(this.clear();++O=O?m:O)),m}function Pl(m,O,R,H,ie,de){var _e,Le=O&h,Xe=O&p,xt=O&b;if(R&&(_e=ie?R(m,H,ie,de):R(m)),_e!==n)return _e;if(!Ti(m))return m;var kt=or(m);if(kt){if(_e=Xf(m),!Le)return wo(m,_e)}else{var Dt=Ei(m),an=Dt==Je||Dt==Ye;if(qd(m))return iA(m,Le);if(Dt==_t||Dt==Se||an&&!ie){if(_e=Xe||an?{}:iv(m),!Le)return Xe?BP(m,M_(_e,m)):FP(m,Vy(_e,m))}else{if(!Dr[Dt])return ie?m:{};_e=av(m,Dt,Le)}}de||(de=new Zo);var Rn=de.get(m);if(Rn)return Rn;de.set(m,_e),L7(m)?m.forEach(function(nr){_e.add(Pl(nr,O,R,nr,m,de))}):Gd(m)&&m.forEach(function(nr,Pr){_e.set(Pr,Pl(nr,O,R,Pr,m,de))});var tr=xt?Xe?Ko:nv:Xe?dr:jn,kr=kt?n:tr(m);return Ho(kr||m,function(nr,Pr){kr&&(Pr=nr,nr=m[Pr]),p1(_e,Pr,Pl(nr,O,R,Pr,m,de))}),_e}function L_(m){var O=jn(m);return function(R){return pr(R,m,O)}}function pr(m,O,R){var H=R.length;if(m==null)return!H;for(m=bi(m);H--;){var ie=R[H],de=O[ie],_e=m[ie];if(_e===n&&!(ie in m)||!de(_e))return!1}return!0}function g1(m,O,R){if(typeof m!="function")throw new qo(s);return Vi(function(){m.apply(n,R)},O)}function Ym(m,O,R,H){var ie=-1,de=Ry,_e=!0,Le=m.length,Xe=[],xt=O.length;if(!Le)return Xe;R&&(O=Di(O,Ni(R))),H?(de=WE,_e=!1):O.length>=i&&(de=Ts,_e=!1,O=new Wf(O));e:for(;++ieie?0:ie+R),H=H===n||H>ie?ie:mr(H),H<0&&(H+=ie),H=R>H?0:jw(H);R0&&R(Le)?O>1?Xa(Le,O-1,R,H,ie):Uf(ie,Le):H||(ie[ie.length]=Le)}return ie}var Qy=uA(),aw=uA(!0);function Bc(m,O){return m&&Qy(m,O,jn)}function Yy(m,O){return m&&aw(m,O,jn)}function b1(m,O){return Vo(O,function(R){return xo(m[R])})}function Yf(m,O){O=Gf(O,m);for(var R=0,H=O.length;m!=null&&RO}function F_(m,O){return m!=null&&ei.call(m,O)}function B_(m,O){return m!=null&&O in bi(m)}function U_(m,O,R){return m>=os(O,R)&&m=120&&kt.length>=120)?new Wf(_e&&kt):n}kt=m[0];var Dt=-1,an=Le[0];e:for(;++Dt-1;)Le!==m&&Hm.call(Le,Xe,1),Hm.call(m,Xe,1);return m}function Ud(m,O){for(var R=m?O.length:0,H=R-1;R--;){var ie=O[R];if(R==H||ie!==de){var de=ie;Au(ie)?Hm.call(m,ie,1):Xy(m,ie)}}return m}function hw(m,O){return m+Uy(KE()*(O-m+1))}function AP(m,O,R,H){for(var ie=-1,de=ka(By((O-m)/(R||1)),0),_e=ut(de);de--;)_e[H?de:++ie]=m,m+=R;return _e}function pw(m,O){var R="";if(!m||O<1||O>K)return R;do O%2&&(R+=m),O=Uy(O/2),O&&(m+=m);while(O);return R}function Or(m,O){return wi(Gs(m,O,Vl),m+"")}function RP(m){return N_(Sv(m))}function IP(m,O){var R=Sv(m);return ks(R,Qf(O,0,R.length))}function O1(m,O,R,H){if(!Ti(m))return m;O=Gf(O,m);for(var ie=-1,de=O.length,_e=de-1,Le=m;Le!=null&&++ieie?0:ie+O),R=R>ie?ie:R,R<0&&(R+=ie),ie=O>R?0:R-O>>>0,O>>>=0;for(var de=ut(ie);++H>>1,_e=m[de];_e!==null&&!jl(_e)&&(R?_e<=O:_e=i){var xt=O?null:$l(m);if(xt)return Dl(xt);_e=!1,ie=Ts,Xe=new Wf}else Xe=O?[]:Le;e:for(;++H=H?m:Ll(m,O,R)}var rA=c_||function(m){return is.clearTimeout(m)};function iA(m,O){if(O)return m.slice();var R=m.length,H=u_?u_(R):new m.constructor(R);return m.copy(H),H}function vw(m){var O=new m.constructor(m.byteLength);return new l1(O).set(new l1(m)),O}function MP(m,O){var R=O?vw(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.byteLength)}function LP(m){var O=new m.constructor(m.source,Ue.exec(m));return O.lastIndex=m.lastIndex,O}function $P(m){return Vn?bi(Vn.call(m)):{}}function aA(m,O){var R=O?vw(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.length)}function sA(m,O){if(m!==O){var R=m!==n,H=m===null,ie=m===m,de=jl(m),_e=O!==n,Le=O===null,Xe=O===O,xt=jl(O);if(!Le&&!xt&&!de&&m>O||de&&_e&&Xe&&!Le&&!xt||H&&_e&&Xe||!R&&Xe||!ie)return 1;if(!H&&!de&&!xt&&m=Le)return Xe;var xt=R[H];return Xe*(xt=="desc"?-1:1)}}return m.index-O.index}function Ow(m,O,R,H){for(var ie=-1,de=m.length,_e=R.length,Le=-1,Xe=O.length,xt=ka(de-_e,0),kt=ut(Xe+xt),Dt=!H;++Le1?R[ie-1]:n,_e=ie>2?R[2]:n;for(de=m.length>3&&typeof de=="function"?(ie--,de):n,_e&&qs(R[0],R[1],_e)&&(de=ie<3?n:de,ie=1),O=bi(O);++H-1?ie[de?O[_e]:_e]:n}}function fA(m){return zc(function(O){var R=O.length,H=R,ie=Go.prototype.thru;for(m&&O.reverse();H--;){var de=O[H];if(typeof de!="function")throw new qo(s);if(ie&&!_e&&jd(de)=="wrapper")var _e=new Go([],!0)}for(H=_e?H:R;++H1&&Vr.reverse(),kt&&XeLe))return!1;var xt=de.get(m),kt=de.get(O);if(xt&&kt)return xt==O&&kt==m;var Dt=-1,an=!0,Rn=R&S?new Wf:n;for(de.set(m,O),de.set(O,m);++Dt1?"& ":"")+O[H],O=O.join(R>2?", ":" "),m.replace(dt,`{ /* [wrapped with `+O+`] */ -`)}function Ys(m){return or(m)||$u(m)||!!(GE&&m&&m[GE])}function Au(m,O){var R=typeof m;return O=O??K,!!O&&(R=="number"||R!="symbol"&&Ie.test(m))&&m>-1&&m%1==0&&m0){if(++O>=Q)return arguments[0]}else O=0;return m.apply(n,arguments)}}function Cs(m,O){var R=-1,H=m.length,ie=H-1;for(O=O===n?H:O;++R1?m[O-1]:n;return R=typeof R=="function"?(m.pop(),R):n,vA(m,R)});function SA(m){var O=le(m);return O.__chain__=!0,O}function s7(m,O){return O(m),m}function cv(m,O){return O(m)}var o7=zc(function(m){var O=m.length,R=O?m[0]:0,H=this.__wrapped__,ie=function(de){return kn(de,m)};return O>1||this.__actions__.length||!(H instanceof _r)||!Au(R)?this.thru(ie):(H=H.slice(R,+R+(O?1:0)),H.__actions__.push({func:cv,args:[ie],thisArg:n}),new Go(H,this.__chain__).thru(function(de){return O&&!de.length&&de.push(n),de}))});function EA(){return SA(this)}function l7(){return new Go(this.value(),this.__chain__)}function wA(){this.__values__===n&&(this.__values__=L7(this.value()));var m=this.__index__>=this.__values__.length,O=m?n:this.__values__[this.__index__++];return{done:m,value:O}}function u7(){return this}function c7(m){for(var O,R=this;R instanceof vp;){var H=eh(R);H.__index__=0,H.__values__=n,O?ie.__wrapped__=H:O=H;var ie=H;R=R.__wrapped__}return ie.__wrapped__=m,O}function d7(){var m=this.__wrapped__;if(m instanceof _r){var O=m;return this.__actions__.length&&(O=new _r(this)),O=O.reverse(),O.__actions__.push({func:cv,args:[Qd],thisArg:n}),new Go(O,this.__chain__)}return this.thru(Qd)}function TA(){return G_(this.__wrapped__,this.__actions__)}var Rw=Ky(function(m,O,R){ei.call(m,R)?++m[R]:Qs(m,R,1)});function f7(m,O,R){var H=or(m)?i1:Vy;return R&&qs(m,O,R)&&(O=n),H(m,zn(O,3))}function xA(m,O){var R=or(m)?Vo:rw;return R(m,zn(O,3))}var Nn=aA(ha),Iw=aA(Tw);function h7(m,O){return Za(rh(m,O),1)}function p7(m,O){return Za(rh(m,O),J)}function kA(m,O,R){return R=R===n?1:pr(R),Za(rh(m,O),R)}function P1(m,O){var R=or(m)?Ho:Bd;return R(m,zn(O,3))}function dv(m,O){var R=or(m)?J6:nw;return R(m,zn(O,3))}var fv=Ky(function(m,O,R){ei.call(m,R)?m[R].push(O):Qs(m,R,[O])});function CA(m,O,R,H){m=Zs(m)?m:Ov(m),R=R&&!H?pr(R):0;var ie=m.length;return R<0&&(R=Ta(ie+R,0)),Uw(m)?R<=ie&&m.indexOf(O,R)>-1:!!ie&&Ts(m,O,R)>-1}var m7=vr(function(m,O,R){var H=-1,ie=typeof O=="function",de=Zs(m)?lt(m.length):[];return Bd(m,function(_e){de[++H]=ie?jo(O,_e,R):Gm(_e,O,R)}),de}),l0=Ky(function(m,O,R){Qs(m,R,O)});function rh(m,O){var R=or(m)?Di:Xm;return R(m,zn(O,3))}function g7(m,O,R,H){return m==null?[]:(or(O)||(O=O==null?[]:[O]),R=H?n:R,or(R)||(R=R==null?[]:[R]),H_(m,O,R))}var _A=Ky(function(m,O,R){m[R?0:1].push(O)},function(){return[[],[]]});function b7(m,O,R){var H=or(m)?WE:Ws,ie=arguments.length<3;return H(m,zn(O,4),R,ie,Bd)}function y7(m,O,R){var H=or(m)?eP:Ws,ie=arguments.length<3;return H(m,zn(O,4),R,ie,nw)}function AA(m,O){var R=or(m)?Vo:rw;return R(m,u0(zn(O,3)))}function v7(m){var O=or(m)?C_:AP;return O(m)}function RA(m,O,R){(R?qs(m,O,R):O===n)?O=1:O=pr(O);var H=or(m)?EP:RP;return H(m,O)}function O7(m){var O=or(m)?wP:DP;return O(m)}function S7(m){if(m==null)return 0;if(Zs(m))return Uw(m)?as(m):m.length;var O=Ei(m);return O==nt||O==me?m.size:uw(m).length}function IA(m,O,R){var H=or(m)?Al:W_;return R&&qs(m,O,R)&&(O=n),H(m,zn(O,3))}var DA=vr(function(m,O){if(m==null)return[];var R=O.length;return R>1&&qs(m,O[0],O[1])?O=[]:R>2&&qs(O[0],O[1],O[2])&&(O=[O[0]]),H_(m,Za(O,1),[])}),hv=fP||function(){return rs.Date.now()};function E7(m,O){if(typeof O!="function")throw new qo(s);return m=pr(m),function(){if(--m<1)return O.apply(this,arguments)}}function NA(m,O,R){return O=R?n:O,O=m&&O==null?m.length:O,Fl(m,A,n,n,n,n,O)}function Dw(m,O){var R;if(typeof O!="function")throw new qo(s);return m=pr(m),function(){return--m>0&&(R=O.apply(this,arguments)),m<=1&&(O=n),R}}var M1=vr(function(m,O,R){var H=w;if(R.length){var ie=is(R,Op(M1));H|=I}return Fl(m,H,O,R,ie)}),PA=vr(function(m,O,R){var H=w|T;if(R.length){var ie=is(R,Op(PA));H|=I}return Fl(O,H,m,R,ie)});function Nw(m,O,R){O=R?n:O;var H=Fl(m,k,n,n,n,n,n,O);return H.placeholder=Nw.placeholder,H}function Pw(m,O,R){O=R?n:O;var H=Fl(m,C,n,n,n,n,n,O);return H.placeholder=Pw.placeholder,H}function MA(m,O,R){var H,ie,de,_e,Me,Xe,xt=0,kt=!1,It=!1,an=!0;if(typeof m!="function")throw new qo(s);O=Hl(O)||0,Ti(R)&&(kt=!!R.leading,It="maxWait"in R,de=It?Ta(Hl(R.maxWait)||0,O):de,an="trailing"in R?!!R.trailing:an);function Rn(Ba){var Zd=H,Cp=ie;return H=ie=n,xt=Ba,_e=m.apply(Cp,Zd),_e}function tr(Ba){return xt=Ba,Me=Hi(Nr,O),kt?Rn(Ba):_e}function xr(Ba){var Zd=Ba-Xe,Cp=Ba-xt,_Z=O-Zd;return It?ss(_Z,de-Cp):_Z}function nr(Ba){var Zd=Ba-Xe,Cp=Ba-xt;return Xe===n||Zd>=O||Zd<0||It&&Cp>=de}function Nr(){var Ba=hv();if(nr(Ba))return Hr(Ba);Me=Hi(Nr,xr(Ba))}function Hr(Ba){return Me=n,an&&H?Rn(Ba):(H=ie=n,_e)}function Fu(){Me!==n&&X_(Me),xt=0,H=Xe=ie=Me=n}function nl(){return Me===n?_e:Hr(hv())}function Bu(){var Ba=hv(),Zd=nr(Ba);if(H=arguments,ie=this,Xe=Ba,Zd){if(Me===n)return tr(Xe);if(It)return X_(Me),Me=Hi(Nr,O),Rn(Xe)}return Me===n&&(Me=Hi(Nr,O)),_e}return Bu.cancel=Fu,Bu.flush=nl,Bu}var w7=vr(function(m,O){return m1(m,1,O)}),T7=vr(function(m,O,R){return m1(m,Hl(O)||0,R)});function x7(m){return Fl(m,F)}function L1(m,O){if(typeof m!="function"||O!=null&&typeof O!="function")throw new qo(s);var R=function(){var H=arguments,ie=O?O.apply(this,H):H[0],de=R.cache;if(de.has(ie))return de.get(ie);var _e=m.apply(this,H);return R.cache=de.set(ie,_e)||de,_e};return R.cache=new(L1.Cache||Nl),R}L1.Cache=Nl;function u0(m){if(typeof m!="function")throw new qo(s);return function(){var O=arguments;switch(O.length){case 0:return!m.call(this);case 1:return!m.call(this,O[0]);case 2:return!m.call(this,O[0],O[1]);case 3:return!m.call(this,O[0],O[1],O[2])}return!m.apply(this,O)}}function LA(m){return Dw(2,m)}var Mw=NP(function(m,O){O=O.length==1&&or(O[0])?Di(O[0],Ni(zn())):Di(Za(O,1),Ni(zn()));var R=O.length;return vr(function(H){for(var ie=-1,de=ss(H.length,R);++ie=O}),$u=sw(function(){return arguments}())?sw:function(m){return ia(m)&&ei.call(m,"callee")&&!qE.call(m,"callee")},or=lt.isArray,I7=Cy?Ni(Cy):L_;function Zs(m){return m!=null&&xp(m.length)&&!xo(m)}function ra(m){return ia(m)&&Zs(m)}function U1(m){return m===!0||m===!1||ia(m)&&fa(m)==Pe}var qd=pP||W7,ih=_y?Ni(_y):ow;function Tp(m){return ia(m)&&m.nodeType===1&&!yv(m)}function pv(m){if(m==null)return!0;if(Zs(m)&&(or(m)||typeof m=="string"||typeof m.splice=="function"||qd(m)||z1(m)||$u(m)))return!m.length;var O=Ei(m);if(O==nt||O==me)return!m.size;if(w1(m))return!uw(m).length;for(var R in m)if(ei.call(m,R))return!1;return!0}function UA(m,O){return Zm(m,O)}function D7(m,O,R){R=typeof R=="function"?R:n;var H=R?R(m,O):n;return H===n?Zm(m,O,n,R):!!H}function mv(m){if(!ia(m))return!1;var O=fa(m);return O==Qe||O==st||typeof m.message=="string"&&typeof m.name=="string"&&!yv(m)}function zA(m){return typeof m=="number"&&$c(m)}function xo(m){if(!Ti(m))return!1;var O=fa(m);return O==Je||O==Ye||O==Ne||O==ge}function Fw(m){return typeof m=="number"&&m==pr(m)}function xp(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=K}function Ti(m){var O=typeof m;return m!=null&&(O=="object"||O=="function")}function ia(m){return m!=null&&typeof m=="object"}var Gd=jE?Ni(jE):F_;function Xs(m,O){return m===O||qy(m,O,nv(O))}function gv(m,O,R){return R=typeof R=="function"?R:n,qy(m,O,nv(O),R)}function bv(m){return P7(m)&&m!=+m}function Bw(m){if(wp(m))throw new sr(a);return lw(m)}function N7(m){return m===null}function hZ(m){return m==null}function P7(m){return typeof m=="number"||ia(m)&&fa(m)==tt}function yv(m){if(!ia(m)||fa(m)!=_t)return!1;var O=$y(m);if(O===null)return!0;var R=ei.call(O,"constructor")&&O.constructor;return typeof R=="function"&&R instanceof R&&Py.call(R)==uP}var jA=HE?Ni(HE):B_;function pZ(m){return Fw(m)&&m>=-K&&m<=K}var M7=ZC?Ni(ZC):TP;function Uw(m){return typeof m=="string"||!or(m)&&ia(m)&&fa(m)==We}function jl(m){return typeof m=="symbol"||ia(m)&&fa(m)==et}var z1=XC?Ni(XC):xP;function mZ(m){return m===n}function gZ(m){return ia(m)&&Ei(m)==pe}function bZ(m){return ia(m)&&fa(m)==Te}var yZ=S1(b1),vZ=S1(function(m,O){return m<=O});function L7(m){if(!m)return[];if(Zs(m))return Uw(m)?ta(m):wo(m);if(l1&&m[l1])return lP(m[l1]());var O=Ei(m),R=O==nt?Ry:O==me?Dl:Ov;return R(m)}function ah(m){if(!m)return m===0?m:0;if(m=Hl(m),m===J||m===-J){var O=m<0?-1:1;return O*ne}return m===m?m:0}function pr(m){var O=ah(m),R=O%1;return O===O?R?O-R:O:0}function zw(m){return m?Qf(pr(m),0,Ce):0}function Hl(m){if(typeof m=="number")return m;if(jl(m))return j;if(Ti(m)){var O=typeof m.valueOf=="function"?m.valueOf():m;m=Ti(O)?O+"":O}if(typeof m!="string")return m===0?m:+m;m=Qo(m);var R=ln.test(m);return R||Jr.test(m)?r1(m.slice(2),R?2:8):ke.test(m)?j:+m}function d0(m){return Uc(m,dr(m))}function HA(m){return m?Qf(pr(m),-K,K):m===0?m:0}function jr(m){return m==null?"":Xo(m)}var jw=Jm(function(m,O){if(w1(O)||Zs(O)){Uc(O,jn(O),m);return}for(var R in O)ei.call(O,R)&&h1(m,R,O[R])}),VA=Jm(function(m,O){Uc(O,dr(O),m)}),vv=Jm(function(m,O,R,H){Uc(O,dr(O),m,H)}),g=Jm(function(m,O,R,H){Uc(O,jn(O),m,H)}),u=zc(kn);function f(m,O){var R=ku(m);return O==null?R:Hy(R,O)}var y=vr(function(m,O){m=bi(m);var R=-1,H=O.length,ie=H>2?O[2]:n;for(ie&&qs(O[0],O[1],ie)&&(H=1);++R1),de}),Uc(m,Ko(m),R),H&&(R=Pl(R,h|p|b,lA));for(var ie=O.length;ie--;)Zy(R,O[ie]);return R});function $7(m,O){return OZ(m,u0(zn(O)))}var F7=zc(function(m,O){return m==null?{}:CP(m,O)});function OZ(m,O){if(m==null)return{};var R=Di(Ko(m),function(H){return[H]});return O=zn(O),yr(m,R,function(H,ie){return O(H,ie[0])})}function xEe(m,O,R){O=Gf(O,m);var H=-1,ie=O.length;for(ie||(ie=1,m=n);++HO){var H=m;m=O,O=H}if(R||m%1||O%1){var ie=XE();return ss(m+ie*(O-m+Dc("1e-"+((ie+"").length-1))),O)}return fw(m,O)}var LEe=e0(function(m,O,R){return O=O.toLowerCase(),m+(R?wZ(O):O)});function wZ(m){return B7(jr(m).toLowerCase())}function TZ(m){return m=jr(m),m&&m.replace(Dn,rP).replace(Cc,"")}function $Ee(m,O,R){m=jr(m),O=Xo(O);var H=m.length;R=R===n?H:Qf(pr(R),0,H);var ie=R;return R-=O.length,R>=0&&m.slice(R,ie)==O}function FEe(m){return m=jr(m),m&&Ve.test(m)?m.replace(Wr,iP):m}function BEe(m){return m=jr(m),m&&$n.test(m)?m.replace(Zt,"\\$&"):m}var UEe=e0(function(m,O,R){return m+(R?"-":"")+O.toLowerCase()}),zEe=e0(function(m,O,R){return m+(R?" ":"")+O.toLowerCase()}),jEe=iA("toLowerCase");function HEe(m,O,R){m=jr(m),O=pr(O);var H=O?as(m):0;if(!O||H>=O)return m;var ie=(O-H)/2;return er(By(ie),R)+m+er(Fy(ie),R)}function VEe(m,O,R){m=jr(m),O=pr(O);var H=O?as(m):0;return O&&H>>0,R?(m=jr(m),m&&(typeof O=="string"||O!=null&&!jA(O))&&(O=Xo(O),!O&&Fm(m))?Zf(ta(m),0,R):m.split(O,R)):[]}var XEe=e0(function(m,O,R){return m+(R?" ":"")+B7(O)});function KEe(m,O,R){return m=jr(m),R=R==null?0:Qf(pr(R),0,m.length),O=Xo(O),m.slice(R,R+O.length)==O}function JEe(m,O,R){var H=le.templateSettings;R&&qs(m,O,R)&&(O=n),m=jr(m),O=vv({},O,H,ev);var ie=vv({},O.imports,H.imports,ev),de=jn(ie),_e=Eo(ie,de),Me,Xe,xt=0,kt=O.interpolate||Gn,It="__p += '",an=QE((O.escape||Gn).source+"|"+kt.source+"|"+(kt===Qt?it:Gn).source+"|"+(O.evaluate||Gn).source+"|$","g"),Rn="//# sourceURL="+(ei.call(O,"sourceURL")?(O.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++n1+"]")+` -`;m.replace(an,function(nr,Nr,Hr,Fu,nl,Bu){return Hr||(Hr=Fu),It+=m.slice(xt,Bu).replace(ci,aP),Nr&&(Me=!0,It+=`' + -__e(`+Nr+`) + -'`),nl&&(Xe=!0,It+=`'; +`)}function Ys(m){return or(m)||$u(m)||!!(ZE&&m&&m[ZE])}function Au(m,O){var R=typeof m;return O=O??K,!!O&&(R=="number"||R!="symbol"&&Ie.test(m))&&m>-1&&m%1==0&&m0){if(++O>=Q)return arguments[0]}else O=0;return m.apply(n,arguments)}}function ks(m,O){var R=-1,H=m.length,ie=H-1;for(O=O===n?H:O;++R1?m[O-1]:n;return R=typeof R=="function"?(m.pop(),R):n,xA(m,R)});function CA(m){var O=le(m);return O.__chain__=!0,O}function o7(m,O){return O(m),m}function dv(m,O){return O(m)}var l7=zc(function(m){var O=m.length,R=O?m[0]:0,H=this.__wrapped__,ie=function(de){return kn(de,m)};return O>1||this.__actions__.length||!(H instanceof _r)||!Au(R)?this.thru(ie):(H=H.slice(R,+R+(O?1:0)),H.__actions__.push({func:dv,args:[ie],thisArg:n}),new Go(H,this.__chain__).thru(function(de){return O&&!de.length&&de.push(n),de}))});function _A(){return CA(this)}function u7(){return new Go(this.value(),this.__chain__)}function AA(){this.__values__===n&&(this.__values__=$7(this.value()));var m=this.__index__>=this.__values__.length,O=m?n:this.__values__[this.__index__++];return{done:m,value:O}}function c7(){return this}function d7(m){for(var O,R=this;R instanceof Op;){var H=eh(R);H.__index__=0,H.__values__=n,O?ie.__wrapped__=H:O=H;var ie=H;R=R.__wrapped__}return ie.__wrapped__=m,O}function f7(){var m=this.__wrapped__;if(m instanceof _r){var O=m;return this.__actions__.length&&(O=new _r(this)),O=O.reverse(),O.__actions__.push({func:dv,args:[Qd],thisArg:n}),new Go(O,this.__chain__)}return this.thru(Qd)}function RA(){return tA(this.__wrapped__,this.__actions__)}var Iw=Jy(function(m,O,R){ei.call(m,R)?++m[R]:Qs(m,R,1)});function h7(m,O,R){var H=or(m)?a1:Wy;return R&&qs(m,O,R)&&(O=n),H(m,zn(O,3))}function IA(m,O){var R=or(m)?Vo:iw;return R(m,zn(O,3))}var Pn=dA(ga),Dw=dA(xw);function p7(m,O){return Xa(rh(m,O),1)}function m7(m,O){return Xa(rh(m,O),J)}function DA(m,O,R){return R=R===n?1:mr(R),Xa(rh(m,O),R)}function M1(m,O){var R=or(m)?Ho:Bd;return R(m,zn(O,3))}function fv(m,O){var R=or(m)?eP:rw;return R(m,zn(O,3))}var hv=Jy(function(m,O,R){ei.call(m,R)?m[R].push(O):Qs(m,R,[O])});function NA(m,O,R,H){m=Zs(m)?m:Sv(m),R=R&&!H?mr(R):0;var ie=m.length;return R<0&&(R=ka(ie+R,0)),zw(m)?R<=ie&&m.indexOf(O,R)>-1:!!ie&&ws(m,O,R)>-1}var g7=Or(function(m,O,R){var H=-1,ie=typeof O=="function",de=Zs(m)?ut(m.length):[];return Bd(m,function(_e){de[++H]=ie?jo(O,_e,R):Gm(_e,O,R)}),de}),l0=Jy(function(m,O,R){Qs(m,R,O)});function rh(m,O){var R=or(m)?Di:Xm;return R(m,zn(O,3))}function b7(m,O,R,H){return m==null?[]:(or(O)||(O=O==null?[]:[O]),R=H?n:R,or(R)||(R=R==null?[]:[R]),G_(m,O,R))}var PA=Jy(function(m,O,R){m[R?0:1].push(O)},function(){return[[],[]]});function y7(m,O,R){var H=or(m)?QE:Ws,ie=arguments.length<3;return H(m,zn(O,4),R,ie,Bd)}function v7(m,O,R){var H=or(m)?tP:Ws,ie=arguments.length<3;return H(m,zn(O,4),R,ie,rw)}function MA(m,O){var R=or(m)?Vo:iw;return R(m,u0(zn(O,3)))}function O7(m){var O=or(m)?N_:RP;return O(m)}function LA(m,O,R){(R?qs(m,O,R):O===n)?O=1:O=mr(O);var H=or(m)?wP:IP;return H(m,O)}function S7(m){var O=or(m)?TP:NP;return O(m)}function E7(m){if(m==null)return 0;if(Zs(m))return zw(m)?ss(m):m.length;var O=Ei(m);return O==nt||O==me?m.size:cw(m).length}function $A(m,O,R){var H=or(m)?Al:X_;return R&&qs(m,O,R)&&(O=n),H(m,zn(O,3))}var FA=Or(function(m,O){if(m==null)return[];var R=O.length;return R>1&&qs(m,O[0],O[1])?O=[]:R>2&&qs(O[0],O[1],O[2])&&(O=[O[0]]),G_(m,Xa(O,1),[])}),pv=hP||function(){return is.Date.now()};function w7(m,O){if(typeof O!="function")throw new qo(s);return m=mr(m),function(){if(--m<1)return O.apply(this,arguments)}}function BA(m,O,R){return O=R?n:O,O=m&&O==null?m.length:O,Fl(m,A,n,n,n,n,O)}function Nw(m,O){var R;if(typeof O!="function")throw new qo(s);return m=mr(m),function(){return--m>0&&(R=O.apply(this,arguments)),m<=1&&(O=n),R}}var L1=Or(function(m,O,R){var H=w;if(R.length){var ie=as(R,Sp(L1));H|=I}return Fl(m,H,O,R,ie)}),UA=Or(function(m,O,R){var H=w|T;if(R.length){var ie=as(R,Sp(UA));H|=I}return Fl(O,H,m,R,ie)});function Pw(m,O,R){O=R?n:O;var H=Fl(m,k,n,n,n,n,n,O);return H.placeholder=Pw.placeholder,H}function Mw(m,O,R){O=R?n:O;var H=Fl(m,C,n,n,n,n,n,O);return H.placeholder=Mw.placeholder,H}function zA(m,O,R){var H,ie,de,_e,Le,Xe,xt=0,kt=!1,Dt=!1,an=!0;if(typeof m!="function")throw new qo(s);O=Hl(O)||0,Ti(R)&&(kt=!!R.leading,Dt="maxWait"in R,de=Dt?ka(Hl(R.maxWait)||0,O):de,an="trailing"in R?!!R.trailing:an);function Rn(Ua){var Zd=H,_p=ie;return H=ie=n,xt=Ua,_e=m.apply(_p,Zd),_e}function tr(Ua){return xt=Ua,Le=Vi(Pr,O),kt?Rn(Ua):_e}function kr(Ua){var Zd=Ua-Xe,_p=Ua-xt,PZ=O-Zd;return Dt?os(PZ,de-_p):PZ}function nr(Ua){var Zd=Ua-Xe,_p=Ua-xt;return Xe===n||Zd>=O||Zd<0||Dt&&_p>=de}function Pr(){var Ua=pv();if(nr(Ua))return Vr(Ua);Le=Vi(Pr,kr(Ua))}function Vr(Ua){return Le=n,an&&H?Rn(Ua):(H=ie=n,_e)}function Fu(){Le!==n&&rA(Le),xt=0,H=Xe=ie=Le=n}function nl(){return Le===n?_e:Vr(pv())}function Bu(){var Ua=pv(),Zd=nr(Ua);if(H=arguments,ie=this,Xe=Ua,Zd){if(Le===n)return tr(Xe);if(Dt)return rA(Le),Le=Vi(Pr,O),Rn(Xe)}return Le===n&&(Le=Vi(Pr,O)),_e}return Bu.cancel=Fu,Bu.flush=nl,Bu}var T7=Or(function(m,O){return g1(m,1,O)}),x7=Or(function(m,O,R){return g1(m,Hl(O)||0,R)});function k7(m){return Fl(m,F)}function $1(m,O){if(typeof m!="function"||O!=null&&typeof O!="function")throw new qo(s);var R=function(){var H=arguments,ie=O?O.apply(this,H):H[0],de=R.cache;if(de.has(ie))return de.get(ie);var _e=m.apply(this,H);return R.cache=de.set(ie,_e)||de,_e};return R.cache=new($1.Cache||Nl),R}$1.Cache=Nl;function u0(m){if(typeof m!="function")throw new qo(s);return function(){var O=arguments;switch(O.length){case 0:return!m.call(this);case 1:return!m.call(this,O[0]);case 2:return!m.call(this,O[0],O[1]);case 3:return!m.call(this,O[0],O[1],O[2])}return!m.apply(this,O)}}function jA(m){return Nw(2,m)}var Lw=PP(function(m,O){O=O.length==1&&or(O[0])?Di(O[0],Ni(zn())):Di(Xa(O,1),Ni(zn()));var R=O.length;return Or(function(H){for(var ie=-1,de=os(H.length,R);++ie=O}),$u=ow(function(){return arguments}())?ow:function(m){return aa(m)&&ei.call(m,"callee")&&!GE.call(m,"callee")},or=ut.isArray,D7=_y?Ni(_y):j_;function Zs(m){return m!=null&&kp(m.length)&&!xo(m)}function ia(m){return aa(m)&&Zs(m)}function z1(m){return m===!0||m===!1||aa(m)&&ma(m)==Me}var qd=mP||Q7,ih=Ay?Ni(Ay):lw;function xp(m){return aa(m)&&m.nodeType===1&&!vv(m)}function mv(m){if(m==null)return!0;if(Zs(m)&&(or(m)||typeof m=="string"||typeof m.splice=="function"||qd(m)||j1(m)||$u(m)))return!m.length;var O=Ei(m);if(O==nt||O==me)return!m.size;if(T1(m))return!cw(m).length;for(var R in m)if(ei.call(m,R))return!1;return!0}function QA(m,O){return Zm(m,O)}function N7(m,O,R){R=typeof R=="function"?R:n;var H=R?R(m,O):n;return H===n?Zm(m,O,n,R):!!H}function gv(m){if(!aa(m))return!1;var O=ma(m);return O==Qe||O==ot||typeof m.message=="string"&&typeof m.name=="string"&&!vv(m)}function YA(m){return typeof m=="number"&&$c(m)}function xo(m){if(!Ti(m))return!1;var O=ma(m);return O==Je||O==Ye||O==Pe||O==ge}function Bw(m){return typeof m=="number"&&m==mr(m)}function kp(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=K}function Ti(m){var O=typeof m;return m!=null&&(O=="object"||O=="function")}function aa(m){return m!=null&&typeof m=="object"}var Gd=HE?Ni(HE):V_;function Xs(m,O){return m===O||Gy(m,O,rv(O))}function bv(m,O,R){return R=typeof R=="function"?R:n,Gy(m,O,rv(O),R)}function yv(m){return M7(m)&&m!=+m}function Uw(m){if(Tp(m))throw new sr(a);return uw(m)}function P7(m){return m===null}function vZ(m){return m==null}function M7(m){return typeof m=="number"||aa(m)&&ma(m)==tt}function vv(m){if(!aa(m)||ma(m)!=_t)return!1;var O=Fy(m);if(O===null)return!0;var R=ei.call(O,"constructor")&&O.constructor;return typeof R=="function"&&R instanceof R&&My.call(R)==cP}var qA=VE?Ni(VE):W_;function OZ(m){return Bw(m)&&m>=-K&&m<=K}var L7=n_?Ni(n_):xP;function zw(m){return typeof m=="string"||!or(m)&&aa(m)&&ma(m)==We}function jl(m){return typeof m=="symbol"||aa(m)&&ma(m)==et}var j1=r_?Ni(r_):kP;function SZ(m){return m===n}function EZ(m){return aa(m)&&Ei(m)==pe}function wZ(m){return aa(m)&&ma(m)==Te}var TZ=E1(y1),xZ=E1(function(m,O){return m<=O});function $7(m){if(!m)return[];if(Zs(m))return zw(m)?na(m):wo(m);if(u1&&m[u1])return uP(m[u1]());var O=Ei(m),R=O==nt?Iy:O==me?Dl:Sv;return R(m)}function ah(m){if(!m)return m===0?m:0;if(m=Hl(m),m===J||m===-J){var O=m<0?-1:1;return O*ne}return m===m?m:0}function mr(m){var O=ah(m),R=O%1;return O===O?R?O-R:O:0}function jw(m){return m?Qf(mr(m),0,Ce):0}function Hl(m){if(typeof m=="number")return m;if(jl(m))return j;if(Ti(m)){var O=typeof m.valueOf=="function"?m.valueOf():m;m=Ti(O)?O+"":O}if(typeof m!="string")return m===0?m:+m;m=Qo(m);var R=ln.test(m);return R||Jr.test(m)?i1(m.slice(2),R?2:8):ke.test(m)?j:+m}function d0(m){return Uc(m,dr(m))}function GA(m){return m?Qf(mr(m),-K,K):m===0?m:0}function Hr(m){return m==null?"":Xo(m)}var Hw=Jm(function(m,O){if(T1(O)||Zs(O)){Uc(O,jn(O),m);return}for(var R in O)ei.call(O,R)&&p1(m,R,O[R])}),ZA=Jm(function(m,O){Uc(O,dr(O),m)}),Ov=Jm(function(m,O,R,H){Uc(O,dr(O),m,H)}),g=Jm(function(m,O,R,H){Uc(O,jn(O),m,H)}),u=zc(kn);function f(m,O){var R=ku(m);return O==null?R:Vy(R,O)}var y=Or(function(m,O){m=bi(m);var R=-1,H=O.length,ie=H>2?O[2]:n;for(ie&&qs(O[0],O[1],ie)&&(H=1);++R1),de}),Uc(m,Ko(m),R),H&&(R=Pl(R,h|p|b,pA));for(var ie=O.length;ie--;)Xy(R,O[ie]);return R});function F7(m,O){return kZ(m,u0(zn(O)))}var B7=zc(function(m,O){return m==null?{}:_P(m,O)});function kZ(m,O){if(m==null)return{};var R=Di(Ko(m),function(H){return[H]});return O=zn(O),vr(m,R,function(H,ie){return O(H,ie[0])})}function jEe(m,O,R){O=Gf(O,m);var H=-1,ie=O.length;for(ie||(ie=1,m=n);++HO){var H=m;m=O,O=H}if(R||m%1||O%1){var ie=KE();return os(m+ie*(O-m+Dc("1e-"+((ie+"").length-1))),O)}return hw(m,O)}var JEe=e0(function(m,O,R){return O=O.toLowerCase(),m+(R?AZ(O):O)});function AZ(m){return U7(Hr(m).toLowerCase())}function RZ(m){return m=Hr(m),m&&m.replace(Nn,iP).replace(Cc,"")}function ewe(m,O,R){m=Hr(m),O=Xo(O);var H=m.length;R=R===n?H:Qf(mr(R),0,H);var ie=R;return R-=O.length,R>=0&&m.slice(R,ie)==O}function twe(m){return m=Hr(m),m&&Ve.test(m)?m.replace(Qr,aP):m}function nwe(m){return m=Hr(m),m&&Fn.test(m)?m.replace(Zt,"\\$&"):m}var rwe=e0(function(m,O,R){return m+(R?"-":"")+O.toLowerCase()}),iwe=e0(function(m,O,R){return m+(R?" ":"")+O.toLowerCase()}),awe=cA("toLowerCase");function swe(m,O,R){m=Hr(m),O=mr(O);var H=O?ss(m):0;if(!O||H>=O)return m;var ie=(O-H)/2;return er(Uy(ie),R)+m+er(By(ie),R)}function owe(m,O,R){m=Hr(m),O=mr(O);var H=O?ss(m):0;return O&&H>>0,R?(m=Hr(m),m&&(typeof O=="string"||O!=null&&!qA(O))&&(O=Xo(O),!O&&Fm(m))?Zf(na(m),0,R):m.split(O,R)):[]}var pwe=e0(function(m,O,R){return m+(R?" ":"")+U7(O)});function mwe(m,O,R){return m=Hr(m),R=R==null?0:Qf(mr(R),0,m.length),O=Xo(O),m.slice(R,R+O.length)==O}function gwe(m,O,R){var H=le.templateSettings;R&&qs(m,O,R)&&(O=n),m=Hr(m),O=Ov({},O,H,tv);var ie=Ov({},O.imports,H.imports,tv),de=jn(ie),_e=Eo(ie,de),Le,Xe,xt=0,kt=O.interpolate||Gn,Dt="__p += '",an=YE((O.escape||Gn).source+"|"+kt.source+"|"+(kt===qt?it:Gn).source+"|"+(O.evaluate||Gn).source+"|$","g"),Rn="//# sourceURL="+(ei.call(O,"sourceURL")?(O.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++r1+"]")+` +`;m.replace(an,function(nr,Pr,Vr,Fu,nl,Bu){return Vr||(Vr=Fu),Dt+=m.slice(xt,Bu).replace(ci,sP),Pr&&(Le=!0,Dt+=`' + +__e(`+Pr+`) + +'`),nl&&(Xe=!0,Dt+=`'; `+nl+`; -__p += '`),Hr&&(It+=`' + -((__t = (`+Hr+`)) == null ? '' : __t) + -'`),xt=Bu+nr.length,nr}),It+=`'; -`;var tr=ei.call(O,"variable")&&O.variable;if(!tr)It=`with (obj) { -`+It+` +__p += '`),Vr&&(Dt+=`' + +((__t = (`+Vr+`)) == null ? '' : __t) + +'`),xt=Bu+nr.length,nr}),Dt+=`'; +`;var tr=ei.call(O,"variable")&&O.variable;if(!tr)Dt=`with (obj) { +`+Dt+` } -`;else if(Yn.test(tr))throw new sr(o);It=(Xe?It.replace(In,""):It).replace(Ln,"$1").replace(Qn,"$1;"),It="function("+(tr||"obj")+`) { +`;else if(Yn.test(tr))throw new sr(o);Dt=(Xe?Dt.replace(Dn,""):Dt).replace($n,"$1").replace(Qn,"$1;"),Dt="function("+(tr||"obj")+`) { `+(tr?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Me?", __e = _.escape":"")+(Xe?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(Le?", __e = _.escape":"")+(Xe?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+It+`return __p -}`;var xr=kZ(function(){return Kn(de,Rn+"return "+It).apply(n,_e)});if(xr.source=It,mv(xr))throw xr;return xr}function ewe(m){return jr(m).toLowerCase()}function twe(m){return jr(m).toUpperCase()}function nwe(m,O,R){if(m=jr(m),m&&(R||O===n))return Qo(m);if(!m||!(O=Xo(O)))return m;var H=ta(m),ie=ta(O),de=jf(H,ie),_e=Yo(H,ie)+1;return Zf(H,de,_e).join("")}function rwe(m,O,R){if(m=jr(m),m&&(R||O===n))return m.slice(0,Pc(m)+1);if(!m||!(O=Xo(O)))return m;var H=ta(m),ie=Yo(H,ta(O))+1;return Zf(H,0,ie).join("")}function iwe(m,O,R){if(m=jr(m),m&&(R||O===n))return m.replace(Ge,"");if(!m||!(O=Xo(O)))return m;var H=ta(m),ie=jf(H,ta(O));return Zf(H,ie).join("")}function awe(m,O){var R=P,H=V;if(Ti(O)){var ie="separator"in O?O.separator:ie;R="length"in O?pr(O.length):R,H="omission"in O?Xo(O.omission):H}m=jr(m);var de=m.length;if(Fm(m)){var _e=ta(m);de=_e.length}if(R>=de)return m;var Me=R-as(H);if(Me<1)return H;var Xe=_e?Zf(_e,0,Me).join(""):m.slice(0,Me);if(ie===n)return Xe+H;if(_e&&(Me+=Xe.length-Me),jA(ie)){if(m.slice(Me).search(ie)){var xt,kt=Xe;for(ie.global||(ie=QE(ie.source,jr(Ue.exec(ie))+"g")),ie.lastIndex=0;xt=ie.exec(kt);)var It=xt.index;Xe=Xe.slice(0,It===n?Me:It)}}else if(m.indexOf(Xo(ie),Me)!=Me){var an=Xe.lastIndexOf(ie);an>-1&&(Xe=Xe.slice(0,an))}return Xe+H}function swe(m){return m=jr(m),m&&$e.test(m)?m.replace(ur,Mc):m}var owe=e0(function(m,O,R){return m+(R?" ":"")+O.toUpperCase()}),B7=iA("toUpperCase");function xZ(m,O,R){return m=jr(m),O=R?n:O,O===n?oP(m)?Fd(m):JC(m):m.match(O)||[]}var kZ=vr(function(m,O){try{return jo(m,n,O)}catch(R){return mv(R)?R:new sr(R)}}),lwe=zc(function(m,O){return Ho(O,function(R){R=_s(R),Qs(m,R,M1(m[R],m))}),m});function uwe(m){var O=m==null?0:m.length,R=zn();return m=O?Di(m,function(H){if(typeof H[1]!="function")throw new qo(s);return[R(H[0]),H[1]]}):[],vr(function(H){for(var ie=-1;++ieK)return[];var R=Ce,H=ss(m,Ce);O=zn(O),m-=Ce;for(var ie=So(H,O);++R0||O<0)?new _r(R):(m<0?R=R.takeRight(-m):m&&(R=R.drop(m)),O!==n&&(O=pr(O),R=O<0?R.dropRight(-O):R.take(O-m)),R)},_r.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},_r.prototype.toArray=function(){return this.take(Ce)},Bc(_r.prototype,function(m,O){var R=/^(?:filter|find|map|reject)|While$/.test(O),H=/^(?:head|last)$/.test(O),ie=le[H?"take"+(O=="last"?"Right":""):O],de=H||/^find/.test(O);ie&&(le.prototype[O]=function(){var _e=this.__wrapped__,Me=H?[1]:arguments,Xe=_e instanceof _r,xt=Me[0],kt=Xe||or(_e),It=function(Nr){var Hr=ie.apply(le,Uf([Nr],Me));return H&&an?Hr[0]:Hr};kt&&R&&typeof xt=="function"&&xt.length!=1&&(Xe=kt=!1);var an=this.__chain__,Rn=!!this.__actions__.length,tr=de&&!an,xr=Xe&&!Rn;if(!de&&kt){_e=xr?_e:new _r(this);var nr=m.apply(_e,Me);return nr.__actions__.push({func:cv,args:[It],thisArg:n}),new Go(nr,an)}return tr&&xr?m.apply(this,Me):(nr=this.thru(It),tr?H?nr.value()[0]:nr.value():nr)})}),Ho(["pop","push","shift","sort","splice","unshift"],function(m){var O=Dy[m],R=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",H=/^(?:pop|shift)$/.test(m);le.prototype[m]=function(){var ie=arguments;if(H&&!this.__chain__){var de=this.value();return O.apply(or(de)?de:[],ie)}return this[R](function(_e){return O.apply(or(_e)?_e:[],ie)})}}),Bc(_r.prototype,function(m,O){var R=le[O];if(R){var H=R.name+"";ei.call(bp,H)||(bp[H]=[]),bp[H].push({name:O,func:R})}}),bp[Cu(n,T).name]=[{name:"wrapper",func:n}],_r.prototype.clone=SP,_r.prototype.reverse=l_,_r.prototype.value=u_,le.prototype.at=o7,le.prototype.chain=EA,le.prototype.commit=l7,le.prototype.next=wA,le.prototype.plant=c7,le.prototype.reverse=d7,le.prototype.toJSON=le.prototype.valueOf=le.prototype.value=TA,le.prototype.first=le.prototype.head,l1&&(le.prototype[l1]=u7),le},wa=Lc();pp?((pp.exports=wa)._=wa,zE._=wa):rs._=wa}).call(Th)})(fI,fI.exports);var DGe=fI.exports;const NGe=kf(DGe),PGe=hn.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:"0px 2px 0px 4px"},".cm-ySelectionCaret":{position:"relative",borderLeft:"1px solid black",borderRight:"1px solid black",marginLeft:"-1px",marginRight:"-1px",boxSizing:"border-box",display:"inline"},".cm-ySelectionCaretDot":{borderRadius:"50%",position:"absolute",width:".4em",height:".4em",top:"-.2em",left:"-.2em",backgroundColor:"inherit",transition:"transform .3s ease-in-out",boxSizing:"border-box"},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:"bottom center",transform:"scale(0)"},".cm-ySelectionInfo":{position:"absolute",top:"-1.05em",left:"-1px",fontSize:".75em",fontFamily:"serif",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",userSelect:"none",color:"black",paddingLeft:"2px",paddingRight:"2px",zIndex:101,transition:"opacity .3s ease-in-out",backgroundColor:"inherit",transitionDelay:"0s",whiteSpace:"nowrap"}}),MGe=Rf.define();class LGe extends If{constructor(n,r){super();Ks(this,"color");Ks(this,"name");this.color=n,this.name=r}toDOM(){return p5("span",[Ob("class","cm-ySelectionCaret"),Ob("style",`background-color: ${this.color}; border-color: ${this.color}`)],[G4("⁠"),p5("div",[Ob("class","cm-ySelectionCaretDot")]),G4("⁠"),p5("div",[Ob("class","cm-ySelectionInfo")],[G4(this.name)]),G4("⁠")])}eq(n){return n.color===this.color}compare(n){return n.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class $Ge{constructor(t){Ks(this,"conf");Ks(this,"decorations");Ks(this,"unsubscribe");this.conf=t.state.facet(Wj),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[MGe.of([])]})}),this.decorations=Vr.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]);NGe.isEqual(o,i.get("selection"))||i.set({selection:o})}else i.get("selection")&&i.set({selection:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),c=t.view.state.doc.lineAt(o),d=t.view.state.doc.lineAt(l);if(c.number===d.number)n.push({from:o,to:l,value:_n.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:c.from+c.length,value:_n.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:d.from,to:l,value:_n.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let h=c.number+1;h0?-1:1,block:!1,widget:new LGe(a,s)})})}),this.decorations=_n.set(n,!0)}}const FGe=Ea.fromClass($Ge,{decorations:e=>e.decorations});function BGe(e,t){const n=new SGe(e,t),r=[Wj.of(n),wGe];return t&&r.push(PGe,FGe),r}var P0e=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=hn.theme(i,{dark:t==="dark"}),l=lC.define(r),c=[o,hpe(l)];return c},UGe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function zGe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return P0e({theme:t,settings:$({},UGe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#707F8D"},{tag:[Ee.typeName,Ee.typeOperator],color:"#aa0d91"},{tag:[Ee.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#D23423"},{tag:[Ee.name],color:"#032f62"},{tag:[Ee.typeName],color:"#522BB2"},{tag:[Ee.variableName],color:"#23575C"},{tag:[Ee.definition(Ee.variableName)],color:"#327A9E"},{tag:[Ee.regexp,Ee.link],color:"#0e0eff"},...r]})}var jGe=zGe(),HGe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},VGe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return P0e({theme:t,settings:$({},HGe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#7F8C98"},{tag:[Ee.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#FF8170"},{tag:[Ee.typeName],color:"#DABAFF"},{tag:[Ee.definition(Ee.variableName)],color:"#6BDFFF"},{tag:[Ee.name],color:"#6BAA9F"},{tag:[Ee.variableName],color:"#ACF2E4"},{tag:[Ee.regexp,Ee.link],color:"#FF8170"},...r]})},WGe=VGe();function MN(){const e=sE("(prefers-color-scheme: dark)"),t=Sa(Dde);return M.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}const M0e="yorkie-intelligence-header",Qj="yorkie-intelligence-footer";var TF=(e=>(e.GITHUB_ISSUE="github-issue",e.GITHUB_PR="github-pr",e))(TF||{});class jne extends If{constructor(n,r,i){super();Ks(this,"id");Ks(this,"content");Ks(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return p5("span",[Ob("id",this.id),Ob("content",this.content),Ob("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class QGe{constructor(){Ks(this,"decorations");this.decorations=Vr.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:_n.widget({side:1,block:!1,widget:new jne(M0e,a,r)})}),n.push({from:r.to,to:r.to,value:_n.widget({side:1,block:!1,widget:new jne(Qj,a,r)})})}this.decorations=_n.set(n,!0)}}const YGe=Ea.fromClass(QGe,{decorations:e=>e.decorations}),Hne=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),Vne=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` +`)+Dt+`return __p +}`;var kr=DZ(function(){return Kn(de,Rn+"return "+Dt).apply(n,_e)});if(kr.source=Dt,gv(kr))throw kr;return kr}function bwe(m){return Hr(m).toLowerCase()}function ywe(m){return Hr(m).toUpperCase()}function vwe(m,O,R){if(m=Hr(m),m&&(R||O===n))return Qo(m);if(!m||!(O=Xo(O)))return m;var H=na(m),ie=na(O),de=jf(H,ie),_e=Yo(H,ie)+1;return Zf(H,de,_e).join("")}function Owe(m,O,R){if(m=Hr(m),m&&(R||O===n))return m.slice(0,Pc(m)+1);if(!m||!(O=Xo(O)))return m;var H=na(m),ie=Yo(H,na(O))+1;return Zf(H,0,ie).join("")}function Swe(m,O,R){if(m=Hr(m),m&&(R||O===n))return m.replace(Ge,"");if(!m||!(O=Xo(O)))return m;var H=na(m),ie=jf(H,na(O));return Zf(H,ie).join("")}function Ewe(m,O){var R=M,H=V;if(Ti(O)){var ie="separator"in O?O.separator:ie;R="length"in O?mr(O.length):R,H="omission"in O?Xo(O.omission):H}m=Hr(m);var de=m.length;if(Fm(m)){var _e=na(m);de=_e.length}if(R>=de)return m;var Le=R-ss(H);if(Le<1)return H;var Xe=_e?Zf(_e,0,Le).join(""):m.slice(0,Le);if(ie===n)return Xe+H;if(_e&&(Le+=Xe.length-Le),qA(ie)){if(m.slice(Le).search(ie)){var xt,kt=Xe;for(ie.global||(ie=YE(ie.source,Hr(Ue.exec(ie))+"g")),ie.lastIndex=0;xt=ie.exec(kt);)var Dt=xt.index;Xe=Xe.slice(0,Dt===n?Le:Dt)}}else if(m.indexOf(Xo(ie),Le)!=Le){var an=Xe.lastIndexOf(ie);an>-1&&(Xe=Xe.slice(0,an))}return Xe+H}function wwe(m){return m=Hr(m),m&&$e.test(m)?m.replace(ur,Mc):m}var Twe=e0(function(m,O,R){return m+(R?" ":"")+O.toUpperCase()}),U7=cA("toUpperCase");function IZ(m,O,R){return m=Hr(m),O=R?n:O,O===n?lP(m)?Fd(m):a_(m):m.match(O)||[]}var DZ=Or(function(m,O){try{return jo(m,n,O)}catch(R){return gv(R)?R:new sr(R)}}),xwe=zc(function(m,O){return Ho(O,function(R){R=Cs(R),Qs(m,R,L1(m[R],m))}),m});function kwe(m){var O=m==null?0:m.length,R=zn();return m=O?Di(m,function(H){if(typeof H[1]!="function")throw new qo(s);return[R(H[0]),H[1]]}):[],Or(function(H){for(var ie=-1;++ieK)return[];var R=Ce,H=os(m,Ce);O=zn(O),m-=Ce;for(var ie=So(H,O);++R0||O<0)?new _r(R):(m<0?R=R.takeRight(-m):m&&(R=R.drop(m)),O!==n&&(O=mr(O),R=O<0?R.dropRight(-O):R.take(O-m)),R)},_r.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},_r.prototype.toArray=function(){return this.take(Ce)},Bc(_r.prototype,function(m,O){var R=/^(?:filter|find|map|reject)|While$/.test(O),H=/^(?:head|last)$/.test(O),ie=le[H?"take"+(O=="last"?"Right":""):O],de=H||/^find/.test(O);ie&&(le.prototype[O]=function(){var _e=this.__wrapped__,Le=H?[1]:arguments,Xe=_e instanceof _r,xt=Le[0],kt=Xe||or(_e),Dt=function(Pr){var Vr=ie.apply(le,Uf([Pr],Le));return H&&an?Vr[0]:Vr};kt&&R&&typeof xt=="function"&&xt.length!=1&&(Xe=kt=!1);var an=this.__chain__,Rn=!!this.__actions__.length,tr=de&&!an,kr=Xe&&!Rn;if(!de&&kt){_e=kr?_e:new _r(this);var nr=m.apply(_e,Le);return nr.__actions__.push({func:dv,args:[Dt],thisArg:n}),new Go(nr,an)}return tr&&kr?m.apply(this,Le):(nr=this.thru(Dt),tr?H?nr.value()[0]:nr.value():nr)})}),Ho(["pop","push","shift","sort","splice","unshift"],function(m){var O=Ny[m],R=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",H=/^(?:pop|shift)$/.test(m);le.prototype[m]=function(){var ie=arguments;if(H&&!this.__chain__){var de=this.value();return O.apply(or(de)?de:[],ie)}return this[R](function(_e){return O.apply(or(_e)?_e:[],ie)})}}),Bc(_r.prototype,function(m,O){var R=le[O];if(R){var H=R.name+"";ei.call(yp,H)||(yp[H]=[]),yp[H].push({name:O,func:R})}}),yp[Cu(n,T).name]=[{name:"wrapper",func:n}],_r.prototype.clone=EP,_r.prototype.reverse=p_,_r.prototype.value=m_,le.prototype.at=l7,le.prototype.chain=_A,le.prototype.commit=u7,le.prototype.next=AA,le.prototype.plant=d7,le.prototype.reverse=f7,le.prototype.toJSON=le.prototype.valueOf=le.prototype.value=RA,le.prototype.first=le.prototype.head,u1&&(le.prototype[u1]=c7),le},xa=Lc();mp?((mp.exports=xa)._=xa,jE._=xa):is._=xa}).call(Th)})(bI,bI.exports);var AZe=bI.exports;const RZe=Cf(AZe),IZe=hn.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:"0px 2px 0px 4px"},".cm-ySelectionCaret":{position:"relative",borderLeft:"1px solid black",borderRight:"1px solid black",marginLeft:"-1px",marginRight:"-1px",boxSizing:"border-box",display:"inline"},".cm-ySelectionCaretDot":{borderRadius:"50%",position:"absolute",width:".4em",height:".4em",top:"-.2em",left:"-.2em",backgroundColor:"inherit",transition:"transform .3s ease-in-out",boxSizing:"border-box"},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:"bottom center",transform:"scale(0)"},".cm-ySelectionInfo":{position:"absolute",top:"-1.05em",left:"-1px",fontSize:".75em",fontFamily:"serif",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",userSelect:"none",color:"black",paddingLeft:"2px",paddingRight:"2px",zIndex:101,transition:"opacity .3s ease-in-out",backgroundColor:"inherit",transitionDelay:"0s",whiteSpace:"nowrap"}}),DZe=Rf.define();class NZe extends If{constructor(n,r){super();Ks(this,"color");Ks(this,"name");this.color=n,this.name=r}toDOM(){return O5("span",[Sb("class","cm-ySelectionCaret"),Sb("style",`background-color: ${this.color}; border-color: ${this.color}`)],[t3("⁠"),O5("div",[Sb("class","cm-ySelectionCaretDot")]),t3("⁠"),O5("div",[Sb("class","cm-ySelectionInfo")],[t3(this.name)]),t3("⁠")])}eq(n){return n.color===this.color}compare(n){return n.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class PZe{constructor(t){Ks(this,"conf");Ks(this,"decorations");Ks(this,"unsubscribe");this.conf=t.state.facet(Gj),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[DZe.of([])]})}),this.decorations=Wr.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]);RZe.isEqual(o,i.get("selection"))||i.set({selection:o})}else i.get("selection")&&i.set({selection:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),c=t.view.state.doc.lineAt(o),d=t.view.state.doc.lineAt(l);if(c.number===d.number)n.push({from:o,to:l,value:_n.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:c.from+c.length,value:_n.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:d.from,to:l,value:_n.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let h=c.number+1;h0?-1:1,block:!1,widget:new NZe(a,s)})})}),this.decorations=_n.set(n,!0)}}const MZe=Ta.fromClass(PZe,{decorations:e=>e.decorations});function LZe(e,t){const n=new yZe(e,t),r=[Gj.of(n),OZe];return t&&r.push(IZe,MZe),r}var Z0e=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=hn.theme(i,{dark:t==="dark"}),l=hC.define(r),c=[o,Ape(l)];return c},$Ze={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function FZe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return Z0e({theme:t,settings:$({},$Ze,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#707F8D"},{tag:[Ee.typeName,Ee.typeOperator],color:"#aa0d91"},{tag:[Ee.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#D23423"},{tag:[Ee.name],color:"#032f62"},{tag:[Ee.typeName],color:"#522BB2"},{tag:[Ee.variableName],color:"#23575C"},{tag:[Ee.definition(Ee.variableName)],color:"#327A9E"},{tag:[Ee.regexp,Ee.link],color:"#0e0eff"},...r]})}var BZe=FZe(),UZe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},zZe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Z0e({theme:t,settings:$({},UZe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#7F8C98"},{tag:[Ee.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#FF8170"},{tag:[Ee.typeName],color:"#DABAFF"},{tag:[Ee.definition(Ee.variableName)],color:"#6BDFFF"},{tag:[Ee.name],color:"#6BAA9F"},{tag:[Ee.variableName],color:"#ACF2E4"},{tag:[Ee.regexp,Ee.link],color:"#FF8170"},...r]})},jZe=zZe();function bC(){const e=lE("(prefers-color-scheme: dark)"),t=Ki(Yz);return P.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}const X0e="yorkie-intelligence-header",Zj="yorkie-intelligence-footer";var TF=(e=>(e.GITHUB_ISSUE="github-issue",e.GITHUB_PR="github-pr",e))(TF||{});class tre extends If{constructor(n,r,i){super();Ks(this,"id");Ks(this,"content");Ks(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return O5("span",[Sb("id",this.id),Sb("content",this.content),Sb("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class HZe{constructor(){Ks(this,"decorations");this.decorations=Wr.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:_n.widget({side:1,block:!1,widget:new tre(X0e,a,r)})}),n.push({from:r.to,to:r.to,value:_n.widget({side:1,block:!1,widget:new tre(Zj,a,r)})})}this.decorations=_n.set(n,!0)}}const VZe=Ta.fromClass(HZe,{decorations:e=>e.decorations}),nre=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),rre=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` ![image](${e}) -`,o=a+s.length;n.update((l,c)=>{l.content.edit(i,a,s),c.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},qGe=(e,t)=>hn.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||Hne(n.clipboardData.files,e).then(s=>s.forEach(o=>Vne(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||Hne(n.dataTransfer.files,e).then(s=>s.forEach(o=>Vne(o,r,t)))}}),GGe=()=>Hg({mutationFn:async e=>(await Rr.post("/files",e)).data}),ZGe=()=>Hg({mutationFn:async e=>Rr.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})});var L0e={exports:{}};(function(e,t){(function(r,i){e.exports=i(M)})(Th,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=c}catch{o=c}})();function d(C){if(s===setTimeout)return setTimeout(C,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(C,0);try{return s(C,0)}catch{try{return s.call(null,C,0)}catch{return s.call(this,C,0)}}}function h(C){if(o===clearTimeout)return clearTimeout(C);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(C);try{return o(C)}catch{try{return o.call(null,C)}catch{return o.call(this,C)}}}var p=[],b=!1,v,S=-1;function w(){!b||!v||(b=!1,v.length?p=v.concat(p):S=-1,p.length&&T())}function T(){if(!b){var C=d(w);b=!0;for(var I=p.length;I;){for(v=p,p=[];++S1)for(var _=1;_1?p-1:0),v=1;v2?b-2:0),S=2;S0&&_.syncScrollPosition(_.panes[X][0],V),_.panes[X].push(V))}),_.addEvents(V,Q)},_.unregisterPane=function(V,Q){Q.forEach(function(X){_.findPane(V,X)&&(_.removeEvents(V),_.panes[X].splice(_.panes[X].indexOf(V),1))})},_.addEvents=function(V,Q){V.onscroll=_.handlePaneScroll.bind(_,V,Q)},_.removeEvents=function(V){V.onscroll=null},_.findPane=function(V,Q){return _.panes[Q]?_.panes[Q].find(function(X){return X===V}):!1},_.handlePaneScroll=function(V,Q){_.props.enabled&&window.requestAnimationFrame(function(){_.syncScrollPositions(V,Q)})},_.syncScrollPositions=function(V,Q){Q.forEach(function(X){_.panes[X].forEach(function(Y){V!==Y&&(_.removeEvents(Y,X),_.syncScrollPosition(V,Y),window.requestAnimationFrame(function(){_.addEvents(Y,Q)}))})}),_.props.onSync&&_.props.onSync(V)},I),S(_,A)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(I,_){var A=I.scrollTop,U=I.scrollHeight,F=I.clientHeight,P=I.scrollLeft,V=I.scrollWidth,Q=I.clientWidth,X=U-F,Y=V-Q,W=this.props,ee=W.proportional,J=W.vertical,K=W.horizontal,ne=_.scrollHeight-F,j=_.scrollWidth-Q;J&&X>0&&(_.scrollTop=ee?ne*A/X:A),K&&Y>0&&(_.scrollLeft=ee?j*P/Y:P)}},{key:"render",value:function(){return l.default.createElement(p.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);T.propTypes={onSync:d.default.func,children:d.default.element.isRequired,proportional:d.default.bool,vertical:d.default.bool,horizontal:d.default.bool,enabled:d.default.bool},T.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=T,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function T(x,k){for(var C=0;C"u"||ye===null)return""+ye;var te=K(ye);if(te==="object"){if(ye instanceof Date)return"date";if(ye instanceof RegExp)return"regexp"}return te}function j(ye){var te=ne(ye);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function Ce(ye){return!ye.constructor||!ye.constructor.name?T:ye.constructor.name}return x.checkPropTypes=h,x.PropTypes=x,x}}).call(i,a(0))}])})})(L0e);var xF=L0e.exports;function Wne(){const e=Af(),t=MN(),[n,r]=M.useState(),i=Sa(dE),a=Sa(SN),{mutateAsync:s}=GGe(),{mutateAsync:o}=ZGe(),l=M.useCallback(c=>{c&&r(c)},[]);return M.useEffect(()=>{var p;let c;if(!n||!i.doc||!i.client)return;const d=async b=>{if(!a.data)return"";const v=await s({workspaceId:a.data.id,contentLength:new Blob([b]).size,contentType:b.type});return await o({...v,file:b}),`https://codepair-api.yorkie.dev/files/${v.fileKey}`},h=Yr.create({doc:((p=i.doc.getRoot().content)==null?void 0:p.toString())??"",extensions:[TQe,yGe(),BGe(i.doc,i.client),t=="light"?jGe:WGe,hn.theme({"&":{width:"100%"}}),hn.lineWrapping,hE.of([VVe]),YGe,qGe(d,i.doc)]});return c=new hn({state:h,parent:n}),e(CFe(c)),()=>{c==null||c.destroy()}},[e,i.client,i.doc,n,t,a.data,s,o]),D.jsx(xF.ScrollSyncPane,{children:D.jsx("div",{style:{height:"100%",overflow:"auto"},children:D.jsx("div",{ref:l,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}})})})}function Jb(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Yj(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const XGe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KGe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JGe={};function Qne(e,t){return((t||JGe).jsx?KGe:XGe).test(e)}const eZe=/[ \t\n\f\r]/g;function $0e(e){return typeof e=="object"?e.type==="text"?Yne(e.value):!1:Yne(e)}function Yne(e){return e.replace(eZe,"")===""}class fC{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}fC.prototype.property={};fC.prototype.normal={};fC.prototype.space=null;function F0e(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&aZe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Gne,lZe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Gne.test(a)){let s=a.replace(sZe,oZe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=qj}return new i(r,t)}function oZe(e){return"-"+e.toLowerCase()}function lZe(e){return e.charAt(1).toUpperCase()}const uZe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Qg=F0e([z0e,U0e,V0e,W0e,rZe],"html"),Pf=F0e([z0e,U0e,V0e,W0e,iZe],"svg");function Rg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gj(e){return e.join(" ").trim()}var Q0e={},Zne=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,cZe=/\n/g,dZe=/^\s*/,fZe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,hZe=/^:\s*/,pZe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,mZe=/^[;\s]*/,gZe=/^\s+|\s+$/g,bZe=` -`,Xne="/",Kne="*",lb="",yZe="comment",vZe="declaration",OZe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(v){var S=v.match(cZe);S&&(n+=S.length);var w=v.lastIndexOf(bZe);r=~w?v.length-w:r+v.length}function a(){var v={line:n,column:r};return function(S){return S.position=new s(v),c(),S}}function s(v){this.start=v,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(v){var S=new Error(t.source+":"+n+":"+r+": "+v);if(S.reason=v,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(v){var S=v.exec(e);if(S){var w=S[0];return i(w),e=e.slice(w.length),S}}function c(){l(dZe)}function d(v){var S;for(v=v||[];S=h();)S!==!1&&v.push(S);return v}function h(){var v=a();if(!(Xne!=e.charAt(0)||Kne!=e.charAt(1))){for(var S=2;lb!=e.charAt(S)&&(Kne!=e.charAt(S)||Xne!=e.charAt(S+1));)++S;if(S+=2,lb===e.charAt(S-1))return o("End of comment missing");var w=e.slice(2,S-2);return r+=2,i(w),e=e.slice(S),r+=2,v({type:yZe,comment:w})}}function p(){var v=a(),S=l(fZe);if(S){if(h(),!l(hZe))return o("property missing ':'");var w=l(pZe),T=v({type:vZe,property:Jne(S[0].replace(Zne,lb)),value:w?Jne(w[0].replace(Zne,lb)):lb});return l(mZe),T}}function b(){var v=[];d(v);for(var S;S=p();)S!==!1&&(v.push(S),d(v));return v}return c(),b()};function Jne(e){return e?e.replace(gZe,lb):lb}var SZe=Th&&Th.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Q0e,"__esModule",{value:!0});var EZe=SZe(OZe);function wZe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,EZe.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var ere=Q0e.default=wZe;const TZe=ere.default||ere,LN=Y0e("end"),ip=Y0e("start");function Y0e(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xZe(e){const t=ip(e),n=LN(e);if(t&&n)return{start:t,end:n}}function AT(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tre(e.position):"start"in e||"end"in e?tre(e):"line"in e||"column"in e?CF(e):""}function CF(e){return nre(e&&e.line)+":"+nre(e&&e.column)}function tre(e){return CF(e&&e.start)+"-"+CF(e&&e.end)}function nre(e){return e&&typeof e=="number"?e:1}class Uo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=AT(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Uo.prototype.file="";Uo.prototype.name="";Uo.prototype.reason="";Uo.prototype.message="";Uo.prototype.stack="";Uo.prototype.column=void 0;Uo.prototype.line=void 0;Uo.prototype.ancestors=void 0;Uo.prototype.cause=void 0;Uo.prototype.fatal=void 0;Uo.prototype.place=void 0;Uo.prototype.ruleId=void 0;Uo.prototype.source=void 0;const Zj={}.hasOwnProperty,kZe=new Map,CZe=/[A-Z]/g,_Ze=/-([a-z])/g,AZe=new Set(["table","tbody","thead","tfoot","tr"]),RZe=new Set(["td","th"]),q0e="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function IZe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=BZe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=FZe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Pf:Qg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=G0e(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function G0e(e,t,n){if(t.type==="element")return DZe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return NZe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return MZe(e,t,n);if(t.type==="mdxjsEsm")return PZe(e,t);if(t.type==="root")return LZe(e,t,n);if(t.type==="text")return $Ze(e,t)}function DZe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Pf,e.schema=i),e.ancestors.push(t);const a=X0e(e,t.tagName,!1),s=UZe(e,t);let o=Kj(e,t);return AZe.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!$0e(l):!0})),Z0e(e,s,a,t),Xj(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function NZe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xx(e,t.position)}function PZe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xx(e,t.position)}function MZe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Pf,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:X0e(e,t.name,!0),s=zZe(e,t),o=Kj(e,t);return Z0e(e,s,a,t),Xj(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function LZe(e,t,n){const r={};return Xj(r,Kj(e,t)),e.create(t,e.Fragment,r,n)}function $Ze(e,t){return t.value}function Z0e(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xj(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function FZe(e,t,n){return r;function r(i,a,s,o){const c=Array.isArray(s.children)?n:t;return o?c(a,s,o):c(a,s)}}function BZe(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=ip(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function UZe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Zj.call(t.properties,i)){const a=jZe(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&RZe.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function zZe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Xx(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Xx(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Kj(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:kZe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(cc(e,e.length,0,t),e):t}const are={}.hasOwnProperty;function J0e(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cl=Yg(/[A-Za-z]/),No=Yg(/[\dA-Za-z]/),KZe=Yg(/[#-'*+\--9=?A-Z^-~]/);function hI(e){return e!==null&&(e<32||e===127)}const _F=Yg(/\d/),JZe=Yg(/[\dA-Fa-f]/),eXe=Yg(/[!-/:-@[-`{-~]/);function Mn(e){return e!==null&&e<-2}function Ai(e){return e!==null&&(e<0||e===32)}function Lr(e){return e===-2||e===-1||e===32}const $N=Yg(new RegExp("\\p{P}|\\p{S}","u")),ey=Yg(/\s/);function Yg(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function OE(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ar(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Lr(l)?(e.enter(n),o(l)):t(l)}function o(l){return Lr(l)&&a++s))return;const A=t.events.length;let U=A,F,P;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(F){P=t.events[U][1].end;break}F=!0}for(T(r),_=A;_k;){const I=n[C];t.containerState=I[1],I[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function aXe(e,t,n){return Ar(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function pI(e){if(e===null||Ai(e)||ey(e))return 1;if($N(e))return 2}function FN(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);ore(h,-l),ore(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=td(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=td(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=td(c,FN(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=td(c,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=td(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,cc(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n0&&Lr(_)?Ar(e,x,"linePrefix",a+1)(_):x(_)}function x(_){return _===null||Mn(_)?e.check(lre,S,C)(_):(e.enter("codeFlowValue"),k(_))}function k(_){return _===null||Mn(_)?(e.exit("codeFlowValue"),x(_)):(e.consume(_),k)}function C(_){return e.exit("codeFenced"),t(_)}function I(_,A,U){let F=0;return P;function P(W){return _.enter("lineEnding"),_.consume(W),_.exit("lineEnding"),V}function V(W){return _.enter("codeFencedFence"),Lr(W)?Ar(_,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Q(W)}function Q(W){return W===o?(_.enter("codeFencedFenceSequence"),X(W)):U(W)}function X(W){return W===o?(F++,_.consume(W),X):F>=s?(_.exit("codeFencedFenceSequence"),Lr(W)?Ar(_,Y,"whitespace")(W):Y(W)):U(W)}function Y(W){return W===null||Mn(W)?(_.exit("codeFencedFence"),A(W)):U(W)}}}function bXe(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const AM={name:"codeIndented",tokenize:vXe},yXe={tokenize:OXe,partial:!0};function vXe(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Ar(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):Mn(c)?e.attempt(yXe,s,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||Mn(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function OXe(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ar(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Mn(s)?i(s):n(s)}}const SXe={name:"codeText",tokenize:TXe,resolve:EXe,previous:wXe};function EXe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function age(e,t,n,r,i,a,s,o,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return h;function h(T){return T===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(T),e.exit(a),p):T===null||T===32||T===41||hI(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(T))}function p(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===62?(e.exit("chunkString"),e.exit(o),p(T)):T===null||T===60||Mn(T)?n(T):(e.consume(T),T===92?v:b)}function v(T){return T===60||T===62||T===92?(e.consume(T),b):b(T)}function S(T){return!d&&(T===null||T===41||Ai(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):d999||b===null||b===91||b===93&&!l||b===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(b):b===93?(e.exit(a),e.enter(i),e.consume(b),e.exit(i),e.exit(r),t):Mn(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||b===91||b===93||Mn(b)||o++>999?(e.exit("chunkString"),d(b)):(e.consume(b),l||(l=!Lr(b)),b===92?p:h)}function p(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}}function oge(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),c(p))}function c(p){return p===s?(e.exit(a),l(s)):p===null?n(p):Mn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ar(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||Mn(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?h:d)}function h(p){return p===s||p===92?(e.consume(p),d):d(p)}}function RT(e,t){let n;return r;function r(i){return Mn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Lr(i)?Ar(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const IXe={name:"definition",tokenize:NXe},DXe={tokenize:PXe,partial:!0};function NXe(e,t,n){const r=this;let i;return a;function a(b){return e.enter("definition"),s(b)}function s(b){return sge.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function o(b){return i=yf(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),l):n(b)}function l(b){return Ai(b)?RT(e,c)(b):c(b)}function c(b){return age(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function d(b){return e.attempt(DXe,h,h)(b)}function h(b){return Lr(b)?Ar(e,p,"whitespace")(b):p(b)}function p(b){return b===null||Mn(b)?(e.exit("definition"),r.parser.defined.push(i),t(b)):n(b)}}function PXe(e,t,n){return r;function r(o){return Ai(o)?RT(e,i)(o):n(o)}function i(o){return oge(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Lr(o)?Ar(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Mn(o)?t(o):n(o)}}const MXe={name:"hardBreakEscape",tokenize:LXe};function LXe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Mn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const $Xe={name:"headingAtx",tokenize:BXe,resolve:FXe};function FXe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},cc(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function BXe(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Ai(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||Mn(d)?(e.exit("atxHeading"),t(d)):Lr(d)?Ar(e,o,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function c(d){return d===null||d===35||Ai(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),c)}}const UXe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],cre=["pre","script","style","textarea"],zXe={name:"htmlFlow",tokenize:WXe,resolveTo:VXe,concrete:!0},jXe={tokenize:YXe,partial:!0},HXe={tokenize:QXe,partial:!0};function VXe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function WXe(e,t,n){const r=this;let i,a,s,o,l;return c;function c(te){return d(te)}function d(te){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(te),h}function h(te){return te===33?(e.consume(te),p):te===47?(e.consume(te),a=!0,S):te===63?(e.consume(te),i=3,r.interrupt?t:j):cl(te)?(e.consume(te),s=String.fromCharCode(te),w):n(te)}function p(te){return te===45?(e.consume(te),i=2,b):te===91?(e.consume(te),i=5,o=0,v):cl(te)?(e.consume(te),i=4,r.interrupt?t:j):n(te)}function b(te){return te===45?(e.consume(te),r.interrupt?t:j):n(te)}function v(te){const ve="CDATA[";return te===ve.charCodeAt(o++)?(e.consume(te),o===ve.length?r.interrupt?t:Q:v):n(te)}function S(te){return cl(te)?(e.consume(te),s=String.fromCharCode(te),w):n(te)}function w(te){if(te===null||te===47||te===62||Ai(te)){const ve=te===47,Se=s.toLowerCase();return!ve&&!a&&cre.includes(Se)?(i=1,r.interrupt?t(te):Q(te)):UXe.includes(s.toLowerCase())?(i=6,ve?(e.consume(te),T):r.interrupt?t(te):Q(te)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(te):a?x(te):k(te))}return te===45||No(te)?(e.consume(te),s+=String.fromCharCode(te),w):n(te)}function T(te){return te===62?(e.consume(te),r.interrupt?t:Q):n(te)}function x(te){return Lr(te)?(e.consume(te),x):P(te)}function k(te){return te===47?(e.consume(te),P):te===58||te===95||cl(te)?(e.consume(te),C):Lr(te)?(e.consume(te),k):P(te)}function C(te){return te===45||te===46||te===58||te===95||No(te)?(e.consume(te),C):I(te)}function I(te){return te===61?(e.consume(te),_):Lr(te)?(e.consume(te),I):k(te)}function _(te){return te===null||te===60||te===61||te===62||te===96?n(te):te===34||te===39?(e.consume(te),l=te,A):Lr(te)?(e.consume(te),_):U(te)}function A(te){return te===l?(e.consume(te),l=null,F):te===null||Mn(te)?n(te):(e.consume(te),A)}function U(te){return te===null||te===34||te===39||te===47||te===60||te===61||te===62||te===96||Ai(te)?I(te):(e.consume(te),U)}function F(te){return te===47||te===62||Lr(te)?k(te):n(te)}function P(te){return te===62?(e.consume(te),V):n(te)}function V(te){return te===null||Mn(te)?Q(te):Lr(te)?(e.consume(te),V):n(te)}function Q(te){return te===45&&i===2?(e.consume(te),ee):te===60&&i===1?(e.consume(te),J):te===62&&i===4?(e.consume(te),Ce):te===63&&i===3?(e.consume(te),j):te===93&&i===5?(e.consume(te),ne):Mn(te)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jXe,ye,X)(te)):te===null||Mn(te)?(e.exit("htmlFlowData"),X(te)):(e.consume(te),Q)}function X(te){return e.check(HXe,Y,ye)(te)}function Y(te){return e.enter("lineEnding"),e.consume(te),e.exit("lineEnding"),W}function W(te){return te===null||Mn(te)?X(te):(e.enter("htmlFlowData"),Q(te))}function ee(te){return te===45?(e.consume(te),j):Q(te)}function J(te){return te===47?(e.consume(te),s="",K):Q(te)}function K(te){if(te===62){const ve=s.toLowerCase();return cre.includes(ve)?(e.consume(te),Ce):Q(te)}return cl(te)&&s.length<8?(e.consume(te),s+=String.fromCharCode(te),K):Q(te)}function ne(te){return te===93?(e.consume(te),j):Q(te)}function j(te){return te===62?(e.consume(te),Ce):te===45&&i===2?(e.consume(te),j):Q(te)}function Ce(te){return te===null||Mn(te)?(e.exit("htmlFlowData"),ye(te)):(e.consume(te),Ce)}function ye(te){return e.exit("htmlFlow"),t(te)}}function QXe(e,t,n){const r=this;return i;function i(s){return Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function YXe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(hC,t,n)}}const qXe={name:"htmlText",tokenize:GXe};function GXe(e,t,n){const r=this;let i,a,s;return o;function o(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),c):j===47?(e.consume(j),I):j===63?(e.consume(j),k):cl(j)?(e.consume(j),U):n(j)}function c(j){return j===45?(e.consume(j),d):j===91?(e.consume(j),a=0,v):cl(j)?(e.consume(j),x):n(j)}function d(j){return j===45?(e.consume(j),b):n(j)}function h(j){return j===null?n(j):j===45?(e.consume(j),p):Mn(j)?(s=h,J(j)):(e.consume(j),h)}function p(j){return j===45?(e.consume(j),b):h(j)}function b(j){return j===62?ee(j):j===45?p(j):h(j)}function v(j){const Ce="CDATA[";return j===Ce.charCodeAt(a++)?(e.consume(j),a===Ce.length?S:v):n(j)}function S(j){return j===null?n(j):j===93?(e.consume(j),w):Mn(j)?(s=S,J(j)):(e.consume(j),S)}function w(j){return j===93?(e.consume(j),T):S(j)}function T(j){return j===62?ee(j):j===93?(e.consume(j),T):S(j)}function x(j){return j===null||j===62?ee(j):Mn(j)?(s=x,J(j)):(e.consume(j),x)}function k(j){return j===null?n(j):j===63?(e.consume(j),C):Mn(j)?(s=k,J(j)):(e.consume(j),k)}function C(j){return j===62?ee(j):k(j)}function I(j){return cl(j)?(e.consume(j),_):n(j)}function _(j){return j===45||No(j)?(e.consume(j),_):A(j)}function A(j){return Mn(j)?(s=A,J(j)):Lr(j)?(e.consume(j),A):ee(j)}function U(j){return j===45||No(j)?(e.consume(j),U):j===47||j===62||Ai(j)?F(j):n(j)}function F(j){return j===47?(e.consume(j),ee):j===58||j===95||cl(j)?(e.consume(j),P):Mn(j)?(s=F,J(j)):Lr(j)?(e.consume(j),F):ee(j)}function P(j){return j===45||j===46||j===58||j===95||No(j)?(e.consume(j),P):V(j)}function V(j){return j===61?(e.consume(j),Q):Mn(j)?(s=V,J(j)):Lr(j)?(e.consume(j),V):F(j)}function Q(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,X):Mn(j)?(s=Q,J(j)):Lr(j)?(e.consume(j),Q):(e.consume(j),Y)}function X(j){return j===i?(e.consume(j),i=void 0,W):j===null?n(j):Mn(j)?(s=X,J(j)):(e.consume(j),X)}function Y(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||Ai(j)?F(j):(e.consume(j),Y)}function W(j){return j===47||j===62||Ai(j)?F(j):n(j)}function ee(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function J(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),K}function K(j){return Lr(j)?Ar(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):ne(j)}function ne(j){return e.enter("htmlTextData"),s(j)}}const eH={name:"labelEnd",tokenize:tKe,resolveTo:eKe,resolveAll:JXe},ZXe={tokenize:nKe},XXe={tokenize:rKe},KXe={tokenize:iKe};function JXe(e){let t=-1;for(;++t=3&&(c===null||Mn(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Lr(c)?Ar(e,o,"whitespace")(c):o(c))}}const Ql={name:"list",tokenize:hKe,continuation:{tokenize:pKe},exit:gKe},dKe={tokenize:bKe,partial:!0},fKe={tokenize:mKe,partial:!0};function hKe(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(b){const v=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:_F(b)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(m5,n,c)(b):c(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(b)}return n(b)}function l(b){return _F(b)&&++s<10?(e.consume(b),l):(!r.interrupt||s<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),c(b)):n(b)}function c(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(hC,r.interrupt?n:d,e.attempt(dKe,p,h))}function d(b){return r.containerState.initialBlankLine=!0,a++,p(b)}function h(b){return Lr(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),p):n(b)}function p(b){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function pKe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(hC,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ar(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Lr(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(fKe,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ar(e,e.attempt(Ql,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function mKe(e,t,n){const r=this;return Ar(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function gKe(e){e.exit(this.containerState.type)}function bKe(e,t,n){const r=this;return Ar(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Lr(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const dre={name:"setextUnderline",tokenize:vKe,resolveTo:yKe};function yKe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function vKe(e,t,n){const r=this;let i;return a;function a(c){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),Lr(c)?Ar(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Mn(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const OKe={tokenize:SKe};function SKe(e){const t=this,n=e.attempt(hC,r,e.attempt(this.parser.constructs.flowInitial,i,Ar(e,e.attempt(this.parser.constructs.flow,i,e.attempt(kXe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const EKe={resolveAll:uge()},wKe=lge("string"),TKe=lge("text");function lge(e){return{tokenize:t,resolveAll:uge(e==="text"?xKe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(d){return c(d)?a(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const h=i[d];let p=-1;if(h)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function _Ke(e,t){let n=-1;const r=[];let i;for(;++n{l.content.edit(i,a,s),c.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},WZe=(e,t)=>hn.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||nre(n.clipboardData.files,e).then(s=>s.forEach(o=>rre(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||nre(n.dataTransfer.files,e).then(s=>s.forEach(o=>rre(o,r,t)))}}),QZe=()=>Vg({mutationFn:async e=>(await Ir.post("/files",e)).data}),YZe=()=>Vg({mutationFn:async e=>Ir.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})});var K0e={exports:{}};(function(e,t){(function(r,i){e.exports=i(P)})(Th,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=c}catch{o=c}})();function d(C){if(s===setTimeout)return setTimeout(C,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(C,0);try{return s(C,0)}catch{try{return s.call(null,C,0)}catch{return s.call(this,C,0)}}}function h(C){if(o===clearTimeout)return clearTimeout(C);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(C);try{return o(C)}catch{try{return o.call(null,C)}catch{return o.call(this,C)}}}var p=[],b=!1,v,S=-1;function w(){!b||!v||(b=!1,v.length?p=v.concat(p):S=-1,p.length&&T())}function T(){if(!b){var C=d(w);b=!0;for(var I=p.length;I;){for(v=p,p=[];++S1)for(var _=1;_1?p-1:0),v=1;v2?b-2:0),S=2;S0&&_.syncScrollPosition(_.panes[X][0],V),_.panes[X].push(V))}),_.addEvents(V,Q)},_.unregisterPane=function(V,Q){Q.forEach(function(X){_.findPane(V,X)&&(_.removeEvents(V),_.panes[X].splice(_.panes[X].indexOf(V),1))})},_.addEvents=function(V,Q){V.onscroll=_.handlePaneScroll.bind(_,V,Q)},_.removeEvents=function(V){V.onscroll=null},_.findPane=function(V,Q){return _.panes[Q]?_.panes[Q].find(function(X){return X===V}):!1},_.handlePaneScroll=function(V,Q){_.props.enabled&&window.requestAnimationFrame(function(){_.syncScrollPositions(V,Q)})},_.syncScrollPositions=function(V,Q){Q.forEach(function(X){_.panes[X].forEach(function(Y){V!==Y&&(_.removeEvents(Y,X),_.syncScrollPosition(V,Y),window.requestAnimationFrame(function(){_.addEvents(Y,Q)}))})}),_.props.onSync&&_.props.onSync(V)},I),S(_,A)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(I,_){var A=I.scrollTop,U=I.scrollHeight,F=I.clientHeight,M=I.scrollLeft,V=I.scrollWidth,Q=I.clientWidth,X=U-F,Y=V-Q,W=this.props,ee=W.proportional,J=W.vertical,K=W.horizontal,ne=_.scrollHeight-F,j=_.scrollWidth-Q;J&&X>0&&(_.scrollTop=ee?ne*A/X:A),K&&Y>0&&(_.scrollLeft=ee?j*M/Y:M)}},{key:"render",value:function(){return l.default.createElement(p.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);T.propTypes={onSync:d.default.func,children:d.default.element.isRequired,proportional:d.default.bool,vertical:d.default.bool,horizontal:d.default.bool,enabled:d.default.bool},T.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=T,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function T(x,k){for(var C=0;C"u"||ye===null)return""+ye;var te=K(ye);if(te==="object"){if(ye instanceof Date)return"date";if(ye instanceof RegExp)return"regexp"}return te}function j(ye){var te=ne(ye);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function Ce(ye){return!ye.constructor||!ye.constructor.name?T:ye.constructor.name}return x.checkPropTypes=h,x.PropTypes=x,x}}).call(i,a(0))}])})})(K0e);var xF=K0e.exports;function ire(){const e=kd(),t=bC(),[n,r]=P.useState(),i=Ki(fE),a=Ki(aC),{mutateAsync:s}=QZe(),{mutateAsync:o}=YZe(),l=P.useCallback(c=>{c&&r(c)},[]);return P.useEffect(()=>{var p;let c;if(!n||!i.doc||!i.client)return;const d=async b=>{if(!a.data)return"";const v=await s({workspaceId:a.data.id,contentLength:new Blob([b]).size,contentType:b.type});return await o({...v,file:b}),`https://codepair-api.yorkie.dev/files/${v.fileKey}`},h=qr.create({doc:((p=i.doc.getRoot().content)==null?void 0:p.toString())??"",extensions:[SYe,mZe(),LZe(i.doc,i.client),t=="light"?BZe:jZe,hn.theme({"&":{width:"100%"}}),hn.lineWrapping,pE.of([zWe]),VZe,WZe(d,i.doc)]});return c=new hn({state:h,parent:n}),e(TBe(c)),()=>{c==null||c.destroy()}},[e,i.client,i.doc,n,t,a.data,s,o]),D.jsx(xF.ScrollSyncPane,{children:D.jsx("div",{style:{height:"100%",overflow:"auto"},children:D.jsx("div",{ref:l,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}})})})}function ty(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Xj(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const qZe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GZe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZZe={};function are(e,t){return((t||ZZe).jsx?GZe:qZe).test(e)}const XZe=/[ \t\n\f\r]/g;function J0e(e){return typeof e=="object"?e.type==="text"?sre(e.value):!1:sre(e)}function sre(e){return e.replace(XZe,"")===""}class yC{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}yC.prototype.property={};yC.prototype.normal={};yC.prototype.space=null;function ege(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&nXe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(lre,aXe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!lre.test(a)){let s=a.replace(rXe,iXe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Kj}return new i(r,t)}function iXe(e){return"-"+e.toLowerCase()}function aXe(e){return e.charAt(1).toUpperCase()}const sXe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Yg=ege([rge,nge,sge,oge,eXe],"html"),Pf=ege([rge,nge,sge,oge,tXe],"svg");function Ag(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Jj(e){return e.join(" ").trim()}var lge={},ure=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oXe=/\n/g,lXe=/^\s*/,uXe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,cXe=/^:\s*/,dXe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,fXe=/^[;\s]*/,hXe=/^\s+|\s+$/g,pXe=` +`,cre="/",dre="*",ub="",mXe="comment",gXe="declaration",bXe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(v){var S=v.match(oXe);S&&(n+=S.length);var w=v.lastIndexOf(pXe);r=~w?v.length-w:r+v.length}function a(){var v={line:n,column:r};return function(S){return S.position=new s(v),c(),S}}function s(v){this.start=v,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(v){var S=new Error(t.source+":"+n+":"+r+": "+v);if(S.reason=v,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(v){var S=v.exec(e);if(S){var w=S[0];return i(w),e=e.slice(w.length),S}}function c(){l(lXe)}function d(v){var S;for(v=v||[];S=h();)S!==!1&&v.push(S);return v}function h(){var v=a();if(!(cre!=e.charAt(0)||dre!=e.charAt(1))){for(var S=2;ub!=e.charAt(S)&&(dre!=e.charAt(S)||cre!=e.charAt(S+1));)++S;if(S+=2,ub===e.charAt(S-1))return o("End of comment missing");var w=e.slice(2,S-2);return r+=2,i(w),e=e.slice(S),r+=2,v({type:mXe,comment:w})}}function p(){var v=a(),S=l(uXe);if(S){if(h(),!l(cXe))return o("property missing ':'");var w=l(dXe),T=v({type:gXe,property:fre(S[0].replace(ure,ub)),value:w?fre(w[0].replace(ure,ub)):ub});return l(fXe),T}}function b(){var v=[];d(v);for(var S;S=p();)S!==!1&&(v.push(S),d(v));return v}return c(),b()};function fre(e){return e?e.replace(hXe,ub):ub}var yXe=Th&&Th.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lge,"__esModule",{value:!0});var vXe=yXe(bXe);function OXe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,vXe.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var hre=lge.default=OXe;const SXe=hre.default||hre,LN=uge("end"),ap=uge("start");function uge(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function EXe(e){const t=ap(e),n=LN(e);if(t&&n)return{start:t,end:n}}function R2(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?pre(e.position):"start"in e||"end"in e?pre(e):"line"in e||"column"in e?CF(e):""}function CF(e){return mre(e&&e.line)+":"+mre(e&&e.column)}function pre(e){return CF(e&&e.start)+"-"+CF(e&&e.end)}function mre(e){return e&&typeof e=="number"?e:1}class Uo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=R2(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Uo.prototype.file="";Uo.prototype.name="";Uo.prototype.reason="";Uo.prototype.message="";Uo.prototype.stack="";Uo.prototype.column=void 0;Uo.prototype.line=void 0;Uo.prototype.ancestors=void 0;Uo.prototype.cause=void 0;Uo.prototype.fatal=void 0;Uo.prototype.place=void 0;Uo.prototype.ruleId=void 0;Uo.prototype.source=void 0;const eH={}.hasOwnProperty,wXe=new Map,TXe=/[A-Z]/g,xXe=/-([a-z])/g,kXe=new Set(["table","tbody","thead","tfoot","tr"]),CXe=new Set(["td","th"]),cge="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _Xe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=LXe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=MXe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Pf:Yg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=dge(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function dge(e,t,n){if(t.type==="element")return AXe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return RXe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return DXe(e,t,n);if(t.type==="mdxjsEsm")return IXe(e,t);if(t.type==="root")return NXe(e,t,n);if(t.type==="text")return PXe(e,t)}function AXe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Pf,e.schema=i),e.ancestors.push(t);const a=hge(e,t.tagName,!1),s=$Xe(e,t);let o=nH(e,t);return kXe.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!J0e(l):!0})),fge(e,s,a,t),tH(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function RXe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Jx(e,t.position)}function IXe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Jx(e,t.position)}function DXe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Pf,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:hge(e,t.name,!0),s=FXe(e,t),o=nH(e,t);return fge(e,s,a,t),tH(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function NXe(e,t,n){const r={};return tH(r,nH(e,t)),e.create(t,e.Fragment,r,n)}function PXe(e,t){return t.value}function fge(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tH(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function MXe(e,t,n){return r;function r(i,a,s,o){const c=Array.isArray(s.children)?n:t;return o?c(a,s,o):c(a,s)}}function LXe(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=ap(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function $Xe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&eH.call(t.properties,i)){const a=BXe(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&CXe.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function FXe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Jx(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Jx(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function nH(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:wXe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(cc(e,e.length,0,t),e):t}const yre={}.hasOwnProperty;function mge(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function vf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cl=qg(/[A-Za-z]/),No=qg(/[\dA-Za-z]/),GXe=qg(/[#-'*+\--9=?A-Z^-~]/);function yI(e){return e!==null&&(e<32||e===127)}const _F=qg(/\d/),ZXe=qg(/[\dA-Fa-f]/),XXe=qg(/[!-/:-@[-`{-~]/);function Ln(e){return e!==null&&e<-2}function Ai(e){return e!==null&&(e<0||e===32)}function $r(e){return e===-2||e===-1||e===32}const $N=qg(new RegExp("\\p{P}|\\p{S}","u")),ny=qg(/\s/);function qg(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function SE(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Rr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return $r(l)?(e.enter(n),o(l)):t(l)}function o(l){return $r(l)&&a++s))return;const A=t.events.length;let U=A,F,M;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(F){M=t.events[U][1].end;break}F=!0}for(T(r),_=A;_k;){const I=n[C];t.containerState=I[1],I[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function nKe(e,t,n){return Rr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vI(e){if(e===null||Ai(e)||ny(e))return 1;if($N(e))return 2}function FN(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Ore(h,-l),Ore(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=td(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=td(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=td(c,FN(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=td(c,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=td(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,cc(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n0&&$r(_)?Rr(e,x,"linePrefix",a+1)(_):x(_)}function x(_){return _===null||Ln(_)?e.check(Sre,S,C)(_):(e.enter("codeFlowValue"),k(_))}function k(_){return _===null||Ln(_)?(e.exit("codeFlowValue"),x(_)):(e.consume(_),k)}function C(_){return e.exit("codeFenced"),t(_)}function I(_,A,U){let F=0;return M;function M(W){return _.enter("lineEnding"),_.consume(W),_.exit("lineEnding"),V}function V(W){return _.enter("codeFencedFence"),$r(W)?Rr(_,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Q(W)}function Q(W){return W===o?(_.enter("codeFencedFenceSequence"),X(W)):U(W)}function X(W){return W===o?(F++,_.consume(W),X):F>=s?(_.exit("codeFencedFenceSequence"),$r(W)?Rr(_,Y,"whitespace")(W):Y(W)):U(W)}function Y(W){return W===null||Ln(W)?(_.exit("codeFencedFence"),A(W)):U(W)}}}function pKe(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const AM={name:"codeIndented",tokenize:gKe},mKe={tokenize:bKe,partial:!0};function gKe(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Rr(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):Ln(c)?e.attempt(mKe,s,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||Ln(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function bKe(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Ln(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Rr(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Ln(s)?i(s):n(s)}}const yKe={name:"codeText",tokenize:SKe,resolve:vKe,previous:OKe};function vKe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Sge(e,t,n,r,i,a,s,o,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return h;function h(T){return T===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(T),e.exit(a),p):T===null||T===32||T===41||yI(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(T))}function p(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===62?(e.exit("chunkString"),e.exit(o),p(T)):T===null||T===60||Ln(T)?n(T):(e.consume(T),T===92?v:b)}function v(T){return T===60||T===62||T===92?(e.consume(T),b):b(T)}function S(T){return!d&&(T===null||T===41||Ai(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):d999||b===null||b===91||b===93&&!l||b===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(b):b===93?(e.exit(a),e.enter(i),e.consume(b),e.exit(i),e.exit(r),t):Ln(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||b===91||b===93||Ln(b)||o++>999?(e.exit("chunkString"),d(b)):(e.consume(b),l||(l=!$r(b)),b===92?p:h)}function p(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}}function wge(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),c(p))}function c(p){return p===s?(e.exit(a),l(s)):p===null?n(p):Ln(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Rr(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||Ln(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?h:d)}function h(p){return p===s||p===92?(e.consume(p),d):d(p)}}function I2(e,t){let n;return r;function r(i){return Ln(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):$r(i)?Rr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const _Ke={name:"definition",tokenize:RKe},AKe={tokenize:IKe,partial:!0};function RKe(e,t,n){const r=this;let i;return a;function a(b){return e.enter("definition"),s(b)}function s(b){return Ege.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function o(b){return i=vf(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),l):n(b)}function l(b){return Ai(b)?I2(e,c)(b):c(b)}function c(b){return Sge(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function d(b){return e.attempt(AKe,h,h)(b)}function h(b){return $r(b)?Rr(e,p,"whitespace")(b):p(b)}function p(b){return b===null||Ln(b)?(e.exit("definition"),r.parser.defined.push(i),t(b)):n(b)}}function IKe(e,t,n){return r;function r(o){return Ai(o)?I2(e,i)(o):n(o)}function i(o){return wge(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return $r(o)?Rr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Ln(o)?t(o):n(o)}}const DKe={name:"hardBreakEscape",tokenize:NKe};function NKe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ln(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const PKe={name:"headingAtx",tokenize:LKe,resolve:MKe};function MKe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},cc(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function LKe(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Ai(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||Ln(d)?(e.exit("atxHeading"),t(d)):$r(d)?Rr(e,o,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function c(d){return d===null||d===35||Ai(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),c)}}const $Ke=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wre=["pre","script","style","textarea"],FKe={name:"htmlFlow",tokenize:jKe,resolveTo:zKe,concrete:!0},BKe={tokenize:VKe,partial:!0},UKe={tokenize:HKe,partial:!0};function zKe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function jKe(e,t,n){const r=this;let i,a,s,o,l;return c;function c(te){return d(te)}function d(te){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(te),h}function h(te){return te===33?(e.consume(te),p):te===47?(e.consume(te),a=!0,S):te===63?(e.consume(te),i=3,r.interrupt?t:j):cl(te)?(e.consume(te),s=String.fromCharCode(te),w):n(te)}function p(te){return te===45?(e.consume(te),i=2,b):te===91?(e.consume(te),i=5,o=0,v):cl(te)?(e.consume(te),i=4,r.interrupt?t:j):n(te)}function b(te){return te===45?(e.consume(te),r.interrupt?t:j):n(te)}function v(te){const ve="CDATA[";return te===ve.charCodeAt(o++)?(e.consume(te),o===ve.length?r.interrupt?t:Q:v):n(te)}function S(te){return cl(te)?(e.consume(te),s=String.fromCharCode(te),w):n(te)}function w(te){if(te===null||te===47||te===62||Ai(te)){const ve=te===47,Se=s.toLowerCase();return!ve&&!a&&wre.includes(Se)?(i=1,r.interrupt?t(te):Q(te)):$Ke.includes(s.toLowerCase())?(i=6,ve?(e.consume(te),T):r.interrupt?t(te):Q(te)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(te):a?x(te):k(te))}return te===45||No(te)?(e.consume(te),s+=String.fromCharCode(te),w):n(te)}function T(te){return te===62?(e.consume(te),r.interrupt?t:Q):n(te)}function x(te){return $r(te)?(e.consume(te),x):M(te)}function k(te){return te===47?(e.consume(te),M):te===58||te===95||cl(te)?(e.consume(te),C):$r(te)?(e.consume(te),k):M(te)}function C(te){return te===45||te===46||te===58||te===95||No(te)?(e.consume(te),C):I(te)}function I(te){return te===61?(e.consume(te),_):$r(te)?(e.consume(te),I):k(te)}function _(te){return te===null||te===60||te===61||te===62||te===96?n(te):te===34||te===39?(e.consume(te),l=te,A):$r(te)?(e.consume(te),_):U(te)}function A(te){return te===l?(e.consume(te),l=null,F):te===null||Ln(te)?n(te):(e.consume(te),A)}function U(te){return te===null||te===34||te===39||te===47||te===60||te===61||te===62||te===96||Ai(te)?I(te):(e.consume(te),U)}function F(te){return te===47||te===62||$r(te)?k(te):n(te)}function M(te){return te===62?(e.consume(te),V):n(te)}function V(te){return te===null||Ln(te)?Q(te):$r(te)?(e.consume(te),V):n(te)}function Q(te){return te===45&&i===2?(e.consume(te),ee):te===60&&i===1?(e.consume(te),J):te===62&&i===4?(e.consume(te),Ce):te===63&&i===3?(e.consume(te),j):te===93&&i===5?(e.consume(te),ne):Ln(te)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(BKe,ye,X)(te)):te===null||Ln(te)?(e.exit("htmlFlowData"),X(te)):(e.consume(te),Q)}function X(te){return e.check(UKe,Y,ye)(te)}function Y(te){return e.enter("lineEnding"),e.consume(te),e.exit("lineEnding"),W}function W(te){return te===null||Ln(te)?X(te):(e.enter("htmlFlowData"),Q(te))}function ee(te){return te===45?(e.consume(te),j):Q(te)}function J(te){return te===47?(e.consume(te),s="",K):Q(te)}function K(te){if(te===62){const ve=s.toLowerCase();return wre.includes(ve)?(e.consume(te),Ce):Q(te)}return cl(te)&&s.length<8?(e.consume(te),s+=String.fromCharCode(te),K):Q(te)}function ne(te){return te===93?(e.consume(te),j):Q(te)}function j(te){return te===62?(e.consume(te),Ce):te===45&&i===2?(e.consume(te),j):Q(te)}function Ce(te){return te===null||Ln(te)?(e.exit("htmlFlowData"),ye(te)):(e.consume(te),Ce)}function ye(te){return e.exit("htmlFlow"),t(te)}}function HKe(e,t,n){const r=this;return i;function i(s){return Ln(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function VKe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(vC,t,n)}}const WKe={name:"htmlText",tokenize:QKe};function QKe(e,t,n){const r=this;let i,a,s;return o;function o(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),c):j===47?(e.consume(j),I):j===63?(e.consume(j),k):cl(j)?(e.consume(j),U):n(j)}function c(j){return j===45?(e.consume(j),d):j===91?(e.consume(j),a=0,v):cl(j)?(e.consume(j),x):n(j)}function d(j){return j===45?(e.consume(j),b):n(j)}function h(j){return j===null?n(j):j===45?(e.consume(j),p):Ln(j)?(s=h,J(j)):(e.consume(j),h)}function p(j){return j===45?(e.consume(j),b):h(j)}function b(j){return j===62?ee(j):j===45?p(j):h(j)}function v(j){const Ce="CDATA[";return j===Ce.charCodeAt(a++)?(e.consume(j),a===Ce.length?S:v):n(j)}function S(j){return j===null?n(j):j===93?(e.consume(j),w):Ln(j)?(s=S,J(j)):(e.consume(j),S)}function w(j){return j===93?(e.consume(j),T):S(j)}function T(j){return j===62?ee(j):j===93?(e.consume(j),T):S(j)}function x(j){return j===null||j===62?ee(j):Ln(j)?(s=x,J(j)):(e.consume(j),x)}function k(j){return j===null?n(j):j===63?(e.consume(j),C):Ln(j)?(s=k,J(j)):(e.consume(j),k)}function C(j){return j===62?ee(j):k(j)}function I(j){return cl(j)?(e.consume(j),_):n(j)}function _(j){return j===45||No(j)?(e.consume(j),_):A(j)}function A(j){return Ln(j)?(s=A,J(j)):$r(j)?(e.consume(j),A):ee(j)}function U(j){return j===45||No(j)?(e.consume(j),U):j===47||j===62||Ai(j)?F(j):n(j)}function F(j){return j===47?(e.consume(j),ee):j===58||j===95||cl(j)?(e.consume(j),M):Ln(j)?(s=F,J(j)):$r(j)?(e.consume(j),F):ee(j)}function M(j){return j===45||j===46||j===58||j===95||No(j)?(e.consume(j),M):V(j)}function V(j){return j===61?(e.consume(j),Q):Ln(j)?(s=V,J(j)):$r(j)?(e.consume(j),V):F(j)}function Q(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,X):Ln(j)?(s=Q,J(j)):$r(j)?(e.consume(j),Q):(e.consume(j),Y)}function X(j){return j===i?(e.consume(j),i=void 0,W):j===null?n(j):Ln(j)?(s=X,J(j)):(e.consume(j),X)}function Y(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||Ai(j)?F(j):(e.consume(j),Y)}function W(j){return j===47||j===62||Ai(j)?F(j):n(j)}function ee(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function J(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),K}function K(j){return $r(j)?Rr(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):ne(j)}function ne(j){return e.enter("htmlTextData"),s(j)}}const iH={name:"labelEnd",tokenize:KKe,resolveTo:XKe,resolveAll:ZKe},YKe={tokenize:JKe},qKe={tokenize:eJe},GKe={tokenize:tJe};function ZKe(e){let t=-1;for(;++t=3&&(c===null||Ln(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),$r(c)?Rr(e,o,"whitespace")(c):o(c))}}const Ql={name:"list",tokenize:cJe,continuation:{tokenize:dJe},exit:hJe},lJe={tokenize:pJe,partial:!0},uJe={tokenize:fJe,partial:!0};function cJe(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(b){const v=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:_F(b)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(S5,n,c)(b):c(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(b)}return n(b)}function l(b){return _F(b)&&++s<10?(e.consume(b),l):(!r.interrupt||s<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),c(b)):n(b)}function c(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(vC,r.interrupt?n:d,e.attempt(lJe,p,h))}function d(b){return r.containerState.initialBlankLine=!0,a++,p(b)}function h(b){return $r(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),p):n(b)}function p(b){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function dJe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(vC,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Rr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!$r(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(uJe,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Rr(e,e.attempt(Ql,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function fJe(e,t,n){const r=this;return Rr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function hJe(e){e.exit(this.containerState.type)}function pJe(e,t,n){const r=this;return Rr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!$r(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Tre={name:"setextUnderline",tokenize:gJe,resolveTo:mJe};function mJe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function gJe(e,t,n){const r=this;let i;return a;function a(c){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),$r(c)?Rr(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Ln(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const bJe={tokenize:yJe};function yJe(e){const t=this,n=e.attempt(vC,r,e.attempt(this.parser.constructs.flowInitial,i,Rr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(wKe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const vJe={resolveAll:xge()},OJe=Tge("string"),SJe=Tge("text");function Tge(e){return{tokenize:t,resolveAll:xge(e==="text"?EJe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(d){return c(d)?a(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const h=i[d];let p=-1;if(h)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function xJe(e,t){let n=-1;const r=[];let i;for(;++n0){const Ot=Oe.tokenStack[Oe.tokenStack.length-1];(Ot[1]||hre).call(Oe,void 0,Ot[0])}for(Te.position={start:g0(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:g0(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function tJe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nJe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function fge(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function rJe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return fge(e,t);const i={src:OE(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function iJe(e,t){const n={src:OE(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function aJe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function sJe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return fge(e,t);const i={href:OE(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function oJe(e,t){const n={href:OE(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lJe(e,t,n){const r=e.all(t),i=n?uJe(n):hge(t),a={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o0){const Ot=Oe.tokenStack[Oe.tokenStack.length-1];(Ot[1]||kre).call(Oe,void 0,Ot[0])}for(Te.position={start:g0(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:g0(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function KJe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JJe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _ge(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function eet(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _ge(e,t);const i={src:SE(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function tet(e,t){const n={src:SE(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function net(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ret(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _ge(e,t);const i={href:SE(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function iet(e,t){const n={href:SE(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function aet(e,t,n){const r=e.all(t),i=n?set(n):Age(t),a={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function cJe(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=ip(t.children[1]),l=LN(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function mJe(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(gre(t.slice(i),i>0,!1)),a.join("")}function gre(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===pre||a===mre;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===pre||a===mre;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function yJe(e,t){const n={type:"text",value:bJe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function vJe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const OJe={blockquote:GKe,break:ZKe,code:XKe,delete:KKe,emphasis:JKe,footnoteReference:eJe,heading:tJe,html:nJe,imageReference:rJe,image:iJe,inlineCode:aJe,linkReference:sJe,link:oJe,listItem:lJe,list:cJe,paragraph:dJe,root:fJe,strong:hJe,table:pJe,tableCell:gJe,tableRow:mJe,text:yJe,thematicBreak:vJe,toml:Z4,yaml:Z4,definition:Z4,footnoteDefinition:Z4};function Z4(){}const pge=-1,BN=0,mI=1,gI=2,tH=3,nH=4,rH=5,iH=6,mge=7,gge=8,bre=typeof self=="object"?self:globalThis,SJe=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case BN:case pge:return n(s,i);case mI:{const o=n([],i);for(const l of s)o.push(r(l));return o}case gI:{const o=n({},i);for(const[l,c]of s)o[r(l)]=r(c);return o}case tH:return n(new Date(s),i);case nH:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case rH:{const o=n(new Map,i);for(const[l,c]of s)o.set(r(l),r(c));return o}case iH:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case mge:{const{name:o,message:l}=s;return n(new bre[o](l),i)}case gge:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new bre[a](s),i)};return r},yre=e=>SJe(new Map,e)(0),Rv="",{toString:EJe}={},{keys:wJe}=Object,S2=e=>{const t=typeof e;if(t!=="object"||!e)return[BN,t];const n=EJe.call(e).slice(8,-1);switch(n){case"Array":return[mI,Rv];case"Object":return[gI,Rv];case"Date":return[tH,Rv];case"RegExp":return[nH,Rv];case"Map":return[rH,Rv];case"Set":return[iH,Rv]}return n.includes("Array")?[mI,n]:n.includes("Error")?[mge,n]:[gI,n]},X4=([e,t])=>e===BN&&(t==="function"||t==="symbol"),TJe=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=S2(s);switch(o){case BN:{let d=s;switch(l){case"bigint":o=gge,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([pge],s)}return i([o,d],s)}case mI:{if(l)return i([l,[...s]],s);const d=[],h=i([o,d],s);for(const p of s)d.push(a(p));return h}case gI:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],h=i([o,d],s);for(const p of wJe(s))(e||!X4(S2(s[p])))&&d.push([a(p),a(s[p])]);return h}case tH:return i([o,s.toISOString()],s);case nH:{const{source:d,flags:h}=s;return i([o,{source:d,flags:h}],s)}case rH:{const d=[],h=i([o,d],s);for(const[p,b]of s)(e||!(X4(S2(p))||X4(S2(b))))&&d.push([a(p),a(b)]);return h}case iH:{const d=[],h=i([o,d],s);for(const p of s)(e||!X4(S2(p)))&&d.push(a(p));return h}}const{message:c}=s;return i([o,{name:l,message:c}],s)};return a},vre=(e,{json:t,lossy:n}={})=>{const r=[];return TJe(!(t||n),!!t,new Map,r)(e),r},Qh=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yre(vre(e,t)):structuredClone(e):(e,t)=>yre(vre(e,t));function xJe(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function kJe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function CJe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||xJe,r=e.options.footnoteBackLabel||kJe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&v.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,b);typeof x=="string"&&(x={type:"text",value:x}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,b),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const x=w.children[w.children.length-1];x&&x.type==="text"?x.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...v)}else d.push(...v);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(c,T),o.push(T)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Qh(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const c={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,c),e.applyData(t,c)}function set(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function oet(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=ap(t.children[1]),l=LN(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function het(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Are(t.slice(i),i>0,!1)),a.join("")}function Are(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Cre||a===_re;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Cre||a===_re;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function get(e,t){const n={type:"text",value:met(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function bet(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const yet={blockquote:QJe,break:YJe,code:qJe,delete:GJe,emphasis:ZJe,footnoteReference:XJe,heading:KJe,html:JJe,imageReference:eet,image:tet,inlineCode:net,linkReference:ret,link:iet,listItem:aet,list:oet,paragraph:uet,root:cet,strong:det,table:fet,tableCell:pet,tableRow:het,text:get,thematicBreak:bet,toml:n3,yaml:n3,definition:n3,footnoteDefinition:n3};function n3(){}const Rge=-1,BN=0,OI=1,SI=2,aH=3,sH=4,oH=5,lH=6,Ige=7,Dge=8,Rre=typeof self=="object"?self:globalThis,vet=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case BN:case Rge:return n(s,i);case OI:{const o=n([],i);for(const l of s)o.push(r(l));return o}case SI:{const o=n({},i);for(const[l,c]of s)o[r(l)]=r(c);return o}case aH:return n(new Date(s),i);case sH:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case oH:{const o=n(new Map,i);for(const[l,c]of s)o.set(r(l),r(c));return o}case lH:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case Ige:{const{name:o,message:l}=s;return n(new Rre[o](l),i)}case Dge:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new Rre[a](s),i)};return r},Ire=e=>vet(new Map,e)(0),Dv="",{toString:Oet}={},{keys:Eet}=Object,ET=e=>{const t=typeof e;if(t!=="object"||!e)return[BN,t];const n=Oet.call(e).slice(8,-1);switch(n){case"Array":return[OI,Dv];case"Object":return[SI,Dv];case"Date":return[aH,Dv];case"RegExp":return[sH,Dv];case"Map":return[oH,Dv];case"Set":return[lH,Dv]}return n.includes("Array")?[OI,n]:n.includes("Error")?[Ige,n]:[SI,n]},r3=([e,t])=>e===BN&&(t==="function"||t==="symbol"),wet=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=ET(s);switch(o){case BN:{let d=s;switch(l){case"bigint":o=Dge,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([Rge],s)}return i([o,d],s)}case OI:{if(l)return i([l,[...s]],s);const d=[],h=i([o,d],s);for(const p of s)d.push(a(p));return h}case SI:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],h=i([o,d],s);for(const p of Eet(s))(e||!r3(ET(s[p])))&&d.push([a(p),a(s[p])]);return h}case aH:return i([o,s.toISOString()],s);case sH:{const{source:d,flags:h}=s;return i([o,{source:d,flags:h}],s)}case oH:{const d=[],h=i([o,d],s);for(const[p,b]of s)(e||!(r3(ET(p))||r3(ET(b))))&&d.push([a(p),a(b)]);return h}case lH:{const d=[],h=i([o,d],s);for(const p of s)(e||!r3(ET(p)))&&d.push(a(p));return h}}const{message:c}=s;return i([o,{name:l,message:c}],s)};return a},Dre=(e,{json:t,lossy:n}={})=>{const r=[];return wet(!(t||n),!!t,new Map,r)(e),r},Qh=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ire(Dre(e,t)):structuredClone(e):(e,t)=>Ire(Dre(e,t));function Tet(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function xet(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ket(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Tet,r=e.options.footnoteBackLabel||xet,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&v.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,b);typeof x=="string"&&(x={type:"text",value:x}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,b),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const x=w.children[w.children.length-1];x&&x.type==="text"?x.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...v)}else d.push(...v);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(c,T),o.push(T)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Qh(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` -`}]}}const SE=function(e){if(e==null)return IJe;if(typeof e=="function")return UN(e);if(typeof e=="object")return Array.isArray(e)?_Je(e):AJe(e);if(typeof e=="string")return RJe(e);throw new Error("Expected function, string, or object as test")};function _Je(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let b=bge,v,S,w;if((!t||a(l,c,d[d.length-1]||void 0))&&(b=PJe(n(l,d)),b[0]===bI))return b;if("children"in l&&l.children){const T=l;if(T.children&&b[0]!==jO)for(S=(r?T.children.length:-1)+s,w=d.concat(T);S>-1&&S":""))+")"})}return p;function p(){let b=Nge,v,S,w;if((!t||a(l,c,d[d.length-1]||void 0))&&(b=Net(n(l,d)),b[0]===EI))return b;if("children"in l&&l.children){const T=l;if(T.children&&b[0]!==HO)for(S=(r?T.children.length:-1)+s,w=d.concat(T);S>-1&&S0&&n.push({type:"text",value:` -`}),n}function Ore(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Sre(e,t){const n=LJe(e,t),r=n.one(e,void 0),i=CJe(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function zJe(e,t){return e&&"run"in e?async function(n,r){const i=Sre(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Sre(n,{file:r,...t||e})}}function Ere(e){if(e)throw e}var g5=Object.prototype.hasOwnProperty,yge=Object.prototype.toString,wre=Object.defineProperty,Tre=Object.getOwnPropertyDescriptor,xre=function(t){return typeof Array.isArray=="function"?Array.isArray(t):yge.call(t)==="[object Array]"},kre=function(t){if(!t||yge.call(t)!=="[object Object]")return!1;var n=g5.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&g5.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||g5.call(t,i)},Cre=function(t,n){wre&&n.name==="__proto__"?wre(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},_re=function(t,n){if(n==="__proto__")if(g5.call(t,n)){if(Tre)return Tre(t,n).value}else return;return t[n]},jJe=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,c=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(c){const d=c;if(o&&n)throw d;return i(d)}o||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const mh={basename:WJe,dirname:QJe,extname:YJe,join:qJe,sep:"/"};function WJe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');pC(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function QJe(e){if(pC(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function YJe(e){pC(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function qJe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ZJe(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function pC(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const XJe={cwd:KJe};function KJe(){return"/"}function DF(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function JJe(e){if(typeof e=="string")e=new URL(e);else if(!DF(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return eet(e)}function eet(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[b,...v]=d;const S=r[p][1];IF(S)&&IF(b)&&(b=IM(!0,S,b)),r[p]=[c,b,...v]}}}}const iet=new sH().freeze();function MM(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function LM(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $M(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rre(e){if(!IF(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ire(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function K4(e){return aet(e)?e:new vge(e)}function aet(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function set(e){return typeof e=="string"||oet(e)}function oet(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uet="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Dre=[],Nre={allowDangerousHtml:!0},cet=/^(https?|ircs?|mailto|xmpp)$/i,det=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function fet(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||Dre,l=e.remarkPlugins||Dre,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Nre}:Nre,d=e.skipHtml,h=e.unwrapDisallowed,p=e.urlTransform||het,b=iet().use(qKe).use(l).use(zJe,c).use(o),v=new vge;typeof r=="string"&&(v.value=r);for(const x of det)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+uet+x.id,void 0);const S=b.parse(v);let w=b.runSync(S,v);return i&&(w={type:"element",tagName:"div",properties:{className:i},children:w.type==="root"?w.children:[w]}),ml(w,T),IZe(w,{Fragment:D.Fragment,components:a,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function T(x,k,C){if(x.type==="raw"&&C&&typeof k=="number")return d?C.children.splice(k,1):C.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let I;for(I in _M)if(Object.hasOwn(_M,I)&&Object.hasOwn(x.properties,I)){const _=x.properties[I],A=_M[I];(A===null||A.includes(x.tagName))&&(x.properties[I]=p(String(_||""),I,x))}}if(x.type==="element"){let I=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!I&&n&&typeof k=="number"&&(I=!n(x,k,C)),I&&C&&typeof k=="number")return h&&x.children?C.children.splice(k,1,...x.children):C.children.splice(k,1),k}}}function het(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||cet.test(e.slice(0,t))?e:""}function Pre(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function pet(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function met(e,t,n){const i=SE((n||{}).ignore||[]),a=get(t);let s=-1;for(;++s0?{type:"text",value:_}:void 0),_===!1?p.lastIndex=C+1:(v!==C&&x.push({type:"text",value:c.value.slice(v,C)}),Array.isArray(_)?x.push(..._):_&&x.push(_),v=C+k[0].length,T=!0),!p.global)break;k=p.exec(c.value)}return T?(v?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Pre(e,"(");let a=Pre(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Oge(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ey(n)||$N(n))&&(!t||n!==47)}Sge.peek=jet;function Det(){return{enter:{gfmFootnoteDefinition:Pet,gfmFootnoteDefinitionLabelString:Met,gfmFootnoteCall:Fet,gfmFootnoteCallString:Bet},exit:{gfmFootnoteDefinition:$et,gfmFootnoteDefinitionLabelString:Let,gfmFootnoteCall:zet,gfmFootnoteCallString:Uet}}}function Net(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Het,footnoteReference:Sge}}}function Pet(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Met(){this.buffer()}function Let(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=yf(this.sliceSerialize(e)).toLowerCase()}function $et(e){this.exit(e)}function Fet(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Bet(){this.buffer()}function Uet(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=yf(this.sliceSerialize(e)).toLowerCase()}function zet(e){this.exit(e)}function Sge(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function jet(){return"["}function Het(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),Vet)),s(),a}function Vet(e,t,n){return t===0?e:(n?"":" ")+e}const Wet=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ege.peek=Zet;function Qet(){return{canContainEols:["delete"],enter:{strikethrough:qet},exit:{strikethrough:Get}}}function Yet(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Wet}],handlers:{delete:Ege}}}function qet(e){this.enter({type:"delete",children:[]},e)}function Get(e){this.exit(e)}function Ege(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function Zet(){return"~"}function Xet(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||Jet,i=[],a=[],s=[],o=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++wo[w])&&(o[w]=x)}v.push(T)}a[c]=v,s[c]=S}let d=-1;if(typeof n=="object"&&"length"in n)for(;++do[d]&&(o[d]=T),p[d]=T),h[d]=x}a.splice(1,0,h),s.splice(1,0,p),c=-1;const b=[];for(;++c "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),ttt);return i(),s}function ttt(e,t,n){return">"+(n?"":" ")+e}function ntt(e,t){return $re(e,t.inConstruct,!0)&&!$re(e,t.notInConstruct,!1)}function $re(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function rtt(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function itt(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function att(e,t,n,r){const i=itt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(rtt(e,n)){const h=n.enter("codeIndented"),p=n.indentLines(a,stt);return h(),p}const o=n.createTracker(r),l=i.repeat(Math.max(wge(a,i)+1,3)),c=n.enter("codeFenced");let d=o.move(l);if(e.lang){const h=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:` +`}),n}function Nre(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Pre(e,t){const n=Met(e,t),r=n.one(e,void 0),i=ket(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function Uet(e,t){return e&&"run"in e?async function(n,r){const i=Pre(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Pre(n,{file:r,...t||e})}}function Mre(e){if(e)throw e}var E5=Object.prototype.hasOwnProperty,Pge=Object.prototype.toString,Lre=Object.defineProperty,$re=Object.getOwnPropertyDescriptor,Fre=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Pge.call(t)==="[object Array]"},Bre=function(t){if(!t||Pge.call(t)!=="[object Object]")return!1;var n=E5.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&E5.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||E5.call(t,i)},Ure=function(t,n){Lre&&n.name==="__proto__"?Lre(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},zre=function(t,n){if(n==="__proto__")if(E5.call(t,n)){if($re)return $re(t,n).value}else return;return t[n]},zet=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,c=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(c){const d=c;if(o&&n)throw d;return i(d)}o||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const mh={basename:Vet,dirname:Wet,extname:Qet,join:Yet,sep:"/"};function Vet(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');OC(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Wet(e){if(OC(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Qet(e){OC(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Yet(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Get(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function OC(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Zet={cwd:Xet};function Xet(){return"/"}function DF(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ket(e){if(typeof e=="string")e=new URL(e);else if(!DF(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Jet(e)}function Jet(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[b,...v]=d;const S=r[p][1];IF(S)&&IF(b)&&(b=IM(!0,S,b)),r[p]=[c,b,...v]}}}}const rtt=new cH().freeze();function MM(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function LM(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $M(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hre(e){if(!IF(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Vre(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function i3(e){return itt(e)?e:new Mge(e)}function itt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function att(e){return typeof e=="string"||stt(e)}function stt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ott="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wre=[],Qre={allowDangerousHtml:!0},ltt=/^(https?|ircs?|mailto|xmpp)$/i,utt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ctt(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||Wre,l=e.remarkPlugins||Wre,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qre}:Qre,d=e.skipHtml,h=e.unwrapDisallowed,p=e.urlTransform||dtt,b=rtt().use(WJe).use(l).use(Uet,c).use(o),v=new Mge;typeof r=="string"&&(v.value=r);for(const x of utt)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+ott+x.id,void 0);const S=b.parse(v);let w=b.runSync(S,v);return i&&(w={type:"element",tagName:"div",properties:{className:i},children:w.type==="root"?w.children:[w]}),ml(w,T),_Xe(w,{Fragment:D.Fragment,components:a,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function T(x,k,C){if(x.type==="raw"&&C&&typeof k=="number")return d?C.children.splice(k,1):C.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let I;for(I in _M)if(Object.hasOwn(_M,I)&&Object.hasOwn(x.properties,I)){const _=x.properties[I],A=_M[I];(A===null||A.includes(x.tagName))&&(x.properties[I]=p(String(_||""),I,x))}}if(x.type==="element"){let I=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!I&&n&&typeof k=="number"&&(I=!n(x,k,C)),I&&C&&typeof k=="number")return h&&x.children?C.children.splice(k,1,...x.children):C.children.splice(k,1),k}}}function dtt(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||ltt.test(e.slice(0,t))?e:""}function Yre(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ftt(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function htt(e,t,n){const i=EE((n||{}).ignore||[]),a=ptt(t);let s=-1;for(;++s0?{type:"text",value:_}:void 0),_===!1?p.lastIndex=C+1:(v!==C&&x.push({type:"text",value:c.value.slice(v,C)}),Array.isArray(_)?x.push(..._):_&&x.push(_),v=C+k[0].length,T=!0),!p.global)break;k=p.exec(c.value)}return T?(v?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Yre(e,"(");let a=Yre(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Lge(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ny(n)||$N(n))&&(!t||n!==47)}$ge.peek=Btt;function Att(){return{enter:{gfmFootnoteDefinition:Itt,gfmFootnoteDefinitionLabelString:Dtt,gfmFootnoteCall:Mtt,gfmFootnoteCallString:Ltt},exit:{gfmFootnoteDefinition:Ptt,gfmFootnoteDefinitionLabelString:Ntt,gfmFootnoteCall:Ftt,gfmFootnoteCallString:$tt}}}function Rtt(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Utt,footnoteReference:$ge}}}function Itt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Dtt(){this.buffer()}function Ntt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=vf(this.sliceSerialize(e)).toLowerCase()}function Ptt(e){this.exit(e)}function Mtt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ltt(){this.buffer()}function $tt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=vf(this.sliceSerialize(e)).toLowerCase()}function Ftt(e){this.exit(e)}function $ge(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function Btt(){return"["}function Utt(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),ztt)),s(),a}function ztt(e,t,n){return t===0?e:(n?"":" ")+e}const jtt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Fge.peek=Ytt;function Htt(){return{canContainEols:["delete"],enter:{strikethrough:Wtt},exit:{strikethrough:Qtt}}}function Vtt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jtt}],handlers:{delete:Fge}}}function Wtt(e){this.enter({type:"delete",children:[]},e)}function Qtt(e){this.exit(e)}function Fge(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function Ytt(){return"~"}function qtt(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||Ztt,i=[],a=[],s=[],o=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++wo[w])&&(o[w]=x)}v.push(T)}a[c]=v,s[c]=S}let d=-1;if(typeof n=="object"&&"length"in n)for(;++do[d]&&(o[d]=T),p[d]=T),h[d]=x}a.splice(1,0,h),s.splice(1,0,p),c=-1;const b=[];for(;++c "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),Ktt);return i(),s}function Ktt(e,t,n){return">"+(n?"":" ")+e}function Jtt(e,t){return Zre(e,t.inConstruct,!0)&&!Zre(e,t.notInConstruct,!1)}function Zre(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function ent(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function tnt(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nnt(e,t,n,r){const i=tnt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(ent(e,n)){const h=n.enter("codeIndented"),p=n.indentLines(a,rnt);return h(),p}const o=n.createTracker(r),l=i.repeat(Math.max(Bge(a,i)+1,3)),c=n.enter("codeFenced");let d=o.move(l);if(e.lang){const h=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:` `,encode:["`"],...o.current()})),h()}return d+=o.move(` `),a&&(d+=o.move(a+` -`)),d+=o.move(l),c(),d}function stt(e,t,n){return(n?"":" ")+e}function lH(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ott(e,t,n,r){const i=lH(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":` -`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),s(),c}function ltt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Tge.peek=utt;function Tge(e,t,n,r){const i=ltt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function utt(e,t,n){return n.options.emphasis||"*"}function ctt(e,t){let n=!1;return ml(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,bI}),!!((!e.depth||e.depth<3)&&Jj(e)&&(t.options.setext||n))}function dtt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(ctt(e,n)){const d=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` +`)),d+=o.move(l),c(),d}function rnt(e,t,n){return(n?"":" ")+e}function fH(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function int(e,t,n,r){const i=fH(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":` +`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),s(),c}function ant(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Uge.peek=snt;function Uge(e,t,n,r){const i=ant(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function snt(e,t,n){return n.options.emphasis||"*"}function ont(e,t){let n=!1;return ml(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,EI}),!!((!e.depth||e.depth<3)&&rH(e)&&(t.options.setext||n))}function lnt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(ont(e,n)){const d=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` `,after:` `});return h(),d(),p+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),o(),c}xge.peek=ftt;function xge(e){return e.value||""}function ftt(){return"<"}kge.peek=htt;function kge(e,t,n,r){const i=lH(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),c+=l.move(")"),s(),c}function htt(){return"!"}Cge.peek=ptt;function Cge(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const c=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!c||c!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function ptt(){return"!"}_ge.peek=mtt;function _ge(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Rge.peek=gtt;function Rge(e,t,n,r){const i=lH(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(Age(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),n.stack=d,h}o=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),o(),c}function gtt(e,t,n){return Age(e,n)?"<":"["}Ige.peek=btt;function Ige(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!c||c!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function btt(){return"["}function uH(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ytt(e){const t=uH(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function vtt(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Dge(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Ott(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?vtt(n):uH(n);const o=e.ordered?s==="."?")":".":ytt(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Dge(n)===s&&d){let h=-1;for(;++h-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),d);return l(),c;function d(h,p,b){return p?(b?"":" ".repeat(s))+h:(b?a:a+" ".repeat(s-a.length))+h}}function wtt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Ttt=SE(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function xtt(e,t,n,r){return(e.children.some(function(s){return Ttt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function ktt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Nge.peek=Ctt;function Nge(e,t,n,r){const i=ktt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function Ctt(e,t,n){return n.options.strong||"*"}function _tt(e,t,n,r){return n.safe(e.value,r)}function Att(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Rtt(e,t,n){const r=(Dge(n)+(n.options.ruleSpaces?" ":"")).repeat(Att(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Pge={blockquote:ett,break:Fre,code:att,definition:ott,emphasis:Tge,hardBreak:Fre,heading:dtt,html:xge,image:kge,imageReference:Cge,inlineCode:_ge,link:Rge,linkReference:Ige,list:Ott,listItem:Ett,paragraph:wtt,root:xtt,strong:Nge,text:_tt,thematicBreak:Rtt};function Itt(){return{enter:{table:Dtt,tableData:Bre,tableHeader:Bre,tableRow:Ptt},exit:{codeText:Mtt,table:Ntt,tableData:zM,tableHeader:zM,tableRow:zM}}}function Dtt(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Ntt(e){this.exit(e),this.data.inTable=void 0}function Ptt(e){this.enter({type:"tableRow",children:[]},e)}function zM(e){this.exit(e)}function Bre(e){this.enter({type:"tableCell",children:[]},e)}function Mtt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ltt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ltt(e,t){return t==="|"?t:e}function $tt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,...a.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),o(),c}zge.peek=unt;function zge(e){return e.value||""}function unt(){return"<"}jge.peek=cnt;function jge(e,t,n,r){const i=fH(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),c+=l.move(")"),s(),c}function cnt(){return"!"}Hge.peek=dnt;function Hge(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const c=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!c||c!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function dnt(){return"!"}Vge.peek=fnt;function Vge(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Qge.peek=hnt;function Qge(e,t,n,r){const i=fH(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(Wge(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),n.stack=d,h}o=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),o(),c}function hnt(e,t,n){return Wge(e,n)?"<":"["}Yge.peek=pnt;function Yge(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!c||c!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function pnt(){return"["}function hH(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function mnt(e){const t=hH(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function gnt(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function qge(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function bnt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?gnt(n):hH(n);const o=e.ordered?s==="."?")":".":mnt(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),qge(n)===s&&d){let h=-1;for(;++h-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),d);return l(),c;function d(h,p,b){return p?(b?"":" ".repeat(s))+h:(b?a:a+" ".repeat(s-a.length))+h}}function Ont(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Snt=EE(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Ent(e,t,n,r){return(e.children.some(function(s){return Snt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function wnt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Gge.peek=Tnt;function Gge(e,t,n,r){const i=wnt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function Tnt(e,t,n){return n.options.strong||"*"}function xnt(e,t,n,r){return n.safe(e.value,r)}function knt(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Cnt(e,t,n){const r=(qge(n)+(n.options.ruleSpaces?" ":"")).repeat(knt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Zge={blockquote:Xtt,break:Xre,code:nnt,definition:int,emphasis:Uge,hardBreak:Xre,heading:lnt,html:zge,image:jge,imageReference:Hge,inlineCode:Vge,link:Qge,linkReference:Yge,list:bnt,listItem:vnt,paragraph:Ont,root:Ent,strong:Gge,text:xnt,thematicBreak:Cnt};function _nt(){return{enter:{table:Ant,tableData:Kre,tableHeader:Kre,tableRow:Int},exit:{codeText:Dnt,table:Rnt,tableData:zM,tableHeader:zM,tableRow:zM}}}function Ant(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Rnt(e){this.exit(e),this.data.inTable=void 0}function Int(e){this.enter({type:"tableRow",children:[]},e)}function zM(e){this.exit(e)}function Kre(e){this.enter({type:"tableCell",children:[]},e)}function Dnt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Nnt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Nnt(e,t){return t==="|"?t:e}function Pnt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(b,v,S,w){return c(d(b,S,w),b.align)}function o(b,v,S,w){const T=h(b,S,w),x=c([T]);return x.slice(0,x.indexOf(` -`))}function l(b,v,S,w){const T=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(b,{...w,before:a,after:a});return x(),T(),k}function c(b,v){return Xet(b,{align:v,alignDelimiters:r,padding:n,stringLength:i})}function d(b,v,S){const w=b.children;let T=-1;const x=[],k=v.enter("table");for(;++T0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const tnt={tokenize:unt,partial:!0};function nnt(){return{document:{91:{tokenize:snt,continuation:{tokenize:ont},exit:lnt}},text:{91:{tokenize:ant},93:{add:"after",tokenize:rnt,resolveTo:int}}}}function rnt(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const c=yf(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function int(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function ant(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(h){if(a>999||h===93&&!s||h===null||h===91||Ai(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(yf(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Ai(h)||(s=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function snt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(v)}function d(v){if(s>999||v===93&&!o||v===null||v===91||Ai(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=yf(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ai(v)||(o=!0),s++,e.consume(v),v===92?h:d}function h(v){return v===91||v===92||v===93?(e.consume(v),s++,d):d(v)}function p(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),i.includes(a)||i.push(a),Ar(e,b,"gfmFootnoteDefinitionWhitespace")):n(v)}function b(v){return t(v)}}function ont(e,t,n){return e.check(hC,t,e.attempt(tnt,t,n))}function lnt(e){e.exit("gfmFootnoteDefinition")}function unt(e,t,n){const r=this;return Ar(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function cnt(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l1?l(v):(s.consume(v),h++,b);if(h<2&&!n)return l(v);const w=s.exit("strikethroughSequenceTemporary"),T=pI(v);return w._open=!T||T===2&&!!S,w._close=!S||S===2&&!!T,o(v)}}}class dnt{constructor(){this.map=[]}add(t,n,r){fnt(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function fnt(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const Y=r.events[V][1].type;if(Y==="lineEnding"||Y==="linePrefix")V--;else break}const Q=V>-1?r.events[V][1].type:null,X=Q==="tableHead"||Q==="tableRow"?_:l;return X===_&&r.parser.lazy[r.now().line]?n(P):X(P)}function l(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(s=!0,a+=1),d(P)}function d(P){return P===null?n(P):Mn(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),b):n(P):Lr(P)?Ar(e,d,"whitespace")(P):(a+=1,s&&(s=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),h(P)))}function h(P){return P===null||P===124||Ai(P)?(e.exit("data"),d(P)):(e.consume(P),P===92?p:h)}function p(P){return P===92||P===124?(e.consume(P),h):h(P)}function b(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,Lr(P)?Ar(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):v(P))}function v(P){return P===45||P===58?w(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),S):I(P)}function S(P){return Lr(P)?Ar(e,w,"whitespace")(P):w(P)}function w(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),T):P===45?(a+=1,T(P)):P===null||Mn(P)?C(P):I(P)}function T(P){return P===45?(e.enter("tableDelimiterFiller"),x(P)):I(P)}function x(P){return P===45?(e.consume(P),x):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(P))}function k(P){return Lr(P)?Ar(e,C,"whitespace")(P):C(P)}function C(P){return P===124?v(P):P===null||Mn(P)?!s||i!==a?I(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):I(P)}function I(P){return n(P)}function _(P){return e.enter("tableRow"),A(P)}function A(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),A):P===null||Mn(P)?(e.exit("tableRow"),t(P)):Lr(P)?Ar(e,A,"whitespace")(P):(e.enter("data"),U(P))}function U(P){return P===null||P===124||Ai(P)?(e.exit("data"),A(P)):(e.consume(P),P===92?F:U)}function F(P){return P===92||P===124?(e.consume(P),U):U(P)}}function gnt(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,c,d,h;const p=new dnt;for(;++nn[2]+1){const v=n[2]+1,S=n[3]-n[2]-1;e.add(v,S,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},Qv(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function zre(e,t,n,r,i){const a=[],s=Qv(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Qv(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const bnt={tokenize:vnt};function ynt(){return{text:{91:bnt}}}function vnt(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Ai(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return Mn(l)?t(l):Lr(l)?e.check({tokenize:Ont},t,n)(l):n(l)}}function Ont(e,t,n){return Ar(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Snt(e){return J0e([Qtt(),nnt(),cnt(e),pnt(),ynt()])}const Ent={};function wnt(e){const t=this,n=e||Ent,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Snt(n)),a.push(jtt()),s.push(Htt(n))}const jre=/[#.]/g;function Tnt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}}function i(a){const s=a&&a.line,o=a&&a.column;if(typeof s=="number"&&typeof o=="number"&&!Number.isNaN(s)&&!Number.isNaN(o)&&s-1 in n){const l=(n[s-2]||0)+o-1||0;if(l>-1&&l=55296&&e<=57343}function Znt(e){return e>=56320&&e<=57343}function Xnt(e,t){return(e-55296)*1024+9216+t}function qge(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Gge(e){return e>=64976&&e<=65007||Gnt.has(e)}var gt;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(gt=gt||(gt={}));const Knt=65536;class Jnt{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Knt,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:n,col:r,offset:i}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Znt(n))return this.pos++,this._addGap(),Xnt(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,fe.EOF;return this._err(gt.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,fe.EOF;const r=this.html.charCodeAt(n);return r===fe.CARRIAGE_RETURN?fe.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,fe.EOF;let t=this.html.charCodeAt(this.pos);return t===fe.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,fe.LINE_FEED):t===fe.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Yge(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===fe.LINE_FEED||t===fe.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){qge(t)?this._err(gt.controlCharacterInInputStream):Gge(t)&&this._err(gt.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const S0=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ert=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var HM;const trt=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),nrt=(HM=String.fromCodePoint)!==null&&HM!==void 0?HM:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function rrt(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=trt.get(e))!==null&&t!==void 0?t:e}var Ps;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ps||(Ps={}));const irt=32;var Mh;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Mh||(Mh={}));function LF(e){return e>=Ps.ZERO&&e<=Ps.NINE}function art(e){return e>=Ps.UPPER_A&&e<=Ps.UPPER_F||e>=Ps.LOWER_A&&e<=Ps.LOWER_F}function srt(e){return e>=Ps.UPPER_A&&e<=Ps.UPPER_Z||e>=Ps.LOWER_A&&e<=Ps.LOWER_Z||LF(e)}function ort(e){return e===Ps.EQUALS||srt(e)}var As;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(As||(As={}));var ub;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ub||(ub={}));class lrt{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=As.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ub.Strict}startEntity(t){this.decodeMode=t,this.state=As.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case As.EntityStart:return t.charCodeAt(n)===Ps.NUM?(this.state=As.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=As.NamedEntity,this.stateNamedEntity(t,n));case As.NumericStart:return this.stateNumericStart(t,n);case As.NumericDecimal:return this.stateNumericDecimal(t,n);case As.NumericHex:return this.stateNumericHex(t,n);case As.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|irt)===Ps.LOWER_X?(this.state=As.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=As.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Ps.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==ub.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Mh.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Mh.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case As.NamedEntity:return this.result!==0&&(this.decodeMode!==ub.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case As.NumericDecimal:return this.emitNumericEntity(0,2);case As.NumericHex:return this.emitNumericEntity(0,3);case As.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case As.EntityStart:return 0}}}function Xge(e){let t="";const n=new lrt(e,r=>t+=nrt(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const c=n.write(i,o+1);if(c<0){s=o+n.end();break}s=o+c,o=c===0?s+1:s}const l=t+i.slice(s);return t="",l}}function Kge(e,t,n,r){const i=(t&Mh.BRANCH_LENGTH)>>7,a=t&Mh.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,c=e[l];if(cr)o=l-1;else return e[l+i]}return-1}Xge(S0);Xge(ert);var Tt;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Tt=Tt||(Tt={}));var fg;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(fg=fg||(fg={}));var Ju;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ju=Ju||(Ju={}));var rt;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(rt=rt||(rt={}));var L;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(L=L||(L={}));const urt=new Map([[rt.A,L.A],[rt.ADDRESS,L.ADDRESS],[rt.ANNOTATION_XML,L.ANNOTATION_XML],[rt.APPLET,L.APPLET],[rt.AREA,L.AREA],[rt.ARTICLE,L.ARTICLE],[rt.ASIDE,L.ASIDE],[rt.B,L.B],[rt.BASE,L.BASE],[rt.BASEFONT,L.BASEFONT],[rt.BGSOUND,L.BGSOUND],[rt.BIG,L.BIG],[rt.BLOCKQUOTE,L.BLOCKQUOTE],[rt.BODY,L.BODY],[rt.BR,L.BR],[rt.BUTTON,L.BUTTON],[rt.CAPTION,L.CAPTION],[rt.CENTER,L.CENTER],[rt.CODE,L.CODE],[rt.COL,L.COL],[rt.COLGROUP,L.COLGROUP],[rt.DD,L.DD],[rt.DESC,L.DESC],[rt.DETAILS,L.DETAILS],[rt.DIALOG,L.DIALOG],[rt.DIR,L.DIR],[rt.DIV,L.DIV],[rt.DL,L.DL],[rt.DT,L.DT],[rt.EM,L.EM],[rt.EMBED,L.EMBED],[rt.FIELDSET,L.FIELDSET],[rt.FIGCAPTION,L.FIGCAPTION],[rt.FIGURE,L.FIGURE],[rt.FONT,L.FONT],[rt.FOOTER,L.FOOTER],[rt.FOREIGN_OBJECT,L.FOREIGN_OBJECT],[rt.FORM,L.FORM],[rt.FRAME,L.FRAME],[rt.FRAMESET,L.FRAMESET],[rt.H1,L.H1],[rt.H2,L.H2],[rt.H3,L.H3],[rt.H4,L.H4],[rt.H5,L.H5],[rt.H6,L.H6],[rt.HEAD,L.HEAD],[rt.HEADER,L.HEADER],[rt.HGROUP,L.HGROUP],[rt.HR,L.HR],[rt.HTML,L.HTML],[rt.I,L.I],[rt.IMG,L.IMG],[rt.IMAGE,L.IMAGE],[rt.INPUT,L.INPUT],[rt.IFRAME,L.IFRAME],[rt.KEYGEN,L.KEYGEN],[rt.LABEL,L.LABEL],[rt.LI,L.LI],[rt.LINK,L.LINK],[rt.LISTING,L.LISTING],[rt.MAIN,L.MAIN],[rt.MALIGNMARK,L.MALIGNMARK],[rt.MARQUEE,L.MARQUEE],[rt.MATH,L.MATH],[rt.MENU,L.MENU],[rt.META,L.META],[rt.MGLYPH,L.MGLYPH],[rt.MI,L.MI],[rt.MO,L.MO],[rt.MN,L.MN],[rt.MS,L.MS],[rt.MTEXT,L.MTEXT],[rt.NAV,L.NAV],[rt.NOBR,L.NOBR],[rt.NOFRAMES,L.NOFRAMES],[rt.NOEMBED,L.NOEMBED],[rt.NOSCRIPT,L.NOSCRIPT],[rt.OBJECT,L.OBJECT],[rt.OL,L.OL],[rt.OPTGROUP,L.OPTGROUP],[rt.OPTION,L.OPTION],[rt.P,L.P],[rt.PARAM,L.PARAM],[rt.PLAINTEXT,L.PLAINTEXT],[rt.PRE,L.PRE],[rt.RB,L.RB],[rt.RP,L.RP],[rt.RT,L.RT],[rt.RTC,L.RTC],[rt.RUBY,L.RUBY],[rt.S,L.S],[rt.SCRIPT,L.SCRIPT],[rt.SECTION,L.SECTION],[rt.SELECT,L.SELECT],[rt.SOURCE,L.SOURCE],[rt.SMALL,L.SMALL],[rt.SPAN,L.SPAN],[rt.STRIKE,L.STRIKE],[rt.STRONG,L.STRONG],[rt.STYLE,L.STYLE],[rt.SUB,L.SUB],[rt.SUMMARY,L.SUMMARY],[rt.SUP,L.SUP],[rt.TABLE,L.TABLE],[rt.TBODY,L.TBODY],[rt.TEMPLATE,L.TEMPLATE],[rt.TEXTAREA,L.TEXTAREA],[rt.TFOOT,L.TFOOT],[rt.TD,L.TD],[rt.TH,L.TH],[rt.THEAD,L.THEAD],[rt.TITLE,L.TITLE],[rt.TR,L.TR],[rt.TRACK,L.TRACK],[rt.TT,L.TT],[rt.U,L.U],[rt.UL,L.UL],[rt.SVG,L.SVG],[rt.VAR,L.VAR],[rt.WBR,L.WBR],[rt.XMP,L.XMP]]);function wE(e){var t;return(t=urt.get(e))!==null&&t!==void 0?t:L.UNKNOWN}const $t=L,crt={[Tt.HTML]:new Set([$t.ADDRESS,$t.APPLET,$t.AREA,$t.ARTICLE,$t.ASIDE,$t.BASE,$t.BASEFONT,$t.BGSOUND,$t.BLOCKQUOTE,$t.BODY,$t.BR,$t.BUTTON,$t.CAPTION,$t.CENTER,$t.COL,$t.COLGROUP,$t.DD,$t.DETAILS,$t.DIR,$t.DIV,$t.DL,$t.DT,$t.EMBED,$t.FIELDSET,$t.FIGCAPTION,$t.FIGURE,$t.FOOTER,$t.FORM,$t.FRAME,$t.FRAMESET,$t.H1,$t.H2,$t.H3,$t.H4,$t.H5,$t.H6,$t.HEAD,$t.HEADER,$t.HGROUP,$t.HR,$t.HTML,$t.IFRAME,$t.IMG,$t.INPUT,$t.LI,$t.LINK,$t.LISTING,$t.MAIN,$t.MARQUEE,$t.MENU,$t.META,$t.NAV,$t.NOEMBED,$t.NOFRAMES,$t.NOSCRIPT,$t.OBJECT,$t.OL,$t.P,$t.PARAM,$t.PLAINTEXT,$t.PRE,$t.SCRIPT,$t.SECTION,$t.SELECT,$t.SOURCE,$t.STYLE,$t.SUMMARY,$t.TABLE,$t.TBODY,$t.TD,$t.TEMPLATE,$t.TEXTAREA,$t.TFOOT,$t.TH,$t.THEAD,$t.TITLE,$t.TR,$t.TRACK,$t.UL,$t.WBR,$t.XMP]),[Tt.MATHML]:new Set([$t.MI,$t.MO,$t.MN,$t.MS,$t.MTEXT,$t.ANNOTATION_XML]),[Tt.SVG]:new Set([$t.TITLE,$t.FOREIGN_OBJECT,$t.DESC]),[Tt.XLINK]:new Set,[Tt.XML]:new Set,[Tt.XMLNS]:new Set};function Jge(e){return e===$t.H1||e===$t.H2||e===$t.H3||e===$t.H4||e===$t.H5||e===$t.H6}rt.STYLE,rt.SCRIPT,rt.XMP,rt.IFRAME,rt.NOEMBED,rt.NOFRAMES,rt.PLAINTEXT;const drt=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var be;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(be||(be={}));const Wa={DATA:be.DATA,RCDATA:be.RCDATA,RAWTEXT:be.RAWTEXT,SCRIPT_DATA:be.SCRIPT_DATA,PLAINTEXT:be.PLAINTEXT,CDATA_SECTION:be.CDATA_SECTION};function IT(e){return e>=fe.DIGIT_0&&e<=fe.DIGIT_9}function K2(e){return e>=fe.LATIN_CAPITAL_A&&e<=fe.LATIN_CAPITAL_Z}function frt(e){return e>=fe.LATIN_SMALL_A&&e<=fe.LATIN_SMALL_Z}function E0(e){return frt(e)||K2(e)}function $F(e){return E0(e)||IT(e)}function e1e(e){return e>=fe.LATIN_CAPITAL_A&&e<=fe.LATIN_CAPITAL_F}function t1e(e){return e>=fe.LATIN_SMALL_A&&e<=fe.LATIN_SMALL_F}function hrt(e){return IT(e)||e1e(e)||t1e(e)}function e3(e){return e+32}function n1e(e){return e===fe.SPACE||e===fe.LINE_FEED||e===fe.TABULATION||e===fe.FORM_FEED}function prt(e){return e===fe.EQUALS_SIGN||$F(e)}function Wre(e){return n1e(e)||e===fe.SOLIDUS||e===fe.GREATER_THAN_SIGN}class mrt{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=be.DATA,this.returnState=be.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Jnt(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(gt.endTagWithAttributes),t.selfClosing&&this._err(gt.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Cr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Cr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Cr.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Cr.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=n1e(t)?Cr.WHITESPACE_CHARACTER:t===fe.NULL?Cr.NULL_CHARACTER:Cr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Cr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=S0[0];a>=0&&(a=Kge(S0,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=S0[a];const o=s&Mh.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==fe.SEMICOLON&&this._isCharacterReferenceInAttribute()&&prt(this.preprocessor.peek(1))?(n=[fe.AMPERSAND],a+=l):(n=l===0?[S0[a]&~Mh.VALUE_LENGTH]:l===1?[S0[++a]]:[S0[++a],S0[++a]],r=0,i=t!==fe.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(gt.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===be.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===be.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===be.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case be.DATA:{this._stateData(t);break}case be.RCDATA:{this._stateRcdata(t);break}case be.RAWTEXT:{this._stateRawtext(t);break}case be.SCRIPT_DATA:{this._stateScriptData(t);break}case be.PLAINTEXT:{this._statePlaintext(t);break}case be.TAG_OPEN:{this._stateTagOpen(t);break}case be.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case be.TAG_NAME:{this._stateTagName(t);break}case be.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case be.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case be.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case be.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case be.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case be.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case be.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case be.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case be.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case be.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case be.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case be.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case be.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case be.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case be.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case be.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case be.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case be.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case be.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case be.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case be.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case be.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case be.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case be.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case be.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case be.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case be.BOGUS_COMMENT:{this._stateBogusComment(t);break}case be.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case be.COMMENT_START:{this._stateCommentStart(t);break}case be.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case be.COMMENT:{this._stateComment(t);break}case be.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case be.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case be.COMMENT_END:{this._stateCommentEnd(t);break}case be.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case be.DOCTYPE:{this._stateDoctype(t);break}case be.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case be.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case be.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case be.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case be.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case be.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case be.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case be.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case be.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case be.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case be.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case be.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case be.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case be.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case be.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case be.CDATA_SECTION:{this._stateCdataSection(t);break}case be.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case be.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case be.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case be.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case be.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case be.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case be.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case be.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case be.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case be.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case fe.LESS_THAN_SIGN:{this.state=be.TAG_OPEN;break}case fe.AMPERSAND:{this.returnState=be.DATA,this.state=be.CHARACTER_REFERENCE;break}case fe.NULL:{this._err(gt.unexpectedNullCharacter),this._emitCodePoint(t);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case fe.AMPERSAND:{this.returnState=be.RCDATA,this.state=be.CHARACTER_REFERENCE;break}case fe.LESS_THAN_SIGN:{this.state=be.RCDATA_LESS_THAN_SIGN;break}case fe.NULL:{this._err(gt.unexpectedNullCharacter),this._emitChars(oa);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case fe.LESS_THAN_SIGN:{this.state=be.RAWTEXT_LESS_THAN_SIGN;break}case fe.NULL:{this._err(gt.unexpectedNullCharacter),this._emitChars(oa);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case fe.LESS_THAN_SIGN:{this.state=be.SCRIPT_DATA_LESS_THAN_SIGN;break}case fe.NULL:{this._err(gt.unexpectedNullCharacter),this._emitChars(oa);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case fe.NULL:{this._err(gt.unexpectedNullCharacter),this._emitChars(oa);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(E0(t))this._createStartTagToken(),this.state=be.TAG_NAME,this._stateTagName(t);else switch(t){case fe.EXCLAMATION_MARK:{this.state=be.MARKUP_DECLARATION_OPEN;break}case fe.SOLIDUS:{this.state=be.END_TAG_OPEN;break}case fe.QUESTION_MARK:{this._err(gt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=be.BOGUS_COMMENT,this._stateBogusComment(t);break}case fe.EOF:{this._err(gt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(gt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=be.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(E0(t))this._createEndTagToken(),this.state=be.TAG_NAME,this._stateTagName(t);else switch(t){case fe.GREATER_THAN_SIGN:{this._err(gt.missingEndTagName),this.state=be.DATA;break}case fe.EOF:{this._err(gt.eofBeforeTagName),this._emitChars("");break}case fe.NULL:{this._err(gt.unexpectedNullCharacter),this.state=be.SCRIPT_DATA_ESCAPED,this._emitChars(oa);break}case fe.EOF:{this._err(gt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=be.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===fe.SOLIDUS?this.state=be.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:E0(t)?(this._emitChars("<"),this.state=be.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=be.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){E0(t)?(this.state=be.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case fe.NULL:{this._err(gt.unexpectedNullCharacter),this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(oa);break}case fe.EOF:{this._err(gt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===fe.SOLIDUS?(this.state=be.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Wl.SCRIPT,!1)&&Wre(this.preprocessor.peek(Wl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(gt.characterReferenceOutsideUnicodeRange),this.charRefCode=fe.REPLACEMENT_CHARACTER;else if(Yge(this.charRefCode))this._err(gt.surrogateCharacterReference),this.charRefCode=fe.REPLACEMENT_CHARACTER;else if(Gge(this.charRefCode))this._err(gt.noncharacterCharacterReference);else if(qge(this.charRefCode)||this.charRefCode===fe.CARRIAGE_RETURN){this._err(gt.controlCharacterReference);const n=drt.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const r1e=new Set([L.DD,L.DT,L.LI,L.OPTGROUP,L.OPTION,L.P,L.RB,L.RP,L.RT,L.RTC]),Qre=new Set([...r1e,L.CAPTION,L.COLGROUP,L.TBODY,L.TD,L.TFOOT,L.TH,L.THEAD,L.TR]),t3=new Map([[L.APPLET,Tt.HTML],[L.CAPTION,Tt.HTML],[L.HTML,Tt.HTML],[L.MARQUEE,Tt.HTML],[L.OBJECT,Tt.HTML],[L.TABLE,Tt.HTML],[L.TD,Tt.HTML],[L.TEMPLATE,Tt.HTML],[L.TH,Tt.HTML],[L.ANNOTATION_XML,Tt.MATHML],[L.MI,Tt.MATHML],[L.MN,Tt.MATHML],[L.MO,Tt.MATHML],[L.MS,Tt.MATHML],[L.MTEXT,Tt.MATHML],[L.DESC,Tt.SVG],[L.FOREIGN_OBJECT,Tt.SVG],[L.TITLE,Tt.SVG]]),grt=[L.H1,L.H2,L.H3,L.H4,L.H5,L.H6],brt=[L.TR,L.TEMPLATE,L.HTML],yrt=[L.TBODY,L.TFOOT,L.THEAD,L.TEMPLATE,L.HTML],vrt=[L.TABLE,L.TEMPLATE,L.HTML],Ort=[L.TD,L.TH];class Srt{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=L.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===L.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Tt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Tt.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(vrt,Tt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yrt,Tt.HTML)}clearBackToTableRowContext(){this.clearBackTo(brt,Tt.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===L.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===L.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Tt.HTML)return!0;if(t3.get(r)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(Jge(n)&&r===Tt.HTML)return!0;if(t3.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Tt.HTML)return!0;if((r===L.UL||r===L.OL)&&i===Tt.HTML||t3.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Tt.HTML)return!0;if(r===L.BUTTON&&i===Tt.HTML||t3.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Tt.HTML){if(r===t)return!0;if(r===L.TABLE||r===L.TEMPLATE||r===L.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Tt.HTML){if(n===L.TBODY||n===L.THEAD||n===L.TFOOT)return!0;if(n===L.TABLE||n===L.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Tt.HTML){if(r===t)return!0;if(r!==L.OPTION&&r!==L.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;r1e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Qre.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Qre.has(this.currentTagId);)this.pop()}}const VM=3;var lf;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(lf=lf||(lf={}));const Yre={type:lf.Marker};class Ert{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=VM&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Yre)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:lf.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:lf.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Yre);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===lf.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===lf.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===lf.Element&&n.element===t)}}function qre(e){return{nodeName:"#text",value:e,parentNode:null}}const Yv={createDocument(){return{nodeName:"#document",mode:Ju.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Yv.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Yv.isTextNode(n)){n.value+=t;return}}Yv.appendChild(e,qre(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Yv.isTextNode(r)?r.value+=t:Yv.insertBefore(e,qre(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function _rt(e){return e.name===i1e&&e.publicId===null&&(e.systemId===null||e.systemId===wrt)}function Art(e){if(e.name!==i1e)return Ju.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Trt)return Ju.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),krt.has(n))return Ju.QUIRKS;let r=t===null?xrt:a1e;if(Gre(n,r))return Ju.QUIRKS;if(r=t===null?s1e:Crt,Gre(n,r))return Ju.LIMITED_QUIRKS}return Ju.NO_QUIRKS}const Zre={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Rrt="definitionurl",Irt="definitionURL",Drt=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Nrt=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Tt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Tt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Tt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Tt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Tt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Tt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Tt.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Tt.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Tt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Tt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Tt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Tt.XMLNS}]]),Prt=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Mrt=new Set([L.B,L.BIG,L.BLOCKQUOTE,L.BODY,L.BR,L.CENTER,L.CODE,L.DD,L.DIV,L.DL,L.DT,L.EM,L.EMBED,L.H1,L.H2,L.H3,L.H4,L.H5,L.H6,L.HEAD,L.HR,L.I,L.IMG,L.LI,L.LISTING,L.MENU,L.META,L.NOBR,L.OL,L.P,L.PRE,L.RUBY,L.S,L.SMALL,L.SPAN,L.STRONG,L.STRIKE,L.SUB,L.SUP,L.TABLE,L.TT,L.U,L.UL,L.VAR]);function Lrt(e){const t=e.tagID;return t===L.FONT&&e.attrs.some(({name:r})=>r===fg.COLOR||r===fg.SIZE||r===fg.FACE)||Mrt.has(t)}function o1e(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Tt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Tt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Re.TEXT}switchToPlaintextParsing(){this.insertionMode=Re.TEXT,this.originalInsertionMode=Re.IN_BODY,this.tokenizer.state=Wa.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===rt.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Tt.HTML))switch(this.fragmentContextID){case L.TITLE:case L.TEXTAREA:{this.tokenizer.state=Wa.RCDATA;break}case L.STYLE:case L.XMP:case L.IFRAME:case L.NOEMBED:case L.NOFRAMES:case L.NOSCRIPT:{this.tokenizer.state=Wa.RAWTEXT;break}case L.SCRIPT:{this.tokenizer.state=Wa.SCRIPT_DATA;break}case L.PLAINTEXT:{this.tokenizer.state=Wa.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Tt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Tt.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(rt.HTML,Tt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,L.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Cr.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===L.SVG&&this.treeAdapter.getTagName(n)===rt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Tt.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===L.MGLYPH||t.tagID===L.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Tt.HTML)}_processToken(t){switch(t.type){case Cr.CHARACTER:{this.onCharacter(t);break}case Cr.NULL_CHARACTER:{this.onNullCharacter(t);break}case Cr.COMMENT:{this.onComment(t);break}case Cr.DOCTYPE:{this.onDoctype(t);break}case Cr.START_TAG:{this._processStartTag(t);break}case Cr.END_TAG:{this.onEndTag(t);break}case Cr.EOF:{this.onEof(t);break}case Cr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Urt(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===lf.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Re.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(L.P),this.openElements.popUntilTagNamePopped(L.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case L.TR:{this.insertionMode=Re.IN_ROW;return}case L.TBODY:case L.THEAD:case L.TFOOT:{this.insertionMode=Re.IN_TABLE_BODY;return}case L.CAPTION:{this.insertionMode=Re.IN_CAPTION;return}case L.COLGROUP:{this.insertionMode=Re.IN_COLUMN_GROUP;return}case L.TABLE:{this.insertionMode=Re.IN_TABLE;return}case L.BODY:{this.insertionMode=Re.IN_BODY;return}case L.FRAMESET:{this.insertionMode=Re.IN_FRAMESET;return}case L.SELECT:{this._resetInsertionModeForSelect(t);return}case L.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case L.HTML:{this.insertionMode=this.headElement?Re.AFTER_HEAD:Re.BEFORE_HEAD;return}case L.TD:case L.TH:{if(t>0){this.insertionMode=Re.IN_CELL;return}break}case L.HEAD:{if(t>0){this.insertionMode=Re.IN_HEAD;return}break}}this.insertionMode=Re.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===L.TEMPLATE)break;if(r===L.TABLE){this.insertionMode=Re.IN_SELECT_IN_TABLE;return}}this.insertionMode=Re.IN_SELECT}_isElementCausesFosterParenting(t){return u1e.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case L.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Tt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case L.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return crt[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Oat(this,t);return}switch(this.insertionMode){case Re.INITIAL:{E2(this,t);break}case Re.BEFORE_HTML:{DT(this,t);break}case Re.BEFORE_HEAD:{NT(this,t);break}case Re.IN_HEAD:{PT(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{MT(this,t);break}case Re.AFTER_HEAD:{LT(this,t);break}case Re.IN_BODY:case Re.IN_CAPTION:case Re.IN_CELL:case Re.IN_TEMPLATE:{d1e(this,t);break}case Re.TEXT:case Re.IN_SELECT:case Re.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Re.IN_TABLE:case Re.IN_TABLE_BODY:case Re.IN_ROW:{WM(this,t);break}case Re.IN_TABLE_TEXT:{b1e(this,t);break}case Re.IN_COLUMN_GROUP:{yI(this,t);break}case Re.AFTER_BODY:{vI(this,t);break}case Re.AFTER_AFTER_BODY:{y5(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){vat(this,t);return}switch(this.insertionMode){case Re.INITIAL:{E2(this,t);break}case Re.BEFORE_HTML:{DT(this,t);break}case Re.BEFORE_HEAD:{NT(this,t);break}case Re.IN_HEAD:{PT(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{MT(this,t);break}case Re.AFTER_HEAD:{LT(this,t);break}case Re.TEXT:{this._insertCharacters(t);break}case Re.IN_TABLE:case Re.IN_TABLE_BODY:case Re.IN_ROW:{WM(this,t);break}case Re.IN_COLUMN_GROUP:{yI(this,t);break}case Re.AFTER_BODY:{vI(this,t);break}case Re.AFTER_AFTER_BODY:{y5(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){FF(this,t);return}switch(this.insertionMode){case Re.INITIAL:case Re.BEFORE_HTML:case Re.BEFORE_HEAD:case Re.IN_HEAD:case Re.IN_HEAD_NO_SCRIPT:case Re.AFTER_HEAD:case Re.IN_BODY:case Re.IN_TABLE:case Re.IN_CAPTION:case Re.IN_COLUMN_GROUP:case Re.IN_TABLE_BODY:case Re.IN_ROW:case Re.IN_CELL:case Re.IN_SELECT:case Re.IN_SELECT_IN_TABLE:case Re.IN_TEMPLATE:case Re.IN_FRAMESET:case Re.AFTER_FRAMESET:{FF(this,t);break}case Re.IN_TABLE_TEXT:{w2(this,t);break}case Re.AFTER_BODY:{Xrt(this,t);break}case Re.AFTER_AFTER_BODY:case Re.AFTER_AFTER_FRAMESET:{Krt(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Re.INITIAL:{Jrt(this,t);break}case Re.BEFORE_HEAD:case Re.IN_HEAD:case Re.IN_HEAD_NO_SCRIPT:case Re.AFTER_HEAD:{this._err(t,gt.misplacedDoctype);break}case Re.IN_TABLE_TEXT:{w2(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,gt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Sat(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Re.INITIAL:{E2(this,t);break}case Re.BEFORE_HTML:{eit(this,t);break}case Re.BEFORE_HEAD:{nit(this,t);break}case Re.IN_HEAD:{Mf(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{ait(this,t);break}case Re.AFTER_HEAD:{oit(this,t);break}case Re.IN_BODY:{zo(this,t);break}case Re.IN_TABLE:{HS(this,t);break}case Re.IN_TABLE_TEXT:{w2(this,t);break}case Re.IN_CAPTION:{rat(this,t);break}case Re.IN_COLUMN_GROUP:{gH(this,t);break}case Re.IN_TABLE_BODY:{HN(this,t);break}case Re.IN_ROW:{VN(this,t);break}case Re.IN_CELL:{sat(this,t);break}case Re.IN_SELECT:{O1e(this,t);break}case Re.IN_SELECT_IN_TABLE:{lat(this,t);break}case Re.IN_TEMPLATE:{cat(this,t);break}case Re.AFTER_BODY:{fat(this,t);break}case Re.IN_FRAMESET:{hat(this,t);break}case Re.AFTER_FRAMESET:{mat(this,t);break}case Re.AFTER_AFTER_BODY:{bat(this,t);break}case Re.AFTER_AFTER_FRAMESET:{yat(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Eat(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Re.INITIAL:{E2(this,t);break}case Re.BEFORE_HTML:{tit(this,t);break}case Re.BEFORE_HEAD:{rit(this,t);break}case Re.IN_HEAD:{iit(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{sit(this,t);break}case Re.AFTER_HEAD:{lit(this,t);break}case Re.IN_BODY:{jN(this,t);break}case Re.TEXT:{Yit(this,t);break}case Re.IN_TABLE:{Jx(this,t);break}case Re.IN_TABLE_TEXT:{w2(this,t);break}case Re.IN_CAPTION:{iat(this,t);break}case Re.IN_COLUMN_GROUP:{aat(this,t);break}case Re.IN_TABLE_BODY:{BF(this,t);break}case Re.IN_ROW:{v1e(this,t);break}case Re.IN_CELL:{oat(this,t);break}case Re.IN_SELECT:{S1e(this,t);break}case Re.IN_SELECT_IN_TABLE:{uat(this,t);break}case Re.IN_TEMPLATE:{dat(this,t);break}case Re.AFTER_BODY:{w1e(this,t);break}case Re.IN_FRAMESET:{pat(this,t);break}case Re.AFTER_FRAMESET:{gat(this,t);break}case Re.AFTER_AFTER_BODY:{y5(this,t);break}}}onEof(t){switch(this.insertionMode){case Re.INITIAL:{E2(this,t);break}case Re.BEFORE_HTML:{DT(this,t);break}case Re.BEFORE_HEAD:{NT(this,t);break}case Re.IN_HEAD:{PT(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{MT(this,t);break}case Re.AFTER_HEAD:{LT(this,t);break}case Re.IN_BODY:case Re.IN_TABLE:case Re.IN_CAPTION:case Re.IN_COLUMN_GROUP:case Re.IN_TABLE_BODY:case Re.IN_ROW:case Re.IN_CELL:case Re.IN_SELECT:case Re.IN_SELECT_IN_TABLE:{m1e(this,t);break}case Re.TEXT:{qit(this,t);break}case Re.IN_TABLE_TEXT:{w2(this,t);break}case Re.IN_TEMPLATE:{E1e(this,t);break}case Re.AFTER_BODY:case Re.IN_FRAMESET:case Re.AFTER_FRAMESET:case Re.AFTER_AFTER_BODY:case Re.AFTER_AFTER_FRAMESET:{mH(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===fe.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Re.IN_HEAD:case Re.IN_HEAD_NO_SCRIPT:case Re.AFTER_HEAD:case Re.TEXT:case Re.IN_COLUMN_GROUP:case Re.IN_SELECT:case Re.IN_SELECT_IN_TABLE:case Re.IN_FRAMESET:case Re.AFTER_FRAMESET:{this._insertCharacters(t);break}case Re.IN_BODY:case Re.IN_CAPTION:case Re.IN_CELL:case Re.IN_TEMPLATE:case Re.AFTER_BODY:case Re.AFTER_AFTER_BODY:case Re.AFTER_AFTER_FRAMESET:{c1e(this,t);break}case Re.IN_TABLE:case Re.IN_TABLE_BODY:case Re.IN_ROW:{WM(this,t);break}case Re.IN_TABLE_TEXT:{g1e(this,t);break}}}};function Wrt(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):p1e(e,t),n}function Qrt(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Yrt(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=Hrt;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=qrt(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function qrt(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Grt(e,t,n){const r=e.treeAdapter.getTagName(t),i=wE(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===L.TEMPLATE&&a===Tt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Zrt(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function pH(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Jrt(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ju.QUIRKS:Art(t);_rt(t)||e._err(t,gt.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Re.BEFORE_HTML}function E2(e,t){e._err(t,gt.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ju.QUIRKS),e.insertionMode=Re.BEFORE_HTML,e._processToken(t)}function eit(e,t){t.tagID===L.HTML?(e._insertElement(t,Tt.HTML),e.insertionMode=Re.BEFORE_HEAD):DT(e,t)}function tit(e,t){const n=t.tagID;(n===L.HTML||n===L.HEAD||n===L.BODY||n===L.BR)&&DT(e,t)}function DT(e,t){e._insertFakeRootElement(),e.insertionMode=Re.BEFORE_HEAD,e._processToken(t)}function nit(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.HEAD:{e._insertElement(t,Tt.HTML),e.headElement=e.openElements.current,e.insertionMode=Re.IN_HEAD;break}default:NT(e,t)}}function rit(e,t){const n=t.tagID;n===L.HEAD||n===L.BODY||n===L.HTML||n===L.BR?NT(e,t):e._err(t,gt.endTagWithoutMatchingOpenElement)}function NT(e,t){e._insertFakeElement(rt.HEAD,L.HEAD),e.headElement=e.openElements.current,e.insertionMode=Re.IN_HEAD,e._processToken(t)}function Mf(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:{e._appendElement(t,Tt.HTML),t.ackSelfClosing=!0;break}case L.TITLE:{e._switchToTextParsing(t,Wa.RCDATA);break}case L.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Wa.RAWTEXT):(e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_HEAD_NO_SCRIPT);break}case L.NOFRAMES:case L.STYLE:{e._switchToTextParsing(t,Wa.RAWTEXT);break}case L.SCRIPT:{e._switchToTextParsing(t,Wa.SCRIPT_DATA);break}case L.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Re.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Re.IN_TEMPLATE);break}case L.HEAD:{e._err(t,gt.misplacedStartTagForHeadElement);break}default:PT(e,t)}}function iit(e,t){switch(t.tagID){case L.HEAD:{e.openElements.pop(),e.insertionMode=Re.AFTER_HEAD;break}case L.BODY:case L.BR:case L.HTML:{PT(e,t);break}case L.TEMPLATE:{cy(e,t);break}default:e._err(t,gt.endTagWithoutMatchingOpenElement)}}function cy(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==L.TEMPLATE&&e._err(t,gt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(L.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,gt.endTagWithoutMatchingOpenElement)}function PT(e,t){e.openElements.pop(),e.insertionMode=Re.AFTER_HEAD,e._processToken(t)}function ait(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.BASEFONT:case L.BGSOUND:case L.HEAD:case L.LINK:case L.META:case L.NOFRAMES:case L.STYLE:{Mf(e,t);break}case L.NOSCRIPT:{e._err(t,gt.nestedNoscriptInHead);break}default:MT(e,t)}}function sit(e,t){switch(t.tagID){case L.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Re.IN_HEAD;break}case L.BR:{MT(e,t);break}default:e._err(t,gt.endTagWithoutMatchingOpenElement)}}function MT(e,t){const n=t.type===Cr.EOF?gt.openElementsLeftAfterEof:gt.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Re.IN_HEAD,e._processToken(t)}function oit(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.BODY:{e._insertElement(t,Tt.HTML),e.framesetOk=!1,e.insertionMode=Re.IN_BODY;break}case L.FRAMESET:{e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_FRAMESET;break}case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:{e._err(t,gt.abandonedHeadElementChild),e.openElements.push(e.headElement,L.HEAD),Mf(e,t),e.openElements.remove(e.headElement);break}case L.HEAD:{e._err(t,gt.misplacedStartTagForHeadElement);break}default:LT(e,t)}}function lit(e,t){switch(t.tagID){case L.BODY:case L.HTML:case L.BR:{LT(e,t);break}case L.TEMPLATE:{cy(e,t);break}default:e._err(t,gt.endTagWithoutMatchingOpenElement)}}function LT(e,t){e._insertFakeElement(rt.BODY,L.BODY),e.insertionMode=Re.IN_BODY,zN(e,t)}function zN(e,t){switch(t.type){case Cr.CHARACTER:{d1e(e,t);break}case Cr.WHITESPACE_CHARACTER:{c1e(e,t);break}case Cr.COMMENT:{FF(e,t);break}case Cr.START_TAG:{zo(e,t);break}case Cr.END_TAG:{jN(e,t);break}case Cr.EOF:{m1e(e,t);break}}}function c1e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function d1e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function uit(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function cit(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function dit(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_FRAMESET)}function fit(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML)}function hit(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),Jge(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Tt.HTML)}function pit(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function mit(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML),n||(e.formElement=e.openElements.current))}function git(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===L.LI&&i===L.LI||(n===L.DD||n===L.DT)&&(i===L.DD||i===L.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==L.ADDRESS&&i!==L.DIV&&i!==L.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML)}function bit(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML),e.tokenizer.state=Wa.PLAINTEXT}function yit(e,t){e.openElements.hasInScope(L.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(L.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.framesetOk=!1}function vit(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(rt.A);n&&(pH(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Oit(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Sit(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(L.NOBR)&&(pH(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Tt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Eit(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function wit(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ju.QUIRKS&&e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML),e.framesetOk=!1,e.insertionMode=Re.IN_TABLE}function f1e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Tt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function h1e(e){const t=Zge(e,fg.TYPE);return t!=null&&t.toLowerCase()===zrt}function Tit(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Tt.HTML),h1e(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function xit(e,t){e._appendElement(t,Tt.HTML),t.ackSelfClosing=!0}function kit(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._appendElement(t,Tt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Cit(e,t){t.tagName=rt.IMG,t.tagID=L.IMG,f1e(e,t)}function _it(e,t){e._insertElement(t,Tt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Wa.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Re.TEXT}function Ait(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Wa.RAWTEXT)}function Rit(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Wa.RAWTEXT)}function Jre(e,t){e._switchToTextParsing(t,Wa.RAWTEXT)}function Iit(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Re.IN_TABLE||e.insertionMode===Re.IN_CAPTION||e.insertionMode===Re.IN_TABLE_BODY||e.insertionMode===Re.IN_ROW||e.insertionMode===Re.IN_CELL?Re.IN_SELECT_IN_TABLE:Re.IN_SELECT}function Dit(e,t){e.openElements.currentTagId===L.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML)}function Nit(e,t){e.openElements.hasInScope(L.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Tt.HTML)}function Pit(e,t){e.openElements.hasInScope(L.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(L.RTC),e._insertElement(t,Tt.HTML)}function Mit(e,t){e._reconstructActiveFormattingElements(),o1e(t),hH(t),t.selfClosing?e._appendElement(t,Tt.MATHML):e._insertElement(t,Tt.MATHML),t.ackSelfClosing=!0}function Lit(e,t){e._reconstructActiveFormattingElements(),l1e(t),hH(t),t.selfClosing?e._appendElement(t,Tt.SVG):e._insertElement(t,Tt.SVG),t.ackSelfClosing=!0}function eie(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML)}function zo(e,t){switch(t.tagID){case L.I:case L.S:case L.B:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.SMALL:case L.STRIKE:case L.STRONG:{Oit(e,t);break}case L.A:{vit(e,t);break}case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:{hit(e,t);break}case L.P:case L.DL:case L.OL:case L.UL:case L.DIV:case L.DIR:case L.NAV:case L.MAIN:case L.MENU:case L.ASIDE:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.DETAILS:case L.ADDRESS:case L.ARTICLE:case L.SECTION:case L.SUMMARY:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:{fit(e,t);break}case L.LI:case L.DD:case L.DT:{git(e,t);break}case L.BR:case L.IMG:case L.WBR:case L.AREA:case L.EMBED:case L.KEYGEN:{f1e(e,t);break}case L.HR:{kit(e,t);break}case L.RB:case L.RTC:{Nit(e,t);break}case L.RT:case L.RP:{Pit(e,t);break}case L.PRE:case L.LISTING:{pit(e,t);break}case L.XMP:{Ait(e,t);break}case L.SVG:{Lit(e,t);break}case L.HTML:{uit(e,t);break}case L.BASE:case L.LINK:case L.META:case L.STYLE:case L.TITLE:case L.SCRIPT:case L.BGSOUND:case L.BASEFONT:case L.TEMPLATE:{Mf(e,t);break}case L.BODY:{cit(e,t);break}case L.FORM:{mit(e,t);break}case L.NOBR:{Sit(e,t);break}case L.MATH:{Mit(e,t);break}case L.TABLE:{wit(e,t);break}case L.INPUT:{Tit(e,t);break}case L.PARAM:case L.TRACK:case L.SOURCE:{xit(e,t);break}case L.IMAGE:{Cit(e,t);break}case L.BUTTON:{yit(e,t);break}case L.APPLET:case L.OBJECT:case L.MARQUEE:{Eit(e,t);break}case L.IFRAME:{Rit(e,t);break}case L.SELECT:{Iit(e,t);break}case L.OPTION:case L.OPTGROUP:{Dit(e,t);break}case L.NOEMBED:{Jre(e,t);break}case L.FRAMESET:{dit(e,t);break}case L.TEXTAREA:{_it(e,t);break}case L.NOSCRIPT:{e.options.scriptingEnabled?Jre(e,t):eie(e,t);break}case L.PLAINTEXT:{bit(e,t);break}case L.COL:case L.TH:case L.TD:case L.TR:case L.HEAD:case L.FRAME:case L.TBODY:case L.TFOOT:case L.THEAD:case L.CAPTION:case L.COLGROUP:break;default:eie(e,t)}}function $it(e,t){if(e.openElements.hasInScope(L.BODY)&&(e.insertionMode=Re.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Fit(e,t){e.openElements.hasInScope(L.BODY)&&(e.insertionMode=Re.AFTER_BODY,w1e(e,t))}function Bit(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Uit(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(L.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(L.FORM):n&&e.openElements.remove(n))}function zit(e){e.openElements.hasInButtonScope(L.P)||e._insertFakeElement(rt.P,L.P),e._closePElement()}function jit(e){e.openElements.hasInListItemScope(L.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(L.LI),e.openElements.popUntilTagNamePopped(L.LI))}function Hit(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Vit(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Wit(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Qit(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(rt.BR,L.BR),e.openElements.pop(),e.framesetOk=!1}function p1e(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==L.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function jN(e,t){switch(t.tagID){case L.A:case L.B:case L.I:case L.S:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.NOBR:case L.SMALL:case L.STRIKE:case L.STRONG:{pH(e,t);break}case L.P:{zit(e);break}case L.DL:case L.UL:case L.OL:case L.DIR:case L.DIV:case L.NAV:case L.PRE:case L.MAIN:case L.MENU:case L.ASIDE:case L.BUTTON:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.ADDRESS:case L.ARTICLE:case L.DETAILS:case L.SECTION:case L.SUMMARY:case L.LISTING:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:{Bit(e,t);break}case L.LI:{jit(e);break}case L.DD:case L.DT:{Hit(e,t);break}case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:{Vit(e);break}case L.BR:{Qit(e);break}case L.BODY:{$it(e,t);break}case L.HTML:{Fit(e,t);break}case L.FORM:{Uit(e);break}case L.APPLET:case L.OBJECT:case L.MARQUEE:{Wit(e,t);break}case L.TEMPLATE:{cy(e,t);break}default:p1e(e,t)}}function m1e(e,t){e.tmplInsertionModeStack.length>0?E1e(e,t):mH(e,t)}function Yit(e,t){var n;t.tagID===L.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function qit(e,t){e._err(t,gt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function WM(e,t){if(u1e.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Re.IN_TABLE_TEXT,t.type){case Cr.CHARACTER:{b1e(e,t);break}case Cr.WHITESPACE_CHARACTER:{g1e(e,t);break}}else mC(e,t)}function Git(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_CAPTION}function Zit(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_COLUMN_GROUP}function Xit(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(rt.COLGROUP,L.COLGROUP),e.insertionMode=Re.IN_COLUMN_GROUP,gH(e,t)}function Kit(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_TABLE_BODY}function Jit(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(rt.TBODY,L.TBODY),e.insertionMode=Re.IN_TABLE_BODY,HN(e,t)}function eat(e,t){e.openElements.hasInTableScope(L.TABLE)&&(e.openElements.popUntilTagNamePopped(L.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function tat(e,t){h1e(t)?e._appendElement(t,Tt.HTML):mC(e,t),t.ackSelfClosing=!0}function nat(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Tt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function HS(e,t){switch(t.tagID){case L.TD:case L.TH:case L.TR:{Jit(e,t);break}case L.STYLE:case L.SCRIPT:case L.TEMPLATE:{Mf(e,t);break}case L.COL:{Xit(e,t);break}case L.FORM:{nat(e,t);break}case L.TABLE:{eat(e,t);break}case L.TBODY:case L.TFOOT:case L.THEAD:{Kit(e,t);break}case L.INPUT:{tat(e,t);break}case L.CAPTION:{Git(e,t);break}case L.COLGROUP:{Zit(e,t);break}default:mC(e,t)}}function Jx(e,t){switch(t.tagID){case L.TABLE:{e.openElements.hasInTableScope(L.TABLE)&&(e.openElements.popUntilTagNamePopped(L.TABLE),e._resetInsertionMode());break}case L.TEMPLATE:{cy(e,t);break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:mC(e,t)}}function mC(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,zN(e,t),e.fosterParentingEnabled=n}function g1e(e,t){e.pendingCharacterTokens.push(t)}function b1e(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function w2(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===L.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===L.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===L.OPTGROUP&&e.openElements.pop();break}case L.OPTION:{e.openElements.currentTagId===L.OPTION&&e.openElements.pop();break}case L.SELECT:{e.openElements.hasInSelectScope(L.SELECT)&&(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode());break}case L.TEMPLATE:{cy(e,t);break}}}function lat(e,t){const n=t.tagID;n===L.CAPTION||n===L.TABLE||n===L.TBODY||n===L.TFOOT||n===L.THEAD||n===L.TR||n===L.TD||n===L.TH?(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode(),e._processStartTag(t)):O1e(e,t)}function uat(e,t){const n=t.tagID;n===L.CAPTION||n===L.TABLE||n===L.TBODY||n===L.TFOOT||n===L.THEAD||n===L.TR||n===L.TD||n===L.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode(),e.onEndTag(t)):S1e(e,t)}function cat(e,t){switch(t.tagID){case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:{Mf(e,t);break}case L.CAPTION:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:{e.tmplInsertionModeStack[0]=Re.IN_TABLE,e.insertionMode=Re.IN_TABLE,HS(e,t);break}case L.COL:{e.tmplInsertionModeStack[0]=Re.IN_COLUMN_GROUP,e.insertionMode=Re.IN_COLUMN_GROUP,gH(e,t);break}case L.TR:{e.tmplInsertionModeStack[0]=Re.IN_TABLE_BODY,e.insertionMode=Re.IN_TABLE_BODY,HN(e,t);break}case L.TD:case L.TH:{e.tmplInsertionModeStack[0]=Re.IN_ROW,e.insertionMode=Re.IN_ROW,VN(e,t);break}default:e.tmplInsertionModeStack[0]=Re.IN_BODY,e.insertionMode=Re.IN_BODY,zo(e,t)}}function dat(e,t){t.tagID===L.TEMPLATE&&cy(e,t)}function E1e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(L.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):mH(e,t)}function fat(e,t){t.tagID===L.HTML?zo(e,t):vI(e,t)}function w1e(e,t){var n;if(t.tagID===L.HTML){if(e.fragmentContext||(e.insertionMode=Re.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===L.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else vI(e,t)}function vI(e,t){e.insertionMode=Re.IN_BODY,zN(e,t)}function hat(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.FRAMESET:{e._insertElement(t,Tt.HTML);break}case L.FRAME:{e._appendElement(t,Tt.HTML),t.ackSelfClosing=!0;break}case L.NOFRAMES:{Mf(e,t);break}}}function pat(e,t){t.tagID===L.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==L.FRAMESET&&(e.insertionMode=Re.AFTER_FRAMESET))}function mat(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.NOFRAMES:{Mf(e,t);break}}}function gat(e,t){t.tagID===L.HTML&&(e.insertionMode=Re.AFTER_AFTER_FRAMESET)}function bat(e,t){t.tagID===L.HTML?zo(e,t):y5(e,t)}function y5(e,t){e.insertionMode=Re.IN_BODY,zN(e,t)}function yat(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.NOFRAMES:{Mf(e,t);break}}}function vat(e,t){t.chars=oa,e._insertCharacters(t)}function Oat(e,t){e._insertCharacters(t),e.framesetOk=!1}function T1e(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Tt.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Sat(e,t){if(Lrt(t))T1e(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Tt.MATHML?o1e(t):r===Tt.SVG&&($rt(t),l1e(t)),hH(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Eat(e,t){if(t.tagID===L.P||t.tagID===L.BR){T1e(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Tt.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}rt.AREA,rt.BASE,rt.BASEFONT,rt.BGSOUND,rt.BR,rt.COL,rt.EMBED,rt.FRAME,rt.HR,rt.IMG,rt.INPUT,rt.KEYGEN,rt.LINK,rt.META,rt.PARAM,rt.SOURCE,rt.TRACK,rt.WBR;const wat=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tie={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function x1e(e,t){const n=Nat(e),r=oH("type",{handlers:{root:Tat,element:xat,text:kat,comment:C1e,doctype:Cat,raw:Aat},unknown:Rat}),i={parser:n?new Kre(tie):Kre.getFragmentParser(void 0,tie),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),TE(i,ip());const a=n?i.parser.document:i.parser.getFragment(),s=Mnt(a,{file:i.options.file});return i.stitches&&ml(s,"comment",function(o,l,c){const d=o;if(d.value.stitch&&c&&l!==void 0){const h=c.children;return h[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function k1e(e,t){let n=-1;if(e)for(;++n"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function R1e(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?R1e(t.parentElement):null}function Lat(e){var t=n=>{var r=R1e(n.target);r&&(r.classList.add("active"),Mat(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};M.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var $at=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Fat=e=>e;const Bat=gn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:c,pluginsFilter:d,wrapperElement:h={},warpperElement:p={},urlTransform:b}=e,v=ut(e,$at),S=gn.useRef(null);M.useImperativeHandle(t,()=>$({},e,{mdp:S}),[S,e]);var w=(n||"")+" "+(r||"");Lat(S);var T=[...v.rehypePlugins||[]],x={allowElement:(I,_,A)=>v.allowElement?v.allowElement(I,_,A):/^[A-Za-z0-9]+$/.test(I.tagName)};o&&T.push(A1e);var k=[...v.remarkPlugins||[],wnt],C=$({},p,h);return D.jsx("div",$({ref:S,onScroll:l,onMouseOver:c},C,{className:w,style:a,children:D.jsx(fet,$({},x,v,{skipHtml:o,urlTransform:b||Fat,rehypePlugins:d?d("rehype",T):T,remarkPlugins:d?d("remark",k):k,children:i||""}))}))});function yO(e){return"children"in e?I1e(e):"value"in e?e.value:""}function Uat(e){return e.type==="text"?e.value:"children"in e?I1e(e):""}function I1e(e){let t=-1;const n=[];for(;++t0&&d.length===0)return}const h={};let p;for(p in o)zat.call(o,p)&&(h[p]=p==="children"?d:o[p]);return h}}function Hat(e){return"children"in e&&e.children!==void 0}var UF={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,c,d]=a;if(l&&d){l=parseInt(l),d=parseInt(d);const h=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Lf.displayName="c";Lf.aliases=[];function Lf(e){e.register($r),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}dy.displayName="cpp";dy.aliases=[];function dy(e){e.register(Lf),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}WN.displayName="arduino";WN.aliases=["ino"];function WN(e){e.register(dy),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}bC.displayName="bash";bC.aliases=["sh","shell"];function bC(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(ye,te){return"(?:"+Ce[+te]+")"})}function r(j,Ce,ye){return RegExp(n(j,Ce),ye||"")}function i(j,Ce){for(var ye=0;ye>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=s(a.typeDeclaration+" "+a.contextual+" "+a.other),d=s(a.type+" "+a.typeDeclaration+" "+a.other),h=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,v=n(/<<0>>(?:\s*<<1>>)?/.source,[b,h]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,v]),w=/\[\s*(?:,\s*)*\]/.source,T=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,w]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,w]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),C=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,w]),I={keyword:l,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,U=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[U]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,C]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,v]),lookbehind:!0,inside:I},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:I},{pattern:r(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[T]),lookbehind:!0,inside:I},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,b]),inside:I}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:I},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,S]),inside:I,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:I,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,h]),inside:{function:r(/^<<0>>/.source,[b]),generic:{pattern:RegExp(h),alias:"class-name",inside:I}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,v,b,C,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(C),greedy:!0,inside:I},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var F=A+"|"+_,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[F]),V=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),Q=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,X=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,V]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Q,X]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[Q]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[V]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Y=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),ee=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,Y]),J=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[F]),2),K=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,Y]);function ne(j,Ce){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Ce,Y]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ee]),lookbehind:!0,greedy:!0,inside:ne(ee,W)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:ne(K,J)}],char:{pattern:RegExp(_),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}zs.displayName="markup";zs.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function zs(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}qg.displayName="css";qg.aliases=[];function qg(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}QN.displayName="diff";QN.aliases=[];function QN(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`))}function l(b,v,S,w){const T=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(b,{...w,before:a,after:a});return x(),T(),k}function c(b,v){return qtt(b,{align:v,alignDelimiters:r,padding:n,stringLength:i})}function d(b,v,S){const w=b.children;let T=-1;const x=[],k=v.enter("table");for(;++T0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Knt={tokenize:srt,partial:!0};function Jnt(){return{document:{91:{tokenize:rrt,continuation:{tokenize:irt},exit:art}},text:{91:{tokenize:nrt},93:{add:"after",tokenize:ert,resolveTo:trt}}}}function ert(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const c=vf(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function trt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function nrt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(h){if(a>999||h===93&&!s||h===null||h===91||Ai(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(vf(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Ai(h)||(s=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function rrt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(v)}function d(v){if(s>999||v===93&&!o||v===null||v===91||Ai(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=vf(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ai(v)||(o=!0),s++,e.consume(v),v===92?h:d}function h(v){return v===91||v===92||v===93?(e.consume(v),s++,d):d(v)}function p(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),i.includes(a)||i.push(a),Rr(e,b,"gfmFootnoteDefinitionWhitespace")):n(v)}function b(v){return t(v)}}function irt(e,t,n){return e.check(vC,t,e.attempt(Knt,t,n))}function art(e){e.exit("gfmFootnoteDefinition")}function srt(e,t,n){const r=this;return Rr(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function ort(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l1?l(v):(s.consume(v),h++,b);if(h<2&&!n)return l(v);const w=s.exit("strikethroughSequenceTemporary"),T=vI(v);return w._open=!T||T===2&&!!S,w._close=!S||S===2&&!!T,o(v)}}}class lrt{constructor(){this.map=[]}add(t,n,r){urt(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function urt(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const Y=r.events[V][1].type;if(Y==="lineEnding"||Y==="linePrefix")V--;else break}const Q=V>-1?r.events[V][1].type:null,X=Q==="tableHead"||Q==="tableRow"?_:l;return X===_&&r.parser.lazy[r.now().line]?n(M):X(M)}function l(M){return e.enter("tableHead"),e.enter("tableRow"),c(M)}function c(M){return M===124||(s=!0,a+=1),d(M)}function d(M){return M===null?n(M):Ln(M)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),b):n(M):$r(M)?Rr(e,d,"whitespace")(M):(a+=1,s&&(s=!1,i+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),h(M)))}function h(M){return M===null||M===124||Ai(M)?(e.exit("data"),d(M)):(e.consume(M),M===92?p:h)}function p(M){return M===92||M===124?(e.consume(M),h):h(M)}function b(M){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(M):(e.enter("tableDelimiterRow"),s=!1,$r(M)?Rr(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):v(M))}function v(M){return M===45||M===58?w(M):M===124?(s=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),S):I(M)}function S(M){return $r(M)?Rr(e,w,"whitespace")(M):w(M)}function w(M){return M===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),T):M===45?(a+=1,T(M)):M===null||Ln(M)?C(M):I(M)}function T(M){return M===45?(e.enter("tableDelimiterFiller"),x(M)):I(M)}function x(M){return M===45?(e.consume(M),x):M===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(M))}function k(M){return $r(M)?Rr(e,C,"whitespace")(M):C(M)}function C(M){return M===124?v(M):M===null||Ln(M)?!s||i!==a?I(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(M)):I(M)}function I(M){return n(M)}function _(M){return e.enter("tableRow"),A(M)}function A(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),A):M===null||Ln(M)?(e.exit("tableRow"),t(M)):$r(M)?Rr(e,A,"whitespace")(M):(e.enter("data"),U(M))}function U(M){return M===null||M===124||Ai(M)?(e.exit("data"),A(M)):(e.consume(M),M===92?F:U)}function F(M){return M===92||M===124?(e.consume(M),U):U(M)}}function hrt(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,c,d,h;const p=new lrt;for(;++nn[2]+1){const v=n[2]+1,S=n[3]-n[2]-1;e.add(v,S,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},Yv(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function eie(e,t,n,r,i){const a=[],s=Yv(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Yv(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const prt={tokenize:grt};function mrt(){return{text:{91:prt}}}function grt(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Ai(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return Ln(l)?t(l):$r(l)?e.check({tokenize:brt},t,n)(l):n(l)}}function brt(e,t,n){return Rr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yrt(e){return mge([Hnt(),Jnt(),ort(e),drt(),mrt()])}const vrt={};function Ort(e){const t=this,n=e||vrt,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yrt(n)),a.push(Bnt()),s.push(Unt(n))}const tie=/[#.]/g;function Srt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}}function i(a){const s=a&&a.line,o=a&&a.column;if(typeof s=="number"&&typeof o=="number"&&!Number.isNaN(s)&&!Number.isNaN(o)&&s-1 in n){const l=(n[s-2]||0)+o-1||0;if(l>-1&&l=55296&&e<=57343}function Yrt(e){return e>=56320&&e<=57343}function qrt(e,t){return(e-55296)*1024+9216+t}function c1e(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function d1e(e){return e>=64976&&e<=65007||Qrt.has(e)}var bt;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(bt=bt||(bt={}));const Grt=65536;class Zrt{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Grt,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:n,col:r,offset:i}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Yrt(n))return this.pos++,this._addGap(),qrt(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,fe.EOF;return this._err(bt.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,fe.EOF;const r=this.html.charCodeAt(n);return r===fe.CARRIAGE_RETURN?fe.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,fe.EOF;let t=this.html.charCodeAt(this.pos);return t===fe.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,fe.LINE_FEED):t===fe.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,u1e(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===fe.LINE_FEED||t===fe.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){c1e(t)?this._err(bt.controlCharacterInInputStream):d1e(t)&&this._err(bt.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const S0=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Xrt=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var HM;const Krt=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Jrt=(HM=String.fromCodePoint)!==null&&HM!==void 0?HM:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function eit(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Krt.get(e))!==null&&t!==void 0?t:e}var Ns;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ns||(Ns={}));const tit=32;var Mh;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Mh||(Mh={}));function LF(e){return e>=Ns.ZERO&&e<=Ns.NINE}function nit(e){return e>=Ns.UPPER_A&&e<=Ns.UPPER_F||e>=Ns.LOWER_A&&e<=Ns.LOWER_F}function rit(e){return e>=Ns.UPPER_A&&e<=Ns.UPPER_Z||e>=Ns.LOWER_A&&e<=Ns.LOWER_Z||LF(e)}function iit(e){return e===Ns.EQUALS||rit(e)}var _s;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(_s||(_s={}));var cb;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(cb||(cb={}));class ait{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=_s.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=cb.Strict}startEntity(t){this.decodeMode=t,this.state=_s.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case _s.EntityStart:return t.charCodeAt(n)===Ns.NUM?(this.state=_s.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=_s.NamedEntity,this.stateNamedEntity(t,n));case _s.NumericStart:return this.stateNumericStart(t,n);case _s.NumericDecimal:return this.stateNumericDecimal(t,n);case _s.NumericHex:return this.stateNumericHex(t,n);case _s.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|tit)===Ns.LOWER_X?(this.state=_s.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=_s.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Ns.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==cb.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Mh.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Mh.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case _s.NamedEntity:return this.result!==0&&(this.decodeMode!==cb.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _s.NumericDecimal:return this.emitNumericEntity(0,2);case _s.NumericHex:return this.emitNumericEntity(0,3);case _s.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _s.EntityStart:return 0}}}function h1e(e){let t="";const n=new ait(e,r=>t+=Jrt(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const c=n.write(i,o+1);if(c<0){s=o+n.end();break}s=o+c,o=c===0?s+1:s}const l=t+i.slice(s);return t="",l}}function p1e(e,t,n,r){const i=(t&Mh.BRANCH_LENGTH)>>7,a=t&Mh.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,c=e[l];if(cr)o=l-1;else return e[l+i]}return-1}h1e(S0);h1e(Xrt);var Tt;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Tt=Tt||(Tt={}));var dg;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(dg=dg||(dg={}));var Ju;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ju=Ju||(Ju={}));var rt;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(rt=rt||(rt={}));var L;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(L=L||(L={}));const sit=new Map([[rt.A,L.A],[rt.ADDRESS,L.ADDRESS],[rt.ANNOTATION_XML,L.ANNOTATION_XML],[rt.APPLET,L.APPLET],[rt.AREA,L.AREA],[rt.ARTICLE,L.ARTICLE],[rt.ASIDE,L.ASIDE],[rt.B,L.B],[rt.BASE,L.BASE],[rt.BASEFONT,L.BASEFONT],[rt.BGSOUND,L.BGSOUND],[rt.BIG,L.BIG],[rt.BLOCKQUOTE,L.BLOCKQUOTE],[rt.BODY,L.BODY],[rt.BR,L.BR],[rt.BUTTON,L.BUTTON],[rt.CAPTION,L.CAPTION],[rt.CENTER,L.CENTER],[rt.CODE,L.CODE],[rt.COL,L.COL],[rt.COLGROUP,L.COLGROUP],[rt.DD,L.DD],[rt.DESC,L.DESC],[rt.DETAILS,L.DETAILS],[rt.DIALOG,L.DIALOG],[rt.DIR,L.DIR],[rt.DIV,L.DIV],[rt.DL,L.DL],[rt.DT,L.DT],[rt.EM,L.EM],[rt.EMBED,L.EMBED],[rt.FIELDSET,L.FIELDSET],[rt.FIGCAPTION,L.FIGCAPTION],[rt.FIGURE,L.FIGURE],[rt.FONT,L.FONT],[rt.FOOTER,L.FOOTER],[rt.FOREIGN_OBJECT,L.FOREIGN_OBJECT],[rt.FORM,L.FORM],[rt.FRAME,L.FRAME],[rt.FRAMESET,L.FRAMESET],[rt.H1,L.H1],[rt.H2,L.H2],[rt.H3,L.H3],[rt.H4,L.H4],[rt.H5,L.H5],[rt.H6,L.H6],[rt.HEAD,L.HEAD],[rt.HEADER,L.HEADER],[rt.HGROUP,L.HGROUP],[rt.HR,L.HR],[rt.HTML,L.HTML],[rt.I,L.I],[rt.IMG,L.IMG],[rt.IMAGE,L.IMAGE],[rt.INPUT,L.INPUT],[rt.IFRAME,L.IFRAME],[rt.KEYGEN,L.KEYGEN],[rt.LABEL,L.LABEL],[rt.LI,L.LI],[rt.LINK,L.LINK],[rt.LISTING,L.LISTING],[rt.MAIN,L.MAIN],[rt.MALIGNMARK,L.MALIGNMARK],[rt.MARQUEE,L.MARQUEE],[rt.MATH,L.MATH],[rt.MENU,L.MENU],[rt.META,L.META],[rt.MGLYPH,L.MGLYPH],[rt.MI,L.MI],[rt.MO,L.MO],[rt.MN,L.MN],[rt.MS,L.MS],[rt.MTEXT,L.MTEXT],[rt.NAV,L.NAV],[rt.NOBR,L.NOBR],[rt.NOFRAMES,L.NOFRAMES],[rt.NOEMBED,L.NOEMBED],[rt.NOSCRIPT,L.NOSCRIPT],[rt.OBJECT,L.OBJECT],[rt.OL,L.OL],[rt.OPTGROUP,L.OPTGROUP],[rt.OPTION,L.OPTION],[rt.P,L.P],[rt.PARAM,L.PARAM],[rt.PLAINTEXT,L.PLAINTEXT],[rt.PRE,L.PRE],[rt.RB,L.RB],[rt.RP,L.RP],[rt.RT,L.RT],[rt.RTC,L.RTC],[rt.RUBY,L.RUBY],[rt.S,L.S],[rt.SCRIPT,L.SCRIPT],[rt.SECTION,L.SECTION],[rt.SELECT,L.SELECT],[rt.SOURCE,L.SOURCE],[rt.SMALL,L.SMALL],[rt.SPAN,L.SPAN],[rt.STRIKE,L.STRIKE],[rt.STRONG,L.STRONG],[rt.STYLE,L.STYLE],[rt.SUB,L.SUB],[rt.SUMMARY,L.SUMMARY],[rt.SUP,L.SUP],[rt.TABLE,L.TABLE],[rt.TBODY,L.TBODY],[rt.TEMPLATE,L.TEMPLATE],[rt.TEXTAREA,L.TEXTAREA],[rt.TFOOT,L.TFOOT],[rt.TD,L.TD],[rt.TH,L.TH],[rt.THEAD,L.THEAD],[rt.TITLE,L.TITLE],[rt.TR,L.TR],[rt.TRACK,L.TRACK],[rt.TT,L.TT],[rt.U,L.U],[rt.UL,L.UL],[rt.SVG,L.SVG],[rt.VAR,L.VAR],[rt.WBR,L.WBR],[rt.XMP,L.XMP]]);function TE(e){var t;return(t=sit.get(e))!==null&&t!==void 0?t:L.UNKNOWN}const Ft=L,oit={[Tt.HTML]:new Set([Ft.ADDRESS,Ft.APPLET,Ft.AREA,Ft.ARTICLE,Ft.ASIDE,Ft.BASE,Ft.BASEFONT,Ft.BGSOUND,Ft.BLOCKQUOTE,Ft.BODY,Ft.BR,Ft.BUTTON,Ft.CAPTION,Ft.CENTER,Ft.COL,Ft.COLGROUP,Ft.DD,Ft.DETAILS,Ft.DIR,Ft.DIV,Ft.DL,Ft.DT,Ft.EMBED,Ft.FIELDSET,Ft.FIGCAPTION,Ft.FIGURE,Ft.FOOTER,Ft.FORM,Ft.FRAME,Ft.FRAMESET,Ft.H1,Ft.H2,Ft.H3,Ft.H4,Ft.H5,Ft.H6,Ft.HEAD,Ft.HEADER,Ft.HGROUP,Ft.HR,Ft.HTML,Ft.IFRAME,Ft.IMG,Ft.INPUT,Ft.LI,Ft.LINK,Ft.LISTING,Ft.MAIN,Ft.MARQUEE,Ft.MENU,Ft.META,Ft.NAV,Ft.NOEMBED,Ft.NOFRAMES,Ft.NOSCRIPT,Ft.OBJECT,Ft.OL,Ft.P,Ft.PARAM,Ft.PLAINTEXT,Ft.PRE,Ft.SCRIPT,Ft.SECTION,Ft.SELECT,Ft.SOURCE,Ft.STYLE,Ft.SUMMARY,Ft.TABLE,Ft.TBODY,Ft.TD,Ft.TEMPLATE,Ft.TEXTAREA,Ft.TFOOT,Ft.TH,Ft.THEAD,Ft.TITLE,Ft.TR,Ft.TRACK,Ft.UL,Ft.WBR,Ft.XMP]),[Tt.MATHML]:new Set([Ft.MI,Ft.MO,Ft.MN,Ft.MS,Ft.MTEXT,Ft.ANNOTATION_XML]),[Tt.SVG]:new Set([Ft.TITLE,Ft.FOREIGN_OBJECT,Ft.DESC]),[Tt.XLINK]:new Set,[Tt.XML]:new Set,[Tt.XMLNS]:new Set};function m1e(e){return e===Ft.H1||e===Ft.H2||e===Ft.H3||e===Ft.H4||e===Ft.H5||e===Ft.H6}rt.STYLE,rt.SCRIPT,rt.XMP,rt.IFRAME,rt.NOEMBED,rt.NOFRAMES,rt.PLAINTEXT;const lit=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var be;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(be||(be={}));const Qa={DATA:be.DATA,RCDATA:be.RCDATA,RAWTEXT:be.RAWTEXT,SCRIPT_DATA:be.SCRIPT_DATA,PLAINTEXT:be.PLAINTEXT,CDATA_SECTION:be.CDATA_SECTION};function D2(e){return e>=fe.DIGIT_0&&e<=fe.DIGIT_9}function JT(e){return e>=fe.LATIN_CAPITAL_A&&e<=fe.LATIN_CAPITAL_Z}function uit(e){return e>=fe.LATIN_SMALL_A&&e<=fe.LATIN_SMALL_Z}function E0(e){return uit(e)||JT(e)}function $F(e){return E0(e)||D2(e)}function g1e(e){return e>=fe.LATIN_CAPITAL_A&&e<=fe.LATIN_CAPITAL_F}function b1e(e){return e>=fe.LATIN_SMALL_A&&e<=fe.LATIN_SMALL_F}function cit(e){return D2(e)||g1e(e)||b1e(e)}function s3(e){return e+32}function y1e(e){return e===fe.SPACE||e===fe.LINE_FEED||e===fe.TABULATION||e===fe.FORM_FEED}function dit(e){return e===fe.EQUALS_SIGN||$F(e)}function iie(e){return y1e(e)||e===fe.SOLIDUS||e===fe.GREATER_THAN_SIGN}class fit{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=be.DATA,this.returnState=be.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Zrt(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(bt.endTagWithAttributes),t.selfClosing&&this._err(bt.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Cr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Cr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Cr.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Cr.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=y1e(t)?Cr.WHITESPACE_CHARACTER:t===fe.NULL?Cr.NULL_CHARACTER:Cr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Cr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=S0[0];a>=0&&(a=p1e(S0,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=S0[a];const o=s&Mh.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==fe.SEMICOLON&&this._isCharacterReferenceInAttribute()&&dit(this.preprocessor.peek(1))?(n=[fe.AMPERSAND],a+=l):(n=l===0?[S0[a]&~Mh.VALUE_LENGTH]:l===1?[S0[++a]]:[S0[++a],S0[++a]],r=0,i=t!==fe.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(bt.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===be.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===be.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===be.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case be.DATA:{this._stateData(t);break}case be.RCDATA:{this._stateRcdata(t);break}case be.RAWTEXT:{this._stateRawtext(t);break}case be.SCRIPT_DATA:{this._stateScriptData(t);break}case be.PLAINTEXT:{this._statePlaintext(t);break}case be.TAG_OPEN:{this._stateTagOpen(t);break}case be.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case be.TAG_NAME:{this._stateTagName(t);break}case be.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case be.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case be.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case be.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case be.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case be.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case be.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case be.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case be.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case be.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case be.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case be.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case be.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case be.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case be.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case be.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case be.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case be.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case be.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case be.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case be.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case be.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case be.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case be.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case be.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case be.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case be.BOGUS_COMMENT:{this._stateBogusComment(t);break}case be.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case be.COMMENT_START:{this._stateCommentStart(t);break}case be.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case be.COMMENT:{this._stateComment(t);break}case be.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case be.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case be.COMMENT_END:{this._stateCommentEnd(t);break}case be.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case be.DOCTYPE:{this._stateDoctype(t);break}case be.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case be.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case be.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case be.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case be.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case be.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case be.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case be.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case be.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case be.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case be.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case be.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case be.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case be.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case be.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case be.CDATA_SECTION:{this._stateCdataSection(t);break}case be.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case be.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case be.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case be.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case be.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case be.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case be.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case be.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case be.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case be.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case fe.LESS_THAN_SIGN:{this.state=be.TAG_OPEN;break}case fe.AMPERSAND:{this.returnState=be.DATA,this.state=be.CHARACTER_REFERENCE;break}case fe.NULL:{this._err(bt.unexpectedNullCharacter),this._emitCodePoint(t);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case fe.AMPERSAND:{this.returnState=be.RCDATA,this.state=be.CHARACTER_REFERENCE;break}case fe.LESS_THAN_SIGN:{this.state=be.RCDATA_LESS_THAN_SIGN;break}case fe.NULL:{this._err(bt.unexpectedNullCharacter),this._emitChars(la);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case fe.LESS_THAN_SIGN:{this.state=be.RAWTEXT_LESS_THAN_SIGN;break}case fe.NULL:{this._err(bt.unexpectedNullCharacter),this._emitChars(la);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case fe.LESS_THAN_SIGN:{this.state=be.SCRIPT_DATA_LESS_THAN_SIGN;break}case fe.NULL:{this._err(bt.unexpectedNullCharacter),this._emitChars(la);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case fe.NULL:{this._err(bt.unexpectedNullCharacter),this._emitChars(la);break}case fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(E0(t))this._createStartTagToken(),this.state=be.TAG_NAME,this._stateTagName(t);else switch(t){case fe.EXCLAMATION_MARK:{this.state=be.MARKUP_DECLARATION_OPEN;break}case fe.SOLIDUS:{this.state=be.END_TAG_OPEN;break}case fe.QUESTION_MARK:{this._err(bt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=be.BOGUS_COMMENT,this._stateBogusComment(t);break}case fe.EOF:{this._err(bt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(bt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=be.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(E0(t))this._createEndTagToken(),this.state=be.TAG_NAME,this._stateTagName(t);else switch(t){case fe.GREATER_THAN_SIGN:{this._err(bt.missingEndTagName),this.state=be.DATA;break}case fe.EOF:{this._err(bt.eofBeforeTagName),this._emitChars("");break}case fe.NULL:{this._err(bt.unexpectedNullCharacter),this.state=be.SCRIPT_DATA_ESCAPED,this._emitChars(la);break}case fe.EOF:{this._err(bt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=be.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===fe.SOLIDUS?this.state=be.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:E0(t)?(this._emitChars("<"),this.state=be.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=be.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){E0(t)?(this.state=be.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case fe.NULL:{this._err(bt.unexpectedNullCharacter),this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(la);break}case fe.EOF:{this._err(bt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===fe.SOLIDUS?(this.state=be.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Wl.SCRIPT,!1)&&iie(this.preprocessor.peek(Wl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(bt.characterReferenceOutsideUnicodeRange),this.charRefCode=fe.REPLACEMENT_CHARACTER;else if(u1e(this.charRefCode))this._err(bt.surrogateCharacterReference),this.charRefCode=fe.REPLACEMENT_CHARACTER;else if(d1e(this.charRefCode))this._err(bt.noncharacterCharacterReference);else if(c1e(this.charRefCode)||this.charRefCode===fe.CARRIAGE_RETURN){this._err(bt.controlCharacterReference);const n=lit.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const v1e=new Set([L.DD,L.DT,L.LI,L.OPTGROUP,L.OPTION,L.P,L.RB,L.RP,L.RT,L.RTC]),aie=new Set([...v1e,L.CAPTION,L.COLGROUP,L.TBODY,L.TD,L.TFOOT,L.TH,L.THEAD,L.TR]),o3=new Map([[L.APPLET,Tt.HTML],[L.CAPTION,Tt.HTML],[L.HTML,Tt.HTML],[L.MARQUEE,Tt.HTML],[L.OBJECT,Tt.HTML],[L.TABLE,Tt.HTML],[L.TD,Tt.HTML],[L.TEMPLATE,Tt.HTML],[L.TH,Tt.HTML],[L.ANNOTATION_XML,Tt.MATHML],[L.MI,Tt.MATHML],[L.MN,Tt.MATHML],[L.MO,Tt.MATHML],[L.MS,Tt.MATHML],[L.MTEXT,Tt.MATHML],[L.DESC,Tt.SVG],[L.FOREIGN_OBJECT,Tt.SVG],[L.TITLE,Tt.SVG]]),hit=[L.H1,L.H2,L.H3,L.H4,L.H5,L.H6],pit=[L.TR,L.TEMPLATE,L.HTML],mit=[L.TBODY,L.TFOOT,L.THEAD,L.TEMPLATE,L.HTML],git=[L.TABLE,L.TEMPLATE,L.HTML],bit=[L.TD,L.TH];class yit{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=L.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===L.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Tt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Tt.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(git,Tt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(mit,Tt.HTML)}clearBackToTableRowContext(){this.clearBackTo(pit,Tt.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===L.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===L.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Tt.HTML)return!0;if(o3.get(r)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(m1e(n)&&r===Tt.HTML)return!0;if(o3.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Tt.HTML)return!0;if((r===L.UL||r===L.OL)&&i===Tt.HTML||o3.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Tt.HTML)return!0;if(r===L.BUTTON&&i===Tt.HTML||o3.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Tt.HTML){if(r===t)return!0;if(r===L.TABLE||r===L.TEMPLATE||r===L.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Tt.HTML){if(n===L.TBODY||n===L.THEAD||n===L.TFOOT)return!0;if(n===L.TABLE||n===L.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Tt.HTML){if(r===t)return!0;if(r!==L.OPTION&&r!==L.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;v1e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;aie.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&aie.has(this.currentTagId);)this.pop()}}const VM=3;var lf;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(lf=lf||(lf={}));const sie={type:lf.Marker};class vit{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=VM&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(sie)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:lf.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:lf.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(sie);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===lf.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===lf.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===lf.Element&&n.element===t)}}function oie(e){return{nodeName:"#text",value:e,parentNode:null}}const qv={createDocument(){return{nodeName:"#document",mode:Ju.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};qv.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(qv.isTextNode(n)){n.value+=t;return}}qv.appendChild(e,oie(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&qv.isTextNode(r)?r.value+=t:qv.insertBefore(e,oie(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function xit(e){return e.name===O1e&&e.publicId===null&&(e.systemId===null||e.systemId===Oit)}function kit(e){if(e.name!==O1e)return Ju.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Sit)return Ju.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),wit.has(n))return Ju.QUIRKS;let r=t===null?Eit:S1e;if(lie(n,r))return Ju.QUIRKS;if(r=t===null?E1e:Tit,lie(n,r))return Ju.LIMITED_QUIRKS}return Ju.NO_QUIRKS}const uie={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Cit="definitionurl",_it="definitionURL",Ait=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Rit=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Tt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Tt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Tt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Tt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Tt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Tt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Tt.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Tt.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Tt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Tt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Tt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Tt.XMLNS}]]),Iit=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Dit=new Set([L.B,L.BIG,L.BLOCKQUOTE,L.BODY,L.BR,L.CENTER,L.CODE,L.DD,L.DIV,L.DL,L.DT,L.EM,L.EMBED,L.H1,L.H2,L.H3,L.H4,L.H5,L.H6,L.HEAD,L.HR,L.I,L.IMG,L.LI,L.LISTING,L.MENU,L.META,L.NOBR,L.OL,L.P,L.PRE,L.RUBY,L.S,L.SMALL,L.SPAN,L.STRONG,L.STRIKE,L.SUB,L.SUP,L.TABLE,L.TT,L.U,L.UL,L.VAR]);function Nit(e){const t=e.tagID;return t===L.FONT&&e.attrs.some(({name:r})=>r===dg.COLOR||r===dg.SIZE||r===dg.FACE)||Dit.has(t)}function w1e(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Tt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Tt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Re.TEXT}switchToPlaintextParsing(){this.insertionMode=Re.TEXT,this.originalInsertionMode=Re.IN_BODY,this.tokenizer.state=Qa.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===rt.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Tt.HTML))switch(this.fragmentContextID){case L.TITLE:case L.TEXTAREA:{this.tokenizer.state=Qa.RCDATA;break}case L.STYLE:case L.XMP:case L.IFRAME:case L.NOEMBED:case L.NOFRAMES:case L.NOSCRIPT:{this.tokenizer.state=Qa.RAWTEXT;break}case L.SCRIPT:{this.tokenizer.state=Qa.SCRIPT_DATA;break}case L.PLAINTEXT:{this.tokenizer.state=Qa.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Tt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Tt.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(rt.HTML,Tt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,L.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Cr.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===L.SVG&&this.treeAdapter.getTagName(n)===rt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Tt.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===L.MGLYPH||t.tagID===L.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Tt.HTML)}_processToken(t){switch(t.type){case Cr.CHARACTER:{this.onCharacter(t);break}case Cr.NULL_CHARACTER:{this.onNullCharacter(t);break}case Cr.COMMENT:{this.onComment(t);break}case Cr.DOCTYPE:{this.onDoctype(t);break}case Cr.START_TAG:{this._processStartTag(t);break}case Cr.END_TAG:{this.onEndTag(t);break}case Cr.EOF:{this.onEof(t);break}case Cr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return $it(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===lf.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Re.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(L.P),this.openElements.popUntilTagNamePopped(L.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case L.TR:{this.insertionMode=Re.IN_ROW;return}case L.TBODY:case L.THEAD:case L.TFOOT:{this.insertionMode=Re.IN_TABLE_BODY;return}case L.CAPTION:{this.insertionMode=Re.IN_CAPTION;return}case L.COLGROUP:{this.insertionMode=Re.IN_COLUMN_GROUP;return}case L.TABLE:{this.insertionMode=Re.IN_TABLE;return}case L.BODY:{this.insertionMode=Re.IN_BODY;return}case L.FRAMESET:{this.insertionMode=Re.IN_FRAMESET;return}case L.SELECT:{this._resetInsertionModeForSelect(t);return}case L.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case L.HTML:{this.insertionMode=this.headElement?Re.AFTER_HEAD:Re.BEFORE_HEAD;return}case L.TD:case L.TH:{if(t>0){this.insertionMode=Re.IN_CELL;return}break}case L.HEAD:{if(t>0){this.insertionMode=Re.IN_HEAD;return}break}}this.insertionMode=Re.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===L.TEMPLATE)break;if(r===L.TABLE){this.insertionMode=Re.IN_SELECT_IN_TABLE;return}}this.insertionMode=Re.IN_SELECT}_isElementCausesFosterParenting(t){return x1e.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case L.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Tt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case L.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return oit[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){bst(this,t);return}switch(this.insertionMode){case Re.INITIAL:{wT(this,t);break}case Re.BEFORE_HTML:{N2(this,t);break}case Re.BEFORE_HEAD:{P2(this,t);break}case Re.IN_HEAD:{M2(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{L2(this,t);break}case Re.AFTER_HEAD:{$2(this,t);break}case Re.IN_BODY:case Re.IN_CAPTION:case Re.IN_CELL:case Re.IN_TEMPLATE:{C1e(this,t);break}case Re.TEXT:case Re.IN_SELECT:case Re.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Re.IN_TABLE:case Re.IN_TABLE_BODY:case Re.IN_ROW:{WM(this,t);break}case Re.IN_TABLE_TEXT:{N1e(this,t);break}case Re.IN_COLUMN_GROUP:{wI(this,t);break}case Re.AFTER_BODY:{TI(this,t);break}case Re.AFTER_AFTER_BODY:{T5(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gst(this,t);return}switch(this.insertionMode){case Re.INITIAL:{wT(this,t);break}case Re.BEFORE_HTML:{N2(this,t);break}case Re.BEFORE_HEAD:{P2(this,t);break}case Re.IN_HEAD:{M2(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{L2(this,t);break}case Re.AFTER_HEAD:{$2(this,t);break}case Re.TEXT:{this._insertCharacters(t);break}case Re.IN_TABLE:case Re.IN_TABLE_BODY:case Re.IN_ROW:{WM(this,t);break}case Re.IN_COLUMN_GROUP:{wI(this,t);break}case Re.AFTER_BODY:{TI(this,t);break}case Re.AFTER_AFTER_BODY:{T5(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){FF(this,t);return}switch(this.insertionMode){case Re.INITIAL:case Re.BEFORE_HTML:case Re.BEFORE_HEAD:case Re.IN_HEAD:case Re.IN_HEAD_NO_SCRIPT:case Re.AFTER_HEAD:case Re.IN_BODY:case Re.IN_TABLE:case Re.IN_CAPTION:case Re.IN_COLUMN_GROUP:case Re.IN_TABLE_BODY:case Re.IN_ROW:case Re.IN_CELL:case Re.IN_SELECT:case Re.IN_SELECT_IN_TABLE:case Re.IN_TEMPLATE:case Re.IN_FRAMESET:case Re.AFTER_FRAMESET:{FF(this,t);break}case Re.IN_TABLE_TEXT:{TT(this,t);break}case Re.AFTER_BODY:{qit(this,t);break}case Re.AFTER_AFTER_BODY:case Re.AFTER_AFTER_FRAMESET:{Git(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Re.INITIAL:{Zit(this,t);break}case Re.BEFORE_HEAD:case Re.IN_HEAD:case Re.IN_HEAD_NO_SCRIPT:case Re.AFTER_HEAD:{this._err(t,bt.misplacedDoctype);break}case Re.IN_TABLE_TEXT:{TT(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,bt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?yst(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Re.INITIAL:{wT(this,t);break}case Re.BEFORE_HTML:{Xit(this,t);break}case Re.BEFORE_HEAD:{Jit(this,t);break}case Re.IN_HEAD:{Mf(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{nat(this,t);break}case Re.AFTER_HEAD:{iat(this,t);break}case Re.IN_BODY:{zo(this,t);break}case Re.IN_TABLE:{WS(this,t);break}case Re.IN_TABLE_TEXT:{TT(this,t);break}case Re.IN_CAPTION:{est(this,t);break}case Re.IN_COLUMN_GROUP:{OH(this,t);break}case Re.IN_TABLE_BODY:{HN(this,t);break}case Re.IN_ROW:{VN(this,t);break}case Re.IN_CELL:{rst(this,t);break}case Re.IN_SELECT:{L1e(this,t);break}case Re.IN_SELECT_IN_TABLE:{ast(this,t);break}case Re.IN_TEMPLATE:{ost(this,t);break}case Re.AFTER_BODY:{ust(this,t);break}case Re.IN_FRAMESET:{cst(this,t);break}case Re.AFTER_FRAMESET:{fst(this,t);break}case Re.AFTER_AFTER_BODY:{pst(this,t);break}case Re.AFTER_AFTER_FRAMESET:{mst(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?vst(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Re.INITIAL:{wT(this,t);break}case Re.BEFORE_HTML:{Kit(this,t);break}case Re.BEFORE_HEAD:{eat(this,t);break}case Re.IN_HEAD:{tat(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{rat(this,t);break}case Re.AFTER_HEAD:{aat(this,t);break}case Re.IN_BODY:{jN(this,t);break}case Re.TEXT:{Vat(this,t);break}case Re.IN_TABLE:{tk(this,t);break}case Re.IN_TABLE_TEXT:{TT(this,t);break}case Re.IN_CAPTION:{tst(this,t);break}case Re.IN_COLUMN_GROUP:{nst(this,t);break}case Re.IN_TABLE_BODY:{BF(this,t);break}case Re.IN_ROW:{M1e(this,t);break}case Re.IN_CELL:{ist(this,t);break}case Re.IN_SELECT:{$1e(this,t);break}case Re.IN_SELECT_IN_TABLE:{sst(this,t);break}case Re.IN_TEMPLATE:{lst(this,t);break}case Re.AFTER_BODY:{B1e(this,t);break}case Re.IN_FRAMESET:{dst(this,t);break}case Re.AFTER_FRAMESET:{hst(this,t);break}case Re.AFTER_AFTER_BODY:{T5(this,t);break}}}onEof(t){switch(this.insertionMode){case Re.INITIAL:{wT(this,t);break}case Re.BEFORE_HTML:{N2(this,t);break}case Re.BEFORE_HEAD:{P2(this,t);break}case Re.IN_HEAD:{M2(this,t);break}case Re.IN_HEAD_NO_SCRIPT:{L2(this,t);break}case Re.AFTER_HEAD:{$2(this,t);break}case Re.IN_BODY:case Re.IN_TABLE:case Re.IN_CAPTION:case Re.IN_COLUMN_GROUP:case Re.IN_TABLE_BODY:case Re.IN_ROW:case Re.IN_CELL:case Re.IN_SELECT:case Re.IN_SELECT_IN_TABLE:{I1e(this,t);break}case Re.TEXT:{Wat(this,t);break}case Re.IN_TABLE_TEXT:{TT(this,t);break}case Re.IN_TEMPLATE:{F1e(this,t);break}case Re.AFTER_BODY:case Re.IN_FRAMESET:case Re.AFTER_FRAMESET:case Re.AFTER_AFTER_BODY:case Re.AFTER_AFTER_FRAMESET:{vH(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===fe.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Re.IN_HEAD:case Re.IN_HEAD_NO_SCRIPT:case Re.AFTER_HEAD:case Re.TEXT:case Re.IN_COLUMN_GROUP:case Re.IN_SELECT:case Re.IN_SELECT_IN_TABLE:case Re.IN_FRAMESET:case Re.AFTER_FRAMESET:{this._insertCharacters(t);break}case Re.IN_BODY:case Re.IN_CAPTION:case Re.IN_CELL:case Re.IN_TEMPLATE:case Re.AFTER_BODY:case Re.AFTER_AFTER_BODY:case Re.AFTER_AFTER_FRAMESET:{k1e(this,t);break}case Re.IN_TABLE:case Re.IN_TABLE_BODY:case Re.IN_ROW:{WM(this,t);break}case Re.IN_TABLE_TEXT:{D1e(this,t);break}}}};function jit(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):R1e(e,t),n}function Hit(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Vit(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=Uit;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Wit(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Wit(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Qit(e,t,n){const r=e.treeAdapter.getTagName(t),i=TE(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===L.TEMPLATE&&a===Tt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Yit(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function yH(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Zit(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ju.QUIRKS:kit(t);xit(t)||e._err(t,bt.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Re.BEFORE_HTML}function wT(e,t){e._err(t,bt.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ju.QUIRKS),e.insertionMode=Re.BEFORE_HTML,e._processToken(t)}function Xit(e,t){t.tagID===L.HTML?(e._insertElement(t,Tt.HTML),e.insertionMode=Re.BEFORE_HEAD):N2(e,t)}function Kit(e,t){const n=t.tagID;(n===L.HTML||n===L.HEAD||n===L.BODY||n===L.BR)&&N2(e,t)}function N2(e,t){e._insertFakeRootElement(),e.insertionMode=Re.BEFORE_HEAD,e._processToken(t)}function Jit(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.HEAD:{e._insertElement(t,Tt.HTML),e.headElement=e.openElements.current,e.insertionMode=Re.IN_HEAD;break}default:P2(e,t)}}function eat(e,t){const n=t.tagID;n===L.HEAD||n===L.BODY||n===L.HTML||n===L.BR?P2(e,t):e._err(t,bt.endTagWithoutMatchingOpenElement)}function P2(e,t){e._insertFakeElement(rt.HEAD,L.HEAD),e.headElement=e.openElements.current,e.insertionMode=Re.IN_HEAD,e._processToken(t)}function Mf(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:{e._appendElement(t,Tt.HTML),t.ackSelfClosing=!0;break}case L.TITLE:{e._switchToTextParsing(t,Qa.RCDATA);break}case L.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Qa.RAWTEXT):(e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_HEAD_NO_SCRIPT);break}case L.NOFRAMES:case L.STYLE:{e._switchToTextParsing(t,Qa.RAWTEXT);break}case L.SCRIPT:{e._switchToTextParsing(t,Qa.SCRIPT_DATA);break}case L.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Re.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Re.IN_TEMPLATE);break}case L.HEAD:{e._err(t,bt.misplacedStartTagForHeadElement);break}default:M2(e,t)}}function tat(e,t){switch(t.tagID){case L.HEAD:{e.openElements.pop(),e.insertionMode=Re.AFTER_HEAD;break}case L.BODY:case L.BR:case L.HTML:{M2(e,t);break}case L.TEMPLATE:{dy(e,t);break}default:e._err(t,bt.endTagWithoutMatchingOpenElement)}}function dy(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==L.TEMPLATE&&e._err(t,bt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(L.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,bt.endTagWithoutMatchingOpenElement)}function M2(e,t){e.openElements.pop(),e.insertionMode=Re.AFTER_HEAD,e._processToken(t)}function nat(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.BASEFONT:case L.BGSOUND:case L.HEAD:case L.LINK:case L.META:case L.NOFRAMES:case L.STYLE:{Mf(e,t);break}case L.NOSCRIPT:{e._err(t,bt.nestedNoscriptInHead);break}default:L2(e,t)}}function rat(e,t){switch(t.tagID){case L.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Re.IN_HEAD;break}case L.BR:{L2(e,t);break}default:e._err(t,bt.endTagWithoutMatchingOpenElement)}}function L2(e,t){const n=t.type===Cr.EOF?bt.openElementsLeftAfterEof:bt.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Re.IN_HEAD,e._processToken(t)}function iat(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.BODY:{e._insertElement(t,Tt.HTML),e.framesetOk=!1,e.insertionMode=Re.IN_BODY;break}case L.FRAMESET:{e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_FRAMESET;break}case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:{e._err(t,bt.abandonedHeadElementChild),e.openElements.push(e.headElement,L.HEAD),Mf(e,t),e.openElements.remove(e.headElement);break}case L.HEAD:{e._err(t,bt.misplacedStartTagForHeadElement);break}default:$2(e,t)}}function aat(e,t){switch(t.tagID){case L.BODY:case L.HTML:case L.BR:{$2(e,t);break}case L.TEMPLATE:{dy(e,t);break}default:e._err(t,bt.endTagWithoutMatchingOpenElement)}}function $2(e,t){e._insertFakeElement(rt.BODY,L.BODY),e.insertionMode=Re.IN_BODY,zN(e,t)}function zN(e,t){switch(t.type){case Cr.CHARACTER:{C1e(e,t);break}case Cr.WHITESPACE_CHARACTER:{k1e(e,t);break}case Cr.COMMENT:{FF(e,t);break}case Cr.START_TAG:{zo(e,t);break}case Cr.END_TAG:{jN(e,t);break}case Cr.EOF:{I1e(e,t);break}}}function k1e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function C1e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function sat(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function oat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function lat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_FRAMESET)}function uat(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML)}function cat(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),m1e(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Tt.HTML)}function dat(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function fat(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML),n||(e.formElement=e.openElements.current))}function hat(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===L.LI&&i===L.LI||(n===L.DD||n===L.DT)&&(i===L.DD||i===L.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==L.ADDRESS&&i!==L.DIV&&i!==L.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML)}function pat(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML),e.tokenizer.state=Qa.PLAINTEXT}function mat(e,t){e.openElements.hasInScope(L.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(L.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.framesetOk=!1}function gat(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(rt.A);n&&(yH(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function yat(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(L.NOBR)&&(yH(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Tt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function vat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Oat(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ju.QUIRKS&&e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,Tt.HTML),e.framesetOk=!1,e.insertionMode=Re.IN_TABLE}function _1e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Tt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function A1e(e){const t=f1e(e,dg.TYPE);return t!=null&&t.toLowerCase()===Fit}function Sat(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Tt.HTML),A1e(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Eat(e,t){e._appendElement(t,Tt.HTML),t.ackSelfClosing=!0}function wat(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._appendElement(t,Tt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Tat(e,t){t.tagName=rt.IMG,t.tagID=L.IMG,_1e(e,t)}function xat(e,t){e._insertElement(t,Tt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Qa.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Re.TEXT}function kat(e,t){e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Qa.RAWTEXT)}function Cat(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Qa.RAWTEXT)}function fie(e,t){e._switchToTextParsing(t,Qa.RAWTEXT)}function _at(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Re.IN_TABLE||e.insertionMode===Re.IN_CAPTION||e.insertionMode===Re.IN_TABLE_BODY||e.insertionMode===Re.IN_ROW||e.insertionMode===Re.IN_CELL?Re.IN_SELECT_IN_TABLE:Re.IN_SELECT}function Aat(e,t){e.openElements.currentTagId===L.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML)}function Rat(e,t){e.openElements.hasInScope(L.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Tt.HTML)}function Iat(e,t){e.openElements.hasInScope(L.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(L.RTC),e._insertElement(t,Tt.HTML)}function Dat(e,t){e._reconstructActiveFormattingElements(),w1e(t),bH(t),t.selfClosing?e._appendElement(t,Tt.MATHML):e._insertElement(t,Tt.MATHML),t.ackSelfClosing=!0}function Nat(e,t){e._reconstructActiveFormattingElements(),T1e(t),bH(t),t.selfClosing?e._appendElement(t,Tt.SVG):e._insertElement(t,Tt.SVG),t.ackSelfClosing=!0}function hie(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Tt.HTML)}function zo(e,t){switch(t.tagID){case L.I:case L.S:case L.B:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.SMALL:case L.STRIKE:case L.STRONG:{bat(e,t);break}case L.A:{gat(e,t);break}case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:{cat(e,t);break}case L.P:case L.DL:case L.OL:case L.UL:case L.DIV:case L.DIR:case L.NAV:case L.MAIN:case L.MENU:case L.ASIDE:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.DETAILS:case L.ADDRESS:case L.ARTICLE:case L.SECTION:case L.SUMMARY:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:{uat(e,t);break}case L.LI:case L.DD:case L.DT:{hat(e,t);break}case L.BR:case L.IMG:case L.WBR:case L.AREA:case L.EMBED:case L.KEYGEN:{_1e(e,t);break}case L.HR:{wat(e,t);break}case L.RB:case L.RTC:{Rat(e,t);break}case L.RT:case L.RP:{Iat(e,t);break}case L.PRE:case L.LISTING:{dat(e,t);break}case L.XMP:{kat(e,t);break}case L.SVG:{Nat(e,t);break}case L.HTML:{sat(e,t);break}case L.BASE:case L.LINK:case L.META:case L.STYLE:case L.TITLE:case L.SCRIPT:case L.BGSOUND:case L.BASEFONT:case L.TEMPLATE:{Mf(e,t);break}case L.BODY:{oat(e,t);break}case L.FORM:{fat(e,t);break}case L.NOBR:{yat(e,t);break}case L.MATH:{Dat(e,t);break}case L.TABLE:{Oat(e,t);break}case L.INPUT:{Sat(e,t);break}case L.PARAM:case L.TRACK:case L.SOURCE:{Eat(e,t);break}case L.IMAGE:{Tat(e,t);break}case L.BUTTON:{mat(e,t);break}case L.APPLET:case L.OBJECT:case L.MARQUEE:{vat(e,t);break}case L.IFRAME:{Cat(e,t);break}case L.SELECT:{_at(e,t);break}case L.OPTION:case L.OPTGROUP:{Aat(e,t);break}case L.NOEMBED:{fie(e,t);break}case L.FRAMESET:{lat(e,t);break}case L.TEXTAREA:{xat(e,t);break}case L.NOSCRIPT:{e.options.scriptingEnabled?fie(e,t):hie(e,t);break}case L.PLAINTEXT:{pat(e,t);break}case L.COL:case L.TH:case L.TD:case L.TR:case L.HEAD:case L.FRAME:case L.TBODY:case L.TFOOT:case L.THEAD:case L.CAPTION:case L.COLGROUP:break;default:hie(e,t)}}function Pat(e,t){if(e.openElements.hasInScope(L.BODY)&&(e.insertionMode=Re.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Mat(e,t){e.openElements.hasInScope(L.BODY)&&(e.insertionMode=Re.AFTER_BODY,B1e(e,t))}function Lat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function $at(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(L.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(L.FORM):n&&e.openElements.remove(n))}function Fat(e){e.openElements.hasInButtonScope(L.P)||e._insertFakeElement(rt.P,L.P),e._closePElement()}function Bat(e){e.openElements.hasInListItemScope(L.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(L.LI),e.openElements.popUntilTagNamePopped(L.LI))}function Uat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function zat(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function jat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Hat(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(rt.BR,L.BR),e.openElements.pop(),e.framesetOk=!1}function R1e(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==L.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function jN(e,t){switch(t.tagID){case L.A:case L.B:case L.I:case L.S:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.NOBR:case L.SMALL:case L.STRIKE:case L.STRONG:{yH(e,t);break}case L.P:{Fat(e);break}case L.DL:case L.UL:case L.OL:case L.DIR:case L.DIV:case L.NAV:case L.PRE:case L.MAIN:case L.MENU:case L.ASIDE:case L.BUTTON:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.ADDRESS:case L.ARTICLE:case L.DETAILS:case L.SECTION:case L.SUMMARY:case L.LISTING:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:{Lat(e,t);break}case L.LI:{Bat(e);break}case L.DD:case L.DT:{Uat(e,t);break}case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:{zat(e);break}case L.BR:{Hat(e);break}case L.BODY:{Pat(e,t);break}case L.HTML:{Mat(e,t);break}case L.FORM:{$at(e);break}case L.APPLET:case L.OBJECT:case L.MARQUEE:{jat(e,t);break}case L.TEMPLATE:{dy(e,t);break}default:R1e(e,t)}}function I1e(e,t){e.tmplInsertionModeStack.length>0?F1e(e,t):vH(e,t)}function Vat(e,t){var n;t.tagID===L.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Wat(e,t){e._err(t,bt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function WM(e,t){if(x1e.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Re.IN_TABLE_TEXT,t.type){case Cr.CHARACTER:{N1e(e,t);break}case Cr.WHITESPACE_CHARACTER:{D1e(e,t);break}}else SC(e,t)}function Qat(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_CAPTION}function Yat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_COLUMN_GROUP}function qat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(rt.COLGROUP,L.COLGROUP),e.insertionMode=Re.IN_COLUMN_GROUP,OH(e,t)}function Gat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Tt.HTML),e.insertionMode=Re.IN_TABLE_BODY}function Zat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(rt.TBODY,L.TBODY),e.insertionMode=Re.IN_TABLE_BODY,HN(e,t)}function Xat(e,t){e.openElements.hasInTableScope(L.TABLE)&&(e.openElements.popUntilTagNamePopped(L.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Kat(e,t){A1e(t)?e._appendElement(t,Tt.HTML):SC(e,t),t.ackSelfClosing=!0}function Jat(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Tt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function WS(e,t){switch(t.tagID){case L.TD:case L.TH:case L.TR:{Zat(e,t);break}case L.STYLE:case L.SCRIPT:case L.TEMPLATE:{Mf(e,t);break}case L.COL:{qat(e,t);break}case L.FORM:{Jat(e,t);break}case L.TABLE:{Xat(e,t);break}case L.TBODY:case L.TFOOT:case L.THEAD:{Gat(e,t);break}case L.INPUT:{Kat(e,t);break}case L.CAPTION:{Qat(e,t);break}case L.COLGROUP:{Yat(e,t);break}default:SC(e,t)}}function tk(e,t){switch(t.tagID){case L.TABLE:{e.openElements.hasInTableScope(L.TABLE)&&(e.openElements.popUntilTagNamePopped(L.TABLE),e._resetInsertionMode());break}case L.TEMPLATE:{dy(e,t);break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:SC(e,t)}}function SC(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,zN(e,t),e.fosterParentingEnabled=n}function D1e(e,t){e.pendingCharacterTokens.push(t)}function N1e(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function TT(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===L.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===L.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===L.OPTGROUP&&e.openElements.pop();break}case L.OPTION:{e.openElements.currentTagId===L.OPTION&&e.openElements.pop();break}case L.SELECT:{e.openElements.hasInSelectScope(L.SELECT)&&(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode());break}case L.TEMPLATE:{dy(e,t);break}}}function ast(e,t){const n=t.tagID;n===L.CAPTION||n===L.TABLE||n===L.TBODY||n===L.TFOOT||n===L.THEAD||n===L.TR||n===L.TD||n===L.TH?(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode(),e._processStartTag(t)):L1e(e,t)}function sst(e,t){const n=t.tagID;n===L.CAPTION||n===L.TABLE||n===L.TBODY||n===L.TFOOT||n===L.THEAD||n===L.TR||n===L.TD||n===L.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$1e(e,t)}function ost(e,t){switch(t.tagID){case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:{Mf(e,t);break}case L.CAPTION:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:{e.tmplInsertionModeStack[0]=Re.IN_TABLE,e.insertionMode=Re.IN_TABLE,WS(e,t);break}case L.COL:{e.tmplInsertionModeStack[0]=Re.IN_COLUMN_GROUP,e.insertionMode=Re.IN_COLUMN_GROUP,OH(e,t);break}case L.TR:{e.tmplInsertionModeStack[0]=Re.IN_TABLE_BODY,e.insertionMode=Re.IN_TABLE_BODY,HN(e,t);break}case L.TD:case L.TH:{e.tmplInsertionModeStack[0]=Re.IN_ROW,e.insertionMode=Re.IN_ROW,VN(e,t);break}default:e.tmplInsertionModeStack[0]=Re.IN_BODY,e.insertionMode=Re.IN_BODY,zo(e,t)}}function lst(e,t){t.tagID===L.TEMPLATE&&dy(e,t)}function F1e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(L.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):vH(e,t)}function ust(e,t){t.tagID===L.HTML?zo(e,t):TI(e,t)}function B1e(e,t){var n;if(t.tagID===L.HTML){if(e.fragmentContext||(e.insertionMode=Re.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===L.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else TI(e,t)}function TI(e,t){e.insertionMode=Re.IN_BODY,zN(e,t)}function cst(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.FRAMESET:{e._insertElement(t,Tt.HTML);break}case L.FRAME:{e._appendElement(t,Tt.HTML),t.ackSelfClosing=!0;break}case L.NOFRAMES:{Mf(e,t);break}}}function dst(e,t){t.tagID===L.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==L.FRAMESET&&(e.insertionMode=Re.AFTER_FRAMESET))}function fst(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.NOFRAMES:{Mf(e,t);break}}}function hst(e,t){t.tagID===L.HTML&&(e.insertionMode=Re.AFTER_AFTER_FRAMESET)}function pst(e,t){t.tagID===L.HTML?zo(e,t):T5(e,t)}function T5(e,t){e.insertionMode=Re.IN_BODY,zN(e,t)}function mst(e,t){switch(t.tagID){case L.HTML:{zo(e,t);break}case L.NOFRAMES:{Mf(e,t);break}}}function gst(e,t){t.chars=la,e._insertCharacters(t)}function bst(e,t){e._insertCharacters(t),e.framesetOk=!1}function U1e(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Tt.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function yst(e,t){if(Nit(t))U1e(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Tt.MATHML?w1e(t):r===Tt.SVG&&(Pit(t),T1e(t)),bH(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function vst(e,t){if(t.tagID===L.P||t.tagID===L.BR){U1e(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Tt.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}rt.AREA,rt.BASE,rt.BASEFONT,rt.BGSOUND,rt.BR,rt.COL,rt.EMBED,rt.FRAME,rt.HR,rt.IMG,rt.INPUT,rt.KEYGEN,rt.LINK,rt.META,rt.PARAM,rt.SOURCE,rt.TRACK,rt.WBR;const Ost=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),pie={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function z1e(e,t){const n=Rst(e),r=dH("type",{handlers:{root:Sst,element:Est,text:wst,comment:H1e,doctype:Tst,raw:kst},unknown:Cst}),i={parser:n?new die(pie):die.getFragmentParser(void 0,pie),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),xE(i,ap());const a=n?i.parser.document:i.parser.getFragment(),s=Drt(a,{file:i.options.file});return i.stitches&&ml(s,"comment",function(o,l,c){const d=o;if(d.value.stitch&&c&&l!==void 0){const h=c.children;return h[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function j1e(e,t){let n=-1;if(e)for(;++n"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function Q1e(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Q1e(t.parentElement):null}function Nst(e){var t=n=>{var r=Q1e(n.target);r&&(r.classList.add("active"),Dst(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};P.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Pst=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Mst=e=>e;const Lst=gn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:c,pluginsFilter:d,wrapperElement:h={},warpperElement:p={},urlTransform:b}=e,v=st(e,Pst),S=gn.useRef(null);P.useImperativeHandle(t,()=>$({},e,{mdp:S}),[S,e]);var w=(n||"")+" "+(r||"");Nst(S);var T=[...v.rehypePlugins||[]],x={allowElement:(I,_,A)=>v.allowElement?v.allowElement(I,_,A):/^[A-Za-z0-9]+$/.test(I.tagName)};o&&T.push(W1e);var k=[...v.remarkPlugins||[],Ort],C=$({},p,h);return D.jsx("div",$({ref:S,onScroll:l,onMouseOver:c},C,{className:w,style:a,children:D.jsx(ctt,$({},x,v,{skipHtml:o,urlTransform:b||Mst,rehypePlugins:d?d("rehype",T):T,remarkPlugins:d?d("remark",k):k,children:i||""}))}))});function vO(e){return"children"in e?Y1e(e):"value"in e?e.value:""}function $st(e){return e.type==="text"?e.value:"children"in e?Y1e(e):""}function Y1e(e){let t=-1;const n=[];for(;++t0&&d.length===0)return}const h={};let p;for(p in o)Fst.call(o,p)&&(h[p]=p==="children"?d:o[p]);return h}}function Ust(e){return"children"in e&&e.children!==void 0}var UF={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,c,d]=a;if(l&&d){l=parseInt(l),d=parseInt(d);const h=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Lf.displayName="c";Lf.aliases=[];function Lf(e){e.register(Fr),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}fy.displayName="cpp";fy.aliases=[];function fy(e){e.register(Lf),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}WN.displayName="arduino";WN.aliases=["ino"];function WN(e){e.register(fy),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}wC.displayName="bash";wC.aliases=["sh","shell"];function wC(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(ye,te){return"(?:"+Ce[+te]+")"})}function r(j,Ce,ye){return RegExp(n(j,Ce),ye||"")}function i(j,Ce){for(var ye=0;ye>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=s(a.typeDeclaration+" "+a.contextual+" "+a.other),d=s(a.type+" "+a.typeDeclaration+" "+a.other),h=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,v=n(/<<0>>(?:\s*<<1>>)?/.source,[b,h]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,v]),w=/\[\s*(?:,\s*)*\]/.source,T=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,w]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,w]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),C=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,w]),I={keyword:l,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,U=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[U]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,C]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,v]),lookbehind:!0,inside:I},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:I},{pattern:r(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[T]),lookbehind:!0,inside:I},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,b]),inside:I}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:I},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,S]),inside:I,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:I,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,h]),inside:{function:r(/^<<0>>/.source,[b]),generic:{pattern:RegExp(h),alias:"class-name",inside:I}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,v,b,C,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(C),greedy:!0,inside:I},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var F=A+"|"+_,M=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[F]),V=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[M]),2),Q=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,X=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,V]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Q,X]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[Q]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[V]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Y=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[M]),2),ee=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,Y]),J=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[F]),2),K=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,Y]);function ne(j,Ce){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Ce,Y]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ee]),lookbehind:!0,greedy:!0,inside:ne(ee,W)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:ne(K,J)}],char:{pattern:RegExp(_),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}zs.displayName="markup";zs.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function zs(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Gg.displayName="css";Gg.aliases=[];function Gg(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}QN.displayName="diff";QN.aliases=[];function QN(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}YN.displayName="go";YN.aliases=[];function YN(e){e.register($r),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}qN.displayName="ini";qN.aliases=[];function qN(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}hy.displayName="java";hy.aliases=[];function hy(e){e.register($r),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}GN.displayName="regex";GN.aliases=[];function GN(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}xE.displayName="json";xE.aliases=["webmanifest"];function xE(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}ZN.displayName="kotlin";ZN.aliases=["kt","kts"];function ZN(e){e.register($r),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}XN.displayName="less";XN.aliases=[];function XN(e){e.register(qg),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}yC.displayName="lua";yC.aliases=[];function yC(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}KN.displayName="makefile";KN.aliases=[];function KN(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}vC.displayName="yaml";vC.aliases=["yml"];function vC(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(d,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}JN.displayName="markdown";JN.aliases=["md"];function JN(e){e.register(zs),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(c){if(!(!c||typeof c=="string"))for(var d=0,h=c.length;d]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}t6.displayName="perl";t6.aliases=[];function t6(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}go.displayName="markup-templating";go.aliases=[];function go(e){e.register(zs),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var c=o.length,d;r.code.indexOf(d=n(i,c))!==-1;)++c;return o[c]=l,d}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var c=0;c=s.length);c++){var d=l[c];if(typeof d=="string"||d.content&&typeof d.content=="string"){var h=s[a],p=r.tokenStack[h],b=typeof d=="string"?d:d.content,v=n(i,h),S=b.indexOf(v);if(S>-1){++a;var w=b.substring(0,S),T=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),x=b.substring(S+v.length),k=[];w&&k.push.apply(k,o([w])),k.push(T),x&&k.push.apply(k,o([x])),typeof d=="string"?l.splice.apply(l,[c,1].concat(k)):d.content=k}}else d.content&&o(d.content)}return l}o(r.tokens)}}})}(e)}py.displayName="php";py.aliases=[];function py(e){e.register(go),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var d=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",d)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}OC.displayName="python";OC.aliases=["py"];function OC(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}n6.displayName="r";n6.aliases=[];function n6(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}my.displayName="ruby";my.aliases=["rb"];function my(e){e.register($r),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}r6.displayName="rust";r6.aliases=[];function r6(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}i6.displayName="sass";i6.aliases=[];function i6(e){e.register(qg),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}a6.displayName="scss";a6.aliases=[];function a6(e){e.register(qg),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}kE.displayName="sql";kE.aliases=[];function kE(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}s6.displayName="swift";s6.aliases=[];function s6(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}CE.displayName="typescript";CE.aliases=["ts"];function CE(e){e.register(mo),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}SC.displayName="basic";SC.aliases=[];function SC(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}EC.displayName="vbnet";EC.aliases=[];function EC(e){e.register(SC),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const nie=/[#.]/g;function Qat(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function tst(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function nst(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function aie(e){return nst(e)||D1e(e)}const Iv=String.fromCharCode,rst=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function ist(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let c=(o?o.line:0)||1,d=(o?o.column:0)||1,h=b(),p;for(i--;++i<=e.length;)if(p===10&&(d=(l?l[a]:0)||1),p=e.charCodeAt(i),p===38){const w=e.charCodeAt(i+1);if(w===9||w===10||w===12||w===32||w===38||w===60||Number.isNaN(w)||n&&w===n){s+=Iv(p),d++;continue}const T=i+1;let x=T,k=T,C;if(w===35){k=++x;const Q=e.charCodeAt(k);Q===88||Q===120?(C="hexadecimal",k=++x):C="decimal"}else C="named";let I="",_="",A="";const U=C==="named"?aie:C==="decimal"?D1e:tst;for(k--;++k<=e.length;){const Q=e.charCodeAt(k);if(!U(Q))break;A+=Iv(Q),C==="named"&&est.includes(A)&&(I=A,_=Kx(A))}let F=e.charCodeAt(k)===59;if(F){k++;const Q=C==="named"?Kx(A):!1;Q&&(I=A,_=Q)}let P=1+k-T,V="";if(!(!F&&t.nonTerminated===!1))if(!A)C!=="named"&&v(4,P);else if(C==="named"){if(F&&!_)v(5,1);else if(I!==A&&(k=x+I.length,P=1+k-x,F=!1),!F){const Q=I?1:3;if(t.attribute){const X=e.charCodeAt(k);X===61?(v(Q,P),_=""):aie(X)?_="":v(Q,P)}else v(Q,P)}V=_}else{F||v(2,P);let Q=Number.parseInt(A,C==="hexadecimal"?16:10);if(ast(Q))v(7,P),V=Iv(65533);else if(Q in iie)v(6,P),V=iie[Q];else{let X="";sst(Q)&&v(6,P),Q>65535&&(Q-=65536,X+=Iv(Q>>>10|55296),Q=56320|Q&1023),V=X+Iv(Q)}}if(V){S(),h=b(),i=k-1,d+=k-T+1,r.push(V);const Q=b();Q.offset++,t.reference&&t.reference.call(t.referenceContext,V,{start:h,end:Q},e.slice(T-1,k)),h=Q}else A=e.slice(T-1,k),s+=A,d+=A.length,i=k-1}else p===10&&(c++,a++,d=0),Number.isNaN(p)?S():(s+=Iv(p),d++);return r.join("");function b(){return{line:c,column:d,offset:i+((o?o.offset:0)||0)}}function v(w,T){let x;t.warning&&(x=b(),x.column+=T,x.offset+=T,t.warning.call(t.warningContext,rst[w],x,w))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:h,end:b()}),s="")}}function ast(e){return e>=55296&&e<=57343||e>1114111}function sst(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var ost=0,n3={},Rs={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++ost}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Rs.util.type(t)){case"Object":if(i=Rs.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=Rs.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:n3,plaintext:n3,text:n3,txt:n3,extend:function(e,t){var n=Rs.util.clone(Rs.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Rs.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,Rs.languages.DFS(Rs.languages,function(c,d){d===l&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=Rs.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=Rs.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Rs.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Rs.tokenize(r.code,r.grammar),Rs.hooks.run("after-tokenize",r),$T.stringify(Rs.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new lst;return v5(i,i.head,e),N1e(e,i,t,i.head,0),cst(i)},hooks:{all:{},add:function(e,t){var n=Rs.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Rs.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:$T};function $T(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function sie(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function N1e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);T+=w.value.length,w=w.next){var x=w.value;if(t.length>e.length)return;if(!(x instanceof $T)){var k=1,C;if(p){if(C=sie(S,T,e,h),!C||C.index>=e.length)break;var U=C.index,I=C.index+C[0].length,_=T;for(_+=w.value.length;U>=_;)w=w.next,_+=w.value.length;if(_-=w.value.length,T=_,w.value instanceof $T)continue;for(var A=w;A!==t.tail&&(_a.reach&&(a.reach=Q);var X=w.prev;P&&(X=v5(t,X,P),T+=P.length),ust(t,X,k);var Y=new $T(s,d?Rs.tokenize(F,d):F,b,F);if(w=v5(t,X,Y),V&&v5(t,w,V),k>1){var W={cause:s+","+l,reach:Q};N1e(e,t,n,w.prev,T,W),a&&W.reach>a.reach&&(a.reach=W.reach)}}}}}}function lst(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function v5(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function ust(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}yH.displayName="abnf";yH.aliases=[];function yH(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}vH.displayName="actionscript";vH.aliases=[];function vH(e){e.register(mo),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}OH.displayName="ada";OH.aliases=[];function OH(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}SH.displayName="agda";SH.aliases=[];function SH(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}EH.displayName="al";EH.aliases=[];function EH(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}wH.displayName="antlr4";wH.aliases=["g4"];function wH(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}TH.displayName="apacheconf";TH.aliases=[];function TH(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}xH.displayName="apex";xH.aliases=[];function xH(e){e.register($r),e.register(kE),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}kH.displayName="apl";kH.aliases=[];function kH(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}CH.displayName="applescript";CH.aliases=[];function CH(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}_H.displayName="aql";_H.aliases=[];function _H(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}AH.displayName="arff";AH.aliases=[];function AH(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}RH.displayName="armasm";RH.aliases=["arm-asm"];function RH(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}IH.displayName="arturo";IH.aliases=["art"];function IH(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}DH.displayName="asciidoc";DH.aliases=["adoc"];function DH(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}PH.displayName="asm6502";PH.aliases=[];function PH(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}MH.displayName="asmatmel";MH.aliases=[];function MH(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}LH.displayName="autohotkey";LH.aliases=[];function LH(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}$H.displayName="autoit";$H.aliases=[];function $H(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}FH.displayName="avisynth";FH.aliases=["avs"];function FH(e){(function(t){function n(c,d){return c.replace(/<<(\d+)>>/g,function(h,p){return d[+p]})}function r(c,d,h){return RegExp(n(c,d),h||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}BH.displayName="avro-idl";BH.aliases=["avdl"];function BH(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}UH.displayName="awk";UH.aliases=["gawk"];function UH(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}zH.displayName="batch";zH.aliases=[];function zH(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}jH.displayName="bbcode";jH.aliases=["shortcode"];function jH(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}HH.displayName="bbj";HH.aliases=[];function HH(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}VH.displayName="bicep";VH.aliases=[];function VH(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}WH.displayName="birb";WH.aliases=[];function WH(e){e.register($r),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}QH.displayName="bison";QH.aliases=[];function QH(e){e.register(Lf),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}YH.displayName="bnf";YH.aliases=["rbnf"];function YH(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}qH.displayName="bqn";qH.aliases=[];function qH(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}GH.displayName="brainfuck";GH.aliases=[];function GH(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}ZH.displayName="brightscript";ZH.aliases=[];function ZH(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}XH.displayName="bro";XH.aliases=[];function XH(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}KH.displayName="bsl";KH.aliases=["oscript"];function KH(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}JH.displayName="cfscript";JH.aliases=["cfc"];function JH(e){e.register($r),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}eV.displayName="chaiscript";eV.aliases=[];function eV(e){e.register($r),e.register(dy),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}tV.displayName="cil";tV.aliases=[];function tV(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}nV.displayName="cilkc";nV.aliases=["cilk-c"];function nV(e){e.register(Lf),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}rV.displayName="cilkcpp";rV.aliases=["cilk","cilk-cpp"];function rV(e){e.register(dy),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}iV.displayName="clojure";iV.aliases=[];function iV(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}aV.displayName="cmake";aV.aliases=[];function aV(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}sV.displayName="cobol";sV.aliases=[];function sV(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}oV.displayName="coffeescript";oV.aliases=["coffee"];function oV(e){e.register(mo),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}lV.displayName="concurnas";lV.aliases=["conc"];function lV(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}uV.displayName="csp";uV.aliases=[];function uV(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}cV.displayName="cooklang";cV.aliases=[];function cV(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}dV.displayName="coq";dV.aliases=[];function dV(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}fV.displayName="crystal";fV.aliases=[];function fV(e){e.register(my),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}hV.displayName="css-extras";hV.aliases=[];function hV(e){e.register(qg),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}pV.displayName="csv";pV.aliases=[];function pV(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}mV.displayName="cue";mV.aliases=[];function mV(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}gV.displayName="cypher";gV.aliases=[];function gV(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}bV.displayName="d";bV.aliases=[];function bV(e){e.register($r),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}yV.displayName="dart";yV.aliases=[];function yV(e){e.register($r),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}vV.displayName="dataweave";vV.aliases=[];function vV(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}OV.displayName="dax";OV.aliases=[];function OV(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}SV.displayName="dhall";SV.aliases=[];function SV(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}EV.displayName="django";EV.aliases=["jinja2"];function EV(e){e.register(go),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}wV.displayName="dns-zone-file";wV.aliases=["dns-zone"];function wV(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}TV.displayName="docker";TV.aliases=["dockerfile"];function TV(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(c,d){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,d)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}xV.displayName="dot";xV.aliases=["gv"];function xV(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}kV.displayName="ebnf";kV.aliases=[];function kV(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}CV.displayName="editorconfig";CV.aliases=[];function CV(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}_V.displayName="eiffel";_V.aliases=[];function _V(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}AV.displayName="ejs";AV.aliases=["eta"];function AV(e){e.register(mo),e.register(go),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}RV.displayName="elixir";RV.aliases=[];function RV(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}IV.displayName="elm";IV.aliases=[];function IV(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}DV.displayName="etlua";DV.aliases=[];function DV(e){e.register(yC),e.register(go),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}NV.displayName="erb";NV.aliases=[];function NV(e){e.register(go),e.register(my),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}PV.displayName="erlang";PV.aliases=[];function PV(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}MV.displayName="excel-formula";MV.aliases=["xls","xlsx"];function MV(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}LV.displayName="fsharp";LV.aliases=[];function LV(e){e.register($r),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}$V.displayName="factor";$V.aliases=[];function $V(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(c){i[c].pattern=s(o[c])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}FV.displayName="false";FV.aliases=[];function FV(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}UV.displayName="flow";UV.aliases=[];function UV(e){e.register(mo),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}zV.displayName="fortran";zV.aliases=[];function zV(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}jV.displayName="ftl";jV.aliases=[];function jV(e){e.register(go),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}HV.displayName="gml";HV.aliases=["gamemakerlanguage"];function HV(e){e.register($r),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}VV.displayName="gap";VV.aliases=[];function VV(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}WV.displayName="gcode";WV.aliases=[];function WV(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}QV.displayName="gdscript";QV.aliases=[];function QV(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}YV.displayName="gedcom";YV.aliases=[];function YV(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}qV.displayName="gettext";qV.aliases=["po"];function qV(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}GV.displayName="gherkin";GV.aliases=[];function GV(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}ZV.displayName="git";ZV.aliases=[];function ZV(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}XV.displayName="glsl";XV.aliases=[];function XV(e){e.register(Lf),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}KV.displayName="gn";KV.aliases=["gni"];function KV(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}JV.displayName="linker-script";JV.aliases=["ld"];function JV(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}eW.displayName="go-module";eW.aliases=["go-mod"];function eW(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}tW.displayName="gradle";tW.aliases=[];function tW(e){e.register($r),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}nW.displayName="graphql";nW.aliases=[];function nW(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),i=0;function a(w){return r[i+w]}function s(w,T){T=T||0;for(var x=0;x0)){var b=o(/^\{$/,/^\}$/);if(b===-1)continue;for(var v=i;v=0&&l(S,"variable-input")}}}}})}rW.displayName="groovy";rW.aliases=[];function rW(e){e.register($r),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}iW.displayName="textile";iW.aliases=[];function iW(e){e.register(zs),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(h,p){return RegExp(h.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=o.inline.inside;c.bold.inside=l,c.italic.inside=l,c.inserted.inside=l,c.deleted.inside=l,c.span.inside=l;var d=o.table.inside;d.inline=l.inline,d.link=l.link,d.image=l.image,d.footnote=l.footnote,d.acronym=l.acronym,d.mark=l.mark}(e)}aW.displayName="haml";aW.aliases=[];function aW(e){e.register(my),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}wC.displayName="haskell";wC.aliases=["hs"];function wC(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}oW.displayName="haxe";oW.aliases=[];function oW(e){e.register($r),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}lW.displayName="hcl";lW.aliases=[];function lW(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}uW.displayName="hlsl";uW.aliases=[];function uW(e){e.register(Lf),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}cW.displayName="hoon";cW.aliases=[];function cW(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}dW.displayName="hpkp";dW.aliases=[];function dW(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}fW.displayName="hsts";fW.aliases=[];function fW(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}hW.displayName="uri";hW.aliases=["url"];function hW(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}pW.displayName="http";pW.aliases=[];function pW(e){(function(t){function n(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(d){var h=d.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+h+"(?![+\\w.-])";return"(?:"+d+"|"+p+")"}var o;for(var l in i)if(i[l]){o=o||{};var c=a[l]?s(l):l;o[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}o&&t.languages.insertBefore("http","header",o)})(e)}mW.displayName="ichigojam";mW.aliases=[];function mW(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}gW.displayName="icon";gW.aliases=[];function gW(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}bW.displayName="icu-message-format";bW.aliases=[];function bW(e){(function(t){function n(l,c){return c<=0?/[]/.source:l.replace(//g,function(){return n(l,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}yW.displayName="idris";yW.aliases=["idr"];function yW(e){e.register(wC),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}vW.displayName="ignore";vW.aliases=["gitignore","hgignore","npmignore"];function vW(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}OW.displayName="inform7";OW.aliases=[];function OW(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}SW.displayName="io";SW.aliases=[];function SW(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}AE.displayName="javadoclike";AE.aliases=[];function AE(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var c=l[o];if(!c){var d={};d[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",d),c=l[o]}if(c instanceof RegExp&&(c=l[o]={pattern:c}),Array.isArray(c))for(var h=0,p=c.length;h|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}TW.displayName="javadoc";TW.aliases=[];function TW(e){e.register(hy),e.register(AE),e.register(zs),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}xW.displayName="javastacktrace";xW.aliases=[];function xW(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}kW.displayName="jexl";kW.aliases=[];function kW(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}CW.displayName="jolie";CW.aliases=[];function CW(e){e.register($r),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}_W.displayName="jq";_W.aliases=[];function _W(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}AW.displayName="js-templates";AW.aliases=[];function AW(e){e.register(mo),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(v,S){if(t.languages[v])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:v}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(v,S){return"___"+S.toUpperCase()+"_"+v+"___"}function c(v,S,w){var T={code:v,grammar:S,language:w};return t.hooks.run("before-tokenize",T),T.tokens=t.tokenize(T.code,T.grammar),t.hooks.run("after-tokenize",T),T.tokens}function d(v){var S={};S["interpolation-punctuation"]=a;var w=t.tokenize(v,S);if(w.length===3){var T=[1,1];T.push.apply(T,c(w[1],t.languages.javascript,"javascript")),w.splice.apply(w,T)}return new t.Token("interpolation",w,i.alias,v)}function h(v,S,w){var T=t.tokenize(v,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},C=T.map(function(U){if(typeof U=="string")return U;for(var F=U.content,P;v.indexOf(P=l(x++,w))!==-1;);return k[P]=F,P}).join(""),I=c(C,S,w),_=Object.keys(k);x=0;function A(U){for(var F=0;F=_.length)return;var P=U[F];if(typeof P=="string"||typeof P.content=="string"){var V=_[x],Q=typeof P=="string"?P:P.content,X=Q.indexOf(V);if(X!==-1){++x;var Y=Q.substring(0,X),W=d(k[V]),ee=Q.substring(X+V.length),J=[];if(Y&&J.push(Y),J.push(W),ee){var K=[ee];A(K),J.push.apply(J,K)}typeof P=="string"?(U.splice.apply(U,[F,1].concat(J)),F+=J.length-1):P.content=J}}else{var ne=P.content;Array.isArray(ne)?A(ne):A([ne])}}}return A(I),new t.Token(w,I,"language-"+w,v)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(v){if(!(v.language in p))return;function S(w){for(var T=0,x=w.length;T\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}IW.displayName="n4js";IW.aliases=["n4jsd"];function IW(e){e.register(mo),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}DW.displayName="js-extras";DW.aliases=[];function DW(e){e.register(mo),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(l,c){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}LW.displayName="julia";LW.aliases=[];function LW(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}$W.displayName="keepalived";$W.aliases=[];function $W(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}FW.displayName="keyman";FW.aliases=[];function FW(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}BW.displayName="kumir";BW.aliases=["kum"];function BW(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}UW.displayName="kusto";UW.aliases=[];function UW(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}zW.displayName="latex";zW.aliases=["context","tex"];function zW(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}jW.displayName="latte";jW.aliases=[];function jW(e){e.register($r),e.register(go),e.register(py),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}TC.displayName="scheme";TC.aliases=[];function TC(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}HW.displayName="lilypond";HW.aliases=["ly"];function HW(e){e.register(TC),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}VW.displayName="liquid";VW.aliases=[];function VW(e){e.register(go),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}WW.displayName="lisp";WW.aliases=["elisp","emacs","emacs-lisp"];function WW(e){(function(t){function n(v){return RegExp(/(\()/.source+"(?:"+v+")"+/(?=[\s\)])/.source)}function r(v){return RegExp(/([\s([])/.source+"(?:"+v+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},h={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},p="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+c+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:h},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:h},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:h},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=b,d.defun.inside.arguments=t.util.clone(b),d.defun.inside.arguments.inside.sublist=b,t.languages.lisp=d,t.languages.elisp=d,t.languages.emacs=d,t.languages["emacs-lisp"]=d})(e)}QW.displayName="livescript";QW.aliases=[];function QW(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}YW.displayName="llvm";YW.aliases=[];function YW(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}qW.displayName="log";qW.aliases=[];function qW(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}GW.displayName="lolcode";GW.aliases=[];function GW(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}ZW.displayName="magma";ZW.aliases=[];function ZW(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}o6.displayName="mata";o6.aliases=[];function o6(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}XW.displayName="matlab";XW.aliases=[];function XW(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}KW.displayName="maxscript";KW.aliases=[];function KW(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}JW.displayName="mel";JW.aliases=[];function JW(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}eQ.displayName="mermaid";eQ.aliases=[];function eQ(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}tQ.displayName="metafont";tQ.aliases=[];function tQ(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}nQ.displayName="mizar";nQ.aliases=[];function nQ(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}rQ.displayName="mongodb";rQ.aliases=[];function rQ(e){e.register(mo),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}iQ.displayName="monkey";iQ.aliases=[];function iQ(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}aQ.displayName="moonscript";aQ.aliases=["moon"];function aQ(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}sQ.displayName="n1ql";sQ.aliases=[];function sQ(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|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|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}oQ.displayName="nand2tetris-hdl";oQ.aliases=[];function oQ(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}lQ.displayName="naniscript";lQ.aliases=["nani"];function lQ(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var c=a(l);i(c)||(l.type="bad-line",l.content=c)}})});function i(s){for(var o="[]{}",l=[],c=0;c=&|$!]/}}cQ.displayName="neon";cQ.aliases=[];function cQ(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}dQ.displayName="nevod";dQ.aliases=[];function dQ(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}fQ.displayName="nginx";fQ.aliases=[];function fQ(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}hQ.displayName="nim";hQ.aliases=[];function hQ(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}pQ.displayName="nix";pQ.aliases=[];function pQ(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}mQ.displayName="nsis";mQ.aliases=[];function mQ(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}gQ.displayName="ocaml";gQ.aliases=[];function gQ(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}bQ.displayName="odin";bQ.aliases=[];function bQ(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}yQ.displayName="opencl";yQ.aliases=[];function yQ(e){e.register(Lf),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}vQ.displayName="openqasm";vQ.aliases=["qasm"];function vQ(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}OQ.displayName="oz";OQ.aliases=[];function OQ(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}SQ.displayName="parigp";SQ.aliases=[];function SQ(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}EQ.displayName="parser";EQ.aliases=[];function EQ(e){e.register(zs),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}wQ.displayName="pascal";wQ.aliases=["objectpascal"];function wQ(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}TQ.displayName="pascaligo";TQ.aliases=[];function TQ(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}xQ.displayName="psl";xQ.aliases=[];function xQ(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}kQ.displayName="pcaxis";kQ.aliases=["px"];function kQ(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}CQ.displayName="peoplecode";CQ.aliases=["pcode"];function CQ(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}_Q.displayName="phpdoc";_Q.aliases=[];function _Q(e){e.register(AE),e.register(py),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}AQ.displayName="php-extras";AQ.aliases=[];function AQ(e){e.register(py),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}RQ.displayName="plant-uml";RQ.aliases=["plantuml"];function RQ(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,d=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+d+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}IQ.displayName="plsql";IQ.aliases=[];function IQ(e){e.register(kE),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|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|MUTABLE|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|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|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|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}DQ.displayName="powerquery";DQ.aliases=["mscript","pq"];function DQ(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}NQ.displayName="powershell";NQ.aliases=[];function NQ(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}PQ.displayName="processing";PQ.aliases=[];function PQ(e){e.register($r),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}MQ.displayName="prolog";MQ.aliases=[];function MQ(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}LQ.displayName="promql";LQ.aliases=[];function LQ(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}$Q.displayName="properties";$Q.aliases=[];function $Q(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}FQ.displayName="protobuf";FQ.aliases=[];function FQ(e){e.register($r),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}BQ.displayName="stylus";BQ.aliases=[];function BQ(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}UQ.displayName="twig";UQ.aliases=[];function UQ(e){e.register(go),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}zQ.displayName="pug";zQ.aliases=[];function zQ(e){e.register(mo),e.register(zs),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}jQ.displayName="puppet";jQ.aliases=[];function jQ(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}HQ.displayName="pure";HQ.aliases=[];function HQ(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}VQ.displayName="purebasic";VQ.aliases=["pbfasm"];function VQ(e){e.register($r),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}WQ.displayName="purescript";WQ.aliases=["purs"];function WQ(e){e.register(wC),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}QQ.displayName="qsharp";QQ.aliases=["qs"];function QQ(e){e.register($r),function(t){function n(b,v){return b.replace(/<<(\d+)>>/g,function(S,w){return"(?:"+v[+w]+")"})}function r(b,v,S){return RegExp(n(b,v),S||"")}function i(b,v){for(var S=0;S>/g,function(){return"(?:"+b+")"});return b.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),d={keyword:o,punctuation:/[<>()?,.:[\]]/},h=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[h]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:d},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:d}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[h]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[p]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[p]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}YQ.displayName="q";YQ.aliases=[];function YQ(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}qQ.displayName="qml";qQ.aliases=[];function qQ(e){e.register(mo),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}GQ.displayName="qore";GQ.aliases=[];function GQ(e){e.register($r),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}ZQ.displayName="racket";ZQ.aliases=["rkt"];function ZQ(e){e.register(TC),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}XQ.displayName="cshtml";XQ.aliases=["razor"];function XQ(e){e.register(fy),e.register(zs),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var C=0;C/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,d=/@(?![\w()])/.source+"|"+c,h="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+d+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,h),b=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,v=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+b+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+b+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(c,d){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,d)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(o).join(""):""},l=function(c){for(var d=[],h=0;h0&&d[d.length-1].tagName===o(p.content[0].content[1])&&d.pop():p.content[p.content.length-1].content==="/>"||d.push({tagName:o(p.content[0].content[1]),openedBraces:0}):d.length>0&&p.type==="punctuation"&&p.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?d[d.length-1].openedBraces--:b=!0),(b||typeof p=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var v=o(p);h0&&(typeof c[h-1]=="string"||c[h-1].type==="plain-text")&&(v=o(c[h-1])+v,c.splice(h-1,1),h--),c[h]=new t.Token("plain-text",v,null,v)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||l(c.tokens)})}(e)}KQ.displayName="tsx";KQ.aliases=[];function KQ(e){e.register(l6),e.register(CE),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}JQ.displayName="reason";JQ.aliases=[];function JQ(e){e.register($r),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}eY.displayName="rego";eY.aliases=[];function eY(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}tY.displayName="renpy";tY.aliases=["rpy"];function tY(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}nY.displayName="rescript";nY.aliases=["res"];function nY(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}rY.displayName="rest";rY.aliases=[];function rY(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}iY.displayName="rip";iY.aliases=[];function iY(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}aY.displayName="roboconf";aY.aliases=[];function aY(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}sY.displayName="robotframework";sY.aliases=["robot"];function sY(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,c){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var h in c)d[h]=c[h];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=r,d.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:d}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}oY.displayName="sas";oY.aliases=[];function oY(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},d=/[$%@.(){}\[\];,\\]/,h={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:h,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:c},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},v={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},w={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},T=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return T}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return T}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:h,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:d,string:c}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:k,"submit-statement":w,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:k,"submit-statement":w,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:p}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:o,keyword:k,function:h,format:b,altformat:v,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":x,comment:l,function:h,format:b,altformat:v,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}lY.displayName="shell-session";lY.aliases=["sh-session","shellsession"];function lY(e){e.register(bC),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}uY.displayName="smali";uY.aliases=[];function uY(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}cY.displayName="smalltalk";cY.aliases=[];function cY(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}dY.displayName="smarty";dY.aliases=[];function dY(e){e.register(go),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}fY.displayName="sml";fY.aliases=["smlnj"];function fY(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}hY.displayName="solidity";hY.aliases=["sol"];function hY(e){e.register($r),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}pY.displayName="solution-file";pY.aliases=["sln"];function pY(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}mY.displayName="soy";mY.aliases=[];function mY(e){e.register(go),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===o&&(l=!1),l?!1:(c===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}u6.displayName="turtle";u6.aliases=["trig"];function u6(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}gY.displayName="sparql";gY.aliases=["rq"];function gY(e){e.register(u6),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}bY.displayName="splunk-spl";bY.aliases=[];function bY(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}yY.displayName="sqf";yY.aliases=[];function yY(e){e.register($r),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}vY.displayName="squirrel";vY.aliases=[];function vY(e){e.register($r),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}OY.displayName="stan";OY.aliases=[];function OY(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}SY.displayName="stata";SY.aliases=[];function SY(e){e.register(hy),e.register(o6),e.register(OC),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}EY.displayName="iecst";EY.aliases=[];function EY(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}wY.displayName="supercollider";wY.aliases=["sclang"];function wY(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}TY.displayName="systemd";TY.aliases=[];function TY(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}xC.displayName="t4-templating";xC.aliases=[];function xC(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}xY.displayName="t4-cs";xY.aliases=["t4"];function xY(e){e.register(fy),e.register(xC),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}kY.displayName="t4-vb";kY.aliases=[];function kY(e){e.register(xC),e.register(EC),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}CY.displayName="tap";CY.aliases=[];function CY(e){e.register(vC),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}_Y.displayName="tcl";_Y.aliases=[];function _Y(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}AY.displayName="tt2";AY.aliases=[];function AY(e){e.register($r),e.register(go),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}RY.displayName="toml";RY.aliases=[];function RY(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}IY.displayName="tremor";IY.aliases=["trickle","troy"];function IY(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}DY.displayName="typoscript";DY.aliases=["tsconfig"];function DY(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}NY.displayName="unrealscript";NY.aliases=["uc","uscript"];function NY(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}PY.displayName="uorazor";PY.aliases=[];function PY(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}MY.displayName="v";MY.aliases=[];function MY(e){e.register($r),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}LY.displayName="vala";LY.aliases=[];function LY(e){e.register($r),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}$Y.displayName="velocity";$Y.aliases=[];function $Y(e){e.register(zs),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}FY.displayName="verilog";FY.aliases=[];function FY(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}BY.displayName="vhdl";BY.aliases=[];function BY(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}UY.displayName="vim";UY.aliases=[];function UY(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}zY.displayName="visual-basic";zY.aliases=["vb","vba"];function zY(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}jY.displayName="warpscript";jY.aliases=[];function jY(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}HY.displayName="wasm";HY.aliases=[];function HY(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}VY.displayName="web-idl";VY.aliases=["webidl"];function VY(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}WY.displayName="wgsl";WY.aliases=[];function WY(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}QY.displayName="wiki";QY.aliases=[];function QY(e){e.register(zs),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}YY.displayName="wolfram";YY.aliases=["mathematica","nb","wl"];function YY(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}qY.displayName="wren";qY.aliases=[];function qY(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}GY.displayName="xeora";GY.aliases=["xeoracube"];function GY(e){e.register(zs),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}ZY.displayName="xml-doc";ZY.aliases=[];function ZY(e){e.register(zs),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}XY.displayName="xojo";XY.aliases=[];function XY(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}KY.displayName="xquery";KY.aliases=[];function KY(e){e.register(zs),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(c=n(i[s-1])+c,i.splice(s-1,1),s--),/^\s+$/.test(c)?i[s]=c:i[s]=new t.Token("plain-text",c,null,c)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}JY.displayName="yang";JY.aliases=[];function JY(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}eq.displayName="zig";eq.aliases=[];function eq(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}oe.register(zs);oe.register(qg);oe.register($r);oe.register(GN);oe.register(mo);oe.register(bH);oe.register(yH);oe.register(vH);oe.register(OH);oe.register(SH);oe.register(EH);oe.register(wH);oe.register(TH);oe.register(kE);oe.register(xH);oe.register(kH);oe.register(CH);oe.register(_H);oe.register(Lf);oe.register(dy);oe.register(WN);oe.register(AH);oe.register(RH);oe.register(bC);oe.register(vC);oe.register(JN);oe.register(IH);oe.register(DH);oe.register(fy);oe.register(NH);oe.register(PH);oe.register(MH);oe.register(LH);oe.register($H);oe.register(FH);oe.register(BH);oe.register(UH);oe.register(SC);oe.register(zH);oe.register(jH);oe.register(HH);oe.register(VH);oe.register(WH);oe.register(QH);oe.register(YH);oe.register(qH);oe.register(GH);oe.register(ZH);oe.register(XH);oe.register(KH);oe.register(JH);oe.register(eV);oe.register(tV);oe.register(nV);oe.register(rV);oe.register(iV);oe.register(aV);oe.register(sV);oe.register(oV);oe.register(lV);oe.register(uV);oe.register(cV);oe.register(dV);oe.register(my);oe.register(fV);oe.register(hV);oe.register(pV);oe.register(mV);oe.register(gV);oe.register(bV);oe.register(yV);oe.register(vV);oe.register(OV);oe.register(SV);oe.register(QN);oe.register(go);oe.register(EV);oe.register(wV);oe.register(TV);oe.register(xV);oe.register(kV);oe.register(CV);oe.register(_V);oe.register(AV);oe.register(RV);oe.register(IV);oe.register(yC);oe.register(DV);oe.register(NV);oe.register(PV);oe.register(MV);oe.register(LV);oe.register($V);oe.register(FV);oe.register(BV);oe.register(UV);oe.register(zV);oe.register(jV);oe.register(HV);oe.register(VV);oe.register(WV);oe.register(QV);oe.register(YV);oe.register(qV);oe.register(GV);oe.register(ZV);oe.register(XV);oe.register(KV);oe.register(JV);oe.register(YN);oe.register(eW);oe.register(tW);oe.register(nW);oe.register(rW);oe.register(XN);oe.register(a6);oe.register(iW);oe.register(aW);oe.register(sW);oe.register(wC);oe.register(oW);oe.register(lW);oe.register(uW);oe.register(cW);oe.register(dW);oe.register(fW);oe.register(xE);oe.register(hW);oe.register(pW);oe.register(mW);oe.register(gW);oe.register(bW);oe.register(yW);oe.register(vW);oe.register(OW);oe.register(qN);oe.register(SW);oe.register(EW);oe.register(hy);oe.register(py);oe.register(AE);oe.register(wW);oe.register(TW);oe.register(xW);oe.register(kW);oe.register(CW);oe.register(_W);oe.register(AW);oe.register(CE);oe.register(RW);oe.register(IW);oe.register(DW);oe.register(NW);oe.register(PW);oe.register(MW);oe.register(LW);oe.register($W);oe.register(FW);oe.register(ZN);oe.register(BW);oe.register(UW);oe.register(zW);oe.register(jW);oe.register(TC);oe.register(HW);oe.register(VW);oe.register(WW);oe.register(QW);oe.register(YW);oe.register(qW);oe.register(GW);oe.register(ZW);oe.register(KN);oe.register(o6);oe.register(XW);oe.register(KW);oe.register(JW);oe.register(eQ);oe.register(tQ);oe.register(nQ);oe.register(rQ);oe.register(iQ);oe.register(aQ);oe.register(sQ);oe.register(oQ);oe.register(lQ);oe.register(uQ);oe.register(cQ);oe.register(dQ);oe.register(fQ);oe.register(hQ);oe.register(pQ);oe.register(mQ);oe.register(e6);oe.register(gQ);oe.register(bQ);oe.register(yQ);oe.register(vQ);oe.register(OQ);oe.register(SQ);oe.register(EQ);oe.register(wQ);oe.register(TQ);oe.register(xQ);oe.register(kQ);oe.register(CQ);oe.register(t6);oe.register(_Q);oe.register(AQ);oe.register(RQ);oe.register(IQ);oe.register(DQ);oe.register(NQ);oe.register(PQ);oe.register(MQ);oe.register(LQ);oe.register($Q);oe.register(FQ);oe.register(BQ);oe.register(UQ);oe.register(zQ);oe.register(jQ);oe.register(HQ);oe.register(VQ);oe.register(WQ);oe.register(OC);oe.register(QQ);oe.register(YQ);oe.register(qQ);oe.register(GQ);oe.register(n6);oe.register(ZQ);oe.register(XQ);oe.register(l6);oe.register(KQ);oe.register(JQ);oe.register(eY);oe.register(tY);oe.register(nY);oe.register(rY);oe.register(iY);oe.register(aY);oe.register(sY);oe.register(r6);oe.register(oY);oe.register(i6);oe.register(lY);oe.register(uY);oe.register(cY);oe.register(dY);oe.register(fY);oe.register(hY);oe.register(pY);oe.register(mY);oe.register(u6);oe.register(gY);oe.register(bY);oe.register(yY);oe.register(vY);oe.register(OY);oe.register(SY);oe.register(EY);oe.register(wY);oe.register(s6);oe.register(TY);oe.register(xC);oe.register(xY);oe.register(EC);oe.register(kY);oe.register(CY);oe.register(_Y);oe.register(AY);oe.register(RY);oe.register(IY);oe.register(DY);oe.register(NY);oe.register(PY);oe.register(MY);oe.register(LY);oe.register($Y);oe.register(FY);oe.register(BY);oe.register(UY);oe.register(zY);oe.register(jY);oe.register(HY);oe.register(VY);oe.register(WY);oe.register(QY);oe.register(YY);oe.register(qY);oe.register(GY);oe.register(ZY);oe.register(XY);oe.register(KY);oe.register(JY);oe.register(eq);function VF(){VF=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),OI(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var c=s[l];if(typeof c=="number")o[l]=i[c];else{for(var d=0;i[c[d]]===void 0&&d+1]+)>/g,function(l,c){var d=s[c];return"$"+(Array.isArray(d)?d.join("$"):d)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},VF.apply(this,arguments)}function OI(e,t){return OI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},OI(e,t)}function oie(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yst=function(e){return function(t){return t===void 0&&(t={}),function(r,i){if(i&&!r.registered(i))throw new Error('The default language "'+i+'" is not registered with refractor.')}(e,t.defaultLanguage),function(r){ml(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var c,d,h=function(I){for(var _,A=QM(I.properties.className);!(_=A()).done;){var U=_.value;if(U.slice(0,9)==="language-")return U.slice(9).toLowerCase()}return null}(r);if(!h&&t.defaultLanguage&&r.properties.className.push("language-"+(h=t.defaultLanguage)),r.properties.className.push("code-highlight"),h)try{var p,b;b=(p=h)!=null&&p.includes("diff-")?h.split("-")[1]:h,c=e.highlight(yO(r),b),a.properties.className=(a.properties.className||[]).concat("language-"+b)}catch(I){if(!t.ignoreMissing||!/Unknown language/.test(I.message))throw I;c=r}else c=r;c.children=(d=1,function I(_){return _.reduce(function(A,U){if(U.type==="text"){var F=U.value,P=(F.match(/\n/g)||"").length;if(P===0)U.position={start:{line:d,column:1},end:{line:d,column:1}},A.push(U);else for(var V,Q=F.split(` +|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}YN.displayName="go";YN.aliases=[];function YN(e){e.register(Fr),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}qN.displayName="ini";qN.aliases=[];function qN(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}py.displayName="java";py.aliases=[];function py(e){e.register(Fr),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}GN.displayName="regex";GN.aliases=[];function GN(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}kE.displayName="json";kE.aliases=["webmanifest"];function kE(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}ZN.displayName="kotlin";ZN.aliases=["kt","kts"];function ZN(e){e.register(Fr),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}XN.displayName="less";XN.aliases=[];function XN(e){e.register(Gg),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}TC.displayName="lua";TC.aliases=[];function TC(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}KN.displayName="makefile";KN.aliases=[];function KN(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}xC.displayName="yaml";xC.aliases=["yml"];function xC(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(d,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}JN.displayName="markdown";JN.aliases=["md"];function JN(e){e.register(zs),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(c){if(!(!c||typeof c=="string"))for(var d=0,h=c.length;d]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}t6.displayName="perl";t6.aliases=[];function t6(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}go.displayName="markup-templating";go.aliases=[];function go(e){e.register(zs),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var c=o.length,d;r.code.indexOf(d=n(i,c))!==-1;)++c;return o[c]=l,d}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var c=0;c=s.length);c++){var d=l[c];if(typeof d=="string"||d.content&&typeof d.content=="string"){var h=s[a],p=r.tokenStack[h],b=typeof d=="string"?d:d.content,v=n(i,h),S=b.indexOf(v);if(S>-1){++a;var w=b.substring(0,S),T=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),x=b.substring(S+v.length),k=[];w&&k.push.apply(k,o([w])),k.push(T),x&&k.push.apply(k,o([x])),typeof d=="string"?l.splice.apply(l,[c,1].concat(k)):d.content=k}}else d.content&&o(d.content)}return l}o(r.tokens)}}})}(e)}my.displayName="php";my.aliases=[];function my(e){e.register(go),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var d=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",d)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}kC.displayName="python";kC.aliases=["py"];function kC(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}n6.displayName="r";n6.aliases=[];function n6(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}gy.displayName="ruby";gy.aliases=["rb"];function gy(e){e.register(Fr),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}r6.displayName="rust";r6.aliases=[];function r6(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}i6.displayName="sass";i6.aliases=[];function i6(e){e.register(Gg),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}a6.displayName="scss";a6.aliases=[];function a6(e){e.register(Gg),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}CE.displayName="sql";CE.aliases=[];function CE(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}s6.displayName="swift";s6.aliases=[];function s6(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}_E.displayName="typescript";_E.aliases=["ts"];function _E(e){e.register(mo),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}CC.displayName="basic";CC.aliases=[];function CC(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}_C.displayName="vbnet";_C.aliases=[];function _C(e){e.register(CC),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const mie=/[#.]/g;function Hst(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function Kst(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Jst(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function yie(e){return Jst(e)||q1e(e)}const Nv=String.fromCharCode,eot=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function tot(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let c=(o?o.line:0)||1,d=(o?o.column:0)||1,h=b(),p;for(i--;++i<=e.length;)if(p===10&&(d=(l?l[a]:0)||1),p=e.charCodeAt(i),p===38){const w=e.charCodeAt(i+1);if(w===9||w===10||w===12||w===32||w===38||w===60||Number.isNaN(w)||n&&w===n){s+=Nv(p),d++;continue}const T=i+1;let x=T,k=T,C;if(w===35){k=++x;const Q=e.charCodeAt(k);Q===88||Q===120?(C="hexadecimal",k=++x):C="decimal"}else C="named";let I="",_="",A="";const U=C==="named"?yie:C==="decimal"?q1e:Kst;for(k--;++k<=e.length;){const Q=e.charCodeAt(k);if(!U(Q))break;A+=Nv(Q),C==="named"&&Xst.includes(A)&&(I=A,_=ek(A))}let F=e.charCodeAt(k)===59;if(F){k++;const Q=C==="named"?ek(A):!1;Q&&(I=A,_=Q)}let M=1+k-T,V="";if(!(!F&&t.nonTerminated===!1))if(!A)C!=="named"&&v(4,M);else if(C==="named"){if(F&&!_)v(5,1);else if(I!==A&&(k=x+I.length,M=1+k-x,F=!1),!F){const Q=I?1:3;if(t.attribute){const X=e.charCodeAt(k);X===61?(v(Q,M),_=""):yie(X)?_="":v(Q,M)}else v(Q,M)}V=_}else{F||v(2,M);let Q=Number.parseInt(A,C==="hexadecimal"?16:10);if(not(Q))v(7,M),V=Nv(65533);else if(Q in bie)v(6,M),V=bie[Q];else{let X="";rot(Q)&&v(6,M),Q>65535&&(Q-=65536,X+=Nv(Q>>>10|55296),Q=56320|Q&1023),V=X+Nv(Q)}}if(V){S(),h=b(),i=k-1,d+=k-T+1,r.push(V);const Q=b();Q.offset++,t.reference&&t.reference.call(t.referenceContext,V,{start:h,end:Q},e.slice(T-1,k)),h=Q}else A=e.slice(T-1,k),s+=A,d+=A.length,i=k-1}else p===10&&(c++,a++,d=0),Number.isNaN(p)?S():(s+=Nv(p),d++);return r.join("");function b(){return{line:c,column:d,offset:i+((o?o.offset:0)||0)}}function v(w,T){let x;t.warning&&(x=b(),x.column+=T,x.offset+=T,t.warning.call(t.warningContext,eot[w],x,w))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:h,end:b()}),s="")}}function not(e){return e>=55296&&e<=57343||e>1114111}function rot(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var iot=0,l3={},As={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++iot}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(As.util.type(t)){case"Object":if(i=As.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=As.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:l3,plaintext:l3,text:l3,txt:l3,extend:function(e,t){var n=As.util.clone(As.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||As.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,As.languages.DFS(As.languages,function(c,d){d===l&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=As.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=As.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(As.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=As.tokenize(r.code,r.grammar),As.hooks.run("after-tokenize",r),F2.stringify(As.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new aot;return x5(i,i.head,e),G1e(e,i,t,i.head,0),oot(i)},hooks:{all:{},add:function(e,t){var n=As.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=As.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:F2};function F2(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function vie(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function G1e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);T+=w.value.length,w=w.next){var x=w.value;if(t.length>e.length)return;if(!(x instanceof F2)){var k=1,C;if(p){if(C=vie(S,T,e,h),!C||C.index>=e.length)break;var U=C.index,I=C.index+C[0].length,_=T;for(_+=w.value.length;U>=_;)w=w.next,_+=w.value.length;if(_-=w.value.length,T=_,w.value instanceof F2)continue;for(var A=w;A!==t.tail&&(_a.reach&&(a.reach=Q);var X=w.prev;M&&(X=x5(t,X,M),T+=M.length),sot(t,X,k);var Y=new F2(s,d?As.tokenize(F,d):F,b,F);if(w=x5(t,X,Y),V&&x5(t,w,V),k>1){var W={cause:s+","+l,reach:Q};G1e(e,t,n,w.prev,T,W),a&&W.reach>a.reach&&(a.reach=W.reach)}}}}}}function aot(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function x5(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function sot(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}EH.displayName="abnf";EH.aliases=[];function EH(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}wH.displayName="actionscript";wH.aliases=[];function wH(e){e.register(mo),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}TH.displayName="ada";TH.aliases=[];function TH(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}xH.displayName="agda";xH.aliases=[];function xH(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}kH.displayName="al";kH.aliases=[];function kH(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}CH.displayName="antlr4";CH.aliases=["g4"];function CH(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}_H.displayName="apacheconf";_H.aliases=[];function _H(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}AH.displayName="apex";AH.aliases=[];function AH(e){e.register(Fr),e.register(CE),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}RH.displayName="apl";RH.aliases=[];function RH(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}IH.displayName="applescript";IH.aliases=[];function IH(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}DH.displayName="aql";DH.aliases=[];function DH(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}NH.displayName="arff";NH.aliases=[];function NH(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}PH.displayName="armasm";PH.aliases=["arm-asm"];function PH(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}MH.displayName="arturo";MH.aliases=["art"];function MH(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}LH.displayName="asciidoc";LH.aliases=["adoc"];function LH(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}FH.displayName="asm6502";FH.aliases=[];function FH(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}BH.displayName="asmatmel";BH.aliases=[];function BH(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}UH.displayName="autohotkey";UH.aliases=[];function UH(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}zH.displayName="autoit";zH.aliases=[];function zH(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}jH.displayName="avisynth";jH.aliases=["avs"];function jH(e){(function(t){function n(c,d){return c.replace(/<<(\d+)>>/g,function(h,p){return d[+p]})}function r(c,d,h){return RegExp(n(c,d),h||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}HH.displayName="avro-idl";HH.aliases=["avdl"];function HH(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}VH.displayName="awk";VH.aliases=["gawk"];function VH(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}WH.displayName="batch";WH.aliases=[];function WH(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}QH.displayName="bbcode";QH.aliases=["shortcode"];function QH(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}YH.displayName="bbj";YH.aliases=[];function YH(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}qH.displayName="bicep";qH.aliases=[];function qH(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}GH.displayName="birb";GH.aliases=[];function GH(e){e.register(Fr),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}ZH.displayName="bison";ZH.aliases=[];function ZH(e){e.register(Lf),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}XH.displayName="bnf";XH.aliases=["rbnf"];function XH(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}KH.displayName="bqn";KH.aliases=[];function KH(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}JH.displayName="brainfuck";JH.aliases=[];function JH(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}eV.displayName="brightscript";eV.aliases=[];function eV(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}tV.displayName="bro";tV.aliases=[];function tV(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}nV.displayName="bsl";nV.aliases=["oscript"];function nV(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}rV.displayName="cfscript";rV.aliases=["cfc"];function rV(e){e.register(Fr),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}iV.displayName="chaiscript";iV.aliases=[];function iV(e){e.register(Fr),e.register(fy),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}aV.displayName="cil";aV.aliases=[];function aV(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}sV.displayName="cilkc";sV.aliases=["cilk-c"];function sV(e){e.register(Lf),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}oV.displayName="cilkcpp";oV.aliases=["cilk","cilk-cpp"];function oV(e){e.register(fy),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}lV.displayName="clojure";lV.aliases=[];function lV(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}uV.displayName="cmake";uV.aliases=[];function uV(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}cV.displayName="cobol";cV.aliases=[];function cV(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}dV.displayName="coffeescript";dV.aliases=["coffee"];function dV(e){e.register(mo),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}fV.displayName="concurnas";fV.aliases=["conc"];function fV(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}hV.displayName="csp";hV.aliases=[];function hV(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}pV.displayName="cooklang";pV.aliases=[];function pV(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}mV.displayName="coq";mV.aliases=[];function mV(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}gV.displayName="crystal";gV.aliases=[];function gV(e){e.register(gy),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}bV.displayName="css-extras";bV.aliases=[];function bV(e){e.register(Gg),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}yV.displayName="csv";yV.aliases=[];function yV(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}vV.displayName="cue";vV.aliases=[];function vV(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}OV.displayName="cypher";OV.aliases=[];function OV(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}SV.displayName="d";SV.aliases=[];function SV(e){e.register(Fr),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}EV.displayName="dart";EV.aliases=[];function EV(e){e.register(Fr),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}wV.displayName="dataweave";wV.aliases=[];function wV(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}TV.displayName="dax";TV.aliases=[];function TV(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}xV.displayName="dhall";xV.aliases=[];function xV(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}kV.displayName="django";kV.aliases=["jinja2"];function kV(e){e.register(go),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}CV.displayName="dns-zone-file";CV.aliases=["dns-zone"];function CV(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}_V.displayName="docker";_V.aliases=["dockerfile"];function _V(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(c,d){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,d)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}AV.displayName="dot";AV.aliases=["gv"];function AV(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}RV.displayName="ebnf";RV.aliases=[];function RV(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}IV.displayName="editorconfig";IV.aliases=[];function IV(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}DV.displayName="eiffel";DV.aliases=[];function DV(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}NV.displayName="ejs";NV.aliases=["eta"];function NV(e){e.register(mo),e.register(go),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}PV.displayName="elixir";PV.aliases=[];function PV(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}MV.displayName="elm";MV.aliases=[];function MV(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}LV.displayName="etlua";LV.aliases=[];function LV(e){e.register(TC),e.register(go),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}$V.displayName="erb";$V.aliases=[];function $V(e){e.register(go),e.register(gy),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}FV.displayName="erlang";FV.aliases=[];function FV(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}BV.displayName="excel-formula";BV.aliases=["xls","xlsx"];function BV(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}UV.displayName="fsharp";UV.aliases=[];function UV(e){e.register(Fr),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}zV.displayName="factor";zV.aliases=[];function zV(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(c){i[c].pattern=s(o[c])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}jV.displayName="false";jV.aliases=[];function jV(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}VV.displayName="flow";VV.aliases=[];function VV(e){e.register(mo),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}WV.displayName="fortran";WV.aliases=[];function WV(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}QV.displayName="ftl";QV.aliases=[];function QV(e){e.register(go),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}YV.displayName="gml";YV.aliases=["gamemakerlanguage"];function YV(e){e.register(Fr),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}qV.displayName="gap";qV.aliases=[];function qV(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}GV.displayName="gcode";GV.aliases=[];function GV(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}ZV.displayName="gdscript";ZV.aliases=[];function ZV(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}XV.displayName="gedcom";XV.aliases=[];function XV(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}KV.displayName="gettext";KV.aliases=["po"];function KV(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}JV.displayName="gherkin";JV.aliases=[];function JV(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}eW.displayName="git";eW.aliases=[];function eW(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}tW.displayName="glsl";tW.aliases=[];function tW(e){e.register(Lf),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}nW.displayName="gn";nW.aliases=["gni"];function nW(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}rW.displayName="linker-script";rW.aliases=["ld"];function rW(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}iW.displayName="go-module";iW.aliases=["go-mod"];function iW(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}aW.displayName="gradle";aW.aliases=[];function aW(e){e.register(Fr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}sW.displayName="graphql";sW.aliases=[];function sW(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),i=0;function a(w){return r[i+w]}function s(w,T){T=T||0;for(var x=0;x0)){var b=o(/^\{$/,/^\}$/);if(b===-1)continue;for(var v=i;v=0&&l(S,"variable-input")}}}}})}oW.displayName="groovy";oW.aliases=[];function oW(e){e.register(Fr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}lW.displayName="textile";lW.aliases=[];function lW(e){e.register(zs),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(h,p){return RegExp(h.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=o.inline.inside;c.bold.inside=l,c.italic.inside=l,c.inserted.inside=l,c.deleted.inside=l,c.span.inside=l;var d=o.table.inside;d.inline=l.inline,d.link=l.link,d.image=l.image,d.footnote=l.footnote,d.acronym=l.acronym,d.mark=l.mark}(e)}uW.displayName="haml";uW.aliases=[];function uW(e){e.register(gy),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}AC.displayName="haskell";AC.aliases=["hs"];function AC(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}dW.displayName="haxe";dW.aliases=[];function dW(e){e.register(Fr),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}fW.displayName="hcl";fW.aliases=[];function fW(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}hW.displayName="hlsl";hW.aliases=[];function hW(e){e.register(Lf),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}pW.displayName="hoon";pW.aliases=[];function pW(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}mW.displayName="hpkp";mW.aliases=[];function mW(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}gW.displayName="hsts";gW.aliases=[];function gW(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}bW.displayName="uri";bW.aliases=["url"];function bW(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}yW.displayName="http";yW.aliases=[];function yW(e){(function(t){function n(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(d){var h=d.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+h+"(?![+\\w.-])";return"(?:"+d+"|"+p+")"}var o;for(var l in i)if(i[l]){o=o||{};var c=a[l]?s(l):l;o[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}o&&t.languages.insertBefore("http","header",o)})(e)}vW.displayName="ichigojam";vW.aliases=[];function vW(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}OW.displayName="icon";OW.aliases=[];function OW(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}SW.displayName="icu-message-format";SW.aliases=[];function SW(e){(function(t){function n(l,c){return c<=0?/[]/.source:l.replace(//g,function(){return n(l,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}EW.displayName="idris";EW.aliases=["idr"];function EW(e){e.register(AC),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}wW.displayName="ignore";wW.aliases=["gitignore","hgignore","npmignore"];function wW(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}TW.displayName="inform7";TW.aliases=[];function TW(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}xW.displayName="io";xW.aliases=[];function xW(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}RE.displayName="javadoclike";RE.aliases=[];function RE(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var c=l[o];if(!c){var d={};d[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",d),c=l[o]}if(c instanceof RegExp&&(c=l[o]={pattern:c}),Array.isArray(c))for(var h=0,p=c.length;h|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}_W.displayName="javadoc";_W.aliases=[];function _W(e){e.register(py),e.register(RE),e.register(zs),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}AW.displayName="javastacktrace";AW.aliases=[];function AW(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}RW.displayName="jexl";RW.aliases=[];function RW(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}IW.displayName="jolie";IW.aliases=[];function IW(e){e.register(Fr),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}DW.displayName="jq";DW.aliases=[];function DW(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}NW.displayName="js-templates";NW.aliases=[];function NW(e){e.register(mo),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(v,S){if(t.languages[v])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:v}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(v,S){return"___"+S.toUpperCase()+"_"+v+"___"}function c(v,S,w){var T={code:v,grammar:S,language:w};return t.hooks.run("before-tokenize",T),T.tokens=t.tokenize(T.code,T.grammar),t.hooks.run("after-tokenize",T),T.tokens}function d(v){var S={};S["interpolation-punctuation"]=a;var w=t.tokenize(v,S);if(w.length===3){var T=[1,1];T.push.apply(T,c(w[1],t.languages.javascript,"javascript")),w.splice.apply(w,T)}return new t.Token("interpolation",w,i.alias,v)}function h(v,S,w){var T=t.tokenize(v,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},C=T.map(function(U){if(typeof U=="string")return U;for(var F=U.content,M;v.indexOf(M=l(x++,w))!==-1;);return k[M]=F,M}).join(""),I=c(C,S,w),_=Object.keys(k);x=0;function A(U){for(var F=0;F=_.length)return;var M=U[F];if(typeof M=="string"||typeof M.content=="string"){var V=_[x],Q=typeof M=="string"?M:M.content,X=Q.indexOf(V);if(X!==-1){++x;var Y=Q.substring(0,X),W=d(k[V]),ee=Q.substring(X+V.length),J=[];if(Y&&J.push(Y),J.push(W),ee){var K=[ee];A(K),J.push.apply(J,K)}typeof M=="string"?(U.splice.apply(U,[F,1].concat(J)),F+=J.length-1):M.content=J}}else{var ne=M.content;Array.isArray(ne)?A(ne):A([ne])}}}return A(I),new t.Token(w,I,"language-"+w,v)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(v){if(!(v.language in p))return;function S(w){for(var T=0,x=w.length;T\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}MW.displayName="n4js";MW.aliases=["n4jsd"];function MW(e){e.register(mo),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}LW.displayName="js-extras";LW.aliases=[];function LW(e){e.register(mo),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(l,c){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}UW.displayName="julia";UW.aliases=[];function UW(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}zW.displayName="keepalived";zW.aliases=[];function zW(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}jW.displayName="keyman";jW.aliases=[];function jW(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}HW.displayName="kumir";HW.aliases=["kum"];function HW(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}VW.displayName="kusto";VW.aliases=[];function VW(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}WW.displayName="latex";WW.aliases=["context","tex"];function WW(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}QW.displayName="latte";QW.aliases=[];function QW(e){e.register(Fr),e.register(go),e.register(my),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}RC.displayName="scheme";RC.aliases=[];function RC(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}YW.displayName="lilypond";YW.aliases=["ly"];function YW(e){e.register(RC),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}qW.displayName="liquid";qW.aliases=[];function qW(e){e.register(go),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}GW.displayName="lisp";GW.aliases=["elisp","emacs","emacs-lisp"];function GW(e){(function(t){function n(v){return RegExp(/(\()/.source+"(?:"+v+")"+/(?=[\s\)])/.source)}function r(v){return RegExp(/([\s([])/.source+"(?:"+v+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},h={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},p="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+c+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:h},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:h},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:h},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=b,d.defun.inside.arguments=t.util.clone(b),d.defun.inside.arguments.inside.sublist=b,t.languages.lisp=d,t.languages.elisp=d,t.languages.emacs=d,t.languages["emacs-lisp"]=d})(e)}ZW.displayName="livescript";ZW.aliases=[];function ZW(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}XW.displayName="llvm";XW.aliases=[];function XW(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}KW.displayName="log";KW.aliases=[];function KW(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}JW.displayName="lolcode";JW.aliases=[];function JW(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}eQ.displayName="magma";eQ.aliases=[];function eQ(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}o6.displayName="mata";o6.aliases=[];function o6(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}tQ.displayName="matlab";tQ.aliases=[];function tQ(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}nQ.displayName="maxscript";nQ.aliases=[];function nQ(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}rQ.displayName="mel";rQ.aliases=[];function rQ(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}iQ.displayName="mermaid";iQ.aliases=[];function iQ(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}aQ.displayName="metafont";aQ.aliases=[];function aQ(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}sQ.displayName="mizar";sQ.aliases=[];function sQ(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}oQ.displayName="mongodb";oQ.aliases=[];function oQ(e){e.register(mo),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}lQ.displayName="monkey";lQ.aliases=[];function lQ(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}uQ.displayName="moonscript";uQ.aliases=["moon"];function uQ(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}cQ.displayName="n1ql";cQ.aliases=[];function cQ(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|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|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}dQ.displayName="nand2tetris-hdl";dQ.aliases=[];function dQ(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}fQ.displayName="naniscript";fQ.aliases=["nani"];function fQ(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var c=a(l);i(c)||(l.type="bad-line",l.content=c)}})});function i(s){for(var o="[]{}",l=[],c=0;c=&|$!]/}}pQ.displayName="neon";pQ.aliases=[];function pQ(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}mQ.displayName="nevod";mQ.aliases=[];function mQ(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}gQ.displayName="nginx";gQ.aliases=[];function gQ(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}bQ.displayName="nim";bQ.aliases=[];function bQ(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}yQ.displayName="nix";yQ.aliases=[];function yQ(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}vQ.displayName="nsis";vQ.aliases=[];function vQ(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}OQ.displayName="ocaml";OQ.aliases=[];function OQ(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}SQ.displayName="odin";SQ.aliases=[];function SQ(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}EQ.displayName="opencl";EQ.aliases=[];function EQ(e){e.register(Lf),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}wQ.displayName="openqasm";wQ.aliases=["qasm"];function wQ(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}TQ.displayName="oz";TQ.aliases=[];function TQ(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}xQ.displayName="parigp";xQ.aliases=[];function xQ(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}kQ.displayName="parser";kQ.aliases=[];function kQ(e){e.register(zs),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}CQ.displayName="pascal";CQ.aliases=["objectpascal"];function CQ(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}_Q.displayName="pascaligo";_Q.aliases=[];function _Q(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}AQ.displayName="psl";AQ.aliases=[];function AQ(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}RQ.displayName="pcaxis";RQ.aliases=["px"];function RQ(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}IQ.displayName="peoplecode";IQ.aliases=["pcode"];function IQ(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}DQ.displayName="phpdoc";DQ.aliases=[];function DQ(e){e.register(RE),e.register(my),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}NQ.displayName="php-extras";NQ.aliases=[];function NQ(e){e.register(my),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}PQ.displayName="plant-uml";PQ.aliases=["plantuml"];function PQ(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,d=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+d+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}MQ.displayName="plsql";MQ.aliases=[];function MQ(e){e.register(CE),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|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|MUTABLE|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|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|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|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}LQ.displayName="powerquery";LQ.aliases=["mscript","pq"];function LQ(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}$Q.displayName="powershell";$Q.aliases=[];function $Q(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}FQ.displayName="processing";FQ.aliases=[];function FQ(e){e.register(Fr),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}BQ.displayName="prolog";BQ.aliases=[];function BQ(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}UQ.displayName="promql";UQ.aliases=[];function UQ(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}zQ.displayName="properties";zQ.aliases=[];function zQ(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}jQ.displayName="protobuf";jQ.aliases=[];function jQ(e){e.register(Fr),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}HQ.displayName="stylus";HQ.aliases=[];function HQ(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}VQ.displayName="twig";VQ.aliases=[];function VQ(e){e.register(go),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}WQ.displayName="pug";WQ.aliases=[];function WQ(e){e.register(mo),e.register(zs),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}QQ.displayName="puppet";QQ.aliases=[];function QQ(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}YQ.displayName="pure";YQ.aliases=[];function YQ(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}qQ.displayName="purebasic";qQ.aliases=["pbfasm"];function qQ(e){e.register(Fr),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}GQ.displayName="purescript";GQ.aliases=["purs"];function GQ(e){e.register(AC),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}ZQ.displayName="qsharp";ZQ.aliases=["qs"];function ZQ(e){e.register(Fr),function(t){function n(b,v){return b.replace(/<<(\d+)>>/g,function(S,w){return"(?:"+v[+w]+")"})}function r(b,v,S){return RegExp(n(b,v),S||"")}function i(b,v){for(var S=0;S>/g,function(){return"(?:"+b+")"});return b.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),d={keyword:o,punctuation:/[<>()?,.:[\]]/},h=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[h]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:d},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:d}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[h]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[p]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[p]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}XQ.displayName="q";XQ.aliases=[];function XQ(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}KQ.displayName="qml";KQ.aliases=[];function KQ(e){e.register(mo),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}JQ.displayName="qore";JQ.aliases=[];function JQ(e){e.register(Fr),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}eY.displayName="racket";eY.aliases=["rkt"];function eY(e){e.register(RC),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}tY.displayName="cshtml";tY.aliases=["razor"];function tY(e){e.register(hy),e.register(zs),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var C=0;C/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,d=/@(?![\w()])/.source+"|"+c,h="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+d+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,h),b=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,v=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+b+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+b+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(c,d){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,d)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(o).join(""):""},l=function(c){for(var d=[],h=0;h0&&d[d.length-1].tagName===o(p.content[0].content[1])&&d.pop():p.content[p.content.length-1].content==="/>"||d.push({tagName:o(p.content[0].content[1]),openedBraces:0}):d.length>0&&p.type==="punctuation"&&p.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?d[d.length-1].openedBraces--:b=!0),(b||typeof p=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var v=o(p);h0&&(typeof c[h-1]=="string"||c[h-1].type==="plain-text")&&(v=o(c[h-1])+v,c.splice(h-1,1),h--),c[h]=new t.Token("plain-text",v,null,v)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||l(c.tokens)})}(e)}nY.displayName="tsx";nY.aliases=[];function nY(e){e.register(l6),e.register(_E),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}rY.displayName="reason";rY.aliases=[];function rY(e){e.register(Fr),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}iY.displayName="rego";iY.aliases=[];function iY(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}aY.displayName="renpy";aY.aliases=["rpy"];function aY(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}sY.displayName="rescript";sY.aliases=["res"];function sY(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}oY.displayName="rest";oY.aliases=[];function oY(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}lY.displayName="rip";lY.aliases=[];function lY(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}uY.displayName="roboconf";uY.aliases=[];function uY(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}cY.displayName="robotframework";cY.aliases=["robot"];function cY(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,c){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var h in c)d[h]=c[h];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=r,d.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:d}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}dY.displayName="sas";dY.aliases=[];function dY(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},d=/[$%@.(){}\[\];,\\]/,h={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:h,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:c},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},v={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},w={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},T=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return T}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return T}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:h,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:d,string:c}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:k,"submit-statement":w,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:k,"submit-statement":w,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:p}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:o,keyword:k,function:h,format:b,altformat:v,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":x,comment:l,function:h,format:b,altformat:v,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}fY.displayName="shell-session";fY.aliases=["sh-session","shellsession"];function fY(e){e.register(wC),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}hY.displayName="smali";hY.aliases=[];function hY(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}pY.displayName="smalltalk";pY.aliases=[];function pY(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}mY.displayName="smarty";mY.aliases=[];function mY(e){e.register(go),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}gY.displayName="sml";gY.aliases=["smlnj"];function gY(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}bY.displayName="solidity";bY.aliases=["sol"];function bY(e){e.register(Fr),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}yY.displayName="solution-file";yY.aliases=["sln"];function yY(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}vY.displayName="soy";vY.aliases=[];function vY(e){e.register(go),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===o&&(l=!1),l?!1:(c===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}u6.displayName="turtle";u6.aliases=["trig"];function u6(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}OY.displayName="sparql";OY.aliases=["rq"];function OY(e){e.register(u6),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}SY.displayName="splunk-spl";SY.aliases=[];function SY(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}EY.displayName="sqf";EY.aliases=[];function EY(e){e.register(Fr),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}wY.displayName="squirrel";wY.aliases=[];function wY(e){e.register(Fr),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}TY.displayName="stan";TY.aliases=[];function TY(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}xY.displayName="stata";xY.aliases=[];function xY(e){e.register(py),e.register(o6),e.register(kC),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}kY.displayName="iecst";kY.aliases=[];function kY(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}CY.displayName="supercollider";CY.aliases=["sclang"];function CY(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}_Y.displayName="systemd";_Y.aliases=[];function _Y(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}IC.displayName="t4-templating";IC.aliases=[];function IC(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}AY.displayName="t4-cs";AY.aliases=["t4"];function AY(e){e.register(hy),e.register(IC),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}RY.displayName="t4-vb";RY.aliases=[];function RY(e){e.register(IC),e.register(_C),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}IY.displayName="tap";IY.aliases=[];function IY(e){e.register(xC),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}DY.displayName="tcl";DY.aliases=[];function DY(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}NY.displayName="tt2";NY.aliases=[];function NY(e){e.register(Fr),e.register(go),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}PY.displayName="toml";PY.aliases=[];function PY(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}MY.displayName="tremor";MY.aliases=["trickle","troy"];function MY(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}LY.displayName="typoscript";LY.aliases=["tsconfig"];function LY(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}$Y.displayName="unrealscript";$Y.aliases=["uc","uscript"];function $Y(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}FY.displayName="uorazor";FY.aliases=[];function FY(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}BY.displayName="v";BY.aliases=[];function BY(e){e.register(Fr),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}UY.displayName="vala";UY.aliases=[];function UY(e){e.register(Fr),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}zY.displayName="velocity";zY.aliases=[];function zY(e){e.register(zs),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}jY.displayName="verilog";jY.aliases=[];function jY(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}HY.displayName="vhdl";HY.aliases=[];function HY(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}VY.displayName="vim";VY.aliases=[];function VY(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}WY.displayName="visual-basic";WY.aliases=["vb","vba"];function WY(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}QY.displayName="warpscript";QY.aliases=[];function QY(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}YY.displayName="wasm";YY.aliases=[];function YY(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}qY.displayName="web-idl";qY.aliases=["webidl"];function qY(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}GY.displayName="wgsl";GY.aliases=[];function GY(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}ZY.displayName="wiki";ZY.aliases=[];function ZY(e){e.register(zs),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}XY.displayName="wolfram";XY.aliases=["mathematica","nb","wl"];function XY(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}KY.displayName="wren";KY.aliases=[];function KY(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}JY.displayName="xeora";JY.aliases=["xeoracube"];function JY(e){e.register(zs),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}eq.displayName="xml-doc";eq.aliases=[];function eq(e){e.register(zs),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}tq.displayName="xojo";tq.aliases=[];function tq(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}nq.displayName="xquery";nq.aliases=[];function nq(e){e.register(zs),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(c=n(i[s-1])+c,i.splice(s-1,1),s--),/^\s+$/.test(c)?i[s]=c:i[s]=new t.Token("plain-text",c,null,c)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}rq.displayName="yang";rq.aliases=[];function rq(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}iq.displayName="zig";iq.aliases=[];function iq(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}oe.register(zs);oe.register(Gg);oe.register(Fr);oe.register(GN);oe.register(mo);oe.register(SH);oe.register(EH);oe.register(wH);oe.register(TH);oe.register(xH);oe.register(kH);oe.register(CH);oe.register(_H);oe.register(CE);oe.register(AH);oe.register(RH);oe.register(IH);oe.register(DH);oe.register(Lf);oe.register(fy);oe.register(WN);oe.register(NH);oe.register(PH);oe.register(wC);oe.register(xC);oe.register(JN);oe.register(MH);oe.register(LH);oe.register(hy);oe.register($H);oe.register(FH);oe.register(BH);oe.register(UH);oe.register(zH);oe.register(jH);oe.register(HH);oe.register(VH);oe.register(CC);oe.register(WH);oe.register(QH);oe.register(YH);oe.register(qH);oe.register(GH);oe.register(ZH);oe.register(XH);oe.register(KH);oe.register(JH);oe.register(eV);oe.register(tV);oe.register(nV);oe.register(rV);oe.register(iV);oe.register(aV);oe.register(sV);oe.register(oV);oe.register(lV);oe.register(uV);oe.register(cV);oe.register(dV);oe.register(fV);oe.register(hV);oe.register(pV);oe.register(mV);oe.register(gy);oe.register(gV);oe.register(bV);oe.register(yV);oe.register(vV);oe.register(OV);oe.register(SV);oe.register(EV);oe.register(wV);oe.register(TV);oe.register(xV);oe.register(QN);oe.register(go);oe.register(kV);oe.register(CV);oe.register(_V);oe.register(AV);oe.register(RV);oe.register(IV);oe.register(DV);oe.register(NV);oe.register(PV);oe.register(MV);oe.register(TC);oe.register(LV);oe.register($V);oe.register(FV);oe.register(BV);oe.register(UV);oe.register(zV);oe.register(jV);oe.register(HV);oe.register(VV);oe.register(WV);oe.register(QV);oe.register(YV);oe.register(qV);oe.register(GV);oe.register(ZV);oe.register(XV);oe.register(KV);oe.register(JV);oe.register(eW);oe.register(tW);oe.register(nW);oe.register(rW);oe.register(YN);oe.register(iW);oe.register(aW);oe.register(sW);oe.register(oW);oe.register(XN);oe.register(a6);oe.register(lW);oe.register(uW);oe.register(cW);oe.register(AC);oe.register(dW);oe.register(fW);oe.register(hW);oe.register(pW);oe.register(mW);oe.register(gW);oe.register(kE);oe.register(bW);oe.register(yW);oe.register(vW);oe.register(OW);oe.register(SW);oe.register(EW);oe.register(wW);oe.register(TW);oe.register(qN);oe.register(xW);oe.register(kW);oe.register(py);oe.register(my);oe.register(RE);oe.register(CW);oe.register(_W);oe.register(AW);oe.register(RW);oe.register(IW);oe.register(DW);oe.register(NW);oe.register(_E);oe.register(PW);oe.register(MW);oe.register(LW);oe.register($W);oe.register(FW);oe.register(BW);oe.register(UW);oe.register(zW);oe.register(jW);oe.register(ZN);oe.register(HW);oe.register(VW);oe.register(WW);oe.register(QW);oe.register(RC);oe.register(YW);oe.register(qW);oe.register(GW);oe.register(ZW);oe.register(XW);oe.register(KW);oe.register(JW);oe.register(eQ);oe.register(KN);oe.register(o6);oe.register(tQ);oe.register(nQ);oe.register(rQ);oe.register(iQ);oe.register(aQ);oe.register(sQ);oe.register(oQ);oe.register(lQ);oe.register(uQ);oe.register(cQ);oe.register(dQ);oe.register(fQ);oe.register(hQ);oe.register(pQ);oe.register(mQ);oe.register(gQ);oe.register(bQ);oe.register(yQ);oe.register(vQ);oe.register(e6);oe.register(OQ);oe.register(SQ);oe.register(EQ);oe.register(wQ);oe.register(TQ);oe.register(xQ);oe.register(kQ);oe.register(CQ);oe.register(_Q);oe.register(AQ);oe.register(RQ);oe.register(IQ);oe.register(t6);oe.register(DQ);oe.register(NQ);oe.register(PQ);oe.register(MQ);oe.register(LQ);oe.register($Q);oe.register(FQ);oe.register(BQ);oe.register(UQ);oe.register(zQ);oe.register(jQ);oe.register(HQ);oe.register(VQ);oe.register(WQ);oe.register(QQ);oe.register(YQ);oe.register(qQ);oe.register(GQ);oe.register(kC);oe.register(ZQ);oe.register(XQ);oe.register(KQ);oe.register(JQ);oe.register(n6);oe.register(eY);oe.register(tY);oe.register(l6);oe.register(nY);oe.register(rY);oe.register(iY);oe.register(aY);oe.register(sY);oe.register(oY);oe.register(lY);oe.register(uY);oe.register(cY);oe.register(r6);oe.register(dY);oe.register(i6);oe.register(fY);oe.register(hY);oe.register(pY);oe.register(mY);oe.register(gY);oe.register(bY);oe.register(yY);oe.register(vY);oe.register(u6);oe.register(OY);oe.register(SY);oe.register(EY);oe.register(wY);oe.register(TY);oe.register(xY);oe.register(kY);oe.register(CY);oe.register(s6);oe.register(_Y);oe.register(IC);oe.register(AY);oe.register(_C);oe.register(RY);oe.register(IY);oe.register(DY);oe.register(NY);oe.register(PY);oe.register(MY);oe.register(LY);oe.register($Y);oe.register(FY);oe.register(BY);oe.register(UY);oe.register(zY);oe.register(jY);oe.register(HY);oe.register(VY);oe.register(WY);oe.register(QY);oe.register(YY);oe.register(qY);oe.register(GY);oe.register(ZY);oe.register(XY);oe.register(KY);oe.register(JY);oe.register(eq);oe.register(tq);oe.register(nq);oe.register(rq);oe.register(iq);function VF(){VF=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),xI(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var c=s[l];if(typeof c=="number")o[l]=i[c];else{for(var d=0;i[c[d]]===void 0&&d+1]+)>/g,function(l,c){var d=s[c];return"$"+(Array.isArray(d)?d.join("$"):d)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},VF.apply(this,arguments)}function xI(e,t){return xI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xI(e,t)}function Oie(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var mot=function(e){return function(t){return t===void 0&&(t={}),function(r,i){if(i&&!r.registered(i))throw new Error('The default language "'+i+'" is not registered with refractor.')}(e,t.defaultLanguage),function(r){ml(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var c,d,h=function(I){for(var _,A=QM(I.properties.className);!(_=A()).done;){var U=_.value;if(U.slice(0,9)==="language-")return U.slice(9).toLowerCase()}return null}(r);if(!h&&t.defaultLanguage&&r.properties.className.push("language-"+(h=t.defaultLanguage)),r.properties.className.push("code-highlight"),h)try{var p,b;b=(p=h)!=null&&p.includes("diff-")?h.split("-")[1]:h,c=e.highlight(vO(r),b),a.properties.className=(a.properties.className||[]).concat("language-"+b)}catch(I){if(!t.ignoreMissing||!/Unknown language/.test(I.message))throw I;c=r}else c=r;c.children=(d=1,function I(_){return _.reduce(function(A,U){if(U.type==="text"){var F=U.value,M=(F.match(/\n/g)||"").length;if(M===0)U.position={start:{line:d,column:1},end:{line:d,column:1}},A.push(U);else for(var V,Q=F.split(` `),X=QM(Q.entries());!(V=X()).done;){var Y=V.value,W=Y[0],ee=Y[1];A.push({type:"text",value:W===Q.length-1?ee:ee+` -`,position:{start:{line:d+W,column:1},end:{line:d+W,column:1}}})}return d+=P,A}if(Object.prototype.hasOwnProperty.call(U,"children")){var J=d;return U.children=I(U.children),A.push(U),U.position={start:{line:J,column:1},end:{line:d,column:1}},A}return A.push(U),A},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var v,S=function(I){var _=/{([\d,-]+)}/,A=I.split(",").map(function(P){return P.trim()}).join();if(_.test(A)){var U=_.exec(A)[1],F=Wat(U);return function(P){return F.includes(P+1)}}return function(){return!1}}(l),w=function(I){var _=VF(/showLineNumbers=(\d+)/i,{lines:1});if(_.test(I)){var A=_.exec(I);return Number(A.groups.lines)}return 1}(l),T=function(I){for(var _=new Array(I),A=0;A=U+1});F.children=P.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(V){return l.toLowerCase().includes(V)})||(F.properties.line=[(U+w).toString()],F.properties.className.push("line-number")),S(U)&&F.properties.className.push("highlight-line"),(h==="diff"||(I=h)!=null&&I.includes("diff-"))&&yO(F).substring(0,1)==="-"?F.properties.className.push("deleted"):(h==="diff"||(_=h)!=null&&_.includes("diff-"))&&yO(F).substring(0,1)==="+"&&F.properties.className.push("inserted")},C=QM(T.entries());!(v=C()).done;)k();T.length>0&&yO(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},vst=yst(oe),O5={},WF={};function Ost(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),YF=kC($1e,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),qF=kC(YF,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),_st=kC(qF,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),hie={css1:L1e,css2:$1e,css3:YF,"selectors-3":YF,"selectors-4":qF,latest:qF,progressive:_st};function T2(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function Ast(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function x2(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Rst={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Ist={'"':!0,"'":!0},qM={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Dst=6,GM="css-selector-parser parse error: ";function Nst(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:hie[n];s.baseSyntax&&(s=kC(hie[s.baseSyntax],s));var o=s.tag?[!0,!!xst(s.tag).wildcard]:[!1,!1],l=o[0],c=o[1],d=!!s.ids,h=!!s.classNames,p=!!s.namespace,b=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(GM,"Namespaces cannot be enabled while tags are disabled."));var v=!!r,S=s.combinators?lie(s.combinators):O5,w=s.attributes?[!0,s.attributes.operators?lie(s.attributes.operators):O5,s.attributes.caseSensitivityModifiers?Sst(s.attributes.caseSensitivityModifiers):WF,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,O5,WF,!1],T=w[0],x=w[1],k=w[2],C=w[3],I=C||Object.keys(k).length>0,_=s.pseudoClasses?[!0,s.pseudoClasses.definitions?cie(s.pseudoClasses.definitions):r3,s.pseudoClasses.unknown==="accept"]:[!1,r3,!1],A=_[0],U=_[1],F=_[2],P=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?cie(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):r3,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,r3,!1],V=P[0],Q=P[1],X=P[2],Y=P[3],W=P[4],ee="",J=ee.length,K=0,ne="",j=function(Oe){return ne===Oe},Ce=function(){return j("*")||T2(ne)},ye=function(Oe){K=Oe,ne=ee.charAt(K)},te=function(){K++,ne=ee.charAt(K)},ve=function(){var Oe=ne;return K++,ne=ee.charAt(K),Oe};function Se(Oe){var De=Math.min(J-1,K),je=new Error("".concat(GM).concat(Oe," Pos: ").concat(De,"."));throw je.position=De,je.name="ParserError",je}function he(Oe,De){if(!Oe)return Se(De)}var Ne=function(){he(K=J},Ze=function(Oe){he(K0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var v,S=function(I){var _=/{([\d,-]+)}/,A=I.split(",").map(function(M){return M.trim()}).join();if(_.test(A)){var U=_.exec(A)[1],F=jst(U);return function(M){return F.includes(M+1)}}return function(){return!1}}(l),w=function(I){var _=VF(/showLineNumbers=(\d+)/i,{lines:1});if(_.test(I)){var A=_.exec(I);return Number(A.groups.lines)}return 1}(l),T=function(I){for(var _=new Array(I),A=0;A=U+1});F.children=M.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(V){return l.toLowerCase().includes(V)})||(F.properties.line=[(U+w).toString()],F.properties.className.push("line-number")),S(U)&&F.properties.className.push("highlight-line"),(h==="diff"||(I=h)!=null&&I.includes("diff-"))&&vO(F).substring(0,1)==="-"?F.properties.className.push("deleted"):(h==="diff"||(_=h)!=null&&_.includes("diff-"))&&vO(F).substring(0,1)==="+"&&F.properties.className.push("inserted")},C=QM(T.entries());!(v=C()).done;)k();T.length>0&&vO(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},got=mot(oe),k5={},WF={};function bot(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),YF=DC(J1e,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),qF=DC(YF,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),xot=DC(qF,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),kie={css1:K1e,css2:J1e,css3:YF,"selectors-3":YF,"selectors-4":qF,latest:qF,progressive:xot};function xT(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function kot(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function kT(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Cot={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},_ot={'"':!0,"'":!0},qM={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Aot=6,GM="css-selector-parser parse error: ";function Rot(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:kie[n];s.baseSyntax&&(s=DC(kie[s.baseSyntax],s));var o=s.tag?[!0,!!Eot(s.tag).wildcard]:[!1,!1],l=o[0],c=o[1],d=!!s.ids,h=!!s.classNames,p=!!s.namespace,b=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(GM,"Namespaces cannot be enabled while tags are disabled."));var v=!!r,S=s.combinators?Sie(s.combinators):k5,w=s.attributes?[!0,s.attributes.operators?Sie(s.attributes.operators):k5,s.attributes.caseSensitivityModifiers?yot(s.attributes.caseSensitivityModifiers):WF,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,k5,WF,!1],T=w[0],x=w[1],k=w[2],C=w[3],I=C||Object.keys(k).length>0,_=s.pseudoClasses?[!0,s.pseudoClasses.definitions?wie(s.pseudoClasses.definitions):u3,s.pseudoClasses.unknown==="accept"]:[!1,u3,!1],A=_[0],U=_[1],F=_[2],M=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?wie(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):u3,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,u3,!1],V=M[0],Q=M[1],X=M[2],Y=M[3],W=M[4],ee="",J=ee.length,K=0,ne="",j=function(Oe){return ne===Oe},Ce=function(){return j("*")||xT(ne)},ye=function(Oe){K=Oe,ne=ee.charAt(K)},te=function(){K++,ne=ee.charAt(K)},ve=function(){var Oe=ne;return K++,ne=ee.charAt(K),Oe};function Se(Oe){var De=Math.min(J-1,K),je=new Error("".concat(GM).concat(Oe," Pos: ").concat(De,"."));throw je.position=De,je.name="ParserError",je}function he(Oe,De){if(!Oe)return Se(De)}var Pe=function(){he(K=J},Ze=function(Oe){he(K=2&&Se("Identifiers cannot start with two hyphens with strict mode on."),qM[ne]&&Se("Identifiers cannot start with hyphens followed by digits.");K=2&&Se("Identifiers cannot start with two hyphens with strict mode on."),qM[ne]&&Se("Identifiers cannot start with hyphens followed by digits.");K0)return(t.commaSeparated?Yj:Gj)(e)}else return String(e)}const jst=[];function Hst(e,t){return(t.properties.className||jst).includes(e.name)}function Vst(e,t){return t.properties.id===e.name}function Wst(e,t){return e.name===t.tagName}function Qst(e,t){return function(n,r){let i=mie(n,"tag");const a=mie(r??"*","range"),s=[];let o=-1;for(;++o=gie&&e.charCodeAt(t)<=Zst;)c=c*10+(e.charCodeAt(t)-gie),t++;return t===l?null:c}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?bie.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function yie(e){return Jst(Xst(e))}const eot=yie.default||yie,tot=oH("name",{handlers:{"any-link":not,blank:rot,checked:iot,dir:aot,disabled:U1e,empty:sot,enabled:oot,"first-child":lot,"first-of-type":uot,has:cot,is:z1e,lang:fot,"last-child":hot,"last-of-type":pot,not:mot,"nth-child":got,"nth-last-child":bot,"nth-last-of-type":yot,"nth-of-type":vot,"only-child":Oot,"only-of-type":Sot,optional:Eot,"read-only":wot,"read-write":j1e,required:H1e,root:Tot,scope:xot},invalid:dot,unknown:kot});function not(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&ty(t,"href")}function sp(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function rot(e,t){return!V1e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!$0e(r)}}function iot(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&ty(t,"checked")):t.tagName==="option"?ty(t,"selected"):!1}function aot(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function U1e(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&ty(t,"disabled")}function sot(e,t){return!V1e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function oot(e,t){return!U1e(e,t)}function lot(e,t,n,r,i){return sp(i,e),i.elementIndex===0}function uot(e,t,n,r,i){return sp(i,e),i.typeIndex===0}function c6(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=eot(n.a+"n+"+n.b),e._cachedFn=t}return t}function cot(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return tq(a,{type:"root",children:t.children}),a.results.length>0}function dot(){}function z1e(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return tq(a,t),a.results[0]===t}function fot(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&Yst(i.language,Jb(e.argument.value)).length>0}function hot(e,t,n,r,i){return sp(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function pot(e,t,n,r,i){return sp(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function mot(e,t,n,r,i){return!z1e(e,t,n,r,i)}function got(e,t,n,r,i){const a=c6(e);return sp(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function bot(e,t,n,r,i){const a=c6(e);return sp(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function yot(e,t,n,r,i){const a=c6(e);return sp(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function vot(e,t,n,r,i){const a=c6(e);return sp(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function Oot(e,t,n,r,i){return sp(i,e),i.elementCount===1}function Sot(e,t,n,r,i){return sp(i,e),i.typeCount===1}function Eot(e,t){return!H1e(e,t)}function wot(e,t,n,r,i){return!j1e(e,t,n,r,i)}function j1e(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!ty(t,"readOnly")&&!ty(t,"disabled"):!!i.editableOrEditingHost}function H1e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&ty(t,"required")}function Tot(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function xot(e,t,n,r,i){return i.scopeElements.includes(t)}function V1e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";XM(a,c,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?XM(a,"descendant",o):o.combinator==="~"&&XM(a,"generalSibling",o)}return a}function S5(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:_ot}function vie(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function W1e(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=Bst(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(c=>c.combinator===void 0||c.combinator===">"&&i===a)),s=Rot(e,S5(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Aot(e,s,n,a),o(),s}function Iot(e,t,n){const r=Dot(e,t,n);return tq(r,t||void 0),r.results}function Dot(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Mst(e),schema:n==="svg"?Pf:Qg,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const nq=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=nq(n.children))}),t),Not=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Iot(t,r);i&&i.length>0&&ml(r,i,(a,s,o)=>{n(a,s,o)});return}ml(r,(i,a,s)=>{n(i,a,s)})}}},Pot=Not,Mot=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Lot=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},Q1e=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?Q1e(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},Oie=({value:e=""})=>{const t=Mot(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},Sie=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},$ot=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{ml(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=Lot(s.children,a);if(l){const c=Oie(l);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=Sie(o.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=Q1e(s.children,a,"",n);if(o){const l=Oie(o);Object.keys(l).length>0&&(i.properties=Sie(i.properties,l,t))}}})}},Fot=$ot;var Bot=function(t){return n=>{ml(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=$({},r.properties,{"data-meta":String(r.data.meta)}))})}},Uot=function(t){return n=>{ml(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const zot=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,jot=Object.hasOwnProperty;class Hot{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Vot(t,n===!0);const a=i;for(;jot.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Vot(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(zot,"").replace(/ /g,"-"))}function Y1e(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Wot={},Eie=new Hot;function Qot(e){const n=(e||Wot).prefix||"";return function(r){Eie.reset(),ml(r,"element",function(i){Y1e(i)&&!i.properties.id&&(i.properties.id=n+Eie.slug(yO(i)))})}}const Am=function(e){if(e==null)return Got;if(typeof e=="string")return qot(e);if(typeof e=="object")return Yot(e);if(typeof e=="function")return rq(e);throw new Error("Expected function, string, or array as `test`")};function Yot(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{ml(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let c=(l.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return o=!0,!1;if(c===n)return o=!1,!1}return!o})}})}},elt=Jot;var tlt={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function nlt(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var rlt=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=$({class:"anchor"},a.properties),a.children=[tlt])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=nq(n.children);n.children.push(nlt(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},ilt=[Qot,Kot,elt];const G1e=gn.forwardRef((e,t)=>{var n,r=[Bot,A1e,Uot,[vst,{ignoreMissing:!0}],...ilt,[Pot,{rewrite:rlt((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Fot,{properties:"attr"}],...e.rehypePlugins||[]];return D.jsx(Bat,$({},e,{rehypePlugins:r,ref:t}))});function GF(e){return e.split(` +`&&te()}function _t(){for(;Cot[ne];)te()}function lt(Oe){Oe===void 0&&(Oe=!1),_t();for(var De=[Te(Oe)];j(",");)te(),_t(),De.push(Te(Oe));return{type:"Selector",rules:De}}function ge(){Ze("["),_t();var Oe;if(j("|")){he(p,"Namespaces are not enabled."),te();var De=nt();he(De,"Expected attribute name."),Oe={type:"Attribute",name:De,namespace:{type:"NoNamespace"}}}else if(j("*")){he(p,"Namespaces are not enabled."),he(b,"Wildcard namespace is not enabled."),te(),Ze("|");var je=nt();he(je,"Expected attribute name."),Oe={type:"Attribute",name:je,namespace:{type:"WildcardNamespace"}}}else{var Ot=nt();if(he(Ot,"Expected attribute name."),Oe={type:"Attribute",name:Ot},j("|")){var jt=K;if(te(),xT(ne)){he(p,"Namespaces are not enabled.");var Xt=nt();he(Xt,"Expected attribute name."),Oe={type:"Attribute",name:Xt,namespace:{type:"NamespaceName",name:Ot}}}else ye(jt)}}if(he(Oe.name,"Expected attribute name."),_t(),Me()&&!a)return Oe;if(j("]"))te();else{if(Oe.operator=ot(x),he(Oe.operator,"Expected a valid attribute selector operator."),_t(),Pe(),_ot[ne])Oe.value={type:"String",value:Ye(ne)};else if(v&&j("$")){te();var St=nt();he(St,"Expected substitute name."),Oe.value={type:"Substitution",name:St}}else{var Kt=nt();he(Kt,"Expected attribute value."),Oe.value={type:"String",value:Kt}}if(_t(),Me()&&!a)return Oe;if(!j("]")){var pt=nt();if(he(pt,"Expected end of attribute selector."),Oe.caseSensitivityModifier=pt,he(I,"Attribute case sensitivity modifiers are not enabled."),he(C||k[Oe.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),_t(),Me()&&!a)return Oe}Ze("]")}return Oe}function ue(){for(var Oe="";qM[ne];)Oe+=ve();return he(Oe!=="","Formula parse error."),parseInt(Oe)}var me=function(){return j("-")||j("+")||qM[ne]};function We(){if(j("e")||j("o")){var Oe=nt();if(Oe==="even")return _t(),[2,0];if(Oe==="odd")return _t(),[2,1]}var De=null,je=1;if(j("-")&&(te(),je=-1),me()&&(j("+")&&te(),De=ue(),!j("\\")&&!j("n")))return[0,De*je];De===null&&(De=1),De*=je;var Ot;if(j("\\")?(te(),kT(ne)?Ot=Je():Ot=ve()):Ot=ve(),he(Ot==="n",'Formula parse error: expected "n".'),_t(),j("+")||j("-")){var jt=j("+")?1:-1;return te(),_t(),[De,jt*ue()]}else return[De,0]}function et(Oe,De,je){var Ot;if(j("(")){if(te(),_t(),v&&j("$")){te();var jt=nt();he(jt,"Expected substitute name."),Ot={type:"Substitution",name:jt}}else if(je.type==="String")Ot={type:"String",value:tt()},he(Ot.value,"Expected ".concat(De," argument value."));else if(je.type==="Selector")Ot=lt(!0);else if(je.type==="Formula"){var Xt=We(),St=Xt[0],Kt=Xt[1];if(Ot={type:"Formula",a:St,b:Kt},je.ofSelector&&(_t(),j("o")||j("\\"))){var pt=nt();he(pt==="of","Formula of selector parse error."),_t(),Ot={type:"FormulaOfSelector",a:St,b:Kt,selector:Te()}}}else return Se("Invalid ".concat(De," signature."));if(_t(),Me()&&!a)return Ot;Ze(")")}else he(je.optional,"Argument is required for ".concat(De,' "').concat(Oe,'".'));return Ot}function qe(){if(j("*"))return he(c,"Wildcard tag name is not enabled."),te(),{type:"WildcardTag"};if(xT(ne)){he(l,"Tag names are not enabled.");var Oe=nt();return he(Oe,"Expected tag name."),{type:"TagName",name:Oe}}else return Se("Expected tag name.")}function pe(){if(j("*")){var Oe=K;if(te(),!j("|")||(te(),!Ce()))return ye(Oe),qe();he(p,"Namespaces are not enabled."),he(b,"Wildcard namespace is not enabled.");var De=qe();return De.namespace={type:"WildcardNamespace"},De}else if(j("|")){he(p,"Namespaces are not enabled."),te();var De=qe();return De.namespace={type:"NoNamespace"},De}else if(xT(ne)){var je=nt();if(he(je,"Expected tag name."),!j("|"))return he(l,"Tag names are not enabled."),{type:"TagName",name:je};var Oe=K;if(te(),!Ce())return ye(Oe),{type:"TagName",name:je};he(p,"Namespaces are not enabled.");var De=qe();return De.namespace={type:"NamespaceName",name:je},De}else return Se("Expected tag name.")}function Te(Oe){var De,je;Oe===void 0&&(Oe=!1);var Ot={type:"Rule",items:[]};if(Oe){var jt=ot(S);jt&&(Ot.combinator=jt,_t())}for(;K0)return(t.commaSeparated?Xj:Jj)(e)}else return String(e)}const Bot=[];function Uot(e,t){return(t.properties.className||Bot).includes(e.name)}function zot(e,t){return t.properties.id===e.name}function jot(e,t){return e.name===t.tagName}function Hot(e,t){return function(n,r){let i=_ie(n,"tag");const a=_ie(r??"*","range"),s=[];let o=-1;for(;++o=Aie&&e.charCodeAt(t)<=Yot;)c=c*10+(e.charCodeAt(t)-Aie),t++;return t===l?null:c}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?Rie.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function Iie(e){return Zot(qot(e))}const Xot=Iie.default||Iie,Kot=dH("name",{handlers:{"any-link":Jot,blank:elt,checked:tlt,dir:nlt,disabled:nbe,empty:rlt,enabled:ilt,"first-child":alt,"first-of-type":slt,has:olt,is:rbe,lang:ult,"last-child":clt,"last-of-type":dlt,not:flt,"nth-child":hlt,"nth-last-child":plt,"nth-last-of-type":mlt,"nth-of-type":glt,"only-child":blt,"only-of-type":ylt,optional:vlt,"read-only":Olt,"read-write":ibe,required:abe,root:Slt,scope:Elt},invalid:llt,unknown:wlt});function Jot(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&ry(t,"href")}function op(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function elt(e,t){return!sbe(t,n);function n(r){return r.type==="element"||r.type==="text"&&!J0e(r)}}function tlt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&ry(t,"checked")):t.tagName==="option"?ry(t,"selected"):!1}function nlt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function nbe(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&ry(t,"disabled")}function rlt(e,t){return!sbe(t,n);function n(r){return r.type==="element"||r.type==="text"}}function ilt(e,t){return!nbe(e,t)}function alt(e,t,n,r,i){return op(i,e),i.elementIndex===0}function slt(e,t,n,r,i){return op(i,e),i.typeIndex===0}function c6(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Xot(n.a+"n+"+n.b),e._cachedFn=t}return t}function olt(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return aq(a,{type:"root",children:t.children}),a.results.length>0}function llt(){}function rbe(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return aq(a,t),a.results[0]===t}function ult(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&Vot(i.language,ty(e.argument.value)).length>0}function clt(e,t,n,r,i){return op(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function dlt(e,t,n,r,i){return op(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function flt(e,t,n,r,i){return!rbe(e,t,n,r,i)}function hlt(e,t,n,r,i){const a=c6(e);return op(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function plt(e,t,n,r,i){const a=c6(e);return op(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function mlt(e,t,n,r,i){const a=c6(e);return op(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function glt(e,t,n,r,i){const a=c6(e);return op(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function blt(e,t,n,r,i){return op(i,e),i.elementCount===1}function ylt(e,t,n,r,i){return op(i,e),i.typeCount===1}function vlt(e,t){return!abe(e,t)}function Olt(e,t,n,r,i){return!ibe(e,t,n,r,i)}function ibe(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!ry(t,"readOnly")&&!ry(t,"disabled"):!!i.editableOrEditingHost}function abe(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&ry(t,"required")}function Slt(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function Elt(e,t,n,r,i){return i.scopeElements.includes(t)}function sbe(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";XM(a,c,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?XM(a,"descendant",o):o.combinator==="~"&&XM(a,"generalSibling",o)}return a}function C5(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:xlt}function Die(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function obe(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=Lot(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(c=>c.combinator===void 0||c.combinator===">"&&i===a)),s=Clt(e,C5(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&klt(e,s,n,a),o(),s}function _lt(e,t,n){const r=Alt(e,t,n);return aq(r,t||void 0),r.results}function Alt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Dot(e),schema:n==="svg"?Pf:Yg,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const sq=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=sq(n.children))}),t),Rlt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=_lt(t,r);i&&i.length>0&&ml(r,i,(a,s,o)=>{n(a,s,o)});return}ml(r,(i,a,s)=>{n(i,a,s)})}}},Ilt=Rlt,Dlt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Nlt=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},lbe=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?lbe(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},Nie=({value:e=""})=>{const t=Dlt(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},Pie=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Plt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{ml(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=Nlt(s.children,a);if(l){const c=Nie(l);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=Pie(o.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=lbe(s.children,a,"",n);if(o){const l=Nie(o);Object.keys(l).length>0&&(i.properties=Pie(i.properties,l,t))}}})}},Mlt=Plt;var Llt=function(t){return n=>{ml(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=$({},r.properties,{"data-meta":String(r.data.meta)}))})}},$lt=function(t){return n=>{ml(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const Flt=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Blt=Object.hasOwnProperty;class Ult{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=zlt(t,n===!0);const a=i;for(;Blt.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function zlt(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Flt,"").replace(/ /g,"-"))}function ube(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const jlt={},Mie=new Ult;function Hlt(e){const n=(e||jlt).prefix||"";return function(r){Mie.reset(),ml(r,"element",function(i){ube(i)&&!i.properties.id&&(i.properties.id=n+Mie.slug(vO(i)))})}}const Am=function(e){if(e==null)return Qlt;if(typeof e=="string")return Wlt(e);if(typeof e=="object")return Vlt(e);if(typeof e=="function")return oq(e);throw new Error("Expected function, string, or array as `test`")};function Vlt(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{ml(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let c=(l.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return o=!0,!1;if(c===n)return o=!1,!1}return!o})}})}},Xlt=Zlt;var Klt={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Jlt(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var eut=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=$({class:"anchor"},a.properties),a.children=[Klt])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=sq(n.children);n.children.push(Jlt(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},tut=[Hlt,Glt,Xlt];const dbe=gn.forwardRef((e,t)=>{var n,r=[Llt,W1e,$lt,[got,{ignoreMissing:!0}],...tut,[Ilt,{rewrite:eut((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Mlt,{properties:"attr"}],...e.rehypePlugins||[]];return D.jsx(Lst,$({},e,{rehypePlugins:r,ref:t}))});function GF(e){return e.split(` `).map(t=>t+" ").join(` -`)}class Xu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Xu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Yh{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Yh(n,Xu.range(this,t))}}class Ht{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),c;i>15?c="…"+o.slice(i-15,i):c=o.slice(0,i);var d;a+15":">","<":"<",'"':""","'":"'"},clt=/[&><"']/g;function dlt(e){return String(e).replace(clt,t=>ult[t])}var Z1e=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},flt=function(t){var n=Z1e(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},hlt=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},plt=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},ar={contains:alt,deflt:slt,escape:dlt,hyphenate:llt,getBaseElem:Z1e,isCharacterBox:flt,protocolFromUrl:plt},E5={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function mlt(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class aq{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in E5)if(E5.hasOwnProperty(n)){var r=E5[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:mlt(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Ht("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=ar.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class b0{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return wh[glt[this.id]]}sub(){return wh[blt[this.id]]}fracNum(){return wh[ylt[this.id]]}fracDen(){return wh[vlt[this.id]]}cramp(){return wh[Olt[this.id]]}text(){return wh[Slt[this.id]]}isTight(){return this.size>=2}}var sq=0,EI=1,HO=2,em=3,ek=4,ud=5,VS=6,dl=7,wh=[new b0(sq,0,!1),new b0(EI,0,!0),new b0(HO,1,!1),new b0(em,1,!0),new b0(ek,2,!1),new b0(ud,2,!0),new b0(VS,3,!1),new b0(dl,3,!0)],glt=[ek,ud,ek,ud,VS,dl,VS,dl],blt=[ud,ud,ud,ud,dl,dl,dl,dl],ylt=[HO,em,ek,ud,VS,dl,VS,dl],vlt=[em,em,ud,ud,dl,dl,dl,dl],Olt=[EI,EI,em,em,ud,ud,dl,dl],Slt=[sq,EI,HO,em,HO,em,HO,em],Xn={DISPLAY:wh[sq],TEXT:wh[HO],SCRIPT:wh[ek],SCRIPTSCRIPT:wh[VS]},ZF=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Elt(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var w5=[];ZF.forEach(e=>e.blocks.forEach(t=>w5.push(...t)));function X1e(e){for(var t=0;t=w5[t]&&e<=w5[t+1])return!0;return!1}var Nv=80,wlt=function(t,n){return"M95,"+(622+t+n)+` +`)}class Xu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Xu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Yh{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Yh(n,Xu.range(this,t))}}class Qt{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),c;i>15?c="…"+o.slice(i-15,i):c=o.slice(0,i);var d;a+15":">","<":"<",'"':""","'":"'"},out=/[&><"']/g;function lut(e){return String(e).replace(out,t=>sut[t])}var fbe=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},uut=function(t){var n=fbe(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},cut=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},dut=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},ar={contains:nut,deflt:rut,escape:lut,hyphenate:aut,getBaseElem:fbe,isCharacterBox:uut,protocolFromUrl:dut},_5={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function fut(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class uq{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in _5)if(_5.hasOwnProperty(n)){var r=_5[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:fut(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Qt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=ar.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class b0{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return wh[hut[this.id]]}sub(){return wh[put[this.id]]}fracNum(){return wh[mut[this.id]]}fracDen(){return wh[gut[this.id]]}cramp(){return wh[but[this.id]]}text(){return wh[yut[this.id]]}isTight(){return this.size>=2}}var cq=0,CI=1,VO=2,em=3,nk=4,ud=5,QS=6,dl=7,wh=[new b0(cq,0,!1),new b0(CI,0,!0),new b0(VO,1,!1),new b0(em,1,!0),new b0(nk,2,!1),new b0(ud,2,!0),new b0(QS,3,!1),new b0(dl,3,!0)],hut=[nk,ud,nk,ud,QS,dl,QS,dl],put=[ud,ud,ud,ud,dl,dl,dl,dl],mut=[VO,em,nk,ud,QS,dl,QS,dl],gut=[em,em,ud,ud,dl,dl,dl,dl],but=[CI,CI,em,em,ud,ud,dl,dl],yut=[cq,CI,VO,em,VO,em,VO,em],Xn={DISPLAY:wh[cq],TEXT:wh[VO],SCRIPT:wh[nk],SCRIPTSCRIPT:wh[QS]},ZF=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function vut(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var A5=[];ZF.forEach(e=>e.blocks.forEach(t=>A5.push(...t)));function hbe(e){for(var t=0;t=A5[t]&&e<=A5[t+1])return!0;return!1}var Mv=80,Out=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -322,7 +323,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+t)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Tlt=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 +M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Sut=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+t/2.084+" -"+t+` @@ -332,7 +333,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},xlt=function(t,n){return"M983 "+(10+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Eut=function(t,n){return"M983 "+(10+t+n)+` l`+t/3.13+" -"+t+` c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -341,7 +342,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},klt=function(t,n){return"M424,"+(2398+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},wut=function(t,n){return"M424,"+(2398+t+n)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -351,18 +352,18 @@ v`+(40+t)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},Clt=function(t,n){return"M473,"+(2713+t+n)+` +h400000v`+(40+t)+"h-400000z"},Tut=function(t,n){return"M473,"+(2713+t+n)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},_lt=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Alt=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` +606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},xut=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},kut=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Rlt=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=wlt(n,Nv);break;case"sqrtSize1":i=Tlt(n,Nv);break;case"sqrtSize2":i=xlt(n,Nv);break;case"sqrtSize3":i=klt(n,Nv);break;case"sqrtSize4":i=Clt(n,Nv);break;case"sqrtTall":i=Alt(n,Nv,r)}return i},Ilt=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},xie={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Cut=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Out(n,Mv);break;case"sqrtSize1":i=Sut(n,Mv);break;case"sqrtSize2":i=Eut(n,Mv);break;case"sqrtSize3":i=wut(n,Mv);break;case"sqrtSize4":i=Tut(n,Mv);break;case"sqrtTall":i=kut(n,Mv,r)}return i},_ut=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Fie={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -537,7 +538,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Dlt=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Aut=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -565,66 +566,66 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let CC=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ar.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Lh={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},a3={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},kie={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Nlt(e,t){Lh[e]=t}function oq(e,t,n){if(!Lh[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Lh[t][r];if(!i&&e[0]in kie&&(r=kie[e[0]].charCodeAt(0),i=Lh[t][r]),!i&&n==="text"&&X1e(r)&&(i=Lh[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var JM={};function Plt(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!JM[t]){var n=JM[t]={cssEmPerMu:a3.quad[t]/18};for(var r in a3)a3.hasOwnProperty(r)&&(n[r]=a3[r][t])}return JM[t]}var Mlt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Cie=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],_ie=function(t,n){return n.size<2?t:Mlt[t-1][n.size-1]};class zp{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||zp.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Cie[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new zp(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:_ie(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Cie[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=_ie(zp.BASESIZE,t);return this.size===n&&this.textSize===zp.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==zp.BASESIZE?["sizing","reset-size"+this.size,"size"+zp.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Plt(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}zp.BASESIZE=6;var XF={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Llt={ex:!0,em:!0,mu:!0},K1e=function(t){return typeof t!="string"&&(t=t.unit),t in XF||t in Llt||t==="ex"},ba=function(t,n){var r;if(t.unit in XF)r=XF[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Ht("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},tn=function(t){return+t.toFixed(4)+"em"},Ig=function(t){return t.filter(n=>n).join(" ")},J1e=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},ebe=function(t){var n=document.createElement(t);n.className=Ig(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let _C=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,J1e.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ar.contains(this.classes,t)}toNode(){return ebe.call(this,"span")}toMarkup(){return tbe.call(this,"span")}};class lq{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,J1e.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ar.contains(this.classes,t)}toNode(){return ebe.call(this,"a")}toMarkup(){return tbe.call(this,"a")}}class $lt{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return ar.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=tn(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Ig(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ar.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+ar.escape(r)+'"');var a=ar.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class gm{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i":""}}class KF{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Ult={bin:1,close:1,inner:1,open:1,punct:1,rel:1},zlt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ui={math:{},text:{}};function z(e,t,n,r,i,a){Ui[e][i]={font:t,group:n,replace:r},a&&r&&(Ui[e][r]=Ui[e][i])}var q="math",Nt="text",ae="main",we="ams",da="accent-token",vn="bin",vl="close",RE="inner",Zn="mathord",ns="op-token",vc="open",d6="punct",Ae="rel",Rm="spacing",ze="textord";z(q,ae,Ae,"≡","\\equiv",!0);z(q,ae,Ae,"≺","\\prec",!0);z(q,ae,Ae,"≻","\\succ",!0);z(q,ae,Ae,"∼","\\sim",!0);z(q,ae,Ae,"⊥","\\perp");z(q,ae,Ae,"⪯","\\preceq",!0);z(q,ae,Ae,"⪰","\\succeq",!0);z(q,ae,Ae,"≃","\\simeq",!0);z(q,ae,Ae,"∣","\\mid",!0);z(q,ae,Ae,"≪","\\ll",!0);z(q,ae,Ae,"≫","\\gg",!0);z(q,ae,Ae,"≍","\\asymp",!0);z(q,ae,Ae,"∥","\\parallel");z(q,ae,Ae,"⋈","\\bowtie",!0);z(q,ae,Ae,"⌣","\\smile",!0);z(q,ae,Ae,"⊑","\\sqsubseteq",!0);z(q,ae,Ae,"⊒","\\sqsupseteq",!0);z(q,ae,Ae,"≐","\\doteq",!0);z(q,ae,Ae,"⌢","\\frown",!0);z(q,ae,Ae,"∋","\\ni",!0);z(q,ae,Ae,"∝","\\propto",!0);z(q,ae,Ae,"⊢","\\vdash",!0);z(q,ae,Ae,"⊣","\\dashv",!0);z(q,ae,Ae,"∋","\\owns");z(q,ae,d6,".","\\ldotp");z(q,ae,d6,"⋅","\\cdotp");z(q,ae,ze,"#","\\#");z(Nt,ae,ze,"#","\\#");z(q,ae,ze,"&","\\&");z(Nt,ae,ze,"&","\\&");z(q,ae,ze,"ℵ","\\aleph",!0);z(q,ae,ze,"∀","\\forall",!0);z(q,ae,ze,"ℏ","\\hbar",!0);z(q,ae,ze,"∃","\\exists",!0);z(q,ae,ze,"∇","\\nabla",!0);z(q,ae,ze,"♭","\\flat",!0);z(q,ae,ze,"ℓ","\\ell",!0);z(q,ae,ze,"♮","\\natural",!0);z(q,ae,ze,"♣","\\clubsuit",!0);z(q,ae,ze,"℘","\\wp",!0);z(q,ae,ze,"♯","\\sharp",!0);z(q,ae,ze,"♢","\\diamondsuit",!0);z(q,ae,ze,"ℜ","\\Re",!0);z(q,ae,ze,"♡","\\heartsuit",!0);z(q,ae,ze,"ℑ","\\Im",!0);z(q,ae,ze,"♠","\\spadesuit",!0);z(q,ae,ze,"§","\\S",!0);z(Nt,ae,ze,"§","\\S");z(q,ae,ze,"¶","\\P",!0);z(Nt,ae,ze,"¶","\\P");z(q,ae,ze,"†","\\dag");z(Nt,ae,ze,"†","\\dag");z(Nt,ae,ze,"†","\\textdagger");z(q,ae,ze,"‡","\\ddag");z(Nt,ae,ze,"‡","\\ddag");z(Nt,ae,ze,"‡","\\textdaggerdbl");z(q,ae,vl,"⎱","\\rmoustache",!0);z(q,ae,vc,"⎰","\\lmoustache",!0);z(q,ae,vl,"⟯","\\rgroup",!0);z(q,ae,vc,"⟮","\\lgroup",!0);z(q,ae,vn,"∓","\\mp",!0);z(q,ae,vn,"⊖","\\ominus",!0);z(q,ae,vn,"⊎","\\uplus",!0);z(q,ae,vn,"⊓","\\sqcap",!0);z(q,ae,vn,"∗","\\ast");z(q,ae,vn,"⊔","\\sqcup",!0);z(q,ae,vn,"◯","\\bigcirc",!0);z(q,ae,vn,"∙","\\bullet",!0);z(q,ae,vn,"‡","\\ddagger");z(q,ae,vn,"≀","\\wr",!0);z(q,ae,vn,"⨿","\\amalg");z(q,ae,vn,"&","\\And");z(q,ae,Ae,"⟵","\\longleftarrow",!0);z(q,ae,Ae,"⇐","\\Leftarrow",!0);z(q,ae,Ae,"⟸","\\Longleftarrow",!0);z(q,ae,Ae,"⟶","\\longrightarrow",!0);z(q,ae,Ae,"⇒","\\Rightarrow",!0);z(q,ae,Ae,"⟹","\\Longrightarrow",!0);z(q,ae,Ae,"↔","\\leftrightarrow",!0);z(q,ae,Ae,"⟷","\\longleftrightarrow",!0);z(q,ae,Ae,"⇔","\\Leftrightarrow",!0);z(q,ae,Ae,"⟺","\\Longleftrightarrow",!0);z(q,ae,Ae,"↦","\\mapsto",!0);z(q,ae,Ae,"⟼","\\longmapsto",!0);z(q,ae,Ae,"↗","\\nearrow",!0);z(q,ae,Ae,"↩","\\hookleftarrow",!0);z(q,ae,Ae,"↪","\\hookrightarrow",!0);z(q,ae,Ae,"↘","\\searrow",!0);z(q,ae,Ae,"↼","\\leftharpoonup",!0);z(q,ae,Ae,"⇀","\\rightharpoonup",!0);z(q,ae,Ae,"↙","\\swarrow",!0);z(q,ae,Ae,"↽","\\leftharpoondown",!0);z(q,ae,Ae,"⇁","\\rightharpoondown",!0);z(q,ae,Ae,"↖","\\nwarrow",!0);z(q,ae,Ae,"⇌","\\rightleftharpoons",!0);z(q,we,Ae,"≮","\\nless",!0);z(q,we,Ae,"","\\@nleqslant");z(q,we,Ae,"","\\@nleqq");z(q,we,Ae,"⪇","\\lneq",!0);z(q,we,Ae,"≨","\\lneqq",!0);z(q,we,Ae,"","\\@lvertneqq");z(q,we,Ae,"⋦","\\lnsim",!0);z(q,we,Ae,"⪉","\\lnapprox",!0);z(q,we,Ae,"⊀","\\nprec",!0);z(q,we,Ae,"⋠","\\npreceq",!0);z(q,we,Ae,"⋨","\\precnsim",!0);z(q,we,Ae,"⪹","\\precnapprox",!0);z(q,we,Ae,"≁","\\nsim",!0);z(q,we,Ae,"","\\@nshortmid");z(q,we,Ae,"∤","\\nmid",!0);z(q,we,Ae,"⊬","\\nvdash",!0);z(q,we,Ae,"⊭","\\nvDash",!0);z(q,we,Ae,"⋪","\\ntriangleleft");z(q,we,Ae,"⋬","\\ntrianglelefteq",!0);z(q,we,Ae,"⊊","\\subsetneq",!0);z(q,we,Ae,"","\\@varsubsetneq");z(q,we,Ae,"⫋","\\subsetneqq",!0);z(q,we,Ae,"","\\@varsubsetneqq");z(q,we,Ae,"≯","\\ngtr",!0);z(q,we,Ae,"","\\@ngeqslant");z(q,we,Ae,"","\\@ngeqq");z(q,we,Ae,"⪈","\\gneq",!0);z(q,we,Ae,"≩","\\gneqq",!0);z(q,we,Ae,"","\\@gvertneqq");z(q,we,Ae,"⋧","\\gnsim",!0);z(q,we,Ae,"⪊","\\gnapprox",!0);z(q,we,Ae,"⊁","\\nsucc",!0);z(q,we,Ae,"⋡","\\nsucceq",!0);z(q,we,Ae,"⋩","\\succnsim",!0);z(q,we,Ae,"⪺","\\succnapprox",!0);z(q,we,Ae,"≆","\\ncong",!0);z(q,we,Ae,"","\\@nshortparallel");z(q,we,Ae,"∦","\\nparallel",!0);z(q,we,Ae,"⊯","\\nVDash",!0);z(q,we,Ae,"⋫","\\ntriangleright");z(q,we,Ae,"⋭","\\ntrianglerighteq",!0);z(q,we,Ae,"","\\@nsupseteqq");z(q,we,Ae,"⊋","\\supsetneq",!0);z(q,we,Ae,"","\\@varsupsetneq");z(q,we,Ae,"⫌","\\supsetneqq",!0);z(q,we,Ae,"","\\@varsupsetneqq");z(q,we,Ae,"⊮","\\nVdash",!0);z(q,we,Ae,"⪵","\\precneqq",!0);z(q,we,Ae,"⪶","\\succneqq",!0);z(q,we,Ae,"","\\@nsubseteqq");z(q,we,vn,"⊴","\\unlhd");z(q,we,vn,"⊵","\\unrhd");z(q,we,Ae,"↚","\\nleftarrow",!0);z(q,we,Ae,"↛","\\nrightarrow",!0);z(q,we,Ae,"⇍","\\nLeftarrow",!0);z(q,we,Ae,"⇏","\\nRightarrow",!0);z(q,we,Ae,"↮","\\nleftrightarrow",!0);z(q,we,Ae,"⇎","\\nLeftrightarrow",!0);z(q,we,Ae,"△","\\vartriangle");z(q,we,ze,"ℏ","\\hslash");z(q,we,ze,"▽","\\triangledown");z(q,we,ze,"◊","\\lozenge");z(q,we,ze,"Ⓢ","\\circledS");z(q,we,ze,"®","\\circledR");z(Nt,we,ze,"®","\\circledR");z(q,we,ze,"∡","\\measuredangle",!0);z(q,we,ze,"∄","\\nexists");z(q,we,ze,"℧","\\mho");z(q,we,ze,"Ⅎ","\\Finv",!0);z(q,we,ze,"⅁","\\Game",!0);z(q,we,ze,"‵","\\backprime");z(q,we,ze,"▲","\\blacktriangle");z(q,we,ze,"▼","\\blacktriangledown");z(q,we,ze,"■","\\blacksquare");z(q,we,ze,"⧫","\\blacklozenge");z(q,we,ze,"★","\\bigstar");z(q,we,ze,"∢","\\sphericalangle",!0);z(q,we,ze,"∁","\\complement",!0);z(q,we,ze,"ð","\\eth",!0);z(Nt,ae,ze,"ð","ð");z(q,we,ze,"╱","\\diagup");z(q,we,ze,"╲","\\diagdown");z(q,we,ze,"□","\\square");z(q,we,ze,"□","\\Box");z(q,we,ze,"◊","\\Diamond");z(q,we,ze,"¥","\\yen",!0);z(Nt,we,ze,"¥","\\yen",!0);z(q,we,ze,"✓","\\checkmark",!0);z(Nt,we,ze,"✓","\\checkmark");z(q,we,ze,"ℶ","\\beth",!0);z(q,we,ze,"ℸ","\\daleth",!0);z(q,we,ze,"ℷ","\\gimel",!0);z(q,we,ze,"ϝ","\\digamma",!0);z(q,we,ze,"ϰ","\\varkappa");z(q,we,vc,"┌","\\@ulcorner",!0);z(q,we,vl,"┐","\\@urcorner",!0);z(q,we,vc,"└","\\@llcorner",!0);z(q,we,vl,"┘","\\@lrcorner",!0);z(q,we,Ae,"≦","\\leqq",!0);z(q,we,Ae,"⩽","\\leqslant",!0);z(q,we,Ae,"⪕","\\eqslantless",!0);z(q,we,Ae,"≲","\\lesssim",!0);z(q,we,Ae,"⪅","\\lessapprox",!0);z(q,we,Ae,"≊","\\approxeq",!0);z(q,we,vn,"⋖","\\lessdot");z(q,we,Ae,"⋘","\\lll",!0);z(q,we,Ae,"≶","\\lessgtr",!0);z(q,we,Ae,"⋚","\\lesseqgtr",!0);z(q,we,Ae,"⪋","\\lesseqqgtr",!0);z(q,we,Ae,"≑","\\doteqdot");z(q,we,Ae,"≓","\\risingdotseq",!0);z(q,we,Ae,"≒","\\fallingdotseq",!0);z(q,we,Ae,"∽","\\backsim",!0);z(q,we,Ae,"⋍","\\backsimeq",!0);z(q,we,Ae,"⫅","\\subseteqq",!0);z(q,we,Ae,"⋐","\\Subset",!0);z(q,we,Ae,"⊏","\\sqsubset",!0);z(q,we,Ae,"≼","\\preccurlyeq",!0);z(q,we,Ae,"⋞","\\curlyeqprec",!0);z(q,we,Ae,"≾","\\precsim",!0);z(q,we,Ae,"⪷","\\precapprox",!0);z(q,we,Ae,"⊲","\\vartriangleleft");z(q,we,Ae,"⊴","\\trianglelefteq");z(q,we,Ae,"⊨","\\vDash",!0);z(q,we,Ae,"⊪","\\Vvdash",!0);z(q,we,Ae,"⌣","\\smallsmile");z(q,we,Ae,"⌢","\\smallfrown");z(q,we,Ae,"≏","\\bumpeq",!0);z(q,we,Ae,"≎","\\Bumpeq",!0);z(q,we,Ae,"≧","\\geqq",!0);z(q,we,Ae,"⩾","\\geqslant",!0);z(q,we,Ae,"⪖","\\eqslantgtr",!0);z(q,we,Ae,"≳","\\gtrsim",!0);z(q,we,Ae,"⪆","\\gtrapprox",!0);z(q,we,vn,"⋗","\\gtrdot");z(q,we,Ae,"⋙","\\ggg",!0);z(q,we,Ae,"≷","\\gtrless",!0);z(q,we,Ae,"⋛","\\gtreqless",!0);z(q,we,Ae,"⪌","\\gtreqqless",!0);z(q,we,Ae,"≖","\\eqcirc",!0);z(q,we,Ae,"≗","\\circeq",!0);z(q,we,Ae,"≜","\\triangleq",!0);z(q,we,Ae,"∼","\\thicksim");z(q,we,Ae,"≈","\\thickapprox");z(q,we,Ae,"⫆","\\supseteqq",!0);z(q,we,Ae,"⋑","\\Supset",!0);z(q,we,Ae,"⊐","\\sqsupset",!0);z(q,we,Ae,"≽","\\succcurlyeq",!0);z(q,we,Ae,"⋟","\\curlyeqsucc",!0);z(q,we,Ae,"≿","\\succsim",!0);z(q,we,Ae,"⪸","\\succapprox",!0);z(q,we,Ae,"⊳","\\vartriangleright");z(q,we,Ae,"⊵","\\trianglerighteq");z(q,we,Ae,"⊩","\\Vdash",!0);z(q,we,Ae,"∣","\\shortmid");z(q,we,Ae,"∥","\\shortparallel");z(q,we,Ae,"≬","\\between",!0);z(q,we,Ae,"⋔","\\pitchfork",!0);z(q,we,Ae,"∝","\\varpropto");z(q,we,Ae,"◀","\\blacktriangleleft");z(q,we,Ae,"∴","\\therefore",!0);z(q,we,Ae,"∍","\\backepsilon");z(q,we,Ae,"▶","\\blacktriangleright");z(q,we,Ae,"∵","\\because",!0);z(q,we,Ae,"⋘","\\llless");z(q,we,Ae,"⋙","\\gggtr");z(q,we,vn,"⊲","\\lhd");z(q,we,vn,"⊳","\\rhd");z(q,we,Ae,"≂","\\eqsim",!0);z(q,ae,Ae,"⋈","\\Join");z(q,we,Ae,"≑","\\Doteq",!0);z(q,we,vn,"∔","\\dotplus",!0);z(q,we,vn,"∖","\\smallsetminus");z(q,we,vn,"⋒","\\Cap",!0);z(q,we,vn,"⋓","\\Cup",!0);z(q,we,vn,"⩞","\\doublebarwedge",!0);z(q,we,vn,"⊟","\\boxminus",!0);z(q,we,vn,"⊞","\\boxplus",!0);z(q,we,vn,"⋇","\\divideontimes",!0);z(q,we,vn,"⋉","\\ltimes",!0);z(q,we,vn,"⋊","\\rtimes",!0);z(q,we,vn,"⋋","\\leftthreetimes",!0);z(q,we,vn,"⋌","\\rightthreetimes",!0);z(q,we,vn,"⋏","\\curlywedge",!0);z(q,we,vn,"⋎","\\curlyvee",!0);z(q,we,vn,"⊝","\\circleddash",!0);z(q,we,vn,"⊛","\\circledast",!0);z(q,we,vn,"⋅","\\centerdot");z(q,we,vn,"⊺","\\intercal",!0);z(q,we,vn,"⋒","\\doublecap");z(q,we,vn,"⋓","\\doublecup");z(q,we,vn,"⊠","\\boxtimes",!0);z(q,we,Ae,"⇢","\\dashrightarrow",!0);z(q,we,Ae,"⇠","\\dashleftarrow",!0);z(q,we,Ae,"⇇","\\leftleftarrows",!0);z(q,we,Ae,"⇆","\\leftrightarrows",!0);z(q,we,Ae,"⇚","\\Lleftarrow",!0);z(q,we,Ae,"↞","\\twoheadleftarrow",!0);z(q,we,Ae,"↢","\\leftarrowtail",!0);z(q,we,Ae,"↫","\\looparrowleft",!0);z(q,we,Ae,"⇋","\\leftrightharpoons",!0);z(q,we,Ae,"↶","\\curvearrowleft",!0);z(q,we,Ae,"↺","\\circlearrowleft",!0);z(q,we,Ae,"↰","\\Lsh",!0);z(q,we,Ae,"⇈","\\upuparrows",!0);z(q,we,Ae,"↿","\\upharpoonleft",!0);z(q,we,Ae,"⇃","\\downharpoonleft",!0);z(q,ae,Ae,"⊶","\\origof",!0);z(q,ae,Ae,"⊷","\\imageof",!0);z(q,we,Ae,"⊸","\\multimap",!0);z(q,we,Ae,"↭","\\leftrightsquigarrow",!0);z(q,we,Ae,"⇉","\\rightrightarrows",!0);z(q,we,Ae,"⇄","\\rightleftarrows",!0);z(q,we,Ae,"↠","\\twoheadrightarrow",!0);z(q,we,Ae,"↣","\\rightarrowtail",!0);z(q,we,Ae,"↬","\\looparrowright",!0);z(q,we,Ae,"↷","\\curvearrowright",!0);z(q,we,Ae,"↻","\\circlearrowright",!0);z(q,we,Ae,"↱","\\Rsh",!0);z(q,we,Ae,"⇊","\\downdownarrows",!0);z(q,we,Ae,"↾","\\upharpoonright",!0);z(q,we,Ae,"⇂","\\downharpoonright",!0);z(q,we,Ae,"⇝","\\rightsquigarrow",!0);z(q,we,Ae,"⇝","\\leadsto");z(q,we,Ae,"⇛","\\Rrightarrow",!0);z(q,we,Ae,"↾","\\restriction");z(q,ae,ze,"‘","`");z(q,ae,ze,"$","\\$");z(Nt,ae,ze,"$","\\$");z(Nt,ae,ze,"$","\\textdollar");z(q,ae,ze,"%","\\%");z(Nt,ae,ze,"%","\\%");z(q,ae,ze,"_","\\_");z(Nt,ae,ze,"_","\\_");z(Nt,ae,ze,"_","\\textunderscore");z(q,ae,ze,"∠","\\angle",!0);z(q,ae,ze,"∞","\\infty",!0);z(q,ae,ze,"′","\\prime");z(q,ae,ze,"△","\\triangle");z(q,ae,ze,"Γ","\\Gamma",!0);z(q,ae,ze,"Δ","\\Delta",!0);z(q,ae,ze,"Θ","\\Theta",!0);z(q,ae,ze,"Λ","\\Lambda",!0);z(q,ae,ze,"Ξ","\\Xi",!0);z(q,ae,ze,"Π","\\Pi",!0);z(q,ae,ze,"Σ","\\Sigma",!0);z(q,ae,ze,"Υ","\\Upsilon",!0);z(q,ae,ze,"Φ","\\Phi",!0);z(q,ae,ze,"Ψ","\\Psi",!0);z(q,ae,ze,"Ω","\\Omega",!0);z(q,ae,ze,"A","Α");z(q,ae,ze,"B","Β");z(q,ae,ze,"E","Ε");z(q,ae,ze,"Z","Ζ");z(q,ae,ze,"H","Η");z(q,ae,ze,"I","Ι");z(q,ae,ze,"K","Κ");z(q,ae,ze,"M","Μ");z(q,ae,ze,"N","Ν");z(q,ae,ze,"O","Ο");z(q,ae,ze,"P","Ρ");z(q,ae,ze,"T","Τ");z(q,ae,ze,"X","Χ");z(q,ae,ze,"¬","\\neg",!0);z(q,ae,ze,"¬","\\lnot");z(q,ae,ze,"⊤","\\top");z(q,ae,ze,"⊥","\\bot");z(q,ae,ze,"∅","\\emptyset");z(q,we,ze,"∅","\\varnothing");z(q,ae,Zn,"α","\\alpha",!0);z(q,ae,Zn,"β","\\beta",!0);z(q,ae,Zn,"γ","\\gamma",!0);z(q,ae,Zn,"δ","\\delta",!0);z(q,ae,Zn,"ϵ","\\epsilon",!0);z(q,ae,Zn,"ζ","\\zeta",!0);z(q,ae,Zn,"η","\\eta",!0);z(q,ae,Zn,"θ","\\theta",!0);z(q,ae,Zn,"ι","\\iota",!0);z(q,ae,Zn,"κ","\\kappa",!0);z(q,ae,Zn,"λ","\\lambda",!0);z(q,ae,Zn,"μ","\\mu",!0);z(q,ae,Zn,"ν","\\nu",!0);z(q,ae,Zn,"ξ","\\xi",!0);z(q,ae,Zn,"ο","\\omicron",!0);z(q,ae,Zn,"π","\\pi",!0);z(q,ae,Zn,"ρ","\\rho",!0);z(q,ae,Zn,"σ","\\sigma",!0);z(q,ae,Zn,"τ","\\tau",!0);z(q,ae,Zn,"υ","\\upsilon",!0);z(q,ae,Zn,"ϕ","\\phi",!0);z(q,ae,Zn,"χ","\\chi",!0);z(q,ae,Zn,"ψ","\\psi",!0);z(q,ae,Zn,"ω","\\omega",!0);z(q,ae,Zn,"ε","\\varepsilon",!0);z(q,ae,Zn,"ϑ","\\vartheta",!0);z(q,ae,Zn,"ϖ","\\varpi",!0);z(q,ae,Zn,"ϱ","\\varrho",!0);z(q,ae,Zn,"ς","\\varsigma",!0);z(q,ae,Zn,"φ","\\varphi",!0);z(q,ae,vn,"∗","*",!0);z(q,ae,vn,"+","+");z(q,ae,vn,"−","-",!0);z(q,ae,vn,"⋅","\\cdot",!0);z(q,ae,vn,"∘","\\circ",!0);z(q,ae,vn,"÷","\\div",!0);z(q,ae,vn,"±","\\pm",!0);z(q,ae,vn,"×","\\times",!0);z(q,ae,vn,"∩","\\cap",!0);z(q,ae,vn,"∪","\\cup",!0);z(q,ae,vn,"∖","\\setminus",!0);z(q,ae,vn,"∧","\\land");z(q,ae,vn,"∨","\\lor");z(q,ae,vn,"∧","\\wedge",!0);z(q,ae,vn,"∨","\\vee",!0);z(q,ae,ze,"√","\\surd");z(q,ae,vc,"⟨","\\langle",!0);z(q,ae,vc,"∣","\\lvert");z(q,ae,vc,"∥","\\lVert");z(q,ae,vl,"?","?");z(q,ae,vl,"!","!");z(q,ae,vl,"⟩","\\rangle",!0);z(q,ae,vl,"∣","\\rvert");z(q,ae,vl,"∥","\\rVert");z(q,ae,Ae,"=","=");z(q,ae,Ae,":",":");z(q,ae,Ae,"≈","\\approx",!0);z(q,ae,Ae,"≅","\\cong",!0);z(q,ae,Ae,"≥","\\ge");z(q,ae,Ae,"≥","\\geq",!0);z(q,ae,Ae,"←","\\gets");z(q,ae,Ae,">","\\gt",!0);z(q,ae,Ae,"∈","\\in",!0);z(q,ae,Ae,"","\\@not");z(q,ae,Ae,"⊂","\\subset",!0);z(q,ae,Ae,"⊃","\\supset",!0);z(q,ae,Ae,"⊆","\\subseteq",!0);z(q,ae,Ae,"⊇","\\supseteq",!0);z(q,we,Ae,"⊈","\\nsubseteq",!0);z(q,we,Ae,"⊉","\\nsupseteq",!0);z(q,ae,Ae,"⊨","\\models");z(q,ae,Ae,"←","\\leftarrow",!0);z(q,ae,Ae,"≤","\\le");z(q,ae,Ae,"≤","\\leq",!0);z(q,ae,Ae,"<","\\lt",!0);z(q,ae,Ae,"→","\\rightarrow",!0);z(q,ae,Ae,"→","\\to");z(q,we,Ae,"≱","\\ngeq",!0);z(q,we,Ae,"≰","\\nleq",!0);z(q,ae,Rm," ","\\ ");z(q,ae,Rm," ","\\space");z(q,ae,Rm," ","\\nobreakspace");z(Nt,ae,Rm," ","\\ ");z(Nt,ae,Rm," "," ");z(Nt,ae,Rm," ","\\space");z(Nt,ae,Rm," ","\\nobreakspace");z(q,ae,Rm,null,"\\nobreak");z(q,ae,Rm,null,"\\allowbreak");z(q,ae,d6,",",",");z(q,ae,d6,";",";");z(q,we,vn,"⊼","\\barwedge",!0);z(q,we,vn,"⊻","\\veebar",!0);z(q,ae,vn,"⊙","\\odot",!0);z(q,ae,vn,"⊕","\\oplus",!0);z(q,ae,vn,"⊗","\\otimes",!0);z(q,ae,ze,"∂","\\partial",!0);z(q,ae,vn,"⊘","\\oslash",!0);z(q,we,vn,"⊚","\\circledcirc",!0);z(q,we,vn,"⊡","\\boxdot",!0);z(q,ae,vn,"△","\\bigtriangleup");z(q,ae,vn,"▽","\\bigtriangledown");z(q,ae,vn,"†","\\dagger");z(q,ae,vn,"⋄","\\diamond");z(q,ae,vn,"⋆","\\star");z(q,ae,vn,"◃","\\triangleleft");z(q,ae,vn,"▹","\\triangleright");z(q,ae,vc,"{","\\{");z(Nt,ae,ze,"{","\\{");z(Nt,ae,ze,"{","\\textbraceleft");z(q,ae,vl,"}","\\}");z(Nt,ae,ze,"}","\\}");z(Nt,ae,ze,"}","\\textbraceright");z(q,ae,vc,"{","\\lbrace");z(q,ae,vl,"}","\\rbrace");z(q,ae,vc,"[","\\lbrack",!0);z(Nt,ae,ze,"[","\\lbrack",!0);z(q,ae,vl,"]","\\rbrack",!0);z(Nt,ae,ze,"]","\\rbrack",!0);z(q,ae,vc,"(","\\lparen",!0);z(q,ae,vl,")","\\rparen",!0);z(Nt,ae,ze,"<","\\textless",!0);z(Nt,ae,ze,">","\\textgreater",!0);z(q,ae,vc,"⌊","\\lfloor",!0);z(q,ae,vl,"⌋","\\rfloor",!0);z(q,ae,vc,"⌈","\\lceil",!0);z(q,ae,vl,"⌉","\\rceil",!0);z(q,ae,ze,"\\","\\backslash");z(q,ae,ze,"∣","|");z(q,ae,ze,"∣","\\vert");z(Nt,ae,ze,"|","\\textbar",!0);z(q,ae,ze,"∥","\\|");z(q,ae,ze,"∥","\\Vert");z(Nt,ae,ze,"∥","\\textbardbl");z(Nt,ae,ze,"~","\\textasciitilde");z(Nt,ae,ze,"\\","\\textbackslash");z(Nt,ae,ze,"^","\\textasciicircum");z(q,ae,Ae,"↑","\\uparrow",!0);z(q,ae,Ae,"⇑","\\Uparrow",!0);z(q,ae,Ae,"↓","\\downarrow",!0);z(q,ae,Ae,"⇓","\\Downarrow",!0);z(q,ae,Ae,"↕","\\updownarrow",!0);z(q,ae,Ae,"⇕","\\Updownarrow",!0);z(q,ae,ns,"∐","\\coprod");z(q,ae,ns,"⋁","\\bigvee");z(q,ae,ns,"⋀","\\bigwedge");z(q,ae,ns,"⨄","\\biguplus");z(q,ae,ns,"⋂","\\bigcap");z(q,ae,ns,"⋃","\\bigcup");z(q,ae,ns,"∫","\\int");z(q,ae,ns,"∫","\\intop");z(q,ae,ns,"∬","\\iint");z(q,ae,ns,"∭","\\iiint");z(q,ae,ns,"∏","\\prod");z(q,ae,ns,"∑","\\sum");z(q,ae,ns,"⨂","\\bigotimes");z(q,ae,ns,"⨁","\\bigoplus");z(q,ae,ns,"⨀","\\bigodot");z(q,ae,ns,"∮","\\oint");z(q,ae,ns,"∯","\\oiint");z(q,ae,ns,"∰","\\oiiint");z(q,ae,ns,"⨆","\\bigsqcup");z(q,ae,ns,"∫","\\smallint");z(Nt,ae,RE,"…","\\textellipsis");z(q,ae,RE,"…","\\mathellipsis");z(Nt,ae,RE,"…","\\ldots",!0);z(q,ae,RE,"…","\\ldots",!0);z(q,ae,RE,"⋯","\\@cdots",!0);z(q,ae,RE,"⋱","\\ddots",!0);z(q,ae,ze,"⋮","\\varvdots");z(q,ae,da,"ˊ","\\acute");z(q,ae,da,"ˋ","\\grave");z(q,ae,da,"¨","\\ddot");z(q,ae,da,"~","\\tilde");z(q,ae,da,"ˉ","\\bar");z(q,ae,da,"˘","\\breve");z(q,ae,da,"ˇ","\\check");z(q,ae,da,"^","\\hat");z(q,ae,da,"⃗","\\vec");z(q,ae,da,"˙","\\dot");z(q,ae,da,"˚","\\mathring");z(q,ae,Zn,"","\\@imath");z(q,ae,Zn,"","\\@jmath");z(q,ae,ze,"ı","ı");z(q,ae,ze,"ȷ","ȷ");z(Nt,ae,ze,"ı","\\i",!0);z(Nt,ae,ze,"ȷ","\\j",!0);z(Nt,ae,ze,"ß","\\ss",!0);z(Nt,ae,ze,"æ","\\ae",!0);z(Nt,ae,ze,"œ","\\oe",!0);z(Nt,ae,ze,"ø","\\o",!0);z(Nt,ae,ze,"Æ","\\AE",!0);z(Nt,ae,ze,"Œ","\\OE",!0);z(Nt,ae,ze,"Ø","\\O",!0);z(Nt,ae,da,"ˊ","\\'");z(Nt,ae,da,"ˋ","\\`");z(Nt,ae,da,"ˆ","\\^");z(Nt,ae,da,"˜","\\~");z(Nt,ae,da,"ˉ","\\=");z(Nt,ae,da,"˘","\\u");z(Nt,ae,da,"˙","\\.");z(Nt,ae,da,"¸","\\c");z(Nt,ae,da,"˚","\\r");z(Nt,ae,da,"ˇ","\\v");z(Nt,ae,da,"¨",'\\"');z(Nt,ae,da,"˝","\\H");z(Nt,ae,da,"◯","\\textcircled");var nbe={"--":!0,"---":!0,"``":!0,"''":!0};z(Nt,ae,ze,"–","--",!0);z(Nt,ae,ze,"–","\\textendash");z(Nt,ae,ze,"—","---",!0);z(Nt,ae,ze,"—","\\textemdash");z(Nt,ae,ze,"‘","`",!0);z(Nt,ae,ze,"‘","\\textquoteleft");z(Nt,ae,ze,"’","'",!0);z(Nt,ae,ze,"’","\\textquoteright");z(Nt,ae,ze,"“","``",!0);z(Nt,ae,ze,"“","\\textquotedblleft");z(Nt,ae,ze,"”","''",!0);z(Nt,ae,ze,"”","\\textquotedblright");z(q,ae,ze,"°","\\degree",!0);z(Nt,ae,ze,"°","\\degree");z(Nt,ae,ze,"°","\\textdegree",!0);z(q,ae,ze,"£","\\pounds");z(q,ae,ze,"£","\\mathsterling",!0);z(Nt,ae,ze,"£","\\pounds");z(Nt,ae,ze,"£","\\textsterling",!0);z(q,we,ze,"✠","\\maltese");z(Nt,we,ze,"✠","\\maltese");var Rie='0123456789/@."';for(var eL=0;eL0)return nf(a,c,i,n,s.concat(d));if(l){var h,p;if(l==="boldsymbol"){var b=Vlt(a,i,n,s,r);h=b.fontName,p=[b.fontClass]}else o?(h=abe[l].fontName,p=[l]):(h=u3(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(f6(a,h,i).metrics)return nf(a,h,i,n,s.concat(p));if(nbe.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var v=[],S=0;S{if(Ig(e.classes)!==Ig(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Ylt=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Xl=function(t,n,r,i){var a=new _C(t,n,r,i);return uq(a),a},rbe=(e,t,n,r)=>new _C(e,t,n,r),qlt=function(t,n,r){var i=Xl([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=tn(i.height),i.maxFontSize=1,i},Glt=function(t,n,r,i){var a=new lq(t,n,r,i);return uq(a),a},ibe=function(t){var n=new CC(t);return uq(n),n},Zlt=function(t,n){return t instanceof CC?Xl([],[t],n):t},Xlt=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Xl(["mspace"],[],t),r=ba(e,t);return n.style.marginRight=tn(r),n},u3=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},abe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},sbe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},eut=function(t,n){var[r,i,a]=sbe[t],s=new Dg(r),o=new gm([s],{width:tn(i),height:tn(a),style:"width:"+tn(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=rbe(["overlay"],[o],n);return l.height=a,l.style.height=tn(a),l.style.width=tn(i),l},at={fontMap:abe,makeSymbol:nf,mathsym:Hlt,makeSpan:Xl,makeSvgSpan:rbe,makeLineSpan:qlt,makeAnchor:Glt,makeFragment:ibe,wrapFragment:Zlt,makeVList:Klt,makeOrd:Wlt,makeGlue:Jlt,staticSvg:eut,svgData:sbe,tryCombineChars:Ylt},pa={number:3,unit:"mu"},q1={number:4,unit:"mu"},Ap={number:5,unit:"mu"},tut={mord:{mop:pa,mbin:q1,mrel:Ap,minner:pa},mop:{mord:pa,mop:pa,mrel:Ap,minner:pa},mbin:{mord:q1,mop:q1,mopen:q1,minner:q1},mrel:{mord:Ap,mop:Ap,mopen:Ap,minner:Ap},mopen:{},mclose:{mop:pa,mbin:q1,mrel:Ap,minner:pa},mpunct:{mord:pa,mop:pa,mrel:Ap,mopen:pa,mclose:pa,mpunct:pa,minner:pa},minner:{mord:pa,mop:pa,mbin:q1,mrel:Ap,mopen:pa,mpunct:pa,minner:pa}},nut={mord:{mop:pa},mop:{mord:pa,mop:pa},mbin:{},mrel:{},mopen:{},mclose:{mop:pa},mpunct:{},minner:{mop:pa}},obe={},TI={},xI={};function fn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var w=S.classes[0],T=v.classes[0];w==="mbin"&&ar.contains(iut,T)?S.classes[0]="mord":T==="mbin"&&ar.contains(rut,w)&&(v.classes[0]="mord")},{node:h},p,b),Mie(a,(v,S)=>{var w=eB(S),T=eB(v),x=w&&T?v.hasClass("mtight")?nut[w][T]:tut[w][T]:null;if(x)return at.makeGlue(x,c)},{node:h},p,b),a},Mie=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(h+1,0,p),s++})(s)}i&&t.pop()},lbe=function(t){return t instanceof CC||t instanceof lq||t instanceof _C&&t.hasClass("enclosing")?t:null},out=function e(t,n){var r=lbe(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},eB=function(t,n){return t?(n&&(t=out(t,n)),sut[t.classes[0]]||null):null},tk=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return bm(n.concat(r))},Kr=function(t,n,r){if(!t)return bm();if(TI[t.type]){var i=TI[t.type](t,n);if(r&&n.size!==r.size){i=bm(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Ht("Got group of unknown type: '"+t.type+"'")};function c3(e,t){var n=bm(["base"],e,t),r=bm(["strut"]);return r.style.height=tn(n.height+n.depth),n.depth&&(r.style.verticalAlign=tn(-n.depth)),n.children.unshift(r),n}function tB(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Os(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(c3(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(c3(s,t));var c;n?(c=c3(Os(n,t,!0)),c.classes=["tag"],a.push(c)):i&&a.push(i);var d=bm(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),c){var h=c.children[0];h.style.height=tn(d.height+d.depth),d.depth&&(h.style.verticalAlign=tn(-d.depth))}return d}function ube(e){return new CC(e)}class id{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Ig(this.classes));for(var r=0;r0&&(t+=' class ="'+ar.escape(Ig(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class FT{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ar.escape(this.toText())}toText(){return this.text}}class lut{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",tn(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Ft={MathNode:id,TextNode:FT,SpaceNode:lut,newDocumentFragment:ube},Td=function(t,n,r){return Ui[n][t]&&Ui[n][t].replace&&t.charCodeAt(0)!==55349&&!(nbe.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ui[n][t].replace),new Ft.TextNode(t)},cq=function(t){return t.length===1?t[0]:new Ft.MathNode("mrow",t)},dq=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(ar.contains(["\\imath","\\jmath"],a))return null;Ui[i][a]&&Ui[i][a].replace&&(a=Ui[i][a].replace);var s=at.fontMap[r].fontName;return oq(a,s,i)?at.fontMap[r].variant:null},du=function(t,n,r){if(t.length===1){var i=Ri(t[0],n);return r&&i instanceof id&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},Ng=function(t,n,r){return cq(du(t,n,r))},Ri=function(t,n){if(!t)return new Ft.MathNode("mrow");if(xI[t.type]){var r=xI[t.type](t,n);return r}else throw new Ht("Got group of unknown type: '"+t.type+"'")};function Lie(e,t,n,r,i){var a=du(e,n),s;a.length===1&&a[0]instanceof id&&ar.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Ft.MathNode("mrow",a);var o=new Ft.MathNode("annotation",[new Ft.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Ft.MathNode("semantics",[s,o]),c=new Ft.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var d=i?"katex":"katex-mathml";return at.makeSpan([d],[c])}var cbe=function(t){return new zp({style:t.displayMode?Xn.DISPLAY:Xn.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},dbe=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=at.makeSpan(r,[t])}return t},uut=function(t,n,r){var i=cbe(r),a;if(r.output==="mathml")return Lie(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=tB(t,i);a=at.makeSpan(["katex"],[s])}else{var o=Lie(t,n,i,r.displayMode,!1),l=tB(t,i);a=at.makeSpan(["katex"],[o,l])}return dbe(a,r)},cut=function(t,n,r){var i=cbe(r),a=tB(t,i),s=at.makeSpan(["katex"],[a]);return dbe(s,r)},dut={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},fut=function(t){var n=new Ft.MathNode("mo",[new Ft.TextNode(dut[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},hut={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},put=function(t){return t.type==="ordgroup"?t.body.length:1},mut=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(ar.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=t,d=put(c.base),h,p,b;if(d>5)l==="widehat"||l==="widecheck"?(h=420,o=2364,b=.42,p=l+"4"):(h=312,o=2340,b=.34,p="tilde4");else{var v=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][v],h=[0,239,300,360,420][v],b=[0,.24,.3,.3,.36,.42][v],p=l+v):(o=[0,600,1033,2339,2340][v],h=[0,260,286,306,312][v],b=[0,.26,.286,.3,.306,.34][v],p="tilde"+v)}var S=new Dg(p),w=new gm([S],{width:"100%",height:tn(b),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:at.makeSvgSpan([],[w],n),minWidth:0,height:b}}else{var T=[],x=hut[l],[k,C,I]=x,_=I/1e3,A=k.length,U,F;if(A===1){var P=x[3];U=["hide-tail"],F=[P]}else if(A===2)U=["halfarrow-left","halfarrow-right"],F=["xMinYMin","xMaxYMin"];else if(A===3)U=["brace-left","brace-center","brace-right"],F=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+A+" children.");for(var V=0;V0&&(i.style.minWidth=tn(a)),i},gut=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=at.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new KF({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new KF({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new gm(c,{width:"100%",height:tn(o)});s=at.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=tn(o),s},ym={encloseSpan:gut,mathMLnode:fut,svgSpan:mut};function Er(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function fq(e){var t=h6(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function h6(e){return e&&(e.type==="atom"||zlt.hasOwnProperty(e.type))?e:null}var hq=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=Er(e.base,"accent"),n=r.base,e.base=n,i=Blt(Kr(e,t)),e.base=r):(r=Er(e,"accent"),n=r.base);var a=Kr(n,t.havingCrampedStyle()),s=r.isShifty&&ar.isCharacterBox(n),o=0;if(s){var l=ar.getBaseElem(n),c=Kr(l,t.havingCrampedStyle());o=Aie(c).skew}var d=r.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=ym.svgSpan(r,t),p=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+tn(2*o)+")",marginLeft:tn(2*o)}:void 0}]},t);else{var b,v;r.label==="\\vec"?(b=at.staticSvg("vec",t),v=at.svgData.vec[1]):(b=at.makeOrd({mode:r.mode,text:r.label},t,"textord"),b=Aie(b),b.italic=0,v=b.width,d&&(h+=b.depth)),p=at.makeSpan(["accent-body"],[b]);var S=r.label==="\\textcircled";S&&(p.classes.push("accent-full"),h=a.height);var w=o;S||(w-=v/2),p.style.left=tn(w),r.label==="\\textcircled"&&(p.style.top=".2em"),p=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:p}]},t)}var T=at.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},fbe=(e,t)=>{var n=e.isStretchy?ym.mathMLnode(e.label):new Ft.MathNode("mo",[Td(e.label,e.mode)]),r=new Ft.MathNode("mover",[Ri(e.base,t),n]);return r.setAttribute("accent","true"),r},but=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));fn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=kI(t[0]),r=!but.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:hq,mathmlBuilder:fbe});fn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:hq,mathmlBuilder:fbe});fn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Kr(e.base,t),r=ym.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=at.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return at.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=ym.mathMLnode(e.label),r=new Ft.MathNode("munder",[Ri(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var d3=e=>{var t=new Ft.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};fn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=at.wrapFragment(Kr(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=at.wrapFragment(Kr(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=ym.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,c=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var d;if(s){var h=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]},t)}else d=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:o,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),at.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=ym.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=d3(Ri(e.body,t));if(e.below){var a=d3(Ri(e.below,t));r=new Ft.MathNode("munderover",[n,a,i])}else r=new Ft.MathNode("mover",[n,i])}else if(e.below){var s=d3(Ri(e.below,t));r=new Ft.MathNode("munder",[n,s])}else r=d3(),r=new Ft.MathNode("mover",[n,r]);return r}});var yut=at.makeSpan;function hbe(e,t){var n=Os(e.body,t,!0);return yut([e.mclass],n,t)}function pbe(e,t){var n,r=du(e.body,t);return e.mclass==="minner"?n=new Ft.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Ft.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Ft.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}fn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Ya(i),isCharacterBox:ar.isCharacterBox(i)}},htmlBuilder:hbe,mathmlBuilder:pbe});var p6=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};fn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:p6(t[0]),body:Ya(t[1]),isCharacterBox:ar.isCharacterBox(t[1])}}});fn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=p6(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Ya(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:ar.isCharacterBox(l)}},htmlBuilder:hbe,mathmlBuilder:pbe});fn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:p6(t[0]),body:Ya(t[0])}},htmlBuilder(e,t){var n=Os(e.body,t,!0),r=at.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=du(e.body,t),r=new Ft.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var vut={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$ie=()=>({type:"styling",body:[],mode:"math",style:"display"}),Fie=e=>e.type==="textord"&&e.text==="@",Out=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Sut(e,t,n){var r=vut[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Eut(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ht("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(c)>-1)for(var h=0;h<2;h++){for(var p=!0,b=l+1;bAV=|." after @',s[l]);var v=Sut(c,d,e),S={type:"styling",body:[v],mode:"math",style:"display"};r.push(S),o=$ie()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var w=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}fn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=at.wrapFragment(Kr(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=tn(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Ft.MathNode("mrow",[Ri(e.label,t)]);return n=new Ft.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ft.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});fn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=at.wrapFragment(Kr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ft.MathNode("mrow",[Ri(e.fragment,t)])}});fn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Er(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Ht("\\@char with invalid code point "+a);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var mbe=(e,t)=>{var n=Os(e.body,t.withColor(e.color),!1);return at.makeFragment(n)},gbe=(e,t)=>{var n=du(e.body,t.withColor(e.color)),r=new Ft.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};fn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Er(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:Ya(i)}},htmlBuilder:mbe,mathmlBuilder:gbe});fn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Er(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:mbe,mathmlBuilder:gbe});fn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&Er(i,"size").value}},htmlBuilder(e,t){var n=at.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=tn(ba(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ft.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",tn(ba(e.size,t)))),n}});var nB={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},bbe=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ht("Expected a control sequence",e);return t},wut=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},ybe=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};fn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(nB[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=nB[r.text]),Er(t.parseFunction(),"internal");throw new Ht("Invalid token after macro prefix",r)}});fn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ht("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ht('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Ht('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Ht("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===nB[n]),{type:"internal",mode:t.mode}}});fn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=bbe(t.gullet.popToken());t.gullet.consumeSpaces();var i=wut(t);return ybe(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});fn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=bbe(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return ybe(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var J2=function(t,n,r){var i=Ui.math[t]&&Ui.math[t].replace,a=oq(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},pq=function(t,n,r,i){var a=r.havingBaseStyle(n),s=at.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},vbe=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=tn(a),t.height-=a,t.depth+=a},Tut=function(t,n,r,i,a,s){var o=at.makeSymbol(t,"Main-Regular",a,i),l=pq(o,n,i,s);return r&&vbe(l,i,n),l},xut=function(t,n,r,i){return at.makeSymbol(t,"Size"+n+"-Regular",r,i)},Obe=function(t,n,r,i,a,s){var o=xut(t,n,a,i),l=pq(at.makeSpan(["delimsizing","size"+n],[o],i),Xn.TEXT,i,s);return r&&vbe(l,i,Xn.TEXT),l},iL=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=at.makeSpan(["delimsizinginner",i],[at.makeSpan([],[at.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},aL=function(t,n,r){var i=Lh["Size4-Regular"][t.charCodeAt(0)]?Lh["Size4-Regular"][t.charCodeAt(0)][4]:Lh["Size1-Regular"][t.charCodeAt(0)][4],a=new Dg("inner",Ilt(t,Math.round(1e3*n))),s=new gm([a],{width:tn(i),height:tn(n),style:"width:"+tn(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=at.makeSvgSpan([],[s],r);return o.height=n,o.style.height=tn(n),o.style.width=tn(i),{type:"elem",elem:o}},rB=.008,f3={type:"kern",size:-1*rB},kut=["|","\\lvert","\\rvert","\\vert"],Cut=["\\|","\\lVert","\\rVert","\\Vert"],Sbe=function(t,n,r,i,a,s){var o,l,c,d,h="",p=0;o=c=d=t,l=null;var b="Size1-Regular";t==="\\uparrow"?c=d="⏐":t==="\\Uparrow"?c=d="‖":t==="\\downarrow"?o=c="⏐":t==="\\Downarrow"?o=c="‖":t==="\\updownarrow"?(o="\\uparrow",c="⏐",d="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",c="‖",d="\\Downarrow"):ar.contains(kut,t)?(c="∣",h="vert",p=333):ar.contains(Cut,t)?(c="∥",h="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",c="⎢",d="⎣",b="Size4-Regular",h="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",c="⎥",d="⎦",b="Size4-Regular",h="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(c=o="⎢",d="⎣",b="Size4-Regular",h="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",c=d="⎢",b="Size4-Regular",h="lceil",p=667):t==="\\rfloor"||t==="⌋"?(c=o="⎥",d="⎦",b="Size4-Regular",h="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",c=d="⎥",b="Size4-Regular",h="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",c="⎜",d="⎝",b="Size4-Regular",h="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",c="⎟",d="⎠",b="Size4-Regular",h="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",d="⎩",c="⎪",b="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",d="⎭",c="⎪",b="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",d="⎩",c="⎪",b="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",d="⎭",c="⎪",b="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",d="⎭",c="⎪",b="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",d="⎩",c="⎪",b="Size4-Regular");var v=J2(o,b,a),S=v.height+v.depth,w=J2(c,b,a),T=w.height+w.depth,x=J2(d,b,a),k=x.height+x.depth,C=0,I=1;if(l!==null){var _=J2(l,b,a);C=_.height+_.depth,I=2}var A=S+k+C,U=Math.max(0,Math.ceil((n-A)/(I*T))),F=A+U*I*T,P=i.fontMetrics().axisHeight;r&&(P*=i.sizeMultiplier);var V=F/2-P,Q=[];if(h.length>0){var X=F-S-k,Y=Math.round(F*1e3),W=Dlt(h,Math.round(X*1e3)),ee=new Dg(h,W),J=(p/1e3).toFixed(3)+"em",K=(Y/1e3).toFixed(3)+"em",ne=new gm([ee],{width:J,height:K,viewBox:"0 0 "+p+" "+Y}),j=at.makeSvgSpan([],[ne],i);j.height=Y/1e3,j.style.width=J,j.style.height=K,Q.push({type:"elem",elem:j})}else{if(Q.push(iL(d,b,a)),Q.push(f3),l===null){var Ce=F-S-k+2*rB;Q.push(aL(c,Ce,i))}else{var ye=(F-S-k-C)/2+2*rB;Q.push(aL(c,ye,i)),Q.push(f3),Q.push(iL(l,b,a)),Q.push(f3),Q.push(aL(c,ye,i))}Q.push(f3),Q.push(iL(o,b,a))}var te=i.havingBaseStyle(Xn.TEXT),ve=at.makeVList({positionType:"bottom",positionData:V,children:Q},te);return pq(at.makeSpan(["delimsizing","mult"],[ve],te),Xn.TEXT,i,s)},sL=80,oL=.08,lL=function(t,n,r,i,a){var s=Rlt(t,i,r),o=new Dg(t,s),l=new gm([o],{width:"400em",height:tn(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return at.makeSvgSpan(["hide-tail"],[l],a)},_ut=function(t,n){var r=n.havingBaseSizing(),i=xbe("\\surd",t*r.sizeMultiplier,Tbe,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,c=0,d=0,h;return i.type==="small"?(d=1e3+1e3*s+sL,t<1?a=1:t<1.4&&(a=.7),l=(1+s+oL)/a,c=(1+s)/a,o=lL("sqrtMain",l,d,s,n),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+sL)*BT[i.size],c=(BT[i.size]+s)/a,l=(BT[i.size]+s+oL)/a,o=lL("sqrtSize"+i.size,l,d,s,n),o.style.minWidth="1.02em",h=1/a):(l=t+s+oL,c=t+s,d=Math.floor(1e3*t+s)+sL,o=lL("sqrtTall",l,d,s,n),o.style.minWidth="0.742em",h=1.056),o.height=c,o.style.height=tn(l),{span:o,advanceWidth:h,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},Ebe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Aut=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],wbe=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],BT=[0,1.2,1.8,2.4,3],Rut=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ar.contains(Ebe,t)||ar.contains(wbe,t))return Obe(t,n,!1,r,i,a);if(ar.contains(Aut,t))return Sbe(t,BT[n],!1,r,i,a);throw new Ht("Illegal delimiter: '"+t+"'")},Iut=[{type:"small",style:Xn.SCRIPTSCRIPT},{type:"small",style:Xn.SCRIPT},{type:"small",style:Xn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Dut=[{type:"small",style:Xn.SCRIPTSCRIPT},{type:"small",style:Xn.SCRIPT},{type:"small",style:Xn.TEXT},{type:"stack"}],Tbe=[{type:"small",style:Xn.SCRIPTSCRIPT},{type:"small",style:Xn.SCRIPT},{type:"small",style:Xn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Nut=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},xbe=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},kbe=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;ar.contains(wbe,t)?o=Iut:ar.contains(Ebe,t)?o=Tbe:o=Dut;var l=xbe(t,n,o,i);return l.type==="small"?Tut(t,l.style,r,i,a,s):l.type==="large"?Obe(t,l.size,r,i,a,s):Sbe(t,n,r,i,a,s)},Put=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,d=Math.max(n-o,r+o),h=Math.max(d/500*l,2*d-c);return kbe(t,h,!0,i,a,s)},tm={sqrtImage:_ut,sizedDelim:Rut,sizeToMaxHeight:BT,customSizedDelim:kbe,leftRightDelim:Put},Bie={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Mut=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function m6(e,t){var n=h6(e);if(n&&ar.contains(Mut,n.text))return n;throw n?new Ht("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ht("Invalid delimiter type '"+e.type+"'",e)}fn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=m6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Bie[e.funcName].size,mclass:Bie[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?at.makeSpan([e.mclass]):tm.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Td(e.delim,e.mode));var n=new Ft.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=tn(tm.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Uie(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}fn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ht("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:m6(t[0],e).text,color:n}}});fn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Er(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Uie(e);for(var n=Os(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Uie(e);var n=du(e.body,t);if(e.left!=="."){var r=new Ft.MathNode("mo",[Td(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Ft.MathNode("mo",[Td(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return cq(n)}});fn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e);if(!e.parser.leftrightDepth)throw new Ht("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=tk(t,[]);else{n=tm.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Td("|","text"):Td(e.delim,e.mode),r=new Ft.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var mq=(e,t)=>{var n=at.wrapFragment(Kr(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=ar.isCharacterBox(e.body);if(r==="sout")a=at.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=ba({number:.6,unit:"pt"},t),c=ba({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var h=n.height+n.depth+l+c;n.style.paddingLeft=tn(h/2+l);var p=Math.floor(1e3*h*i),b=_lt(p),v=new gm([new Dg("phase",b)],{width:"400em",height:tn(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=at.makeSvgSpan(["hide-tail"],[v],t),a.style.height=tn(h),s=n.depth+l+c}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,w=0,T=0;/box/.test(r)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:T),w=S):r==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*T,w=Math.max(0,.25-n.depth)):(S=o?.2:0,w=S),a=ym.encloseSpan(n,r,S,w,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=tn(T)):r==="angl"&&T!==.049&&(a.style.borderTopWidth=tn(T),a.style.borderRightWidth=tn(T)),s=n.depth+w,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?at.makeSpan(["mord","cancel-lap"],[x],t):at.makeSpan(["mord"],[x],t)},gq=(e,t)=>{var n=0,r=new Ft.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ri(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};fn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Er(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:mq,mathmlBuilder:gq});fn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Er(t[0],"color-token").color,s=Er(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:mq,mathmlBuilder:gq});fn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});fn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:mq,mathmlBuilder:gq});fn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Cbe={};function op(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Ht("{"+e.envName+"} can be used only in display mode.")};function bq(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Gg(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:c,emptySingleRow:d,maxNumCols:h,leqno:p}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var b=e.gullet.expandMacroAsText("\\arraystretch");if(b==null)s=1;else if(s=parseFloat(b),!s||s<0)throw new Ht("Invalid \\arraystretch: "+b)}e.gullet.beginGroup();var v=[],S=[v],w=[],T=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new Yh("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),T.push(zie(e));;){var I=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),I={type:"ordgroup",mode:e.mode,body:I},n&&(I={type:"styling",mode:e.mode,style:n,body:[I]}),v.push(I);var _=e.fetch().text;if(_==="&"){if(h&&v.length===h){if(c||o)throw new Ht("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(_==="\\end"){C(),v.length===1&&I.type==="styling"&&I.body[0].body.length===0&&(S.length>1||!d)&&S.pop(),T.length0&&(k+=.25),c.push({pos:k,isDashed:ot[ge]})}for(C(s[0]),r=0;r0&&(V+=x,Aot))for(r=0;r=o)){var Ne=void 0;(i>0||t.hskipBeforeAndAfter)&&(Ne=ar.deflt(ye.pregap,p),Ne!==0&&(W=at.makeSpan(["arraycolsep"],[]),W.style.width=tn(Ne),Y.push(W)));var Pe=[];for(r=0;r0){for(var Je=at.makeLineSpan("hline",n,d),Ye=at.makeLineSpan("hdashline",n,d),nt=[{type:"elem",elem:l,shift:0}];c.length>0;){var tt=c.pop(),ht=tt.pos-Q;tt.isDashed?nt.push({type:"elem",elem:Ye,shift:ht}):nt.push({type:"elem",elem:Je,shift:ht})}l=at.makeVList({positionType:"individualShift",children:nt},n)}if(J.length===0)return at.makeSpan(["mord"],[l],n);var _t=at.makeVList({positionType:"individualShift",children:J},n);return _t=at.makeSpan(["tag"],[_t],n),at.makeFragment([l,_t])},Lut={c:"center ",l:"left ",r:"right "},up=function(t,n){for(var r=[],i=new Ft.MathNode("mtd",[],["mtr-glue"]),a=new Ft.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var v=t.cols,S="",w=!1,T=0,x=v.length;v[0].type==="separator"&&(p+="top ",T=1),v[v.length-1].type==="separator"&&(p+="bottom ",x-=1);for(var k=T;k0?"left ":"",p+=U[U.length-1].length>0?"right ":"";for(var F=1;F-1?"alignat":"align",a=t.envName==="split",s=Gg(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:bq(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",h=0;h0&&b&&(w=1),r[v]={type:"align",align:S,pregap:w,postgap:0}}return s.colSeparationType=b?"align":"alignat",s};op({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=h6(t[0]),r=n?[t[0]]:Er(t[0],"ordgroup").body,i=r.map(function(s){var o=fq(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ht("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Gg(e.parser,a,yq(e.envName))},htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Ht("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Gg(e.parser,r,yq(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Gg(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=h6(t[0]),r=n?[t[0]]:Er(t[0],"ordgroup").body,i=r.map(function(s){var o=fq(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Ht("Unknown column alignment: "+l,s)});if(i.length>1)throw new Ht("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Gg(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Ht("{subarray} can contain only one column");return a},htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Gg(e.parser,t,yq(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Abe,htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){ar.contains(["gather","gather*"],e.envName)&&g6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:bq(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Gg(e.parser,t,"display")},htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Abe,htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){g6(e);var t={autoTag:bq(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Gg(e.parser,t,"display")},htmlBuilder:lp,mathmlBuilder:up});op({type:"array",names:["CD"],props:{numArgs:0},handler(e){return g6(e),Eut(e.parser)},htmlBuilder:lp,mathmlBuilder:up});ce("\\nonumber","\\gdef\\@eqnsw{0}");ce("\\notag","\\nonumber");fn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ht(e.funcName+" valid only within array environment")}});var jie=Cbe;fn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Ht("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Kr(e.body,r)},Ibe=(e,t)=>{var n=e.font,r=t.withFont(n);return Ri(e.body,r)},Hie={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};fn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=kI(t[0]),a=r;return a in Hie&&(a=Hie[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Rbe,mathmlBuilder:Ibe});fn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=ar.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:p6(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});fn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:Rbe,mathmlBuilder:Ibe});var Dbe=(e,t)=>{var n=t;return e==="display"?n=n.id>=Xn.SCRIPT.id?n.text():Xn.DISPLAY:e==="text"&&n.size===Xn.DISPLAY.size?n=Xn.TEXT:e==="script"?n=Xn.SCRIPT:e==="scriptscript"&&(n=Xn.SCRIPTSCRIPT),n},vq=(e,t)=>{var n=Dbe(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Kr(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?v=3*p:v=7*p,S=t.fontMetrics().denom1):(h>0?(b=t.fontMetrics().num2,v=p):(b=t.fontMetrics().num3,v=3*p),S=t.fontMetrics().denom2);var w;if(d){var x=t.fontMetrics().axisHeight;b-s.depth-(x+.5*h){var n=new Ft.MathNode("mfrac",[Ri(e.numer,t),Ri(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=ba(e.barSize,t);n.setAttribute("linethickness",tn(r))}var i=Dbe(e.size,t.style);if(i.size!==t.style.size){n=new Ft.MathNode("mstyle",[n]);var a=i.size===Xn.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Ft.MathNode("mo",[new Ft.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Ft.MathNode("mo",[new Ft.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return cq(s)}return n};fn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:c,barSize:null}},htmlBuilder:vq,mathmlBuilder:Oq});fn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});fn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Vie=["display","text","script","scriptscript"],Wie=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};fn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=kI(t[0]),s=a.type==="atom"&&a.family==="open"?Wie(a.text):null,o=kI(t[1]),l=o.type==="atom"&&o.family==="close"?Wie(o.text):null,c=Er(t[2],"size"),d,h=null;c.isBlank?d=!0:(h=c.value,d=h.number>0);var p="auto",b=t[3];if(b.type==="ordgroup"){if(b.body.length>0){var v=Er(b.body[0],"textord");p=Vie[Number(v.text)]}}else b=Er(b,"textord"),p=Vie[Number(b.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l,size:p}},htmlBuilder:vq,mathmlBuilder:Oq});fn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Er(t[0],"size").value,token:i}}});fn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=hlt(Er(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:vq,mathmlBuilder:Oq});var Nbe=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Kr(e.sup,t.havingStyle(n.sup()),t):Kr(e.sub,t.havingStyle(n.sub()),t),i=Er(e.base,"horizBrace")):i=Er(e,"horizBrace");var a=Kr(i.base,t.havingBaseStyle(Xn.DISPLAY)),s=ym.svgSpan(i,t),o;if(i.isOver?(o=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=at.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=at.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=at.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return at.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},$ut=(e,t)=>{var n=ym.mathMLnode(e.label);return new Ft.MathNode(e.isOver?"mover":"munder",[Ri(e.base,t),n])};fn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Nbe,mathmlBuilder:$ut});fn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Er(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Ya(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Os(e.body,t,!1);return at.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Ng(e.body,t);return n instanceof id||(n=new id("mrow",[n])),n.setAttribute("href",e.href),n}});fn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Er(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=Er(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),d=0;d{var n=Os(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=at.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Ng(e.body,t)});fn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ya(t[0]),mathml:Ya(t[1])}},htmlBuilder:(e,t)=>{var n=Os(e.html,t,!1);return at.makeFragment(n)},mathmlBuilder:(e,t)=>Ng(e.mathml,t)});var uL=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Ht("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!K1e(r))throw new Ht("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};fn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=Er(n[0],"raw").string,c=l.split(","),d=0;d{var n=ba(e.height,t),r=0;e.totalheight.number>0&&(r=ba(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=ba(e.width,t));var a={height:tn(n+r)};i>0&&(a.width=tn(i)),r>0&&(a.verticalAlign=tn(-r));var s=new $lt(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Ft.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=ba(e.height,t),i=0;if(e.totalheight.number>0&&(i=ba(e.totalheight,t)-r,n.setAttribute("valign",tn(-i))),n.setAttribute("height",tn(r+i)),e.width.number>0){var a=ba(e.width,t);n.setAttribute("width",tn(a))}return n.setAttribute("src",e.src),n}});fn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Er(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return at.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=ba(e.dimension,t);return new Ft.SpaceNode(n)}});fn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=at.makeSpan([],[Kr(e.body,t)]),n=at.makeSpan(["inner"],[n],t)):n=at.makeSpan(["inner"],[Kr(e.body,t)]);var r=at.makeSpan(["fix"],[]),i=at.makeSpan([e.alignment],[n,r],t),a=at.makeSpan(["strut"]);return a.style.height=tn(i.height+i.depth),i.depth&&(a.style.verticalAlign=tn(-i.depth)),i.children.unshift(a),i=at.makeSpan(["thinbox"],[i],t),at.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Ft.MathNode("mpadded",[Ri(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});fn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});fn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ht("Mismatched "+e.funcName)}});var Qie=(e,t)=>{switch(t.style.size){case Xn.DISPLAY.size:return e.display;case Xn.TEXT.size:return e.text;case Xn.SCRIPT.size:return e.script;case Xn.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};fn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ya(t[0]),text:Ya(t[1]),script:Ya(t[2]),scriptscript:Ya(t[3])}},htmlBuilder:(e,t)=>{var n=Qie(e,t),r=Os(n,t,!1);return at.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Qie(e,t);return Ng(n,t)}});var Pbe=(e,t,n,r,i,a,s)=>{e=at.makeSpan([],[e]);var o=n&&ar.isCharacterBox(n),l,c;if(t){var d=Kr(t,r.havingStyle(i.sup()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var h=Kr(n,r.havingStyle(i.sub()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-h.height)}}var p;if(c&&l){var b=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;p=at.makeVList({positionType:"bottom",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tn(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:tn(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var v=e.height-s;p=at.makeVList({positionType:"top",positionData:v,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tn(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(c){var S=e.depth+s;p=at.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:tn(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var w=[p];if(l&&a!==0&&!o){var T=at.makeSpan(["mspace"],[],r);T.style.marginRight=tn(a),w.unshift(T)}return at.makeSpan(["mop","op-limits"],w,r)},Mbe=["\\smallint"],IE=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Er(e.base,"op"),i=!0):a=Er(e,"op");var s=t.style,o=!1;s.size===Xn.DISPLAY.size&&a.symbol&&!ar.contains(Mbe,a.name)&&(o=!0);var l;if(a.symbol){var c=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=at.makeSymbol(a.name,c,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,p=at.staticSvg(d+"Size"+(o?"2":"1"),t);l=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(a.body){var b=Os(a.body,t,!0);b.length===1&&b[0]instanceof wd?(l=b[0],l.classes[0]="mop"):l=at.makeSpan(["mop"],b,t)}else{for(var v=[],S=1;S{var n;if(e.symbol)n=new id("mo",[Td(e.name,e.mode)]),ar.contains(Mbe,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new id("mo",du(e.body,t));else{n=new id("mi",[new FT(e.name.slice(1))]);var r=new id("mo",[Td("⁡","text")]);e.parentIsSupSub?n=new id("mrow",[n,r]):n=ube([n,r])}return n},Fut={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};fn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Fut[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:IE,mathmlBuilder:AC});fn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ya(r)}},htmlBuilder:IE,mathmlBuilder:AC});var But={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};fn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:IE,mathmlBuilder:AC});fn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:IE,mathmlBuilder:AC});fn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=But[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:IE,mathmlBuilder:AC});var Lbe=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Er(e.base,"operatorname"),i=!0):a=Er(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var p=h.text;return typeof p=="string"?{type:"textord",mode:h.mode,text:p}:h}),l=Os(o,t.withFont("mathrm"),!0),c=0;c{for(var n=du(e.body,t.withFont("mathrm")),r=!0,i=0;id.toText()).join("");n=[new Ft.TextNode(o)]}var l=new Ft.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new Ft.MathNode("mo",[Td("⁡","text")]);return e.parentIsSupSub?new Ft.MathNode("mrow",[l,c]):Ft.newDocumentFragment([l,c])};fn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:Ya(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Lbe,mathmlBuilder:Uut});ce("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");gy({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?at.makeFragment(Os(e.body,t,!1)):at.makeSpan(["mord"],Os(e.body,t,!0),t)},mathmlBuilder(e,t){return Ng(e.body,t,!0)}});fn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Kr(e.body,t.havingCrampedStyle()),r=at.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return at.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Ft.MathNode("mo",[new Ft.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ft.MathNode("mover",[Ri(e.body,t),n]);return r.setAttribute("accent","true"),r}});fn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Ya(r)}},htmlBuilder:(e,t)=>{var n=Os(e.body,t.withPhantom(),!1);return at.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=du(e.body,t);return new Ft.MathNode("mphantom",n)}});fn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=at.makeSpan([],[Kr(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=du(Ya(e.body),t),r=new Ft.MathNode("mphantom",n),i=new Ft.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});fn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=at.makeSpan(["inner"],[Kr(e.body,t.withPhantom())]),r=at.makeSpan(["fix"],[]);return at.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=du(Ya(e.body),t),r=new Ft.MathNode("mphantom",n),i=new Ft.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});fn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Er(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Kr(e.body,t),r=ba(e.dy,t);return at.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Ft.MathNode("mpadded",[Ri(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});fn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});fn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Er(t[0],"size"),s=Er(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&Er(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=at.makeSpan(["mord","rule"],[],t),r=ba(e.width,t),i=ba(e.height,t),a=e.shift?ba(e.shift,t):0;return n.style.borderRightWidth=tn(r),n.style.borderTopWidth=tn(i),n.style.bottom=tn(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ba(e.width,t),r=ba(e.height,t),i=e.shift?ba(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Ft.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",tn(n)),s.setAttribute("height",tn(r));var o=new Ft.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",tn(i)):(o.setAttribute("height",tn(i)),o.setAttribute("depth",tn(-i))),o.setAttribute("voffset",tn(i)),o}});function $be(e,t,n){for(var r=Os(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return $be(e.body,n,t)};fn({type:"sizing",names:Yie,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Yie.indexOf(r)+1,body:a}},htmlBuilder:zut,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=du(e.body,n),i=new Ft.MathNode("mstyle",r);return i.setAttribute("mathsize",tn(n.sizeMultiplier)),i}});fn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&Er(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=at.makeSpan([],[Kr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Ft.MathNode("mpadded",[Ri(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});fn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Kr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=at.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+h-n.height-n.depth)/2);var p=l.height-n.height-s-c;n.style.paddingLeft=tn(d);var b=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var v=t.havingStyle(Xn.SCRIPTSCRIPT),S=Kr(e.index,v,t),w=.6*(b.height-b.depth),T=at.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:S}]},t),x=at.makeSpan(["root"],[T]);return at.makeSpan(["mord","sqrt"],[x,b],t)}else return at.makeSpan(["mord","sqrt"],[b],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Ft.MathNode("mroot",[Ri(n,t),Ri(r,t)]):new Ft.MathNode("msqrt",[Ri(n,t)])}});var qie={display:Xn.DISPLAY,text:Xn.TEXT,script:Xn.SCRIPT,scriptscript:Xn.SCRIPTSCRIPT};fn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=qie[e.style],r=t.havingStyle(n).withFont("");return $be(e.body,r,t)},mathmlBuilder(e,t){var n=qie[e.style],r=t.havingStyle(n),i=du(e.body,r),a=new Ft.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var jut=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Xn.DISPLAY.size||r.alwaysHandleSupSub);return i?IE:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Xn.DISPLAY.size||r.limits);return a?Lbe:null}else{if(r.type==="accent")return ar.isCharacterBox(r.base)?hq:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?Nbe:null}else return null}else return null};gy({type:"supsub",htmlBuilder(e,t){var n=jut(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Kr(r,t),o,l,c=t.fontMetrics(),d=0,h=0,p=r&&ar.isCharacterBox(r);if(i){var b=t.havingStyle(t.style.sup());o=Kr(i,b,t),p||(d=s.height-b.fontMetrics().supDrop*b.sizeMultiplier/t.sizeMultiplier)}if(a){var v=t.havingStyle(t.style.sub());l=Kr(a,v,t),p||(h=s.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Xn.DISPLAY?S=c.sup1:t.style.cramped?S=c.sup3:S=c.sup2;var w=t.sizeMultiplier,T=tn(.5/c.ptPerEm/w),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof wd||k)&&(x=tn(-s.italic))}var C;if(o&&l){d=Math.max(d,S,o.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var I=c.defaultRuleThickness,_=4*I;if(d-o.depth-(l.height-h)<_){h=_-(d-o.depth)+l.height;var A=.8*c.xHeight-(d-o.depth);A>0&&(d+=A,h-=A)}var U=[{type:"elem",elem:l,shift:h,marginRight:T,marginLeft:x},{type:"elem",elem:o,shift:-d,marginRight:T}];C=at.makeVList({positionType:"individualShift",children:U},t)}else if(l){h=Math.max(h,c.sub1,l.height-.8*c.xHeight);var F=[{type:"elem",elem:l,marginLeft:x,marginRight:T}];C=at.makeVList({positionType:"shift",positionData:h,children:F},t)}else if(o)d=Math.max(d,S,o.depth+.25*c.xHeight),C=at.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:T}]},t);else throw new Error("supsub must have either sup or sub.");var P=eB(s,"right")||"mord";return at.makeSpan([P],[s,at.makeSpan(["msupsub"],[C])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ri(e.base,t)];e.sub&&a.push(Ri(e.sub,t)),e.sup&&a.push(Ri(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===Xn.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===Xn.DISPLAY||c.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Xn.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Xn.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Xn.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Xn.DISPLAY)?s="mover":s="msup"}return new Ft.MathNode(s,a)}});gy({type:"atom",htmlBuilder(e,t){return at.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ft.MathNode("mo",[Td(e.text,e.mode)]);if(e.family==="bin"){var r=dq(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Fbe={mi:"italic",mn:"normal",mtext:"normal"};gy({type:"mathord",htmlBuilder(e,t){return at.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ft.MathNode("mi",[Td(e.text,e.mode,t)]),r=dq(e,t)||"italic";return r!==Fbe[n.type]&&n.setAttribute("mathvariant",r),n}});gy({type:"textord",htmlBuilder(e,t){return at.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Td(e.text,e.mode,t),r=dq(e,t)||"normal",i;return e.mode==="text"?i=new Ft.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Ft.MathNode("mn",[n]):e.text==="\\prime"?i=new Ft.MathNode("mo",[n]):i=new Ft.MathNode("mi",[n]),r!==Fbe[i.type]&&i.setAttribute("mathvariant",r),i}});var cL={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},dL={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};gy({type:"spacing",htmlBuilder(e,t){if(dL.hasOwnProperty(e.text)){var n=dL[e.text].className||"";if(e.mode==="text"){var r=at.makeOrd(e,t,"textord");return r.classes.push(n),r}else return at.makeSpan(["mspace",n],[at.mathsym(e.text,e.mode,t)],t)}else{if(cL.hasOwnProperty(e.text))return at.makeSpan(["mspace",cL[e.text]],[],t);throw new Ht('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(dL.hasOwnProperty(e.text))n=new Ft.MathNode("mtext",[new Ft.TextNode(" ")]);else{if(cL.hasOwnProperty(e.text))return new Ft.MathNode("mspace");throw new Ht('Unknown type of space "'+e.text+'"')}return n}});var Gie=()=>{var e=new Ft.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};gy({type:"tag",mathmlBuilder(e,t){var n=new Ft.MathNode("mtable",[new Ft.MathNode("mtr",[Gie(),new Ft.MathNode("mtd",[Ng(e.body,t)]),Gie(),new Ft.MathNode("mtd",[Ng(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Zie={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Xie={"\\textbf":"textbf","\\textmd":"textmd"},Hut={"\\textit":"textit","\\textup":"textup"},Kie=(e,t)=>{var n=e.font;return n?Zie[n]?t.withTextFontFamily(Zie[n]):Xie[n]?t.withTextFontWeight(Xie[n]):t.withTextFontShape(Hut[n]):t};fn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:Ya(i),font:r}},htmlBuilder(e,t){var n=Kie(e,t),r=Os(e.body,n,!0);return at.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Kie(e,t);return Ng(e.body,n)}});fn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Kr(e.body,t),r=at.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=at.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return at.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Ft.MathNode("mo",[new Ft.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ft.MathNode("munder",[Ri(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});fn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Kr(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return at.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Ft.MathNode("mpadded",[Ri(e.body,t)],["vcenter"])}});fn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ht("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Jie(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),G0=obe,Bbe=`[ \r - ]`,Vut="\\\\[a-zA-Z@]+",Wut="\\\\[^\uD800-\uDFFF]",Qut="("+Vut+")"+Bbe+"*",Yut=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let NC=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ar.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Lh={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},d3={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Bie={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Rut(e,t){Lh[e]=t}function dq(e,t,n){if(!Lh[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Lh[t][r];if(!i&&e[0]in Bie&&(r=Bie[e[0]].charCodeAt(0),i=Lh[t][r]),!i&&n==="text"&&hbe(r)&&(i=Lh[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var JM={};function Iut(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!JM[t]){var n=JM[t]={cssEmPerMu:d3.quad[t]/18};for(var r in d3)d3.hasOwnProperty(r)&&(n[r]=d3[r][t])}return JM[t]}var Dut=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Uie=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],zie=function(t,n){return n.size<2?t:Dut[t-1][n.size-1]};class jp{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||jp.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Uie[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new jp(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:zie(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Uie[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=zie(jp.BASESIZE,t);return this.size===n&&this.textSize===jp.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==jp.BASESIZE?["sizing","reset-size"+this.size,"size"+jp.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Iut(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}jp.BASESIZE=6;var XF={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Nut={ex:!0,em:!0,mu:!0},pbe=function(t){return typeof t!="string"&&(t=t.unit),t in XF||t in Nut||t==="ex"},Oa=function(t,n){var r;if(t.unit in XF)r=XF[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Qt("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},tn=function(t){return+t.toFixed(4)+"em"},Rg=function(t){return t.filter(n=>n).join(" ")},mbe=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},gbe=function(t){var n=document.createElement(t);n.className=Rg(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let PC=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,mbe.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ar.contains(this.classes,t)}toNode(){return gbe.call(this,"span")}toMarkup(){return bbe.call(this,"span")}};class fq{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,mbe.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ar.contains(this.classes,t)}toNode(){return gbe.call(this,"a")}toMarkup(){return bbe.call(this,"a")}}class Put{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return ar.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=tn(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Rg(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ar.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+ar.escape(r)+'"');var a=ar.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class bm{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i":""}}class KF{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var $ut={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Fut={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ui={math:{},text:{}};function z(e,t,n,r,i,a){Ui[e][i]={font:t,group:n,replace:r},a&&r&&(Ui[e][r]=Ui[e][i])}var q="math",Pt="text",ae="main",we="ams",fa="accent-token",vn="bin",vl="close",IE="inner",Zn="mathord",rs="op-token",vc="open",d6="punct",Ae="rel",Rm="spacing",ze="textord";z(q,ae,Ae,"≡","\\equiv",!0);z(q,ae,Ae,"≺","\\prec",!0);z(q,ae,Ae,"≻","\\succ",!0);z(q,ae,Ae,"∼","\\sim",!0);z(q,ae,Ae,"⊥","\\perp");z(q,ae,Ae,"⪯","\\preceq",!0);z(q,ae,Ae,"⪰","\\succeq",!0);z(q,ae,Ae,"≃","\\simeq",!0);z(q,ae,Ae,"∣","\\mid",!0);z(q,ae,Ae,"≪","\\ll",!0);z(q,ae,Ae,"≫","\\gg",!0);z(q,ae,Ae,"≍","\\asymp",!0);z(q,ae,Ae,"∥","\\parallel");z(q,ae,Ae,"⋈","\\bowtie",!0);z(q,ae,Ae,"⌣","\\smile",!0);z(q,ae,Ae,"⊑","\\sqsubseteq",!0);z(q,ae,Ae,"⊒","\\sqsupseteq",!0);z(q,ae,Ae,"≐","\\doteq",!0);z(q,ae,Ae,"⌢","\\frown",!0);z(q,ae,Ae,"∋","\\ni",!0);z(q,ae,Ae,"∝","\\propto",!0);z(q,ae,Ae,"⊢","\\vdash",!0);z(q,ae,Ae,"⊣","\\dashv",!0);z(q,ae,Ae,"∋","\\owns");z(q,ae,d6,".","\\ldotp");z(q,ae,d6,"⋅","\\cdotp");z(q,ae,ze,"#","\\#");z(Pt,ae,ze,"#","\\#");z(q,ae,ze,"&","\\&");z(Pt,ae,ze,"&","\\&");z(q,ae,ze,"ℵ","\\aleph",!0);z(q,ae,ze,"∀","\\forall",!0);z(q,ae,ze,"ℏ","\\hbar",!0);z(q,ae,ze,"∃","\\exists",!0);z(q,ae,ze,"∇","\\nabla",!0);z(q,ae,ze,"♭","\\flat",!0);z(q,ae,ze,"ℓ","\\ell",!0);z(q,ae,ze,"♮","\\natural",!0);z(q,ae,ze,"♣","\\clubsuit",!0);z(q,ae,ze,"℘","\\wp",!0);z(q,ae,ze,"♯","\\sharp",!0);z(q,ae,ze,"♢","\\diamondsuit",!0);z(q,ae,ze,"ℜ","\\Re",!0);z(q,ae,ze,"♡","\\heartsuit",!0);z(q,ae,ze,"ℑ","\\Im",!0);z(q,ae,ze,"♠","\\spadesuit",!0);z(q,ae,ze,"§","\\S",!0);z(Pt,ae,ze,"§","\\S");z(q,ae,ze,"¶","\\P",!0);z(Pt,ae,ze,"¶","\\P");z(q,ae,ze,"†","\\dag");z(Pt,ae,ze,"†","\\dag");z(Pt,ae,ze,"†","\\textdagger");z(q,ae,ze,"‡","\\ddag");z(Pt,ae,ze,"‡","\\ddag");z(Pt,ae,ze,"‡","\\textdaggerdbl");z(q,ae,vl,"⎱","\\rmoustache",!0);z(q,ae,vc,"⎰","\\lmoustache",!0);z(q,ae,vl,"⟯","\\rgroup",!0);z(q,ae,vc,"⟮","\\lgroup",!0);z(q,ae,vn,"∓","\\mp",!0);z(q,ae,vn,"⊖","\\ominus",!0);z(q,ae,vn,"⊎","\\uplus",!0);z(q,ae,vn,"⊓","\\sqcap",!0);z(q,ae,vn,"∗","\\ast");z(q,ae,vn,"⊔","\\sqcup",!0);z(q,ae,vn,"◯","\\bigcirc",!0);z(q,ae,vn,"∙","\\bullet",!0);z(q,ae,vn,"‡","\\ddagger");z(q,ae,vn,"≀","\\wr",!0);z(q,ae,vn,"⨿","\\amalg");z(q,ae,vn,"&","\\And");z(q,ae,Ae,"⟵","\\longleftarrow",!0);z(q,ae,Ae,"⇐","\\Leftarrow",!0);z(q,ae,Ae,"⟸","\\Longleftarrow",!0);z(q,ae,Ae,"⟶","\\longrightarrow",!0);z(q,ae,Ae,"⇒","\\Rightarrow",!0);z(q,ae,Ae,"⟹","\\Longrightarrow",!0);z(q,ae,Ae,"↔","\\leftrightarrow",!0);z(q,ae,Ae,"⟷","\\longleftrightarrow",!0);z(q,ae,Ae,"⇔","\\Leftrightarrow",!0);z(q,ae,Ae,"⟺","\\Longleftrightarrow",!0);z(q,ae,Ae,"↦","\\mapsto",!0);z(q,ae,Ae,"⟼","\\longmapsto",!0);z(q,ae,Ae,"↗","\\nearrow",!0);z(q,ae,Ae,"↩","\\hookleftarrow",!0);z(q,ae,Ae,"↪","\\hookrightarrow",!0);z(q,ae,Ae,"↘","\\searrow",!0);z(q,ae,Ae,"↼","\\leftharpoonup",!0);z(q,ae,Ae,"⇀","\\rightharpoonup",!0);z(q,ae,Ae,"↙","\\swarrow",!0);z(q,ae,Ae,"↽","\\leftharpoondown",!0);z(q,ae,Ae,"⇁","\\rightharpoondown",!0);z(q,ae,Ae,"↖","\\nwarrow",!0);z(q,ae,Ae,"⇌","\\rightleftharpoons",!0);z(q,we,Ae,"≮","\\nless",!0);z(q,we,Ae,"","\\@nleqslant");z(q,we,Ae,"","\\@nleqq");z(q,we,Ae,"⪇","\\lneq",!0);z(q,we,Ae,"≨","\\lneqq",!0);z(q,we,Ae,"","\\@lvertneqq");z(q,we,Ae,"⋦","\\lnsim",!0);z(q,we,Ae,"⪉","\\lnapprox",!0);z(q,we,Ae,"⊀","\\nprec",!0);z(q,we,Ae,"⋠","\\npreceq",!0);z(q,we,Ae,"⋨","\\precnsim",!0);z(q,we,Ae,"⪹","\\precnapprox",!0);z(q,we,Ae,"≁","\\nsim",!0);z(q,we,Ae,"","\\@nshortmid");z(q,we,Ae,"∤","\\nmid",!0);z(q,we,Ae,"⊬","\\nvdash",!0);z(q,we,Ae,"⊭","\\nvDash",!0);z(q,we,Ae,"⋪","\\ntriangleleft");z(q,we,Ae,"⋬","\\ntrianglelefteq",!0);z(q,we,Ae,"⊊","\\subsetneq",!0);z(q,we,Ae,"","\\@varsubsetneq");z(q,we,Ae,"⫋","\\subsetneqq",!0);z(q,we,Ae,"","\\@varsubsetneqq");z(q,we,Ae,"≯","\\ngtr",!0);z(q,we,Ae,"","\\@ngeqslant");z(q,we,Ae,"","\\@ngeqq");z(q,we,Ae,"⪈","\\gneq",!0);z(q,we,Ae,"≩","\\gneqq",!0);z(q,we,Ae,"","\\@gvertneqq");z(q,we,Ae,"⋧","\\gnsim",!0);z(q,we,Ae,"⪊","\\gnapprox",!0);z(q,we,Ae,"⊁","\\nsucc",!0);z(q,we,Ae,"⋡","\\nsucceq",!0);z(q,we,Ae,"⋩","\\succnsim",!0);z(q,we,Ae,"⪺","\\succnapprox",!0);z(q,we,Ae,"≆","\\ncong",!0);z(q,we,Ae,"","\\@nshortparallel");z(q,we,Ae,"∦","\\nparallel",!0);z(q,we,Ae,"⊯","\\nVDash",!0);z(q,we,Ae,"⋫","\\ntriangleright");z(q,we,Ae,"⋭","\\ntrianglerighteq",!0);z(q,we,Ae,"","\\@nsupseteqq");z(q,we,Ae,"⊋","\\supsetneq",!0);z(q,we,Ae,"","\\@varsupsetneq");z(q,we,Ae,"⫌","\\supsetneqq",!0);z(q,we,Ae,"","\\@varsupsetneqq");z(q,we,Ae,"⊮","\\nVdash",!0);z(q,we,Ae,"⪵","\\precneqq",!0);z(q,we,Ae,"⪶","\\succneqq",!0);z(q,we,Ae,"","\\@nsubseteqq");z(q,we,vn,"⊴","\\unlhd");z(q,we,vn,"⊵","\\unrhd");z(q,we,Ae,"↚","\\nleftarrow",!0);z(q,we,Ae,"↛","\\nrightarrow",!0);z(q,we,Ae,"⇍","\\nLeftarrow",!0);z(q,we,Ae,"⇏","\\nRightarrow",!0);z(q,we,Ae,"↮","\\nleftrightarrow",!0);z(q,we,Ae,"⇎","\\nLeftrightarrow",!0);z(q,we,Ae,"△","\\vartriangle");z(q,we,ze,"ℏ","\\hslash");z(q,we,ze,"▽","\\triangledown");z(q,we,ze,"◊","\\lozenge");z(q,we,ze,"Ⓢ","\\circledS");z(q,we,ze,"®","\\circledR");z(Pt,we,ze,"®","\\circledR");z(q,we,ze,"∡","\\measuredangle",!0);z(q,we,ze,"∄","\\nexists");z(q,we,ze,"℧","\\mho");z(q,we,ze,"Ⅎ","\\Finv",!0);z(q,we,ze,"⅁","\\Game",!0);z(q,we,ze,"‵","\\backprime");z(q,we,ze,"▲","\\blacktriangle");z(q,we,ze,"▼","\\blacktriangledown");z(q,we,ze,"■","\\blacksquare");z(q,we,ze,"⧫","\\blacklozenge");z(q,we,ze,"★","\\bigstar");z(q,we,ze,"∢","\\sphericalangle",!0);z(q,we,ze,"∁","\\complement",!0);z(q,we,ze,"ð","\\eth",!0);z(Pt,ae,ze,"ð","ð");z(q,we,ze,"╱","\\diagup");z(q,we,ze,"╲","\\diagdown");z(q,we,ze,"□","\\square");z(q,we,ze,"□","\\Box");z(q,we,ze,"◊","\\Diamond");z(q,we,ze,"¥","\\yen",!0);z(Pt,we,ze,"¥","\\yen",!0);z(q,we,ze,"✓","\\checkmark",!0);z(Pt,we,ze,"✓","\\checkmark");z(q,we,ze,"ℶ","\\beth",!0);z(q,we,ze,"ℸ","\\daleth",!0);z(q,we,ze,"ℷ","\\gimel",!0);z(q,we,ze,"ϝ","\\digamma",!0);z(q,we,ze,"ϰ","\\varkappa");z(q,we,vc,"┌","\\@ulcorner",!0);z(q,we,vl,"┐","\\@urcorner",!0);z(q,we,vc,"└","\\@llcorner",!0);z(q,we,vl,"┘","\\@lrcorner",!0);z(q,we,Ae,"≦","\\leqq",!0);z(q,we,Ae,"⩽","\\leqslant",!0);z(q,we,Ae,"⪕","\\eqslantless",!0);z(q,we,Ae,"≲","\\lesssim",!0);z(q,we,Ae,"⪅","\\lessapprox",!0);z(q,we,Ae,"≊","\\approxeq",!0);z(q,we,vn,"⋖","\\lessdot");z(q,we,Ae,"⋘","\\lll",!0);z(q,we,Ae,"≶","\\lessgtr",!0);z(q,we,Ae,"⋚","\\lesseqgtr",!0);z(q,we,Ae,"⪋","\\lesseqqgtr",!0);z(q,we,Ae,"≑","\\doteqdot");z(q,we,Ae,"≓","\\risingdotseq",!0);z(q,we,Ae,"≒","\\fallingdotseq",!0);z(q,we,Ae,"∽","\\backsim",!0);z(q,we,Ae,"⋍","\\backsimeq",!0);z(q,we,Ae,"⫅","\\subseteqq",!0);z(q,we,Ae,"⋐","\\Subset",!0);z(q,we,Ae,"⊏","\\sqsubset",!0);z(q,we,Ae,"≼","\\preccurlyeq",!0);z(q,we,Ae,"⋞","\\curlyeqprec",!0);z(q,we,Ae,"≾","\\precsim",!0);z(q,we,Ae,"⪷","\\precapprox",!0);z(q,we,Ae,"⊲","\\vartriangleleft");z(q,we,Ae,"⊴","\\trianglelefteq");z(q,we,Ae,"⊨","\\vDash",!0);z(q,we,Ae,"⊪","\\Vvdash",!0);z(q,we,Ae,"⌣","\\smallsmile");z(q,we,Ae,"⌢","\\smallfrown");z(q,we,Ae,"≏","\\bumpeq",!0);z(q,we,Ae,"≎","\\Bumpeq",!0);z(q,we,Ae,"≧","\\geqq",!0);z(q,we,Ae,"⩾","\\geqslant",!0);z(q,we,Ae,"⪖","\\eqslantgtr",!0);z(q,we,Ae,"≳","\\gtrsim",!0);z(q,we,Ae,"⪆","\\gtrapprox",!0);z(q,we,vn,"⋗","\\gtrdot");z(q,we,Ae,"⋙","\\ggg",!0);z(q,we,Ae,"≷","\\gtrless",!0);z(q,we,Ae,"⋛","\\gtreqless",!0);z(q,we,Ae,"⪌","\\gtreqqless",!0);z(q,we,Ae,"≖","\\eqcirc",!0);z(q,we,Ae,"≗","\\circeq",!0);z(q,we,Ae,"≜","\\triangleq",!0);z(q,we,Ae,"∼","\\thicksim");z(q,we,Ae,"≈","\\thickapprox");z(q,we,Ae,"⫆","\\supseteqq",!0);z(q,we,Ae,"⋑","\\Supset",!0);z(q,we,Ae,"⊐","\\sqsupset",!0);z(q,we,Ae,"≽","\\succcurlyeq",!0);z(q,we,Ae,"⋟","\\curlyeqsucc",!0);z(q,we,Ae,"≿","\\succsim",!0);z(q,we,Ae,"⪸","\\succapprox",!0);z(q,we,Ae,"⊳","\\vartriangleright");z(q,we,Ae,"⊵","\\trianglerighteq");z(q,we,Ae,"⊩","\\Vdash",!0);z(q,we,Ae,"∣","\\shortmid");z(q,we,Ae,"∥","\\shortparallel");z(q,we,Ae,"≬","\\between",!0);z(q,we,Ae,"⋔","\\pitchfork",!0);z(q,we,Ae,"∝","\\varpropto");z(q,we,Ae,"◀","\\blacktriangleleft");z(q,we,Ae,"∴","\\therefore",!0);z(q,we,Ae,"∍","\\backepsilon");z(q,we,Ae,"▶","\\blacktriangleright");z(q,we,Ae,"∵","\\because",!0);z(q,we,Ae,"⋘","\\llless");z(q,we,Ae,"⋙","\\gggtr");z(q,we,vn,"⊲","\\lhd");z(q,we,vn,"⊳","\\rhd");z(q,we,Ae,"≂","\\eqsim",!0);z(q,ae,Ae,"⋈","\\Join");z(q,we,Ae,"≑","\\Doteq",!0);z(q,we,vn,"∔","\\dotplus",!0);z(q,we,vn,"∖","\\smallsetminus");z(q,we,vn,"⋒","\\Cap",!0);z(q,we,vn,"⋓","\\Cup",!0);z(q,we,vn,"⩞","\\doublebarwedge",!0);z(q,we,vn,"⊟","\\boxminus",!0);z(q,we,vn,"⊞","\\boxplus",!0);z(q,we,vn,"⋇","\\divideontimes",!0);z(q,we,vn,"⋉","\\ltimes",!0);z(q,we,vn,"⋊","\\rtimes",!0);z(q,we,vn,"⋋","\\leftthreetimes",!0);z(q,we,vn,"⋌","\\rightthreetimes",!0);z(q,we,vn,"⋏","\\curlywedge",!0);z(q,we,vn,"⋎","\\curlyvee",!0);z(q,we,vn,"⊝","\\circleddash",!0);z(q,we,vn,"⊛","\\circledast",!0);z(q,we,vn,"⋅","\\centerdot");z(q,we,vn,"⊺","\\intercal",!0);z(q,we,vn,"⋒","\\doublecap");z(q,we,vn,"⋓","\\doublecup");z(q,we,vn,"⊠","\\boxtimes",!0);z(q,we,Ae,"⇢","\\dashrightarrow",!0);z(q,we,Ae,"⇠","\\dashleftarrow",!0);z(q,we,Ae,"⇇","\\leftleftarrows",!0);z(q,we,Ae,"⇆","\\leftrightarrows",!0);z(q,we,Ae,"⇚","\\Lleftarrow",!0);z(q,we,Ae,"↞","\\twoheadleftarrow",!0);z(q,we,Ae,"↢","\\leftarrowtail",!0);z(q,we,Ae,"↫","\\looparrowleft",!0);z(q,we,Ae,"⇋","\\leftrightharpoons",!0);z(q,we,Ae,"↶","\\curvearrowleft",!0);z(q,we,Ae,"↺","\\circlearrowleft",!0);z(q,we,Ae,"↰","\\Lsh",!0);z(q,we,Ae,"⇈","\\upuparrows",!0);z(q,we,Ae,"↿","\\upharpoonleft",!0);z(q,we,Ae,"⇃","\\downharpoonleft",!0);z(q,ae,Ae,"⊶","\\origof",!0);z(q,ae,Ae,"⊷","\\imageof",!0);z(q,we,Ae,"⊸","\\multimap",!0);z(q,we,Ae,"↭","\\leftrightsquigarrow",!0);z(q,we,Ae,"⇉","\\rightrightarrows",!0);z(q,we,Ae,"⇄","\\rightleftarrows",!0);z(q,we,Ae,"↠","\\twoheadrightarrow",!0);z(q,we,Ae,"↣","\\rightarrowtail",!0);z(q,we,Ae,"↬","\\looparrowright",!0);z(q,we,Ae,"↷","\\curvearrowright",!0);z(q,we,Ae,"↻","\\circlearrowright",!0);z(q,we,Ae,"↱","\\Rsh",!0);z(q,we,Ae,"⇊","\\downdownarrows",!0);z(q,we,Ae,"↾","\\upharpoonright",!0);z(q,we,Ae,"⇂","\\downharpoonright",!0);z(q,we,Ae,"⇝","\\rightsquigarrow",!0);z(q,we,Ae,"⇝","\\leadsto");z(q,we,Ae,"⇛","\\Rrightarrow",!0);z(q,we,Ae,"↾","\\restriction");z(q,ae,ze,"‘","`");z(q,ae,ze,"$","\\$");z(Pt,ae,ze,"$","\\$");z(Pt,ae,ze,"$","\\textdollar");z(q,ae,ze,"%","\\%");z(Pt,ae,ze,"%","\\%");z(q,ae,ze,"_","\\_");z(Pt,ae,ze,"_","\\_");z(Pt,ae,ze,"_","\\textunderscore");z(q,ae,ze,"∠","\\angle",!0);z(q,ae,ze,"∞","\\infty",!0);z(q,ae,ze,"′","\\prime");z(q,ae,ze,"△","\\triangle");z(q,ae,ze,"Γ","\\Gamma",!0);z(q,ae,ze,"Δ","\\Delta",!0);z(q,ae,ze,"Θ","\\Theta",!0);z(q,ae,ze,"Λ","\\Lambda",!0);z(q,ae,ze,"Ξ","\\Xi",!0);z(q,ae,ze,"Π","\\Pi",!0);z(q,ae,ze,"Σ","\\Sigma",!0);z(q,ae,ze,"Υ","\\Upsilon",!0);z(q,ae,ze,"Φ","\\Phi",!0);z(q,ae,ze,"Ψ","\\Psi",!0);z(q,ae,ze,"Ω","\\Omega",!0);z(q,ae,ze,"A","Α");z(q,ae,ze,"B","Β");z(q,ae,ze,"E","Ε");z(q,ae,ze,"Z","Ζ");z(q,ae,ze,"H","Η");z(q,ae,ze,"I","Ι");z(q,ae,ze,"K","Κ");z(q,ae,ze,"M","Μ");z(q,ae,ze,"N","Ν");z(q,ae,ze,"O","Ο");z(q,ae,ze,"P","Ρ");z(q,ae,ze,"T","Τ");z(q,ae,ze,"X","Χ");z(q,ae,ze,"¬","\\neg",!0);z(q,ae,ze,"¬","\\lnot");z(q,ae,ze,"⊤","\\top");z(q,ae,ze,"⊥","\\bot");z(q,ae,ze,"∅","\\emptyset");z(q,we,ze,"∅","\\varnothing");z(q,ae,Zn,"α","\\alpha",!0);z(q,ae,Zn,"β","\\beta",!0);z(q,ae,Zn,"γ","\\gamma",!0);z(q,ae,Zn,"δ","\\delta",!0);z(q,ae,Zn,"ϵ","\\epsilon",!0);z(q,ae,Zn,"ζ","\\zeta",!0);z(q,ae,Zn,"η","\\eta",!0);z(q,ae,Zn,"θ","\\theta",!0);z(q,ae,Zn,"ι","\\iota",!0);z(q,ae,Zn,"κ","\\kappa",!0);z(q,ae,Zn,"λ","\\lambda",!0);z(q,ae,Zn,"μ","\\mu",!0);z(q,ae,Zn,"ν","\\nu",!0);z(q,ae,Zn,"ξ","\\xi",!0);z(q,ae,Zn,"ο","\\omicron",!0);z(q,ae,Zn,"π","\\pi",!0);z(q,ae,Zn,"ρ","\\rho",!0);z(q,ae,Zn,"σ","\\sigma",!0);z(q,ae,Zn,"τ","\\tau",!0);z(q,ae,Zn,"υ","\\upsilon",!0);z(q,ae,Zn,"ϕ","\\phi",!0);z(q,ae,Zn,"χ","\\chi",!0);z(q,ae,Zn,"ψ","\\psi",!0);z(q,ae,Zn,"ω","\\omega",!0);z(q,ae,Zn,"ε","\\varepsilon",!0);z(q,ae,Zn,"ϑ","\\vartheta",!0);z(q,ae,Zn,"ϖ","\\varpi",!0);z(q,ae,Zn,"ϱ","\\varrho",!0);z(q,ae,Zn,"ς","\\varsigma",!0);z(q,ae,Zn,"φ","\\varphi",!0);z(q,ae,vn,"∗","*",!0);z(q,ae,vn,"+","+");z(q,ae,vn,"−","-",!0);z(q,ae,vn,"⋅","\\cdot",!0);z(q,ae,vn,"∘","\\circ",!0);z(q,ae,vn,"÷","\\div",!0);z(q,ae,vn,"±","\\pm",!0);z(q,ae,vn,"×","\\times",!0);z(q,ae,vn,"∩","\\cap",!0);z(q,ae,vn,"∪","\\cup",!0);z(q,ae,vn,"∖","\\setminus",!0);z(q,ae,vn,"∧","\\land");z(q,ae,vn,"∨","\\lor");z(q,ae,vn,"∧","\\wedge",!0);z(q,ae,vn,"∨","\\vee",!0);z(q,ae,ze,"√","\\surd");z(q,ae,vc,"⟨","\\langle",!0);z(q,ae,vc,"∣","\\lvert");z(q,ae,vc,"∥","\\lVert");z(q,ae,vl,"?","?");z(q,ae,vl,"!","!");z(q,ae,vl,"⟩","\\rangle",!0);z(q,ae,vl,"∣","\\rvert");z(q,ae,vl,"∥","\\rVert");z(q,ae,Ae,"=","=");z(q,ae,Ae,":",":");z(q,ae,Ae,"≈","\\approx",!0);z(q,ae,Ae,"≅","\\cong",!0);z(q,ae,Ae,"≥","\\ge");z(q,ae,Ae,"≥","\\geq",!0);z(q,ae,Ae,"←","\\gets");z(q,ae,Ae,">","\\gt",!0);z(q,ae,Ae,"∈","\\in",!0);z(q,ae,Ae,"","\\@not");z(q,ae,Ae,"⊂","\\subset",!0);z(q,ae,Ae,"⊃","\\supset",!0);z(q,ae,Ae,"⊆","\\subseteq",!0);z(q,ae,Ae,"⊇","\\supseteq",!0);z(q,we,Ae,"⊈","\\nsubseteq",!0);z(q,we,Ae,"⊉","\\nsupseteq",!0);z(q,ae,Ae,"⊨","\\models");z(q,ae,Ae,"←","\\leftarrow",!0);z(q,ae,Ae,"≤","\\le");z(q,ae,Ae,"≤","\\leq",!0);z(q,ae,Ae,"<","\\lt",!0);z(q,ae,Ae,"→","\\rightarrow",!0);z(q,ae,Ae,"→","\\to");z(q,we,Ae,"≱","\\ngeq",!0);z(q,we,Ae,"≰","\\nleq",!0);z(q,ae,Rm," ","\\ ");z(q,ae,Rm," ","\\space");z(q,ae,Rm," ","\\nobreakspace");z(Pt,ae,Rm," ","\\ ");z(Pt,ae,Rm," "," ");z(Pt,ae,Rm," ","\\space");z(Pt,ae,Rm," ","\\nobreakspace");z(q,ae,Rm,null,"\\nobreak");z(q,ae,Rm,null,"\\allowbreak");z(q,ae,d6,",",",");z(q,ae,d6,";",";");z(q,we,vn,"⊼","\\barwedge",!0);z(q,we,vn,"⊻","\\veebar",!0);z(q,ae,vn,"⊙","\\odot",!0);z(q,ae,vn,"⊕","\\oplus",!0);z(q,ae,vn,"⊗","\\otimes",!0);z(q,ae,ze,"∂","\\partial",!0);z(q,ae,vn,"⊘","\\oslash",!0);z(q,we,vn,"⊚","\\circledcirc",!0);z(q,we,vn,"⊡","\\boxdot",!0);z(q,ae,vn,"△","\\bigtriangleup");z(q,ae,vn,"▽","\\bigtriangledown");z(q,ae,vn,"†","\\dagger");z(q,ae,vn,"⋄","\\diamond");z(q,ae,vn,"⋆","\\star");z(q,ae,vn,"◃","\\triangleleft");z(q,ae,vn,"▹","\\triangleright");z(q,ae,vc,"{","\\{");z(Pt,ae,ze,"{","\\{");z(Pt,ae,ze,"{","\\textbraceleft");z(q,ae,vl,"}","\\}");z(Pt,ae,ze,"}","\\}");z(Pt,ae,ze,"}","\\textbraceright");z(q,ae,vc,"{","\\lbrace");z(q,ae,vl,"}","\\rbrace");z(q,ae,vc,"[","\\lbrack",!0);z(Pt,ae,ze,"[","\\lbrack",!0);z(q,ae,vl,"]","\\rbrack",!0);z(Pt,ae,ze,"]","\\rbrack",!0);z(q,ae,vc,"(","\\lparen",!0);z(q,ae,vl,")","\\rparen",!0);z(Pt,ae,ze,"<","\\textless",!0);z(Pt,ae,ze,">","\\textgreater",!0);z(q,ae,vc,"⌊","\\lfloor",!0);z(q,ae,vl,"⌋","\\rfloor",!0);z(q,ae,vc,"⌈","\\lceil",!0);z(q,ae,vl,"⌉","\\rceil",!0);z(q,ae,ze,"\\","\\backslash");z(q,ae,ze,"∣","|");z(q,ae,ze,"∣","\\vert");z(Pt,ae,ze,"|","\\textbar",!0);z(q,ae,ze,"∥","\\|");z(q,ae,ze,"∥","\\Vert");z(Pt,ae,ze,"∥","\\textbardbl");z(Pt,ae,ze,"~","\\textasciitilde");z(Pt,ae,ze,"\\","\\textbackslash");z(Pt,ae,ze,"^","\\textasciicircum");z(q,ae,Ae,"↑","\\uparrow",!0);z(q,ae,Ae,"⇑","\\Uparrow",!0);z(q,ae,Ae,"↓","\\downarrow",!0);z(q,ae,Ae,"⇓","\\Downarrow",!0);z(q,ae,Ae,"↕","\\updownarrow",!0);z(q,ae,Ae,"⇕","\\Updownarrow",!0);z(q,ae,rs,"∐","\\coprod");z(q,ae,rs,"⋁","\\bigvee");z(q,ae,rs,"⋀","\\bigwedge");z(q,ae,rs,"⨄","\\biguplus");z(q,ae,rs,"⋂","\\bigcap");z(q,ae,rs,"⋃","\\bigcup");z(q,ae,rs,"∫","\\int");z(q,ae,rs,"∫","\\intop");z(q,ae,rs,"∬","\\iint");z(q,ae,rs,"∭","\\iiint");z(q,ae,rs,"∏","\\prod");z(q,ae,rs,"∑","\\sum");z(q,ae,rs,"⨂","\\bigotimes");z(q,ae,rs,"⨁","\\bigoplus");z(q,ae,rs,"⨀","\\bigodot");z(q,ae,rs,"∮","\\oint");z(q,ae,rs,"∯","\\oiint");z(q,ae,rs,"∰","\\oiiint");z(q,ae,rs,"⨆","\\bigsqcup");z(q,ae,rs,"∫","\\smallint");z(Pt,ae,IE,"…","\\textellipsis");z(q,ae,IE,"…","\\mathellipsis");z(Pt,ae,IE,"…","\\ldots",!0);z(q,ae,IE,"…","\\ldots",!0);z(q,ae,IE,"⋯","\\@cdots",!0);z(q,ae,IE,"⋱","\\ddots",!0);z(q,ae,ze,"⋮","\\varvdots");z(q,ae,fa,"ˊ","\\acute");z(q,ae,fa,"ˋ","\\grave");z(q,ae,fa,"¨","\\ddot");z(q,ae,fa,"~","\\tilde");z(q,ae,fa,"ˉ","\\bar");z(q,ae,fa,"˘","\\breve");z(q,ae,fa,"ˇ","\\check");z(q,ae,fa,"^","\\hat");z(q,ae,fa,"⃗","\\vec");z(q,ae,fa,"˙","\\dot");z(q,ae,fa,"˚","\\mathring");z(q,ae,Zn,"","\\@imath");z(q,ae,Zn,"","\\@jmath");z(q,ae,ze,"ı","ı");z(q,ae,ze,"ȷ","ȷ");z(Pt,ae,ze,"ı","\\i",!0);z(Pt,ae,ze,"ȷ","\\j",!0);z(Pt,ae,ze,"ß","\\ss",!0);z(Pt,ae,ze,"æ","\\ae",!0);z(Pt,ae,ze,"œ","\\oe",!0);z(Pt,ae,ze,"ø","\\o",!0);z(Pt,ae,ze,"Æ","\\AE",!0);z(Pt,ae,ze,"Œ","\\OE",!0);z(Pt,ae,ze,"Ø","\\O",!0);z(Pt,ae,fa,"ˊ","\\'");z(Pt,ae,fa,"ˋ","\\`");z(Pt,ae,fa,"ˆ","\\^");z(Pt,ae,fa,"˜","\\~");z(Pt,ae,fa,"ˉ","\\=");z(Pt,ae,fa,"˘","\\u");z(Pt,ae,fa,"˙","\\.");z(Pt,ae,fa,"¸","\\c");z(Pt,ae,fa,"˚","\\r");z(Pt,ae,fa,"ˇ","\\v");z(Pt,ae,fa,"¨",'\\"');z(Pt,ae,fa,"˝","\\H");z(Pt,ae,fa,"◯","\\textcircled");var ybe={"--":!0,"---":!0,"``":!0,"''":!0};z(Pt,ae,ze,"–","--",!0);z(Pt,ae,ze,"–","\\textendash");z(Pt,ae,ze,"—","---",!0);z(Pt,ae,ze,"—","\\textemdash");z(Pt,ae,ze,"‘","`",!0);z(Pt,ae,ze,"‘","\\textquoteleft");z(Pt,ae,ze,"’","'",!0);z(Pt,ae,ze,"’","\\textquoteright");z(Pt,ae,ze,"“","``",!0);z(Pt,ae,ze,"“","\\textquotedblleft");z(Pt,ae,ze,"”","''",!0);z(Pt,ae,ze,"”","\\textquotedblright");z(q,ae,ze,"°","\\degree",!0);z(Pt,ae,ze,"°","\\degree");z(Pt,ae,ze,"°","\\textdegree",!0);z(q,ae,ze,"£","\\pounds");z(q,ae,ze,"£","\\mathsterling",!0);z(Pt,ae,ze,"£","\\pounds");z(Pt,ae,ze,"£","\\textsterling",!0);z(q,we,ze,"✠","\\maltese");z(Pt,we,ze,"✠","\\maltese");var Hie='0123456789/@."';for(var eL=0;eL0)return nf(a,c,i,n,s.concat(d));if(l){var h,p;if(l==="boldsymbol"){var b=zut(a,i,n,s,r);h=b.fontName,p=[b.fontClass]}else o?(h=Sbe[l].fontName,p=[l]):(h=m3(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(f6(a,h,i).metrics)return nf(a,h,i,n,s.concat(p));if(ybe.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var v=[],S=0;S{if(Rg(e.classes)!==Rg(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Vut=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Xl=function(t,n,r,i){var a=new PC(t,n,r,i);return hq(a),a},vbe=(e,t,n,r)=>new PC(e,t,n,r),Wut=function(t,n,r){var i=Xl([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=tn(i.height),i.maxFontSize=1,i},Qut=function(t,n,r,i){var a=new fq(t,n,r,i);return hq(a),a},Obe=function(t){var n=new NC(t);return hq(n),n},Yut=function(t,n){return t instanceof NC?Xl([],[t],n):t},qut=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Xl(["mspace"],[],t),r=Oa(e,t);return n.style.marginRight=tn(r),n},m3=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},Sbe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ebe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Xut=function(t,n){var[r,i,a]=Ebe[t],s=new Ig(r),o=new bm([s],{width:tn(i),height:tn(a),style:"width:"+tn(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=vbe(["overlay"],[o],n);return l.height=a,l.style.height=tn(a),l.style.width=tn(i),l},at={fontMap:Sbe,makeSymbol:nf,mathsym:Uut,makeSpan:Xl,makeSvgSpan:vbe,makeLineSpan:Wut,makeAnchor:Qut,makeFragment:Obe,wrapFragment:Yut,makeVList:Gut,makeOrd:jut,makeGlue:Zut,staticSvg:Xut,svgData:Ebe,tryCombineChars:Vut},ba={number:3,unit:"mu"},G1={number:4,unit:"mu"},Rp={number:5,unit:"mu"},Kut={mord:{mop:ba,mbin:G1,mrel:Rp,minner:ba},mop:{mord:ba,mop:ba,mrel:Rp,minner:ba},mbin:{mord:G1,mop:G1,mopen:G1,minner:G1},mrel:{mord:Rp,mop:Rp,mopen:Rp,minner:Rp},mopen:{},mclose:{mop:ba,mbin:G1,mrel:Rp,minner:ba},mpunct:{mord:ba,mop:ba,mrel:Rp,mopen:ba,mclose:ba,mpunct:ba,minner:ba},minner:{mord:ba,mop:ba,mbin:G1,mrel:Rp,mopen:ba,mpunct:ba,minner:ba}},Jut={mord:{mop:ba},mop:{mord:ba,mop:ba},mbin:{},mrel:{},mopen:{},mclose:{mop:ba},mpunct:{},minner:{mop:ba}},wbe={},AI={},RI={};function fn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var w=S.classes[0],T=v.classes[0];w==="mbin"&&ar.contains(tct,T)?S.classes[0]="mord":T==="mbin"&&ar.contains(ect,w)&&(v.classes[0]="mord")},{node:h},p,b),qie(a,(v,S)=>{var w=eB(S),T=eB(v),x=w&&T?v.hasClass("mtight")?Jut[w][T]:Kut[w][T]:null;if(x)return at.makeGlue(x,c)},{node:h},p,b),a},qie=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(h+1,0,p),s++})(s)}i&&t.pop()},Tbe=function(t){return t instanceof NC||t instanceof fq||t instanceof PC&&t.hasClass("enclosing")?t:null},ict=function e(t,n){var r=Tbe(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},eB=function(t,n){return t?(n&&(t=ict(t,n)),rct[t.classes[0]]||null):null},rk=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return ym(n.concat(r))},Kr=function(t,n,r){if(!t)return ym();if(AI[t.type]){var i=AI[t.type](t,n);if(r&&n.size!==r.size){i=ym(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Qt("Got group of unknown type: '"+t.type+"'")};function g3(e,t){var n=ym(["base"],e,t),r=ym(["strut"]);return r.style.height=tn(n.height+n.depth),n.depth&&(r.style.verticalAlign=tn(-n.depth)),n.children.unshift(r),n}function tB(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=vs(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(g3(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(g3(s,t));var c;n?(c=g3(vs(n,t,!0)),c.classes=["tag"],a.push(c)):i&&a.push(i);var d=ym(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),c){var h=c.children[0];h.style.height=tn(d.height+d.depth),d.depth&&(h.style.verticalAlign=tn(-d.depth))}return d}function xbe(e){return new NC(e)}class id{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Rg(this.classes));for(var r=0;r0&&(t+=' class ="'+ar.escape(Rg(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class B2{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ar.escape(this.toText())}toText(){return this.text}}class act{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",tn(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Bt={MathNode:id,TextNode:B2,SpaceNode:act,newDocumentFragment:xbe},wd=function(t,n,r){return Ui[n][t]&&Ui[n][t].replace&&t.charCodeAt(0)!==55349&&!(ybe.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ui[n][t].replace),new Bt.TextNode(t)},pq=function(t){return t.length===1?t[0]:new Bt.MathNode("mrow",t)},mq=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(ar.contains(["\\imath","\\jmath"],a))return null;Ui[i][a]&&Ui[i][a].replace&&(a=Ui[i][a].replace);var s=at.fontMap[r].fontName;return dq(a,s,i)?at.fontMap[r].variant:null},du=function(t,n,r){if(t.length===1){var i=Ri(t[0],n);return r&&i instanceof id&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},Dg=function(t,n,r){return pq(du(t,n,r))},Ri=function(t,n){if(!t)return new Bt.MathNode("mrow");if(RI[t.type]){var r=RI[t.type](t,n);return r}else throw new Qt("Got group of unknown type: '"+t.type+"'")};function Gie(e,t,n,r,i){var a=du(e,n),s;a.length===1&&a[0]instanceof id&&ar.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Bt.MathNode("mrow",a);var o=new Bt.MathNode("annotation",[new Bt.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Bt.MathNode("semantics",[s,o]),c=new Bt.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var d=i?"katex":"katex-mathml";return at.makeSpan([d],[c])}var kbe=function(t){return new jp({style:t.displayMode?Xn.DISPLAY:Xn.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Cbe=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=at.makeSpan(r,[t])}return t},sct=function(t,n,r){var i=kbe(r),a;if(r.output==="mathml")return Gie(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=tB(t,i);a=at.makeSpan(["katex"],[s])}else{var o=Gie(t,n,i,r.displayMode,!1),l=tB(t,i);a=at.makeSpan(["katex"],[o,l])}return Cbe(a,r)},oct=function(t,n,r){var i=kbe(r),a=tB(t,i),s=at.makeSpan(["katex"],[a]);return Cbe(s,r)},lct={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},uct=function(t){var n=new Bt.MathNode("mo",[new Bt.TextNode(lct[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},cct={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},dct=function(t){return t.type==="ordgroup"?t.body.length:1},fct=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(ar.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=t,d=dct(c.base),h,p,b;if(d>5)l==="widehat"||l==="widecheck"?(h=420,o=2364,b=.42,p=l+"4"):(h=312,o=2340,b=.34,p="tilde4");else{var v=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][v],h=[0,239,300,360,420][v],b=[0,.24,.3,.3,.36,.42][v],p=l+v):(o=[0,600,1033,2339,2340][v],h=[0,260,286,306,312][v],b=[0,.26,.286,.3,.306,.34][v],p="tilde"+v)}var S=new Ig(p),w=new bm([S],{width:"100%",height:tn(b),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:at.makeSvgSpan([],[w],n),minWidth:0,height:b}}else{var T=[],x=cct[l],[k,C,I]=x,_=I/1e3,A=k.length,U,F;if(A===1){var M=x[3];U=["hide-tail"],F=[M]}else if(A===2)U=["halfarrow-left","halfarrow-right"],F=["xMinYMin","xMaxYMin"];else if(A===3)U=["brace-left","brace-center","brace-right"],F=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+A+" children.");for(var V=0;V0&&(i.style.minWidth=tn(a)),i},hct=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=at.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new KF({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new KF({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new bm(c,{width:"100%",height:tn(o)});s=at.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=tn(o),s},vm={encloseSpan:hct,mathMLnode:uct,svgSpan:fct};function wr(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function gq(e){var t=h6(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function h6(e){return e&&(e.type==="atom"||Fut.hasOwnProperty(e.type))?e:null}var bq=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=wr(e.base,"accent"),n=r.base,e.base=n,i=Lut(Kr(e,t)),e.base=r):(r=wr(e,"accent"),n=r.base);var a=Kr(n,t.havingCrampedStyle()),s=r.isShifty&&ar.isCharacterBox(n),o=0;if(s){var l=ar.getBaseElem(n),c=Kr(l,t.havingCrampedStyle());o=jie(c).skew}var d=r.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=vm.svgSpan(r,t),p=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+tn(2*o)+")",marginLeft:tn(2*o)}:void 0}]},t);else{var b,v;r.label==="\\vec"?(b=at.staticSvg("vec",t),v=at.svgData.vec[1]):(b=at.makeOrd({mode:r.mode,text:r.label},t,"textord"),b=jie(b),b.italic=0,v=b.width,d&&(h+=b.depth)),p=at.makeSpan(["accent-body"],[b]);var S=r.label==="\\textcircled";S&&(p.classes.push("accent-full"),h=a.height);var w=o;S||(w-=v/2),p.style.left=tn(w),r.label==="\\textcircled"&&(p.style.top=".2em"),p=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:p}]},t)}var T=at.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},_be=(e,t)=>{var n=e.isStretchy?vm.mathMLnode(e.label):new Bt.MathNode("mo",[wd(e.label,e.mode)]),r=new Bt.MathNode("mover",[Ri(e.base,t),n]);return r.setAttribute("accent","true"),r},pct=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));fn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=II(t[0]),r=!pct.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:bq,mathmlBuilder:_be});fn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:bq,mathmlBuilder:_be});fn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Kr(e.base,t),r=vm.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=at.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return at.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=vm.mathMLnode(e.label),r=new Bt.MathNode("munder",[Ri(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var b3=e=>{var t=new Bt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};fn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=at.wrapFragment(Kr(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=at.wrapFragment(Kr(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=vm.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,c=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var d;if(s){var h=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]},t)}else d=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:o,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),at.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=vm.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=b3(Ri(e.body,t));if(e.below){var a=b3(Ri(e.below,t));r=new Bt.MathNode("munderover",[n,a,i])}else r=new Bt.MathNode("mover",[n,i])}else if(e.below){var s=b3(Ri(e.below,t));r=new Bt.MathNode("munder",[n,s])}else r=b3(),r=new Bt.MathNode("mover",[n,r]);return r}});var mct=at.makeSpan;function Abe(e,t){var n=vs(e.body,t,!0);return mct([e.mclass],n,t)}function Rbe(e,t){var n,r=du(e.body,t);return e.mclass==="minner"?n=new Bt.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Bt.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Bt.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}fn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:qa(i),isCharacterBox:ar.isCharacterBox(i)}},htmlBuilder:Abe,mathmlBuilder:Rbe});var p6=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};fn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:p6(t[0]),body:qa(t[1]),isCharacterBox:ar.isCharacterBox(t[1])}}});fn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=p6(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:qa(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:ar.isCharacterBox(l)}},htmlBuilder:Abe,mathmlBuilder:Rbe});fn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:p6(t[0]),body:qa(t[0])}},htmlBuilder(e,t){var n=vs(e.body,t,!0),r=at.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=du(e.body,t),r=new Bt.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var gct={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Zie=()=>({type:"styling",body:[],mode:"math",style:"display"}),Xie=e=>e.type==="textord"&&e.text==="@",bct=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function yct(e,t,n){var r=gct[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function vct(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Qt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(c)>-1)for(var h=0;h<2;h++){for(var p=!0,b=l+1;bAV=|." after @',s[l]);var v=yct(c,d,e),S={type:"styling",body:[v],mode:"math",style:"display"};r.push(S),o=Zie()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var w=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}fn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=at.wrapFragment(Kr(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=tn(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Bt.MathNode("mrow",[Ri(e.label,t)]);return n=new Bt.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Bt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});fn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=at.wrapFragment(Kr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Bt.MathNode("mrow",[Ri(e.fragment,t)])}});fn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=wr(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Qt("\\@char with invalid code point "+a);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var Ibe=(e,t)=>{var n=vs(e.body,t.withColor(e.color),!1);return at.makeFragment(n)},Dbe=(e,t)=>{var n=du(e.body,t.withColor(e.color)),r=new Bt.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};fn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=wr(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:qa(i)}},htmlBuilder:Ibe,mathmlBuilder:Dbe});fn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=wr(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:Ibe,mathmlBuilder:Dbe});fn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&wr(i,"size").value}},htmlBuilder(e,t){var n=at.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=tn(Oa(e.size,t)))),n},mathmlBuilder(e,t){var n=new Bt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",tn(Oa(e.size,t)))),n}});var nB={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Nbe=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Qt("Expected a control sequence",e);return t},Oct=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Pbe=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};fn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(nB[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=nB[r.text]),wr(t.parseFunction(),"internal");throw new Qt("Invalid token after macro prefix",r)}});fn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Qt("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Qt('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Qt('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Qt("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===nB[n]),{type:"internal",mode:t.mode}}});fn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Nbe(t.gullet.popToken());t.gullet.consumeSpaces();var i=Oct(t);return Pbe(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});fn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Nbe(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Pbe(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var e2=function(t,n,r){var i=Ui.math[t]&&Ui.math[t].replace,a=dq(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},yq=function(t,n,r,i){var a=r.havingBaseStyle(n),s=at.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Mbe=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=tn(a),t.height-=a,t.depth+=a},Sct=function(t,n,r,i,a,s){var o=at.makeSymbol(t,"Main-Regular",a,i),l=yq(o,n,i,s);return r&&Mbe(l,i,n),l},Ect=function(t,n,r,i){return at.makeSymbol(t,"Size"+n+"-Regular",r,i)},Lbe=function(t,n,r,i,a,s){var o=Ect(t,n,a,i),l=yq(at.makeSpan(["delimsizing","size"+n],[o],i),Xn.TEXT,i,s);return r&&Mbe(l,i,Xn.TEXT),l},iL=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=at.makeSpan(["delimsizinginner",i],[at.makeSpan([],[at.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},aL=function(t,n,r){var i=Lh["Size4-Regular"][t.charCodeAt(0)]?Lh["Size4-Regular"][t.charCodeAt(0)][4]:Lh["Size1-Regular"][t.charCodeAt(0)][4],a=new Ig("inner",_ut(t,Math.round(1e3*n))),s=new bm([a],{width:tn(i),height:tn(n),style:"width:"+tn(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=at.makeSvgSpan([],[s],r);return o.height=n,o.style.height=tn(n),o.style.width=tn(i),{type:"elem",elem:o}},rB=.008,y3={type:"kern",size:-1*rB},wct=["|","\\lvert","\\rvert","\\vert"],Tct=["\\|","\\lVert","\\rVert","\\Vert"],$be=function(t,n,r,i,a,s){var o,l,c,d,h="",p=0;o=c=d=t,l=null;var b="Size1-Regular";t==="\\uparrow"?c=d="⏐":t==="\\Uparrow"?c=d="‖":t==="\\downarrow"?o=c="⏐":t==="\\Downarrow"?o=c="‖":t==="\\updownarrow"?(o="\\uparrow",c="⏐",d="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",c="‖",d="\\Downarrow"):ar.contains(wct,t)?(c="∣",h="vert",p=333):ar.contains(Tct,t)?(c="∥",h="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",c="⎢",d="⎣",b="Size4-Regular",h="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",c="⎥",d="⎦",b="Size4-Regular",h="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(c=o="⎢",d="⎣",b="Size4-Regular",h="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",c=d="⎢",b="Size4-Regular",h="lceil",p=667):t==="\\rfloor"||t==="⌋"?(c=o="⎥",d="⎦",b="Size4-Regular",h="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",c=d="⎥",b="Size4-Regular",h="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",c="⎜",d="⎝",b="Size4-Regular",h="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",c="⎟",d="⎠",b="Size4-Regular",h="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",d="⎩",c="⎪",b="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",d="⎭",c="⎪",b="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",d="⎩",c="⎪",b="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",d="⎭",c="⎪",b="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",d="⎭",c="⎪",b="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",d="⎩",c="⎪",b="Size4-Regular");var v=e2(o,b,a),S=v.height+v.depth,w=e2(c,b,a),T=w.height+w.depth,x=e2(d,b,a),k=x.height+x.depth,C=0,I=1;if(l!==null){var _=e2(l,b,a);C=_.height+_.depth,I=2}var A=S+k+C,U=Math.max(0,Math.ceil((n-A)/(I*T))),F=A+U*I*T,M=i.fontMetrics().axisHeight;r&&(M*=i.sizeMultiplier);var V=F/2-M,Q=[];if(h.length>0){var X=F-S-k,Y=Math.round(F*1e3),W=Aut(h,Math.round(X*1e3)),ee=new Ig(h,W),J=(p/1e3).toFixed(3)+"em",K=(Y/1e3).toFixed(3)+"em",ne=new bm([ee],{width:J,height:K,viewBox:"0 0 "+p+" "+Y}),j=at.makeSvgSpan([],[ne],i);j.height=Y/1e3,j.style.width=J,j.style.height=K,Q.push({type:"elem",elem:j})}else{if(Q.push(iL(d,b,a)),Q.push(y3),l===null){var Ce=F-S-k+2*rB;Q.push(aL(c,Ce,i))}else{var ye=(F-S-k-C)/2+2*rB;Q.push(aL(c,ye,i)),Q.push(y3),Q.push(iL(l,b,a)),Q.push(y3),Q.push(aL(c,ye,i))}Q.push(y3),Q.push(iL(o,b,a))}var te=i.havingBaseStyle(Xn.TEXT),ve=at.makeVList({positionType:"bottom",positionData:V,children:Q},te);return yq(at.makeSpan(["delimsizing","mult"],[ve],te),Xn.TEXT,i,s)},sL=80,oL=.08,lL=function(t,n,r,i,a){var s=Cut(t,i,r),o=new Ig(t,s),l=new bm([o],{width:"400em",height:tn(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return at.makeSvgSpan(["hide-tail"],[l],a)},xct=function(t,n){var r=n.havingBaseSizing(),i=zbe("\\surd",t*r.sizeMultiplier,Ube,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,c=0,d=0,h;return i.type==="small"?(d=1e3+1e3*s+sL,t<1?a=1:t<1.4&&(a=.7),l=(1+s+oL)/a,c=(1+s)/a,o=lL("sqrtMain",l,d,s,n),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+sL)*U2[i.size],c=(U2[i.size]+s)/a,l=(U2[i.size]+s+oL)/a,o=lL("sqrtSize"+i.size,l,d,s,n),o.style.minWidth="1.02em",h=1/a):(l=t+s+oL,c=t+s,d=Math.floor(1e3*t+s)+sL,o=lL("sqrtTall",l,d,s,n),o.style.minWidth="0.742em",h=1.056),o.height=c,o.style.height=tn(l),{span:o,advanceWidth:h,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},Fbe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],kct=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Bbe=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],U2=[0,1.2,1.8,2.4,3],Cct=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ar.contains(Fbe,t)||ar.contains(Bbe,t))return Lbe(t,n,!1,r,i,a);if(ar.contains(kct,t))return $be(t,U2[n],!1,r,i,a);throw new Qt("Illegal delimiter: '"+t+"'")},_ct=[{type:"small",style:Xn.SCRIPTSCRIPT},{type:"small",style:Xn.SCRIPT},{type:"small",style:Xn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Act=[{type:"small",style:Xn.SCRIPTSCRIPT},{type:"small",style:Xn.SCRIPT},{type:"small",style:Xn.TEXT},{type:"stack"}],Ube=[{type:"small",style:Xn.SCRIPTSCRIPT},{type:"small",style:Xn.SCRIPT},{type:"small",style:Xn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Rct=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},zbe=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},jbe=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;ar.contains(Bbe,t)?o=_ct:ar.contains(Fbe,t)?o=Ube:o=Act;var l=zbe(t,n,o,i);return l.type==="small"?Sct(t,l.style,r,i,a,s):l.type==="large"?Lbe(t,l.size,r,i,a,s):$be(t,n,r,i,a,s)},Ict=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,d=Math.max(n-o,r+o),h=Math.max(d/500*l,2*d-c);return jbe(t,h,!0,i,a,s)},tm={sqrtImage:xct,sizedDelim:Cct,sizeToMaxHeight:U2,customSizedDelim:jbe,leftRightDelim:Ict},Kie={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Dct=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function m6(e,t){var n=h6(e);if(n&&ar.contains(Dct,n.text))return n;throw n?new Qt("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Qt("Invalid delimiter type '"+e.type+"'",e)}fn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=m6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Kie[e.funcName].size,mclass:Kie[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?at.makeSpan([e.mclass]):tm.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(wd(e.delim,e.mode));var n=new Bt.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=tn(tm.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Jie(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}fn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Qt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:m6(t[0],e).text,color:n}}});fn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=wr(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Jie(e);for(var n=vs(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Jie(e);var n=du(e.body,t);if(e.left!=="."){var r=new Bt.MathNode("mo",[wd(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Bt.MathNode("mo",[wd(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return pq(n)}});fn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e);if(!e.parser.leftrightDepth)throw new Qt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=rk(t,[]);else{n=tm.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?wd("|","text"):wd(e.delim,e.mode),r=new Bt.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var vq=(e,t)=>{var n=at.wrapFragment(Kr(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=ar.isCharacterBox(e.body);if(r==="sout")a=at.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=Oa({number:.6,unit:"pt"},t),c=Oa({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var h=n.height+n.depth+l+c;n.style.paddingLeft=tn(h/2+l);var p=Math.floor(1e3*h*i),b=xut(p),v=new bm([new Ig("phase",b)],{width:"400em",height:tn(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=at.makeSvgSpan(["hide-tail"],[v],t),a.style.height=tn(h),s=n.depth+l+c}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,w=0,T=0;/box/.test(r)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:T),w=S):r==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*T,w=Math.max(0,.25-n.depth)):(S=o?.2:0,w=S),a=vm.encloseSpan(n,r,S,w,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=tn(T)):r==="angl"&&T!==.049&&(a.style.borderTopWidth=tn(T),a.style.borderRightWidth=tn(T)),s=n.depth+w,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?at.makeSpan(["mord","cancel-lap"],[x],t):at.makeSpan(["mord"],[x],t)},Oq=(e,t)=>{var n=0,r=new Bt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ri(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};fn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=wr(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:vq,mathmlBuilder:Oq});fn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=wr(t[0],"color-token").color,s=wr(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:vq,mathmlBuilder:Oq});fn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});fn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:vq,mathmlBuilder:Oq});fn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Hbe={};function lp(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Qt("{"+e.envName+"} can be used only in display mode.")};function Sq(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Zg(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:c,emptySingleRow:d,maxNumCols:h,leqno:p}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var b=e.gullet.expandMacroAsText("\\arraystretch");if(b==null)s=1;else if(s=parseFloat(b),!s||s<0)throw new Qt("Invalid \\arraystretch: "+b)}e.gullet.beginGroup();var v=[],S=[v],w=[],T=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new Yh("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),T.push(eae(e));;){var I=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),I={type:"ordgroup",mode:e.mode,body:I},n&&(I={type:"styling",mode:e.mode,style:n,body:[I]}),v.push(I);var _=e.fetch().text;if(_==="&"){if(h&&v.length===h){if(c||o)throw new Qt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(_==="\\end"){C(),v.length===1&&I.type==="styling"&&I.body[0].body.length===0&&(S.length>1||!d)&&S.pop(),T.length0&&(k+=.25),c.push({pos:k,isDashed:lt[ge]})}for(C(s[0]),r=0;r0&&(V+=x,Alt))for(r=0;r=o)){var Pe=void 0;(i>0||t.hskipBeforeAndAfter)&&(Pe=ar.deflt(ye.pregap,p),Pe!==0&&(W=at.makeSpan(["arraycolsep"],[]),W.style.width=tn(Pe),Y.push(W)));var Me=[];for(r=0;r0){for(var Je=at.makeLineSpan("hline",n,d),Ye=at.makeLineSpan("hdashline",n,d),nt=[{type:"elem",elem:l,shift:0}];c.length>0;){var tt=c.pop(),ht=tt.pos-Q;tt.isDashed?nt.push({type:"elem",elem:Ye,shift:ht}):nt.push({type:"elem",elem:Je,shift:ht})}l=at.makeVList({positionType:"individualShift",children:nt},n)}if(J.length===0)return at.makeSpan(["mord"],[l],n);var _t=at.makeVList({positionType:"individualShift",children:J},n);return _t=at.makeSpan(["tag"],[_t],n),at.makeFragment([l,_t])},Nct={c:"center ",l:"left ",r:"right "},cp=function(t,n){for(var r=[],i=new Bt.MathNode("mtd",[],["mtr-glue"]),a=new Bt.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var v=t.cols,S="",w=!1,T=0,x=v.length;v[0].type==="separator"&&(p+="top ",T=1),v[v.length-1].type==="separator"&&(p+="bottom ",x-=1);for(var k=T;k0?"left ":"",p+=U[U.length-1].length>0?"right ":"";for(var F=1;F-1?"alignat":"align",a=t.envName==="split",s=Zg(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:Sq(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",h=0;h0&&b&&(w=1),r[v]={type:"align",align:S,pregap:w,postgap:0}}return s.colSeparationType=b?"align":"alignat",s};lp({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=h6(t[0]),r=n?[t[0]]:wr(t[0],"ordgroup").body,i=r.map(function(s){var o=gq(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Qt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Zg(e.parser,a,Eq(e.envName))},htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Qt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Zg(e.parser,r,Eq(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Zg(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=h6(t[0]),r=n?[t[0]]:wr(t[0],"ordgroup").body,i=r.map(function(s){var o=gq(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Qt("Unknown column alignment: "+l,s)});if(i.length>1)throw new Qt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Zg(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Qt("{subarray} can contain only one column");return a},htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Zg(e.parser,t,Eq(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Wbe,htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){ar.contains(["gather","gather*"],e.envName)&&g6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Sq(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Zg(e.parser,t,"display")},htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Wbe,htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){g6(e);var t={autoTag:Sq(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Zg(e.parser,t,"display")},htmlBuilder:up,mathmlBuilder:cp});lp({type:"array",names:["CD"],props:{numArgs:0},handler(e){return g6(e),vct(e.parser)},htmlBuilder:up,mathmlBuilder:cp});ce("\\nonumber","\\gdef\\@eqnsw{0}");ce("\\notag","\\nonumber");fn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Qt(e.funcName+" valid only within array environment")}});var tae=Hbe;fn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Qt("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Kr(e.body,r)},Ybe=(e,t)=>{var n=e.font,r=t.withFont(n);return Ri(e.body,r)},nae={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};fn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=II(t[0]),a=r;return a in nae&&(a=nae[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Qbe,mathmlBuilder:Ybe});fn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=ar.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:p6(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});fn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:Qbe,mathmlBuilder:Ybe});var qbe=(e,t)=>{var n=t;return e==="display"?n=n.id>=Xn.SCRIPT.id?n.text():Xn.DISPLAY:e==="text"&&n.size===Xn.DISPLAY.size?n=Xn.TEXT:e==="script"?n=Xn.SCRIPT:e==="scriptscript"&&(n=Xn.SCRIPTSCRIPT),n},wq=(e,t)=>{var n=qbe(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Kr(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?v=3*p:v=7*p,S=t.fontMetrics().denom1):(h>0?(b=t.fontMetrics().num2,v=p):(b=t.fontMetrics().num3,v=3*p),S=t.fontMetrics().denom2);var w;if(d){var x=t.fontMetrics().axisHeight;b-s.depth-(x+.5*h){var n=new Bt.MathNode("mfrac",[Ri(e.numer,t),Ri(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Oa(e.barSize,t);n.setAttribute("linethickness",tn(r))}var i=qbe(e.size,t.style);if(i.size!==t.style.size){n=new Bt.MathNode("mstyle",[n]);var a=i.size===Xn.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Bt.MathNode("mo",[new Bt.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Bt.MathNode("mo",[new Bt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return pq(s)}return n};fn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:c,barSize:null}},htmlBuilder:wq,mathmlBuilder:Tq});fn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});fn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var rae=["display","text","script","scriptscript"],iae=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};fn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=II(t[0]),s=a.type==="atom"&&a.family==="open"?iae(a.text):null,o=II(t[1]),l=o.type==="atom"&&o.family==="close"?iae(o.text):null,c=wr(t[2],"size"),d,h=null;c.isBlank?d=!0:(h=c.value,d=h.number>0);var p="auto",b=t[3];if(b.type==="ordgroup"){if(b.body.length>0){var v=wr(b.body[0],"textord");p=rae[Number(v.text)]}}else b=wr(b,"textord"),p=rae[Number(b.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l,size:p}},htmlBuilder:wq,mathmlBuilder:Tq});fn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:wr(t[0],"size").value,token:i}}});fn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=cut(wr(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:wq,mathmlBuilder:Tq});var Gbe=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Kr(e.sup,t.havingStyle(n.sup()),t):Kr(e.sub,t.havingStyle(n.sub()),t),i=wr(e.base,"horizBrace")):i=wr(e,"horizBrace");var a=Kr(i.base,t.havingBaseStyle(Xn.DISPLAY)),s=vm.svgSpan(i,t),o;if(i.isOver?(o=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=at.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=at.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=at.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return at.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},Pct=(e,t)=>{var n=vm.mathMLnode(e.label);return new Bt.MathNode(e.isOver?"mover":"munder",[Ri(e.base,t),n])};fn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Gbe,mathmlBuilder:Pct});fn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=wr(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:qa(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=vs(e.body,t,!1);return at.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Dg(e.body,t);return n instanceof id||(n=new id("mrow",[n])),n.setAttribute("href",e.href),n}});fn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=wr(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=wr(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),d=0;d{var n=vs(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=at.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Dg(e.body,t)});fn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:qa(t[0]),mathml:qa(t[1])}},htmlBuilder:(e,t)=>{var n=vs(e.html,t,!1);return at.makeFragment(n)},mathmlBuilder:(e,t)=>Dg(e.mathml,t)});var uL=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Qt("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!pbe(r))throw new Qt("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};fn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=wr(n[0],"raw").string,c=l.split(","),d=0;d{var n=Oa(e.height,t),r=0;e.totalheight.number>0&&(r=Oa(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Oa(e.width,t));var a={height:tn(n+r)};i>0&&(a.width=tn(i)),r>0&&(a.verticalAlign=tn(-r));var s=new Put(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Bt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Oa(e.height,t),i=0;if(e.totalheight.number>0&&(i=Oa(e.totalheight,t)-r,n.setAttribute("valign",tn(-i))),n.setAttribute("height",tn(r+i)),e.width.number>0){var a=Oa(e.width,t);n.setAttribute("width",tn(a))}return n.setAttribute("src",e.src),n}});fn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=wr(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return at.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Oa(e.dimension,t);return new Bt.SpaceNode(n)}});fn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=at.makeSpan([],[Kr(e.body,t)]),n=at.makeSpan(["inner"],[n],t)):n=at.makeSpan(["inner"],[Kr(e.body,t)]);var r=at.makeSpan(["fix"],[]),i=at.makeSpan([e.alignment],[n,r],t),a=at.makeSpan(["strut"]);return a.style.height=tn(i.height+i.depth),i.depth&&(a.style.verticalAlign=tn(-i.depth)),i.children.unshift(a),i=at.makeSpan(["thinbox"],[i],t),at.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Bt.MathNode("mpadded",[Ri(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});fn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});fn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Qt("Mismatched "+e.funcName)}});var aae=(e,t)=>{switch(t.style.size){case Xn.DISPLAY.size:return e.display;case Xn.TEXT.size:return e.text;case Xn.SCRIPT.size:return e.script;case Xn.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};fn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:qa(t[0]),text:qa(t[1]),script:qa(t[2]),scriptscript:qa(t[3])}},htmlBuilder:(e,t)=>{var n=aae(e,t),r=vs(n,t,!1);return at.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=aae(e,t);return Dg(n,t)}});var Zbe=(e,t,n,r,i,a,s)=>{e=at.makeSpan([],[e]);var o=n&&ar.isCharacterBox(n),l,c;if(t){var d=Kr(t,r.havingStyle(i.sup()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var h=Kr(n,r.havingStyle(i.sub()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-h.height)}}var p;if(c&&l){var b=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;p=at.makeVList({positionType:"bottom",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tn(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:tn(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var v=e.height-s;p=at.makeVList({positionType:"top",positionData:v,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tn(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(c){var S=e.depth+s;p=at.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:tn(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var w=[p];if(l&&a!==0&&!o){var T=at.makeSpan(["mspace"],[],r);T.style.marginRight=tn(a),w.unshift(T)}return at.makeSpan(["mop","op-limits"],w,r)},Xbe=["\\smallint"],DE=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=wr(e.base,"op"),i=!0):a=wr(e,"op");var s=t.style,o=!1;s.size===Xn.DISPLAY.size&&a.symbol&&!ar.contains(Xbe,a.name)&&(o=!0);var l;if(a.symbol){var c=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=at.makeSymbol(a.name,c,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,p=at.staticSvg(d+"Size"+(o?"2":"1"),t);l=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(a.body){var b=vs(a.body,t,!0);b.length===1&&b[0]instanceof Ed?(l=b[0],l.classes[0]="mop"):l=at.makeSpan(["mop"],b,t)}else{for(var v=[],S=1;S{var n;if(e.symbol)n=new id("mo",[wd(e.name,e.mode)]),ar.contains(Xbe,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new id("mo",du(e.body,t));else{n=new id("mi",[new B2(e.name.slice(1))]);var r=new id("mo",[wd("⁡","text")]);e.parentIsSupSub?n=new id("mrow",[n,r]):n=xbe([n,r])}return n},Mct={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};fn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Mct[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:DE,mathmlBuilder:MC});fn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:qa(r)}},htmlBuilder:DE,mathmlBuilder:MC});var Lct={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};fn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:DE,mathmlBuilder:MC});fn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:DE,mathmlBuilder:MC});fn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Lct[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:DE,mathmlBuilder:MC});var Kbe=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=wr(e.base,"operatorname"),i=!0):a=wr(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var p=h.text;return typeof p=="string"?{type:"textord",mode:h.mode,text:p}:h}),l=vs(o,t.withFont("mathrm"),!0),c=0;c{for(var n=du(e.body,t.withFont("mathrm")),r=!0,i=0;id.toText()).join("");n=[new Bt.TextNode(o)]}var l=new Bt.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new Bt.MathNode("mo",[wd("⁡","text")]);return e.parentIsSupSub?new Bt.MathNode("mrow",[l,c]):Bt.newDocumentFragment([l,c])};fn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:qa(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Kbe,mathmlBuilder:$ct});ce("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");by({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?at.makeFragment(vs(e.body,t,!1)):at.makeSpan(["mord"],vs(e.body,t,!0),t)},mathmlBuilder(e,t){return Dg(e.body,t,!0)}});fn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Kr(e.body,t.havingCrampedStyle()),r=at.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return at.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Bt.MathNode("mo",[new Bt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Bt.MathNode("mover",[Ri(e.body,t),n]);return r.setAttribute("accent","true"),r}});fn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:qa(r)}},htmlBuilder:(e,t)=>{var n=vs(e.body,t.withPhantom(),!1);return at.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=du(e.body,t);return new Bt.MathNode("mphantom",n)}});fn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=at.makeSpan([],[Kr(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=du(qa(e.body),t),r=new Bt.MathNode("mphantom",n),i=new Bt.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});fn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=at.makeSpan(["inner"],[Kr(e.body,t.withPhantom())]),r=at.makeSpan(["fix"],[]);return at.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=du(qa(e.body),t),r=new Bt.MathNode("mphantom",n),i=new Bt.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});fn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=wr(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Kr(e.body,t),r=Oa(e.dy,t);return at.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Bt.MathNode("mpadded",[Ri(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});fn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});fn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=wr(t[0],"size"),s=wr(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&wr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=at.makeSpan(["mord","rule"],[],t),r=Oa(e.width,t),i=Oa(e.height,t),a=e.shift?Oa(e.shift,t):0;return n.style.borderRightWidth=tn(r),n.style.borderTopWidth=tn(i),n.style.bottom=tn(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Oa(e.width,t),r=Oa(e.height,t),i=e.shift?Oa(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Bt.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",tn(n)),s.setAttribute("height",tn(r));var o=new Bt.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",tn(i)):(o.setAttribute("height",tn(i)),o.setAttribute("depth",tn(-i))),o.setAttribute("voffset",tn(i)),o}});function Jbe(e,t,n){for(var r=vs(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return Jbe(e.body,n,t)};fn({type:"sizing",names:sae,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:sae.indexOf(r)+1,body:a}},htmlBuilder:Fct,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=du(e.body,n),i=new Bt.MathNode("mstyle",r);return i.setAttribute("mathsize",tn(n.sizeMultiplier)),i}});fn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&wr(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=at.makeSpan([],[Kr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Bt.MathNode("mpadded",[Ri(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});fn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Kr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=at.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+h-n.height-n.depth)/2);var p=l.height-n.height-s-c;n.style.paddingLeft=tn(d);var b=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var v=t.havingStyle(Xn.SCRIPTSCRIPT),S=Kr(e.index,v,t),w=.6*(b.height-b.depth),T=at.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:S}]},t),x=at.makeSpan(["root"],[T]);return at.makeSpan(["mord","sqrt"],[x,b],t)}else return at.makeSpan(["mord","sqrt"],[b],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Bt.MathNode("mroot",[Ri(n,t),Ri(r,t)]):new Bt.MathNode("msqrt",[Ri(n,t)])}});var oae={display:Xn.DISPLAY,text:Xn.TEXT,script:Xn.SCRIPT,scriptscript:Xn.SCRIPTSCRIPT};fn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=oae[e.style],r=t.havingStyle(n).withFont("");return Jbe(e.body,r,t)},mathmlBuilder(e,t){var n=oae[e.style],r=t.havingStyle(n),i=du(e.body,r),a=new Bt.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Bct=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Xn.DISPLAY.size||r.alwaysHandleSupSub);return i?DE:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Xn.DISPLAY.size||r.limits);return a?Kbe:null}else{if(r.type==="accent")return ar.isCharacterBox(r.base)?bq:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?Gbe:null}else return null}else return null};by({type:"supsub",htmlBuilder(e,t){var n=Bct(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Kr(r,t),o,l,c=t.fontMetrics(),d=0,h=0,p=r&&ar.isCharacterBox(r);if(i){var b=t.havingStyle(t.style.sup());o=Kr(i,b,t),p||(d=s.height-b.fontMetrics().supDrop*b.sizeMultiplier/t.sizeMultiplier)}if(a){var v=t.havingStyle(t.style.sub());l=Kr(a,v,t),p||(h=s.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Xn.DISPLAY?S=c.sup1:t.style.cramped?S=c.sup3:S=c.sup2;var w=t.sizeMultiplier,T=tn(.5/c.ptPerEm/w),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Ed||k)&&(x=tn(-s.italic))}var C;if(o&&l){d=Math.max(d,S,o.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var I=c.defaultRuleThickness,_=4*I;if(d-o.depth-(l.height-h)<_){h=_-(d-o.depth)+l.height;var A=.8*c.xHeight-(d-o.depth);A>0&&(d+=A,h-=A)}var U=[{type:"elem",elem:l,shift:h,marginRight:T,marginLeft:x},{type:"elem",elem:o,shift:-d,marginRight:T}];C=at.makeVList({positionType:"individualShift",children:U},t)}else if(l){h=Math.max(h,c.sub1,l.height-.8*c.xHeight);var F=[{type:"elem",elem:l,marginLeft:x,marginRight:T}];C=at.makeVList({positionType:"shift",positionData:h,children:F},t)}else if(o)d=Math.max(d,S,o.depth+.25*c.xHeight),C=at.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:T}]},t);else throw new Error("supsub must have either sup or sub.");var M=eB(s,"right")||"mord";return at.makeSpan([M],[s,at.makeSpan(["msupsub"],[C])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ri(e.base,t)];e.sub&&a.push(Ri(e.sub,t)),e.sup&&a.push(Ri(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===Xn.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===Xn.DISPLAY||c.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Xn.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Xn.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Xn.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Xn.DISPLAY)?s="mover":s="msup"}return new Bt.MathNode(s,a)}});by({type:"atom",htmlBuilder(e,t){return at.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Bt.MathNode("mo",[wd(e.text,e.mode)]);if(e.family==="bin"){var r=mq(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var eye={mi:"italic",mn:"normal",mtext:"normal"};by({type:"mathord",htmlBuilder(e,t){return at.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Bt.MathNode("mi",[wd(e.text,e.mode,t)]),r=mq(e,t)||"italic";return r!==eye[n.type]&&n.setAttribute("mathvariant",r),n}});by({type:"textord",htmlBuilder(e,t){return at.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=wd(e.text,e.mode,t),r=mq(e,t)||"normal",i;return e.mode==="text"?i=new Bt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Bt.MathNode("mn",[n]):e.text==="\\prime"?i=new Bt.MathNode("mo",[n]):i=new Bt.MathNode("mi",[n]),r!==eye[i.type]&&i.setAttribute("mathvariant",r),i}});var cL={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},dL={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};by({type:"spacing",htmlBuilder(e,t){if(dL.hasOwnProperty(e.text)){var n=dL[e.text].className||"";if(e.mode==="text"){var r=at.makeOrd(e,t,"textord");return r.classes.push(n),r}else return at.makeSpan(["mspace",n],[at.mathsym(e.text,e.mode,t)],t)}else{if(cL.hasOwnProperty(e.text))return at.makeSpan(["mspace",cL[e.text]],[],t);throw new Qt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(dL.hasOwnProperty(e.text))n=new Bt.MathNode("mtext",[new Bt.TextNode(" ")]);else{if(cL.hasOwnProperty(e.text))return new Bt.MathNode("mspace");throw new Qt('Unknown type of space "'+e.text+'"')}return n}});var lae=()=>{var e=new Bt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};by({type:"tag",mathmlBuilder(e,t){var n=new Bt.MathNode("mtable",[new Bt.MathNode("mtr",[lae(),new Bt.MathNode("mtd",[Dg(e.body,t)]),lae(),new Bt.MathNode("mtd",[Dg(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var uae={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},cae={"\\textbf":"textbf","\\textmd":"textmd"},Uct={"\\textit":"textit","\\textup":"textup"},dae=(e,t)=>{var n=e.font;return n?uae[n]?t.withTextFontFamily(uae[n]):cae[n]?t.withTextFontWeight(cae[n]):t.withTextFontShape(Uct[n]):t};fn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:qa(i),font:r}},htmlBuilder(e,t){var n=dae(e,t),r=vs(e.body,n,!0);return at.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=dae(e,t);return Dg(e.body,n)}});fn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Kr(e.body,t),r=at.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=at.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return at.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Bt.MathNode("mo",[new Bt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Bt.MathNode("munder",[Ri(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});fn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Kr(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return at.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Bt.MathNode("mpadded",[Ri(e.body,t)],["vcenter"])}});fn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Qt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=fae(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),G0=wbe,tye=`[ \r + ]`,zct="\\\\[a-zA-Z@]+",jct="\\\\[^\uD800-\uDFFF]",Hct="("+zct+")"+tye+"*",Vct=`\\\\( |[ \r ]+ -?)[ \r ]*`,iB="[̀-ͯ]",qut=new RegExp(iB+"+$"),Gut="("+Bbe+"+)|"+(Yut+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(iB+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(iB+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Qut)+("|"+Wut+")");class eae{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(Gut,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Yh("EOF",new Xu(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Ht("Unexpected character: '"+t[n]+"'",new Yh(t[n],new Xu(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Yh(i,new Xu(this,n,this.tokenRegex.lastIndex))}}class Zut{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ht("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var Xut=_be;ce("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ce("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ce("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ce("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ce("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ce("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ce("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var tae={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ce("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ht("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=tae[t.text],r==null||r>=n)throw new Ht("Invalid base-"+n+" digit "+t.text);for(var i;(i=tae[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Ht("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Ht("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Ht("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Ht("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};ce("\\newcommand",e=>Sq(e,!1,!0));ce("\\renewcommand",e=>Sq(e,!0,!1));ce("\\providecommand",e=>Sq(e,!0,!0));ce("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});ce("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});ce("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),G0[n],Ui.math[n],Ui.text[n]),""});ce("\\bgroup","{");ce("\\egroup","}");ce("~","\\nobreakspace");ce("\\lq","`");ce("\\rq","'");ce("\\aa","\\r a");ce("\\AA","\\r A");ce("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ce("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ce("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ce("ℬ","\\mathscr{B}");ce("ℰ","\\mathscr{E}");ce("ℱ","\\mathscr{F}");ce("ℋ","\\mathscr{H}");ce("ℐ","\\mathscr{I}");ce("ℒ","\\mathscr{L}");ce("ℳ","\\mathscr{M}");ce("ℛ","\\mathscr{R}");ce("ℭ","\\mathfrak{C}");ce("ℌ","\\mathfrak{H}");ce("ℨ","\\mathfrak{Z}");ce("\\Bbbk","\\Bbb{k}");ce("·","\\cdotp");ce("\\llap","\\mathllap{\\textrm{#1}}");ce("\\rlap","\\mathrlap{\\textrm{#1}}");ce("\\clap","\\mathclap{\\textrm{#1}}");ce("\\mathstrut","\\vphantom{(}");ce("\\underbar","\\underline{\\text{#1}}");ce("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ce("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ce("\\ne","\\neq");ce("≠","\\neq");ce("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ce("∉","\\notin");ce("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ce("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ce("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ce("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ce("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ce("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ce("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ce("⟂","\\perp");ce("‼","\\mathclose{!\\mkern-0.8mu!}");ce("∌","\\notni");ce("⌜","\\ulcorner");ce("⌝","\\urcorner");ce("⌞","\\llcorner");ce("⌟","\\lrcorner");ce("©","\\copyright");ce("®","\\textregistered");ce("️","\\textregistered");ce("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ce("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ce("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ce("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ce("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");ce("⋮","\\vdots");ce("\\varGamma","\\mathit{\\Gamma}");ce("\\varDelta","\\mathit{\\Delta}");ce("\\varTheta","\\mathit{\\Theta}");ce("\\varLambda","\\mathit{\\Lambda}");ce("\\varXi","\\mathit{\\Xi}");ce("\\varPi","\\mathit{\\Pi}");ce("\\varSigma","\\mathit{\\Sigma}");ce("\\varUpsilon","\\mathit{\\Upsilon}");ce("\\varPhi","\\mathit{\\Phi}");ce("\\varPsi","\\mathit{\\Psi}");ce("\\varOmega","\\mathit{\\Omega}");ce("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ce("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ce("\\boxed","\\fbox{$\\displaystyle{#1}$}");ce("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ce("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ce("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var nae={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ce("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in nae?t=nae[n]:(n.slice(0,4)==="\\not"||n in Ui.math&&ar.contains(["bin","rel"],Ui.math[n].group))&&(t="\\dotsb"),t});var Eq={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ce("\\dotso",function(e){var t=e.future().text;return t in Eq?"\\ldots\\,":"\\ldots"});ce("\\dotsc",function(e){var t=e.future().text;return t in Eq&&t!==","?"\\ldots\\,":"\\ldots"});ce("\\cdots",function(e){var t=e.future().text;return t in Eq?"\\@cdots\\,":"\\@cdots"});ce("\\dotsb","\\cdots");ce("\\dotsm","\\cdots");ce("\\dotsi","\\!\\cdots");ce("\\dotsx","\\ldots\\,");ce("\\DOTSI","\\relax");ce("\\DOTSB","\\relax");ce("\\DOTSX","\\relax");ce("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ce("\\,","\\tmspace+{3mu}{.1667em}");ce("\\thinspace","\\,");ce("\\>","\\mskip{4mu}");ce("\\:","\\tmspace+{4mu}{.2222em}");ce("\\medspace","\\:");ce("\\;","\\tmspace+{5mu}{.2777em}");ce("\\thickspace","\\;");ce("\\!","\\tmspace-{3mu}{.1667em}");ce("\\negthinspace","\\!");ce("\\negmedspace","\\tmspace-{4mu}{.2222em}");ce("\\negthickspace","\\tmspace-{5mu}{.277em}");ce("\\enspace","\\kern.5em ");ce("\\enskip","\\hskip.5em\\relax");ce("\\quad","\\hskip1em\\relax");ce("\\qquad","\\hskip2em\\relax");ce("\\tag","\\@ifstar\\tag@literal\\tag@paren");ce("\\tag@paren","\\tag@literal{({#1})}");ce("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ht("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ce("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ce("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ce("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ce("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ce("\\newline","\\\\\\relax");ce("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ube=tn(Lh["Main-Regular"][84][1]-.7*Lh["Main-Regular"][65][1]);ce("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ube+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ce("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ube+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ce("\\hspace","\\@ifstar\\@hspacer\\@hspace");ce("\\@hspace","\\hskip #1\\relax");ce("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ce("\\ordinarycolon",":");ce("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ce("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ce("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ce("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ce("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ce("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ce("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ce("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ce("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ce("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ce("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ce("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ce("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ce("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ce("∷","\\dblcolon");ce("∹","\\eqcolon");ce("≔","\\coloneqq");ce("≕","\\eqqcolon");ce("⩴","\\Coloneqq");ce("\\ratio","\\vcentcolon");ce("\\coloncolon","\\dblcolon");ce("\\colonequals","\\coloneqq");ce("\\coloncolonequals","\\Coloneqq");ce("\\equalscolon","\\eqqcolon");ce("\\equalscoloncolon","\\Eqqcolon");ce("\\colonminus","\\coloneq");ce("\\coloncolonminus","\\Coloneq");ce("\\minuscolon","\\eqcolon");ce("\\minuscoloncolon","\\Eqcolon");ce("\\coloncolonapprox","\\Colonapprox");ce("\\coloncolonsim","\\Colonsim");ce("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ce("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ce("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ce("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ce("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ce("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ce("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ce("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ce("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ce("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ce("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ce("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ce("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ce("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ce("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ce("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ce("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ce("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ce("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ce("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ce("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ce("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ce("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ce("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ce("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ce("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ce("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ce("\\imath","\\html@mathml{\\@imath}{ı}");ce("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ce("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ce("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ce("⟦","\\llbracket");ce("⟧","\\rrbracket");ce("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ce("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ce("⦃","\\lBrace");ce("⦄","\\rBrace");ce("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ce("⦵","\\minuso");ce("\\darr","\\downarrow");ce("\\dArr","\\Downarrow");ce("\\Darr","\\Downarrow");ce("\\lang","\\langle");ce("\\rang","\\rangle");ce("\\uarr","\\uparrow");ce("\\uArr","\\Uparrow");ce("\\Uarr","\\Uparrow");ce("\\N","\\mathbb{N}");ce("\\R","\\mathbb{R}");ce("\\Z","\\mathbb{Z}");ce("\\alef","\\aleph");ce("\\alefsym","\\aleph");ce("\\Alpha","\\mathrm{A}");ce("\\Beta","\\mathrm{B}");ce("\\bull","\\bullet");ce("\\Chi","\\mathrm{X}");ce("\\clubs","\\clubsuit");ce("\\cnums","\\mathbb{C}");ce("\\Complex","\\mathbb{C}");ce("\\Dagger","\\ddagger");ce("\\diamonds","\\diamondsuit");ce("\\empty","\\emptyset");ce("\\Epsilon","\\mathrm{E}");ce("\\Eta","\\mathrm{H}");ce("\\exist","\\exists");ce("\\harr","\\leftrightarrow");ce("\\hArr","\\Leftrightarrow");ce("\\Harr","\\Leftrightarrow");ce("\\hearts","\\heartsuit");ce("\\image","\\Im");ce("\\infin","\\infty");ce("\\Iota","\\mathrm{I}");ce("\\isin","\\in");ce("\\Kappa","\\mathrm{K}");ce("\\larr","\\leftarrow");ce("\\lArr","\\Leftarrow");ce("\\Larr","\\Leftarrow");ce("\\lrarr","\\leftrightarrow");ce("\\lrArr","\\Leftrightarrow");ce("\\Lrarr","\\Leftrightarrow");ce("\\Mu","\\mathrm{M}");ce("\\natnums","\\mathbb{N}");ce("\\Nu","\\mathrm{N}");ce("\\Omicron","\\mathrm{O}");ce("\\plusmn","\\pm");ce("\\rarr","\\rightarrow");ce("\\rArr","\\Rightarrow");ce("\\Rarr","\\Rightarrow");ce("\\real","\\Re");ce("\\reals","\\mathbb{R}");ce("\\Reals","\\mathbb{R}");ce("\\Rho","\\mathrm{P}");ce("\\sdot","\\cdot");ce("\\sect","\\S");ce("\\spades","\\spadesuit");ce("\\sub","\\subset");ce("\\sube","\\subseteq");ce("\\supe","\\supseteq");ce("\\Tau","\\mathrm{T}");ce("\\thetasym","\\vartheta");ce("\\weierp","\\wp");ce("\\Zeta","\\mathrm{Z}");ce("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ce("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ce("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ce("\\bra","\\mathinner{\\langle{#1}|}");ce("\\ket","\\mathinner{|{#1}\\rangle}");ce("\\braket","\\mathinner{\\langle{#1}\\rangle}");ce("\\Bra","\\left\\langle#1\\right|");ce("\\Ket","\\left|#1\\right\\rangle");var zbe=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=h=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var b=h;if(!h&&i.length){var v=p.future();v.text==="|"&&(p.popToken(),b=!0)}return{tokens:b?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,d=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};ce("\\bra@ket",zbe(!1));ce("\\bra@set",zbe(!0));ce("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ce("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ce("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ce("\\angln","{\\angl n}");ce("\\blue","\\textcolor{##6495ed}{#1}");ce("\\orange","\\textcolor{##ffa500}{#1}");ce("\\pink","\\textcolor{##ff00af}{#1}");ce("\\red","\\textcolor{##df0030}{#1}");ce("\\green","\\textcolor{##28ae7b}{#1}");ce("\\gray","\\textcolor{gray}{#1}");ce("\\purple","\\textcolor{##9d38bd}{#1}");ce("\\blueA","\\textcolor{##ccfaff}{#1}");ce("\\blueB","\\textcolor{##80f6ff}{#1}");ce("\\blueC","\\textcolor{##63d9ea}{#1}");ce("\\blueD","\\textcolor{##11accd}{#1}");ce("\\blueE","\\textcolor{##0c7f99}{#1}");ce("\\tealA","\\textcolor{##94fff5}{#1}");ce("\\tealB","\\textcolor{##26edd5}{#1}");ce("\\tealC","\\textcolor{##01d1c1}{#1}");ce("\\tealD","\\textcolor{##01a995}{#1}");ce("\\tealE","\\textcolor{##208170}{#1}");ce("\\greenA","\\textcolor{##b6ffb0}{#1}");ce("\\greenB","\\textcolor{##8af281}{#1}");ce("\\greenC","\\textcolor{##74cf70}{#1}");ce("\\greenD","\\textcolor{##1fab54}{#1}");ce("\\greenE","\\textcolor{##0d923f}{#1}");ce("\\goldA","\\textcolor{##ffd0a9}{#1}");ce("\\goldB","\\textcolor{##ffbb71}{#1}");ce("\\goldC","\\textcolor{##ff9c39}{#1}");ce("\\goldD","\\textcolor{##e07d10}{#1}");ce("\\goldE","\\textcolor{##a75a05}{#1}");ce("\\redA","\\textcolor{##fca9a9}{#1}");ce("\\redB","\\textcolor{##ff8482}{#1}");ce("\\redC","\\textcolor{##f9685d}{#1}");ce("\\redD","\\textcolor{##e84d39}{#1}");ce("\\redE","\\textcolor{##bc2612}{#1}");ce("\\maroonA","\\textcolor{##ffbde0}{#1}");ce("\\maroonB","\\textcolor{##ff92c6}{#1}");ce("\\maroonC","\\textcolor{##ed5fa6}{#1}");ce("\\maroonD","\\textcolor{##ca337c}{#1}");ce("\\maroonE","\\textcolor{##9e034e}{#1}");ce("\\purpleA","\\textcolor{##ddd7ff}{#1}");ce("\\purpleB","\\textcolor{##c6b9fc}{#1}");ce("\\purpleC","\\textcolor{##aa87ff}{#1}");ce("\\purpleD","\\textcolor{##7854ab}{#1}");ce("\\purpleE","\\textcolor{##543b78}{#1}");ce("\\mintA","\\textcolor{##f5f9e8}{#1}");ce("\\mintB","\\textcolor{##edf2df}{#1}");ce("\\mintC","\\textcolor{##e0e5cc}{#1}");ce("\\grayA","\\textcolor{##f6f7f7}{#1}");ce("\\grayB","\\textcolor{##f0f1f2}{#1}");ce("\\grayC","\\textcolor{##e3e5e6}{#1}");ce("\\grayD","\\textcolor{##d6d8da}{#1}");ce("\\grayE","\\textcolor{##babec2}{#1}");ce("\\grayF","\\textcolor{##888d93}{#1}");ce("\\grayG","\\textcolor{##626569}{#1}");ce("\\grayH","\\textcolor{##3b3e40}{#1}");ce("\\grayI","\\textcolor{##21242c}{#1}");ce("\\kaBlue","\\textcolor{##314453}{#1}");ce("\\kaGreen","\\textcolor{##71B307}{#1}");var jbe={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Kut{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new Zut(Xut,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new eae(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Yh("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Ht("Extra }",a)}else if(a.text==="EOF")throw new Ht("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ht("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Ht("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Ht("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Ht("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Yh(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new eae(i,this.settings),l=[],c=o.lex();c.text!=="EOF";)l.push(c),c=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(t){return this.macros.has(t)||G0.hasOwnProperty(t)||Ui.math.hasOwnProperty(t)||Ui.text.hasOwnProperty(t)||jbe.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:G0.hasOwnProperty(t)&&!G0[t].primitive}}var rae=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,h3=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),fL={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},iae={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class nk{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Kut(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Ht("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Yh("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(nk.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&G0[i.text]&&G0[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ui[this.mode][n].group,l=Xu.range(t),c;if(Ult.hasOwnProperty(o)){var d=o;c={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else c={type:o,mode:this.mode,loc:l,text:n};s=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(X1e(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:Xu.range(t),text:n};else return null;if(this.consume(),a)for(var h=0;h0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var qct=Vbe;ce("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ce("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ce("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ce("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ce("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ce("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ce("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var pae={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ce("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Qt("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=pae[t.text],r==null||r>=n)throw new Qt("Invalid base-"+n+" digit "+t.text);for(var i;(i=pae[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Qt("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Qt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Qt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Qt("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};ce("\\newcommand",e=>xq(e,!1,!0));ce("\\renewcommand",e=>xq(e,!0,!1));ce("\\providecommand",e=>xq(e,!0,!0));ce("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});ce("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});ce("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),G0[n],Ui.math[n],Ui.text[n]),""});ce("\\bgroup","{");ce("\\egroup","}");ce("~","\\nobreakspace");ce("\\lq","`");ce("\\rq","'");ce("\\aa","\\r a");ce("\\AA","\\r A");ce("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ce("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ce("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ce("ℬ","\\mathscr{B}");ce("ℰ","\\mathscr{E}");ce("ℱ","\\mathscr{F}");ce("ℋ","\\mathscr{H}");ce("ℐ","\\mathscr{I}");ce("ℒ","\\mathscr{L}");ce("ℳ","\\mathscr{M}");ce("ℛ","\\mathscr{R}");ce("ℭ","\\mathfrak{C}");ce("ℌ","\\mathfrak{H}");ce("ℨ","\\mathfrak{Z}");ce("\\Bbbk","\\Bbb{k}");ce("·","\\cdotp");ce("\\llap","\\mathllap{\\textrm{#1}}");ce("\\rlap","\\mathrlap{\\textrm{#1}}");ce("\\clap","\\mathclap{\\textrm{#1}}");ce("\\mathstrut","\\vphantom{(}");ce("\\underbar","\\underline{\\text{#1}}");ce("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ce("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ce("\\ne","\\neq");ce("≠","\\neq");ce("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ce("∉","\\notin");ce("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ce("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ce("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ce("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ce("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ce("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ce("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ce("⟂","\\perp");ce("‼","\\mathclose{!\\mkern-0.8mu!}");ce("∌","\\notni");ce("⌜","\\ulcorner");ce("⌝","\\urcorner");ce("⌞","\\llcorner");ce("⌟","\\lrcorner");ce("©","\\copyright");ce("®","\\textregistered");ce("️","\\textregistered");ce("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ce("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ce("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ce("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ce("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");ce("⋮","\\vdots");ce("\\varGamma","\\mathit{\\Gamma}");ce("\\varDelta","\\mathit{\\Delta}");ce("\\varTheta","\\mathit{\\Theta}");ce("\\varLambda","\\mathit{\\Lambda}");ce("\\varXi","\\mathit{\\Xi}");ce("\\varPi","\\mathit{\\Pi}");ce("\\varSigma","\\mathit{\\Sigma}");ce("\\varUpsilon","\\mathit{\\Upsilon}");ce("\\varPhi","\\mathit{\\Phi}");ce("\\varPsi","\\mathit{\\Psi}");ce("\\varOmega","\\mathit{\\Omega}");ce("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ce("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ce("\\boxed","\\fbox{$\\displaystyle{#1}$}");ce("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ce("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ce("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var mae={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ce("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in mae?t=mae[n]:(n.slice(0,4)==="\\not"||n in Ui.math&&ar.contains(["bin","rel"],Ui.math[n].group))&&(t="\\dotsb"),t});var kq={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ce("\\dotso",function(e){var t=e.future().text;return t in kq?"\\ldots\\,":"\\ldots"});ce("\\dotsc",function(e){var t=e.future().text;return t in kq&&t!==","?"\\ldots\\,":"\\ldots"});ce("\\cdots",function(e){var t=e.future().text;return t in kq?"\\@cdots\\,":"\\@cdots"});ce("\\dotsb","\\cdots");ce("\\dotsm","\\cdots");ce("\\dotsi","\\!\\cdots");ce("\\dotsx","\\ldots\\,");ce("\\DOTSI","\\relax");ce("\\DOTSB","\\relax");ce("\\DOTSX","\\relax");ce("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ce("\\,","\\tmspace+{3mu}{.1667em}");ce("\\thinspace","\\,");ce("\\>","\\mskip{4mu}");ce("\\:","\\tmspace+{4mu}{.2222em}");ce("\\medspace","\\:");ce("\\;","\\tmspace+{5mu}{.2777em}");ce("\\thickspace","\\;");ce("\\!","\\tmspace-{3mu}{.1667em}");ce("\\negthinspace","\\!");ce("\\negmedspace","\\tmspace-{4mu}{.2222em}");ce("\\negthickspace","\\tmspace-{5mu}{.277em}");ce("\\enspace","\\kern.5em ");ce("\\enskip","\\hskip.5em\\relax");ce("\\quad","\\hskip1em\\relax");ce("\\qquad","\\hskip2em\\relax");ce("\\tag","\\@ifstar\\tag@literal\\tag@paren");ce("\\tag@paren","\\tag@literal{({#1})}");ce("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Qt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ce("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ce("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ce("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ce("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ce("\\newline","\\\\\\relax");ce("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var nye=tn(Lh["Main-Regular"][84][1]-.7*Lh["Main-Regular"][65][1]);ce("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+nye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ce("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+nye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ce("\\hspace","\\@ifstar\\@hspacer\\@hspace");ce("\\@hspace","\\hskip #1\\relax");ce("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ce("\\ordinarycolon",":");ce("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ce("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ce("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ce("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ce("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ce("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ce("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ce("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ce("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ce("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ce("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ce("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ce("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ce("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ce("∷","\\dblcolon");ce("∹","\\eqcolon");ce("≔","\\coloneqq");ce("≕","\\eqqcolon");ce("⩴","\\Coloneqq");ce("\\ratio","\\vcentcolon");ce("\\coloncolon","\\dblcolon");ce("\\colonequals","\\coloneqq");ce("\\coloncolonequals","\\Coloneqq");ce("\\equalscolon","\\eqqcolon");ce("\\equalscoloncolon","\\Eqqcolon");ce("\\colonminus","\\coloneq");ce("\\coloncolonminus","\\Coloneq");ce("\\minuscolon","\\eqcolon");ce("\\minuscoloncolon","\\Eqcolon");ce("\\coloncolonapprox","\\Colonapprox");ce("\\coloncolonsim","\\Colonsim");ce("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ce("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ce("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ce("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ce("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ce("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ce("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ce("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ce("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ce("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ce("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ce("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ce("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ce("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ce("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ce("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ce("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ce("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ce("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ce("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ce("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ce("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ce("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ce("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ce("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ce("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ce("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ce("\\imath","\\html@mathml{\\@imath}{ı}");ce("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ce("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ce("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ce("⟦","\\llbracket");ce("⟧","\\rrbracket");ce("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ce("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ce("⦃","\\lBrace");ce("⦄","\\rBrace");ce("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ce("⦵","\\minuso");ce("\\darr","\\downarrow");ce("\\dArr","\\Downarrow");ce("\\Darr","\\Downarrow");ce("\\lang","\\langle");ce("\\rang","\\rangle");ce("\\uarr","\\uparrow");ce("\\uArr","\\Uparrow");ce("\\Uarr","\\Uparrow");ce("\\N","\\mathbb{N}");ce("\\R","\\mathbb{R}");ce("\\Z","\\mathbb{Z}");ce("\\alef","\\aleph");ce("\\alefsym","\\aleph");ce("\\Alpha","\\mathrm{A}");ce("\\Beta","\\mathrm{B}");ce("\\bull","\\bullet");ce("\\Chi","\\mathrm{X}");ce("\\clubs","\\clubsuit");ce("\\cnums","\\mathbb{C}");ce("\\Complex","\\mathbb{C}");ce("\\Dagger","\\ddagger");ce("\\diamonds","\\diamondsuit");ce("\\empty","\\emptyset");ce("\\Epsilon","\\mathrm{E}");ce("\\Eta","\\mathrm{H}");ce("\\exist","\\exists");ce("\\harr","\\leftrightarrow");ce("\\hArr","\\Leftrightarrow");ce("\\Harr","\\Leftrightarrow");ce("\\hearts","\\heartsuit");ce("\\image","\\Im");ce("\\infin","\\infty");ce("\\Iota","\\mathrm{I}");ce("\\isin","\\in");ce("\\Kappa","\\mathrm{K}");ce("\\larr","\\leftarrow");ce("\\lArr","\\Leftarrow");ce("\\Larr","\\Leftarrow");ce("\\lrarr","\\leftrightarrow");ce("\\lrArr","\\Leftrightarrow");ce("\\Lrarr","\\Leftrightarrow");ce("\\Mu","\\mathrm{M}");ce("\\natnums","\\mathbb{N}");ce("\\Nu","\\mathrm{N}");ce("\\Omicron","\\mathrm{O}");ce("\\plusmn","\\pm");ce("\\rarr","\\rightarrow");ce("\\rArr","\\Rightarrow");ce("\\Rarr","\\Rightarrow");ce("\\real","\\Re");ce("\\reals","\\mathbb{R}");ce("\\Reals","\\mathbb{R}");ce("\\Rho","\\mathrm{P}");ce("\\sdot","\\cdot");ce("\\sect","\\S");ce("\\spades","\\spadesuit");ce("\\sub","\\subset");ce("\\sube","\\subseteq");ce("\\supe","\\supseteq");ce("\\Tau","\\mathrm{T}");ce("\\thetasym","\\vartheta");ce("\\weierp","\\wp");ce("\\Zeta","\\mathrm{Z}");ce("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ce("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ce("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ce("\\bra","\\mathinner{\\langle{#1}|}");ce("\\ket","\\mathinner{|{#1}\\rangle}");ce("\\braket","\\mathinner{\\langle{#1}\\rangle}");ce("\\Bra","\\left\\langle#1\\right|");ce("\\Ket","\\left|#1\\right\\rangle");var rye=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=h=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var b=h;if(!h&&i.length){var v=p.future();v.text==="|"&&(p.popToken(),b=!0)}return{tokens:b?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,d=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};ce("\\bra@ket",rye(!1));ce("\\bra@set",rye(!0));ce("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ce("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ce("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ce("\\angln","{\\angl n}");ce("\\blue","\\textcolor{##6495ed}{#1}");ce("\\orange","\\textcolor{##ffa500}{#1}");ce("\\pink","\\textcolor{##ff00af}{#1}");ce("\\red","\\textcolor{##df0030}{#1}");ce("\\green","\\textcolor{##28ae7b}{#1}");ce("\\gray","\\textcolor{gray}{#1}");ce("\\purple","\\textcolor{##9d38bd}{#1}");ce("\\blueA","\\textcolor{##ccfaff}{#1}");ce("\\blueB","\\textcolor{##80f6ff}{#1}");ce("\\blueC","\\textcolor{##63d9ea}{#1}");ce("\\blueD","\\textcolor{##11accd}{#1}");ce("\\blueE","\\textcolor{##0c7f99}{#1}");ce("\\tealA","\\textcolor{##94fff5}{#1}");ce("\\tealB","\\textcolor{##26edd5}{#1}");ce("\\tealC","\\textcolor{##01d1c1}{#1}");ce("\\tealD","\\textcolor{##01a995}{#1}");ce("\\tealE","\\textcolor{##208170}{#1}");ce("\\greenA","\\textcolor{##b6ffb0}{#1}");ce("\\greenB","\\textcolor{##8af281}{#1}");ce("\\greenC","\\textcolor{##74cf70}{#1}");ce("\\greenD","\\textcolor{##1fab54}{#1}");ce("\\greenE","\\textcolor{##0d923f}{#1}");ce("\\goldA","\\textcolor{##ffd0a9}{#1}");ce("\\goldB","\\textcolor{##ffbb71}{#1}");ce("\\goldC","\\textcolor{##ff9c39}{#1}");ce("\\goldD","\\textcolor{##e07d10}{#1}");ce("\\goldE","\\textcolor{##a75a05}{#1}");ce("\\redA","\\textcolor{##fca9a9}{#1}");ce("\\redB","\\textcolor{##ff8482}{#1}");ce("\\redC","\\textcolor{##f9685d}{#1}");ce("\\redD","\\textcolor{##e84d39}{#1}");ce("\\redE","\\textcolor{##bc2612}{#1}");ce("\\maroonA","\\textcolor{##ffbde0}{#1}");ce("\\maroonB","\\textcolor{##ff92c6}{#1}");ce("\\maroonC","\\textcolor{##ed5fa6}{#1}");ce("\\maroonD","\\textcolor{##ca337c}{#1}");ce("\\maroonE","\\textcolor{##9e034e}{#1}");ce("\\purpleA","\\textcolor{##ddd7ff}{#1}");ce("\\purpleB","\\textcolor{##c6b9fc}{#1}");ce("\\purpleC","\\textcolor{##aa87ff}{#1}");ce("\\purpleD","\\textcolor{##7854ab}{#1}");ce("\\purpleE","\\textcolor{##543b78}{#1}");ce("\\mintA","\\textcolor{##f5f9e8}{#1}");ce("\\mintB","\\textcolor{##edf2df}{#1}");ce("\\mintC","\\textcolor{##e0e5cc}{#1}");ce("\\grayA","\\textcolor{##f6f7f7}{#1}");ce("\\grayB","\\textcolor{##f0f1f2}{#1}");ce("\\grayC","\\textcolor{##e3e5e6}{#1}");ce("\\grayD","\\textcolor{##d6d8da}{#1}");ce("\\grayE","\\textcolor{##babec2}{#1}");ce("\\grayF","\\textcolor{##888d93}{#1}");ce("\\grayG","\\textcolor{##626569}{#1}");ce("\\grayH","\\textcolor{##3b3e40}{#1}");ce("\\grayI","\\textcolor{##21242c}{#1}");ce("\\kaBlue","\\textcolor{##314453}{#1}");ce("\\kaGreen","\\textcolor{##71B307}{#1}");var iye={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Gct{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new Yct(qct,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new hae(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Yh("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Qt("Extra }",a)}else if(a.text==="EOF")throw new Qt("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Qt("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Qt("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Qt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Qt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Yh(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new hae(i,this.settings),l=[],c=o.lex();c.text!=="EOF";)l.push(c),c=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(t){return this.macros.has(t)||G0.hasOwnProperty(t)||Ui.math.hasOwnProperty(t)||Ui.text.hasOwnProperty(t)||iye.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:G0.hasOwnProperty(t)&&!G0[t].primitive}}var gae=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,v3=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),fL={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},bae={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ik{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Gct(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Qt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Yh("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(ik.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&G0[i.text]&&G0[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ui[this.mode][n].group,l=Xu.range(t),c;if($ut.hasOwnProperty(o)){var d=o;c={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else c={type:o,mode:this.mode,loc:l,text:n};s=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(hbe(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:Xu.range(t),text:n};else return null;if(this.consume(),a)for(var h=0;hl&&(l=c):c&&(l!==void 0&&l>-1&&o.push(` -`.repeat(l)||" "),l=-1,o.push(c))}return o.join("")}function Gbe(e,t,n){return e.type==="element"?Pct(e,t,n):e.type==="text"?n.whitespace==="normal"?Zbe(e,n):Mct(e):[]}function Pct(e,t,n){const r=Xbe(e,n),i=e.children||[];let a=-1,s=[];if(Dct(e))return s;let o,l;for(oB(e)||hae(e)&&uae(t,e,hae)?l=` -`:Ict(e)?(o=2,l=2):qbe(e)&&(o=1,l=1);++a0&&(a.properties.rel=[...p]),b&&(a.properties.target=b),d){const S=k2(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:Qh(S),children:Qh(d)})}}}})}}function k2(e,t){return typeof e=="function"?e(t):e}function pae(){const e=MN(),t=Sa(dE),[n,r]=M.useState("");return M.useEffect(()=>{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(GF(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?D.jsx(G1e,{source:GF(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[fct],rehypePlugins:[jct,[Gct,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=CI.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return D.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?nq(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=CI.renderToString(o,{throwOnError:!1});return D.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return D.jsx("code",{className:String(a),children:i})}}}):D.jsx(kr,{direction:"row",justifyContent:"center",children:D.jsx(Tm,{sx:{mt:2}})})}function Kbe(){const e=Sa(dE),t=NBe();return!e.doc||!e.client?D.jsx(Wk,{open:!0,children:D.jsx(Tm,{color:"inherit"})}):D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&D.jsx(kBe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>D.jsx(xF.ScrollSync,{children:D.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[D.jsx("div",{id:"left-block",style:{width:n},children:D.jsx(Wne,{})}),D.jsx(po,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),D.jsx(xF.ScrollSyncPane,{children:D.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:D.jsx(bs,{sx:{p:4},height:"100%",children:D.jsx(pae,{})})})})]})})}),e.mode==="read"&&D.jsx(bs,{sx:{p:4,overflow:"auto"},height:"100%",children:D.jsx(pae,{})}),e.mode==="edit"&&D.jsx(Wne,{})]})}var Jbe={exports:{}},Zct={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]},eye={exports:{}},Xct=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},Kct=Xct,Jct=Array.prototype.concat,edt=Array.prototype.slice,mae=eye.exports=function(t){for(var n=[],r=0,i=t.length;r=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};oc.to.keyword=function(e){return nye[e.slice(0,3)]};function hg(e,t,n){return Math.min(Math.max(t,e),n)}function p3(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var ndt=Jbe.exports,rdt={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]};const rk=rdt,rye={};for(const e of Object.keys(rk))rye[rk[e]]=e;const Cn={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"]}};var iye=Cn;for(const e of Object.keys(Cn)){if(!("channels"in Cn[e]))throw new Error("missing channels property: "+e);if(!("labels"in Cn[e]))throw new Error("missing channel labels property: "+e);if(Cn[e].labels.length!==Cn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Cn[e];delete Cn[e].channels,delete Cn[e].labels,Object.defineProperty(Cn[e],"channels",{value:t}),Object.defineProperty(Cn[e],"labels",{value:n})}Cn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const c=(i+a)/2;return a===i?l=0:c<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,c*100]};Cn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.max(s,o,l),d=c-Math.min(s,o,l),h=function(p){return(c-p)/6/d+1/2};return d===0?(i=0,a=0):(a=d/c,t=h(s),n=h(o),r=h(l),s===c?i=r-n:o===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,c*100]};Cn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Cn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};Cn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function idt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Cn.rgb.keyword=function(e){const t=rye[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(rk)){const a=rk[i],s=idt(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};Cn.rgb.lab=function(e){const t=Cn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};Cn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[c]=s*255;return l};Cn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};Cn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};Cn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};Cn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let c,d,h;switch(s){default:case 6:case 0:c=o,d=l,h=n;break;case 1:c=l,d=o,h=n;break;case 2:c=n,d=o,h=l;break;case 3:c=n,d=l,h=o;break;case 4:c=l,d=n,h=o;break;case 5:c=o,d=n,h=l;break}return[c*255,d*255,h*255]};Cn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};Cn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};Cn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};Cn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,c=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};Cn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};Cn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};Cn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?Cn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};Cn.hsv.ansi16=function(e){return Cn.rgb.ansi16(Cn.hsv.rgb(e),e[2])};Cn.rgb.ansi256=function(e){const 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)};Cn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};Cn.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};Cn.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Cn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};Cn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};Cn.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};Cn.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};Cn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};Cn.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};Cn.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};Cn.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Cn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};Cn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Cn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Cn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Cn.gray.hsl=function(e){return[0,0,e[0]]};Cn.gray.hsv=Cn.gray.hsl;Cn.gray.hwb=function(e){return[0,100,e[0]]};Cn.gray.cmyk=function(e){return[0,0,0,e[0]]};Cn.gray.lab=function(e){return[e[0],0,0]};Cn.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};Cn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const _I=iye;function adt(){const e={},t=Object.keys(_I);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function hdt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{qv[e]={},Object.defineProperty(qv[e],"channels",{value:lB[e].channels}),Object.defineProperty(qv[e],"labels",{value:lB[e].labels});const t=cdt(e);Object.keys(t).forEach(r=>{const i=t[r];qv[e][r]=hdt(i),qv[e][r].raw=fdt(i)})});var pdt=qv;const Gv=ndt,rc=pdt,aye=["keyword","gray","hex"],uB={};for(const e of Object.keys(rc))uB[[...rc[e].labels].sort().join("")]=e;const AI={};function Ns(e,t){if(!(this instanceof Ns))return new Ns(e,t);if(t&&t in aye&&(t=null),t&&!(t in rc))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ns)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Gv.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=rc[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=rc[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=cB(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in uB))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=uB[a];const{labels:s}=rc[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:_a("hsl",1,os(100)),lightness:_a("hsl",2,os(100)),saturationv:_a("hsv",1,os(100)),value:_a("hsv",2,os(100)),chroma:_a("hcg",1,os(100)),gray:_a("hcg",2,os(100)),white:_a("hwb",1,os(100)),wblack:_a("hwb",2,os(100)),cyan:_a("cmyk",0,os(100)),magenta:_a("cmyk",1,os(100)),yellow:_a("cmyk",2,os(100)),black:_a("cmyk",3,os(100)),x:_a("xyz",0,os(95.047)),y:_a("xyz",1,os(100)),z:_a("xyz",2,os(108.833)),l:_a("lab",0,os(100)),a:_a("lab",1),b:_a("lab",2),keyword(e){return e!==void 0?new Ns(e):rc[this.model].keyword(this.color)},hex(e){return e!==void 0?new Ns(e):Gv.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Ns(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Gv.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const i=r/255;t[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Ns.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return Ns.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(rc)){if(aye.includes(e))continue;const{channels:t}=rc[e];Ns.prototype[e]=function(...n){return this.model===e?new Ns(this):n.length>0?new Ns(n,e):new Ns([...bdt(rc[this.model][e].raw(this.color)),this.valpha],e)},Ns[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=cB(n,t)),new Ns(r,e)}}function mdt(e,t){return Number(e.toFixed(t))}function gdt(e){return function(t){return mdt(t,e)}}function _a(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(AI[r]||(AI[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function os(e){return function(t){return Math.max(0,Math.min(e,t))}}function bdt(e){return Array.isArray(e)?e:[e]}function cB(e,t){for(let n=0;nQ.length;){var Y=a(A);n!==null&&(A.seed=n),Q.push(Y)}return A.count=V,Q}return U=s(A),F=o(U,A),P=l(U,F,A),c([U,F,P],A)};function s(A){if(i.length>0){var U=_(A.hue),F=v(U),P=(U[1]-U[0])/i.length,V=parseInt((F-U[0])/P);i[V]===!0?V=(V+2)%i.length:i[V]=!0;var Q=(U[0]+V*P)%359,X=(U[0]+(V+1)*P)%359;return U=[Q,X],F=v(U),F<0&&(F=360+F),F}else{var U=h(A.hue);return F=v(U),F<0&&(F=360+F),F}}function o(A,U){if(U.hue==="monochrome")return 0;if(U.luminosity==="random")return v([0,100]);var F=p(A),P=F[0],V=F[1];switch(U.luminosity){case"bright":P=55;break;case"dark":P=V-10;break;case"light":V=55;break}return v([P,V])}function l(A,U,F){var P=d(A,U),V=100;switch(F.luminosity){case"dark":V=P+20;break;case"light":P=(V+P)/2;break;case"random":P=0,V=100;break}return v([P,V])}function c(A,U){switch(U.format){case"hsvArray":return A;case"hslArray":return C(A);case"hsl":var F=C(A);return"hsl("+F[0]+", "+F[1]+"%, "+F[2]+"%)";case"hsla":var P=C(A),X=U.alpha||Math.random();return"hsla("+P[0]+", "+P[1]+"%, "+P[2]+"%, "+X+")";case"rgbArray":return x(A);case"rgb":var V=x(A);return"rgb("+V.join(", ")+")";case"rgba":var Q=x(A),X=U.alpha||Math.random();return"rgba("+Q.join(", ")+", "+X+")";default:return S(A)}}function d(A,U){for(var F=b(A).lowerBounds,P=0;P=V&&U<=X){var W=(Y-Q)/(X-V),ee=Q-W*V;return W*U+ee}}return 0}function h(A){if(typeof parseInt(A)=="number"){var U=parseInt(A);if(U<360&&U>0)return[U,U]}if(typeof A=="string"){if(r[A]){var F=r[A];if(F.hueRange)return F.hueRange}else if(A.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var P=k(A)[0];return[P,P]}}return[0,360]}function p(A){return b(A).saturationRange}function b(A){A>=334&&A<=360&&(A-=360);for(var U in r){var F=r[U];if(F.hueRange&&A>=F.hueRange[0]&&A<=F.hueRange[1])return r[U]}return"Color not found"}function v(A){if(n===null){var U=.618033988749895,F=Math.random();return F+=U,F%=1,Math.floor(A[0]+F*(A[1]+1-A[0]))}else{var P=A[1]||1,V=A[0]||0;n=(n*9301+49297)%233280;var Q=n/233280;return Math.floor(V+Q*(P-V))}}function S(A){var U=x(A);function F(V){var Q=V.toString(16);return Q.length==1?"0"+Q:Q}var P="#"+F(U[0])+F(U[1])+F(U[2]);return P}function w(A,U,F){var P=F[0][0],V=F[F.length-1][0],Q=F[F.length-1][1],X=F[0][1];r[A]={hueRange:U,lowerBounds:F,saturationRange:[P,V],brightnessRange:[Q,X]}}function T(){w("monochrome",null,[[0,0],[100,0]]),w("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),w("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),w("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),w("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),w("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),w("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),w("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(A){var U=A[0];U===0&&(U=1),U===360&&(U=359),U=U/360;var F=A[1]/100,P=A[2]/100,V=Math.floor(U*6),Q=U*6-V,X=P*(1-F),Y=P*(1-Q*F),W=P*(1-(1-Q)*F),ee=256,J=256,K=256;switch(V){case 0:ee=P,J=W,K=X;break;case 1:ee=Y,J=P,K=X;break;case 2:ee=X,J=P,K=W;break;case 3:ee=X,J=Y,K=P;break;case 4:ee=W,J=X,K=P;break;case 5:ee=P,J=X,K=Y;break}var ne=[Math.floor(ee*255),Math.floor(J*255),Math.floor(K*255)];return ne}function k(A){A=A.replace(/^#/,""),A=A.length===3?A.replace(/(.)/g,"$1$1"):A;var U=parseInt(A.substr(0,2),16)/255,F=parseInt(A.substr(2,2),16)/255,P=parseInt(A.substr(4,2),16)/255,V=Math.max(U,F,P),Q=V-Math.min(U,F,P),X=V?Q/V:0;switch(V){case U:return[60*((F-P)/Q%6)||0,X,V];case F:return[60*((P-U)/Q+2)||0,X,V];case P:return[60*((U-F)/Q+4)||0,X,V]}}function C(A){var U=A[0],F=A[1]/100,P=A[2]/100,V=(2-F)*P;return[U,Math.round(F*P/(V<1?V:2-V)*1e4)/100,V/2*100]}function I(A){for(var U=0,F=0;F!==A.length&&!(U>=Number.MAX_SAFE_INTEGER);F++)U+=A.charCodeAt(F);return U}function _(A){if(isNaN(A)){if(typeof A=="string"){if(r[A]){var F=r[A];if(F.hueRange)return F.hueRange}else if(A.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var P=k(A)[0];return b(P).hueRange}}}else{var U=parseInt(A);if(U<360&&U>0)return b(A).hueRange}return[0,360]}return a})})(dB,dB.exports);var Odt=dB.exports;const Sdt=kf(Odt),Edt={accessToken:null},sye=uE({name:"auth",initialState:Edt,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:xq}=sye.actions,IC=e=>e.auth,wdt=sye.reducer;dI.setLogLevel(4);const oye=(e,t)=>{const[n]=Fz(),r=Sa(IC),[i,a]=M.useState(null),[s,o]=M.useState(null),l=M.useCallback(async()=>{!i||!s||(await(i==null?void 0:i.detach(s)),await(i==null?void 0:i.deactivate()))},[i,s]);return M.useEffect(()=>{if(!e||!t||s||i)return;let c=`default:${r.accessToken}`;n.get("token")&&(c=`share:${n.get("token")}`),(async()=>{const h=new dI.Client("https://api.yorkie.dev",{apiKey:"cbovg64qfu96agb5i0fg",token:c});await h.activate();const p=new dI.Document(e);await h.attach(p,{initialPresence:{name:t,color:vdt(Sdt()).fade(.15).toString(),selection:null}}),a(h),o(p)})()},[t,e,s,i,r.accessToken,n]),{client:i,doc:s,cleanUpYorkieDocument:l}};var Tdt=function(e){return(e+1)%1e6};function xdt(){var e=M.useReducer(Tdt,0),t=e[1];return t}function pL(e,t){return typeof e=="function"?e.length?e(t):e():e}function kdt(e,t){t===void 0&&(t=0);var n=M.useRef(!1),r=M.useRef(),i=M.useRef(e),a=M.useCallback(function(){return n.current},[]),s=M.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=M.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return M.useEffect(function(){i.current=e},[e]),M.useEffect(function(){return s(),o},[t]),[a,o,s]}function kq(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=kdt(e,t),i=r[0],a=r[1],s=r[2];return M.useEffect(s,n),[i,a]}function Cdt(e){e===void 0&&(e=[]);var t=M.useRef(pL(e)),n=xdt(),r=M.useMemo(function(){var i={set:function(a){t.current=pL(a,t.current),n()},push:function(){for(var a=[],s=0;sl.length?l[a]=s:l.splice(a,0,s),l})},update:function(a,s){r.set(function(o){return o.map(function(l){return a(l,s)?s:l})})},updateFirst:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0&&r.updateAt(o,s)},upsert:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0?r.updateAt(o,s):r.push(s)},sort:function(a){r.set(function(s){return s.slice().sort(a)})},filter:function(a,s){r.set(function(o){return o.slice().filter(a,s)})},removeAt:function(a){r.set(function(s){var o=s.slice();return o.splice(a,1),o})},clear:function(){r.set([])},reset:function(){r.set(pL(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var Cq={},lye={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(lye);var Ma=lye.exports,mL={};const _dt=Zwe(EAe);var gae;function La(){return gae||(gae=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=_dt}(mL)),mL}var Adt=Ma;Object.defineProperty(Cq,"__esModule",{value:!0});var fB=Cq.default=void 0;Ddt(M);var Rdt=Adt(La()),Idt=D;function uye(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(uye=function(r){return r?n:t})(e)}function Ddt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=uye(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}fB=Cq.default=(0,Rdt.default)((0,Idt.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var b6={exports:{}},cye={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},dye=Object.keys(cye).join("|"),Ndt=new RegExp(dye,"g"),Pdt=new RegExp(dye,"");function Mdt(e){return cye[e]}var fye=function(e){return e.replace(Ndt,Mdt)},Ldt=function(e){return!!e.match(Pdt)};b6.exports=fye;b6.exports.has=Ldt;b6.exports.remove=fye;var $dt=b6.exports;const Fdt=kf($dt);/** +`)),b+=d.move(h),p(),b}function r(a,s,o){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const d="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let h=-1;for(;++hl&&(l=c):c&&(l!==void 0&&l>-1&&o.push(` +`.repeat(l)||" "),l=-1,o.push(c))}return o.join("")}function dye(e,t,n){return e.type==="element"?Idt(e,t,n):e.type==="text"?n.whitespace==="normal"?fye(e,n):Ddt(e):[]}function Idt(e,t,n){const r=hye(e,n),i=e.children||[];let a=-1,s=[];if(Adt(e))return s;let o,l;for(oB(e)||kae(e)&&Eae(t,e,kae)?l=` +`:_dt(e)?(o=2,l=2):cye(e)&&(o=1,l=1);++a0&&(a.properties.rel=[...p]),b&&(a.properties.target=b),d){const S=CT(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:Qh(S),children:Qh(d)})}}}})}}function CT(e,t){return typeof e=="function"?e(t):e}function Cae(){const e=bC(),t=Ki(fE),[n,r]=P.useState("");return P.useEffect(()=>{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(GF(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?D.jsx(dbe,{source:GF(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[udt],rehypePlugins:[Bdt,[Qdt,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=DI.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return D.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?sq(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=DI.renderToString(o,{throwOnError:!1});return D.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return D.jsx("code",{className:String(a),children:i})}}}):D.jsx(hr,{direction:"row",justifyContent:"center",children:D.jsx(xm,{sx:{mt:2}})})}function pye(){const e=Ki(fE),t=RUe();return!e.doc||!e.client?D.jsx(Gk,{open:!0,children:D.jsx(xm,{color:"inherit"})}):D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&D.jsx(wUe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>D.jsx(xF.ScrollSync,{children:D.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[D.jsx("div",{id:"left-block",style:{width:n},children:D.jsx(ire,{})}),D.jsx(po,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),D.jsx(xF.ScrollSyncPane,{children:D.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:D.jsx($s,{sx:{p:4},height:"100%",children:D.jsx(Cae,{})})})})]})})}),e.mode==="read"&&D.jsx($s,{sx:{p:4,overflow:"auto"},height:"100%",children:D.jsx(Cae,{})}),e.mode==="edit"&&D.jsx(ire,{})]})}var mye={exports:{}},Ydt={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]},gye={exports:{}},qdt=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},Gdt=qdt,Zdt=Array.prototype.concat,Xdt=Array.prototype.slice,_ae=gye.exports=function(t){for(var n=[],r=0,i=t.length;r=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};oc.to.keyword=function(e){return yye[e.slice(0,3)]};function fg(e,t,n){return Math.min(Math.max(t,e),n)}function O3(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Jdt=mye.exports,eft={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]};const ak=eft,vye={};for(const e of Object.keys(ak))vye[ak[e]]=e;const Cn={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"]}};var Oye=Cn;for(const e of Object.keys(Cn)){if(!("channels"in Cn[e]))throw new Error("missing channels property: "+e);if(!("labels"in Cn[e]))throw new Error("missing channel labels property: "+e);if(Cn[e].labels.length!==Cn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Cn[e];delete Cn[e].channels,delete Cn[e].labels,Object.defineProperty(Cn[e],"channels",{value:t}),Object.defineProperty(Cn[e],"labels",{value:n})}Cn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const c=(i+a)/2;return a===i?l=0:c<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,c*100]};Cn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.max(s,o,l),d=c-Math.min(s,o,l),h=function(p){return(c-p)/6/d+1/2};return d===0?(i=0,a=0):(a=d/c,t=h(s),n=h(o),r=h(l),s===c?i=r-n:o===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,c*100]};Cn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Cn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};Cn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function tft(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Cn.rgb.keyword=function(e){const t=vye[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(ak)){const a=ak[i],s=tft(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};Cn.rgb.lab=function(e){const t=Cn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};Cn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[c]=s*255;return l};Cn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};Cn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};Cn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};Cn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let c,d,h;switch(s){default:case 6:case 0:c=o,d=l,h=n;break;case 1:c=l,d=o,h=n;break;case 2:c=n,d=o,h=l;break;case 3:c=n,d=l,h=o;break;case 4:c=l,d=n,h=o;break;case 5:c=o,d=n,h=l;break}return[c*255,d*255,h*255]};Cn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};Cn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};Cn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};Cn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,c=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};Cn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};Cn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};Cn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?Cn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};Cn.hsv.ansi16=function(e){return Cn.rgb.ansi16(Cn.hsv.rgb(e),e[2])};Cn.rgb.ansi256=function(e){const 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)};Cn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};Cn.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};Cn.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Cn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};Cn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};Cn.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};Cn.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};Cn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};Cn.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};Cn.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};Cn.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Cn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};Cn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Cn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Cn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Cn.gray.hsl=function(e){return[0,0,e[0]]};Cn.gray.hsv=Cn.gray.hsl;Cn.gray.hwb=function(e){return[0,100,e[0]]};Cn.gray.cmyk=function(e){return[0,0,0,e[0]]};Cn.gray.lab=function(e){return[e[0],0,0]};Cn.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};Cn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const NI=Oye;function nft(){const e={},t=Object.keys(NI);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function cft(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{Gv[e]={},Object.defineProperty(Gv[e],"channels",{value:lB[e].channels}),Object.defineProperty(Gv[e],"labels",{value:lB[e].labels});const t=oft(e);Object.keys(t).forEach(r=>{const i=t[r];Gv[e][r]=cft(i),Gv[e][r].raw=uft(i)})});var dft=Gv;const Zv=Jdt,rc=dft,Sye=["keyword","gray","hex"],uB={};for(const e of Object.keys(rc))uB[[...rc[e].labels].sort().join("")]=e;const PI={};function Ds(e,t){if(!(this instanceof Ds))return new Ds(e,t);if(t&&t in Sye&&(t=null),t&&!(t in rc))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ds)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Zv.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=rc[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=rc[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=cB(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in uB))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=uB[a];const{labels:s}=rc[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:Ra("hsl",1,ls(100)),lightness:Ra("hsl",2,ls(100)),saturationv:Ra("hsv",1,ls(100)),value:Ra("hsv",2,ls(100)),chroma:Ra("hcg",1,ls(100)),gray:Ra("hcg",2,ls(100)),white:Ra("hwb",1,ls(100)),wblack:Ra("hwb",2,ls(100)),cyan:Ra("cmyk",0,ls(100)),magenta:Ra("cmyk",1,ls(100)),yellow:Ra("cmyk",2,ls(100)),black:Ra("cmyk",3,ls(100)),x:Ra("xyz",0,ls(95.047)),y:Ra("xyz",1,ls(100)),z:Ra("xyz",2,ls(108.833)),l:Ra("lab",0,ls(100)),a:Ra("lab",1),b:Ra("lab",2),keyword(e){return e!==void 0?new Ds(e):rc[this.model].keyword(this.color)},hex(e){return e!==void 0?new Ds(e):Zv.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Ds(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Zv.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const i=r/255;t[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Ds.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return Ds.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(rc)){if(Sye.includes(e))continue;const{channels:t}=rc[e];Ds.prototype[e]=function(...n){return this.model===e?new Ds(this):n.length>0?new Ds(n,e):new Ds([...pft(rc[this.model][e].raw(this.color)),this.valpha],e)},Ds[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=cB(n,t)),new Ds(r,e)}}function fft(e,t){return Number(e.toFixed(t))}function hft(e){return function(t){return fft(t,e)}}function Ra(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(PI[r]||(PI[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function ls(e){return function(t){return Math.max(0,Math.min(e,t))}}function pft(e){return Array.isArray(e)?e:[e]}function cB(e,t){for(let n=0;nQ.length;){var Y=a(A);n!==null&&(A.seed=n),Q.push(Y)}return A.count=V,Q}return U=s(A),F=o(U,A),M=l(U,F,A),c([U,F,M],A)};function s(A){if(i.length>0){var U=_(A.hue),F=v(U),M=(U[1]-U[0])/i.length,V=parseInt((F-U[0])/M);i[V]===!0?V=(V+2)%i.length:i[V]=!0;var Q=(U[0]+V*M)%359,X=(U[0]+(V+1)*M)%359;return U=[Q,X],F=v(U),F<0&&(F=360+F),F}else{var U=h(A.hue);return F=v(U),F<0&&(F=360+F),F}}function o(A,U){if(U.hue==="monochrome")return 0;if(U.luminosity==="random")return v([0,100]);var F=p(A),M=F[0],V=F[1];switch(U.luminosity){case"bright":M=55;break;case"dark":M=V-10;break;case"light":V=55;break}return v([M,V])}function l(A,U,F){var M=d(A,U),V=100;switch(F.luminosity){case"dark":V=M+20;break;case"light":M=(V+M)/2;break;case"random":M=0,V=100;break}return v([M,V])}function c(A,U){switch(U.format){case"hsvArray":return A;case"hslArray":return C(A);case"hsl":var F=C(A);return"hsl("+F[0]+", "+F[1]+"%, "+F[2]+"%)";case"hsla":var M=C(A),X=U.alpha||Math.random();return"hsla("+M[0]+", "+M[1]+"%, "+M[2]+"%, "+X+")";case"rgbArray":return x(A);case"rgb":var V=x(A);return"rgb("+V.join(", ")+")";case"rgba":var Q=x(A),X=U.alpha||Math.random();return"rgba("+Q.join(", ")+", "+X+")";default:return S(A)}}function d(A,U){for(var F=b(A).lowerBounds,M=0;M=V&&U<=X){var W=(Y-Q)/(X-V),ee=Q-W*V;return W*U+ee}}return 0}function h(A){if(typeof parseInt(A)=="number"){var U=parseInt(A);if(U<360&&U>0)return[U,U]}if(typeof A=="string"){if(r[A]){var F=r[A];if(F.hueRange)return F.hueRange}else if(A.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var M=k(A)[0];return[M,M]}}return[0,360]}function p(A){return b(A).saturationRange}function b(A){A>=334&&A<=360&&(A-=360);for(var U in r){var F=r[U];if(F.hueRange&&A>=F.hueRange[0]&&A<=F.hueRange[1])return r[U]}return"Color not found"}function v(A){if(n===null){var U=.618033988749895,F=Math.random();return F+=U,F%=1,Math.floor(A[0]+F*(A[1]+1-A[0]))}else{var M=A[1]||1,V=A[0]||0;n=(n*9301+49297)%233280;var Q=n/233280;return Math.floor(V+Q*(M-V))}}function S(A){var U=x(A);function F(V){var Q=V.toString(16);return Q.length==1?"0"+Q:Q}var M="#"+F(U[0])+F(U[1])+F(U[2]);return M}function w(A,U,F){var M=F[0][0],V=F[F.length-1][0],Q=F[F.length-1][1],X=F[0][1];r[A]={hueRange:U,lowerBounds:F,saturationRange:[M,V],brightnessRange:[Q,X]}}function T(){w("monochrome",null,[[0,0],[100,0]]),w("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),w("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),w("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),w("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),w("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),w("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),w("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(A){var U=A[0];U===0&&(U=1),U===360&&(U=359),U=U/360;var F=A[1]/100,M=A[2]/100,V=Math.floor(U*6),Q=U*6-V,X=M*(1-F),Y=M*(1-Q*F),W=M*(1-(1-Q)*F),ee=256,J=256,K=256;switch(V){case 0:ee=M,J=W,K=X;break;case 1:ee=Y,J=M,K=X;break;case 2:ee=X,J=M,K=W;break;case 3:ee=X,J=Y,K=M;break;case 4:ee=W,J=X,K=M;break;case 5:ee=M,J=X,K=Y;break}var ne=[Math.floor(ee*255),Math.floor(J*255),Math.floor(K*255)];return ne}function k(A){A=A.replace(/^#/,""),A=A.length===3?A.replace(/(.)/g,"$1$1"):A;var U=parseInt(A.substr(0,2),16)/255,F=parseInt(A.substr(2,2),16)/255,M=parseInt(A.substr(4,2),16)/255,V=Math.max(U,F,M),Q=V-Math.min(U,F,M),X=V?Q/V:0;switch(V){case U:return[60*((F-M)/Q%6)||0,X,V];case F:return[60*((M-U)/Q+2)||0,X,V];case M:return[60*((U-F)/Q+4)||0,X,V]}}function C(A){var U=A[0],F=A[1]/100,M=A[2]/100,V=(2-F)*M;return[U,Math.round(F*M/(V<1?V:2-V)*1e4)/100,V/2*100]}function I(A){for(var U=0,F=0;F!==A.length&&!(U>=Number.MAX_SAFE_INTEGER);F++)U+=A.charCodeAt(F);return U}function _(A){if(isNaN(A)){if(typeof A=="string"){if(r[A]){var F=r[A];if(F.hueRange)return F.hueRange}else if(A.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var M=k(A)[0];return b(M).hueRange}}}else{var U=parseInt(A);if(U<360&&U>0)return b(A).hueRange}return[0,360]}return a})})(dB,dB.exports);var bft=dB.exports;const yft=Cf(bft),vft={accessToken:null},Eye=cE({name:"auth",initialState:vft,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:Aq}=Eye.actions,$C=e=>e.auth,Oft=Eye.reducer;gI.setLogLevel(4);const wye=(e,t)=>{const[n]=Uz(),r=Ki($C),[i,a]=P.useState(null),[s,o]=P.useState(null),l=P.useCallback(async()=>{!i||!s||(await(i==null?void 0:i.detach(s)),await(i==null?void 0:i.deactivate()))},[i,s]);return P.useEffect(()=>{if(!e||!t||s||i)return;let c=`default:${r.accessToken}`;n.get("token")&&(c=`share:${n.get("token")}`),(async()=>{const h=new gI.Client("https://api.yorkie.dev",{apiKey:"cbovg64qfu96agb5i0fg",token:c});await h.activate();const p=new gI.Document(e);await h.attach(p,{initialPresence:{name:t,color:gft(yft()).fade(.15).toString(),selection:null}}),a(h),o(p)})()},[t,e,s,i,r.accessToken,n]),{client:i,doc:s,cleanUpYorkieDocument:l}};var Sft=function(e){return(e+1)%1e6};function Eft(){var e=P.useReducer(Sft,0),t=e[1];return t}function pL(e,t){return typeof e=="function"?e.length?e(t):e():e}function wft(e,t){t===void 0&&(t=0);var n=P.useRef(!1),r=P.useRef(),i=P.useRef(e),a=P.useCallback(function(){return n.current},[]),s=P.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=P.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return P.useEffect(function(){i.current=e},[e]),P.useEffect(function(){return s(),o},[t]),[a,o,s]}function Rq(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=wft(e,t),i=r[0],a=r[1],s=r[2];return P.useEffect(s,n),[i,a]}function Tft(e){e===void 0&&(e=[]);var t=P.useRef(pL(e)),n=Eft(),r=P.useMemo(function(){var i={set:function(a){t.current=pL(a,t.current),n()},push:function(){for(var a=[],s=0;sl.length?l[a]=s:l.splice(a,0,s),l})},update:function(a,s){r.set(function(o){return o.map(function(l){return a(l,s)?s:l})})},updateFirst:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0&&r.updateAt(o,s)},upsert:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0?r.updateAt(o,s):r.push(s)},sort:function(a){r.set(function(s){return s.slice().sort(a)})},filter:function(a,s){r.set(function(o){return o.slice().filter(a,s)})},removeAt:function(a){r.set(function(s){var o=s.slice();return o.splice(a,1),o})},clear:function(){r.set([])},reset:function(){r.set(pL(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var Iq={},Tye={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Tye);var ha=Tye.exports,mL={};const xft=hTe(BAe);var Aae;function pa(){return Aae||(Aae=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xft}(mL)),mL}var kft=ha;Object.defineProperty(Iq,"__esModule",{value:!0});var fB=Iq.default=void 0;Aft(P);var Cft=kft(pa()),_ft=D;function xye(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(xye=function(r){return r?n:t})(e)}function Aft(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=xye(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}fB=Iq.default=(0,Cft.default)((0,_ft.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var b6={exports:{}},kye={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Cye=Object.keys(kye).join("|"),Rft=new RegExp(Cye,"g"),Ift=new RegExp(Cye,"");function Dft(e){return kye[e]}var _ye=function(e){return e.replace(Rft,Dft)},Nft=function(e){return!!e.match(Ift)};b6.exports=_ye;b6.exports.has=Nft;b6.exports.remove=_ye;var Pft=b6.exports;const Mft=Cf(Pft);/** * @name match-sorter * @license MIT license. * @copyright (c) 2020 Kent C. Dodds * @author Kent C. Dodds (https://kentcdodds.com) - */const ll={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Bdt=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function hye(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=ll.MATCHES,baseSort:a=Bdt,sorter:s=c=>c.sort((d,h)=>Hdt(d,h,a))}=n,o=e.reduce(l,[]);return s(o).map(c=>{let{item:d}=c;return d});function l(c,d,h){const p=Udt(d,r,t,n),{rank:b,keyThreshold:v=i}=p;return b>=v&&c.push({...p,item:d,index:h}),c}}hye.rankings=ll;function Udt(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:bae(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Qdt(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:c,keyIndex:d,keyThreshold:h}=a,{itemValue:p,attributes:b}=s,v=bae(p,n,r),S=c;const{minRanking:w,maxRanking:T,threshold:x}=b;return v=ll.MATCHES?v=w:v>T&&(v=T),v>l&&(l=v,d=o,h=x,S=p),{rankedValue:S,rank:l,keyIndex:d,keyThreshold:h}},{rankedValue:e,rank:ll.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function bae(e,t,n){return e=yae(e,n),t=yae(t,n),t.length>e.length?ll.NO_MATCH:e===t?ll.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ll.EQUAL:e.startsWith(t)?ll.STARTS_WITH:e.includes(` ${t}`)?ll.WORD_STARTS_WITH:e.includes(t)?ll.CONTAINS:t.length===1?ll.NO_MATCH:zdt(e).includes(t)?ll.ACRONYM:jdt(e,t))}function zdt(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function jdt(e,t){let n=0,r=0;function i(l,c,d){for(let h=d,p=c.length;h-1))return ll.NO_MATCH}const o=r-s;return a(o)}function Hdt(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function yae(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Fdt(e)),e}function Vdt(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwn(e,t))n=e[t];else{if(t.includes("."))return Wdt(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function Wdt(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;ihye(qdt,n,{keys:["title","feature"]}),[n]),a=s=>{r(s.target.value)};return D.jsxs(kr,{children:[D.jsx(jg,{placeholder:"Choose from below",size:"small",sx:{width:1},value:n,onChange:a}),D.jsx(oE,{children:i.map(s=>D.jsxs(Sg,{onClick:()=>t(s.feature,s.title),children:[D.jsx(oN,{children:s.icon}),D.jsx(og,{children:s.title})]},s.feature))})]})}var _q={},Zdt=Ma;Object.defineProperty(_q,"__esModule",{value:!0});var y6=_q.default=void 0,Xdt=Zdt(La()),Kdt=D;y6=_q.default=(0,Xdt.default)((0,Kdt.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var Aq={},Jdt=Ma;Object.defineProperty(Aq,"__esModule",{value:!0});var pye=Aq.default=void 0,eft=Jdt(La()),tft=D;pye=Aq.default=(0,eft.default)((0,tft.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var DC=e=>e.type==="checkbox",vO=e=>e instanceof Date,ul=e=>e==null;const mye=e=>typeof e=="object";var Ss=e=>!ul(e)&&!Array.isArray(e)&&mye(e)&&!vO(e),gye=e=>Ss(e)&&e.target?DC(e.target)?e.target.checked:e.target.value:e,nft=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,bye=(e,t)=>e.has(nft(t)),rft=e=>{const t=e.constructor&&e.constructor.prototype;return Ss(t)&&t.hasOwnProperty("isPrototypeOf")},Rq=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ql(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Rq&&(e instanceof Blob||e instanceof FileList))&&(n||Ss(e)))if(t=n?[]:{},!n&&!rft(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ql(e[r]));else return e;return t}var NC=e=>Array.isArray(e)?e.filter(Boolean):[],Pa=e=>e===void 0,un=(e,t,n)=>{if(!t||!Ss(e))return n;const r=NC(t.split(/[,[\].]+?/)).reduce((i,a)=>ul(i)?i:i[a],e);return Pa(r)||r===e?Pa(e[t])?n:e[t]:r},uf=e=>typeof e=="boolean";const RI={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ff={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Rp={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},yye=gn.createContext(null),Iq=()=>gn.useContext(yye),vye=e=>{const{children:t,...n}=e;return gn.createElement(yye.Provider,{value:n},t)};var Oye=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==ff.all&&(t._proxyFormState[s]=!r||ff.all),n&&(n[s]=!0),e[s]}});return i},Zc=e=>Ss(e)&&!Object.keys(e).length,Sye=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Zc(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||ff.all))},T5=e=>Array.isArray(e)?e:[e],Eye=(e,t,n)=>!e||!t||e===t||T5(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Dq(e){const t=gn.useRef(e);t.current=e,gn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function ift(e){const t=Iq(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=gn.useState(n._formState),l=gn.useRef(!0),c=gn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=gn.useRef(i);return d.current=i,Dq({disabled:r,next:h=>l.current&&Eye(d.current,h.name,a)&&Sye(h,c.current,n._updateFormState)&&o({...n._formState,...h}),subject:n._subjects.state}),gn.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Oye(s,n,c.current,!1)}var $h=e=>typeof e=="string",wye=(e,t,n,r,i)=>$h(e)?(r&&t.watch.add(e),un(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),un(n,a))):(r&&(t.watchAll=!0),n);function Tye(e){const t=Iq(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=gn.useRef(r);o.current=r,Dq({disabled:a,subject:n._subjects.values,next:d=>{Eye(o.current,d.name,s)&&c(ql(wye(o.current,n._names,d.values||n._formValues,!1,i)))}});const[l,c]=gn.useState(n._getWatch(r,i));return gn.useEffect(()=>n._removeUnmounted()),l}var Nq=e=>/^\w*$/.test(e),xye=e=>NC(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Mi=(e,t,n)=>{let r=-1;const i=Nq(t)?[t]:xye(t),a=i.length,s=a-1;for(;++r{const d=i._options.shouldUnregister||a,h=(p,b)=>{const v=un(i._fields,p);v&&(v._f.mount=b)};if(h(n,!0),d){const p=ql(un(i._options.defaultValues,n));Mi(i._defaultValues,n,p),Pa(un(i._formValues,n))&&Mi(i._formValues,n,p)}return()=>{(s?d&&!i._state.action:d)?i.unregister(n):h(n,!1)}},[n,i,s,a]),gn.useEffect(()=>{un(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:un(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...uf(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:gn.useCallback(d=>c.current.onChange({target:{value:gye(d),name:n},type:RI.CHANGE}),[n]),onBlur:gn.useCallback(()=>c.current.onBlur({target:{value:un(i._formValues,n),name:n},type:RI.BLUR}),[n,i]),ref:d=>{const h=un(i._fields,n);h&&d&&(h._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:p=>d.setCustomValidity(p),reportValidity:()=>d.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!un(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!un(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!un(l.touchedFields,n)},error:{enumerable:!0,get:()=>un(l.errors,n)}})}}var aft=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Oae=e=>({isOnSubmit:!e||e===ff.onSubmit,isOnBlur:e===ff.onBlur,isOnChange:e===ff.onChange,isOnAll:e===ff.all,isOnTouch:e===ff.onTouched}),Sae=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const zT=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=un(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;zT(o,t)}else Ss(o)&&zT(o,t)}}};var sft=(e,t,n)=>{const r=NC(un(e,n));return Mi(r,"root",t[n]),Mi(e,n,r),e},Pq=e=>e.type==="file",Z0=e=>typeof e=="function",II=e=>{if(!Rq)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},x5=e=>$h(e),Mq=e=>e.type==="radio",DI=e=>e instanceof RegExp;const Eae={value:!1,isValid:!1},wae={value:!0,isValid:!0};var kye=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Pa(e[0].attributes.value)?Pa(e[0].value)||e[0].value===""?wae:{value:e[0].value,isValid:!0}:wae:Eae}return Eae};const Tae={isValid:!1,value:null};var Cye=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Tae):Tae;function xae(e,t,n="validate"){if(x5(e)||Array.isArray(e)&&e.every(x5)||uf(e)&&!e)return{type:n,message:x5(e)?e:"",ref:t}}var Pv=e=>Ss(e)&&!DI(e)?e:{value:e,message:""},kae=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:c,min:d,max:h,pattern:p,validate:b,name:v,valueAsNumber:S,mount:w,disabled:T}=e._f,x=un(t,v);if(!w||T)return{};const k=s?s[0]:a,C=Q=>{r&&k.reportValidity&&(k.setCustomValidity(uf(Q)?"":Q||""),k.reportValidity())},I={},_=Mq(a),A=DC(a),U=_||A,F=(S||Pq(a))&&Pa(a.value)&&Pa(x)||II(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,P=aft.bind(null,v,n,I),V=(Q,X,Y,W=Rp.maxLength,ee=Rp.minLength)=>{const J=Q?X:Y;I[v]={type:Q?W:ee,message:J,ref:a,...P(Q?W:ee,J)}};if(i?!Array.isArray(x)||!x.length:o&&(!U&&(F||ul(x))||uf(x)&&!x||A&&!kye(s).isValid||_&&!Cye(s).isValid)){const{value:Q,message:X}=x5(o)?{value:!!o,message:o}:Pv(o);if(Q&&(I[v]={type:Rp.required,message:X,ref:k,...P(Rp.required,X)},!n))return C(X),I}if(!F&&(!ul(d)||!ul(h))){let Q,X;const Y=Pv(h),W=Pv(d);if(!ul(x)&&!isNaN(x)){const ee=a.valueAsNumber||x&&+x;ul(Y.value)||(Q=ee>Y.value),ul(W.value)||(X=eenew Date(new Date().toDateString()+" "+j),K=a.type=="time",ne=a.type=="week";$h(Y.value)&&x&&(Q=K?J(x)>J(Y.value):ne?x>Y.value:ee>new Date(Y.value)),$h(W.value)&&x&&(X=K?J(x)+Q.value,W=!ul(X.value)&&x.length<+X.value;if((Y||W)&&(V(Y,Q.message,X.message),!n))return C(I[v].message),I}if(p&&!F&&$h(x)){const{value:Q,message:X}=Pv(p);if(DI(Q)&&!x.match(Q)&&(I[v]={type:Rp.pattern,message:X,ref:a,...P(Rp.pattern,X)},!n))return C(X),I}if(b){if(Z0(b)){const Q=await b(x,t),X=xae(Q,k);if(X&&(I[v]={...X,...P(Rp.validate,X.message)},!n))return C(X.message),I}else if(Ss(b)){let Q={};for(const X in b){if(!Zc(Q)&&!n)break;const Y=xae(await b[X](x,t),k,X);Y&&(Q={...Y,...P(X,Y.message)},C(Y.message),n&&(I[v]=Q))}if(!Zc(Q)&&(I[v]={ref:k,...Q},!n))return I}}return C(!0),I};function oft(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},NI=e=>ul(e)||!mye(e);function Sb(e,t){if(NI(e)||NI(t))return e===t;if(vO(e)&&vO(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(vO(a)&&vO(s)||Ss(a)&&Ss(s)||Array.isArray(a)&&Array.isArray(s)?!Sb(a,s):a!==s)return!1}}return!0}var _ye=e=>e.type==="select-multiple",uft=e=>Mq(e)||DC(e),bL=e=>II(e)&&e.isConnected,Aye=e=>{for(const t in e)if(Z0(e[t]))return!0;return!1};function PI(e,t={}){const n=Array.isArray(e);if(Ss(e)||n)for(const r in e)Array.isArray(e[r])||Ss(e[r])&&!Aye(e[r])?(t[r]=Array.isArray(e[r])?[]:{},PI(e[r],t[r])):ul(e[r])||(t[r]=!0);return t}function Rye(e,t,n){const r=Array.isArray(e);if(Ss(e)||r)for(const i in e)Array.isArray(e[i])||Ss(e[i])&&!Aye(e[i])?Pa(t)||NI(n[i])?n[i]=Array.isArray(e[i])?PI(e[i],[]):{...PI(e[i])}:Rye(e[i],ul(t)?{}:t[i],n[i]):n[i]=!Sb(e[i],t[i]);return n}var m3=(e,t)=>Rye(e,t,PI(t)),Iye=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Pa(e)?e:t?e===""?NaN:e&&+e:n&&$h(e)?new Date(e):r?r(e):e;function yL(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Pq(t)?t.files:Mq(t)?Cye(e.refs).value:_ye(t)?[...t.selectedOptions].map(({value:n})=>n):DC(t)?kye(e.refs).value:Iye(Pa(t.value)?e.ref.value:t.value,e)}var cft=(e,t,n,r)=>{const i={};for(const a of e){const s=un(t,a);s&&Mi(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},C2=e=>Pa(e)?e:DI(e)?e.source:Ss(e)?DI(e.value)?e.value.source:e.value:e,dft=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Cae(e,t,n){const r=un(e,n);if(r||Nq(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=un(t,a),o=un(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var fft=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,hft=(e,t)=>!NC(un(e,t)).length&&Js(e,t);const pft={mode:ff.onSubmit,reValidateMode:ff.onChange,shouldFocusError:!0};function mft(e={},t){let n={...pft,...e},r={submitCount:0,isDirty:!1,isLoading:Z0(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},a=Ss(n.values)||Ss(n.defaultValues)?ql(n.values||n.defaultValues)||{}:{},s=n.shouldUnregister?{}:ql(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const h={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:gL(),array:gL(),state:gL()},b=Oae(n.mode),v=Oae(n.reValidateMode),S=n.criteriaMode===ff.all,w=ge=>ue=>{clearTimeout(d),d=setTimeout(ge,ue)},T=async ge=>{if(h.isValid||ge){const ue=n.resolver?Zc((await F()).errors):await V(i,!0);ue!==r.isValid&&p.state.next({isValid:ue})}},x=ge=>h.isValidating&&p.state.next({isValidating:ge}),k=(ge,ue=[],me,We,et=!0,qe=!0)=>{if(We&&me){if(o.action=!0,qe&&Array.isArray(un(i,ge))){const pe=me(un(i,ge),We.argA,We.argB);et&&Mi(i,ge,pe)}if(qe&&Array.isArray(un(r.errors,ge))){const pe=me(un(r.errors,ge),We.argA,We.argB);et&&Mi(r.errors,ge,pe),hft(r.errors,ge)}if(h.touchedFields&&qe&&Array.isArray(un(r.touchedFields,ge))){const pe=me(un(r.touchedFields,ge),We.argA,We.argB);et&&Mi(r.touchedFields,ge,pe)}h.dirtyFields&&(r.dirtyFields=m3(a,s)),p.state.next({name:ge,isDirty:X(ge,ue),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Mi(s,ge,ue)},C=(ge,ue)=>{Mi(r.errors,ge,ue),p.state.next({errors:r.errors})},I=ge=>{r.errors=ge,p.state.next({errors:r.errors,isValid:!1})},_=(ge,ue,me,We)=>{const et=un(i,ge);if(et){const qe=un(s,ge,Pa(me)?un(a,ge):me);Pa(qe)||We&&We.defaultChecked||ue?Mi(s,ge,ue?qe:yL(et._f)):ee(ge,qe),o.mount&&T()}},A=(ge,ue,me,We,et)=>{let qe=!1,pe=!1;const Te={name:ge},Oe=!!(un(i,ge)&&un(i,ge)._f.disabled);if(!me||We){h.isDirty&&(pe=r.isDirty,r.isDirty=Te.isDirty=X(),qe=pe!==Te.isDirty);const De=Oe||Sb(un(a,ge),ue);pe=!!(!Oe&&un(r.dirtyFields,ge)),De||Oe?Js(r.dirtyFields,ge):Mi(r.dirtyFields,ge,!0),Te.dirtyFields=r.dirtyFields,qe=qe||h.dirtyFields&&pe!==!De}if(me){const De=un(r.touchedFields,ge);De||(Mi(r.touchedFields,ge,me),Te.touchedFields=r.touchedFields,qe=qe||h.touchedFields&&De!==me)}return qe&&et&&p.state.next(Te),qe?Te:{}},U=(ge,ue,me,We)=>{const et=un(r.errors,ge),qe=h.isValid&&uf(ue)&&r.isValid!==ue;if(e.delayError&&me?(c=w(()=>C(ge,me)),c(e.delayError)):(clearTimeout(d),c=null,me?Mi(r.errors,ge,me):Js(r.errors,ge)),(me?!Sb(et,me):et)||!Zc(We)||qe){const pe={...We,...qe&&uf(ue)?{isValid:ue}:{},errors:r.errors,name:ge};r={...r,...pe},p.state.next(pe)}x(!1)},F=async ge=>n.resolver(s,n.context,cft(ge||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async ge=>{const{errors:ue}=await F(ge);if(ge)for(const me of ge){const We=un(ue,me);We?Mi(r.errors,me,We):Js(r.errors,me)}else r.errors=ue;return ue},V=async(ge,ue,me={valid:!0})=>{for(const We in ge){const et=ge[We];if(et){const{_f:qe,...pe}=et;if(qe){const Te=l.array.has(qe.name),Oe=await kae(et,s,S,n.shouldUseNativeValidation&&!ue,Te);if(Oe[qe.name]&&(me.valid=!1,ue))break;!ue&&(un(Oe,qe.name)?Te?sft(r.errors,Oe,qe.name):Mi(r.errors,qe.name,Oe[qe.name]):Js(r.errors,qe.name))}pe&&await V(pe,ue,me)}}return me.valid},Q=()=>{for(const ge of l.unMount){const ue=un(i,ge);ue&&(ue._f.refs?ue._f.refs.every(me=>!bL(me)):!bL(ue._f.ref))&&Ne(ge)}l.unMount=new Set},X=(ge,ue)=>(ge&&ue&&Mi(s,ge,ue),!Sb(ye(),a)),Y=(ge,ue,me)=>wye(ge,l,{...o.mount?s:Pa(ue)?a:$h(ge)?{[ge]:ue}:ue},me,ue),W=ge=>NC(un(o.mount?s:a,ge,e.shouldUnregister?un(a,ge,[]):[])),ee=(ge,ue,me={})=>{const We=un(i,ge);let et=ue;if(We){const qe=We._f;qe&&(!qe.disabled&&Mi(s,ge,Iye(ue,qe)),et=II(qe.ref)&&ul(ue)?"":ue,_ye(qe.ref)?[...qe.ref.options].forEach(pe=>pe.selected=et.includes(pe.value)):qe.refs?DC(qe.ref)?qe.refs.length>1?qe.refs.forEach(pe=>(!pe.defaultChecked||!pe.disabled)&&(pe.checked=Array.isArray(et)?!!et.find(Te=>Te===pe.value):et===pe.value)):qe.refs[0]&&(qe.refs[0].checked=!!et):qe.refs.forEach(pe=>pe.checked=pe.value===et):Pq(qe.ref)?qe.ref.value="":(qe.ref.value=et,qe.ref.type||p.values.next({name:ge,values:{...s}})))}(me.shouldDirty||me.shouldTouch)&&A(ge,et,me.shouldTouch,me.shouldDirty,!0),me.shouldValidate&&Ce(ge)},J=(ge,ue,me)=>{for(const We in ue){const et=ue[We],qe=`${ge}.${We}`,pe=un(i,qe);(l.array.has(ge)||!NI(et)||pe&&!pe._f)&&!vO(et)?J(qe,et,me):ee(qe,et,me)}},K=(ge,ue,me={})=>{const We=un(i,ge),et=l.array.has(ge),qe=ql(ue);Mi(s,ge,qe),et?(p.array.next({name:ge,values:{...s}}),(h.isDirty||h.dirtyFields)&&me.shouldDirty&&p.state.next({name:ge,dirtyFields:m3(a,s),isDirty:X(ge,qe)})):We&&!We._f&&!ul(qe)?J(ge,qe,me):ee(ge,qe,me),Sae(ge,l)&&p.state.next({...r}),p.values.next({name:ge,values:{...s}}),!o.mount&&t()},ne=async ge=>{const ue=ge.target;let me=ue.name,We=!0;const et=un(i,me),qe=()=>ue.type?yL(et._f):gye(ge),pe=Te=>{We=Number.isNaN(Te)||Te===un(s,me,Te)};if(et){let Te,Oe;const De=qe(),je=ge.type===RI.BLUR||ge.type===RI.FOCUS_OUT,Ot=!dft(et._f)&&!n.resolver&&!un(r.errors,me)&&!et._f.deps||fft(je,un(r.touchedFields,me),r.isSubmitted,v,b),Bt=Sae(me,l,je);Mi(s,me,De),je?(et._f.onBlur&&et._f.onBlur(ge),c&&c(0)):et._f.onChange&&et._f.onChange(ge);const Xt=A(me,De,je,!1),St=!Zc(Xt)||Bt;if(!je&&p.values.next({name:me,type:ge.type,values:{...s}}),Ot)return h.isValid&&T(),St&&p.state.next({name:me,...Bt?{}:Xt});if(!je&&Bt&&p.state.next({...r}),x(!0),n.resolver){const{errors:Kt}=await F([me]);if(pe(De),We){const pt=Cae(r.errors,i,me),At=Cae(Kt,i,pt.name||me);Te=At.error,me=At.name,Oe=Zc(Kt)}}else Te=(await kae(et,s,S,n.shouldUseNativeValidation))[me],pe(De),We&&(Te?Oe=!1:h.isValid&&(Oe=await V(i,!0)));We&&(et._f.deps&&Ce(et._f.deps),U(me,Oe,Te,Xt))}},j=(ge,ue)=>{if(un(r.errors,ue)&&ge.focus)return ge.focus(),1},Ce=async(ge,ue={})=>{let me,We;const et=T5(ge);if(x(!0),n.resolver){const qe=await P(Pa(ge)?ge:et);me=Zc(qe),We=ge?!et.some(pe=>un(qe,pe)):me}else ge?(We=(await Promise.all(et.map(async qe=>{const pe=un(i,qe);return await V(pe&&pe._f?{[qe]:pe}:pe)}))).every(Boolean),!(!We&&!r.isValid)&&T()):We=me=await V(i);return p.state.next({...!$h(ge)||h.isValid&&me!==r.isValid?{}:{name:ge},...n.resolver||!ge?{isValid:me}:{},errors:r.errors,isValidating:!1}),ue.shouldFocus&&!We&&zT(i,j,ge?et:l.mount),We},ye=ge=>{const ue={...a,...o.mount?s:{}};return Pa(ge)?ue:$h(ge)?un(ue,ge):ge.map(me=>un(ue,me))},te=(ge,ue)=>({invalid:!!un((ue||r).errors,ge),isDirty:!!un((ue||r).dirtyFields,ge),isTouched:!!un((ue||r).touchedFields,ge),error:un((ue||r).errors,ge)}),ve=ge=>{ge&&T5(ge).forEach(ue=>Js(r.errors,ue)),p.state.next({errors:ge?r.errors:{}})},Se=(ge,ue,me)=>{const We=(un(i,ge,{_f:{}})._f||{}).ref;Mi(r.errors,ge,{...ue,ref:We}),p.state.next({name:ge,errors:r.errors,isValid:!1}),me&&me.shouldFocus&&We&&We.focus&&We.focus()},he=(ge,ue)=>Z0(ge)?p.values.subscribe({next:me=>ge(Y(void 0,ue),me)}):Y(ge,ue,!0),Ne=(ge,ue={})=>{for(const me of ge?T5(ge):l.mount)l.mount.delete(me),l.array.delete(me),ue.keepValue||(Js(i,me),Js(s,me)),!ue.keepError&&Js(r.errors,me),!ue.keepDirty&&Js(r.dirtyFields,me),!ue.keepTouched&&Js(r.touchedFields,me),!n.shouldUnregister&&!ue.keepDefaultValue&&Js(a,me);p.values.next({values:{...s}}),p.state.next({...r,...ue.keepDirty?{isDirty:X()}:{}}),!ue.keepIsValid&&T()},Pe=({disabled:ge,name:ue,field:me,fields:We,value:et})=>{if(uf(ge)){const qe=ge?void 0:Pa(et)?yL(me?me._f:un(We,ue)._f):et;Mi(s,ue,qe),A(ue,qe,!1,!1,!0)}},Ze=(ge,ue={})=>{let me=un(i,ge);const We=uf(ue.disabled);return Mi(i,ge,{...me||{},_f:{...me&&me._f?me._f:{ref:{name:ge}},name:ge,mount:!0,...ue}}),l.mount.add(ge),me?Pe({field:me,disabled:ue.disabled,name:ge,value:ue.value}):_(ge,!0,ue.value),{...We?{disabled:ue.disabled}:{},...n.progressive?{required:!!ue.required,min:C2(ue.min),max:C2(ue.max),minLength:C2(ue.minLength),maxLength:C2(ue.maxLength),pattern:C2(ue.pattern)}:{},name:ge,onChange:ne,onBlur:ne,ref:et=>{if(et){Ze(ge,ue),me=un(i,ge);const qe=Pa(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,pe=uft(qe),Te=me._f.refs||[];if(pe?Te.find(Oe=>Oe===qe):qe===me._f.ref)return;Mi(i,ge,{_f:{...me._f,...pe?{refs:[...Te.filter(bL),qe,...Array.isArray(un(a,ge))?[{}]:[]],ref:{type:qe.type,name:ge}}:{ref:qe}}}),_(ge,!1,void 0,qe)}else me=un(i,ge,{}),me._f&&(me._f.mount=!1),(n.shouldUnregister||ue.shouldUnregister)&&!(bye(l.array,ge)&&o.action)&&l.unMount.add(ge)}}},st=()=>n.shouldFocusError&&zT(i,j,l.mount),Qe=ge=>{uf(ge)&&(p.state.next({disabled:ge}),zT(i,(ue,me)=>{let We=ge;const et=un(i,me);et&&uf(et._f.disabled)&&(We||(We=et._f.disabled)),ue.disabled=We},0,!1))},Je=(ge,ue)=>async me=>{let We;me&&(me.preventDefault&&me.preventDefault(),me.persist&&me.persist());let et=ql(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:qe,values:pe}=await F();r.errors=qe,et=pe}else await V(i);if(Js(r.errors,"root"),Zc(r.errors)){p.state.next({errors:{}});try{await ge(et,me)}catch(qe){We=qe}}else ue&&await ue({...r.errors},me),st(),setTimeout(st);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zc(r.errors)&&!We,submitCount:r.submitCount+1,errors:r.errors}),We)throw We},Ye=(ge,ue={})=>{un(i,ge)&&(Pa(ue.defaultValue)?K(ge,ql(un(a,ge))):(K(ge,ue.defaultValue),Mi(a,ge,ql(ue.defaultValue))),ue.keepTouched||Js(r.touchedFields,ge),ue.keepDirty||(Js(r.dirtyFields,ge),r.isDirty=ue.defaultValue?X(ge,ql(un(a,ge))):X()),ue.keepError||(Js(r.errors,ge),h.isValid&&T()),p.state.next({...r}))},nt=(ge,ue={})=>{const me=ge?ql(ge):a,We=ql(me),et=ge&&!Zc(ge)?We:a;if(ue.keepDefaultValues||(a=me),!ue.keepValues){if(ue.keepDirtyValues)for(const qe of l.mount)un(r.dirtyFields,qe)?Mi(et,qe,un(s,qe)):K(qe,un(et,qe));else{if(Rq&&Pa(ge))for(const qe of l.mount){const pe=un(i,qe);if(pe&&pe._f){const Te=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(II(Te)){const Oe=Te.closest("form");if(Oe){Oe.reset();break}}}}i={}}s=e.shouldUnregister?ue.keepDefaultValues?ql(a):{}:ql(et),p.array.next({values:{...et}}),p.values.next({values:{...et}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!o.mount&&t(),o.mount=!h.isValid||!!ue.keepIsValid||!!ue.keepDirtyValues,o.watch=!!e.shouldUnregister,p.state.next({submitCount:ue.keepSubmitCount?r.submitCount:0,isDirty:ue.keepDirty?r.isDirty:!!(ue.keepDefaultValues&&!Sb(ge,a)),isSubmitted:ue.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ue.keepDirtyValues?ue.keepDefaultValues&&s?m3(a,s):r.dirtyFields:ue.keepDefaultValues&&ge?m3(a,ge):{},touchedFields:ue.keepTouched?r.touchedFields:{},errors:ue.keepErrors?r.errors:{},isSubmitSuccessful:ue.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},tt=(ge,ue)=>nt(Z0(ge)?ge(s):ge,ue);return{control:{register:Ze,unregister:Ne,getFieldState:te,handleSubmit:Je,setError:Se,_executeSchema:F,_getWatch:Y,_getDirty:X,_updateValid:T,_removeUnmounted:Q,_updateFieldArray:k,_updateDisabledField:Pe,_getFieldArray:W,_reset:nt,_resetDefaultValues:()=>Z0(n.defaultValues)&&n.defaultValues().then(ge=>{tt(ge,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:ge=>{r={...r,...ge}},_disableForm:Qe,_subjects:p,_proxyFormState:h,_setErrors:I,get _fields(){return i},get _formValues(){return s},get _state(){return o},set _state(ge){o=ge},get _defaultValues(){return a},get _names(){return l},set _names(ge){l=ge},get _formState(){return r},set _formState(ge){r=ge},get _options(){return n},set _options(ge){n={...n,...ge}}},trigger:Ce,register:Ze,handleSubmit:Je,watch:he,setValue:K,getValues:ye,reset:tt,resetField:Ye,clearErrors:ve,unregister:Ne,setError:Se,setFocus:(ge,ue={})=>{const me=un(i,ge),We=me&&me._f;if(We){const et=We.refs?We.refs[0]:We.ref;et.focus&&(et.focus(),ue.shouldSelect&&et.select())}},getFieldState:te}}function Dye(e={}){const t=gn.useRef(),n=gn.useRef(),[r,i]=gn.useState({isDirty:!1,isValidating:!1,isLoading:Z0(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Z0(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...mft(e,()=>i(s=>({...s}))),formState:r});const a=t.current.control;return a._options=e,Dq({subject:a._subjects.state,next:s=>{Sye(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),gn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),gn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),gn.useEffect(()=>{e.values&&!Sb(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),gn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),gn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),gn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Oye(r,a),t.current}const Ch=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Lq=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let a;if(e!=null)a=e;else if(i.includes(t))a=t;else if(i.length>0)a=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:a}},jT=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,utils:s,timezone:o})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,o));n&&s.isBefore(i,l)&&(i=l),t&&s.isAfter(r,l)&&(r=l);let c=e,d=e;for(s.isBefore(e,i)&&(c=i,d=null),s.isAfter(e,r)&&(d&&(d=r),c=null);c||d;){if(c&&s.isAfter(c,r)&&(c=null),d&&s.isBefore(d,i)&&(d=null),c){if(!a(c))return c;c=s.addDays(c,1)}if(d){if(!a(d))return d;d=s.addDays(d,-1)}}return null},gft=(e,t)=>t==null||!e.isValid(t)?null:t,Fo=(e,t,n)=>t==null||!e.isValid(t)?n:t,bft=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),$q=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},hB=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},Fq=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),pf=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},yft=["year","month","day"],VO=e=>yft.includes(e),ik=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return Ch(n,["year"])?i.year:Ch(n,["month"])?i.month:Ch(n,["day"])?i.dayOfMonth:Ch(n,["month","year"])?`${i.month} ${i.year}`:Ch(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},vft=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Nye=["hours","minutes","seconds"],WS=e=>Nye.includes(e),w0=e=>Nye.includes(e)||e==="meridiem",Oft=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,ak=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Sft=(e,t,n,r)=>{const i=ak(r.getHours(e),t,n);return r.setHours(e,i)},_ae=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),PC=(e,t)=>(n,r)=>e?t.isAfter(n,r):_ae(n,t)>_ae(r,t),MI=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return Ch(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:Ch(n,["minutes"])?i.minutes:Ch(n,["seconds"])?i.seconds:Ch(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:Ch(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},cf={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Eft=e=>Math.max(...e.map(t=>{var n;return(n=cf[t.type])!=null?n:1})),_2=(e,t,n)=>{if(t===cf.year)return e.startOfYear(n);if(t===cf.month)return e.startOfMonth(n);if(t===cf.day)return e.startOfDay(n);let r=n;return t{var a;let s=i?i():_2(t,n,Fq(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=_2(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=_2(t,n,e.maxDate));const o=PC((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&o(e.minTime,s)&&(s=_2(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:hB(t,s,e.minTime))),e.maxTime!=null&&o(s,e.maxTime)&&(s=_2(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:hB(t,s,e.maxTime))),s},Pye=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Tft=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},v6=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),a=e.startOfWeek(i),s=e.endOfWeek(i);let o=a;for(;e.isBefore(o,s);)r.push(o),o=e.addDays(o,1);return r.map(l=>e.formatByString(l,n))},Mye=(e,t,n,r)=>{switch(n){case"month":return $q(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return v6(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(a=>e.formatByString(a,r))}default:return[]}},Lye=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,i.format)}const a=n.toString();return i.hasLeadingZerosInInput?Lye(e,a,i.maxLength):a},xft=(e,t,n,r,i,a,s)=>{const o=Tft(r),l=r==="Home",c=r==="End",d=n.value===""||l||c,h=()=>{const b=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),v=x=>$ye(e,t,x,b,n),S=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let T=parseInt(n.value,10)+o*S;if(d){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);o>0||l?T=b.minimum:T=b.maximum}return T%S!==0&&((o<0||l)&&(T+=S-(S+T)%S),(o>0||c)&&(T-=T%S)),T>b.maximum?v(b.minimum+(T-b.maximum-1)%(b.maximum-b.minimum+1)):T{const b=Mye(e,t,n.type,n.format);if(b.length===0)return n.value;if(d)return o>0||l?b[0]:b[b.length-1];const S=(b.indexOf(n.value)+b.length+o)%b.length;return b[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():p()},Bq=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},OO=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Fye=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},Aae=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Bye=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Uye=(e,t,n,r,i)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return Bye(e,t,i)?e.formatByString(e.setYear(a,1),i)==="0001":e.formatByString(e.setYear(a,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(a),i).length>1;case"day":return e.formatByString(e.startOfMonth(a),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),i).length>1;case"hours":return e.formatByString(e.setHours(a,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(a,1),i).length>1;default:throw new Error("Invalid section type")}},Cft=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},Rae=(e,t,n,r,i,a,s,o)=>{let l="";const c=[],d=e.date(),h=k=>{if(k==="")return null;const C=Pye(e,k),I=Uye(e,t,C.contentType,C.type,k),_=s?I:C.contentType==="digit",A=i!=null&&e.isValid(i);let U=A?e.formatByString(i,k):"",F=null;if(_)if(I)F=U===""?e.formatByString(d,k).length:U.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${k} should have a 'maxDigitNumber' property on it's adapter`);F=C.maxLength,A&&(U=Lye(e,U,F))}return c.push($({},C,{format:k,maxLength:F,value:U,placeholder:kft(e,t,n,C,k),hasLeadingZeros:I,hasLeadingZerosInFormat:I,hasLeadingZerosInInput:_,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,b=r,v=e.expandFormat(r);for(;v!==b;)if(b=v,v=e.expandFormat(b),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const S=v,w=Cft(e,S),T=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((k,C)=>C.length-k.length).join("|")})`,"g");let x="";for(let k=0;kF.start<=k&&F.end>=k),I=S[k],_=C!=null,A=`${x}${S.slice(k)}`,U=T.test(A);!_&&I.match(/([A-Za-z]+)/)&&U?(x=A.slice(0,T.lastIndex),k+=T.lastIndex-1):_&&(C==null?void 0:C.start)===k||(C==null?void 0:C.end)===k||(h(x),x="",c.length===0?l+=I:c[c.length-1].endSeparator+=I)}return h(x),c.map(k=>{const C=I=>{let _=I;return o&&_!==null&&_.includes(" ")&&(_=`⁩${_}⁦`),a==="spacious"&&["/",".","-"].includes(_)&&(_=` ${_} `),_};return k.startSeparator=C(k.startSeparator),k.endSeparator=C(k.endSeparator),k})},_ft=(e,t)=>{const n=t.some(o=>o.type==="day"),r=[],i=[];for(let o=0;o{const r=e.map(i=>{const a=Bq(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},Rft=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:s}=$q(e,n).reduce((o,l)=>{const c=e.getDaysInMonth(l);return c>o.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:o},{maxDaysInMonth:0,longestMonth:null});return{year:({format:o})=>({minimum:0,maximum:Bye(e,t,o)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:o})=>({minimum:1,maximum:o!=null&&e.isValid(o)?e.getDaysInMonth(o):a,longestMonth:s}),weekDay:({format:o,contentType:l})=>{if(l==="digit"){const c=v6(e,t,o).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:o})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),o)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),o))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},Ift=(e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const a=v6(e,t,n.format),s=e.formatByString(r,n.format),o=a.indexOf(s),c=a.indexOf(n.value)-o;return e.addDays(r,c)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,s=e.getHours(i);return a&&s>=12?e.addHours(i,-12):!a&&s<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}},Iae={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Dae=(e,t,n,r,i,a)=>[...r].sort((s,o)=>Iae[s.type]-Iae[o.type]).reduce((s,o)=>!a||o.modified?Ift(e,t,o,n,s):s,i),Dft=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Nft=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const d=c===0?null:c-1,h=c===e.length-1?null:c+1;n[c]={leftIndex:d,rightIndex:h}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let a=0,s=0,o=e.length-1;for(;o>=0;){s=e.findIndex((l,c)=>{var d;return c>=a&&((d=l.endSeparator)==null?void 0:d.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=a;l-=1)i[l]=o,r[o]=l,o-=1;a=s+1}return e.forEach((l,c)=>{const d=i[c],h=d===0?null:r[d-1],p=d===e.length-1?null:r[d+1];n[c]={leftIndex:h,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Pft=["value","referenceDate"],Es={emptyValue:null,getTodayValue:Fq,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ut(e,Pft);return t!=null&&r.utils.isValid(t)?t:n??wft(r)},cleanValue:gft,areValuesEqual:bft,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Uq={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:Fye(i(t),r),getValueStrFromSections:Aft,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Mft=["localeText"],pB=M.createContext(null),zye=function(t){var n;const{localeText:r}=t,i=ut(t,Mft),{utils:a,localeText:s}=(n=M.useContext(pB))!=null?n:{utils:void 0,localeText:void 0},o=Pt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:d,dateLibInstance:h,adapterLocale:p,localeText:b}=o,v=M.useMemo(()=>$({},b,s,r),[b,s,r]),S=M.useMemo(()=>{if(!c)return a||null;const x=new c({locale:p,formats:d,instance:h});if(!x.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return x},[c,p,d,h,a]),w=M.useMemo(()=>S?{minDate:S.date("1900-01-01T00:00:00.000"),maxDate:S.date("2099-12-31T00:00:00.000")}:null,[S]),T=M.useMemo(()=>({utils:S,defaultDates:w,localeText:v}),[w,S,v]);return D.jsx(pB.Provider,{value:T,children:l})},Lft=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:$({},e)}}}}),jye={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},$ft=jye;Lft(jye);const $f=()=>{const e=M.useContext(pB);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` + */const ll={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Lft=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function Aye(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=ll.MATCHES,baseSort:a=Lft,sorter:s=c=>c.sort((d,h)=>Uft(d,h,a))}=n,o=e.reduce(l,[]);return s(o).map(c=>{let{item:d}=c;return d});function l(c,d,h){const p=$ft(d,r,t,n),{rank:b,keyThreshold:v=i}=p;return b>=v&&c.push({...p,item:d,index:h}),c}}Aye.rankings=ll;function $ft(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:Rae(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Hft(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:c,keyIndex:d,keyThreshold:h}=a,{itemValue:p,attributes:b}=s,v=Rae(p,n,r),S=c;const{minRanking:w,maxRanking:T,threshold:x}=b;return v=ll.MATCHES?v=w:v>T&&(v=T),v>l&&(l=v,d=o,h=x,S=p),{rankedValue:S,rank:l,keyIndex:d,keyThreshold:h}},{rankedValue:e,rank:ll.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function Rae(e,t,n){return e=Iae(e,n),t=Iae(t,n),t.length>e.length?ll.NO_MATCH:e===t?ll.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ll.EQUAL:e.startsWith(t)?ll.STARTS_WITH:e.includes(` ${t}`)?ll.WORD_STARTS_WITH:e.includes(t)?ll.CONTAINS:t.length===1?ll.NO_MATCH:Fft(e).includes(t)?ll.ACRONYM:Bft(e,t))}function Fft(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function Bft(e,t){let n=0,r=0;function i(l,c,d){for(let h=d,p=c.length;h-1))return ll.NO_MATCH}const o=r-s;return a(o)}function Uft(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function Iae(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Mft(e)),e}function zft(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwn(e,t))n=e[t];else{if(t.includes("."))return jft(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function jft(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;iAye(Wft,n,{keys:["title","feature"]}),[n]),a=s=>{r(s.target.value)};return D.jsxs(hr,{children:[D.jsx(zg,{placeholder:"Choose from below",size:"small",sx:{width:1},value:n,onChange:a}),D.jsx(uE,{children:i.map(s=>D.jsxs(cm,{onClick:()=>t(s.feature,s.title),children:[D.jsx(wx,{children:s.icon}),D.jsx(Og,{children:s.title})]},s.feature))})]})}var Dq={},Yft=ha;Object.defineProperty(Dq,"__esModule",{value:!0});var y6=Dq.default=void 0,qft=Yft(pa()),Gft=D;y6=Dq.default=(0,qft.default)((0,Gft.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var Nq={},Zft=ha;Object.defineProperty(Nq,"__esModule",{value:!0});var Rye=Nq.default=void 0,Xft=Zft(pa()),Kft=D;Rye=Nq.default=(0,Xft.default)((0,Kft.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var FC=e=>e.type==="checkbox",OO=e=>e instanceof Date,ul=e=>e==null;const Iye=e=>typeof e=="object";var Os=e=>!ul(e)&&!Array.isArray(e)&&Iye(e)&&!OO(e),Dye=e=>Os(e)&&e.target?FC(e.target)?e.target.checked:e.target.value:e,Jft=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Nye=(e,t)=>e.has(Jft(t)),eht=e=>{const t=e.constructor&&e.constructor.prototype;return Os(t)&&t.hasOwnProperty("isPrototypeOf")},Pq=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ql(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Pq&&(e instanceof Blob||e instanceof FileList))&&(n||Os(e)))if(t=n?[]:{},!n&&!eht(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ql(e[r]));else return e;return t}var BC=e=>Array.isArray(e)?e.filter(Boolean):[],La=e=>e===void 0,un=(e,t,n)=>{if(!t||!Os(e))return n;const r=BC(t.split(/[,[\].]+?/)).reduce((i,a)=>ul(i)?i:i[a],e);return La(r)||r===e?La(e[t])?n:e[t]:r},uf=e=>typeof e=="boolean";const MI={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ff={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ip={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Pye=gn.createContext(null),Mq=()=>gn.useContext(Pye),Mye=e=>{const{children:t,...n}=e;return gn.createElement(Pye.Provider,{value:n},t)};var Lye=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==ff.all&&(t._proxyFormState[s]=!r||ff.all),n&&(n[s]=!0),e[s]}});return i},Zc=e=>Os(e)&&!Object.keys(e).length,$ye=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Zc(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||ff.all))},R5=e=>Array.isArray(e)?e:[e],Fye=(e,t,n)=>!e||!t||e===t||R5(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Lq(e){const t=gn.useRef(e);t.current=e,gn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function tht(e){const t=Mq(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=gn.useState(n._formState),l=gn.useRef(!0),c=gn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=gn.useRef(i);return d.current=i,Lq({disabled:r,next:h=>l.current&&Fye(d.current,h.name,a)&&$ye(h,c.current,n._updateFormState)&&o({...n._formState,...h}),subject:n._subjects.state}),gn.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Lye(s,n,c.current,!1)}var $h=e=>typeof e=="string",Bye=(e,t,n,r,i)=>$h(e)?(r&&t.watch.add(e),un(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),un(n,a))):(r&&(t.watchAll=!0),n);function Uye(e){const t=Mq(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=gn.useRef(r);o.current=r,Lq({disabled:a,subject:n._subjects.values,next:d=>{Fye(o.current,d.name,s)&&c(ql(Bye(o.current,n._names,d.values||n._formValues,!1,i)))}});const[l,c]=gn.useState(n._getWatch(r,i));return gn.useEffect(()=>n._removeUnmounted()),l}var $q=e=>/^\w*$/.test(e),zye=e=>BC(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Mi=(e,t,n)=>{let r=-1;const i=$q(t)?[t]:zye(t),a=i.length,s=a-1;for(;++r{const d=i._options.shouldUnregister||a,h=(p,b)=>{const v=un(i._fields,p);v&&(v._f.mount=b)};if(h(n,!0),d){const p=ql(un(i._options.defaultValues,n));Mi(i._defaultValues,n,p),La(un(i._formValues,n))&&Mi(i._formValues,n,p)}return()=>{(s?d&&!i._state.action:d)?i.unregister(n):h(n,!1)}},[n,i,s,a]),gn.useEffect(()=>{un(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:un(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...uf(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:gn.useCallback(d=>c.current.onChange({target:{value:Dye(d),name:n},type:MI.CHANGE}),[n]),onBlur:gn.useCallback(()=>c.current.onBlur({target:{value:un(i._formValues,n),name:n},type:MI.BLUR}),[n,i]),ref:d=>{const h=un(i._fields,n);h&&d&&(h._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:p=>d.setCustomValidity(p),reportValidity:()=>d.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!un(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!un(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!un(l.touchedFields,n)},error:{enumerable:!0,get:()=>un(l.errors,n)}})}}var nht=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Nae=e=>({isOnSubmit:!e||e===ff.onSubmit,isOnBlur:e===ff.onBlur,isOnChange:e===ff.onChange,isOnAll:e===ff.all,isOnTouch:e===ff.onTouched}),Pae=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const j2=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=un(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;j2(o,t)}else Os(o)&&j2(o,t)}}};var rht=(e,t,n)=>{const r=BC(un(e,n));return Mi(r,"root",t[n]),Mi(e,n,r),e},Fq=e=>e.type==="file",Z0=e=>typeof e=="function",LI=e=>{if(!Pq)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},I5=e=>$h(e),Bq=e=>e.type==="radio",$I=e=>e instanceof RegExp;const Mae={value:!1,isValid:!1},Lae={value:!0,isValid:!0};var jye=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!La(e[0].attributes.value)?La(e[0].value)||e[0].value===""?Lae:{value:e[0].value,isValid:!0}:Lae:Mae}return Mae};const $ae={isValid:!1,value:null};var Hye=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,$ae):$ae;function Fae(e,t,n="validate"){if(I5(e)||Array.isArray(e)&&e.every(I5)||uf(e)&&!e)return{type:n,message:I5(e)?e:"",ref:t}}var Lv=e=>Os(e)&&!$I(e)?e:{value:e,message:""},Bae=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:c,min:d,max:h,pattern:p,validate:b,name:v,valueAsNumber:S,mount:w,disabled:T}=e._f,x=un(t,v);if(!w||T)return{};const k=s?s[0]:a,C=Q=>{r&&k.reportValidity&&(k.setCustomValidity(uf(Q)?"":Q||""),k.reportValidity())},I={},_=Bq(a),A=FC(a),U=_||A,F=(S||Fq(a))&&La(a.value)&&La(x)||LI(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,M=nht.bind(null,v,n,I),V=(Q,X,Y,W=Ip.maxLength,ee=Ip.minLength)=>{const J=Q?X:Y;I[v]={type:Q?W:ee,message:J,ref:a,...M(Q?W:ee,J)}};if(i?!Array.isArray(x)||!x.length:o&&(!U&&(F||ul(x))||uf(x)&&!x||A&&!jye(s).isValid||_&&!Hye(s).isValid)){const{value:Q,message:X}=I5(o)?{value:!!o,message:o}:Lv(o);if(Q&&(I[v]={type:Ip.required,message:X,ref:k,...M(Ip.required,X)},!n))return C(X),I}if(!F&&(!ul(d)||!ul(h))){let Q,X;const Y=Lv(h),W=Lv(d);if(!ul(x)&&!isNaN(x)){const ee=a.valueAsNumber||x&&+x;ul(Y.value)||(Q=ee>Y.value),ul(W.value)||(X=eenew Date(new Date().toDateString()+" "+j),K=a.type=="time",ne=a.type=="week";$h(Y.value)&&x&&(Q=K?J(x)>J(Y.value):ne?x>Y.value:ee>new Date(Y.value)),$h(W.value)&&x&&(X=K?J(x)+Q.value,W=!ul(X.value)&&x.length<+X.value;if((Y||W)&&(V(Y,Q.message,X.message),!n))return C(I[v].message),I}if(p&&!F&&$h(x)){const{value:Q,message:X}=Lv(p);if($I(Q)&&!x.match(Q)&&(I[v]={type:Ip.pattern,message:X,ref:a,...M(Ip.pattern,X)},!n))return C(X),I}if(b){if(Z0(b)){const Q=await b(x,t),X=Fae(Q,k);if(X&&(I[v]={...X,...M(Ip.validate,X.message)},!n))return C(X.message),I}else if(Os(b)){let Q={};for(const X in b){if(!Zc(Q)&&!n)break;const Y=Fae(await b[X](x,t),k,X);Y&&(Q={...Y,...M(X,Y.message)},C(Y.message),n&&(I[v]=Q))}if(!Zc(Q)&&(I[v]={ref:k,...Q},!n))return I}}return C(!0),I};function iht(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},FI=e=>ul(e)||!Iye(e);function Eb(e,t){if(FI(e)||FI(t))return e===t;if(OO(e)&&OO(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(OO(a)&&OO(s)||Os(a)&&Os(s)||Array.isArray(a)&&Array.isArray(s)?!Eb(a,s):a!==s)return!1}}return!0}var Vye=e=>e.type==="select-multiple",sht=e=>Bq(e)||FC(e),bL=e=>LI(e)&&e.isConnected,Wye=e=>{for(const t in e)if(Z0(e[t]))return!0;return!1};function BI(e,t={}){const n=Array.isArray(e);if(Os(e)||n)for(const r in e)Array.isArray(e[r])||Os(e[r])&&!Wye(e[r])?(t[r]=Array.isArray(e[r])?[]:{},BI(e[r],t[r])):ul(e[r])||(t[r]=!0);return t}function Qye(e,t,n){const r=Array.isArray(e);if(Os(e)||r)for(const i in e)Array.isArray(e[i])||Os(e[i])&&!Wye(e[i])?La(t)||FI(n[i])?n[i]=Array.isArray(e[i])?BI(e[i],[]):{...BI(e[i])}:Qye(e[i],ul(t)?{}:t[i],n[i]):n[i]=!Eb(e[i],t[i]);return n}var S3=(e,t)=>Qye(e,t,BI(t)),Yye=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>La(e)?e:t?e===""?NaN:e&&+e:n&&$h(e)?new Date(e):r?r(e):e;function yL(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Fq(t)?t.files:Bq(t)?Hye(e.refs).value:Vye(t)?[...t.selectedOptions].map(({value:n})=>n):FC(t)?jye(e.refs).value:Yye(La(t.value)?e.ref.value:t.value,e)}var oht=(e,t,n,r)=>{const i={};for(const a of e){const s=un(t,a);s&&Mi(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},_T=e=>La(e)?e:$I(e)?e.source:Os(e)?$I(e.value)?e.value.source:e.value:e,lht=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Uae(e,t,n){const r=un(e,n);if(r||$q(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=un(t,a),o=un(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var uht=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,cht=(e,t)=>!BC(un(e,t)).length&&Js(e,t);const dht={mode:ff.onSubmit,reValidateMode:ff.onChange,shouldFocusError:!0};function fht(e={},t){let n={...dht,...e},r={submitCount:0,isDirty:!1,isLoading:Z0(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},a=Os(n.values)||Os(n.defaultValues)?ql(n.values||n.defaultValues)||{}:{},s=n.shouldUnregister?{}:ql(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const h={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:gL(),array:gL(),state:gL()},b=Nae(n.mode),v=Nae(n.reValidateMode),S=n.criteriaMode===ff.all,w=ge=>ue=>{clearTimeout(d),d=setTimeout(ge,ue)},T=async ge=>{if(h.isValid||ge){const ue=n.resolver?Zc((await F()).errors):await V(i,!0);ue!==r.isValid&&p.state.next({isValid:ue})}},x=ge=>h.isValidating&&p.state.next({isValidating:ge}),k=(ge,ue=[],me,We,et=!0,qe=!0)=>{if(We&&me){if(o.action=!0,qe&&Array.isArray(un(i,ge))){const pe=me(un(i,ge),We.argA,We.argB);et&&Mi(i,ge,pe)}if(qe&&Array.isArray(un(r.errors,ge))){const pe=me(un(r.errors,ge),We.argA,We.argB);et&&Mi(r.errors,ge,pe),cht(r.errors,ge)}if(h.touchedFields&&qe&&Array.isArray(un(r.touchedFields,ge))){const pe=me(un(r.touchedFields,ge),We.argA,We.argB);et&&Mi(r.touchedFields,ge,pe)}h.dirtyFields&&(r.dirtyFields=S3(a,s)),p.state.next({name:ge,isDirty:X(ge,ue),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Mi(s,ge,ue)},C=(ge,ue)=>{Mi(r.errors,ge,ue),p.state.next({errors:r.errors})},I=ge=>{r.errors=ge,p.state.next({errors:r.errors,isValid:!1})},_=(ge,ue,me,We)=>{const et=un(i,ge);if(et){const qe=un(s,ge,La(me)?un(a,ge):me);La(qe)||We&&We.defaultChecked||ue?Mi(s,ge,ue?qe:yL(et._f)):ee(ge,qe),o.mount&&T()}},A=(ge,ue,me,We,et)=>{let qe=!1,pe=!1;const Te={name:ge},Oe=!!(un(i,ge)&&un(i,ge)._f.disabled);if(!me||We){h.isDirty&&(pe=r.isDirty,r.isDirty=Te.isDirty=X(),qe=pe!==Te.isDirty);const De=Oe||Eb(un(a,ge),ue);pe=!!(!Oe&&un(r.dirtyFields,ge)),De||Oe?Js(r.dirtyFields,ge):Mi(r.dirtyFields,ge,!0),Te.dirtyFields=r.dirtyFields,qe=qe||h.dirtyFields&&pe!==!De}if(me){const De=un(r.touchedFields,ge);De||(Mi(r.touchedFields,ge,me),Te.touchedFields=r.touchedFields,qe=qe||h.touchedFields&&De!==me)}return qe&&et&&p.state.next(Te),qe?Te:{}},U=(ge,ue,me,We)=>{const et=un(r.errors,ge),qe=h.isValid&&uf(ue)&&r.isValid!==ue;if(e.delayError&&me?(c=w(()=>C(ge,me)),c(e.delayError)):(clearTimeout(d),c=null,me?Mi(r.errors,ge,me):Js(r.errors,ge)),(me?!Eb(et,me):et)||!Zc(We)||qe){const pe={...We,...qe&&uf(ue)?{isValid:ue}:{},errors:r.errors,name:ge};r={...r,...pe},p.state.next(pe)}x(!1)},F=async ge=>n.resolver(s,n.context,oht(ge||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),M=async ge=>{const{errors:ue}=await F(ge);if(ge)for(const me of ge){const We=un(ue,me);We?Mi(r.errors,me,We):Js(r.errors,me)}else r.errors=ue;return ue},V=async(ge,ue,me={valid:!0})=>{for(const We in ge){const et=ge[We];if(et){const{_f:qe,...pe}=et;if(qe){const Te=l.array.has(qe.name),Oe=await Bae(et,s,S,n.shouldUseNativeValidation&&!ue,Te);if(Oe[qe.name]&&(me.valid=!1,ue))break;!ue&&(un(Oe,qe.name)?Te?rht(r.errors,Oe,qe.name):Mi(r.errors,qe.name,Oe[qe.name]):Js(r.errors,qe.name))}pe&&await V(pe,ue,me)}}return me.valid},Q=()=>{for(const ge of l.unMount){const ue=un(i,ge);ue&&(ue._f.refs?ue._f.refs.every(me=>!bL(me)):!bL(ue._f.ref))&&Pe(ge)}l.unMount=new Set},X=(ge,ue)=>(ge&&ue&&Mi(s,ge,ue),!Eb(ye(),a)),Y=(ge,ue,me)=>Bye(ge,l,{...o.mount?s:La(ue)?a:$h(ge)?{[ge]:ue}:ue},me,ue),W=ge=>BC(un(o.mount?s:a,ge,e.shouldUnregister?un(a,ge,[]):[])),ee=(ge,ue,me={})=>{const We=un(i,ge);let et=ue;if(We){const qe=We._f;qe&&(!qe.disabled&&Mi(s,ge,Yye(ue,qe)),et=LI(qe.ref)&&ul(ue)?"":ue,Vye(qe.ref)?[...qe.ref.options].forEach(pe=>pe.selected=et.includes(pe.value)):qe.refs?FC(qe.ref)?qe.refs.length>1?qe.refs.forEach(pe=>(!pe.defaultChecked||!pe.disabled)&&(pe.checked=Array.isArray(et)?!!et.find(Te=>Te===pe.value):et===pe.value)):qe.refs[0]&&(qe.refs[0].checked=!!et):qe.refs.forEach(pe=>pe.checked=pe.value===et):Fq(qe.ref)?qe.ref.value="":(qe.ref.value=et,qe.ref.type||p.values.next({name:ge,values:{...s}})))}(me.shouldDirty||me.shouldTouch)&&A(ge,et,me.shouldTouch,me.shouldDirty,!0),me.shouldValidate&&Ce(ge)},J=(ge,ue,me)=>{for(const We in ue){const et=ue[We],qe=`${ge}.${We}`,pe=un(i,qe);(l.array.has(ge)||!FI(et)||pe&&!pe._f)&&!OO(et)?J(qe,et,me):ee(qe,et,me)}},K=(ge,ue,me={})=>{const We=un(i,ge),et=l.array.has(ge),qe=ql(ue);Mi(s,ge,qe),et?(p.array.next({name:ge,values:{...s}}),(h.isDirty||h.dirtyFields)&&me.shouldDirty&&p.state.next({name:ge,dirtyFields:S3(a,s),isDirty:X(ge,qe)})):We&&!We._f&&!ul(qe)?J(ge,qe,me):ee(ge,qe,me),Pae(ge,l)&&p.state.next({...r}),p.values.next({name:ge,values:{...s}}),!o.mount&&t()},ne=async ge=>{const ue=ge.target;let me=ue.name,We=!0;const et=un(i,me),qe=()=>ue.type?yL(et._f):Dye(ge),pe=Te=>{We=Number.isNaN(Te)||Te===un(s,me,Te)};if(et){let Te,Oe;const De=qe(),je=ge.type===MI.BLUR||ge.type===MI.FOCUS_OUT,Ot=!lht(et._f)&&!n.resolver&&!un(r.errors,me)&&!et._f.deps||uht(je,un(r.touchedFields,me),r.isSubmitted,v,b),jt=Pae(me,l,je);Mi(s,me,De),je?(et._f.onBlur&&et._f.onBlur(ge),c&&c(0)):et._f.onChange&&et._f.onChange(ge);const Xt=A(me,De,je,!1),St=!Zc(Xt)||jt;if(!je&&p.values.next({name:me,type:ge.type,values:{...s}}),Ot)return h.isValid&&T(),St&&p.state.next({name:me,...jt?{}:Xt});if(!je&&jt&&p.state.next({...r}),x(!0),n.resolver){const{errors:Kt}=await F([me]);if(pe(De),We){const pt=Uae(r.errors,i,me),At=Uae(Kt,i,pt.name||me);Te=At.error,me=At.name,Oe=Zc(Kt)}}else Te=(await Bae(et,s,S,n.shouldUseNativeValidation))[me],pe(De),We&&(Te?Oe=!1:h.isValid&&(Oe=await V(i,!0)));We&&(et._f.deps&&Ce(et._f.deps),U(me,Oe,Te,Xt))}},j=(ge,ue)=>{if(un(r.errors,ue)&&ge.focus)return ge.focus(),1},Ce=async(ge,ue={})=>{let me,We;const et=R5(ge);if(x(!0),n.resolver){const qe=await M(La(ge)?ge:et);me=Zc(qe),We=ge?!et.some(pe=>un(qe,pe)):me}else ge?(We=(await Promise.all(et.map(async qe=>{const pe=un(i,qe);return await V(pe&&pe._f?{[qe]:pe}:pe)}))).every(Boolean),!(!We&&!r.isValid)&&T()):We=me=await V(i);return p.state.next({...!$h(ge)||h.isValid&&me!==r.isValid?{}:{name:ge},...n.resolver||!ge?{isValid:me}:{},errors:r.errors,isValidating:!1}),ue.shouldFocus&&!We&&j2(i,j,ge?et:l.mount),We},ye=ge=>{const ue={...a,...o.mount?s:{}};return La(ge)?ue:$h(ge)?un(ue,ge):ge.map(me=>un(ue,me))},te=(ge,ue)=>({invalid:!!un((ue||r).errors,ge),isDirty:!!un((ue||r).dirtyFields,ge),isTouched:!!un((ue||r).touchedFields,ge),error:un((ue||r).errors,ge)}),ve=ge=>{ge&&R5(ge).forEach(ue=>Js(r.errors,ue)),p.state.next({errors:ge?r.errors:{}})},Se=(ge,ue,me)=>{const We=(un(i,ge,{_f:{}})._f||{}).ref;Mi(r.errors,ge,{...ue,ref:We}),p.state.next({name:ge,errors:r.errors,isValid:!1}),me&&me.shouldFocus&&We&&We.focus&&We.focus()},he=(ge,ue)=>Z0(ge)?p.values.subscribe({next:me=>ge(Y(void 0,ue),me)}):Y(ge,ue,!0),Pe=(ge,ue={})=>{for(const me of ge?R5(ge):l.mount)l.mount.delete(me),l.array.delete(me),ue.keepValue||(Js(i,me),Js(s,me)),!ue.keepError&&Js(r.errors,me),!ue.keepDirty&&Js(r.dirtyFields,me),!ue.keepTouched&&Js(r.touchedFields,me),!n.shouldUnregister&&!ue.keepDefaultValue&&Js(a,me);p.values.next({values:{...s}}),p.state.next({...r,...ue.keepDirty?{isDirty:X()}:{}}),!ue.keepIsValid&&T()},Me=({disabled:ge,name:ue,field:me,fields:We,value:et})=>{if(uf(ge)){const qe=ge?void 0:La(et)?yL(me?me._f:un(We,ue)._f):et;Mi(s,ue,qe),A(ue,qe,!1,!1,!0)}},Ze=(ge,ue={})=>{let me=un(i,ge);const We=uf(ue.disabled);return Mi(i,ge,{...me||{},_f:{...me&&me._f?me._f:{ref:{name:ge}},name:ge,mount:!0,...ue}}),l.mount.add(ge),me?Me({field:me,disabled:ue.disabled,name:ge,value:ue.value}):_(ge,!0,ue.value),{...We?{disabled:ue.disabled}:{},...n.progressive?{required:!!ue.required,min:_T(ue.min),max:_T(ue.max),minLength:_T(ue.minLength),maxLength:_T(ue.maxLength),pattern:_T(ue.pattern)}:{},name:ge,onChange:ne,onBlur:ne,ref:et=>{if(et){Ze(ge,ue),me=un(i,ge);const qe=La(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,pe=sht(qe),Te=me._f.refs||[];if(pe?Te.find(Oe=>Oe===qe):qe===me._f.ref)return;Mi(i,ge,{_f:{...me._f,...pe?{refs:[...Te.filter(bL),qe,...Array.isArray(un(a,ge))?[{}]:[]],ref:{type:qe.type,name:ge}}:{ref:qe}}}),_(ge,!1,void 0,qe)}else me=un(i,ge,{}),me._f&&(me._f.mount=!1),(n.shouldUnregister||ue.shouldUnregister)&&!(Nye(l.array,ge)&&o.action)&&l.unMount.add(ge)}}},ot=()=>n.shouldFocusError&&j2(i,j,l.mount),Qe=ge=>{uf(ge)&&(p.state.next({disabled:ge}),j2(i,(ue,me)=>{let We=ge;const et=un(i,me);et&&uf(et._f.disabled)&&(We||(We=et._f.disabled)),ue.disabled=We},0,!1))},Je=(ge,ue)=>async me=>{let We;me&&(me.preventDefault&&me.preventDefault(),me.persist&&me.persist());let et=ql(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:qe,values:pe}=await F();r.errors=qe,et=pe}else await V(i);if(Js(r.errors,"root"),Zc(r.errors)){p.state.next({errors:{}});try{await ge(et,me)}catch(qe){We=qe}}else ue&&await ue({...r.errors},me),ot(),setTimeout(ot);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zc(r.errors)&&!We,submitCount:r.submitCount+1,errors:r.errors}),We)throw We},Ye=(ge,ue={})=>{un(i,ge)&&(La(ue.defaultValue)?K(ge,ql(un(a,ge))):(K(ge,ue.defaultValue),Mi(a,ge,ql(ue.defaultValue))),ue.keepTouched||Js(r.touchedFields,ge),ue.keepDirty||(Js(r.dirtyFields,ge),r.isDirty=ue.defaultValue?X(ge,ql(un(a,ge))):X()),ue.keepError||(Js(r.errors,ge),h.isValid&&T()),p.state.next({...r}))},nt=(ge,ue={})=>{const me=ge?ql(ge):a,We=ql(me),et=ge&&!Zc(ge)?We:a;if(ue.keepDefaultValues||(a=me),!ue.keepValues){if(ue.keepDirtyValues)for(const qe of l.mount)un(r.dirtyFields,qe)?Mi(et,qe,un(s,qe)):K(qe,un(et,qe));else{if(Pq&&La(ge))for(const qe of l.mount){const pe=un(i,qe);if(pe&&pe._f){const Te=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(LI(Te)){const Oe=Te.closest("form");if(Oe){Oe.reset();break}}}}i={}}s=e.shouldUnregister?ue.keepDefaultValues?ql(a):{}:ql(et),p.array.next({values:{...et}}),p.values.next({values:{...et}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!o.mount&&t(),o.mount=!h.isValid||!!ue.keepIsValid||!!ue.keepDirtyValues,o.watch=!!e.shouldUnregister,p.state.next({submitCount:ue.keepSubmitCount?r.submitCount:0,isDirty:ue.keepDirty?r.isDirty:!!(ue.keepDefaultValues&&!Eb(ge,a)),isSubmitted:ue.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ue.keepDirtyValues?ue.keepDefaultValues&&s?S3(a,s):r.dirtyFields:ue.keepDefaultValues&&ge?S3(a,ge):{},touchedFields:ue.keepTouched?r.touchedFields:{},errors:ue.keepErrors?r.errors:{},isSubmitSuccessful:ue.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},tt=(ge,ue)=>nt(Z0(ge)?ge(s):ge,ue);return{control:{register:Ze,unregister:Pe,getFieldState:te,handleSubmit:Je,setError:Se,_executeSchema:F,_getWatch:Y,_getDirty:X,_updateValid:T,_removeUnmounted:Q,_updateFieldArray:k,_updateDisabledField:Me,_getFieldArray:W,_reset:nt,_resetDefaultValues:()=>Z0(n.defaultValues)&&n.defaultValues().then(ge=>{tt(ge,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:ge=>{r={...r,...ge}},_disableForm:Qe,_subjects:p,_proxyFormState:h,_setErrors:I,get _fields(){return i},get _formValues(){return s},get _state(){return o},set _state(ge){o=ge},get _defaultValues(){return a},get _names(){return l},set _names(ge){l=ge},get _formState(){return r},set _formState(ge){r=ge},get _options(){return n},set _options(ge){n={...n,...ge}}},trigger:Ce,register:Ze,handleSubmit:Je,watch:he,setValue:K,getValues:ye,reset:tt,resetField:Ye,clearErrors:ve,unregister:Pe,setError:Se,setFocus:(ge,ue={})=>{const me=un(i,ge),We=me&&me._f;if(We){const et=We.refs?We.refs[0]:We.ref;et.focus&&(et.focus(),ue.shouldSelect&&et.select())}},getFieldState:te}}function qye(e={}){const t=gn.useRef(),n=gn.useRef(),[r,i]=gn.useState({isDirty:!1,isValidating:!1,isLoading:Z0(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Z0(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...fht(e,()=>i(s=>({...s}))),formState:r});const a=t.current.control;return a._options=e,Lq({subject:a._subjects.state,next:s=>{$ye(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),gn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),gn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),gn.useEffect(()=>{e.values&&!Eb(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),gn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),gn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),gn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Lye(r,a),t.current}const Ch=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Uq=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let a;if(e!=null)a=e;else if(i.includes(t))a=t;else if(i.length>0)a=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:a}},H2=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,utils:s,timezone:o})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,o));n&&s.isBefore(i,l)&&(i=l),t&&s.isAfter(r,l)&&(r=l);let c=e,d=e;for(s.isBefore(e,i)&&(c=i,d=null),s.isAfter(e,r)&&(d&&(d=r),c=null);c||d;){if(c&&s.isAfter(c,r)&&(c=null),d&&s.isBefore(d,i)&&(d=null),c){if(!a(c))return c;c=s.addDays(c,1)}if(d){if(!a(d))return d;d=s.addDays(d,-1)}}return null},hht=(e,t)=>t==null||!e.isValid(t)?null:t,Fo=(e,t,n)=>t==null||!e.isValid(t)?n:t,pht=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),zq=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},hB=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},jq=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),pf=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},mht=["year","month","day"],WO=e=>mht.includes(e),sk=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return Ch(n,["year"])?i.year:Ch(n,["month"])?i.month:Ch(n,["day"])?i.dayOfMonth:Ch(n,["month","year"])?`${i.month} ${i.year}`:Ch(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},ght=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Gye=["hours","minutes","seconds"],YS=e=>Gye.includes(e),w0=e=>Gye.includes(e)||e==="meridiem",bht=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,ok=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,yht=(e,t,n,r)=>{const i=ok(r.getHours(e),t,n);return r.setHours(e,i)},zae=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),UC=(e,t)=>(n,r)=>e?t.isAfter(n,r):zae(n,t)>zae(r,t),UI=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return Ch(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:Ch(n,["minutes"])?i.minutes:Ch(n,["seconds"])?i.seconds:Ch(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:Ch(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},cf={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},vht=e=>Math.max(...e.map(t=>{var n;return(n=cf[t.type])!=null?n:1})),AT=(e,t,n)=>{if(t===cf.year)return e.startOfYear(n);if(t===cf.month)return e.startOfMonth(n);if(t===cf.day)return e.startOfDay(n);let r=n;return t{var a;let s=i?i():AT(t,n,jq(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=AT(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=AT(t,n,e.maxDate));const o=UC((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&o(e.minTime,s)&&(s=AT(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:hB(t,s,e.minTime))),e.maxTime!=null&&o(s,e.maxTime)&&(s=AT(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:hB(t,s,e.maxTime))),s},Zye=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Sht=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},v6=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),a=e.startOfWeek(i),s=e.endOfWeek(i);let o=a;for(;e.isBefore(o,s);)r.push(o),o=e.addDays(o,1);return r.map(l=>e.formatByString(l,n))},Xye=(e,t,n,r)=>{switch(n){case"month":return zq(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return v6(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(a=>e.formatByString(a,r))}default:return[]}},Kye=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,i.format)}const a=n.toString();return i.hasLeadingZerosInInput?Kye(e,a,i.maxLength):a},Eht=(e,t,n,r,i,a,s)=>{const o=Sht(r),l=r==="Home",c=r==="End",d=n.value===""||l||c,h=()=>{const b=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),v=x=>Jye(e,t,x,b,n),S=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let T=parseInt(n.value,10)+o*S;if(d){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);o>0||l?T=b.minimum:T=b.maximum}return T%S!==0&&((o<0||l)&&(T+=S-(S+T)%S),(o>0||c)&&(T-=T%S)),T>b.maximum?v(b.minimum+(T-b.maximum-1)%(b.maximum-b.minimum+1)):T{const b=Xye(e,t,n.type,n.format);if(b.length===0)return n.value;if(d)return o>0||l?b[0]:b[b.length-1];const S=(b.indexOf(n.value)+b.length+o)%b.length;return b[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():p()},Hq=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},SO=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),eve=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},jae=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),tve=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,nve=(e,t,n,r,i)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return tve(e,t,i)?e.formatByString(e.setYear(a,1),i)==="0001":e.formatByString(e.setYear(a,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(a),i).length>1;case"day":return e.formatByString(e.startOfMonth(a),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),i).length>1;case"hours":return e.formatByString(e.setHours(a,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(a,1),i).length>1;default:throw new Error("Invalid section type")}},Tht=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},Hae=(e,t,n,r,i,a,s,o)=>{let l="";const c=[],d=e.date(),h=k=>{if(k==="")return null;const C=Zye(e,k),I=nve(e,t,C.contentType,C.type,k),_=s?I:C.contentType==="digit",A=i!=null&&e.isValid(i);let U=A?e.formatByString(i,k):"",F=null;if(_)if(I)F=U===""?e.formatByString(d,k).length:U.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${k} should have a 'maxDigitNumber' property on it's adapter`);F=C.maxLength,A&&(U=Kye(e,U,F))}return c.push($({},C,{format:k,maxLength:F,value:U,placeholder:wht(e,t,n,C,k),hasLeadingZeros:I,hasLeadingZerosInFormat:I,hasLeadingZerosInInput:_,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,b=r,v=e.expandFormat(r);for(;v!==b;)if(b=v,v=e.expandFormat(b),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const S=v,w=Tht(e,S),T=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((k,C)=>C.length-k.length).join("|")})`,"g");let x="";for(let k=0;kF.start<=k&&F.end>=k),I=S[k],_=C!=null,A=`${x}${S.slice(k)}`,U=T.test(A);!_&&I.match(/([A-Za-z]+)/)&&U?(x=A.slice(0,T.lastIndex),k+=T.lastIndex-1):_&&(C==null?void 0:C.start)===k||(C==null?void 0:C.end)===k||(h(x),x="",c.length===0?l+=I:c[c.length-1].endSeparator+=I)}return h(x),c.map(k=>{const C=I=>{let _=I;return o&&_!==null&&_.includes(" ")&&(_=`⁩${_}⁦`),a==="spacious"&&["/",".","-"].includes(_)&&(_=` ${_} `),_};return k.startSeparator=C(k.startSeparator),k.endSeparator=C(k.endSeparator),k})},xht=(e,t)=>{const n=t.some(o=>o.type==="day"),r=[],i=[];for(let o=0;o{const r=e.map(i=>{const a=Hq(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},Cht=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:s}=zq(e,n).reduce((o,l)=>{const c=e.getDaysInMonth(l);return c>o.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:o},{maxDaysInMonth:0,longestMonth:null});return{year:({format:o})=>({minimum:0,maximum:tve(e,t,o)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:o})=>({minimum:1,maximum:o!=null&&e.isValid(o)?e.getDaysInMonth(o):a,longestMonth:s}),weekDay:({format:o,contentType:l})=>{if(l==="digit"){const c=v6(e,t,o).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:o})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),o)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),o))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},_ht=(e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const a=v6(e,t,n.format),s=e.formatByString(r,n.format),o=a.indexOf(s),c=a.indexOf(n.value)-o;return e.addDays(r,c)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,s=e.getHours(i);return a&&s>=12?e.addHours(i,-12):!a&&s<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}},Vae={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Wae=(e,t,n,r,i,a)=>[...r].sort((s,o)=>Vae[s.type]-Vae[o.type]).reduce((s,o)=>!a||o.modified?_ht(e,t,o,n,s):s,i),Aht=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Rht=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const d=c===0?null:c-1,h=c===e.length-1?null:c+1;n[c]={leftIndex:d,rightIndex:h}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let a=0,s=0,o=e.length-1;for(;o>=0;){s=e.findIndex((l,c)=>{var d;return c>=a&&((d=l.endSeparator)==null?void 0:d.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=a;l-=1)i[l]=o,r[o]=l,o-=1;a=s+1}return e.forEach((l,c)=>{const d=i[c],h=d===0?null:r[d-1],p=d===e.length-1?null:r[d+1];n[c]={leftIndex:h,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Iht=["value","referenceDate"],Ss={emptyValue:null,getTodayValue:jq,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=st(e,Iht);return t!=null&&r.utils.isValid(t)?t:n??Oht(r)},cleanValue:hht,areValuesEqual:pht,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Vq={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:eve(i(t),r),getValueStrFromSections:kht,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Dht=["localeText"],pB=P.createContext(null),rve=function(t){var n;const{localeText:r}=t,i=st(t,Dht),{utils:a,localeText:s}=(n=P.useContext(pB))!=null?n:{utils:void 0,localeText:void 0},o=Rt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:d,dateLibInstance:h,adapterLocale:p,localeText:b}=o,v=P.useMemo(()=>$({},b,s,r),[b,s,r]),S=P.useMemo(()=>{if(!c)return a||null;const x=new c({locale:p,formats:d,instance:h});if(!x.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return x},[c,p,d,h,a]),w=P.useMemo(()=>S?{minDate:S.date("1900-01-01T00:00:00.000"),maxDate:S.date("2099-12-31T00:00:00.000")}:null,[S]),T=P.useMemo(()=>({utils:S,defaultDates:w,localeText:v}),[w,S,v]);return D.jsx(pB.Provider,{value:T,children:l})},Nht=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:$({},e)}}}}),ive={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},Pht=ive;Nht(ive);const $f=()=>{const e=P.useContext(pB);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=M.useMemo(()=>$({},$ft,e.localeText),[e.localeText]);return M.useMemo(()=>$({},e,{localeText:t}),[e,t])},wr=()=>$f().utils,by=()=>$f().defaultDates,ws=()=>$f().localeText,Zg=e=>{const t=wr(),n=M.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Hye(e){return qt("MuiPickersToolbar",e)}Gt("MuiPickersToolbar",["root","content"]);const Fft=e=>{const{classes:t,isLandscape:n}=e;return Wt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Hye,t)},Bft=Le("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>$({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Uft=Le("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),zq=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiPickersToolbar"}),{children:i,className:a,toolbarTitle:s,hidden:o,titleId:l}=r,c=r,d=Fft(c);return o?null:D.jsxs(Bft,{ref:n,className:bt(d.root,a),ownerState:c,children:[D.jsx(Xr,{color:"text.secondary",variant:"overline",id:l,children:s}),D.jsx(Uft,{className:d.content,ownerState:c,children:i})]})});function zft(e){return qt("MuiDatePickerToolbar",e)}Gt("MuiDatePickerToolbar",["root","title"]);const jft=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],Hft=e=>{const{classes:t}=e;return Wt({root:["root"],title:["title"]},zft,t)},Vft=Le(zq,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wft=Le(Xr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>$({},e.isLandscape&&{margin:"auto 16px auto auto"})),Qft=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:a,toolbarFormat:s,toolbarPlaceholder:o="––",views:l}=r,c=ut(r,jft),d=wr(),h=ws(),p=Hft(r),b=M.useMemo(()=>{if(!i)return o;const S=ik(d,{format:s,views:l},!0);return d.formatByString(i,S)},[i,s,o,d,l]),v=r;return D.jsx(Vft,$({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:D.jsx(Wft,{variant:"h4",align:a?"left":"center",ownerState:v,className:p.title,children:b})}))}),MC=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>$({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Vye(e,t){var n,r,i,a;const s=wr(),o=by(),l=Pt({props:e,name:t}),c=M.useMemo(()=>{var h;return((h=l.localeText)==null?void 0:h.toolbarTitle)==null?l.localeText:$({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(n=l.slots)!=null?n:MC(l.components);return $({},l,{localeText:c},Lq({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:Fo(s,l.minDate,o.minDate),maxDate:Fo(s,l.maxDate,o.maxDate),slots:$({toolbar:Qft},d),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const Yft=ts(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qft=ts(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Gft=ts(D.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Wye=ts(D.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Zft=ts(D.jsxs(M.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Xft=ts(D.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Kft=ts(D.jsxs(M.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),Jft=ts(D.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function eht(e){return qt("MuiPickersArrowSwitcher",e)}Gt("MuiPickersArrowSwitcher",["root","spacer","button"]);const tht=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],nht=["ownerState"],rht=["ownerState"],iht=Le("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),aht=Le("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Nae=Le(ys,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>$({},e.hidden&&{visibility:"hidden"})),sht=e=>{const{classes:t}=e;return Wt({root:["root"],spacer:["spacer"],button:["button"]},eht,t)},Qye=M.forwardRef(function(t,n){var r,i,a,s;const l=Ki().direction==="rtl",c=Pt({props:t,name:"MuiPickersArrowSwitcher"}),{children:d,className:h,slots:p,slotProps:b,isNextDisabled:v,isNextHidden:S,onGoToNext:w,nextLabel:T,isPreviousDisabled:x,isPreviousHidden:k,onGoToPrevious:C,previousLabel:I}=c,_=ut(c,tht),A=c,U=sht(A),F={isDisabled:v,isHidden:S,goTo:w,label:T},P={isDisabled:x,isHidden:k,goTo:C,label:I},V=(r=p==null?void 0:p.previousIconButton)!=null?r:Nae,Q=mr({elementType:V,externalSlotProps:b==null?void 0:b.previousIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"end",onClick:P.goTo},ownerState:$({},A,{hidden:P.isHidden}),className:U.button}),X=(i=p==null?void 0:p.nextIconButton)!=null?i:Nae,Y=mr({elementType:X,externalSlotProps:b==null?void 0:b.nextIconButton,additionalProps:{size:"medium",title:F.label,"aria-label":F.label,disabled:F.isDisabled,edge:"start",onClick:F.goTo},ownerState:$({},A,{hidden:F.isHidden}),className:U.button}),W=(a=p==null?void 0:p.leftArrowIcon)!=null?a:qft,ee=mr({elementType:W,externalSlotProps:b==null?void 0:b.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),J=ut(ee,nht),K=(s=p==null?void 0:p.rightArrowIcon)!=null?s:Gft,ne=mr({elementType:K,externalSlotProps:b==null?void 0:b.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=ut(ne,rht);return D.jsxs(iht,$({ref:n,className:bt(U.root,h),ownerState:A},_,{children:[D.jsx(V,$({},Q,{children:l?D.jsx(K,$({},j)):D.jsx(W,$({},J))})),d?D.jsx(Xr,{variant:"subtitle1",component:"span",children:d}):D.jsx(aht,{className:U.spacer,ownerState:A}),D.jsx(X,$({},Y,{children:l?D.jsx(W,$({},J)):D.jsx(K,$({},j))}))]}))}),sk=36,O6=2,S6=320,oht=280,E6=334,Yye=232,eT=48,lht=Le(xDe)({[`& .${yT.container}`]:{outline:0},[`& .${yT.paper}`]:{outline:0,minWidth:S6}}),uht=Le(BDe)({"&:first-of-type":{padding:0}});function cht(e){var t,n;const{children:r,onDismiss:i,open:a,slots:s,slotProps:o}=e,l=(t=s==null?void 0:s.dialog)!=null?t:lht,c=(n=s==null?void 0:s.mobileTransition)!=null?n:um;return D.jsx(l,$({open:a,onClose:i},o==null?void 0:o.dialog,{TransitionComponent:c,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:D.jsx(uht,{children:r})}))}function dht(e){return qt("MuiPickersPopper",e)}Gt("MuiPickersPopper",["root","paper"]);function Zv(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const fht=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},LI=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?LI(t.shadowRoot):t:null},jq="@media (pointer: fine)",hht="@media (prefers-reduced-motion: reduce)",WO=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Pae=WO&&WO[1]?parseInt(WO[1],10):null,Mae=WO&&WO[2]?parseInt(WO[2],10):null,pht=Pae&&Pae<10||Mae&&Mae<13||!1,qye=()=>sE(hht,{defaultMatches:!1})||pht,mht=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ght=e=>{const{classes:t}=e;return Wt({root:["root"],paper:["paper"]},dht,t)},bht=Le(iE,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),yht=Le(po,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>$({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function vht(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const s=on(l=>{if(!a.current)return;const c=r.current;r.current=!1;const d=_i(i.current);if(!i.current||"clientX"in l&&vht(l,d))return;if(n.current){n.current=!1;return}let h;l.composedPath?h=l.composedPath().indexOf(i.current)>-1:h=!d.documentElement.contains(l.target)||i.current.contains(l.target),!h&&!c&&t(l)}),o=()=>{r.current=!0};return M.useEffect(()=>{if(e){const l=_i(i.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",c)}}},[e,s]),M.useEffect(()=>{if(e){const l=_i(i.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[i,o,o]}const Sht=M.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:a,paperSlotProps:s,paperClasses:o,onPaperClick:l,onPaperTouchStart:c}=e,d=ut(e,mht),h=$({},i,{placement:r}),p=mr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:o,ownerState:h});return D.jsx(n,$({},d,p,{onClick:b=>{var v;l(b),(v=p.onClick)==null||v.call(p,b)},onTouchStart:b=>{var v;c(b),(v=p.onTouchStart)==null||v.call(p,b)},ownerState:h,children:a}))});function Eht(e){var t,n,r,i;const a=Pt({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:o,containerRef:l=null,shouldRestoreFocus:c,onBlur:d,onDismiss:h,open:p,role:b,placement:v,slots:S,slotProps:w,reduceAnimations:T}=a;M.useEffect(()=>{function ne(j){p&&(j.key==="Escape"||j.key==="Esc")&&h()}return document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)}},[h,p]);const x=M.useRef(null);M.useEffect(()=>{b==="tooltip"||c&&!c()||(p?x.current=LI(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[p,b,c]);const[k,C,I]=Oht(p,d??h),_=M.useRef(null),A=rr(_,l),U=rr(A,k),F=a,P=ght(F),V=qye(),Q=T??V,X=ne=>{ne.key==="Escape"&&(ne.stopPropagation(),h())},Y=((t=S==null?void 0:S.desktopTransition)!=null?t:Q)?um:vR,W=(n=S==null?void 0:S.desktopTrapFocus)!=null?n:ace,ee=(r=S==null?void 0:S.desktopPaper)!=null?r:yht,J=(i=S==null?void 0:S.popper)!=null?i:bht,K=mr({elementType:J,externalSlotProps:w==null?void 0:w.popper,additionalProps:{transition:!0,role:b,open:p,anchorEl:s,placement:v,onKeyDown:X},className:P.root,ownerState:a});return D.jsx(J,$({},K,{children:({TransitionProps:ne,placement:j})=>D.jsx(W,$({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:b==="tooltip",isEnabled:()=>!0},w==null?void 0:w.desktopTrapFocus,{children:D.jsx(Y,$({},ne,w==null?void 0:w.desktopTransition,{children:D.jsx(Sht,{PaperComponent:ee,ownerState:F,popperPlacement:j,ref:U,onPaperClick:C,onPaperTouchStart:I,paperClasses:P.paper,paperSlotProps:w==null?void 0:w.desktopPaper,children:o})}))}))}))}function wht(e){return qt("MuiPickersToolbarText",e)}const Lae=Gt("MuiPickersToolbarText",["root","selected"]),Tht=["className","selected","value"],xht=e=>{const{classes:t,selected:n}=e;return Wt({root:["root",n&&"selected"]},wht,t)},kht=Le(Xr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Lae.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Lae.selected}`]:{color:(e.vars||e).palette.text.primary}})),Hq=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:a}=r,s=ut(r,Tht),o=xht(r);return D.jsx(kht,$({ref:n,className:bt(i,o.root),component:"span"},s,{children:a}))}),Cht=["align","className","selected","typographyClassName","value","variant","width"],_ht=e=>{const{classes:t}=e;return Wt({root:["root"]},Hye,t)},Aht=Le(lo,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),qu=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:a,selected:s,typographyClassName:o,value:l,variant:c,width:d}=r,h=ut(r,Cht),p=_ht(r);return D.jsx(Aht,$({variant:"text",ref:n,className:bt(a,p.root)},d?{sx:{width:d}}:{},h,{children:D.jsx(Hq,{align:i,className:o,variant:c,value:l,selected:s})}))}),Vq=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var a,s;const o=wr(),l=M.useRef(n),c=(a=t??l.current)!=null?a:i.emptyValue,d=M.useMemo(()=>i.getTimezone(o,c),[o,i,c]),h=on(S=>d==null?S:i.setTimezone(o,d,S)),p=(s=e??d)!=null?s:"default",b=M.useMemo(()=>i.setTimezone(o,p,c),[i,o,p,c]),v=on((S,...w)=>{const T=h(S);r==null||r(T,...w)});return{value:b,handleValueChange:v,timezone:p}},DE=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:a})=>{const[s,o]=Ls({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=on((c,...d)=>{o(c),i==null||i(c,...d)});return Vq({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:a})};function Gye(e,t,n,r){const{value:i,onError:a}=e,s=$f(),o=M.useRef(r),l=t({adapter:s,value:i,props:e});return M.useEffect(()=>{a&&!n(l,o.current)&&a(l,i),o.current=l},[n,a,o,l,i]),l}const Rht=e=>{const t=wr(),n=ws(),r=$f(),a=Ki().direction==="rtl",{valueManager:s,fieldValueManager:o,valueType:l,validator:c,internalProps:d,internalProps:{value:h,defaultValue:p,referenceDate:b,onChange:v,format:S,formatDensity:w="dense",selectedSections:T,onSelectedSectionsChange:x,shouldRespectLeadingZeros:k=!1,timezone:C}}=e,{timezone:I,value:_,handleValueChange:A}=Vq({timezone:C,value:h,defaultValue:p,onChange:v,valueManager:s}),U=M.useMemo(()=>Rft(t,I),[t,I]),F=M.useCallback((ve,Se=null)=>o.getSectionsFromValue(t,ve,Se,a,he=>Rae(t,I,n,S,he,w,k,a)),[o,S,n,a,k,t,w,I]),P=M.useMemo(()=>o.getValueStrFromSections(F(s.emptyValue),a),[o,F,s.emptyValue,a]),[V,Q]=M.useState(()=>{const ve=F(_),Se={sections:ve,value:_,referenceValue:s.emptyValue,tempValueStrAndroid:null},he=Eft(ve),Ne=s.getInitialReferenceValue({referenceDate:b,value:_,utils:t,props:d,granularity:he,timezone:I});return $({},Se,{referenceValue:Ne})}),[X,Y]=Ls({controlled:T,default:null,name:"useField",state:"selectedSectionIndexes"}),W=ve=>{Y(ve),x==null||x(ve),Q(Se=>$({},Se,{selectedSectionQuery:null}))},ee=M.useMemo(()=>{if(X==null)return null;if(X==="all")return{startIndex:0,endIndex:V.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof X=="number")return{startIndex:X,endIndex:X};if(typeof X=="string"){const ve=V.sections.findIndex(Se=>Se.type===X);return{startIndex:ve,endIndex:ve}}return X},[X,V.sections]),J=({value:ve,referenceValue:Se,sections:he})=>{if(Q(Pe=>$({},Pe,{sections:he,value:ve,referenceValue:Se,tempValueStrAndroid:null})),s.areValuesEqual(t,V.value,ve))return;const Ne={validationError:c({adapter:r,value:ve,props:$({},d,{value:ve,timezone:I})})};A(ve,Ne)},K=(ve,Se)=>{const he=[...V.sections];return he[ve]=$({},he[ve],{value:Se,modified:!0}),Fye(he,a)},ne=()=>{J({value:s.emptyValue,referenceValue:V.referenceValue,sections:F(s.emptyValue)})},j=()=>{if(ee==null)return;const ve=V.sections[ee.startIndex],Se=o.getActiveDateManager(t,V,ve),Ne=Se.getSections(V.sections).filter(Qe=>Qe.value!=="").length===(ve.value===""?0:1),Pe=K(ee.startIndex,""),Ze=Ne?null:t.date(new Date("")),st=Se.getNewValuesFromNewActiveDate(Ze);(Ze!=null&&!t.isValid(Ze))!=(Se.date!=null&&!t.isValid(Se.date))?J($({},st,{sections:Pe})):Q(Qe=>$({},Qe,st,{sections:Pe,tempValueStrAndroid:null}))},Ce=ve=>{const Se=(Pe,Ze)=>{const st=t.parse(Pe,S);if(st==null||!t.isValid(st))return null;const Qe=Rae(t,I,n,S,st,w,k,a);return Dae(t,I,st,Qe,Ze,!1)},he=o.parseValueStr(ve,V.referenceValue,Se),Ne=o.updateReferenceValue(t,he,V.referenceValue);J({value:he,referenceValue:Ne,sections:F(he,V.sections)})},ye=({activeSection:ve,newSectionValue:Se,shouldGoToNextSection:he})=>{he&&ee&&ee.startIndex$({},Ye,Qe,{sections:Pe,tempValueStrAndroid:null}))},te=ve=>Q(Se=>$({},Se,{tempValueStrAndroid:ve}));return M.useEffect(()=>{const ve=F(V.value);Q(Se=>$({},Se,{sections:ve}))},[S,t.locale]),M.useEffect(()=>{let ve=!1;s.areValuesEqual(t,V.value,_)?ve=s.getTimezone(t,V.value)!==s.getTimezone(t,_):ve=!0,ve&&Q(Se=>$({},Se,{value:_,referenceValue:o.updateReferenceValue(t,_,Se.referenceValue),sections:F(_)}))},[_]),{state:V,selectedSectionIndexes:ee,setSelectedSections:W,clearValue:ne,clearActiveSection:j,updateSectionValue:ye,updateValueFromValueStr:Ce,setTempAndroidValueStr:te,sectionsValueBoundaries:U,placeholder:P,timezone:I}},Iht=5e3,Mv=e=>e.saveQuery!=null,Dht=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const a=wr(),[s,o]=M.useState(null),l=on(()=>o(null));M.useEffect(()=>{var b;s!=null&&((b=e[s.sectionIndex])==null?void 0:b.type)!==s.sectionType&&l()},[e,s,l]),M.useEffect(()=>{if(s!=null){const b=setTimeout(()=>l(),Iht);return()=>{window.clearTimeout(b)}}return()=>{}},[s,l]);const c=({keyPressed:b,sectionIndex:v},S,w)=>{const T=b.toLowerCase(),x=e[v];if(s!=null&&(!w||w(s.value))&&s.sectionIndex===v){const C=`${s.value}${T}`,I=S(C,x);if(!Mv(I))return o({sectionIndex:v,value:C,sectionType:x.type}),I}const k=S(T,x);return Mv(k)&&!k.saveQuery?(l(),null):(o({sectionIndex:v,value:T,sectionType:x.type}),Mv(k)?null:k)},d=b=>{const v=(T,x,k)=>{const C=x.filter(I=>I.toLowerCase().startsWith(k));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},S=(T,x,k,C)=>{const I=_=>Mye(a,i,x.type,_);if(x.contentType==="letter")return v(x.format,I(x.format),T);if(k&&C!=null&&Pye(a,k).contentType==="letter"){const _=I(k),A=v(k,_,T);return Mv(A)?{saveQuery:!1}:$({},A,{sectionValue:C(A.sectionValue,_)})}return{saveQuery:!1}};return c(b,(T,x)=>{switch(x.type){case"month":{const k=C=>Aae(a,C,a.formats.month,x.format);return S(T,x,a.formats.month,k)}case"weekDay":{const k=(C,I)=>I.indexOf(C).toString();return S(T,x,a.formats.weekday,k)}case"meridiem":return S(T,x);default:return{saveQuery:!1}}})},h=b=>{const v=(w,T)=>{const x=+`${w}`,k=n[T.type]({currentDate:null,format:T.format,contentType:T.contentType});if(x>k.maximum)return{saveQuery:!1};if(xk.maximum||w.length===k.maximum.toString().length;return{sectionValue:$ye(a,i,x,k,T),shouldGoToNextSection:C}};return c(b,(w,T)=>{if(T.contentType==="digit"||T.contentType==="digit-with-letter")return v(w,T);if(T.type==="month"){const x=Uye(a,i,"digit","month","MM"),k=v(w,{type:T.type,format:"MM",hasLeadingZerosInFormat:x,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Mv(k))return k;const C=Aae(a,k.sectionValue,"MM",T.format);return $({},k,{sectionValue:C})}if(T.type==="weekDay"){const x=v(w,T);if(Mv(x))return x;const k=v6(a,i,T.format)[Number(x.sectionValue)-1];return $({},x,{sectionValue:k})}return{saveQuery:!1}},w=>!Number.isNaN(Number(w)))};return{applyCharacterEditing:on(b=>{const v=e[b.sectionIndex],w=!Number.isNaN(Number(b.keyPressed))?h(b):d(b);w==null?r(null):t({activeSection:v,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:l}},Nht=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],Wq=e=>{const t=wr(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:a,clearActiveSection:s,updateSectionValue:o,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:d,placeholder:h,timezone:p}=Rht(e),{inputRef:b,internalProps:v,internalProps:{readOnly:S=!1,unstableFieldRef:w,minutesStep:T},forwardedProps:{onClick:x,onKeyDown:k,onFocus:C,onBlur:I,onMouseUp:_,onPaste:A,error:U,clearable:F,onClear:P,disabled:V},fieldValueManager:Q,valueManager:X,validator:Y}=e,W=ut(e.forwardedProps,Nht),{applyCharacterEditing:ee,resetCharacterQuery:J}=Dht({sections:n.sections,updateSectionValue:o,sectionsValueBoundaries:d,setTempAndroidValueStr:c,timezone:p}),K=M.useRef(null),ne=rr(b,K),j=M.useRef(void 0),ye=Ki().direction==="rtl",te=M.useMemo(()=>Nft(n.sections,ye),[n.sections,ye]),ve=()=>{var ue;if(S){i(null);return}const me=(ue=K.current.selectionStart)!=null?ue:0;let We;me<=n.sections[0].startInInput||me>=n.sections[n.sections.length-1].endInInput?We=1:We=n.sections.findIndex(qe=>qe.startInInput-qe.startSeparator.length>me);const et=We===-1?n.sections.length-1:We-1;i(et)},Se=on((ue,...me)=>{ue.isDefaultPrevented()||(x==null||x(ue,...me),ve())}),he=on(ue=>{_==null||_(ue),ue.preventDefault()}),Ne=on((...ue)=>{C==null||C(...ue);const me=K.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!me||me!==K.current||r!=null||S||(me.value.length&&Number(me.selectionEnd)-Number(me.selectionStart)===me.value.length?i("all"):ve())})}),Pe=on((...ue)=>{I==null||I(...ue),i(null)}),Ze=on(ue=>{if(A==null||A(ue),S){ue.preventDefault();return}const me=ue.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const We=n.sections[r.startIndex],et=/^[a-zA-Z]+$/.test(me),qe=/^[0-9]+$/.test(me),pe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(me);if(We.contentType==="letter"&&et||We.contentType==="digit"&&qe||We.contentType==="digit-with-letter"&&pe){J(),o({activeSection:We,newSectionValue:me,shouldGoToNextSection:!0}),ue.preventDefault();return}if(et||qe){ue.preventDefault();return}}ue.preventDefault(),J(),l(me)}),st=on(ue=>{if(S)return;const me=ue.target.value;if(me===""){J(),a();return}const We=ue.nativeEvent.data,et=We&&We.length>1,qe=et?We:me,pe=OO(qe);if(r==null||et){l(et?We:pe);return}let Te;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&pe.length===1)Te=pe;else{const Oe=OO(Q.getValueStrFromSections(n.sections,ye));let De=-1,je=-1;for(let St=0;StOt.end)return;const Xt=pe.length-Oe.length+Ot.end-OO(Ot.endSeparator||"").length;Te=pe.slice(Ot.start+OO(Ot.startSeparator||"").length,Xt)}if(Te.length===0){Dft()?c(qe):(J(),s());return}ee({keyPressed:Te,sectionIndex:r.startIndex})}),Qe=on(ue=>{switch(k==null||k(ue),!0){case(ue.key==="a"&&(ue.ctrlKey||ue.metaKey)):{ue.preventDefault(),i("all");break}case ue.key==="ArrowRight":{if(ue.preventDefault(),r==null)i(te.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const me=te.neighbors[r.startIndex].rightIndex;me!==null&&i(me)}break}case ue.key==="ArrowLeft":{if(ue.preventDefault(),r==null)i(te.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const me=te.neighbors[r.startIndex].leftIndex;me!==null&&i(me)}break}case ue.key==="Delete":{if(ue.preventDefault(),S)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():s(),J();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ue.key):{if(ue.preventDefault(),S||r==null)break;const me=n.sections[r.startIndex],We=Q.getActiveDateManager(t,n,me),et=xft(t,p,me,ue.key,d,We.date,{minutesStep:T});o({activeSection:me,newSectionValue:et,shouldGoToNextSection:!1});break}}});Oa(()=>{if(!K.current)return;if(r==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}const ue=n.sections[r.startIndex],me=n.sections[r.endIndex];let We=ue.startInInput,et=me.endInInput;if(r.shouldSelectBoundarySelectors&&(We-=ue.startSeparator.length,et+=me.endSeparator.length),We!==K.current.selectionStart||et!==K.current.selectionEnd){const qe=K.current.scrollTop;K.current===LI(document)&&K.current.setSelectionRange(We,et),K.current.scrollTop=qe}});const Je=Gye($({},v,{value:n.value,timezone:p}),Y,X.isSameError,X.defaultErrorState),Ye=M.useMemo(()=>U!==void 0?U:X.hasError(Je),[X,Je,U]);M.useEffect(()=>{!Ye&&!r&&J()},[n.referenceValue,r,Ye]),M.useEffect(()=>(K.current&&K.current===document.activeElement&&i("all"),()=>window.clearTimeout(j.current)),[]),M.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(J(),s())},[n.tempValueStrAndroid]);const nt=M.useMemo(()=>{var ue;return(ue=n.tempValueStrAndroid)!=null?ue:Q.getValueStrFromSections(n.sections,ye)},[n.sections,Q,n.tempValueStrAndroid,ye]),tt=M.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),ht=K.current&&K.current===LI(document),_t=X.areValuesEqual(t,n.value,X.emptyValue),ot=!ht&&_t;M.useImperativeHandle(w,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ue,me;const We=(ue=K.current.selectionStart)!=null?ue:0,et=(me=K.current.selectionEnd)!=null?me:0;if(We===0&&et===0)return null;const qe=We<=n.sections[0].startInInput?1:n.sections.findIndex(pe=>pe.startInInput-pe.startSeparator.length>We);return qe===-1?n.sections.length-1:qe-1},setSelectedSections:ue=>i(ue)}));const ge=on((ue,...me)=>{var We;ue.preventDefault(),P==null||P(ue,...me),a(),K==null||(We=K.current)==null||We.focus(),i(0)});return $({placeholder:h,autoComplete:"off",disabled:!!V},W,{value:ot?"":nt,inputMode:tt,readOnly:S,onClick:Se,onFocus:Ne,onBlur:Pe,onPaste:Ze,onChange:st,onKeyDown:Qe,onMouseUp:he,onClear:ge,error:Ye,ref:ne,clearable:!!(F&&!_t&&!S&&!V)})},Pht=({open:e,onOpen:t,onClose:n})=>{const r=M.useRef(typeof e=="boolean").current,[i,a]=M.useState(!1);M.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const s=M.useCallback(o=>{r||a(o),o&&t&&t(),!o&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:s}},Mht=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},Lht=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:a}=e,s=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},$ht=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Fht=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:a,onChange:s,value:o,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:d,onSelectedSectionsChange:h,timezone:p}=e,{current:b}=M.useRef(l),{current:v}=M.useRef(o!==void 0),S=wr(),w=$f(),[T,x]=Ls({controlled:d,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:k,setIsOpen:C}=Pht(e),[I,_]=M.useState(()=>{let Ne;return o!==void 0?Ne=o:b!==void 0?Ne=b:Ne=t.emptyValue,{draft:Ne,lastPublishedValue:Ne,lastCommittedValue:Ne,lastControlledValue:o,hasBeenModifiedSinceMount:!1}}),{timezone:A,handleValueChange:U}=Vq({timezone:p,value:o,defaultValue:b,onChange:s,valueManager:t});Gye($({},e,{value:I.draft,timezone:A}),i,t.isSameError,t.defaultErrorState);const F=on(Ne=>{const Pe={action:Ne,dateState:I,hasChanged:Je=>!t.areValuesEqual(S,Ne.value,Je),isControlled:v,closeOnSelect:c},Ze=Mht(Pe),st=Lht(Pe),Qe=$ht(Pe);if(_(Je=>$({},Je,{draft:Ne.value,lastPublishedValue:Ze?Ne.value:Je.lastPublishedValue,lastCommittedValue:st?Ne.value:Je.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ze){const Ye={validationError:Ne.name==="setValueFromField"?Ne.context.validationError:i({adapter:w,value:Ne.value,props:$({},e,{value:Ne.value,timezone:A})})};Ne.name==="setValueFromShortcut"&&Ne.shortcut!=null&&(Ye.shortcut=Ne.shortcut),U(Ne.value,Ye)}st&&a&&a(Ne.value),Qe&&C(!1)});if(o!==void 0&&(I.lastControlledValue===void 0||!t.areValuesEqual(S,I.lastControlledValue,o))){const Ne=t.areValuesEqual(S,I.draft,o);_(Pe=>$({},Pe,{lastControlledValue:o},Ne?{}:{lastCommittedValue:o,lastPublishedValue:o,draft:o,hasBeenModifiedSinceMount:!0}))}const P=on(()=>{F({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),V=on(()=>{F({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),Q=on(()=>{F({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),X=on(()=>{F({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),Y=on(()=>{F({value:t.getTodayValue(S,A,n),name:"setValueFromAction",pickerAction:"today"})}),W=on(()=>C(!0)),ee=on(()=>C(!1)),J=on((Ne,Pe="partial")=>F({name:"setValueFromView",value:Ne,selectionState:Pe})),K=on((Ne,Pe,Ze)=>F({name:"setValueFromShortcut",value:Ne,changeImportance:Pe??"accept",shortcut:Ze})),ne=on((Ne,Pe)=>F({name:"setValueFromField",value:Ne,context:Pe})),j=on(Ne=>{x(Ne),h==null||h(Ne)}),Ce={onClear:P,onAccept:V,onDismiss:Q,onCancel:X,onSetToday:Y,onOpen:W,onClose:ee},ye={value:I.draft,onChange:ne,selectedSections:T,onSelectedSectionsChange:j},te=M.useMemo(()=>t.cleanValue(S,I.draft),[S,t,I.draft]),ve={value:te,onChange:J,onClose:ee,open:k,onSelectedSectionsChange:j},he=$({},Ce,{value:te,onChange:J,onSelectShortcut:K,isValid:Ne=>{const Pe=i({adapter:w,value:Ne,props:$({},e,{value:Ne,timezone:A})});return!t.hasError(Pe)}});return{open:k,fieldProps:ye,viewProps:ve,layoutProps:he,actions:Ce}};function LC({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:s,onFocusedViewChange:o}){var l,c;const d=M.useRef(n),h=M.useRef(i),p=M.useRef(i.includes(n)?n:i[0]),[b,v]=Ls({name:"useViews",state:"view",controlled:r,default:p.current}),S=M.useRef(a?b:null),[w,T]=Ls({name:"useViews",state:"focusedView",controlled:s,default:S.current});M.useEffect(()=>{(d.current&&d.current!==n||h.current&&h.current.some(F=>!i.includes(F)))&&(v(i.includes(n)?n:i[0]),h.current=i,d.current=n)},[n,v,b,i]);const x=i.indexOf(b),k=(l=i[x-1])!=null?l:null,C=(c=i[x+1])!=null?c:null,I=on((F,P)=>{T(P?F:V=>F===V?null:V),o==null||o(F,P)}),_=on(F=>{I(F,!0),F!==b&&(v(F),t&&t(F))}),A=on(()=>{C&&_(C)}),U=on((F,P,V)=>{const Q=P==="finish",X=V?i.indexOf(V){const{onChange:a,open:s,onSelectedSectionsChange:o,onClose:l}=t,{views:c,openTo:d,onViewChange:h,disableOpenPicker:p,viewRenderers:b,timezone:v}=e,S=ut(e,Bht),{view:w,setView:T,defaultView:x,focusedView:k,setFocusedView:C,setValueAndGoToNextView:I}=LC({view:void 0,views:c,openTo:d,onChange:a,onViewChange:h,autoFocus:i}),{hasUIView:_,viewModeLookup:A}=M.useMemo(()=>c.reduce((Y,W)=>{let ee;return p?ee="field":b[W]!=null?ee="UI":ee="field",Y.viewModeLookup[W]=ee,ee==="UI"&&(Y.hasUIView=!0),Y},{hasUIView:!1,viewModeLookup:{}}),[p,b,c]),U=M.useMemo(()=>c.reduce((Y,W)=>b[W]!=null&&WS(W)?Y+1:Y,0),[b,c]),F=A[w],P=on(()=>F==="UI"),[V,Q]=M.useState(F==="UI"?w:null);return V!==w&&A[w]==="UI"&&Q(w),Oa(()=>{F==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),o(w)}))},[w]),Oa(()=>{if(!s)return;let Y=w;F==="field"&&V!=null&&(Y=V),Y!==x&&A[Y]==="UI"&&A[x]==="UI"&&(Y=x),Y!==w&&T(Y),C(Y,!0)},[s]),{hasUIView:_,shouldRestoreFocus:P,layoutProps:{views:c,view:V,onViewChange:T},renderCurrentView:()=>{if(V==null)return null;const Y=b[V];return Y==null?null:Y($({},S,n,t,{views:c,timezone:v,onChange:I,view:V,onViewChange:T,focusedView:k,onFocusedViewChange:C,showViewSwitcher:U>1,timeViewsCount:U}))}}};function $ae(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const zht=(e,t)=>{const[n,r]=M.useState($ae);return Oa(()=>{const a=()=>{r($ae())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),Zv(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},jht=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,a=zht(n.views,i);return{layoutProps:$({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Hht=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Hht(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const Zye=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:a,validator:s,autoFocusView:o})=>{const l=Fht({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),c=Uht({props:e,inputRef:i,additionalViewProps:a,autoFocusView:o,propsFromPickerValue:l.viewProps}),d=jht({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:d.layoutProps}};function Xye(e){return qt("MuiPickersLayout",e)}const vL=Gt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),Vht=["onAccept","onClear","onCancel","onSetToday","actions"];function Wht(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:a}=e,s=ut(e,Vht),o=ws();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return D.jsx(lo,{onClick:n,children:o.clearButtonLabel},c);case"cancel":return D.jsx(lo,{onClick:r,children:o.cancelButtonLabel},c);case"accept":return D.jsx(lo,{onClick:t,children:o.okButtonLabel},c);case"today":return D.jsx(lo,{onClick:i,children:o.todayButtonLabel},c);default:return null}});return D.jsx(IDe,$({},s,{children:l}))}const Qht=["items","changeImportance","isLandscape","onChange","isValid"],Yht=["getValue"];function qht(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,a=ut(e,Qht);if(t==null||t.length===0)return null;const s=t.map(o=>{let{getValue:l}=o,c=ut(o,Yht);const d=l({isValid:i});return{label:c.label,onClick:()=>{r(d,n,c)},disabled:!i(d)}});return D.jsx(Lce,$({dense:!0,sx:[{maxHeight:E6,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(o=>D.jsx(jv,{children:D.jsx(wz,$({},o))},o.label))}))}function Ght(e){return e.view!==null}const Zht=e=>{const{classes:t,isLandscape:n}=e;return Wt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Xye,t)},Xht=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:a,onCancel:s,onSetToday:o,view:l,views:c,onViewChange:d,value:h,onChange:p,onSelectShortcut:b,isValid:v,isLandscape:S,disabled:w,readOnly:T,children:x,components:k,componentsProps:C,slots:I,slotProps:_}=e,A=I??MC(k),U=_??C,F=Zht(e),P=(t=A==null?void 0:A.actionBar)!=null?t:Wht,V=mr({elementType:P,externalSlotProps:U==null?void 0:U.actionBar,additionalProps:{onAccept:i,onClear:a,onCancel:s,onSetToday:o,actions:r==="desktop"?[]:["cancel","accept"],className:F.actionBar},ownerState:$({},e,{wrapperVariant:r})}),Q=D.jsx(P,$({},V)),X=A==null?void 0:A.toolbar,Y=mr({elementType:X,externalSlotProps:U==null?void 0:U.toolbar,additionalProps:{isLandscape:S,onChange:p,value:h,view:l,onViewChange:d,views:c,disabled:w,readOnly:T,className:F.toolbar},ownerState:$({},e,{wrapperVariant:r})}),W=Ght(Y)&&X?D.jsx(X,$({},Y)):null,ee=x,J=A==null?void 0:A.tabs,K=l&&J?D.jsx(J,$({view:l,onViewChange:d,className:F.tabs},U==null?void 0:U.tabs)):null,ne=(n=A==null?void 0:A.shortcuts)!=null?n:qht,j=mr({elementType:ne,externalSlotProps:U==null?void 0:U.shortcuts,additionalProps:{isValid:v,isLandscape:S,onChange:b,className:F.shortcuts},ownerState:{isValid:v,isLandscape:S,onChange:b,className:F.shortcuts,wrapperVariant:r}}),Ce=l&&ne?D.jsx(ne,$({},j)):null;return{toolbar:W,content:ee,tabs:K,actionBar:Q,shortcuts:Ce}},Kht=e=>{const{isLandscape:t,classes:n}=e;return Wt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Xye,n)},Kye=Le("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${vL.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${vL.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${vL.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));Kye.propTypes={as:G.elementType,ownerState:G.shape({isLandscape:G.bool.isRequired}).isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object])};const Jht=Le("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Jye=function(t){const n=Pt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:s,shortcuts:o}=Xht(n),{sx:l,className:c,isLandscape:d,ref:h,wrapperVariant:p}=n,b=n,v=Kht(b);return D.jsxs(Kye,{ref:h,sx:l,className:bt(c,v.root),ownerState:b,children:[d?o:r,d?r:o,D.jsx(Jht,{className:v.contentWrapper,children:p==="desktop"?D.jsxs(M.Fragment,{children:[i,a]}):D.jsxs(M.Fragment,{children:[a,i]})}),s]})};function ept(e,{disableFuture:t,maxDate:n,timezone:r}){const i=wr();return M.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isBefore(a,n)?a:n);return!i.isAfter(s,e)},[t,n,e,i,r])}function tpt(e,{disablePast:t,minDate:n,timezone:r}){const i=wr();return M.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isAfter(a,n)?a:n);return!i.isBefore(s,e)},[t,n,e,i,r])}function w6(e,t,n,r){const i=wr(),a=Oft(e,i),s=M.useCallback(o=>{const l=e==null?null:Sft(e,o,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:a,handleMeridiemChange:s}}const mB=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],gB=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],eve=["minDateTime","maxDateTime"],npt=[...mB,...gB,...eve],NE=e=>npt.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),rpt=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],Qq=(e,t)=>{const n=$({},e),r={},i=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return rpt.forEach(i),t==="date"?mB.forEach(i):t==="time"?gB.forEach(i):t==="date-time"&&(mB.forEach(i),gB.forEach(i),eve.forEach(i)),{forwardedProps:n,internalProps:r}},yy=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:o,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),d=Fo(n.utils,e.minDate,n.defaultDates.minDate),h=Fo(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(o&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(d&&n.utils.isBeforeDay(t,d)):return"minDate";case!!(h&&n.utils.isAfterDay(t,h)):return"maxDate";default:return null}},$C=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:a,shouldDisableClock:s,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:d,timezone:h}=n,p=e.utils.dateWithTimezone(void 0,h),b=PC(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&b(r,t)):return"minTime";case!!(i&&b(t,i)):return"maxTime";case!!(d&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(o&&o(t,"hours")):return"shouldDisableTime-hours";case!!(o&&o(t,"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&s(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(s&&s(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(s&&s(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},T6=({props:e,value:t,adapter:n})=>{const r=yy({adapter:n,value:t,props:e});return r!==null?r:$C({adapter:n,value:t,props:e})};function ipt(e){return qt("MuiPickersDay",e)}const G1=Gt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),apt=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],spt=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:o,classes:l}=e,c=s&&!o;return Wt({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",s&&o&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},ipt,l)},tve=({theme:e,ownerState:t})=>$({},e.typography.caption,{width:sk,height:sk,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Bn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${G1.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${G1.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${G1.disabled}:not(.${G1.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${G1.disabled}&.${G1.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${O6}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${G1.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),nve=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},opt=Le(fc,{name:"MuiPickersDay",slot:"Root",overridesResolver:nve})(tve),lpt=Le("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:nve})(({theme:e,ownerState:t})=>$({},tve({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),A2=()=>{},upt=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:a,day:s,disabled:o=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:d,onClick:h,onDaySelect:p,onFocus:b=A2,onBlur:v=A2,onKeyDown:S=A2,onMouseDown:w=A2,onMouseEnter:T=A2,outsideCurrentMonth:x,selected:k=!1,showDaysOutsideCurrentMonth:C=!1,children:I,today:_=!1}=r,A=ut(r,apt),U=$({},r,{autoFocus:i,disabled:o,disableHighlightToday:l,disableMargin:c,selected:k,showDaysOutsideCurrentMonth:C,today:_}),F=spt(U),P=wr(),V=M.useRef(null),Q=rr(V,n);Oa(()=>{i&&!o&&!d&&!x&&V.current.focus()},[i,o,d,x]);const X=W=>{w(W),x&&W.preventDefault()},Y=W=>{o||p(s),x&&W.currentTarget.focus(),h&&h(W)};return x&&!C?D.jsx(lpt,{className:bt(F.root,F.hiddenDaySpacingFiller,a),ownerState:U,role:A.role}):D.jsx(opt,$({className:bt(F.root,a),ref:Q,centerRipple:!0,disabled:o,tabIndex:k?0:-1,onKeyDown:W=>S(W,s),onFocus:W=>b(W,s),onBlur:W=>v(W,s),onMouseEnter:W=>T(W,s),onClick:Y,onMouseDown:X},A,{ownerState:U,children:I||P.format(s,"dayOfMonth")}))}),cpt=M.memo(upt),dpt=e=>qt("MuiPickersSlideTransition",e),Vc=Gt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),fpt=["children","className","reduceAnimations","slideDirection","transKey","classes"],hpt=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Wt(r,dpt,t)},ppt=Le(pz,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Vc["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Vc["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Vc.slideEnterActive}`]:t.slideEnterActive},{[`.${Vc.slideExit}`]:t.slideExit},{[`.${Vc["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Vc["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Vc["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Vc["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Vc.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Vc.slideExit}`]:{transform:"translate(0%)"},[`& .${Vc["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Vc["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function mpt(e){const t=Pt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=ut(t,fpt),o=hpt(t),l=Ki();if(i)return D.jsx("div",{className:bt(o.root,r),children:n});const c={exit:o.exit,enterActive:o.enterActive,enter:o.enter,exitActive:o.exitActive};return D.jsx(ppt,{className:bt(o.root,r),childFactory:d=>M.cloneElement(d,{classNames:c}),role:"presentation",children:D.jsx(CAe,$({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),a)})}const rve=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o})=>{const l=$f();return M.useCallback(c=>yy({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o}})!==null,[l,e,t,n,r,i,a,s,o])},gpt=e=>qt("MuiDayCalendar",e);Gt("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const bpt=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],ypt=["ownerState"],vpt=e=>{const{classes:t}=e;return Wt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},gpt,t)},ive=(sk+O6*2)*6,Opt=Le("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Spt=Le("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Ept=Le(Xr,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),wpt=Le(Xr,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Tpt=Le(Xr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>$({},e.typography.caption,{width:sk,height:sk,padding:0,margin:`0 ${O6}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),xpt=Le("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:ive}),kpt=Le(mpt,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:ive}),Cpt=Le("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),_pt=Le("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${O6}px 0`,display:"flex",justifyContent:"center"});function Apt(e){var t,n,r;let{parentProps:i,day:a,focusableDay:s,selectedDays:o,isDateDisabled:l,currentMonthNumber:c,isViewFocused:d}=e,h=ut(e,bpt);const{disabled:p,disableHighlightToday:b,isMonthSwitchingAnimating:v,showDaysOutsideCurrentMonth:S,components:w,componentsProps:T,slots:x,slotProps:k,timezone:C}=i,I=wr(),_=Zg(C),A=s!==null&&I.isSameDay(a,s),U=o.some(J=>I.isSameDay(J,a)),F=I.isSameDay(a,_),P=(t=(n=x==null?void 0:x.day)!=null?n:w==null?void 0:w.Day)!=null?t:cpt,V=mr({elementType:P,externalSlotProps:(r=k==null?void 0:k.day)!=null?r:T==null?void 0:T.day,additionalProps:$({disableHighlightToday:b,showDaysOutsideCurrentMonth:S,role:"gridcell",isAnimating:v,"data-timestamp":I.toJsDate(a).valueOf()},h),ownerState:$({},i,{day:a,selected:U})}),Q=ut(V,ypt),X=M.useMemo(()=>p||l(a),[p,l,a]),Y=M.useMemo(()=>I.getMonth(a)!==c,[I,a,c]),W=M.useMemo(()=>{const J=I.startOfMonth(I.setMonth(a,c));return S?I.isSameDay(a,I.startOfWeek(J)):I.isSameDay(a,J)},[c,a,S,I]),ee=M.useMemo(()=>{const J=I.endOfMonth(I.setMonth(a,c));return S?I.isSameDay(a,I.endOfWeek(J)):I.isSameDay(a,J)},[c,a,S,I]);return D.jsx(P,$({},Q,{day:a,disabled:X,autoFocus:d&&A,today:F,outsideCurrentMonth:Y,isFirstVisibleCell:W,isLastVisibleCell:ee,selected:U,tabIndex:A?0:-1,"aria-selected":U,"aria-current":F?"date":void 0}))}function Rpt(e){const t=Pt({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:a,focusedDay:s,loading:o,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:d,reduceAnimations:h,renderLoading:p=()=>D.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:v,disablePast:S,disableFuture:w,minDate:T,maxDate:x,shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:I,dayOfWeekFormatter:_,hasFocus:A,onFocusedViewChange:U,gridLabelId:F,displayWeekNumber:P,fixedWeekNumber:V,autoFocus:Q,timezone:X}=t,Y=Zg(X),W=wr(),ee=vpt(t),K=Ki().direction==="rtl",ne=_||((ot,ge)=>W.format(ge,"weekdayShort").charAt(0).toUpperCase()),j=rve({shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:I,minDate:T,maxDate:x,disablePast:S,disableFuture:w,timezone:X}),Ce=ws(),[ye,te]=Ls({name:"DayCalendar",state:"hasFocus",controlled:A,default:Q??!1}),[ve,Se]=M.useState(()=>s||Y),he=on(ot=>{d||l(ot)}),Ne=ot=>{j(ot)||(n(ot),Se(ot),U==null||U(!0),te(!0))},Pe=on((ot,ge)=>{switch(ot.key){case"ArrowUp":Ne(W.addDays(ge,-7)),ot.preventDefault();break;case"ArrowDown":Ne(W.addDays(ge,7)),ot.preventDefault();break;case"ArrowLeft":{const ue=W.addDays(ge,K?1:-1),me=W.addMonths(ge,K?1:-1),We=jT({utils:W,date:ue,minDate:K?ue:W.startOfMonth(me),maxDate:K?W.endOfMonth(me):ue,isDateDisabled:j,timezone:X});Ne(We||ue),ot.preventDefault();break}case"ArrowRight":{const ue=W.addDays(ge,K?-1:1),me=W.addMonths(ge,K?-1:1),We=jT({utils:W,date:ue,minDate:K?W.startOfMonth(me):ue,maxDate:K?ue:W.endOfMonth(me),isDateDisabled:j,timezone:X});Ne(We||ue),ot.preventDefault();break}case"Home":Ne(W.startOfWeek(ge)),ot.preventDefault();break;case"End":Ne(W.endOfWeek(ge)),ot.preventDefault();break;case"PageUp":Ne(W.addMonths(ge,1)),ot.preventDefault();break;case"PageDown":Ne(W.addMonths(ge,-1)),ot.preventDefault();break}}),Ze=on((ot,ge)=>Ne(ge)),st=on((ot,ge)=>{ye&&W.isSameDay(ve,ge)&&(U==null||U(!1))}),Qe=W.getMonth(i),Je=M.useMemo(()=>a.filter(ot=>!!ot).map(ot=>W.startOfDay(ot)),[W,a]),Ye=Qe,nt=M.useMemo(()=>M.createRef(),[Ye]),tt=W.startOfWeek(Y),ht=M.useMemo(()=>{const ot=W.startOfMonth(i),ge=W.endOfMonth(i);return j(ve)||W.isAfterDay(ve,ge)||W.isBeforeDay(ve,ot)?jT({utils:W,date:ve,minDate:ot,maxDate:ge,disablePast:S,disableFuture:w,isDateDisabled:j,timezone:X}):ve},[i,w,S,ve,j,W,X]),_t=M.useMemo(()=>{const ot=W.setTimezone(i,X),ge=W.getWeekArray(ot);let ue=W.addMonths(ot,1);for(;V&&ge.length{ge.length{var ue;const me=W.format(ot,"weekdayShort");return D.jsx(Ept,{variant:"caption",role:"columnheader","aria-label":W.format(W.addDays(tt,ge),"weekday"),className:ee.weekDayLabel,children:(ue=ne==null?void 0:ne(me,ot))!=null?ue:me},me+ge.toString())})]}),o?D.jsx(xpt,{className:ee.loadingContainer,children:p()}):D.jsx(kpt,$({transKey:Ye,onExited:c,reduceAnimations:h,slideDirection:b,className:bt(r,ee.slideTransition)},v,{nodeRef:nt,children:D.jsx(Cpt,{ref:nt,role:"rowgroup",className:ee.monthContainer,children:_t.map((ot,ge)=>D.jsxs(_pt,{role:"row",className:ee.weekContainer,"aria-rowindex":ge+1,children:[P&&D.jsx(Tpt,{className:ee.weekNumber,role:"rowheader","aria-label":Ce.calendarWeekNumberAriaLabelText(W.getWeekNumber(ot[0])),children:Ce.calendarWeekNumberText(W.getWeekNumber(ot[0]))}),ot.map((ue,me)=>D.jsx(Apt,{parentProps:t,day:ue,selectedDays:Je,focusableDay:ht,onKeyDown:Pe,onFocus:Ze,onBlur:st,onDaySelect:he,isDateDisabled:j,currentMonthNumber:Qe,isViewFocused:ye,"aria-colindex":me+1},ue.toString()))]},`week-${ot[0]}`))})}))]})}const Ipt=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return $({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return $({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const a=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return $({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:a&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Dpt=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:a,disableSwitchToMonthOnDayFocus:s=!1,maxDate:o,minDate:l,onMonthChange:c,reduceAnimations:d,shouldDisableDate:h,timezone:p}=e,b=Zg(p),v=wr(),S=M.useRef(Ipt(!!d,s,v)).current,w=M.useMemo(()=>{let U=null;return n?U=n:r&&(U=v.startOfMonth(r)),Es.getInitialReferenceValue({value:t,utils:v,timezone:p,props:e,referenceDate:U,granularity:cf.day})},[]),[T,x]=M.useReducer(S,{isMonthSwitchingAnimating:!1,focusedDay:v.isValid(t)?t:b,currentMonth:v.startOfMonth(w),slideDirection:"left"}),k=M.useCallback(U=>{x($({type:"changeMonth"},U)),c&&c(U.newMonth)},[c]),C=M.useCallback(U=>{const F=U;v.isSameMonth(F,T.currentMonth)||k({newMonth:v.startOfMonth(F),direction:v.isAfterDay(F,T.currentMonth)?"left":"right"})},[T.currentMonth,k,v]),I=rve({shouldDisableDate:h,minDate:l,maxDate:o,disableFuture:i,disablePast:a,timezone:p}),_=M.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),A=on((U,F)=>{I(U)||x({type:"changeFocusedDay",focusedDay:U,withoutMonthSwitchingAnimation:F})});return{referenceDate:w,calendarState:T,changeMonth:C,changeFocusedDay:A,isDateDisabled:I,onMonthSwitchingAnimationEnd:_,handleChangeMonth:k}},Npt=["props","getOpenDialogAriaText"],Ppt=["ownerState"],Mpt=["ownerState"],Yq=e=>{var t,n,r,i,a;let{props:s,getOpenDialogAriaText:o}=e,l=ut(e,Npt);const{slots:c,slotProps:d,className:h,sx:p,format:b,formatDensity:v,timezone:S,name:w,label:T,inputRef:x,readOnly:k,disabled:C,autoFocus:I,localeText:_,reduceAnimations:A}=s,U=wr(),F=M.useRef(null),P=M.useRef(null),V=Cf(),Q=(t=d==null||(n=d.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:X,actions:Y,hasUIView:W,layoutProps:ee,renderCurrentView:J,shouldRestoreFocus:K,fieldProps:ne}=Zye($({},l,{props:s,inputRef:F,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=c.inputAdornment)!=null?r:Sx,Ce=mr({elementType:j,externalSlotProps:d==null?void 0:d.inputAdornment,additionalProps:{position:"end"},ownerState:s}),ye=ut(Ce,Ppt),te=(i=c.openPickerButton)!=null?i:ys,ve=mr({elementType:te,externalSlotProps:d==null?void 0:d.openPickerButton,additionalProps:{disabled:C||k,onClick:X?Y.onClose:Y.onOpen,"aria-label":o(ne.value,U),edge:ye.position},ownerState:s}),Se=ut(ve,Mpt),he=c.openPickerIcon,Ne=c.field,Pe=mr({elementType:Ne,externalSlotProps:d==null?void 0:d.field,additionalProps:$({},ne,Q&&{id:V},{readOnly:k,disabled:C,className:h,sx:p,format:b,formatDensity:v,timezone:S,label:T,name:w,autoFocus:I&&!s.open,focused:X?!0:void 0}),ownerState:s});W&&(Pe.InputProps=$({},Pe.InputProps,{ref:P,[`${ye.position}Adornment`]:D.jsx(j,$({},ye,{children:D.jsx(te,$({},Se,{children:D.jsx(he,$({},d==null?void 0:d.openPickerIcon))}))}))}));const Ze=$({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Pe.slots),st=(a=c.layout)!=null?a:Jye,Qe=rr(F,Pe.inputRef,x);let Je=V;Q&&(T?Je=`${V}-label`:Je=void 0);const Ye=$({},d,{toolbar:$({},d==null?void 0:d.toolbar,{titleId:V}),popper:$({"aria-labelledby":Je},d==null?void 0:d.popper)});return{renderPicker:()=>D.jsxs(zye,{localeText:_,children:[D.jsx(Ne,$({},Pe,{slots:Ze,slotProps:Ye,inputRef:Qe})),D.jsx(Eht,$({role:"dialog",placement:"bottom-start",anchorEl:P.current},Y,{open:X,slots:c,slotProps:Ye,shouldRestoreFocus:K,reduceAnimations:A,children:D.jsx(st,$({},ee,Ye==null?void 0:Ye.layout,{slots:c,slotProps:Ye,children:J()}))}))]})}},Lpt=e=>{var t,n,r;const i=wr(),a=by();return $({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:i.formats.keyboardDate,minDate:Fo(i,e.minDate,a.minDate),maxDate:Fo(i,e.maxDate,a.maxDate)})},$pt=({props:e,inputRef:t})=>{const n=Lpt(e),{forwardedProps:r,internalProps:i}=Qq(n,"date");return Wq({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Es,fieldValueManager:Uq,validator:yy,valueType:"date"})},Fpt=["ownerState"],qq=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:a,components:s,componentsProps:o})=>{var l,c,d,h,p,b;const v=ws(),S=(l=(c=i==null?void 0:i.clearButton)!=null?c:s==null?void 0:s.ClearButton)!=null?l:ys,w=mr({elementType:S,externalSlotProps:(d=a==null?void 0:a.clearButton)!=null?d:o==null?void 0:o.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:v.fieldClearLabel}}),T=ut(w,Fpt),x=(h=(p=i==null?void 0:i.clearIcon)!=null?p:s==null?void 0:s.ClearIcon)!=null?h:Jft,k=mr({elementType:x,externalSlotProps:(b=a==null?void 0:a.clearIcon)!=null?b:o==null?void 0:o.clearIcon,ownerState:{}}),C=$({},n,{endAdornment:D.jsxs(M.Fragment,{children:[e&&D.jsx(Sx,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:D.jsx(S,$({},T,{onClick:r,children:D.jsx(x,$({fontSize:"small"},k))}))}),n==null?void 0:n.endAdornment]})}),I=$({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:I}},Bpt=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Upt=["inputRef"],zpt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],ave=M.forwardRef(function(t,n){var r,i,a;const s=Pt({props:t,name:"MuiDateField"}),{components:o,componentsProps:l,slots:c,slotProps:d,InputProps:h,inputProps:p}=s,b=ut(s,Bpt),v=s,S=(r=(i=c==null?void 0:c.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:jg,w=mr({elementType:S,externalSlotProps:(a=d==null?void 0:d.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:b,ownerState:v}),{inputRef:T}=w,x=ut(w,Upt);x.inputProps=$({},p,x.inputProps),x.InputProps=$({},h,x.InputProps);const k=$pt({props:x,inputRef:T}),{ref:C,onPaste:I,onKeyDown:_,inputMode:A,readOnly:U,clearable:F,onClear:P}=k,V=ut(k,zpt),{InputProps:Q,fieldProps:X}=qq({onClear:P,clearable:F,fieldProps:V,InputProps:V.InputProps,slots:c,slotProps:d,components:o,componentsProps:l});return D.jsx(S,$({ref:n},X,{InputProps:$({},Q,{readOnly:U}),inputProps:$({},V.inputProps,{inputMode:A,onPaste:I,onKeyDown:_,ref:C})}))}),jpt=e=>qt("MuiPickersFadeTransitionGroup",e);Gt("MuiPickersFadeTransitionGroup",["root"]);const Hpt=e=>{const{classes:t}=e;return Wt({root:["root"]},jpt,t)},Vpt=Le(pz,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function sve(e){const t=Pt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=Hpt(t),o=Ki();return i?n:D.jsx(Vpt,{className:bt(s.root,r),children:D.jsx(um,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o.transitions.duration.enteringScreen,enter:o.transitions.duration.enteringScreen,exit:0},children:n},a)})}function Wpt(e){return qt("MuiPickersMonth",e)}const g3=Gt("MuiPickersMonth",["root","monthButton","disabled","selected"]),Qpt=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],Ypt=e=>{const{disabled:t,selected:n,classes:r}=e;return Wt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Wpt,r)},qpt=Le("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Gpt=Le("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${g3.disabled}`]:t.disabled},{[`&.${g3.selected}`]:t.selected}]})(({theme:e})=>$({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${g3.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${g3.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Zpt=M.memo(function(t){const n=Pt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:a,selected:s,value:o,tabIndex:l,onClick:c,onKeyDown:d,onFocus:h,onBlur:p,"aria-current":b,"aria-label":v}=n,S=ut(n,Qpt),w=M.useRef(null),T=Ypt(n);return Oa(()=>{if(r){var x;(x=w.current)==null||x.focus()}},[r]),D.jsx(qpt,$({className:T.root,ownerState:n},S,{children:D.jsx(Gpt,{ref:w,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":b,"aria-checked":s,"aria-label":v,onClick:x=>c(x,o),onKeyDown:x=>d(x,o),onFocus:x=>h(x,o),onBlur:x=>p(x,o),className:T.monthButton,ownerState:n,children:i})}))});function Xpt(e){return qt("MuiMonthCalendar",e)}Gt("MuiMonthCalendar",["root"]);const Kpt=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],Jpt=e=>{const{classes:t}=e;return Wt({root:["root"]},Xpt,t)};function emt(e,t){const n=wr(),r=by(),i=Pt({props:e,name:t});return $({disableFuture:!1,disablePast:!1},i,{minDate:Fo(n,i.minDate,r.minDate),maxDate:Fo(n,i.maxDate,r.maxDate)})}const tmt=Le("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:S6,boxSizing:"border-box"}),nmt=M.forwardRef(function(t,n){const r=emt(t,"MuiMonthCalendar"),{className:i,value:a,defaultValue:s,referenceDate:o,disabled:l,disableFuture:c,disablePast:d,maxDate:h,minDate:p,onChange:b,shouldDisableMonth:v,readOnly:S,disableHighlightToday:w,autoFocus:T=!1,onMonthFocus:x,hasFocus:k,onFocusedViewChange:C,monthsPerRow:I=3,timezone:_,gridLabelId:A}=r,U=ut(r,Kpt),{value:F,handleValueChange:P,timezone:V}=DE({name:"MonthCalendar",timezone:_,value:a,defaultValue:s,onChange:b,valueManager:Es}),Q=Zg(V),X=rE(),Y=wr(),W=M.useMemo(()=>Es.getInitialReferenceValue({value:F,utils:Y,props:r,timezone:V,referenceDate:o,granularity:cf.month}),[]),ee=r,J=Jpt(ee),K=M.useMemo(()=>Y.getMonth(Q),[Y,Q]),ne=M.useMemo(()=>F!=null?Y.getMonth(F):w?null:Y.getMonth(W),[F,Y,w,W]),[j,Ce]=M.useState(()=>ne||K),[ye,te]=Ls({name:"MonthCalendar",state:"hasFocus",controlled:k,default:T??!1}),ve=on(Qe=>{te(Qe),C&&C(Qe)}),Se=M.useCallback(Qe=>{const Je=Y.startOfMonth(d&&Y.isAfter(Q,p)?Q:p),Ye=Y.startOfMonth(c&&Y.isBefore(Q,h)?Q:h),nt=Y.startOfMonth(Qe);return Y.isBefore(nt,Je)||Y.isAfter(nt,Ye)?!0:v?v(nt):!1},[c,d,h,p,Q,v,Y]),he=on((Qe,Je)=>{if(S)return;const Ye=Y.setMonth(F??W,Je);P(Ye)}),Ne=on(Qe=>{Se(Y.setMonth(F??W,Qe))||(Ce(Qe),ve(!0),x&&x(Qe))});M.useEffect(()=>{Ce(Qe=>ne!==null&&Qe!==ne?ne:Qe)},[ne]);const Pe=on((Qe,Je)=>{switch(Qe.key){case"ArrowUp":Ne((12+Je-3)%12),Qe.preventDefault();break;case"ArrowDown":Ne((12+Je+3)%12),Qe.preventDefault();break;case"ArrowLeft":Ne((12+Je+(X.direction==="ltr"?-1:1))%12),Qe.preventDefault();break;case"ArrowRight":Ne((12+Je+(X.direction==="ltr"?1:-1))%12),Qe.preventDefault();break}}),Ze=on((Qe,Je)=>{Ne(Je)}),st=on((Qe,Je)=>{j===Je&&ve(!1)});return D.jsx(tmt,$({ref:n,className:bt(J.root,i),ownerState:ee,role:"radiogroup","aria-labelledby":A},U,{children:$q(Y,F??W).map(Qe=>{const Je=Y.getMonth(Qe),Ye=Y.format(Qe,"monthShort"),nt=Y.format(Qe,"month"),tt=Je===ne,ht=l||Se(Qe);return D.jsx(Zpt,{selected:tt,value:Je,onClick:he,onKeyDown:Pe,autoFocus:ye&&Je===j,disabled:ht,tabIndex:Je===j?0:-1,onFocus:Ze,onBlur:st,"aria-current":K===Je?"date":void 0,"aria-label":nt,monthsPerRow:I,children:Ye},Ye)})}))});function rmt(e){return qt("MuiPickersYear",e)}const b3=Gt("MuiPickersYear",["root","yearButton","selected","disabled"]),imt=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],amt=e=>{const{disabled:t,selected:n,classes:r}=e;return Wt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},rmt,r)},smt=Le("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),omt=Le("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${b3.disabled}`]:t.disabled},{[`&.${b3.selected}`]:t.selected}]})(({theme:e})=>$({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Bn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${b3.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${b3.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),lmt=M.memo(function(t){const n=Pt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:a,disabled:s,selected:o,value:l,tabIndex:c,onClick:d,onKeyDown:h,onFocus:p,onBlur:b,"aria-current":v}=n,S=ut(n,imt),w=M.useRef(null),T=amt(n);return M.useEffect(()=>{r&&w.current.focus()},[r]),D.jsx(smt,$({className:bt(T.root,i),ownerState:n},S,{children:D.jsx(omt,{ref:w,disabled:s,type:"button",role:"radio",tabIndex:s?-1:c,"aria-current":v,"aria-checked":o,onClick:x=>d(x,l),onKeyDown:x=>h(x,l),onFocus:x=>p(x,l),onBlur:x=>b(x,l),className:T.yearButton,ownerState:n,children:a})}))});function umt(e){return qt("MuiYearCalendar",e)}Gt("MuiYearCalendar",["root"]);const cmt=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],dmt=e=>{const{classes:t}=e;return Wt({root:["root"]},umt,t)};function fmt(e,t){var n;const r=wr(),i=by(),a=Pt({props:e,name:t});return $({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Fo(r,a.minDate,i.minDate),maxDate:Fo(r,a.maxDate,i.maxDate)})}const hmt=Le("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:S6,maxHeight:oht,boxSizing:"border-box",position:"relative"}),pmt=M.forwardRef(function(t,n){const r=fmt(t,"MuiYearCalendar"),{autoFocus:i,className:a,value:s,defaultValue:o,referenceDate:l,disabled:c,disableFuture:d,disablePast:h,maxDate:p,minDate:b,onChange:v,readOnly:S,shouldDisableYear:w,disableHighlightToday:T,onYearFocus:x,hasFocus:k,onFocusedViewChange:C,yearsPerRow:I,timezone:_,gridLabelId:A}=r,U=ut(r,cmt),{value:F,handleValueChange:P,timezone:V}=DE({name:"YearCalendar",timezone:_,value:s,defaultValue:o,onChange:v,valueManager:Es}),Q=Zg(V),X=rE(),Y=wr(),W=M.useMemo(()=>Es.getInitialReferenceValue({value:F,utils:Y,props:r,timezone:V,referenceDate:l,granularity:cf.year}),[]),ee=r,J=dmt(ee),K=M.useMemo(()=>Y.getYear(Q),[Y,Q]),ne=M.useMemo(()=>F!=null?Y.getYear(F):T?null:Y.getYear(W),[F,Y,T,W]),[j,Ce]=M.useState(()=>ne||K),[ye,te]=Ls({name:"YearCalendar",state:"hasFocus",controlled:k,default:i??!1}),ve=on(Ye=>{te(Ye),C&&C(Ye)}),Se=M.useCallback(Ye=>{if(h&&Y.isBeforeYear(Ye,Q)||d&&Y.isAfterYear(Ye,Q)||b&&Y.isBeforeYear(Ye,b)||p&&Y.isAfterYear(Ye,p))return!0;if(!w)return!1;const nt=Y.startOfYear(Ye);return w(nt)},[d,h,p,b,Q,w,Y]),he=on((Ye,nt)=>{if(S)return;const tt=Y.setYear(F??W,nt);P(tt)}),Ne=on(Ye=>{Se(Y.setYear(F??W,Ye))||(Ce(Ye),ve(!0),x==null||x(Ye))});M.useEffect(()=>{Ce(Ye=>ne!==null&&Ye!==ne?ne:Ye)},[ne]);const Pe=on((Ye,nt)=>{switch(Ye.key){case"ArrowUp":Ne(nt-I),Ye.preventDefault();break;case"ArrowDown":Ne(nt+I),Ye.preventDefault();break;case"ArrowLeft":Ne(nt+(X.direction==="ltr"?-1:1)),Ye.preventDefault();break;case"ArrowRight":Ne(nt+(X.direction==="ltr"?1:-1)),Ye.preventDefault();break}}),Ze=on((Ye,nt)=>{Ne(nt)}),st=on((Ye,nt)=>{j===nt&&ve(!1)}),Qe=M.useRef(null),Je=rr(n,Qe);return M.useEffect(()=>{if(i||Qe.current===null)return;const Ye=Qe.current.querySelector('[tabindex="0"]');if(!Ye)return;const nt=Ye.offsetHeight,tt=Ye.offsetTop,ht=Qe.current.clientHeight,_t=Qe.current.scrollTop,ot=tt+nt;nt>ht||tt<_t||(Qe.current.scrollTop=ot-ht/2-nt/2)},[i]),D.jsx(hmt,$({ref:Je,className:bt(J.root,a),ownerState:ee,role:"radiogroup","aria-labelledby":A},U,{children:Y.getYearRange(b,p).map(Ye=>{const nt=Y.getYear(Ye),tt=nt===ne,ht=c||Se(Ye);return D.jsx(lmt,{selected:tt,value:nt,onClick:he,onKeyDown:Pe,autoFocus:ye&&nt===j,disabled:ht,tabIndex:nt===j?0:-1,onFocus:Ze,onBlur:st,"aria-current":K===nt?"date":void 0,yearsPerRow:I,children:Y.format(Ye,"year")},Y.format(Ye,"year"))})}))}),mmt=e=>qt("MuiPickersCalendarHeader",e),gmt=Gt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),bmt=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],ymt=["ownerState"],vmt=e=>{const{classes:t}=e;return Wt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},mmt,t)},Omt=Le("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Smt=Le("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>$({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Emt=Le("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),wmt=Le(ys,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>$({marginRight:"auto"},e.view==="year"&&{[`.${gmt.switchViewIcon}`]:{transform:"rotate(180deg)"}})),Tmt=Le(Yft,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),xmt=M.forwardRef(function(t,n){var r,i,a,s;const o=ws(),l=wr(),c=Pt({props:t,name:"MuiPickersCalendarHeader"}),{slots:d,slotProps:h,components:p,currentMonth:b,disabled:v,disableFuture:S,disablePast:w,maxDate:T,minDate:x,onMonthChange:k,onViewChange:C,view:I,reduceAnimations:_,views:A,labelId:U,className:F,timezone:P}=c,V=ut(c,bmt),Q=c,X=vmt(c),Y=(r=(i=d==null?void 0:d.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:wmt,W=mr({elementType:Y,externalSlotProps:h==null?void 0:h.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(I)},ownerState:Q,className:X.switchViewButton}),ee=(a=(s=d==null?void 0:d.switchViewIcon)!=null?s:p==null?void 0:p.SwitchViewIcon)!=null?a:Tmt,J=mr({elementType:ee,externalSlotProps:h==null?void 0:h.switchViewIcon,ownerState:void 0,className:X.switchViewIcon}),K=ut(J,ymt),ne=()=>k(l.addMonths(b,1),"left"),j=()=>k(l.addMonths(b,-1),"right"),Ce=ept(b,{disableFuture:S,maxDate:T,timezone:P}),ye=tpt(b,{disablePast:w,minDate:x,timezone:P}),te=()=>{if(!(A.length===1||!C||v))if(A.length===2)C(A.find(ve=>ve!==I)||A[0]);else{const ve=A.indexOf(I)!==0?0:1;C(A[ve])}};return A.length===1&&A[0]==="year"?null:D.jsxs(Omt,$({},V,{ownerState:Q,className:bt(F,X.root),ref:n,children:[D.jsxs(Smt,{role:"presentation",onClick:te,ownerState:Q,"aria-live":"polite",className:X.labelContainer,children:[D.jsx(sve,{reduceAnimations:_,transKey:l.format(b,"monthAndYear"),children:D.jsx(Emt,{id:U,ownerState:Q,className:X.label,children:l.format(b,"monthAndYear")})}),A.length>1&&!v&&D.jsx(Y,$({},W,{children:D.jsx(ee,$({},K))}))]}),D.jsx(um,{in:I==="day",children:D.jsx(Qye,{slots:d,slotProps:h,onGoToPrevious:j,isPreviousDisabled:ye,previousLabel:o.previousMonth,onGoToNext:ne,isNextDisabled:Ce,nextLabel:o.nextMonth})})]}))}),x6=Le("div")({overflow:"hidden",width:S6,maxHeight:E6,display:"flex",flexDirection:"column",margin:"0 auto"}),kmt=e=>qt("MuiDateCalendar",e);Gt("MuiDateCalendar",["root","viewTransitionContainer"]);const Cmt=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],_mt=e=>{const{classes:t}=e;return Wt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},kmt,t)};function Amt(e,t){var n,r,i,a,s,o,l;const c=wr(),d=by(),h=qye(),p=Pt({props:e,name:t});return $({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(i=p.disableFuture)!=null?i:!1,openTo:(a=p.openTo)!=null?a:"day",views:(s=p.views)!=null?s:["year","day"],reduceAnimations:(o=p.reduceAnimations)!=null?o:h,renderLoading:(l=p.renderLoading)!=null?l:()=>D.jsx("span",{children:"..."}),minDate:Fo(c,p.minDate,d.minDate),maxDate:Fo(c,p.maxDate,d.maxDate)})}const Rmt=Le(x6,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:E6}),Imt=Le(sve,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),ove=M.forwardRef(function(t,n){var r,i,a;const s=wr(),o=Cf(),l=Amt(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:d,value:h,defaultValue:p,referenceDate:b,disableFuture:v,disablePast:S,defaultCalendarMonth:w,onChange:T,onYearChange:x,onMonthChange:k,reduceAnimations:C,shouldDisableDate:I,shouldDisableMonth:_,shouldDisableYear:A,view:U,views:F,openTo:P,className:V,disabled:Q,readOnly:X,minDate:Y,maxDate:W,disableHighlightToday:ee,focusedView:J,onFocusedViewChange:K,showDaysOutsideCurrentMonth:ne,fixedWeekNumber:j,dayOfWeekFormatter:Ce,components:ye,componentsProps:te,slots:ve,slotProps:Se,loading:he,renderLoading:Ne,displayWeekNumber:Pe,yearsPerRow:Ze,monthsPerRow:st,timezone:Qe}=l,Je=ut(l,Cmt),{value:Ye,handleValueChange:nt,timezone:tt}=DE({name:"DateCalendar",timezone:Qe,value:h,defaultValue:p,onChange:T,valueManager:Es}),{view:ht,setView:_t,focusedView:ot,setFocusedView:ge,goToNextView:ue,setValueAndGoToNextView:me}=LC({view:U,views:F,openTo:P,onChange:nt,onViewChange:d,autoFocus:c,focusedView:J,onFocusedViewChange:K}),{referenceDate:We,calendarState:et,changeFocusedDay:qe,changeMonth:pe,handleChangeMonth:Te,isDateDisabled:Oe,onMonthSwitchingAnimationEnd:De}=Dpt({value:Ye,defaultCalendarMonth:w,referenceDate:b,reduceAnimations:C,onMonthChange:k,minDate:Y,maxDate:W,shouldDisableDate:I,disablePast:S,disableFuture:v,timezone:tt}),je=Q&&Ye||Y,Ot=Q&&Ye||W,Bt=`${o}-grid-label`,Xt=ot!==null,St=(r=(i=ve==null?void 0:ve.calendarHeader)!=null?i:ye==null?void 0:ye.CalendarHeader)!=null?r:xmt,Kt=mr({elementType:St,externalSlotProps:(a=Se==null?void 0:Se.calendarHeader)!=null?a:te==null?void 0:te.calendarHeader,additionalProps:{views:F,view:ht,currentMonth:et.currentMonth,onViewChange:_t,onMonthChange:(Ve,ct)=>Te({newMonth:Ve,direction:ct}),minDate:je,maxDate:Ot,disabled:Q,disablePast:S,disableFuture:v,reduceAnimations:C,timezone:tt,labelId:Bt,slots:ve,slotProps:Se},ownerState:l}),pt=on(Ve=>{const ct=s.startOfMonth(Ve),Dt=s.endOfMonth(Ve),Qt=Oe(Ve)?jT({utils:s,date:Ve,minDate:s.isBefore(Y,ct)?ct:Y,maxDate:s.isAfter(W,Dt)?Dt:W,disablePast:S,disableFuture:v,isDateDisabled:Oe,timezone:tt}):Ve;Qt?(me(Qt,"finish"),k==null||k(ct)):(ue(),pe(ct)),qe(Qt,!0)}),At=on(Ve=>{const ct=s.startOfYear(Ve),Dt=s.endOfYear(Ve),Qt=Oe(Ve)?jT({utils:s,date:Ve,minDate:s.isBefore(Y,ct)?ct:Y,maxDate:s.isAfter(W,Dt)?Dt:W,disablePast:S,disableFuture:v,isDateDisabled:Oe,timezone:tt}):Ve;Qt?(me(Qt,"finish"),x==null||x(Qt)):(ue(),pe(ct)),qe(Qt,!0)}),en=on(Ve=>nt(Ve&&hB(s,Ve,Ye??We),"finish",ht));M.useEffect(()=>{Ye!=null&&s.isValid(Ye)&&pe(Ye)},[Ye]);const In=l,Ln=_mt(In),Qn={disablePast:S,disableFuture:v,maxDate:W,minDate:Y},ur={disableHighlightToday:ee,readOnly:X,disabled:Q,timezone:tt,gridLabelId:Bt},Wr=M.useRef(ht);M.useEffect(()=>{Wr.current!==ht&&(ot===Wr.current&&ge(ht,!0),Wr.current=ht)},[ot,ge,ht]);const $e=M.useMemo(()=>[Ye],[Ye]);return D.jsxs(Rmt,$({ref:n,className:bt(Ln.root,V),ownerState:In},Je,{children:[D.jsx(St,$({},Kt)),D.jsx(Imt,{reduceAnimations:C,className:Ln.viewTransitionContainer,transKey:ht,ownerState:In,children:D.jsxs("div",{children:[ht==="year"&&D.jsx(pmt,$({},Qn,ur,{value:Ye,onChange:At,shouldDisableYear:A,hasFocus:Xt,onFocusedViewChange:Ve=>ge("year",Ve),yearsPerRow:Ze,referenceDate:We})),ht==="month"&&D.jsx(nmt,$({},Qn,ur,{hasFocus:Xt,className:V,value:Ye,onChange:pt,shouldDisableMonth:_,onFocusedViewChange:Ve=>ge("month",Ve),monthsPerRow:st,referenceDate:We})),ht==="day"&&D.jsx(Rpt,$({},et,Qn,ur,{onMonthSwitchingAnimationEnd:De,onFocusedDayChange:qe,reduceAnimations:C,selectedDays:$e,onSelectedDaysChange:en,shouldDisableDate:I,shouldDisableMonth:_,shouldDisableYear:A,hasFocus:Xt,onFocusedViewChange:Ve=>ge("day",Ve),showDaysOutsideCurrentMonth:ne,fixedWeekNumber:j,dayOfWeekFormatter:Ce,displayWeekNumber:Pe,components:ye,componentsProps:te,slots:ve,slotProps:Se,loading:he,renderLoading:Ne}))]})})]}))}),bd=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minDate:b,maxDate:v,shouldDisableDate:S,shouldDisableMonth:w,shouldDisableYear:T,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:I,yearsPerRow:_,defaultCalendarMonth:A,components:U,componentsProps:F,slots:P,slotProps:V,loading:Q,renderLoading:X,disableHighlightToday:Y,readOnly:W,disabled:ee,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:K,sx:ne,autoFocus:j,fixedWeekNumber:Ce,displayWeekNumber:ye,timezone:te})=>D.jsx(ove,{view:e,onViewChange:t,views:n.filter(VO),focusedView:r&&VO(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minDate:b,maxDate:v,shouldDisableDate:S,shouldDisableMonth:w,shouldDisableYear:T,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:I,yearsPerRow:_,defaultCalendarMonth:A,components:U,componentsProps:F,slots:P,slotProps:V,loading:Q,renderLoading:X,disableHighlightToday:Y,readOnly:W,disabled:ee,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:K,sx:ne,autoFocus:j,fixedWeekNumber:Ce,displayWeekNumber:ye,timezone:te}),lve=M.forwardRef(function(t,n){var r,i,a,s;const o=ws(),l=wr(),c=Vye(t,"MuiDesktopDatePicker"),d=$({day:bd,month:bd,year:bd},c.viewRenderers),h=$({},c,{viewRenderers:d,format:ik(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:$({openPickerIcon:Wye,field:ave},c.slots),slotProps:$({},c.slotProps,{field:b=>{var v;return $({},Fg((v=c.slotProps)==null?void 0:v.field,b),NE(c),{ref:n})},toolbar:$({hidden:!0},(i=c.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=Yq({props:h,valueManager:Es,valueType:"date",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:o.openDatePickerDialogue,validator:yy});return p()});lve.propTypes={autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,dayOfWeekFormatter:G.func,defaultCalendarMonth:G.any,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableHighlightToday:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,displayWeekNumber:G.bool,fixedWeekNumber:G.number,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:tE,label:G.node,loading:G.bool,localeText:G.object,maxDate:G.any,minDate:G.any,monthsPerRow:G.oneOf([3,4]),name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onMonthChange:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,onYearChange:G.func,open:G.bool,openTo:G.oneOf(["day","month","year"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,renderLoading:G.func,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableDate:G.func,shouldDisableMonth:G.func,shouldDisableYear:G.func,showDaysOutsideCurrentMonth:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),timezone:G.string,value:G.any,view:G.oneOf(["day","month","year"]),viewRenderers:G.shape({day:G.func,month:G.func,year:G.func}),views:G.arrayOf(G.oneOf(["day","month","year"]).isRequired),yearsPerRow:G.oneOf([3,4])};const Dmt=["props","getOpenDialogAriaText"],Gq=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:a}=e,s=ut(e,Dmt);const{slots:o,slotProps:l,className:c,sx:d,format:h,formatDensity:p,timezone:b,name:v,label:S,inputRef:w,readOnly:T,disabled:x,localeText:k}=i,C=wr(),I=M.useRef(null),_=Cf(),A=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:F,layoutProps:P,renderCurrentView:V,fieldProps:Q}=Zye($({},s,{props:i,inputRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),X=o.field,Y=mr({elementType:X,externalSlotProps:l==null?void 0:l.field,additionalProps:$({},Q,A&&{id:_},!(x||T)&&{onClick:F.onOpen,onKeyDown:fht(F.onOpen)},{readOnly:T??!0,disabled:x,className:c,sx:d,format:h,formatDensity:p,timezone:b,label:S,name:v}),ownerState:i});Y.inputProps=$({},Y.inputProps,{"aria-label":a(Q.value,C)});const W=$({textField:o.textField},Y.slots),ee=(r=o.layout)!=null?r:Jye,J=rr(I,Y.inputRef,w);let K=_;A&&(S?K=`${_}-label`:K=void 0);const ne=$({},l,{toolbar:$({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:$({"aria-labelledby":K},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>D.jsxs(zye,{localeText:k,children:[D.jsx(X,$({},Y,{slots:W,slotProps:ne,inputRef:J})),D.jsx(cht,$({},F,{open:U,slots:o,slotProps:ne,children:D.jsx(ee,$({},P,ne==null?void 0:ne.layout,{slots:o,slotProps:ne,children:V()}))}))]})}},Zq=M.forwardRef(function(t,n){var r,i,a;const s=ws(),o=wr(),l=Vye(t,"MuiMobileDatePicker"),c=$({day:bd,month:bd,year:bd},l.viewRenderers),d=$({},l,{viewRenderers:c,format:ik(o,l,!1),slots:$({field:ave},l.slots),slotProps:$({},l.slotProps,{field:p=>{var b;return $({},Fg((b=l.slotProps)==null?void 0:b.field,p),NE(l),{ref:n})},toolbar:$({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:h}=Gq({props:d,valueManager:Es,valueType:"date",getOpenDialogAriaText:(i=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:yy});return h()});Zq.propTypes={autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,dayOfWeekFormatter:G.func,defaultCalendarMonth:G.any,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableHighlightToday:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,displayWeekNumber:G.bool,fixedWeekNumber:G.number,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:tE,label:G.node,loading:G.bool,localeText:G.object,maxDate:G.any,minDate:G.any,monthsPerRow:G.oneOf([3,4]),name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onMonthChange:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,onYearChange:G.func,open:G.bool,openTo:G.oneOf(["day","month","year"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,renderLoading:G.func,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableDate:G.func,shouldDisableMonth:G.func,shouldDisableYear:G.func,showDaysOutsideCurrentMonth:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),timezone:G.string,value:G.any,view:G.oneOf(["day","month","year"]),viewRenderers:G.shape({day:G.func,month:G.func,year:G.func}),views:G.arrayOf(G.oneOf(["day","month","year"]).isRequired),yearsPerRow:G.oneOf([3,4])};const Nmt=["desktopModeMediaQuery"],Pmt=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=jq}=r,a=ut(r,Nmt);return sE(i,{defaultMatches:!0})?D.jsx(lve,$({ref:n},a)):D.jsx(Zq,$({ref:n},a))}),Mmt=e=>{var t,n,r,i,a,s,o,l;const c=wr(),d=by(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return $({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Fo(c,(a=e.minDateTime)!=null?a:e.minDate,d.minDate),maxDate:Fo(c,(s=e.maxDateTime)!=null?s:e.maxDate,d.maxDate),minTime:(o=e.minDateTime)!=null?o:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},Lmt=({props:e,inputRef:t})=>{const n=Mmt(e),{forwardedProps:r,internalProps:i}=Qq(n,"date-time");return Wq({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Es,fieldValueManager:Uq,validator:T6,valueType:"date-time"})},$mt=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Fmt=["inputRef"],Bmt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],uve=M.forwardRef(function(t,n){var r,i,a;const s=Pt({props:t,name:"MuiDateTimeField"}),{components:o,componentsProps:l,slots:c,slotProps:d,InputProps:h,inputProps:p}=s,b=ut(s,$mt),v=s,S=(r=(i=c==null?void 0:c.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:jg,w=mr({elementType:S,externalSlotProps:(a=d==null?void 0:d.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:b,ownerState:v}),{inputRef:T}=w,x=ut(w,Fmt);x.inputProps=$({},p,x.inputProps),x.InputProps=$({},h,x.InputProps);const k=Lmt({props:x,inputRef:T}),{ref:C,onPaste:I,onKeyDown:_,inputMode:A,readOnly:U,clearable:F,onClear:P}=k,V=ut(k,Bmt),{InputProps:Q,fieldProps:X}=qq({onClear:P,clearable:F,fieldProps:V,InputProps:V.InputProps,slots:c,slotProps:d,components:o,componentsProps:l});return D.jsx(S,$({ref:n},X,{InputProps:$({},Q,{readOnly:U}),inputProps:$({},V.inputProps,{inputMode:A,onPaste:I,onKeyDown:_,ref:C})}))});function Umt(e){return qt("MuiDateTimePickerTabs",e)}Gt("MuiDateTimePickerTabs",["root"]);const zmt=e=>VO(e)?"date":"time",jmt=e=>e==="date"?"day":"hours",Hmt=e=>{const{classes:t}=e;return Wt({root:["root"]},Umt,t)},Vmt=Le(G8e,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${q3.indicator}`]:{bottom:"auto",top:0}}})),Wmt=function(t){const n=Pt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=D.jsx(Xft,{}),onViewChange:i,timeIcon:a=D.jsx(Kft,{}),view:s,hidden:o=typeof window>"u"||window.innerHeight<667,className:l}=n,c=ws(),d=Hmt(n),h=(p,b)=>{i(jmt(b))};return o?null:D.jsxs(Vmt,{ownerState:n,variant:"fullWidth",value:zmt(s),onChange:h,className:bt(l,d.root),children:[D.jsx(dJ,{value:"date","aria-label":c.dateTableLabel,icon:D.jsx(M.Fragment,{children:r})}),D.jsx(dJ,{value:"time","aria-label":c.timeTableLabel,icon:D.jsx(M.Fragment,{children:a})})]})};function Qmt(e){return qt("MuiDateTimePickerToolbar",e)}const OL=Gt("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Ymt=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],qmt=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Wt(i,Qmt,t)},cve=Le(zq,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));cve.propTypes={as:G.elementType,classes:G.object,className:G.string,isLandscape:G.bool.isRequired,isMobileKeyboardViewOpen:G.bool,landscapeDirection:G.oneOf(["column","row"]),ownerState:G.object.isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),toggleMobileKeyboardView:G.func,toolbarTitle:G.node,viewType:G.oneOf(["date","time"])};const Gmt=Le("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),dve=Le("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return $({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&$({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Zmt=Le("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>$({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));dve.propTypes={as:G.elementType,ownerState:G.object.isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object])};const Fae=Le(Hq,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Xmt=Le("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${OL.ampmLabel}`]:t.ampmLabel},{[`&.${OL.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>$({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${OL.ampmLabel}`]:{fontSize:17}}));function Kmt(e){const t=Pt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:a,view:s,isLandscape:o,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:d="––",views:h,disabled:p,readOnly:b,toolbarVariant:v="mobile"}=t,S=ut(t,Ymt),w=t,T=wr(),{meridiemMode:x,handleMeridiemChange:k}=w6(i,n,a),C=!!(n&&!r),I=v==="desktop",_=ws(),A=Ki(),U=qmt($({},w,{theme:A})),F=V=>n?T.format(V,"hours12h"):T.format(V,"hours24h"),P=M.useMemo(()=>i?c?T.formatByString(i,c):T.format(i,"shortDate"):d,[i,c,d,T]);return D.jsxs(cve,$({toolbarTitle:_.dateTimePickerToolbarTitle,isLandscape:o,className:U.root},S,{ownerState:w,children:[D.jsxs(Gmt,{className:U.dateContainer,ownerState:w,children:[h.includes("year")&&D.jsx(qu,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:s==="year",value:i?T.format(i,"year"):"–"}),h.includes("day")&&D.jsx(qu,{tabIndex:-1,variant:I?"h5":"h4",onClick:()=>l("day"),selected:s==="day",value:P})]}),D.jsxs(dve,{className:U.timeContainer,ownerState:w,children:[D.jsxs(Zmt,{className:U.timeDigitsContainer,ownerState:w,children:[h.includes("hours")&&D.jsx(qu,{variant:I?"h5":"h3",width:I&&!o?eT:void 0,onClick:()=>l("hours"),selected:s==="hours",value:i?F(i):"--"}),h.includes("minutes")&&D.jsxs(M.Fragment,{children:[D.jsx(Fae,{variant:I?"h5":"h3",value:":",className:U.separator,ownerState:w}),D.jsx(qu,{variant:I?"h5":"h3",width:I&&!o?eT:void 0,onClick:()=>l("minutes"),selected:s==="minutes",value:i?T.format(i,"minutes"):"--"})]}),h.includes("seconds")&&D.jsxs(M.Fragment,{children:[D.jsx(Fae,{variant:I?"h5":"h3",value:":",className:U.separator,ownerState:w}),D.jsx(qu,{variant:I?"h5":"h3",width:I&&!o?eT:void 0,onClick:()=>l("seconds"),selected:s==="seconds",value:i?T.format(i,"seconds"):"--"})]})]}),C&&!I&&D.jsxs(Xmt,{className:U.ampmSelection,ownerState:w,children:[D.jsx(qu,{variant:"subtitle2",selected:x==="am",typographyClassName:U.ampmLabel,value:pf(T,"am"),onClick:b?void 0:()=>k("am"),disabled:p}),D.jsx(qu,{variant:"subtitle2",selected:x==="pm",typographyClassName:U.ampmLabel,value:pf(T,"pm"),onClick:b?void 0:()=>k("pm"),disabled:p})]}),n&&I&&D.jsx(qu,{variant:"h5",onClick:()=>l("meridiem"),selected:s==="meridiem",value:i&&x?pf(T,x):"--",width:eT})]})]}))}function fve(e,t){var n,r,i,a,s,o,l,c,d,h,p;const b=wr(),v=by(),S=Pt({props:e,name:t}),w=(n=S.ampm)!=null?n:b.is12HourCycleInCurrentLocale(),T=M.useMemo(()=>{var C;return((C=S.localeText)==null?void 0:C.toolbarTitle)==null?S.localeText:$({},S.localeText,{dateTimePickerToolbarTitle:S.localeText.toolbarTitle})},[S.localeText]),x=(r=S.slots)!=null?r:MC(S.components),k=(i=S.slotProps)!=null?i:S.componentsProps;return $({},S,Lq({views:S.views,openTo:S.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:w,localeText:T,orientation:(a=S.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(s=S.disableIgnoringDatePartForTimeValidation)!=null?s:!!(S.minDateTime||S.maxDateTime||S.disablePast||S.disableFuture),disableFuture:(o=S.disableFuture)!=null?o:!1,disablePast:(l=S.disablePast)!=null?l:!1,minDate:Fo(b,(c=S.minDateTime)!=null?c:S.minDate,v.minDate),maxDate:Fo(b,(d=S.maxDateTime)!=null?d:S.maxDate,v.maxDate),minTime:(h=S.minDateTime)!=null?h:S.minTime,maxTime:(p=S.maxDateTime)!=null?p:S.maxTime,slots:$({toolbar:Kmt,tabs:Wmt},x),slotProps:$({},k,{toolbar:$({ampm:w},k==null?void 0:k.toolbar)})})}function Jmt(e){return qt("MuiMultiSectionDigitalClock",e)}Gt("MuiMultiSectionDigitalClock",["root"]);function e0t(e){return qt("MuiMultiSectionDigitalClockSection",e)}const t0t=Gt("MuiMultiSectionDigitalClockSection",["root","item"]),n0t=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],r0t=e=>{const{classes:t}=e;return Wt({root:["root"],item:["item"]},e0t,t)},i0t=Le(oE,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:Yye,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),a0t=Le(Sg,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:eT,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Bn(e.palette.primary.main,e.palette.action.focusOpacity)}})),s0t=M.forwardRef(function(t,n){var r;const i=M.useRef(null),a=rr(n,i),s=M.useRef(null),o=Pt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:d,disabled:h,readOnly:p,items:b,active:v,slots:S,slotProps:w,skipDisabled:T}=o,x=ut(o,n0t),k=M.useMemo(()=>$({},o,{alreadyRendered:!!i.current}),[o]),C=r0t(k),I=(r=S==null?void 0:S.digitalClockSectionItem)!=null?r:a0t;return M.useEffect(()=>{if(i.current===null)return;const _=i.current.querySelector('[role="option"][aria-selected="true"]');if(v&&l&&_&&_.focus(),!_||s.current===_)return;s.current=_;const A=_.offsetTop;i.current.scrollTop=A-4}),D.jsx(i0t,$({ref:a,className:bt(C.root,d),ownerState:k,autoFocusItem:l&&v,role:"listbox"},x,{children:b.map(_=>{var A,U;if(T&&(A=_.isDisabled)!=null&&A.call(_,_.value))return null;const F=_.isSelected(_.value);return D.jsx(I,$({onClick:()=>!p&&c(_.value),selected:F,disabled:h||((U=_.isDisabled)==null?void 0:U.call(_,_.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":_.ariaLabel,"aria-selected":F,className:C.item},w==null?void 0:w.digitalClockSectionItem,{children:_.label}),_.label)})}))}),o0t=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:s})=>{const o=t?n.getHours(t):null,l=[],c=h=>o===null?!1:r?h===12?o===12||o===0:o===h||o-12===h:o===h,d=r?11:23;for(let h=0;h<=d;h+=s){let p=n.format(n.setHours(e,h),r?"hours12h":"hours24h");const b=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:h,label:p,isSelected:c,isDisabled:i,ariaLabel:b})}return l},Bae=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:s=!0})=>{const o=l=>e===null?!1:s&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,c)=>{const d=r*c;return{value:d,label:t.formatNumber(i(d)),isDisabled:n,isSelected:o,ariaLabel:a(d.toString())}})]},Xq=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const a=M.useMemo(()=>Es.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:cf.day,timezone:i,getTodayDate:()=>Fq(n,i,"date")}),[]);return e??a},l0t=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],u0t=e=>{const{classes:t}=e;return Wt({root:["root"]},Jmt,t)},c0t=Le(x6,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),d0t=M.forwardRef(function(t,n){const r=wr(),i=Pt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:o,components:l,componentsProps:c,slots:d,slotProps:h,value:p,defaultValue:b,referenceDate:v,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:w,minTime:T,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:I,shouldDisableTime:_,onChange:A,view:U,views:F=["hours","minutes"],openTo:P,onViewChange:V,focusedView:Q,onFocusedViewChange:X,className:Y,disabled:W,readOnly:ee,skipDisabled:J=!1,timezone:K}=i,ne=ut(i,l0t),{value:j,handleValueChange:Ce,timezone:ye}=DE({name:"MultiSectionDigitalClock",timezone:K,value:p,defaultValue:b,onChange:A,valueManager:Es}),te=ws(),ve=Zg(ye),Se=M.useMemo(()=>$({hours:1,minutes:5,seconds:5},s),[s]),he=Xq({value:j,referenceDate:v,utils:r,props:i,timezone:ye}),Ne=on((ue,me,We)=>Ce(ue,me,We)),Pe=M.useMemo(()=>!a||!F.includes("hours")||F.includes("meridiem")?F:[...F,"meridiem"],[a,F]),{view:Ze,setValueAndGoToNextView:st,focusedView:Qe}=LC({view:U,views:Pe,openTo:P,onViewChange:V,onChange:Ne,focusedView:Q,onFocusedViewChange:X}),Je=on(ue=>{st(ue,"finish","meridiem")}),{meridiemMode:Ye,handleMeridiemChange:nt}=w6(he,a,Je,"finish"),tt=M.useCallback((ue,me)=>{const We=PC(S,r),et=me==="hours"||me==="minutes"&&Pe.includes("seconds"),qe=({start:Te,end:Oe})=>!(T&&We(T,Oe)||w&&We(Te,w)||x&&We(Te,ve)||k&&We(ve,et?Oe:Te)),pe=(Te,Oe=1)=>{if(Te%Oe!==0||I!=null&&I(Te,me))return!1;if(_)switch(me){case"hours":return!_(r.setHours(he,Te),"hours");case"minutes":return!_(r.setMinutes(he,Te),"minutes");case"seconds":return!_(r.setSeconds(he,Te),"seconds");default:return!1}return!0};switch(me){case"hours":{const Te=ak(ue,Ye,a),Oe=r.setHours(he,Te),De=r.setSeconds(r.setMinutes(Oe,0),0),je=r.setSeconds(r.setMinutes(Oe,59),59);return!qe({start:De,end:je})||!pe(Te)}case"minutes":{const Te=r.setMinutes(he,ue),Oe=r.setSeconds(Te,0),De=r.setSeconds(Te,59);return!qe({start:Oe,end:De})||!pe(ue,C)}case"seconds":{const Te=r.setSeconds(he,ue);return!qe({start:Te,end:Te})||!pe(ue)}default:throw new Error("not supported")}},[a,he,S,w,Ye,T,C,I,_,r,x,k,ve,Pe]),ht=M.useCallback(ue=>{switch(ue){case"hours":return{onChange:me=>{const We=ak(me,Ye,a);st(r.setHours(he,We),"finish","hours")},items:o0t({now:ve,value:j,ampm:a,utils:r,isDisabled:me=>W||tt(me,"hours"),timeStep:Se.hours,resolveAriaLabel:te.hoursClockNumberText})};case"minutes":return{onChange:me=>{st(r.setMinutes(he,me),"finish","minutes")},items:Bae({value:r.getMinutes(he),utils:r,isDisabled:me=>W||tt(me,"minutes"),resolveLabel:me=>r.format(r.setMinutes(ve,me),"minutes"),timeStep:Se.minutes,hasValue:!!j,resolveAriaLabel:te.minutesClockNumberText})};case"seconds":return{onChange:me=>{st(r.setSeconds(he,me),"finish","seconds")},items:Bae({value:r.getSeconds(he),utils:r,isDisabled:me=>W||tt(me,"seconds"),resolveLabel:me=>r.format(r.setSeconds(ve,me),"seconds"),timeStep:Se.seconds,hasValue:!!j,resolveAriaLabel:te.secondsClockNumberText})};case"meridiem":{const me=pf(r,"am"),We=pf(r,"pm");return{onChange:nt,items:[{value:"am",label:me,isSelected:()=>!!j&&Ye==="am",ariaLabel:me},{value:"pm",label:We,isSelected:()=>!!j&&Ye==="pm",ariaLabel:We}]}}default:throw new Error(`Unknown view: ${ue} found.`)}},[ve,j,a,r,Se.hours,Se.minutes,Se.seconds,te.hoursClockNumberText,te.minutesClockNumberText,te.secondsClockNumberText,Ye,st,he,W,tt,nt]),_t=M.useMemo(()=>Pe.reduce((ue,me)=>$({},ue,{[me]:ht(me)}),{}),[Pe,ht]),ot=i,ge=u0t(ot);return D.jsx(c0t,$({ref:n,className:bt(ge.root,Y),ownerState:ot,role:"group"},ne,{children:Object.entries(_t).map(([ue,me])=>D.jsx(s0t,{items:me.items,onChange:me.onChange,active:Ze===ue,autoFocus:o??Qe===ue,disabled:W,readOnly:ee,slots:d??l,slotProps:h??c,skipDisabled:J,"aria-label":te.selectViewText(ue)},ue))}))}),f0t=Le("div")({display:"flex",margin:"0 auto"});function h0t(e){return qt("MuiTimeClock",e)}Gt("MuiTimeClock",["root","arrowSwitcher"]);const QS=220,qh=36,ok={x:QS/2,y:QS/2},hve={x:ok.x,y:0},p0t=hve.x-ok.x,m0t=hve.y-ok.y,g0t=e=>e*(180/Math.PI),pve=(e,t,n)=>{const r=t-ok.x,i=n-ok.y,a=Math.atan2(p0t,m0t)-Math.atan2(r,i);let s=g0t(a);s=Math.round(s/e)*e,s%=360;const o=Math.floor(s/e)||0,l=r**2+i**2,c=Math.sqrt(l);return{value:o,distance:c}},b0t=(e,t,n=1)=>{const r=n*6;let{value:i}=pve(r,e,t);return i=i*n%60,i},y0t=(e,t,n)=>{const{value:r,distance:i}=pve(30,e,t);let a=r||12;return n?a%=12:i{const{classes:t}=e;return Wt({root:["root"],thumb:["thumb"]},v0t,t)},E0t=Le("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>$({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),w0t=Le("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>$({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${qh/2}px)`,border:`${(qh-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function T0t(e){const t=Pt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:a}=t,s=ut(t,O0t),o=M.useRef(i);M.useEffect(()=>{o.current=i},[i]);const l=$({},t,{shouldAnimate:o.current!==i}),c=S0t(l),d=()=>{let p=360/(i==="hours"?12:60)*a;return i==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*QS),transform:`rotateZ(${p}deg)`}};return D.jsx(E0t,$({style:d(),className:bt(n,c.root),ownerState:l},s,{children:D.jsx(w0t,{ownerState:l,className:c.thumb})}))}function x0t(e){return qt("MuiClock",e)}Gt("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const k0t=e=>{const{classes:t}=e;return Wt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},x0t,t)},C0t=Le("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),_0t=Le("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),A0t=Le("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),R0t=Le("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>$({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),I0t=Le("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),D0t=Le(ys,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>$({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:qh},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),N0t=Le(ys,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>$({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:qh},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Uae=Le(Xr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function P0t(e){const t=Pt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:o,isTimeDisabled:l,meridiemMode:c,minutesStep:d=1,onChange:h,selectedId:p,type:b,viewValue:v,disabled:S,readOnly:w,className:T}=t,x=t,k=wr(),C=ws(),I=M.useRef(!1),_=k0t(x),A=l(v,b),U=!n&&b==="hours"&&(v<1||v>12),F=(ne,j)=>{S||w||l(ne,b)||h(ne,j)},P=(ne,j)=>{let{offsetX:Ce,offsetY:ye}=ne;if(Ce===void 0){const ve=ne.target.getBoundingClientRect();Ce=ne.changedTouches[0].clientX-ve.left,ye=ne.changedTouches[0].clientY-ve.top}const te=b==="seconds"||b==="minutes"?b0t(Ce,ye,d):y0t(Ce,ye,!!n);F(te,j)},V=ne=>{I.current=!0,P(ne,"shallow")},Q=ne=>{I.current&&(P(ne,"finish"),I.current=!1)},X=ne=>{ne.buttons>0&&P(ne.nativeEvent,"shallow")},Y=ne=>{I.current&&(I.current=!1),P(ne.nativeEvent,"finish")},W=M.useMemo(()=>b==="hours"?!0:v%5===0,[b,v]),ee=b==="minutes"?d:1,J=M.useRef(null);Oa(()=>{i&&J.current.focus()},[i]);const K=ne=>{if(!I.current)switch(ne.key){case"Home":F(0,"partial"),ne.preventDefault();break;case"End":F(b==="minutes"?59:23,"partial"),ne.preventDefault();break;case"ArrowUp":F(v+ee,"partial"),ne.preventDefault();break;case"ArrowDown":F(v-ee,"partial"),ne.preventDefault();break}};return D.jsxs(C0t,{className:bt(T,_.root),children:[D.jsxs(_0t,{className:_.clock,children:[D.jsx(R0t,{onTouchMove:V,onTouchEnd:Q,onMouseUp:Y,onMouseMove:X,ownerState:{disabled:S},className:_.squareMask}),!A&&D.jsxs(M.Fragment,{children:[D.jsx(I0t,{className:_.pin}),s!=null&&D.jsx(T0t,{type:b,viewValue:v,isInner:U,hasSelected:W})]}),D.jsx(A0t,{"aria-activedescendant":p,"aria-label":C.clockLabelText(b,s,k),ref:J,role:"listbox",onKeyDown:K,tabIndex:0,className:_.wrapper,children:a})]}),n&&r&&D.jsxs(M.Fragment,{children:[D.jsx(D0t,{onClick:w?void 0:()=>o("am"),disabled:S||c===null,ownerState:x,className:_.amButton,title:pf(k,"am"),children:D.jsx(Uae,{variant:"caption",className:_.meridiemText,children:pf(k,"am")})}),D.jsx(N0t,{disabled:S||c===null,onClick:w?void 0:()=>o("pm"),ownerState:x,className:_.pmButton,title:pf(k,"pm"),children:D.jsx(Uae,{variant:"caption",className:_.meridiemText,children:pf(k,"pm")})})]})]})}function M0t(e){return qt("MuiClockNumber",e)}const y3=Gt("MuiClockNumber",["root","selected","disabled"]),L0t=["className","disabled","index","inner","label","selected"],$0t=e=>{const{classes:t,selected:n,disabled:r}=e;return Wt({root:["root",n&&"selected",r&&"disabled"]},M0t,t)},F0t=Le("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${y3.disabled}`]:t.disabled},{[`&.${y3.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>$({height:qh,width:qh,position:"absolute",left:`calc((100% - ${qh}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${y3.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${y3.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function mve(e){const t=Pt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:a,label:s,selected:o}=t,l=ut(t,L0t),c=t,d=$0t(c),h=i%12/12*Math.PI*2-Math.PI/2,p=(QS-qh-2)/2*(a?.65:1),b=Math.round(Math.cos(h)*p),v=Math.round(Math.sin(h)*p);return D.jsx(F0t,$({className:bt(n,d.root),"aria-disabled":r?!0:void 0,"aria-selected":o?!0:void 0,role:"option",style:{transform:`translate(${b}px, ${v+(QS-qh)/2}px`},ownerState:c},l,{children:s}))}const B0t=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:a})=>{const s=t?a.getHours(t):null,o=[],l=e?1:0,c=e?12:23,d=h=>s===null?!1:e?h===12?s===12||s===0:s===h||s-12===h:s===h;for(let h=l;h<=c;h+=1){let p=h.toString();h===0&&(p="00");const b=!e&&(h===0||h>12);p=a.formatNumber(p);const v=d(h);o.push(D.jsx(mve,{id:v?i:void 0,index:h,inner:b,selected:v,disabled:r(h),label:p,"aria-label":n(p)},h))}return o},zae=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([s,o],l)=>{const c=s===t;return D.jsx(mve,{label:o,id:c?i:void 0,index:l+1,inner:!1,disabled:n(s),selected:c,"aria-label":r(o)},s)})},U0t=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],z0t=e=>{const{classes:t}=e;return Wt({root:["root"],arrowSwitcher:["arrowSwitcher"]},h0t,t)},j0t=Le(x6,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),H0t=Le(Qye,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),V0t=["hours","minutes"],W0t=M.forwardRef(function(t,n){const r=wr(),i=Pt({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:o,components:l,componentsProps:c,slots:d,slotProps:h,value:p,defaultValue:b,referenceDate:v,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:w,minTime:T,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:I,shouldDisableTime:_,showViewSwitcher:A,onChange:U,view:F,views:P=V0t,openTo:V,onViewChange:Q,focusedView:X,onFocusedViewChange:Y,className:W,disabled:ee,readOnly:J,timezone:K}=i,ne=ut(i,U0t),j=d??MC(l),Ce=h??c,{value:ye,handleValueChange:te,timezone:ve}=DE({name:"TimeClock",timezone:K,value:p,defaultValue:b,onChange:U,valueManager:Es}),Se=Xq({value:ye,referenceDate:v,utils:r,props:i,timezone:ve}),he=ws(),Ne=Zg(ve),{view:Pe,setView:Ze,previousView:st,nextView:Qe,setValueAndGoToNextView:Je}=LC({view:F,views:P,openTo:V,onViewChange:Q,onChange:te,focusedView:X,onFocusedViewChange:Y}),{meridiemMode:Ye,handleMeridiemChange:nt}=w6(Se,a,Je),tt=M.useCallback((ue,me)=>{const We=PC(S,r),et=me==="hours"||me==="minutes"&&P.includes("seconds"),qe=({start:Te,end:Oe})=>!(T&&We(T,Oe)||w&&We(Te,w)||x&&We(Te,Ne)||k&&We(Ne,et?Oe:Te)),pe=(Te,Oe=1)=>{if(Te%Oe!==0||I!=null&&I(Te,me))return!1;if(_)switch(me){case"hours":return!_(r.setHours(Se,Te),"hours");case"minutes":return!_(r.setMinutes(Se,Te),"minutes");case"seconds":return!_(r.setSeconds(Se,Te),"seconds");default:return!1}return!0};switch(me){case"hours":{const Te=ak(ue,Ye,a),Oe=r.setHours(Se,Te),De=r.setSeconds(r.setMinutes(Oe,0),0),je=r.setSeconds(r.setMinutes(Oe,59),59);return!qe({start:De,end:je})||!pe(Te)}case"minutes":{const Te=r.setMinutes(Se,ue),Oe=r.setSeconds(Te,0),De=r.setSeconds(Te,59);return!qe({start:Oe,end:De})||!pe(ue,C)}case"seconds":{const Te=r.setSeconds(Se,ue);return!qe({start:Te,end:Te})||!pe(ue)}default:throw new Error("not supported")}},[a,Se,S,w,Ye,T,C,I,_,r,x,k,Ne,P]),ht=Cf(),_t=M.useMemo(()=>{switch(Pe){case"hours":{const ue=(me,We)=>{const et=ak(me,Ye,a);Je(r.setHours(Se,et),We)};return{onChange:ue,viewValue:r.getHours(Se),children:B0t({value:ye,utils:r,ampm:a,onChange:ue,getClockNumberText:he.hoursClockNumberText,isDisabled:me=>ee||tt(me,"hours"),selectedId:ht})}}case"minutes":{const ue=r.getMinutes(Se),me=(We,et)=>{Je(r.setMinutes(Se,We),et)};return{viewValue:ue,onChange:me,children:zae({utils:r,value:ue,onChange:me,getClockNumberText:he.minutesClockNumberText,isDisabled:We=>ee||tt(We,"minutes"),selectedId:ht})}}case"seconds":{const ue=r.getSeconds(Se),me=(We,et)=>{Je(r.setSeconds(Se,We),et)};return{viewValue:ue,onChange:me,children:zae({utils:r,value:ue,onChange:me,getClockNumberText:he.secondsClockNumberText,isDisabled:We=>ee||tt(We,"seconds"),selectedId:ht})}}default:throw new Error("You must provide the type for ClockView")}},[Pe,r,ye,a,he.hoursClockNumberText,he.minutesClockNumberText,he.secondsClockNumberText,Ye,Je,Se,tt,ht,ee]),ot=i,ge=z0t(ot);return D.jsxs(j0t,$({ref:n,className:bt(ge.root,W),ownerState:ot},ne,{children:[D.jsx(P0t,$({autoFocus:o??!!X,ampmInClock:s&&P.includes("hours"),value:ye,type:Pe,ampm:a,minutesStep:C,isTimeDisabled:tt,meridiemMode:Ye,handleMeridiemChange:nt,selectedId:ht,disabled:ee,readOnly:J},_t)),A&&D.jsx(H0t,{className:ge.arrowSwitcher,slots:j,slotProps:Ce,onGoToPrevious:()=>Ze(st),isPreviousDisabled:!st,previousLabel:he.openPreviousView,onGoToNext:()=>Ze(Qe),isNextDisabled:!Qe,nextLabel:he.openNextView,ownerState:ot})]}))});function Q0t(e){return qt("MuiDigitalClock",e)}const Y0t=Gt("MuiDigitalClock",["root","list","item"]),q0t=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],G0t=e=>{const{classes:t}=e;return Wt({root:["root"],list:["list"],item:["item"]},Q0t,t)},Z0t=Le(x6,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:Yye})),X0t=Le(oE,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),K0t=Le(Sg,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Bn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Bn(e.palette.primary.main,e.palette.action.focusOpacity)}})),J0t=M.forwardRef(function(t,n){var r,i,a;const s=wr(),o=M.useRef(null),l=rr(n,o),c=Pt({props:t,name:"MuiDigitalClock"}),{ampm:d=s.is12HourCycleInCurrentLocale(),timeStep:h=30,autoFocus:p,components:b,componentsProps:v,slots:S,slotProps:w,value:T,defaultValue:x,referenceDate:k,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:I,minTime:_,disableFuture:A,disablePast:U,minutesStep:F=1,shouldDisableClock:P,shouldDisableTime:V,onChange:Q,view:X,openTo:Y,onViewChange:W,focusedView:ee,onFocusedViewChange:J,className:K,disabled:ne,readOnly:j,views:Ce=["hours"],skipDisabled:ye=!1,timezone:te}=c,ve=ut(c,q0t),{value:Se,handleValueChange:he,timezone:Ne}=DE({name:"DigitalClock",timezone:te,value:T,defaultValue:x,onChange:Q,valueManager:Es}),Pe=ws(),Ze=Zg(Ne),st=M.useMemo(()=>$({},c,{alreadyRendered:!!o.current}),[c]),Qe=G0t(st),Je=(r=(i=S==null?void 0:S.digitalClockItem)!=null?i:b==null?void 0:b.DigitalClockItem)!=null?r:K0t,Ye=mr({elementType:Je,externalSlotProps:(a=w==null?void 0:w.digitalClockItem)!=null?a:v==null?void 0:v.digitalClockItem,ownerState:{},className:Qe.item}),nt=Xq({value:Se,referenceDate:k,utils:s,props:c,timezone:Ne}),tt=on(ue=>he(ue,"finish","hours")),{setValueAndGoToNextView:ht}=LC({view:X,views:Ce,openTo:Y,onViewChange:W,onChange:tt,focusedView:ee,onFocusedViewChange:J}),_t=on(ue=>{ht(ue,"finish")});M.useEffect(()=>{if(o.current===null)return;const ue=o.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ue)return;const me=ue.offsetTop;o.current.scrollTop=me-4});const ot=M.useCallback(ue=>{const me=PC(C,s),We=()=>!(_&&me(_,ue)||I&&me(ue,I)||A&&me(ue,Ze)||U&&me(Ze,ue)),et=()=>s.getMinutes(ue)%F!==0||P!=null&&P(s.toJsDate(ue).getTime(),"hours")?!1:V?!V(ue,"hours"):!0;return!We()||!et()},[C,s,_,I,A,Ze,U,F,P,V]),ge=M.useMemo(()=>{const ue=s.startOfDay(nt);return[ue,...Array.from({length:Math.ceil(24*60/h)-1},(me,We)=>s.addMinutes(ue,h*(We+1)))]},[nt,h,s]);return D.jsx(Z0t,$({ref:l,className:bt(Qe.root,K),ownerState:st},ve,{children:D.jsx(X0t,{autoFocusItem:p||!!ee,role:"listbox","aria-label":Pe.timePickerToolbarTitle,className:Qe.list,children:ge.map(ue=>{if(ye&&ot(ue))return null;const me=s.isEqual(ue,Se);return D.jsx(Je,$({onClick:()=>!j&&_t(ue),selected:me,disabled:ne||ot(ue),disableRipple:j,role:"option","aria-disabled":j,"aria-selected":me},Ye,{children:s.format(ue,d?"fullTime12h":"fullTime24h")}),s.toISO(ue))})})}))}),QO=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,ampmInClock:k,components:C,componentsProps:I,slots:_,slotProps:A,readOnly:U,disabled:F,sx:P,autoFocus:V,showViewSwitcher:Q,disableIgnoringDatePartForTimeValidation:X,timezone:Y})=>D.jsx(W0t,{view:e,onViewChange:t,focusedView:n&&WS(n)?n:null,onFocusedViewChange:r,views:i.filter(WS),value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,ampmInClock:k,components:C,componentsProps:I,slots:_,slotProps:A,readOnly:U,disabled:F,sx:P,autoFocus:V,showViewSwitcher:Q,disableIgnoringDatePartForTimeValidation:X,timezone:Y}),gve=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,components:k,componentsProps:C,slots:I,slotProps:_,readOnly:A,disabled:U,sx:F,autoFocus:P,disableIgnoringDatePartForTimeValidation:V,timeSteps:Q,skipDisabled:X,timezone:Y})=>D.jsx(J0t,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(WS),value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,components:k,componentsProps:C,slots:I,slotProps:_,readOnly:A,disabled:U,sx:F,autoFocus:P,disableIgnoringDatePartForTimeValidation:V,timeStep:Q==null?void 0:Q.minutes,skipDisabled:X,timezone:Y}),bB=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,components:k,componentsProps:C,slots:I,slotProps:_,readOnly:A,disabled:U,sx:F,autoFocus:P,disableIgnoringDatePartForTimeValidation:V,timeSteps:Q,skipDisabled:X,timezone:Y})=>D.jsx(d0t,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(WS),value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,components:k,componentsProps:C,slots:I,slotProps:_,readOnly:A,disabled:U,sx:F,autoFocus:P,disableIgnoringDatePartForTimeValidation:V,timeSteps:Q,skipDisabled:X,timezone:Y}),Z1=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minDate:b,minTime:v,maxDate:S,maxTime:w,shouldDisableDate:T,shouldDisableMonth:x,shouldDisableYear:k,shouldDisableTime:C,shouldDisableClock:I,reduceAnimations:_,minutesStep:A,ampm:U,onMonthChange:F,monthsPerRow:P,onYearChange:V,yearsPerRow:Q,defaultCalendarMonth:X,components:Y,componentsProps:W,slots:ee,slotProps:J,loading:K,renderLoading:ne,disableHighlightToday:j,readOnly:Ce,disabled:ye,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:ve,sx:Se,autoFocus:he,fixedWeekNumber:Ne,displayWeekNumber:Pe,timezone:Ze,disableIgnoringDatePartForTimeValidation:st,timeSteps:Qe,skipDisabled:Je,timeViewsCount:Ye,shouldRenderTimeInASingleColumn:nt})=>{var tt,ht;const _t=!!((tt=Fg((ht=J==null?void 0:J.actionBar)!=null?ht:W==null?void 0:W.actionBar,{}))!=null&&(tt=tt.actions)!=null&&tt.length),ot={view:w0(e)?e:"hours",onViewChange:t,focusedView:r&&w0(r)?r:null,onFocusedViewChange:i,views:n.filter(w0),value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:v,maxTime:w,shouldDisableTime:C,shouldDisableClock:I,minutesStep:A,ampm:U,components:Y,componentsProps:W,slots:ee,slotProps:J,readOnly:Ce,disabled:ye,autoFocus:he,disableIgnoringDatePartForTimeValidation:st,timeSteps:Qe,skipDisabled:Je,timezone:Ze};return D.jsxs(M.Fragment,{children:[D.jsxs(f0t,{children:[D.jsx(ove,{view:VO(e)?e:"day",onViewChange:t,views:n.filter(VO),focusedView:r&&VO(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minDate:b,maxDate:S,shouldDisableDate:T,shouldDisableMonth:x,shouldDisableYear:k,reduceAnimations:_,onMonthChange:F,monthsPerRow:P,onYearChange:V,yearsPerRow:Q,defaultCalendarMonth:X,components:Y,componentsProps:W,slots:ee,slotProps:J,loading:K,renderLoading:ne,disableHighlightToday:j,readOnly:Ce,disabled:ye,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:ve,sx:Se,autoFocus:he,fixedWeekNumber:Ne,displayWeekNumber:Pe,timezone:Ze}),Ye>0&&D.jsxs(M.Fragment,{children:[D.jsx(Yp,{orientation:"vertical"}),nt?gve($({},ot,{view:"hours",views:["hours"],focusedView:r&&w0(r)?"hours":null,sx:$({width:"auto",[`&.${Y0t.root}`]:{maxHeight:E6}},Array.isArray(Se)?Se:[Se])})):bB($({},ot,{view:w0(e)?e:"hours",views:n.filter(w0),focusedView:r&&w0(r)?r:null,sx:$({borderBottom:0,width:"auto",[`.${t0t.root}`]:{maxHeight:"100%"}},Array.isArray(Se)?Se:[Se])}))]})]}),_t&&D.jsx(Yp,{})]})},egt=["views","format"],bve=(e,t)=>{let{views:n,format:r}=t,i=ut(t,egt);if(r)return r;const a=[],s=[];if(n.forEach(c=>{WS(c)?s.push(c):a.push(c)}),s.length===0)return ik(e,$({views:a},i),!1);if(a.length===0)return MI(e,$({views:s},i));const o=MI(e,$({views:s},i));return`${ik(e,$({views:a},i),!1)} ${o}`},tgt=(e,t,n)=>n?t.filter(r=>!w0(r)||r==="hours"):e?[...t,"meridiem"]:t,ngt=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function yve({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,a=$({hours:1,minutes:5,seconds:5},n),s=ngt(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:s,views:tgt(t,r,s)}}const vve=M.forwardRef(function(t,n){var r,i,a,s,o,l,c;const d=ws(),h=wr(),p=fve(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:b,thresholdToRenderTimeInASingleColumn:v,views:S,timeSteps:w}=yve(p),T=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,x=T?{day:Z1,month:Z1,year:Z1,hours:Z1,minutes:Z1,seconds:Z1,meridiem:Z1}:$({day:bd,month:bd,year:bd,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),k=(r=p.ampmInClock)!=null?r:!0,C=T?["accept"]:[],I=$({},p,{viewRenderers:x,format:bve(h,p),views:S,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:k,timeSteps:w,thresholdToRenderTimeInASingleColumn:v,shouldRenderTimeInASingleColumn:b,slots:$({field:uve,openPickerIcon:Wye},p.slots),slotProps:$({},p.slotProps,{field:A=>{var U;return $({},Fg((U=p.slotProps)==null?void 0:U.field,A),NE(p),{ref:n})},toolbar:$({hidden:!0,ampmInClock:k,toolbarVariant:T?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:$({hidden:!0},(s=p.slotProps)==null?void 0:s.tabs),actionBar:$({actions:C},(o=p.slotProps)==null?void 0:o.actionBar)})}),{renderPicker:_}=Yq({props:I,valueManager:Es,valueType:"date-time",getOpenDialogAriaText:(l=(c=I.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:d.openDatePickerDialogue,validator:T6});return _()});vve.propTypes={ampm:G.bool,ampmInClock:G.bool,autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,dayOfWeekFormatter:G.func,defaultCalendarMonth:G.any,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableHighlightToday:G.bool,disableIgnoringDatePartForTimeValidation:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,displayWeekNumber:G.bool,fixedWeekNumber:G.number,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:tE,label:G.node,loading:G.bool,localeText:G.object,maxDate:G.any,maxDateTime:G.any,maxTime:G.any,minDate:G.any,minDateTime:G.any,minTime:G.any,minutesStep:G.number,monthsPerRow:G.oneOf([3,4]),name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onMonthChange:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,onYearChange:G.func,open:G.bool,openTo:G.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,renderLoading:G.func,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableClock:G.func,shouldDisableDate:G.func,shouldDisableMonth:G.func,shouldDisableTime:G.func,shouldDisableYear:G.func,showDaysOutsideCurrentMonth:G.bool,skipDisabled:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),thresholdToRenderTimeInASingleColumn:G.number,timeSteps:G.shape({hours:G.number,minutes:G.number,seconds:G.number}),timezone:G.string,value:G.any,view:G.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:G.shape({day:G.func,hours:G.func,meridiem:G.func,minutes:G.func,month:G.func,seconds:G.func,year:G.func}),views:G.arrayOf(G.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:G.oneOf([3,4])};const Ove=M.forwardRef(function(t,n){var r,i,a,s,o;const l=ws(),c=wr(),d=fve(t,"MuiMobileDateTimePicker"),h=$({day:bd,month:bd,year:bd,hours:QO,minutes:QO,seconds:QO},d.viewRenderers),p=(r=d.ampmInClock)!=null?r:!1,b=$({},d,{viewRenderers:h,format:bve(c,d),ampmInClock:p,slots:$({field:uve},d.slots),slotProps:$({},d.slotProps,{field:S=>{var w;return $({},Fg((w=d.slotProps)==null?void 0:w.field,S),NE(d),{ref:n})},toolbar:$({hidden:!1,ampmInClock:p},(i=d.slotProps)==null?void 0:i.toolbar),tabs:$({hidden:!1},(a=d.slotProps)==null?void 0:a.tabs)})}),{renderPicker:v}=Gq({props:b,valueManager:Es,valueType:"date-time",getOpenDialogAriaText:(s=(o=b.localeText)==null?void 0:o.openDatePickerDialogue)!=null?s:l.openDatePickerDialogue,validator:T6});return v()});Ove.propTypes={ampm:G.bool,ampmInClock:G.bool,autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,dayOfWeekFormatter:G.func,defaultCalendarMonth:G.any,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableHighlightToday:G.bool,disableIgnoringDatePartForTimeValidation:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,displayWeekNumber:G.bool,fixedWeekNumber:G.number,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:tE,label:G.node,loading:G.bool,localeText:G.object,maxDate:G.any,maxDateTime:G.any,maxTime:G.any,minDate:G.any,minDateTime:G.any,minTime:G.any,minutesStep:G.number,monthsPerRow:G.oneOf([3,4]),name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onMonthChange:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,onYearChange:G.func,open:G.bool,openTo:G.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,renderLoading:G.func,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableClock:G.func,shouldDisableDate:G.func,shouldDisableMonth:G.func,shouldDisableTime:G.func,shouldDisableYear:G.func,showDaysOutsideCurrentMonth:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),timezone:G.string,value:G.any,view:G.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:G.shape({day:G.func,hours:G.func,minutes:G.func,month:G.func,seconds:G.func,year:G.func}),views:G.arrayOf(G.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:G.oneOf([3,4])};const rgt=["desktopModeMediaQuery"],igt=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=jq}=r,a=ut(r,rgt);return sE(i,{defaultMatches:!0})?D.jsx(vve,$({ref:n},a)):D.jsx(Ove,$({ref:n},a))}),agt=e=>{var t,n,r,i;const a=wr(),o=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return $({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:o})},sgt=({props:e,inputRef:t})=>{const n=agt(e),{forwardedProps:r,internalProps:i}=Qq(n,"time");return Wq({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Es,fieldValueManager:Uq,validator:$C,valueType:"time"})},ogt=["slots","slotProps","components","componentsProps","InputProps","inputProps"],lgt=["inputRef"],ugt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Sve=M.forwardRef(function(t,n){var r,i,a;const s=Pt({props:t,name:"MuiTimeField"}),{slots:o,slotProps:l,components:c,componentsProps:d,InputProps:h,inputProps:p}=s,b=ut(s,ogt),v=s,S=(r=(i=o==null?void 0:o.textField)!=null?i:c==null?void 0:c.TextField)!=null?r:jg,w=mr({elementType:S,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:d==null?void 0:d.textField,externalForwardedProps:b,ownerState:v}),{inputRef:T}=w,x=ut(w,lgt);x.inputProps=$({},p,x.inputProps),x.InputProps=$({},h,x.InputProps);const k=sgt({props:x,inputRef:T}),{ref:C,onPaste:I,onKeyDown:_,inputMode:A,readOnly:U,clearable:F,onClear:P}=k,V=ut(k,ugt),{InputProps:Q,fieldProps:X}=qq({onClear:P,clearable:F,fieldProps:V,InputProps:V.InputProps,slots:o,slotProps:l,components:c,componentsProps:d});return D.jsx(S,$({ref:n},X,{InputProps:$({},Q,{readOnly:U}),inputProps:$({},V.inputProps,{inputMode:A,onPaste:I,onKeyDown:_,ref:C})}))});function cgt(e){return qt("MuiTimePickerToolbar",e)}const HT=Gt("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),dgt=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],fgt=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Wt(i,cgt,r)},hgt=Le(zq,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pgt=Le(Hq,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Eve=Le("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${HT.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${HT.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Eve.propTypes={as:G.elementType,ownerState:G.object.isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object])};const wve=Le("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${HT.ampmLabel}`]:t.ampmLabel},{[`&.${HT.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>$({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${HT.ampmLabel}`]:{fontSize:17}}));wve.propTypes={as:G.elementType,ownerState:G.object.isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object])};function mgt(e){const t=Pt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:a,onChange:s,view:o,onViewChange:l,views:c,disabled:d,readOnly:h}=t,p=ut(t,dgt),b=wr(),v=ws(),S=Ki(),w=!!(n&&!r&&c.includes("hours")),{meridiemMode:T,handleMeridiemChange:x}=w6(i,n,s),k=A=>n?b.format(A,"hours12h"):b.format(A,"hours24h"),C=t,I=fgt($({},C,{theme:S})),_=D.jsx(pgt,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:I.separator});return D.jsxs(hgt,$({landscapeDirection:"row",toolbarTitle:v.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:I.root},p,{children:[D.jsxs(Eve,{className:I.hourMinuteLabel,ownerState:C,children:[Zv(c,"hours")&&D.jsx(qu,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:o==="hours",value:i?k(i):"--"}),Zv(c,["hours","minutes"])&&_,Zv(c,"minutes")&&D.jsx(qu,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:o==="minutes",value:i?b.format(i,"minutes"):"--"}),Zv(c,["minutes","seconds"])&&_,Zv(c,"seconds")&&D.jsx(qu,{variant:"h3",onClick:()=>l("seconds"),selected:o==="seconds",value:i?b.format(i,"seconds"):"--"})]}),w&&D.jsxs(wve,{className:I.ampmSelection,ownerState:C,children:[D.jsx(qu,{disableRipple:!0,variant:"subtitle2",selected:T==="am",typographyClassName:I.ampmLabel,value:pf(b,"am"),onClick:h?void 0:()=>x("am"),disabled:d}),D.jsx(qu,{disableRipple:!0,variant:"subtitle2",selected:T==="pm",typographyClassName:I.ampmLabel,value:pf(b,"pm"),onClick:h?void 0:()=>x("pm"),disabled:d})]})]}))}function Tve(e,t){var n,r,i,a,s;const o=wr(),l=Pt({props:e,name:t}),c=(n=l.ampm)!=null?n:o.is12HourCycleInCurrentLocale(),d=M.useMemo(()=>{var b;return((b=l.localeText)==null?void 0:b.toolbarTitle)==null?l.localeText:$({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),h=(r=l.slots)!=null?r:MC(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return $({},l,{ampm:c,localeText:d},Lq({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(s=l.disablePast)!=null?s:!1,slots:$({toolbar:mgt},h),slotProps:$({},p,{toolbar:$({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const xve=M.forwardRef(function(t,n){var r,i,a,s,o,l;const c=ws(),d=wr(),h=Tve(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:b,timeSteps:v}=yve(h),S=p?gve:bB,w=$({hours:S,minutes:S,seconds:S,meridiem:S},h.viewRenderers),T=(r=h.ampmInClock)!=null?r:!0,x=p?[]:["accept"],C=((i=w.hours)==null?void 0:i.name)===bB.name?b:b.filter(A=>A!=="meridiem"),I=$({},h,{ampmInClock:T,timeSteps:v,viewRenderers:w,format:MI(d,h),views:p?["hours"]:C,slots:$({field:Sve,openPickerIcon:Zft},h.slots),slotProps:$({},h.slotProps,{field:A=>{var U;return $({},Fg((U=h.slotProps)==null?void 0:U.field,A),NE(h),{ref:n})},toolbar:$({hidden:!0,ampmInClock:T},(a=h.slotProps)==null?void 0:a.toolbar),actionBar:$({actions:x},(s=h.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:_}=Yq({props:I,valueManager:Es,valueType:"time",getOpenDialogAriaText:(o=(l=I.localeText)==null?void 0:l.openTimePickerDialogue)!=null?o:c.openTimePickerDialogue,validator:$C});return _()});xve.propTypes={ampm:G.bool,ampmInClock:G.bool,autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableIgnoringDatePartForTimeValidation:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:tE,label:G.node,localeText:G.object,maxTime:G.any,minTime:G.any,minutesStep:G.number,name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,open:G.bool,openTo:G.oneOf(["hours","meridiem","minutes","seconds"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableClock:G.func,shouldDisableTime:G.func,skipDisabled:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),thresholdToRenderTimeInASingleColumn:G.number,timeSteps:G.shape({hours:G.number,minutes:G.number,seconds:G.number}),timezone:G.string,value:G.any,view:G.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:G.shape({hours:G.func,meridiem:G.func,minutes:G.func,seconds:G.func}),views:G.arrayOf(G.oneOf(["hours","minutes","seconds"]).isRequired)};const kve=M.forwardRef(function(t,n){var r,i,a,s;const o=ws(),l=wr(),c=Tve(t,"MuiMobileTimePicker"),d=$({hours:QO,minutes:QO,seconds:QO},c.viewRenderers),h=(r=c.ampmInClock)!=null?r:!1,p=$({},c,{ampmInClock:h,viewRenderers:d,format:MI(l,c),slots:$({field:Sve},c.slots),slotProps:$({},c.slotProps,{field:v=>{var S;return $({},Fg((S=c.slotProps)==null?void 0:S.field,v),NE(c),{ref:n})},toolbar:$({hidden:!1,ampmInClock:h},(i=c.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:b}=Gq({props:p,valueManager:Es,valueType:"time",getOpenDialogAriaText:(a=(s=p.localeText)==null?void 0:s.openTimePickerDialogue)!=null?a:o.openTimePickerDialogue,validator:$C});return b()});kve.propTypes={ampm:G.bool,ampmInClock:G.bool,autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableIgnoringDatePartForTimeValidation:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:tE,label:G.node,localeText:G.object,maxTime:G.any,minTime:G.any,minutesStep:G.number,name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,open:G.bool,openTo:G.oneOf(["hours","minutes","seconds"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableClock:G.func,shouldDisableTime:G.func,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),timezone:G.string,value:G.any,view:G.oneOf(["hours","minutes","seconds"]),viewRenderers:G.shape({hours:G.func,minutes:G.func,seconds:G.func}),views:G.arrayOf(G.oneOf(["hours","minutes","seconds"]).isRequired)};const ggt=["desktopModeMediaQuery"],bgt=M.forwardRef(function(t,n){const r=Pt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=jq}=r,a=ut(r,ggt);return sE(i,{defaultMatches:!0})?D.jsx(xve,$({ref:n},a)):D.jsx(kve,$({ref:n},a))});var Kq={},ygt=Ma;Object.defineProperty(Kq,"__esModule",{value:!0});var Cve=Kq.default=void 0,vgt=ygt(La()),Ogt=D;Cve=Kq.default=(0,vgt.default)((0,Ogt.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var Jq={},Sgt=Ma;Object.defineProperty(Jq,"__esModule",{value:!0});var eG=Jq.default=void 0,Egt=Sgt(La()),wgt=D;eG=Jq.default=(0,Egt.default)((0,wgt.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var tG={},Tgt=Ma;Object.defineProperty(tG,"__esModule",{value:!0});var _ve=tG.default=void 0,xgt=Tgt(La()),kgt=D;_ve=tG.default=(0,xgt.default)((0,kgt.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function yB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mgt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Lgt(e,t){return Cgt(e)||Igt(e,t)||Ave(e,t)||Dgt()}function Pg(e){return _gt(e)||Rgt(e)||Ave(e)||Ngt()}function $gt(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Ave(e,t){if(e){if(typeof e=="string")return yB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yB(e,t)}}var Fgt=M.createContext({onError:function(e){return e==null?void 0:e.message}}),Oc=function(){var e;return(e=M.useContext(Fgt))===null||e===void 0?void 0:e.onError};function hu(e){var t;return{value:typeof((t=e.transform)===null||t===void 0?void 0:t.input)=="function"?e.transform.input(e.value):e.value,onChange:function(){for(var n=arguments.length,r=new Array(n),i=0;i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),T=fu({name:o,control:l,disabled:b.disabled,rules:w}),x=T.field,k=T.fieldState,C=k.error,I=hu({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(F){return F||""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(F){var P=F.target.value;return a==="number"&&P?+P:P}}}),_=I.value,A=I.onChange,U=rr(x.ref,h);return D.jsx(d,br(dn({},b),{name:x.name,value:_,onChange:function(F){A(F),typeof b.onChange=="function"&&b.onChange(F)},onBlur:x.onBlur,required:s,type:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:b.helperText,ref:t,inputRef:U}))});Rve.displayName="TextFieldElement";var k6=Rve;function FC(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=bo(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),D.jsx(vye,br(dn({},i),{children:D.jsx("form",br(dn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):D.jsx(Bgt,dn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function Bgt(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=bo(e,["onSuccess","onError","FormProps","children"]),s=Dye(dn({},a)),o=s.handleSubmit;return D.jsx(vye,br(dn({},s),{children:D.jsx("form",br(dn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Ive={disableFuture:"Date must be in the past",maxDate:"Date is later than the maximum allowed date",disablePast:"Past date is not allowed",invalidDate:"Date is invalid",minDate:"Date is earlier than the minimum allowed date",shouldDisableDate:"Date is not allowed",shouldDisableMonth:"Month is not allowed",shouldDisableYear:"Year is not allowed"},Ugt=M.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,a=e.validation,s=a===void 0?{}:a,o=e.inputProps,l=e.control,c=e.textReadOnly,d=e.slotProps,h=e.overwriteErrorMessages,p=e.inputRef,b=e.transform,v=bo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),S=$f(),w=Oc(),T=n||w,x=dn({},Ive,h),k=br(dn({},s,i&&!s.required&&{required:"This field is required"}),{validate:dn({internal:function(X){var Y,W,ee=X==null||!S.utils.isValid(X)?null:S.utils.getTimezone(X),J=yy({props:{shouldDisableDate:v.shouldDisableDate,shouldDisableMonth:v.shouldDisableMonth,shouldDisableYear:v.shouldDisableYear,disablePast:!!v.disablePast,disableFuture:!!v.disableFuture,minDate:v.minDate,maxDate:v.maxDate,timezone:(W=(Y=v.timezone)!==null&&Y!==void 0?Y:ee)!==null&&W!==void 0?W:"default"},value:X,adapter:S});return J==null||x[J]}},s.validate)}),C=fu({name:r,control:l,rules:k,disabled:v.disabled,defaultValue:null}),I=C.field,_=C.fieldState,A=_.error,U=hu({value:I.value,onChange:I.onChange,transform:{input:typeof(b==null?void 0:b.input)=="function"?b.input:function(X){return X&&X==="string"?new Date(X):X},output:typeof(b==null?void 0:b.output)=="function"?b.output:function(X){return X}}}),F=U.value,P=U.onChange,V=rr(I.ref,p),Q=A?typeof T=="function"?T(A):A.message:null;return D.jsx(Pmt,br(dn({},v,I),{value:F,ref:t,inputRef:V,onClose:function(){for(var X=arguments.length,Y=new Array(X),W=0;W"u"?"undefined":$gt(X))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),D.jsxs(jg,br(dn({},k),{name:r,value:X,onBlur:F.onBlur,ref:t,onChange:function(ee){if(Y(ee),typeof k.onChange=="function"){var J=ee.target.value;p==="number"&&J&&(J=Number(J)),b&&(J=d.find(function(K){return K[s]===J})),k.onChange(J)}},select:!0,required:i,error:!!V,helperText:V?typeof I=="function"?I(V):V.message:k.helperText,inputRef:W,children:[_&&D.jsx("option",{}),d.map(function(ee){var J,K={key:"".concat(r,"_").concat(ee[s]),value:(J=ee==null?void 0:ee[s])!==null&&J!==void 0?J:ee,disabled:eu(ee,"disabled")?!!ee.disabled:!1,children:ee[l]};return _?D.jsx("option",dn({},K)):D.jsx(Sg,dn({},K))})]}))});Dve.displayName="SelectElement";var vB=Dve,Ygt=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,c=l===void 0?"label":l,d=e.valueKey,h=d===void 0?"id":d,p=e.returnObject,b=e.disabled,v=e.row,S=e.control,w=e.checkboxColor,T=e.rules,x=e.labelProps,k=e.transform,C=e.defaultValue,I=C===void 0?[]:C,_=bo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),A=Ki(),U=Oc(),F=s||U,P=fu({name:a,rules:o?{required:"This field is required"}:T,disabled:b,control:S,defaultValue:I}),V=P.field,Q=P.fieldState,X=Q.error,Y=Q.invalid,W=hu({value:V.value,onChange:V.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(j){return Array.isArray(j)?j:[]},output:k==null?void 0:k.output}}),ee=W.value,J=W.onChange,K=function(j){var Ce=eu(j,h)?j[h]:j,ye=ee.findIndex(function(ve){var Se=eu(ve,h)?ve[h]:ve;return Ce===Se}),te=(ye===-1?Pg(ee).concat([j]):ee.filter(function(ve,Se){return ye!==Se})).map(function(ve){return p||!eu(ve,h)?ve:ve[h]});J(te),typeof _.onChange=="function"&&_.onChange(te)},ne=X?typeof F=="function"?F(X):X.message:n;return D.jsxs(_f,{error:Y,required:o,ref:t,children:[i?D.jsx(sN,{children:i}):null,D.jsx(Cz,{row:v,children:r.map(function(j){var Ce=eu(j,h)?j[h]:j,ye=eu(j,c)?j[c]:j,te=ee.some(function(ve){return(eu(ve,h)?ve[h]:ve)===Ce});return M.createElement(vx,br(dn({},x),{control:D.jsx(iN,{sx:{color:X?A.palette.error.main:void 0},color:w,value:Ce,checked:te,disabled:b,onChange:function(){return K(j)}}),label:"".concat(ye),key:"".concat(Ce)}))})}),ne&&D.jsx(aE,{children:ne})]})});Ygt.displayName="CheckboxButtonGroup";var qgt=48,Ggt=8,Zgt=M.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,c=l===void 0?"":l,d=e.itemKey,h=d===void 0?"id":d,p=e.itemValue,b=p===void 0?"":p,v=e.itemLabel,S=v===void 0?"label":v,w=e.required,T=w===void 0?!1:w,x=e.validation,k=x===void 0?{}:x,C=e.parseError,I=e.name,_=e.menuMaxHeight,A=_===void 0?qgt*4.5+Ggt:_,U=e.menuMaxWidth,F=U===void 0?250:U,P=e.minWidth,V=P===void 0?120:P,Q=e.helperText,X=e.showChips,Y=e.preserveOrder,W=e.control,ee=e.showCheckbox,J=e.formControlProps,K=e.inputRef,ne=e.transform,j=bo(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),Ce=Oc(),ye=C||Ce,te=function(tt){var ht,_t;return(_t=(ht=o.find(function(ot){var ge;return((ge=ot[b||h])!==null&&ge!==void 0?ge:ot)===tt}))===null||ht===void 0?void 0:ht[S])!==null&&_t!==void 0?_t:tt},ve=dn({},k,T&&!k.required&&{required:"This field is required"}),Se=fu({name:I,rules:ve,disabled:j.disabled,control:W}),he=Se.field,Ne=Se.fieldState,Pe=Ne.error,Ze=hu({value:he.value,onChange:he.onChange,transform:{input:typeof(ne==null?void 0:ne.input)=="function"?ne.input:function(tt){return Array.isArray(tt)?tt:[]},output:ne==null?void 0:ne.output}}),st=Ze.value,Qe=Ze.onChange,Je=rr(he.ref,K),Ye=Pe?typeof ye=="function"?ye(Pe):Pe.message:Q,nt;return D.jsxs(_f,br(dn({},J),{style:dn({minWidth:V},J==null?void 0:J.style),variant:j.variant,fullWidth:j.fullWidth,error:!!Pe,size:j.size,ref:t,children:[c&&D.jsx(Mce,{size:j.size==="small"?"small":void 0,error:!!Pe,htmlFor:j.id||"select-multi-select-".concat(I),required:T,children:c}),D.jsx(Yce,br(dn({},j),{id:j.id||"select-multi-select-".concat(I),multiple:!0,label:c||void 0,error:!!Pe,value:st,required:T,onChange:Qe,onBlur:he.onBlur,MenuProps:br(dn({},j.MenuProps),{slotProps:br(dn({},(n=j.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:dn({},(nt=(i=j.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&nt!==void 0?nt:{style:dn({maxHeight:A,width:F},eu((s=j.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof j.MenuProps.slotProps.paper.style=="object"&&dn({},j.MenuProps.slotProps.paper.style))})})}),renderValue:typeof j.renderValue=="function"?j.renderValue:X?function(tt){return D.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(Y?o.filter(function(ht){return tt.includes(ht)}):tt||[]).map(function(ht){return D.jsx(wz,{label:te(ht),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Qe((Array.isArray(st)?st:[]).filter(function(_t){return _t!==ht}))},deleteIcon:D.jsx(Cve,{onMouseDown:function(_t){_t.stopPropagation()}})},ht)})})}:function(tt){return Array.isArray(tt)?tt.map(te).join(", "):""},inputRef:Je,children:o.map(function(tt){var ht=tt[b||h]||tt,_t=Array.isArray(st)?st.some(function(ot){return ot===ht}):!1;return D.jsxs(Sg,{value:ht,sx:{fontWeight:function(ot){return _t?ot.typography.fontWeightBold:ot.typography.fontWeightRegular}},children:[ee&&D.jsx(iN,{checked:_t}),D.jsx(og,{primary:tt[S]||tt})]},ht)})})),Ye&&D.jsx(aE,{error:!!Pe,children:Ye})]}))});Zgt.displayName="MultiSelectElement";var Nve=M.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(c){return c?D.jsx(eG,{}):D.jsx(_ve,{})}:r,a=bo(e,["iconColor","renderIcon"]),s=Lgt(M.useState(!0),2),o=s[0],l=s[1];return D.jsx(k6,br(dn({},a),{ref:t,InputProps:{endAdornment:D.jsx(Sx,{position:"end",children:D.jsx(ys,{onMouseDown:function(c){return c.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});Nve.displayName="PasswordElement";var Xgt=Nve,Kgt=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,c=e.valueKey,d=c===void 0?"id":c,h=e.required,p=e.emptyOptionLabel,b=e.returnObject,v=e.row,S=e.control,w=e.type,T=e.labelProps,x=e.disabled,k=e.formLabelProps,C=e.transform,I=bo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),_=Ki(),A=Oc(),U=s||A,F=fu({name:a,rules:h?{required:"This field is required"}:void 0,disabled:x,control:S}),P=F.field,V=F.fieldState,Q=V.error,X=hu({value:P.value,onChange:P.onChange,transform:{input:typeof(C==null?void 0:C.input)=="function"?C.input:function(K){return K||""},output:typeof(C==null?void 0:C.output)=="function"?C==null?void 0:C.output:function(K,ne){return ne}}}),Y=X.value,W=X.onChange,ee=Q?typeof U=="function"?U(Q):Q.message:n,J=function(K,ne){var j=b?r.find(function(Ce){return Ce[d]===ne}):ne;W(K,j),typeof I.onChange=="function"&&I.onChange(j)};return D.jsxs(_f,{error:!!Q,ref:t,children:[i&&D.jsx(sN,br(dn({},k),{required:h,error:!!Q,children:i})),D.jsxs(g7e,{onChange:J,name:a,row:v,value:Y,children:[p&&D.jsx(vx,br(dn({},T),{control:D.jsx(sJ,{sx:{color:Q?_.palette.error.main:void 0},checked:!Y}),label:p,value:""})),r.map(function(K){var ne=K[d];ne||console.error("CheckboxButtonGroup: valueKey ".concat(d," does not exist on option"),K);var j=b?Y==null?void 0:Y[d]:Y;w==="number"&&(j=Number(j));var Ce=j===ne;return M.createElement(vx,br(dn({},T),{control:D.jsx(sJ,{sx:{color:Q?_.palette.error.main:void 0},disabled:x,checked:Ce}),value:ne,label:K[l],key:ne}))})]}),ee&&D.jsx(aE,{children:ee})]})});Kgt.displayName="RadioButtonGroup";var Jgt=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=bo(e,["name","control","switchProps","transform"]),o=fu({name:n,control:r,disabled:s.disabled}),l=o.field,c=hu({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(b,v){return v}}}),d=c.value,h=c.onChange,p=rr(l.ref,i==null?void 0:i.ref);return D.jsx(vx,dn({ref:t,control:D.jsx(f8e,br(dn({},i),{name:l.name,value:d,onChange:function(b,v){h(b,v),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(b,v)},onBlur:function(b){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(b))},ref:p,checked:!!d}))},s))});Jgt.displayName="SwitchElement";var e1t=M.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=bo(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=Tye({name:n,control:i});return D.jsx(Xgt,br(dn({control:i},a),{ref:t,validation:{validate:function(o){return o===s||(r??"Password should match")}}}))});e1t.displayName="PasswordRepeatElement";var t1t=M.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,c=e.rules,d=e.loadingIndicator,h=e.required,p=e.multiple,b=e.label,v=e.parseError,S=e.transform,w=e.matchId,T=Oc(),x=v||T,k=dn({},c,h&&{required:(c==null?void 0:c.required)||"This field is required"}),C=fu({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),I=C.field,_=C.fieldState,A=_.error,U=function(J){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(J):eu(J,"label")?"".concat(J==null?void 0:J.label):"".concat(J)},F=function(J,K){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(J,K);var ne=eu(J,"id")?J.id:J,j=eu(K,"id")?K.id:K;return ne===j},P=function(J){return s.find(function(K){return w&&eu(K,"id")?K.id===J:F(K,J)})},V=hu({value:I.value,onChange:I.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(J){var K;return p?(Array.isArray(J)?J:[]).map(P):(K=P(J))!==null&&K!==void 0?K:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(J,K){if(p){var ne=Array.isArray(K)?K:[];return w?ne.map(function(j){return eu(j,"id")?j.id:j}):ne}return w&&eu(K,"id")?K.id:K}}}),Q=V.value,X=V.onChange,Y=rr(I.ref,n==null?void 0:n.inputRef),W=d||D.jsx(Tm,{color:"inherit",size:20}),ee;return D.jsx(ERe,br(dn({},r),{value:Q,loading:o,multiple:p,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:F,getOptionLabel:U,onChange:function(J,K,ne,j){X(J,K,ne,j),r!=null&&r.onChange&&r.onChange(J,K,ne,j)},ref:t,renderOption:(ee=r==null?void 0:r.renderOption)!==null&&ee!==void 0?ee:l?function(J,K,ne){var j=ne.selected;return D.jsxs("li",br(dn({},J),{children:[D.jsx(iN,{sx:{marginRight:1},checked:j}),U(K)]}))}:void 0,onBlur:function(J){I.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(J)},renderInput:function(J){return D.jsx(jg,br(dn({name:i,required:c!=null&&c.required?!0:h,label:b},n,J),{error:!!A,InputLabelProps:dn({},J.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:dn(br(dn({},J.InputProps),{endAdornment:D.jsxs(D.Fragment,{children:[o?W:null,J.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:dn({},J.inputProps,n==null?void 0:n.inputProps),helperText:A?typeof x=="function"?x(A):A.message:n==null?void 0:n.helperText,inputRef:Y}))}}))});t1t.displayName="AutocompleteElement";var n1t=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,c=e.formControlProps,d=e.transform,h=bo(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Oc(),b=o||p,v=dn({},s,l&&!s.required&&{required:"This field is required"}),S=fu({name:n,control:r,disabled:h.disabled,rules:v}),w=S.field,T=S.fieldState,x=T.error,k=T.invalid,C=hu({value:w.value,onChange:w.onChange,transform:d}),I=C.value,_=C.onChange,A=x?typeof b=="function"?b(x):x.message:null;return D.jsxs(_f,br(dn({error:k,required:l,fullWidth:!0},c),{ref:t,children:[i&&D.jsx(sN,{component:"legend",error:k,children:i}),D.jsx(Y7e,br(dn({},h),{value:I,onChange:_,valueLabelDisplay:h.valueLabelDisplay||"auto"})),A&&D.jsx(aE,{error:k,children:A})]}))});n1t.displayName="SliderElement";var r1t=M.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,c=e.resizeStyle,d=e.inputRef,h=e.inputProps,p=e.transform,b=bo(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),v=Oc(),S=i||v,w=dn({},r,a&&!r.required&&{required:"This field is required"}),T=fu({name:s,control:o,rules:w,disabled:b.disabled}),x=T.field,k=T.fieldState,C=k.error,I=hu({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(F){return F??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(F){return F.target.value}}}),_=I.value,A=I.onChange,U=rr(x.ref,d);return D.jsx(jg,br(dn({},b),{name:s,value:_,onChange:function(F){A(F),typeof b.onChange=="function"&&b.onChange(F)},onBlur:x.onBlur,required:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:b.helperText,inputRef:U,multiline:!0,InputProps:{inputComponent:yce,inputProps:dn({minRows:l,style:{resize:c||"both"}},h||{})},ref:t}))});r1t.displayName="TextareaAutosizeElement";var nG={},i1t=Ma;Object.defineProperty(nG,"__esModule",{value:!0});var Pve=nG.default=void 0,a1t=i1t(La()),s1t=D;Pve=nG.default=(0,a1t.default)((0,s1t.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const o1t=e=>{var p;const t=Sa(IC),n=Sa(tj),[r,i]=M.useState(null),[a,s]=M.useState(null),[o,l]=M.useState(!1),[c,d]=M.useState(!1),h=M.useCallback(async b=>{var x,k;l(!0),d(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:b})})).body)==null?void 0:k.getReader();let w=!0,T="";for(;S;){const{done:C,value:I}=await S.read();if(l(!1),C)break;let _=new TextDecoder().decode(I);if(w){const A=_.split(` +`));const t=P.useMemo(()=>$({},Pht,e.localeText),[e.localeText]);return P.useMemo(()=>$({},e,{localeText:t}),[e,t])},Tr=()=>$f().utils,yy=()=>$f().defaultDates,Es=()=>$f().localeText,Xg=e=>{const t=Tr(),n=P.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function ave(e){return Ut("MuiPickersToolbar",e)}zt("MuiPickersToolbar",["root","content"]);const Mht=e=>{const{classes:t,isLandscape:n}=e;return $t({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},ave,t)},Lht=Ne("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>$({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),$ht=Ne("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),Wq=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersToolbar"}),{children:i,className:a,toolbarTitle:s,hidden:o,titleId:l}=r,c=r,d=Mht(c);return o?null:D.jsxs(Lht,{ref:n,className:gt(d.root,a),ownerState:c,children:[D.jsx(Ar,{color:"text.secondary",variant:"overline",id:l,children:s}),D.jsx($ht,{className:d.content,ownerState:c,children:i})]})});function Fht(e){return Ut("MuiDatePickerToolbar",e)}zt("MuiDatePickerToolbar",["root","title"]);const Bht=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],Uht=e=>{const{classes:t}=e;return $t({root:["root"],title:["title"]},Fht,t)},zht=Ne(Wq,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jht=Ne(Ar,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>$({},e.isLandscape&&{margin:"auto 16px auto auto"})),Hht=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:a,toolbarFormat:s,toolbarPlaceholder:o="––",views:l}=r,c=st(r,Bht),d=Tr(),h=Es(),p=Uht(r),b=P.useMemo(()=>{if(!i)return o;const S=sk(d,{format:s,views:l},!0);return d.formatByString(i,S)},[i,s,o,d,l]),v=r;return D.jsx(zht,$({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:D.jsx(jht,{variant:"h4",align:a?"left":"center",ownerState:v,className:p.title,children:b})}))}),zC=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>$({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function sve(e,t){var n,r,i,a;const s=Tr(),o=yy(),l=Rt({props:e,name:t}),c=P.useMemo(()=>{var h;return((h=l.localeText)==null?void 0:h.toolbarTitle)==null?l.localeText:$({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(n=l.slots)!=null?n:zC(l.components);return $({},l,{localeText:c},Uq({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:Fo(s,l.minDate,o.minDate),maxDate:Fo(s,l.maxDate,o.maxDate),slots:$({toolbar:Hht},d),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const Vht=ns(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Wht=ns(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Qht=ns(D.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),ove=ns(D.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Yht=ns(D.jsxs(P.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),qht=ns(D.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Ght=ns(D.jsxs(P.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),Zht=ns(D.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function Xht(e){return Ut("MuiPickersArrowSwitcher",e)}zt("MuiPickersArrowSwitcher",["root","spacer","button"]);const Kht=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Jht=["ownerState"],ept=["ownerState"],tpt=Ne("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),npt=Ne("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Qae=Ne($a,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>$({},e.hidden&&{visibility:"hidden"})),rpt=e=>{const{classes:t}=e;return $t({root:["root"],spacer:["spacer"],button:["button"]},Xht,t)},lve=P.forwardRef(function(t,n){var r,i,a,s;const l=ji().direction==="rtl",c=Rt({props:t,name:"MuiPickersArrowSwitcher"}),{children:d,className:h,slots:p,slotProps:b,isNextDisabled:v,isNextHidden:S,onGoToNext:w,nextLabel:T,isPreviousDisabled:x,isPreviousHidden:k,onGoToPrevious:C,previousLabel:I}=c,_=st(c,Kht),A=c,U=rpt(A),F={isDisabled:v,isHidden:S,goTo:w,label:T},M={isDisabled:x,isHidden:k,goTo:C,label:I},V=(r=p==null?void 0:p.previousIconButton)!=null?r:Qae,Q=gr({elementType:V,externalSlotProps:b==null?void 0:b.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:$({},A,{hidden:M.isHidden}),className:U.button}),X=(i=p==null?void 0:p.nextIconButton)!=null?i:Qae,Y=gr({elementType:X,externalSlotProps:b==null?void 0:b.nextIconButton,additionalProps:{size:"medium",title:F.label,"aria-label":F.label,disabled:F.isDisabled,edge:"start",onClick:F.goTo},ownerState:$({},A,{hidden:F.isHidden}),className:U.button}),W=(a=p==null?void 0:p.leftArrowIcon)!=null?a:Wht,ee=gr({elementType:W,externalSlotProps:b==null?void 0:b.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),J=st(ee,Jht),K=(s=p==null?void 0:p.rightArrowIcon)!=null?s:Qht,ne=gr({elementType:K,externalSlotProps:b==null?void 0:b.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=st(ne,ept);return D.jsxs(tpt,$({ref:n,className:gt(U.root,h),ownerState:A},_,{children:[D.jsx(V,$({},Q,{children:l?D.jsx(K,$({},j)):D.jsx(W,$({},J))})),d?D.jsx(Ar,{variant:"subtitle1",component:"span",children:d}):D.jsx(npt,{className:U.spacer,ownerState:A}),D.jsx(X,$({},Y,{children:l?D.jsx(W,$({},J)):D.jsx(K,$({},j))}))]}))}),lk=36,O6=2,S6=320,ipt=280,E6=334,uve=232,t2=48,apt=Ne(zDe)({[`& .${v2.container}`]:{outline:0},[`& .${v2.paper}`]:{outline:0,minWidth:S6}}),spt=Ne(tNe)({"&:first-of-type":{padding:0}});function opt(e){var t,n;const{children:r,onDismiss:i,open:a,slots:s,slotProps:o}=e,l=(t=s==null?void 0:s.dialog)!=null?t:apt,c=(n=s==null?void 0:s.mobileTransition)!=null?n:um;return D.jsx(l,$({open:a,onClose:i},o==null?void 0:o.dialog,{TransitionComponent:c,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:D.jsx(spt,{children:r})}))}function lpt(e){return Ut("MuiPickersPopper",e)}zt("MuiPickersPopper",["root","paper"]);function Xv(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const upt=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},zI=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?zI(t.shadowRoot):t:null},Qq="@media (pointer: fine)",cpt="@media (prefers-reduced-motion: reduce)",QO=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Yae=QO&&QO[1]?parseInt(QO[1],10):null,qae=QO&&QO[2]?parseInt(QO[2],10):null,dpt=Yae&&Yae<10||qae&&qae<13||!1,cve=()=>lE(cpt,{defaultMatches:!1})||dpt,fpt=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],hpt=e=>{const{classes:t}=e;return $t({root:["root"],paper:["paper"]},lpt,t)},ppt=Ne(sE,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),mpt=Ne(po,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>$({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function gpt(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const s=on(l=>{if(!a.current)return;const c=r.current;r.current=!1;const d=_i(i.current);if(!i.current||"clientX"in l&&gpt(l,d))return;if(n.current){n.current=!1;return}let h;l.composedPath?h=l.composedPath().indexOf(i.current)>-1:h=!d.documentElement.contains(l.target)||i.current.contains(l.target),!h&&!c&&t(l)}),o=()=>{r.current=!0};return P.useEffect(()=>{if(e){const l=_i(i.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",c)}}},[e,s]),P.useEffect(()=>{if(e){const l=_i(i.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[i,o,o]}const ypt=P.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:a,paperSlotProps:s,paperClasses:o,onPaperClick:l,onPaperTouchStart:c}=e,d=st(e,fpt),h=$({},i,{placement:r}),p=gr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:o,ownerState:h});return D.jsx(n,$({},d,p,{onClick:b=>{var v;l(b),(v=p.onClick)==null||v.call(p,b)},onTouchStart:b=>{var v;c(b),(v=p.onTouchStart)==null||v.call(p,b)},ownerState:h,children:a}))});function vpt(e){var t,n,r,i;const a=Rt({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:o,containerRef:l=null,shouldRestoreFocus:c,onBlur:d,onDismiss:h,open:p,role:b,placement:v,slots:S,slotProps:w,reduceAnimations:T}=a;P.useEffect(()=>{function ne(j){p&&(j.key==="Escape"||j.key==="Esc")&&h()}return document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)}},[h,p]);const x=P.useRef(null);P.useEffect(()=>{b==="tooltip"||c&&!c()||(p?x.current=zI(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[p,b,c]);const[k,C,I]=bpt(p,d??h),_=P.useRef(null),A=rr(_,l),U=rr(A,k),F=a,M=hpt(F),V=cve(),Q=T??V,X=ne=>{ne.key==="Escape"&&(ne.stopPropagation(),h())},Y=((t=S==null?void 0:S.desktopTransition)!=null?t:Q)?um:xR,W=(n=S==null?void 0:S.desktopTrapFocus)!=null?n:Oce,ee=(r=S==null?void 0:S.desktopPaper)!=null?r:mpt,J=(i=S==null?void 0:S.popper)!=null?i:ppt,K=gr({elementType:J,externalSlotProps:w==null?void 0:w.popper,additionalProps:{transition:!0,role:b,open:p,anchorEl:s,placement:v,onKeyDown:X},className:M.root,ownerState:a});return D.jsx(J,$({},K,{children:({TransitionProps:ne,placement:j})=>D.jsx(W,$({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:b==="tooltip",isEnabled:()=>!0},w==null?void 0:w.desktopTrapFocus,{children:D.jsx(Y,$({},ne,w==null?void 0:w.desktopTransition,{children:D.jsx(ypt,{PaperComponent:ee,ownerState:F,popperPlacement:j,ref:U,onPaperClick:C,onPaperTouchStart:I,paperClasses:M.paper,paperSlotProps:w==null?void 0:w.desktopPaper,children:o})}))}))}))}function Opt(e){return Ut("MuiPickersToolbarText",e)}const Gae=zt("MuiPickersToolbarText",["root","selected"]),Spt=["className","selected","value"],Ept=e=>{const{classes:t,selected:n}=e;return $t({root:["root",n&&"selected"]},Opt,t)},wpt=Ne(Ar,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Gae.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Gae.selected}`]:{color:(e.vars||e).palette.text.primary}})),Yq=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:a}=r,s=st(r,Spt),o=Ept(r);return D.jsx(wpt,$({ref:n,className:gt(i,o.root),component:"span"},s,{children:a}))}),Tpt=["align","className","selected","typographyClassName","value","variant","width"],xpt=e=>{const{classes:t}=e;return $t({root:["root"]},ave,t)},kpt=Ne(lo,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),qu=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:a,selected:s,typographyClassName:o,value:l,variant:c,width:d}=r,h=st(r,Tpt),p=xpt(r);return D.jsx(kpt,$({variant:"text",ref:n,className:gt(a,p.root)},d?{sx:{width:d}}:{},h,{children:D.jsx(Yq,{align:i,className:o,variant:c,value:l,selected:s})}))}),qq=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var a,s;const o=Tr(),l=P.useRef(n),c=(a=t??l.current)!=null?a:i.emptyValue,d=P.useMemo(()=>i.getTimezone(o,c),[o,i,c]),h=on(S=>d==null?S:i.setTimezone(o,d,S)),p=(s=e??d)!=null?s:"default",b=P.useMemo(()=>i.setTimezone(o,p,c),[i,o,p,c]),v=on((S,...w)=>{const T=h(S);r==null||r(T,...w)});return{value:b,handleValueChange:v,timezone:p}},NE=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:a})=>{const[s,o]=Ms({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=on((c,...d)=>{o(c),i==null||i(c,...d)});return qq({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:a})};function dve(e,t,n,r){const{value:i,onError:a}=e,s=$f(),o=P.useRef(r),l=t({adapter:s,value:i,props:e});return P.useEffect(()=>{a&&!n(l,o.current)&&a(l,i),o.current=l},[n,a,o,l,i]),l}const Cpt=e=>{const t=Tr(),n=Es(),r=$f(),a=ji().direction==="rtl",{valueManager:s,fieldValueManager:o,valueType:l,validator:c,internalProps:d,internalProps:{value:h,defaultValue:p,referenceDate:b,onChange:v,format:S,formatDensity:w="dense",selectedSections:T,onSelectedSectionsChange:x,shouldRespectLeadingZeros:k=!1,timezone:C}}=e,{timezone:I,value:_,handleValueChange:A}=qq({timezone:C,value:h,defaultValue:p,onChange:v,valueManager:s}),U=P.useMemo(()=>Cht(t,I),[t,I]),F=P.useCallback((ve,Se=null)=>o.getSectionsFromValue(t,ve,Se,a,he=>Hae(t,I,n,S,he,w,k,a)),[o,S,n,a,k,t,w,I]),M=P.useMemo(()=>o.getValueStrFromSections(F(s.emptyValue),a),[o,F,s.emptyValue,a]),[V,Q]=P.useState(()=>{const ve=F(_),Se={sections:ve,value:_,referenceValue:s.emptyValue,tempValueStrAndroid:null},he=vht(ve),Pe=s.getInitialReferenceValue({referenceDate:b,value:_,utils:t,props:d,granularity:he,timezone:I});return $({},Se,{referenceValue:Pe})}),[X,Y]=Ms({controlled:T,default:null,name:"useField",state:"selectedSectionIndexes"}),W=ve=>{Y(ve),x==null||x(ve),Q(Se=>$({},Se,{selectedSectionQuery:null}))},ee=P.useMemo(()=>{if(X==null)return null;if(X==="all")return{startIndex:0,endIndex:V.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof X=="number")return{startIndex:X,endIndex:X};if(typeof X=="string"){const ve=V.sections.findIndex(Se=>Se.type===X);return{startIndex:ve,endIndex:ve}}return X},[X,V.sections]),J=({value:ve,referenceValue:Se,sections:he})=>{if(Q(Me=>$({},Me,{sections:he,value:ve,referenceValue:Se,tempValueStrAndroid:null})),s.areValuesEqual(t,V.value,ve))return;const Pe={validationError:c({adapter:r,value:ve,props:$({},d,{value:ve,timezone:I})})};A(ve,Pe)},K=(ve,Se)=>{const he=[...V.sections];return he[ve]=$({},he[ve],{value:Se,modified:!0}),eve(he,a)},ne=()=>{J({value:s.emptyValue,referenceValue:V.referenceValue,sections:F(s.emptyValue)})},j=()=>{if(ee==null)return;const ve=V.sections[ee.startIndex],Se=o.getActiveDateManager(t,V,ve),Pe=Se.getSections(V.sections).filter(Qe=>Qe.value!=="").length===(ve.value===""?0:1),Me=K(ee.startIndex,""),Ze=Pe?null:t.date(new Date("")),ot=Se.getNewValuesFromNewActiveDate(Ze);(Ze!=null&&!t.isValid(Ze))!=(Se.date!=null&&!t.isValid(Se.date))?J($({},ot,{sections:Me})):Q(Qe=>$({},Qe,ot,{sections:Me,tempValueStrAndroid:null}))},Ce=ve=>{const Se=(Me,Ze)=>{const ot=t.parse(Me,S);if(ot==null||!t.isValid(ot))return null;const Qe=Hae(t,I,n,S,ot,w,k,a);return Wae(t,I,ot,Qe,Ze,!1)},he=o.parseValueStr(ve,V.referenceValue,Se),Pe=o.updateReferenceValue(t,he,V.referenceValue);J({value:he,referenceValue:Pe,sections:F(he,V.sections)})},ye=({activeSection:ve,newSectionValue:Se,shouldGoToNextSection:he})=>{he&&ee&&ee.startIndex$({},Ye,Qe,{sections:Me,tempValueStrAndroid:null}))},te=ve=>Q(Se=>$({},Se,{tempValueStrAndroid:ve}));return P.useEffect(()=>{const ve=F(V.value);Q(Se=>$({},Se,{sections:ve}))},[S,t.locale]),P.useEffect(()=>{let ve=!1;s.areValuesEqual(t,V.value,_)?ve=s.getTimezone(t,V.value)!==s.getTimezone(t,_):ve=!0,ve&&Q(Se=>$({},Se,{value:_,referenceValue:o.updateReferenceValue(t,_,Se.referenceValue),sections:F(_)}))},[_]),{state:V,selectedSectionIndexes:ee,setSelectedSections:W,clearValue:ne,clearActiveSection:j,updateSectionValue:ye,updateValueFromValueStr:Ce,setTempAndroidValueStr:te,sectionsValueBoundaries:U,placeholder:M,timezone:I}},_pt=5e3,$v=e=>e.saveQuery!=null,Apt=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const a=Tr(),[s,o]=P.useState(null),l=on(()=>o(null));P.useEffect(()=>{var b;s!=null&&((b=e[s.sectionIndex])==null?void 0:b.type)!==s.sectionType&&l()},[e,s,l]),P.useEffect(()=>{if(s!=null){const b=setTimeout(()=>l(),_pt);return()=>{window.clearTimeout(b)}}return()=>{}},[s,l]);const c=({keyPressed:b,sectionIndex:v},S,w)=>{const T=b.toLowerCase(),x=e[v];if(s!=null&&(!w||w(s.value))&&s.sectionIndex===v){const C=`${s.value}${T}`,I=S(C,x);if(!$v(I))return o({sectionIndex:v,value:C,sectionType:x.type}),I}const k=S(T,x);return $v(k)&&!k.saveQuery?(l(),null):(o({sectionIndex:v,value:T,sectionType:x.type}),$v(k)?null:k)},d=b=>{const v=(T,x,k)=>{const C=x.filter(I=>I.toLowerCase().startsWith(k));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},S=(T,x,k,C)=>{const I=_=>Xye(a,i,x.type,_);if(x.contentType==="letter")return v(x.format,I(x.format),T);if(k&&C!=null&&Zye(a,k).contentType==="letter"){const _=I(k),A=v(k,_,T);return $v(A)?{saveQuery:!1}:$({},A,{sectionValue:C(A.sectionValue,_)})}return{saveQuery:!1}};return c(b,(T,x)=>{switch(x.type){case"month":{const k=C=>jae(a,C,a.formats.month,x.format);return S(T,x,a.formats.month,k)}case"weekDay":{const k=(C,I)=>I.indexOf(C).toString();return S(T,x,a.formats.weekday,k)}case"meridiem":return S(T,x);default:return{saveQuery:!1}}})},h=b=>{const v=(w,T)=>{const x=+`${w}`,k=n[T.type]({currentDate:null,format:T.format,contentType:T.contentType});if(x>k.maximum)return{saveQuery:!1};if(xk.maximum||w.length===k.maximum.toString().length;return{sectionValue:Jye(a,i,x,k,T),shouldGoToNextSection:C}};return c(b,(w,T)=>{if(T.contentType==="digit"||T.contentType==="digit-with-letter")return v(w,T);if(T.type==="month"){const x=nve(a,i,"digit","month","MM"),k=v(w,{type:T.type,format:"MM",hasLeadingZerosInFormat:x,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if($v(k))return k;const C=jae(a,k.sectionValue,"MM",T.format);return $({},k,{sectionValue:C})}if(T.type==="weekDay"){const x=v(w,T);if($v(x))return x;const k=v6(a,i,T.format)[Number(x.sectionValue)-1];return $({},x,{sectionValue:k})}return{saveQuery:!1}},w=>!Number.isNaN(Number(w)))};return{applyCharacterEditing:on(b=>{const v=e[b.sectionIndex],w=!Number.isNaN(Number(b.keyPressed))?h(b):d(b);w==null?r(null):t({activeSection:v,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:l}},Rpt=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],Gq=e=>{const t=Tr(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:a,clearActiveSection:s,updateSectionValue:o,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:d,placeholder:h,timezone:p}=Cpt(e),{inputRef:b,internalProps:v,internalProps:{readOnly:S=!1,unstableFieldRef:w,minutesStep:T},forwardedProps:{onClick:x,onKeyDown:k,onFocus:C,onBlur:I,onMouseUp:_,onPaste:A,error:U,clearable:F,onClear:M,disabled:V},fieldValueManager:Q,valueManager:X,validator:Y}=e,W=st(e.forwardedProps,Rpt),{applyCharacterEditing:ee,resetCharacterQuery:J}=Apt({sections:n.sections,updateSectionValue:o,sectionsValueBoundaries:d,setTempAndroidValueStr:c,timezone:p}),K=P.useRef(null),ne=rr(b,K),j=P.useRef(void 0),ye=ji().direction==="rtl",te=P.useMemo(()=>Rht(n.sections,ye),[n.sections,ye]),ve=()=>{var ue;if(S){i(null);return}const me=(ue=K.current.selectionStart)!=null?ue:0;let We;me<=n.sections[0].startInInput||me>=n.sections[n.sections.length-1].endInInput?We=1:We=n.sections.findIndex(qe=>qe.startInInput-qe.startSeparator.length>me);const et=We===-1?n.sections.length-1:We-1;i(et)},Se=on((ue,...me)=>{ue.isDefaultPrevented()||(x==null||x(ue,...me),ve())}),he=on(ue=>{_==null||_(ue),ue.preventDefault()}),Pe=on((...ue)=>{C==null||C(...ue);const me=K.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!me||me!==K.current||r!=null||S||(me.value.length&&Number(me.selectionEnd)-Number(me.selectionStart)===me.value.length?i("all"):ve())})}),Me=on((...ue)=>{I==null||I(...ue),i(null)}),Ze=on(ue=>{if(A==null||A(ue),S){ue.preventDefault();return}const me=ue.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const We=n.sections[r.startIndex],et=/^[a-zA-Z]+$/.test(me),qe=/^[0-9]+$/.test(me),pe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(me);if(We.contentType==="letter"&&et||We.contentType==="digit"&&qe||We.contentType==="digit-with-letter"&&pe){J(),o({activeSection:We,newSectionValue:me,shouldGoToNextSection:!0}),ue.preventDefault();return}if(et||qe){ue.preventDefault();return}}ue.preventDefault(),J(),l(me)}),ot=on(ue=>{if(S)return;const me=ue.target.value;if(me===""){J(),a();return}const We=ue.nativeEvent.data,et=We&&We.length>1,qe=et?We:me,pe=SO(qe);if(r==null||et){l(et?We:pe);return}let Te;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&pe.length===1)Te=pe;else{const Oe=SO(Q.getValueStrFromSections(n.sections,ye));let De=-1,je=-1;for(let St=0;StOt.end)return;const Xt=pe.length-Oe.length+Ot.end-SO(Ot.endSeparator||"").length;Te=pe.slice(Ot.start+SO(Ot.startSeparator||"").length,Xt)}if(Te.length===0){Aht()?c(qe):(J(),s());return}ee({keyPressed:Te,sectionIndex:r.startIndex})}),Qe=on(ue=>{switch(k==null||k(ue),!0){case(ue.key==="a"&&(ue.ctrlKey||ue.metaKey)):{ue.preventDefault(),i("all");break}case ue.key==="ArrowRight":{if(ue.preventDefault(),r==null)i(te.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const me=te.neighbors[r.startIndex].rightIndex;me!==null&&i(me)}break}case ue.key==="ArrowLeft":{if(ue.preventDefault(),r==null)i(te.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const me=te.neighbors[r.startIndex].leftIndex;me!==null&&i(me)}break}case ue.key==="Delete":{if(ue.preventDefault(),S)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():s(),J();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ue.key):{if(ue.preventDefault(),S||r==null)break;const me=n.sections[r.startIndex],We=Q.getActiveDateManager(t,n,me),et=Eht(t,p,me,ue.key,d,We.date,{minutesStep:T});o({activeSection:me,newSectionValue:et,shouldGoToNextSection:!1});break}}});wa(()=>{if(!K.current)return;if(r==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}const ue=n.sections[r.startIndex],me=n.sections[r.endIndex];let We=ue.startInInput,et=me.endInInput;if(r.shouldSelectBoundarySelectors&&(We-=ue.startSeparator.length,et+=me.endSeparator.length),We!==K.current.selectionStart||et!==K.current.selectionEnd){const qe=K.current.scrollTop;K.current===zI(document)&&K.current.setSelectionRange(We,et),K.current.scrollTop=qe}});const Je=dve($({},v,{value:n.value,timezone:p}),Y,X.isSameError,X.defaultErrorState),Ye=P.useMemo(()=>U!==void 0?U:X.hasError(Je),[X,Je,U]);P.useEffect(()=>{!Ye&&!r&&J()},[n.referenceValue,r,Ye]),P.useEffect(()=>(K.current&&K.current===document.activeElement&&i("all"),()=>window.clearTimeout(j.current)),[]),P.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(J(),s())},[n.tempValueStrAndroid]);const nt=P.useMemo(()=>{var ue;return(ue=n.tempValueStrAndroid)!=null?ue:Q.getValueStrFromSections(n.sections,ye)},[n.sections,Q,n.tempValueStrAndroid,ye]),tt=P.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),ht=K.current&&K.current===zI(document),_t=X.areValuesEqual(t,n.value,X.emptyValue),lt=!ht&&_t;P.useImperativeHandle(w,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ue,me;const We=(ue=K.current.selectionStart)!=null?ue:0,et=(me=K.current.selectionEnd)!=null?me:0;if(We===0&&et===0)return null;const qe=We<=n.sections[0].startInInput?1:n.sections.findIndex(pe=>pe.startInInput-pe.startSeparator.length>We);return qe===-1?n.sections.length-1:qe-1},setSelectedSections:ue=>i(ue)}));const ge=on((ue,...me)=>{var We;ue.preventDefault(),M==null||M(ue,...me),a(),K==null||(We=K.current)==null||We.focus(),i(0)});return $({placeholder:h,autoComplete:"off",disabled:!!V},W,{value:lt?"":nt,inputMode:tt,readOnly:S,onClick:Se,onFocus:Pe,onBlur:Me,onPaste:Ze,onChange:ot,onKeyDown:Qe,onMouseUp:he,onClear:ge,error:Ye,ref:ne,clearable:!!(F&&!_t&&!S&&!V)})},Ipt=({open:e,onOpen:t,onClose:n})=>{const r=P.useRef(typeof e=="boolean").current,[i,a]=P.useState(!1);P.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const s=P.useCallback(o=>{r||a(o),o&&t&&t(),!o&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:s}},Dpt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},Npt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:a}=e,s=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Ppt=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Mpt=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:a,onChange:s,value:o,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:d,onSelectedSectionsChange:h,timezone:p}=e,{current:b}=P.useRef(l),{current:v}=P.useRef(o!==void 0),S=Tr(),w=$f(),[T,x]=Ms({controlled:d,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:k,setIsOpen:C}=Ipt(e),[I,_]=P.useState(()=>{let Pe;return o!==void 0?Pe=o:b!==void 0?Pe=b:Pe=t.emptyValue,{draft:Pe,lastPublishedValue:Pe,lastCommittedValue:Pe,lastControlledValue:o,hasBeenModifiedSinceMount:!1}}),{timezone:A,handleValueChange:U}=qq({timezone:p,value:o,defaultValue:b,onChange:s,valueManager:t});dve($({},e,{value:I.draft,timezone:A}),i,t.isSameError,t.defaultErrorState);const F=on(Pe=>{const Me={action:Pe,dateState:I,hasChanged:Je=>!t.areValuesEqual(S,Pe.value,Je),isControlled:v,closeOnSelect:c},Ze=Dpt(Me),ot=Npt(Me),Qe=Ppt(Me);if(_(Je=>$({},Je,{draft:Pe.value,lastPublishedValue:Ze?Pe.value:Je.lastPublishedValue,lastCommittedValue:ot?Pe.value:Je.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ze){const Ye={validationError:Pe.name==="setValueFromField"?Pe.context.validationError:i({adapter:w,value:Pe.value,props:$({},e,{value:Pe.value,timezone:A})})};Pe.name==="setValueFromShortcut"&&Pe.shortcut!=null&&(Ye.shortcut=Pe.shortcut),U(Pe.value,Ye)}ot&&a&&a(Pe.value),Qe&&C(!1)});if(o!==void 0&&(I.lastControlledValue===void 0||!t.areValuesEqual(S,I.lastControlledValue,o))){const Pe=t.areValuesEqual(S,I.draft,o);_(Me=>$({},Me,{lastControlledValue:o},Pe?{}:{lastCommittedValue:o,lastPublishedValue:o,draft:o,hasBeenModifiedSinceMount:!0}))}const M=on(()=>{F({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),V=on(()=>{F({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),Q=on(()=>{F({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),X=on(()=>{F({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),Y=on(()=>{F({value:t.getTodayValue(S,A,n),name:"setValueFromAction",pickerAction:"today"})}),W=on(()=>C(!0)),ee=on(()=>C(!1)),J=on((Pe,Me="partial")=>F({name:"setValueFromView",value:Pe,selectionState:Me})),K=on((Pe,Me,Ze)=>F({name:"setValueFromShortcut",value:Pe,changeImportance:Me??"accept",shortcut:Ze})),ne=on((Pe,Me)=>F({name:"setValueFromField",value:Pe,context:Me})),j=on(Pe=>{x(Pe),h==null||h(Pe)}),Ce={onClear:M,onAccept:V,onDismiss:Q,onCancel:X,onSetToday:Y,onOpen:W,onClose:ee},ye={value:I.draft,onChange:ne,selectedSections:T,onSelectedSectionsChange:j},te=P.useMemo(()=>t.cleanValue(S,I.draft),[S,t,I.draft]),ve={value:te,onChange:J,onClose:ee,open:k,onSelectedSectionsChange:j},he=$({},Ce,{value:te,onChange:J,onSelectShortcut:K,isValid:Pe=>{const Me=i({adapter:w,value:Pe,props:$({},e,{value:Pe,timezone:A})});return!t.hasError(Me)}});return{open:k,fieldProps:ye,viewProps:ve,layoutProps:he,actions:Ce}};function jC({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:s,onFocusedViewChange:o}){var l,c;const d=P.useRef(n),h=P.useRef(i),p=P.useRef(i.includes(n)?n:i[0]),[b,v]=Ms({name:"useViews",state:"view",controlled:r,default:p.current}),S=P.useRef(a?b:null),[w,T]=Ms({name:"useViews",state:"focusedView",controlled:s,default:S.current});P.useEffect(()=>{(d.current&&d.current!==n||h.current&&h.current.some(F=>!i.includes(F)))&&(v(i.includes(n)?n:i[0]),h.current=i,d.current=n)},[n,v,b,i]);const x=i.indexOf(b),k=(l=i[x-1])!=null?l:null,C=(c=i[x+1])!=null?c:null,I=on((F,M)=>{T(M?F:V=>F===V?null:V),o==null||o(F,M)}),_=on(F=>{I(F,!0),F!==b&&(v(F),t&&t(F))}),A=on(()=>{C&&_(C)}),U=on((F,M,V)=>{const Q=M==="finish",X=V?i.indexOf(V){const{onChange:a,open:s,onSelectedSectionsChange:o,onClose:l}=t,{views:c,openTo:d,onViewChange:h,disableOpenPicker:p,viewRenderers:b,timezone:v}=e,S=st(e,Lpt),{view:w,setView:T,defaultView:x,focusedView:k,setFocusedView:C,setValueAndGoToNextView:I}=jC({view:void 0,views:c,openTo:d,onChange:a,onViewChange:h,autoFocus:i}),{hasUIView:_,viewModeLookup:A}=P.useMemo(()=>c.reduce((Y,W)=>{let ee;return p?ee="field":b[W]!=null?ee="UI":ee="field",Y.viewModeLookup[W]=ee,ee==="UI"&&(Y.hasUIView=!0),Y},{hasUIView:!1,viewModeLookup:{}}),[p,b,c]),U=P.useMemo(()=>c.reduce((Y,W)=>b[W]!=null&&YS(W)?Y+1:Y,0),[b,c]),F=A[w],M=on(()=>F==="UI"),[V,Q]=P.useState(F==="UI"?w:null);return V!==w&&A[w]==="UI"&&Q(w),wa(()=>{F==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),o(w)}))},[w]),wa(()=>{if(!s)return;let Y=w;F==="field"&&V!=null&&(Y=V),Y!==x&&A[Y]==="UI"&&A[x]==="UI"&&(Y=x),Y!==w&&T(Y),C(Y,!0)},[s]),{hasUIView:_,shouldRestoreFocus:M,layoutProps:{views:c,view:V,onViewChange:T},renderCurrentView:()=>{if(V==null)return null;const Y=b[V];return Y==null?null:Y($({},S,n,t,{views:c,timezone:v,onChange:I,view:V,onViewChange:T,focusedView:k,onFocusedViewChange:C,showViewSwitcher:U>1,timeViewsCount:U}))}}};function Zae(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Fpt=(e,t)=>{const[n,r]=P.useState(Zae);return wa(()=>{const a=()=>{r(Zae())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),Xv(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Bpt=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,a=Fpt(n.views,i);return{layoutProps:$({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Upt=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Upt(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const fve=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:a,validator:s,autoFocusView:o})=>{const l=Mpt({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),c=$pt({props:e,inputRef:i,additionalViewProps:a,autoFocusView:o,propsFromPickerValue:l.viewProps}),d=Bpt({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:d.layoutProps}};function hve(e){return Ut("MuiPickersLayout",e)}const vL=zt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),zpt=["onAccept","onClear","onCancel","onSetToday","actions"];function jpt(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:a}=e,s=st(e,zpt),o=Es();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return D.jsx(lo,{onClick:n,children:o.clearButtonLabel},c);case"cancel":return D.jsx(lo,{onClick:r,children:o.cancelButtonLabel},c);case"accept":return D.jsx(lo,{onClick:t,children:o.okButtonLabel},c);case"today":return D.jsx(lo,{onClick:i,children:o.todayButtonLabel},c);default:return null}});return D.jsx(YDe,$({},s,{children:l}))}const Hpt=["items","changeImportance","isLandscape","onChange","isValid"],Vpt=["getValue"];function Wpt(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,a=st(e,Hpt);if(t==null||t.length===0)return null;const s=t.map(o=>{let{getValue:l}=o,c=st(o,Vpt);const d=l({isValid:i});return{label:c.label,onClick:()=>{r(d,n,c)},disabled:!i(d)}});return D.jsx(Kce,$({dense:!0,sx:[{maxHeight:E6,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(o=>D.jsx(B9,{children:D.jsx(wz,$({},o))},o.label))}))}function Qpt(e){return e.view!==null}const Ypt=e=>{const{classes:t,isLandscape:n}=e;return $t({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},hve,t)},qpt=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:a,onCancel:s,onSetToday:o,view:l,views:c,onViewChange:d,value:h,onChange:p,onSelectShortcut:b,isValid:v,isLandscape:S,disabled:w,readOnly:T,children:x,components:k,componentsProps:C,slots:I,slotProps:_}=e,A=I??zC(k),U=_??C,F=Ypt(e),M=(t=A==null?void 0:A.actionBar)!=null?t:jpt,V=gr({elementType:M,externalSlotProps:U==null?void 0:U.actionBar,additionalProps:{onAccept:i,onClear:a,onCancel:s,onSetToday:o,actions:r==="desktop"?[]:["cancel","accept"],className:F.actionBar},ownerState:$({},e,{wrapperVariant:r})}),Q=D.jsx(M,$({},V)),X=A==null?void 0:A.toolbar,Y=gr({elementType:X,externalSlotProps:U==null?void 0:U.toolbar,additionalProps:{isLandscape:S,onChange:p,value:h,view:l,onViewChange:d,views:c,disabled:w,readOnly:T,className:F.toolbar},ownerState:$({},e,{wrapperVariant:r})}),W=Qpt(Y)&&X?D.jsx(X,$({},Y)):null,ee=x,J=A==null?void 0:A.tabs,K=l&&J?D.jsx(J,$({view:l,onViewChange:d,className:F.tabs},U==null?void 0:U.tabs)):null,ne=(n=A==null?void 0:A.shortcuts)!=null?n:Wpt,j=gr({elementType:ne,externalSlotProps:U==null?void 0:U.shortcuts,additionalProps:{isValid:v,isLandscape:S,onChange:b,className:F.shortcuts},ownerState:{isValid:v,isLandscape:S,onChange:b,className:F.shortcuts,wrapperVariant:r}}),Ce=l&&ne?D.jsx(ne,$({},j)):null;return{toolbar:W,content:ee,tabs:K,actionBar:Q,shortcuts:Ce}},Gpt=e=>{const{isLandscape:t,classes:n}=e;return $t({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},hve,n)},pve=Ne("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${vL.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${vL.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${vL.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));pve.propTypes={as:G.elementType,ownerState:G.shape({isLandscape:G.bool.isRequired}).isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object])};const Zpt=Ne("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),mve=function(t){const n=Rt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:s,shortcuts:o}=qpt(n),{sx:l,className:c,isLandscape:d,ref:h,wrapperVariant:p}=n,b=n,v=Gpt(b);return D.jsxs(pve,{ref:h,sx:l,className:gt(c,v.root),ownerState:b,children:[d?o:r,d?r:o,D.jsx(Zpt,{className:v.contentWrapper,children:p==="desktop"?D.jsxs(P.Fragment,{children:[i,a]}):D.jsxs(P.Fragment,{children:[a,i]})}),s]})};function Xpt(e,{disableFuture:t,maxDate:n,timezone:r}){const i=Tr();return P.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isBefore(a,n)?a:n);return!i.isAfter(s,e)},[t,n,e,i,r])}function Kpt(e,{disablePast:t,minDate:n,timezone:r}){const i=Tr();return P.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isAfter(a,n)?a:n);return!i.isBefore(s,e)},[t,n,e,i,r])}function w6(e,t,n,r){const i=Tr(),a=bht(e,i),s=P.useCallback(o=>{const l=e==null?null:yht(e,o,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:a,handleMeridiemChange:s}}const mB=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],gB=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],gve=["minDateTime","maxDateTime"],Jpt=[...mB,...gB,...gve],PE=e=>Jpt.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),emt=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],Zq=(e,t)=>{const n=$({},e),r={},i=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return emt.forEach(i),t==="date"?mB.forEach(i):t==="time"?gB.forEach(i):t==="date-time"&&(mB.forEach(i),gB.forEach(i),gve.forEach(i)),{forwardedProps:n,internalProps:r}},vy=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:o,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),d=Fo(n.utils,e.minDate,n.defaultDates.minDate),h=Fo(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(o&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(d&&n.utils.isBeforeDay(t,d)):return"minDate";case!!(h&&n.utils.isAfterDay(t,h)):return"maxDate";default:return null}},HC=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:a,shouldDisableClock:s,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:d,timezone:h}=n,p=e.utils.dateWithTimezone(void 0,h),b=UC(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&b(r,t)):return"minTime";case!!(i&&b(t,i)):return"maxTime";case!!(d&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(o&&o(t,"hours")):return"shouldDisableTime-hours";case!!(o&&o(t,"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&s(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(s&&s(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(s&&s(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},T6=({props:e,value:t,adapter:n})=>{const r=vy({adapter:n,value:t,props:e});return r!==null?r:HC({adapter:n,value:t,props:e})};function tmt(e){return Ut("MuiPickersDay",e)}const Z1=zt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),nmt=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],rmt=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:o,classes:l}=e,c=s&&!o;return $t({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",s&&o&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},tmt,l)},bve=({theme:e,ownerState:t})=>$({},e.typography.caption,{width:lk,height:lk,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Z1.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Z1.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Z1.disabled}:not(.${Z1.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Z1.disabled}&.${Z1.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${O6}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Z1.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),yve=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},imt=Ne(fc,{name:"MuiPickersDay",slot:"Root",overridesResolver:yve})(bve),amt=Ne("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:yve})(({theme:e,ownerState:t})=>$({},bve({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),RT=()=>{},smt=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:a,day:s,disabled:o=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:d,onClick:h,onDaySelect:p,onFocus:b=RT,onBlur:v=RT,onKeyDown:S=RT,onMouseDown:w=RT,onMouseEnter:T=RT,outsideCurrentMonth:x,selected:k=!1,showDaysOutsideCurrentMonth:C=!1,children:I,today:_=!1}=r,A=st(r,nmt),U=$({},r,{autoFocus:i,disabled:o,disableHighlightToday:l,disableMargin:c,selected:k,showDaysOutsideCurrentMonth:C,today:_}),F=rmt(U),M=Tr(),V=P.useRef(null),Q=rr(V,n);wa(()=>{i&&!o&&!d&&!x&&V.current.focus()},[i,o,d,x]);const X=W=>{w(W),x&&W.preventDefault()},Y=W=>{o||p(s),x&&W.currentTarget.focus(),h&&h(W)};return x&&!C?D.jsx(amt,{className:gt(F.root,F.hiddenDaySpacingFiller,a),ownerState:U,role:A.role}):D.jsx(imt,$({className:gt(F.root,a),ref:Q,centerRipple:!0,disabled:o,tabIndex:k?0:-1,onKeyDown:W=>S(W,s),onFocus:W=>b(W,s),onBlur:W=>v(W,s),onMouseEnter:W=>T(W,s),onClick:Y,onMouseDown:X},A,{ownerState:U,children:I||M.format(s,"dayOfMonth")}))}),omt=P.memo(smt),lmt=e=>Ut("MuiPickersSlideTransition",e),Vc=zt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),umt=["children","className","reduceAnimations","slideDirection","transKey","classes"],cmt=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return $t(r,lmt,t)},dmt=Ne(pz,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Vc["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Vc["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Vc.slideEnterActive}`]:t.slideEnterActive},{[`.${Vc.slideExit}`]:t.slideExit},{[`.${Vc["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Vc["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Vc["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Vc["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Vc.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Vc.slideExit}`]:{transform:"translate(0%)"},[`& .${Vc["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Vc["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function fmt(e){const t=Rt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=st(t,umt),o=cmt(t),l=ji();if(i)return D.jsx("div",{className:gt(o.root,r),children:n});const c={exit:o.exit,enterActive:o.enterActive,enter:o.enter,exitActive:o.exitActive};return D.jsx(dmt,{className:gt(o.root,r),childFactory:d=>P.cloneElement(d,{classNames:c}),role:"presentation",children:D.jsx(VAe,$({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),a)})}const vve=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o})=>{const l=$f();return P.useCallback(c=>vy({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o}})!==null,[l,e,t,n,r,i,a,s,o])},hmt=e=>Ut("MuiDayCalendar",e);zt("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const pmt=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],mmt=["ownerState"],gmt=e=>{const{classes:t}=e;return $t({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},hmt,t)},Ove=(lk+O6*2)*6,bmt=Ne("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ymt=Ne("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),vmt=Ne(Ar,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Omt=Ne(Ar,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Smt=Ne(Ar,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>$({},e.typography.caption,{width:lk,height:lk,padding:0,margin:`0 ${O6}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Emt=Ne("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ove}),wmt=Ne(fmt,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Ove}),Tmt=Ne("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),xmt=Ne("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${O6}px 0`,display:"flex",justifyContent:"center"});function kmt(e){var t,n,r;let{parentProps:i,day:a,focusableDay:s,selectedDays:o,isDateDisabled:l,currentMonthNumber:c,isViewFocused:d}=e,h=st(e,pmt);const{disabled:p,disableHighlightToday:b,isMonthSwitchingAnimating:v,showDaysOutsideCurrentMonth:S,components:w,componentsProps:T,slots:x,slotProps:k,timezone:C}=i,I=Tr(),_=Xg(C),A=s!==null&&I.isSameDay(a,s),U=o.some(J=>I.isSameDay(J,a)),F=I.isSameDay(a,_),M=(t=(n=x==null?void 0:x.day)!=null?n:w==null?void 0:w.Day)!=null?t:omt,V=gr({elementType:M,externalSlotProps:(r=k==null?void 0:k.day)!=null?r:T==null?void 0:T.day,additionalProps:$({disableHighlightToday:b,showDaysOutsideCurrentMonth:S,role:"gridcell",isAnimating:v,"data-timestamp":I.toJsDate(a).valueOf()},h),ownerState:$({},i,{day:a,selected:U})}),Q=st(V,mmt),X=P.useMemo(()=>p||l(a),[p,l,a]),Y=P.useMemo(()=>I.getMonth(a)!==c,[I,a,c]),W=P.useMemo(()=>{const J=I.startOfMonth(I.setMonth(a,c));return S?I.isSameDay(a,I.startOfWeek(J)):I.isSameDay(a,J)},[c,a,S,I]),ee=P.useMemo(()=>{const J=I.endOfMonth(I.setMonth(a,c));return S?I.isSameDay(a,I.endOfWeek(J)):I.isSameDay(a,J)},[c,a,S,I]);return D.jsx(M,$({},Q,{day:a,disabled:X,autoFocus:d&&A,today:F,outsideCurrentMonth:Y,isFirstVisibleCell:W,isLastVisibleCell:ee,selected:U,tabIndex:A?0:-1,"aria-selected":U,"aria-current":F?"date":void 0}))}function Cmt(e){const t=Rt({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:a,focusedDay:s,loading:o,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:d,reduceAnimations:h,renderLoading:p=()=>D.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:v,disablePast:S,disableFuture:w,minDate:T,maxDate:x,shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:I,dayOfWeekFormatter:_,hasFocus:A,onFocusedViewChange:U,gridLabelId:F,displayWeekNumber:M,fixedWeekNumber:V,autoFocus:Q,timezone:X}=t,Y=Xg(X),W=Tr(),ee=gmt(t),K=ji().direction==="rtl",ne=_||((lt,ge)=>W.format(ge,"weekdayShort").charAt(0).toUpperCase()),j=vve({shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:I,minDate:T,maxDate:x,disablePast:S,disableFuture:w,timezone:X}),Ce=Es(),[ye,te]=Ms({name:"DayCalendar",state:"hasFocus",controlled:A,default:Q??!1}),[ve,Se]=P.useState(()=>s||Y),he=on(lt=>{d||l(lt)}),Pe=lt=>{j(lt)||(n(lt),Se(lt),U==null||U(!0),te(!0))},Me=on((lt,ge)=>{switch(lt.key){case"ArrowUp":Pe(W.addDays(ge,-7)),lt.preventDefault();break;case"ArrowDown":Pe(W.addDays(ge,7)),lt.preventDefault();break;case"ArrowLeft":{const ue=W.addDays(ge,K?1:-1),me=W.addMonths(ge,K?1:-1),We=H2({utils:W,date:ue,minDate:K?ue:W.startOfMonth(me),maxDate:K?W.endOfMonth(me):ue,isDateDisabled:j,timezone:X});Pe(We||ue),lt.preventDefault();break}case"ArrowRight":{const ue=W.addDays(ge,K?-1:1),me=W.addMonths(ge,K?-1:1),We=H2({utils:W,date:ue,minDate:K?W.startOfMonth(me):ue,maxDate:K?ue:W.endOfMonth(me),isDateDisabled:j,timezone:X});Pe(We||ue),lt.preventDefault();break}case"Home":Pe(W.startOfWeek(ge)),lt.preventDefault();break;case"End":Pe(W.endOfWeek(ge)),lt.preventDefault();break;case"PageUp":Pe(W.addMonths(ge,1)),lt.preventDefault();break;case"PageDown":Pe(W.addMonths(ge,-1)),lt.preventDefault();break}}),Ze=on((lt,ge)=>Pe(ge)),ot=on((lt,ge)=>{ye&&W.isSameDay(ve,ge)&&(U==null||U(!1))}),Qe=W.getMonth(i),Je=P.useMemo(()=>a.filter(lt=>!!lt).map(lt=>W.startOfDay(lt)),[W,a]),Ye=Qe,nt=P.useMemo(()=>P.createRef(),[Ye]),tt=W.startOfWeek(Y),ht=P.useMemo(()=>{const lt=W.startOfMonth(i),ge=W.endOfMonth(i);return j(ve)||W.isAfterDay(ve,ge)||W.isBeforeDay(ve,lt)?H2({utils:W,date:ve,minDate:lt,maxDate:ge,disablePast:S,disableFuture:w,isDateDisabled:j,timezone:X}):ve},[i,w,S,ve,j,W,X]),_t=P.useMemo(()=>{const lt=W.setTimezone(i,X),ge=W.getWeekArray(lt);let ue=W.addMonths(lt,1);for(;V&&ge.length{ge.length{var ue;const me=W.format(lt,"weekdayShort");return D.jsx(vmt,{variant:"caption",role:"columnheader","aria-label":W.format(W.addDays(tt,ge),"weekday"),className:ee.weekDayLabel,children:(ue=ne==null?void 0:ne(me,lt))!=null?ue:me},me+ge.toString())})]}),o?D.jsx(Emt,{className:ee.loadingContainer,children:p()}):D.jsx(wmt,$({transKey:Ye,onExited:c,reduceAnimations:h,slideDirection:b,className:gt(r,ee.slideTransition)},v,{nodeRef:nt,children:D.jsx(Tmt,{ref:nt,role:"rowgroup",className:ee.monthContainer,children:_t.map((lt,ge)=>D.jsxs(xmt,{role:"row",className:ee.weekContainer,"aria-rowindex":ge+1,children:[M&&D.jsx(Smt,{className:ee.weekNumber,role:"rowheader","aria-label":Ce.calendarWeekNumberAriaLabelText(W.getWeekNumber(lt[0])),children:Ce.calendarWeekNumberText(W.getWeekNumber(lt[0]))}),lt.map((ue,me)=>D.jsx(kmt,{parentProps:t,day:ue,selectedDays:Je,focusableDay:ht,onKeyDown:Me,onFocus:Ze,onBlur:ot,onDaySelect:he,isDateDisabled:j,currentMonthNumber:Qe,isViewFocused:ye,"aria-colindex":me+1},ue.toString()))]},`week-${lt[0]}`))})}))]})}const _mt=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return $({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return $({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const a=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return $({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:a&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Amt=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:a,disableSwitchToMonthOnDayFocus:s=!1,maxDate:o,minDate:l,onMonthChange:c,reduceAnimations:d,shouldDisableDate:h,timezone:p}=e,b=Xg(p),v=Tr(),S=P.useRef(_mt(!!d,s,v)).current,w=P.useMemo(()=>{let U=null;return n?U=n:r&&(U=v.startOfMonth(r)),Ss.getInitialReferenceValue({value:t,utils:v,timezone:p,props:e,referenceDate:U,granularity:cf.day})},[]),[T,x]=P.useReducer(S,{isMonthSwitchingAnimating:!1,focusedDay:v.isValid(t)?t:b,currentMonth:v.startOfMonth(w),slideDirection:"left"}),k=P.useCallback(U=>{x($({type:"changeMonth"},U)),c&&c(U.newMonth)},[c]),C=P.useCallback(U=>{const F=U;v.isSameMonth(F,T.currentMonth)||k({newMonth:v.startOfMonth(F),direction:v.isAfterDay(F,T.currentMonth)?"left":"right"})},[T.currentMonth,k,v]),I=vve({shouldDisableDate:h,minDate:l,maxDate:o,disableFuture:i,disablePast:a,timezone:p}),_=P.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),A=on((U,F)=>{I(U)||x({type:"changeFocusedDay",focusedDay:U,withoutMonthSwitchingAnimation:F})});return{referenceDate:w,calendarState:T,changeMonth:C,changeFocusedDay:A,isDateDisabled:I,onMonthSwitchingAnimationEnd:_,handleChangeMonth:k}},Rmt=["props","getOpenDialogAriaText"],Imt=["ownerState"],Dmt=["ownerState"],Xq=e=>{var t,n,r,i,a;let{props:s,getOpenDialogAriaText:o}=e,l=st(e,Rmt);const{slots:c,slotProps:d,className:h,sx:p,format:b,formatDensity:v,timezone:S,name:w,label:T,inputRef:x,readOnly:k,disabled:C,autoFocus:I,localeText:_,reduceAnimations:A}=s,U=Tr(),F=P.useRef(null),M=P.useRef(null),V=_f(),Q=(t=d==null||(n=d.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:X,actions:Y,hasUIView:W,layoutProps:ee,renderCurrentView:J,shouldRestoreFocus:K,fieldProps:ne}=fve($({},l,{props:s,inputRef:F,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=c.inputAdornment)!=null?r:Ex,Ce=gr({elementType:j,externalSlotProps:d==null?void 0:d.inputAdornment,additionalProps:{position:"end"},ownerState:s}),ye=st(Ce,Imt),te=(i=c.openPickerButton)!=null?i:$a,ve=gr({elementType:te,externalSlotProps:d==null?void 0:d.openPickerButton,additionalProps:{disabled:C||k,onClick:X?Y.onClose:Y.onOpen,"aria-label":o(ne.value,U),edge:ye.position},ownerState:s}),Se=st(ve,Dmt),he=c.openPickerIcon,Pe=c.field,Me=gr({elementType:Pe,externalSlotProps:d==null?void 0:d.field,additionalProps:$({},ne,Q&&{id:V},{readOnly:k,disabled:C,className:h,sx:p,format:b,formatDensity:v,timezone:S,label:T,name:w,autoFocus:I&&!s.open,focused:X?!0:void 0}),ownerState:s});W&&(Me.InputProps=$({},Me.InputProps,{ref:M,[`${ye.position}Adornment`]:D.jsx(j,$({},ye,{children:D.jsx(te,$({},Se,{children:D.jsx(he,$({},d==null?void 0:d.openPickerIcon))}))}))}));const Ze=$({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Me.slots),ot=(a=c.layout)!=null?a:mve,Qe=rr(F,Me.inputRef,x);let Je=V;Q&&(T?Je=`${V}-label`:Je=void 0);const Ye=$({},d,{toolbar:$({},d==null?void 0:d.toolbar,{titleId:V}),popper:$({"aria-labelledby":Je},d==null?void 0:d.popper)});return{renderPicker:()=>D.jsxs(rve,{localeText:_,children:[D.jsx(Pe,$({},Me,{slots:Ze,slotProps:Ye,inputRef:Qe})),D.jsx(vpt,$({role:"dialog",placement:"bottom-start",anchorEl:M.current},Y,{open:X,slots:c,slotProps:Ye,shouldRestoreFocus:K,reduceAnimations:A,children:D.jsx(ot,$({},ee,Ye==null?void 0:Ye.layout,{slots:c,slotProps:Ye,children:J()}))}))]})}},Nmt=e=>{var t,n,r;const i=Tr(),a=yy();return $({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:i.formats.keyboardDate,minDate:Fo(i,e.minDate,a.minDate),maxDate:Fo(i,e.maxDate,a.maxDate)})},Pmt=({props:e,inputRef:t})=>{const n=Nmt(e),{forwardedProps:r,internalProps:i}=Zq(n,"date");return Gq({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Ss,fieldValueManager:Vq,validator:vy,valueType:"date"})},Mmt=["ownerState"],Kq=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:a,components:s,componentsProps:o})=>{var l,c,d,h,p,b;const v=Es(),S=(l=(c=i==null?void 0:i.clearButton)!=null?c:s==null?void 0:s.ClearButton)!=null?l:$a,w=gr({elementType:S,externalSlotProps:(d=a==null?void 0:a.clearButton)!=null?d:o==null?void 0:o.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:v.fieldClearLabel}}),T=st(w,Mmt),x=(h=(p=i==null?void 0:i.clearIcon)!=null?p:s==null?void 0:s.ClearIcon)!=null?h:Zht,k=gr({elementType:x,externalSlotProps:(b=a==null?void 0:a.clearIcon)!=null?b:o==null?void 0:o.clearIcon,ownerState:{}}),C=$({},n,{endAdornment:D.jsxs(P.Fragment,{children:[e&&D.jsx(Ex,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:D.jsx(S,$({},T,{onClick:r,children:D.jsx(x,$({fontSize:"small"},k))}))}),n==null?void 0:n.endAdornment]})}),I=$({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:I}},Lmt=["components","componentsProps","slots","slotProps","InputProps","inputProps"],$mt=["inputRef"],Fmt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Sve=P.forwardRef(function(t,n){var r,i,a;const s=Rt({props:t,name:"MuiDateField"}),{components:o,componentsProps:l,slots:c,slotProps:d,InputProps:h,inputProps:p}=s,b=st(s,Lmt),v=s,S=(r=(i=c==null?void 0:c.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:zg,w=gr({elementType:S,externalSlotProps:(a=d==null?void 0:d.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:b,ownerState:v}),{inputRef:T}=w,x=st(w,$mt);x.inputProps=$({},p,x.inputProps),x.InputProps=$({},h,x.InputProps);const k=Pmt({props:x,inputRef:T}),{ref:C,onPaste:I,onKeyDown:_,inputMode:A,readOnly:U,clearable:F,onClear:M}=k,V=st(k,Fmt),{InputProps:Q,fieldProps:X}=Kq({onClear:M,clearable:F,fieldProps:V,InputProps:V.InputProps,slots:c,slotProps:d,components:o,componentsProps:l});return D.jsx(S,$({ref:n},X,{InputProps:$({},Q,{readOnly:U}),inputProps:$({},V.inputProps,{inputMode:A,onPaste:I,onKeyDown:_,ref:C})}))}),Bmt=e=>Ut("MuiPickersFadeTransitionGroup",e);zt("MuiPickersFadeTransitionGroup",["root"]);const Umt=e=>{const{classes:t}=e;return $t({root:["root"]},Bmt,t)},zmt=Ne(pz,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Eve(e){const t=Rt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=Umt(t),o=ji();return i?n:D.jsx(zmt,{className:gt(s.root,r),children:D.jsx(um,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o.transitions.duration.enteringScreen,enter:o.transitions.duration.enteringScreen,exit:0},children:n},a)})}function jmt(e){return Ut("MuiPickersMonth",e)}const E3=zt("MuiPickersMonth",["root","monthButton","disabled","selected"]),Hmt=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],Vmt=e=>{const{disabled:t,selected:n,classes:r}=e;return $t({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},jmt,r)},Wmt=Ne("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Qmt=Ne("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${E3.disabled}`]:t.disabled},{[`&.${E3.selected}`]:t.selected}]})(({theme:e})=>$({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${E3.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${E3.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ymt=P.memo(function(t){const n=Rt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:a,selected:s,value:o,tabIndex:l,onClick:c,onKeyDown:d,onFocus:h,onBlur:p,"aria-current":b,"aria-label":v}=n,S=st(n,Hmt),w=P.useRef(null),T=Vmt(n);return wa(()=>{if(r){var x;(x=w.current)==null||x.focus()}},[r]),D.jsx(Wmt,$({className:T.root,ownerState:n},S,{children:D.jsx(Qmt,{ref:w,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":b,"aria-checked":s,"aria-label":v,onClick:x=>c(x,o),onKeyDown:x=>d(x,o),onFocus:x=>h(x,o),onBlur:x=>p(x,o),className:T.monthButton,ownerState:n,children:i})}))});function qmt(e){return Ut("MuiMonthCalendar",e)}zt("MuiMonthCalendar",["root"]);const Gmt=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],Zmt=e=>{const{classes:t}=e;return $t({root:["root"]},qmt,t)};function Xmt(e,t){const n=Tr(),r=yy(),i=Rt({props:e,name:t});return $({disableFuture:!1,disablePast:!1},i,{minDate:Fo(n,i.minDate,r.minDate),maxDate:Fo(n,i.maxDate,r.maxDate)})}const Kmt=Ne("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:S6,boxSizing:"border-box"}),Jmt=P.forwardRef(function(t,n){const r=Xmt(t,"MuiMonthCalendar"),{className:i,value:a,defaultValue:s,referenceDate:o,disabled:l,disableFuture:c,disablePast:d,maxDate:h,minDate:p,onChange:b,shouldDisableMonth:v,readOnly:S,disableHighlightToday:w,autoFocus:T=!1,onMonthFocus:x,hasFocus:k,onFocusedViewChange:C,monthsPerRow:I=3,timezone:_,gridLabelId:A}=r,U=st(r,Gmt),{value:F,handleValueChange:M,timezone:V}=NE({name:"MonthCalendar",timezone:_,value:a,defaultValue:s,onChange:b,valueManager:Ss}),Q=Xg(V),X=aE(),Y=Tr(),W=P.useMemo(()=>Ss.getInitialReferenceValue({value:F,utils:Y,props:r,timezone:V,referenceDate:o,granularity:cf.month}),[]),ee=r,J=Zmt(ee),K=P.useMemo(()=>Y.getMonth(Q),[Y,Q]),ne=P.useMemo(()=>F!=null?Y.getMonth(F):w?null:Y.getMonth(W),[F,Y,w,W]),[j,Ce]=P.useState(()=>ne||K),[ye,te]=Ms({name:"MonthCalendar",state:"hasFocus",controlled:k,default:T??!1}),ve=on(Qe=>{te(Qe),C&&C(Qe)}),Se=P.useCallback(Qe=>{const Je=Y.startOfMonth(d&&Y.isAfter(Q,p)?Q:p),Ye=Y.startOfMonth(c&&Y.isBefore(Q,h)?Q:h),nt=Y.startOfMonth(Qe);return Y.isBefore(nt,Je)||Y.isAfter(nt,Ye)?!0:v?v(nt):!1},[c,d,h,p,Q,v,Y]),he=on((Qe,Je)=>{if(S)return;const Ye=Y.setMonth(F??W,Je);M(Ye)}),Pe=on(Qe=>{Se(Y.setMonth(F??W,Qe))||(Ce(Qe),ve(!0),x&&x(Qe))});P.useEffect(()=>{Ce(Qe=>ne!==null&&Qe!==ne?ne:Qe)},[ne]);const Me=on((Qe,Je)=>{switch(Qe.key){case"ArrowUp":Pe((12+Je-3)%12),Qe.preventDefault();break;case"ArrowDown":Pe((12+Je+3)%12),Qe.preventDefault();break;case"ArrowLeft":Pe((12+Je+(X.direction==="ltr"?-1:1))%12),Qe.preventDefault();break;case"ArrowRight":Pe((12+Je+(X.direction==="ltr"?1:-1))%12),Qe.preventDefault();break}}),Ze=on((Qe,Je)=>{Pe(Je)}),ot=on((Qe,Je)=>{j===Je&&ve(!1)});return D.jsx(Kmt,$({ref:n,className:gt(J.root,i),ownerState:ee,role:"radiogroup","aria-labelledby":A},U,{children:zq(Y,F??W).map(Qe=>{const Je=Y.getMonth(Qe),Ye=Y.format(Qe,"monthShort"),nt=Y.format(Qe,"month"),tt=Je===ne,ht=l||Se(Qe);return D.jsx(Ymt,{selected:tt,value:Je,onClick:he,onKeyDown:Me,autoFocus:ye&&Je===j,disabled:ht,tabIndex:Je===j?0:-1,onFocus:Ze,onBlur:ot,"aria-current":K===Je?"date":void 0,"aria-label":nt,monthsPerRow:I,children:Ye},Ye)})}))});function e0t(e){return Ut("MuiPickersYear",e)}const w3=zt("MuiPickersYear",["root","yearButton","selected","disabled"]),t0t=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],n0t=e=>{const{disabled:t,selected:n,classes:r}=e;return $t({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},e0t,r)},r0t=Ne("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),i0t=Ne("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${w3.disabled}`]:t.disabled},{[`&.${w3.selected}`]:t.selected}]})(({theme:e})=>$({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${w3.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${w3.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),a0t=P.memo(function(t){const n=Rt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:a,disabled:s,selected:o,value:l,tabIndex:c,onClick:d,onKeyDown:h,onFocus:p,onBlur:b,"aria-current":v}=n,S=st(n,t0t),w=P.useRef(null),T=n0t(n);return P.useEffect(()=>{r&&w.current.focus()},[r]),D.jsx(r0t,$({className:gt(T.root,i),ownerState:n},S,{children:D.jsx(i0t,{ref:w,disabled:s,type:"button",role:"radio",tabIndex:s?-1:c,"aria-current":v,"aria-checked":o,onClick:x=>d(x,l),onKeyDown:x=>h(x,l),onFocus:x=>p(x,l),onBlur:x=>b(x,l),className:T.yearButton,ownerState:n,children:a})}))});function s0t(e){return Ut("MuiYearCalendar",e)}zt("MuiYearCalendar",["root"]);const o0t=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],l0t=e=>{const{classes:t}=e;return $t({root:["root"]},s0t,t)};function u0t(e,t){var n;const r=Tr(),i=yy(),a=Rt({props:e,name:t});return $({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Fo(r,a.minDate,i.minDate),maxDate:Fo(r,a.maxDate,i.maxDate)})}const c0t=Ne("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:S6,maxHeight:ipt,boxSizing:"border-box",position:"relative"}),d0t=P.forwardRef(function(t,n){const r=u0t(t,"MuiYearCalendar"),{autoFocus:i,className:a,value:s,defaultValue:o,referenceDate:l,disabled:c,disableFuture:d,disablePast:h,maxDate:p,minDate:b,onChange:v,readOnly:S,shouldDisableYear:w,disableHighlightToday:T,onYearFocus:x,hasFocus:k,onFocusedViewChange:C,yearsPerRow:I,timezone:_,gridLabelId:A}=r,U=st(r,o0t),{value:F,handleValueChange:M,timezone:V}=NE({name:"YearCalendar",timezone:_,value:s,defaultValue:o,onChange:v,valueManager:Ss}),Q=Xg(V),X=aE(),Y=Tr(),W=P.useMemo(()=>Ss.getInitialReferenceValue({value:F,utils:Y,props:r,timezone:V,referenceDate:l,granularity:cf.year}),[]),ee=r,J=l0t(ee),K=P.useMemo(()=>Y.getYear(Q),[Y,Q]),ne=P.useMemo(()=>F!=null?Y.getYear(F):T?null:Y.getYear(W),[F,Y,T,W]),[j,Ce]=P.useState(()=>ne||K),[ye,te]=Ms({name:"YearCalendar",state:"hasFocus",controlled:k,default:i??!1}),ve=on(Ye=>{te(Ye),C&&C(Ye)}),Se=P.useCallback(Ye=>{if(h&&Y.isBeforeYear(Ye,Q)||d&&Y.isAfterYear(Ye,Q)||b&&Y.isBeforeYear(Ye,b)||p&&Y.isAfterYear(Ye,p))return!0;if(!w)return!1;const nt=Y.startOfYear(Ye);return w(nt)},[d,h,p,b,Q,w,Y]),he=on((Ye,nt)=>{if(S)return;const tt=Y.setYear(F??W,nt);M(tt)}),Pe=on(Ye=>{Se(Y.setYear(F??W,Ye))||(Ce(Ye),ve(!0),x==null||x(Ye))});P.useEffect(()=>{Ce(Ye=>ne!==null&&Ye!==ne?ne:Ye)},[ne]);const Me=on((Ye,nt)=>{switch(Ye.key){case"ArrowUp":Pe(nt-I),Ye.preventDefault();break;case"ArrowDown":Pe(nt+I),Ye.preventDefault();break;case"ArrowLeft":Pe(nt+(X.direction==="ltr"?-1:1)),Ye.preventDefault();break;case"ArrowRight":Pe(nt+(X.direction==="ltr"?1:-1)),Ye.preventDefault();break}}),Ze=on((Ye,nt)=>{Pe(nt)}),ot=on((Ye,nt)=>{j===nt&&ve(!1)}),Qe=P.useRef(null),Je=rr(n,Qe);return P.useEffect(()=>{if(i||Qe.current===null)return;const Ye=Qe.current.querySelector('[tabindex="0"]');if(!Ye)return;const nt=Ye.offsetHeight,tt=Ye.offsetTop,ht=Qe.current.clientHeight,_t=Qe.current.scrollTop,lt=tt+nt;nt>ht||tt<_t||(Qe.current.scrollTop=lt-ht/2-nt/2)},[i]),D.jsx(c0t,$({ref:Je,className:gt(J.root,a),ownerState:ee,role:"radiogroup","aria-labelledby":A},U,{children:Y.getYearRange(b,p).map(Ye=>{const nt=Y.getYear(Ye),tt=nt===ne,ht=c||Se(Ye);return D.jsx(a0t,{selected:tt,value:nt,onClick:he,onKeyDown:Me,autoFocus:ye&&nt===j,disabled:ht,tabIndex:nt===j?0:-1,onFocus:Ze,onBlur:ot,"aria-current":K===nt?"date":void 0,yearsPerRow:I,children:Y.format(Ye,"year")},Y.format(Ye,"year"))})}))}),f0t=e=>Ut("MuiPickersCalendarHeader",e),h0t=zt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),p0t=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],m0t=["ownerState"],g0t=e=>{const{classes:t}=e;return $t({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},f0t,t)},b0t=Ne("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),y0t=Ne("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>$({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),v0t=Ne("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),O0t=Ne($a,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>$({marginRight:"auto"},e.view==="year"&&{[`.${h0t.switchViewIcon}`]:{transform:"rotate(180deg)"}})),S0t=Ne(Vht,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),E0t=P.forwardRef(function(t,n){var r,i,a,s;const o=Es(),l=Tr(),c=Rt({props:t,name:"MuiPickersCalendarHeader"}),{slots:d,slotProps:h,components:p,currentMonth:b,disabled:v,disableFuture:S,disablePast:w,maxDate:T,minDate:x,onMonthChange:k,onViewChange:C,view:I,reduceAnimations:_,views:A,labelId:U,className:F,timezone:M}=c,V=st(c,p0t),Q=c,X=g0t(c),Y=(r=(i=d==null?void 0:d.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:O0t,W=gr({elementType:Y,externalSlotProps:h==null?void 0:h.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(I)},ownerState:Q,className:X.switchViewButton}),ee=(a=(s=d==null?void 0:d.switchViewIcon)!=null?s:p==null?void 0:p.SwitchViewIcon)!=null?a:S0t,J=gr({elementType:ee,externalSlotProps:h==null?void 0:h.switchViewIcon,ownerState:void 0,className:X.switchViewIcon}),K=st(J,m0t),ne=()=>k(l.addMonths(b,1),"left"),j=()=>k(l.addMonths(b,-1),"right"),Ce=Xpt(b,{disableFuture:S,maxDate:T,timezone:M}),ye=Kpt(b,{disablePast:w,minDate:x,timezone:M}),te=()=>{if(!(A.length===1||!C||v))if(A.length===2)C(A.find(ve=>ve!==I)||A[0]);else{const ve=A.indexOf(I)!==0?0:1;C(A[ve])}};return A.length===1&&A[0]==="year"?null:D.jsxs(b0t,$({},V,{ownerState:Q,className:gt(F,X.root),ref:n,children:[D.jsxs(y0t,{role:"presentation",onClick:te,ownerState:Q,"aria-live":"polite",className:X.labelContainer,children:[D.jsx(Eve,{reduceAnimations:_,transKey:l.format(b,"monthAndYear"),children:D.jsx(v0t,{id:U,ownerState:Q,className:X.label,children:l.format(b,"monthAndYear")})}),A.length>1&&!v&&D.jsx(Y,$({},W,{children:D.jsx(ee,$({},K))}))]}),D.jsx(um,{in:I==="day",children:D.jsx(lve,{slots:d,slotProps:h,onGoToPrevious:j,isPreviousDisabled:ye,previousLabel:o.previousMonth,onGoToNext:ne,isNextDisabled:Ce,nextLabel:o.nextMonth})})]}))}),x6=Ne("div")({overflow:"hidden",width:S6,maxHeight:E6,display:"flex",flexDirection:"column",margin:"0 auto"}),w0t=e=>Ut("MuiDateCalendar",e);zt("MuiDateCalendar",["root","viewTransitionContainer"]);const T0t=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],x0t=e=>{const{classes:t}=e;return $t({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},w0t,t)};function k0t(e,t){var n,r,i,a,s,o,l;const c=Tr(),d=yy(),h=cve(),p=Rt({props:e,name:t});return $({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(i=p.disableFuture)!=null?i:!1,openTo:(a=p.openTo)!=null?a:"day",views:(s=p.views)!=null?s:["year","day"],reduceAnimations:(o=p.reduceAnimations)!=null?o:h,renderLoading:(l=p.renderLoading)!=null?l:()=>D.jsx("span",{children:"..."}),minDate:Fo(c,p.minDate,d.minDate),maxDate:Fo(c,p.maxDate,d.maxDate)})}const C0t=Ne(x6,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:E6}),_0t=Ne(Eve,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),wve=P.forwardRef(function(t,n){var r,i,a;const s=Tr(),o=_f(),l=k0t(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:d,value:h,defaultValue:p,referenceDate:b,disableFuture:v,disablePast:S,defaultCalendarMonth:w,onChange:T,onYearChange:x,onMonthChange:k,reduceAnimations:C,shouldDisableDate:I,shouldDisableMonth:_,shouldDisableYear:A,view:U,views:F,openTo:M,className:V,disabled:Q,readOnly:X,minDate:Y,maxDate:W,disableHighlightToday:ee,focusedView:J,onFocusedViewChange:K,showDaysOutsideCurrentMonth:ne,fixedWeekNumber:j,dayOfWeekFormatter:Ce,components:ye,componentsProps:te,slots:ve,slotProps:Se,loading:he,renderLoading:Pe,displayWeekNumber:Me,yearsPerRow:Ze,monthsPerRow:ot,timezone:Qe}=l,Je=st(l,T0t),{value:Ye,handleValueChange:nt,timezone:tt}=NE({name:"DateCalendar",timezone:Qe,value:h,defaultValue:p,onChange:T,valueManager:Ss}),{view:ht,setView:_t,focusedView:lt,setFocusedView:ge,goToNextView:ue,setValueAndGoToNextView:me}=jC({view:U,views:F,openTo:M,onChange:nt,onViewChange:d,autoFocus:c,focusedView:J,onFocusedViewChange:K}),{referenceDate:We,calendarState:et,changeFocusedDay:qe,changeMonth:pe,handleChangeMonth:Te,isDateDisabled:Oe,onMonthSwitchingAnimationEnd:De}=Amt({value:Ye,defaultCalendarMonth:w,referenceDate:b,reduceAnimations:C,onMonthChange:k,minDate:Y,maxDate:W,shouldDisableDate:I,disablePast:S,disableFuture:v,timezone:tt}),je=Q&&Ye||Y,Ot=Q&&Ye||W,jt=`${o}-grid-label`,Xt=lt!==null,St=(r=(i=ve==null?void 0:ve.calendarHeader)!=null?i:ye==null?void 0:ye.CalendarHeader)!=null?r:E0t,Kt=gr({elementType:St,externalSlotProps:(a=Se==null?void 0:Se.calendarHeader)!=null?a:te==null?void 0:te.calendarHeader,additionalProps:{views:F,view:ht,currentMonth:et.currentMonth,onViewChange:_t,onMonthChange:(Ve,ct)=>Te({newMonth:Ve,direction:ct}),minDate:je,maxDate:Ot,disabled:Q,disablePast:S,disableFuture:v,reduceAnimations:C,timezone:tt,labelId:jt,slots:ve,slotProps:Se},ownerState:l}),pt=on(Ve=>{const ct=s.startOfMonth(Ve),Nt=s.endOfMonth(Ve),qt=Oe(Ve)?H2({utils:s,date:Ve,minDate:s.isBefore(Y,ct)?ct:Y,maxDate:s.isAfter(W,Nt)?Nt:W,disablePast:S,disableFuture:v,isDateDisabled:Oe,timezone:tt}):Ve;qt?(me(qt,"finish"),k==null||k(ct)):(ue(),pe(ct)),qe(qt,!0)}),At=on(Ve=>{const ct=s.startOfYear(Ve),Nt=s.endOfYear(Ve),qt=Oe(Ve)?H2({utils:s,date:Ve,minDate:s.isBefore(Y,ct)?ct:Y,maxDate:s.isAfter(W,Nt)?Nt:W,disablePast:S,disableFuture:v,isDateDisabled:Oe,timezone:tt}):Ve;qt?(me(qt,"finish"),x==null||x(qt)):(ue(),pe(ct)),qe(qt,!0)}),en=on(Ve=>nt(Ve&&hB(s,Ve,Ye??We),"finish",ht));P.useEffect(()=>{Ye!=null&&s.isValid(Ye)&&pe(Ye)},[Ye]);const Dn=l,$n=x0t(Dn),Qn={disablePast:S,disableFuture:v,maxDate:W,minDate:Y},ur={disableHighlightToday:ee,readOnly:X,disabled:Q,timezone:tt,gridLabelId:jt},Qr=P.useRef(ht);P.useEffect(()=>{Qr.current!==ht&&(lt===Qr.current&&ge(ht,!0),Qr.current=ht)},[lt,ge,ht]);const $e=P.useMemo(()=>[Ye],[Ye]);return D.jsxs(C0t,$({ref:n,className:gt($n.root,V),ownerState:Dn},Je,{children:[D.jsx(St,$({},Kt)),D.jsx(_0t,{reduceAnimations:C,className:$n.viewTransitionContainer,transKey:ht,ownerState:Dn,children:D.jsxs("div",{children:[ht==="year"&&D.jsx(d0t,$({},Qn,ur,{value:Ye,onChange:At,shouldDisableYear:A,hasFocus:Xt,onFocusedViewChange:Ve=>ge("year",Ve),yearsPerRow:Ze,referenceDate:We})),ht==="month"&&D.jsx(Jmt,$({},Qn,ur,{hasFocus:Xt,className:V,value:Ye,onChange:pt,shouldDisableMonth:_,onFocusedViewChange:Ve=>ge("month",Ve),monthsPerRow:ot,referenceDate:We})),ht==="day"&&D.jsx(Cmt,$({},et,Qn,ur,{onMonthSwitchingAnimationEnd:De,onFocusedDayChange:qe,reduceAnimations:C,selectedDays:$e,onSelectedDaysChange:en,shouldDisableDate:I,shouldDisableMonth:_,shouldDisableYear:A,hasFocus:Xt,onFocusedViewChange:Ve=>ge("day",Ve),showDaysOutsideCurrentMonth:ne,fixedWeekNumber:j,dayOfWeekFormatter:Ce,displayWeekNumber:Me,components:ye,componentsProps:te,slots:ve,slotProps:Se,loading:he,renderLoading:Pe}))]})})]}))}),gd=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minDate:b,maxDate:v,shouldDisableDate:S,shouldDisableMonth:w,shouldDisableYear:T,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:I,yearsPerRow:_,defaultCalendarMonth:A,components:U,componentsProps:F,slots:M,slotProps:V,loading:Q,renderLoading:X,disableHighlightToday:Y,readOnly:W,disabled:ee,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:K,sx:ne,autoFocus:j,fixedWeekNumber:Ce,displayWeekNumber:ye,timezone:te})=>D.jsx(wve,{view:e,onViewChange:t,views:n.filter(WO),focusedView:r&&WO(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minDate:b,maxDate:v,shouldDisableDate:S,shouldDisableMonth:w,shouldDisableYear:T,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:I,yearsPerRow:_,defaultCalendarMonth:A,components:U,componentsProps:F,slots:M,slotProps:V,loading:Q,renderLoading:X,disableHighlightToday:Y,readOnly:W,disabled:ee,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:K,sx:ne,autoFocus:j,fixedWeekNumber:Ce,displayWeekNumber:ye,timezone:te}),Tve=P.forwardRef(function(t,n){var r,i,a,s;const o=Es(),l=Tr(),c=sve(t,"MuiDesktopDatePicker"),d=$({day:gd,month:gd,year:gd},c.viewRenderers),h=$({},c,{viewRenderers:d,format:sk(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:$({openPickerIcon:ove,field:Sve},c.slots),slotProps:$({},c.slotProps,{field:b=>{var v;return $({},$g((v=c.slotProps)==null?void 0:v.field,b),PE(c),{ref:n})},toolbar:$({hidden:!0},(i=c.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=Xq({props:h,valueManager:Ss,valueType:"date",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:o.openDatePickerDialogue,validator:vy});return p()});Tve.propTypes={autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,dayOfWeekFormatter:G.func,defaultCalendarMonth:G.any,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableHighlightToday:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,displayWeekNumber:G.bool,fixedWeekNumber:G.number,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:rE,label:G.node,loading:G.bool,localeText:G.object,maxDate:G.any,minDate:G.any,monthsPerRow:G.oneOf([3,4]),name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onMonthChange:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,onYearChange:G.func,open:G.bool,openTo:G.oneOf(["day","month","year"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,renderLoading:G.func,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableDate:G.func,shouldDisableMonth:G.func,shouldDisableYear:G.func,showDaysOutsideCurrentMonth:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),timezone:G.string,value:G.any,view:G.oneOf(["day","month","year"]),viewRenderers:G.shape({day:G.func,month:G.func,year:G.func}),views:G.arrayOf(G.oneOf(["day","month","year"]).isRequired),yearsPerRow:G.oneOf([3,4])};const A0t=["props","getOpenDialogAriaText"],Jq=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:a}=e,s=st(e,A0t);const{slots:o,slotProps:l,className:c,sx:d,format:h,formatDensity:p,timezone:b,name:v,label:S,inputRef:w,readOnly:T,disabled:x,localeText:k}=i,C=Tr(),I=P.useRef(null),_=_f(),A=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:F,layoutProps:M,renderCurrentView:V,fieldProps:Q}=fve($({},s,{props:i,inputRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),X=o.field,Y=gr({elementType:X,externalSlotProps:l==null?void 0:l.field,additionalProps:$({},Q,A&&{id:_},!(x||T)&&{onClick:F.onOpen,onKeyDown:upt(F.onOpen)},{readOnly:T??!0,disabled:x,className:c,sx:d,format:h,formatDensity:p,timezone:b,label:S,name:v}),ownerState:i});Y.inputProps=$({},Y.inputProps,{"aria-label":a(Q.value,C)});const W=$({textField:o.textField},Y.slots),ee=(r=o.layout)!=null?r:mve,J=rr(I,Y.inputRef,w);let K=_;A&&(S?K=`${_}-label`:K=void 0);const ne=$({},l,{toolbar:$({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:$({"aria-labelledby":K},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>D.jsxs(rve,{localeText:k,children:[D.jsx(X,$({},Y,{slots:W,slotProps:ne,inputRef:J})),D.jsx(opt,$({},F,{open:U,slots:o,slotProps:ne,children:D.jsx(ee,$({},M,ne==null?void 0:ne.layout,{slots:o,slotProps:ne,children:V()}))}))]})}},eG=P.forwardRef(function(t,n){var r,i,a;const s=Es(),o=Tr(),l=sve(t,"MuiMobileDatePicker"),c=$({day:gd,month:gd,year:gd},l.viewRenderers),d=$({},l,{viewRenderers:c,format:sk(o,l,!1),slots:$({field:Sve},l.slots),slotProps:$({},l.slotProps,{field:p=>{var b;return $({},$g((b=l.slotProps)==null?void 0:b.field,p),PE(l),{ref:n})},toolbar:$({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:h}=Jq({props:d,valueManager:Ss,valueType:"date",getOpenDialogAriaText:(i=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:vy});return h()});eG.propTypes={autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,dayOfWeekFormatter:G.func,defaultCalendarMonth:G.any,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableHighlightToday:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,displayWeekNumber:G.bool,fixedWeekNumber:G.number,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:rE,label:G.node,loading:G.bool,localeText:G.object,maxDate:G.any,minDate:G.any,monthsPerRow:G.oneOf([3,4]),name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onMonthChange:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,onYearChange:G.func,open:G.bool,openTo:G.oneOf(["day","month","year"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,renderLoading:G.func,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableDate:G.func,shouldDisableMonth:G.func,shouldDisableYear:G.func,showDaysOutsideCurrentMonth:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),timezone:G.string,value:G.any,view:G.oneOf(["day","month","year"]),viewRenderers:G.shape({day:G.func,month:G.func,year:G.func}),views:G.arrayOf(G.oneOf(["day","month","year"]).isRequired),yearsPerRow:G.oneOf([3,4])};const R0t=["desktopModeMediaQuery"],I0t=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=Qq}=r,a=st(r,R0t);return lE(i,{defaultMatches:!0})?D.jsx(Tve,$({ref:n},a)):D.jsx(eG,$({ref:n},a))}),D0t=e=>{var t,n,r,i,a,s,o,l;const c=Tr(),d=yy(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return $({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Fo(c,(a=e.minDateTime)!=null?a:e.minDate,d.minDate),maxDate:Fo(c,(s=e.maxDateTime)!=null?s:e.maxDate,d.maxDate),minTime:(o=e.minDateTime)!=null?o:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},N0t=({props:e,inputRef:t})=>{const n=D0t(e),{forwardedProps:r,internalProps:i}=Zq(n,"date-time");return Gq({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Ss,fieldValueManager:Vq,validator:T6,valueType:"date-time"})},P0t=["components","componentsProps","slots","slotProps","InputProps","inputProps"],M0t=["inputRef"],L0t=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],xve=P.forwardRef(function(t,n){var r,i,a;const s=Rt({props:t,name:"MuiDateTimeField"}),{components:o,componentsProps:l,slots:c,slotProps:d,InputProps:h,inputProps:p}=s,b=st(s,P0t),v=s,S=(r=(i=c==null?void 0:c.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:zg,w=gr({elementType:S,externalSlotProps:(a=d==null?void 0:d.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:b,ownerState:v}),{inputRef:T}=w,x=st(w,M0t);x.inputProps=$({},p,x.inputProps),x.InputProps=$({},h,x.InputProps);const k=N0t({props:x,inputRef:T}),{ref:C,onPaste:I,onKeyDown:_,inputMode:A,readOnly:U,clearable:F,onClear:M}=k,V=st(k,L0t),{InputProps:Q,fieldProps:X}=Kq({onClear:M,clearable:F,fieldProps:V,InputProps:V.InputProps,slots:c,slotProps:d,components:o,componentsProps:l});return D.jsx(S,$({ref:n},X,{InputProps:$({},Q,{readOnly:U}),inputProps:$({},V.inputProps,{inputMode:A,onPaste:I,onKeyDown:_,ref:C})}))});function $0t(e){return Ut("MuiDateTimePickerTabs",e)}zt("MuiDateTimePickerTabs",["root"]);const F0t=e=>WO(e)?"date":"time",B0t=e=>e==="date"?"day":"hours",U0t=e=>{const{classes:t}=e;return $t({root:["root"]},$0t,t)},z0t=Ne(QMe,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${e5.indicator}`]:{bottom:"auto",top:0}}})),j0t=function(t){const n=Rt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=D.jsx(qht,{}),onViewChange:i,timeIcon:a=D.jsx(Ght,{}),view:s,hidden:o=typeof window>"u"||window.innerHeight<667,className:l}=n,c=Es(),d=U0t(n),h=(p,b)=>{i(B0t(b))};return o?null:D.jsxs(z0t,{ownerState:n,variant:"fullWidth",value:F0t(s),onChange:h,className:gt(l,d.root),children:[D.jsx(yJ,{value:"date","aria-label":c.dateTableLabel,icon:D.jsx(P.Fragment,{children:r})}),D.jsx(yJ,{value:"time","aria-label":c.timeTableLabel,icon:D.jsx(P.Fragment,{children:a})})]})};function H0t(e){return Ut("MuiDateTimePickerToolbar",e)}const OL=zt("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),V0t=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],W0t=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return $t(i,H0t,t)},kve=Ne(Wq,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));kve.propTypes={as:G.elementType,classes:G.object,className:G.string,isLandscape:G.bool.isRequired,isMobileKeyboardViewOpen:G.bool,landscapeDirection:G.oneOf(["column","row"]),ownerState:G.object.isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),toggleMobileKeyboardView:G.func,toolbarTitle:G.node,viewType:G.oneOf(["date","time"])};const Q0t=Ne("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Cve=Ne("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return $({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&$({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Y0t=Ne("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>$({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Cve.propTypes={as:G.elementType,ownerState:G.object.isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object])};const Xae=Ne(Yq,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),q0t=Ne("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${OL.ampmLabel}`]:t.ampmLabel},{[`&.${OL.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>$({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${OL.ampmLabel}`]:{fontSize:17}}));function G0t(e){const t=Rt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:a,view:s,isLandscape:o,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:d="––",views:h,disabled:p,readOnly:b,toolbarVariant:v="mobile"}=t,S=st(t,V0t),w=t,T=Tr(),{meridiemMode:x,handleMeridiemChange:k}=w6(i,n,a),C=!!(n&&!r),I=v==="desktop",_=Es(),A=ji(),U=W0t($({},w,{theme:A})),F=V=>n?T.format(V,"hours12h"):T.format(V,"hours24h"),M=P.useMemo(()=>i?c?T.formatByString(i,c):T.format(i,"shortDate"):d,[i,c,d,T]);return D.jsxs(kve,$({toolbarTitle:_.dateTimePickerToolbarTitle,isLandscape:o,className:U.root},S,{ownerState:w,children:[D.jsxs(Q0t,{className:U.dateContainer,ownerState:w,children:[h.includes("year")&&D.jsx(qu,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:s==="year",value:i?T.format(i,"year"):"–"}),h.includes("day")&&D.jsx(qu,{tabIndex:-1,variant:I?"h5":"h4",onClick:()=>l("day"),selected:s==="day",value:M})]}),D.jsxs(Cve,{className:U.timeContainer,ownerState:w,children:[D.jsxs(Y0t,{className:U.timeDigitsContainer,ownerState:w,children:[h.includes("hours")&&D.jsx(qu,{variant:I?"h5":"h3",width:I&&!o?t2:void 0,onClick:()=>l("hours"),selected:s==="hours",value:i?F(i):"--"}),h.includes("minutes")&&D.jsxs(P.Fragment,{children:[D.jsx(Xae,{variant:I?"h5":"h3",value:":",className:U.separator,ownerState:w}),D.jsx(qu,{variant:I?"h5":"h3",width:I&&!o?t2:void 0,onClick:()=>l("minutes"),selected:s==="minutes",value:i?T.format(i,"minutes"):"--"})]}),h.includes("seconds")&&D.jsxs(P.Fragment,{children:[D.jsx(Xae,{variant:I?"h5":"h3",value:":",className:U.separator,ownerState:w}),D.jsx(qu,{variant:I?"h5":"h3",width:I&&!o?t2:void 0,onClick:()=>l("seconds"),selected:s==="seconds",value:i?T.format(i,"seconds"):"--"})]})]}),C&&!I&&D.jsxs(q0t,{className:U.ampmSelection,ownerState:w,children:[D.jsx(qu,{variant:"subtitle2",selected:x==="am",typographyClassName:U.ampmLabel,value:pf(T,"am"),onClick:b?void 0:()=>k("am"),disabled:p}),D.jsx(qu,{variant:"subtitle2",selected:x==="pm",typographyClassName:U.ampmLabel,value:pf(T,"pm"),onClick:b?void 0:()=>k("pm"),disabled:p})]}),n&&I&&D.jsx(qu,{variant:"h5",onClick:()=>l("meridiem"),selected:s==="meridiem",value:i&&x?pf(T,x):"--",width:t2})]})]}))}function _ve(e,t){var n,r,i,a,s,o,l,c,d,h,p;const b=Tr(),v=yy(),S=Rt({props:e,name:t}),w=(n=S.ampm)!=null?n:b.is12HourCycleInCurrentLocale(),T=P.useMemo(()=>{var C;return((C=S.localeText)==null?void 0:C.toolbarTitle)==null?S.localeText:$({},S.localeText,{dateTimePickerToolbarTitle:S.localeText.toolbarTitle})},[S.localeText]),x=(r=S.slots)!=null?r:zC(S.components),k=(i=S.slotProps)!=null?i:S.componentsProps;return $({},S,Uq({views:S.views,openTo:S.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:w,localeText:T,orientation:(a=S.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(s=S.disableIgnoringDatePartForTimeValidation)!=null?s:!!(S.minDateTime||S.maxDateTime||S.disablePast||S.disableFuture),disableFuture:(o=S.disableFuture)!=null?o:!1,disablePast:(l=S.disablePast)!=null?l:!1,minDate:Fo(b,(c=S.minDateTime)!=null?c:S.minDate,v.minDate),maxDate:Fo(b,(d=S.maxDateTime)!=null?d:S.maxDate,v.maxDate),minTime:(h=S.minDateTime)!=null?h:S.minTime,maxTime:(p=S.maxDateTime)!=null?p:S.maxTime,slots:$({toolbar:G0t,tabs:j0t},x),slotProps:$({},k,{toolbar:$({ampm:w},k==null?void 0:k.toolbar)})})}function Z0t(e){return Ut("MuiMultiSectionDigitalClock",e)}zt("MuiMultiSectionDigitalClock",["root"]);function X0t(e){return Ut("MuiMultiSectionDigitalClockSection",e)}const K0t=zt("MuiMultiSectionDigitalClockSection",["root","item"]),J0t=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],egt=e=>{const{classes:t}=e;return $t({root:["root"],item:["item"]},X0t,t)},tgt=Ne(uE,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:uve,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),ngt=Ne(cm,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:t2,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity)}})),rgt=P.forwardRef(function(t,n){var r;const i=P.useRef(null),a=rr(n,i),s=P.useRef(null),o=Rt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:d,disabled:h,readOnly:p,items:b,active:v,slots:S,slotProps:w,skipDisabled:T}=o,x=st(o,J0t),k=P.useMemo(()=>$({},o,{alreadyRendered:!!i.current}),[o]),C=egt(k),I=(r=S==null?void 0:S.digitalClockSectionItem)!=null?r:ngt;return P.useEffect(()=>{if(i.current===null)return;const _=i.current.querySelector('[role="option"][aria-selected="true"]');if(v&&l&&_&&_.focus(),!_||s.current===_)return;s.current=_;const A=_.offsetTop;i.current.scrollTop=A-4}),D.jsx(tgt,$({ref:a,className:gt(C.root,d),ownerState:k,autoFocusItem:l&&v,role:"listbox"},x,{children:b.map(_=>{var A,U;if(T&&(A=_.isDisabled)!=null&&A.call(_,_.value))return null;const F=_.isSelected(_.value);return D.jsx(I,$({onClick:()=>!p&&c(_.value),selected:F,disabled:h||((U=_.isDisabled)==null?void 0:U.call(_,_.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":_.ariaLabel,"aria-selected":F,className:C.item},w==null?void 0:w.digitalClockSectionItem,{children:_.label}),_.label)})}))}),igt=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:s})=>{const o=t?n.getHours(t):null,l=[],c=h=>o===null?!1:r?h===12?o===12||o===0:o===h||o-12===h:o===h,d=r?11:23;for(let h=0;h<=d;h+=s){let p=n.format(n.setHours(e,h),r?"hours12h":"hours24h");const b=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:h,label:p,isSelected:c,isDisabled:i,ariaLabel:b})}return l},Kae=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:s=!0})=>{const o=l=>e===null?!1:s&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,c)=>{const d=r*c;return{value:d,label:t.formatNumber(i(d)),isDisabled:n,isSelected:o,ariaLabel:a(d.toString())}})]},tG=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const a=P.useMemo(()=>Ss.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:cf.day,timezone:i,getTodayDate:()=>jq(n,i,"date")}),[]);return e??a},agt=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],sgt=e=>{const{classes:t}=e;return $t({root:["root"]},Z0t,t)},ogt=Ne(x6,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),lgt=P.forwardRef(function(t,n){const r=Tr(),i=Rt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:o,components:l,componentsProps:c,slots:d,slotProps:h,value:p,defaultValue:b,referenceDate:v,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:w,minTime:T,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:I,shouldDisableTime:_,onChange:A,view:U,views:F=["hours","minutes"],openTo:M,onViewChange:V,focusedView:Q,onFocusedViewChange:X,className:Y,disabled:W,readOnly:ee,skipDisabled:J=!1,timezone:K}=i,ne=st(i,agt),{value:j,handleValueChange:Ce,timezone:ye}=NE({name:"MultiSectionDigitalClock",timezone:K,value:p,defaultValue:b,onChange:A,valueManager:Ss}),te=Es(),ve=Xg(ye),Se=P.useMemo(()=>$({hours:1,minutes:5,seconds:5},s),[s]),he=tG({value:j,referenceDate:v,utils:r,props:i,timezone:ye}),Pe=on((ue,me,We)=>Ce(ue,me,We)),Me=P.useMemo(()=>!a||!F.includes("hours")||F.includes("meridiem")?F:[...F,"meridiem"],[a,F]),{view:Ze,setValueAndGoToNextView:ot,focusedView:Qe}=jC({view:U,views:Me,openTo:M,onViewChange:V,onChange:Pe,focusedView:Q,onFocusedViewChange:X}),Je=on(ue=>{ot(ue,"finish","meridiem")}),{meridiemMode:Ye,handleMeridiemChange:nt}=w6(he,a,Je,"finish"),tt=P.useCallback((ue,me)=>{const We=UC(S,r),et=me==="hours"||me==="minutes"&&Me.includes("seconds"),qe=({start:Te,end:Oe})=>!(T&&We(T,Oe)||w&&We(Te,w)||x&&We(Te,ve)||k&&We(ve,et?Oe:Te)),pe=(Te,Oe=1)=>{if(Te%Oe!==0||I!=null&&I(Te,me))return!1;if(_)switch(me){case"hours":return!_(r.setHours(he,Te),"hours");case"minutes":return!_(r.setMinutes(he,Te),"minutes");case"seconds":return!_(r.setSeconds(he,Te),"seconds");default:return!1}return!0};switch(me){case"hours":{const Te=ok(ue,Ye,a),Oe=r.setHours(he,Te),De=r.setSeconds(r.setMinutes(Oe,0),0),je=r.setSeconds(r.setMinutes(Oe,59),59);return!qe({start:De,end:je})||!pe(Te)}case"minutes":{const Te=r.setMinutes(he,ue),Oe=r.setSeconds(Te,0),De=r.setSeconds(Te,59);return!qe({start:Oe,end:De})||!pe(ue,C)}case"seconds":{const Te=r.setSeconds(he,ue);return!qe({start:Te,end:Te})||!pe(ue)}default:throw new Error("not supported")}},[a,he,S,w,Ye,T,C,I,_,r,x,k,ve,Me]),ht=P.useCallback(ue=>{switch(ue){case"hours":return{onChange:me=>{const We=ok(me,Ye,a);ot(r.setHours(he,We),"finish","hours")},items:igt({now:ve,value:j,ampm:a,utils:r,isDisabled:me=>W||tt(me,"hours"),timeStep:Se.hours,resolveAriaLabel:te.hoursClockNumberText})};case"minutes":return{onChange:me=>{ot(r.setMinutes(he,me),"finish","minutes")},items:Kae({value:r.getMinutes(he),utils:r,isDisabled:me=>W||tt(me,"minutes"),resolveLabel:me=>r.format(r.setMinutes(ve,me),"minutes"),timeStep:Se.minutes,hasValue:!!j,resolveAriaLabel:te.minutesClockNumberText})};case"seconds":return{onChange:me=>{ot(r.setSeconds(he,me),"finish","seconds")},items:Kae({value:r.getSeconds(he),utils:r,isDisabled:me=>W||tt(me,"seconds"),resolveLabel:me=>r.format(r.setSeconds(ve,me),"seconds"),timeStep:Se.seconds,hasValue:!!j,resolveAriaLabel:te.secondsClockNumberText})};case"meridiem":{const me=pf(r,"am"),We=pf(r,"pm");return{onChange:nt,items:[{value:"am",label:me,isSelected:()=>!!j&&Ye==="am",ariaLabel:me},{value:"pm",label:We,isSelected:()=>!!j&&Ye==="pm",ariaLabel:We}]}}default:throw new Error(`Unknown view: ${ue} found.`)}},[ve,j,a,r,Se.hours,Se.minutes,Se.seconds,te.hoursClockNumberText,te.minutesClockNumberText,te.secondsClockNumberText,Ye,ot,he,W,tt,nt]),_t=P.useMemo(()=>Me.reduce((ue,me)=>$({},ue,{[me]:ht(me)}),{}),[Me,ht]),lt=i,ge=sgt(lt);return D.jsx(ogt,$({ref:n,className:gt(ge.root,Y),ownerState:lt,role:"group"},ne,{children:Object.entries(_t).map(([ue,me])=>D.jsx(rgt,{items:me.items,onChange:me.onChange,active:Ze===ue,autoFocus:o??Qe===ue,disabled:W,readOnly:ee,slots:d??l,slotProps:h??c,skipDisabled:J,"aria-label":te.selectViewText(ue)},ue))}))}),ugt=Ne("div")({display:"flex",margin:"0 auto"});function cgt(e){return Ut("MuiTimeClock",e)}zt("MuiTimeClock",["root","arrowSwitcher"]);const qS=220,qh=36,uk={x:qS/2,y:qS/2},Ave={x:uk.x,y:0},dgt=Ave.x-uk.x,fgt=Ave.y-uk.y,hgt=e=>e*(180/Math.PI),Rve=(e,t,n)=>{const r=t-uk.x,i=n-uk.y,a=Math.atan2(dgt,fgt)-Math.atan2(r,i);let s=hgt(a);s=Math.round(s/e)*e,s%=360;const o=Math.floor(s/e)||0,l=r**2+i**2,c=Math.sqrt(l);return{value:o,distance:c}},pgt=(e,t,n=1)=>{const r=n*6;let{value:i}=Rve(r,e,t);return i=i*n%60,i},mgt=(e,t,n)=>{const{value:r,distance:i}=Rve(30,e,t);let a=r||12;return n?a%=12:i{const{classes:t}=e;return $t({root:["root"],thumb:["thumb"]},ggt,t)},vgt=Ne("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>$({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),Ogt=Ne("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>$({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${qh/2}px)`,border:`${(qh-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function Sgt(e){const t=Rt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:a}=t,s=st(t,bgt),o=P.useRef(i);P.useEffect(()=>{o.current=i},[i]);const l=$({},t,{shouldAnimate:o.current!==i}),c=ygt(l),d=()=>{let p=360/(i==="hours"?12:60)*a;return i==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*qS),transform:`rotateZ(${p}deg)`}};return D.jsx(vgt,$({style:d(),className:gt(n,c.root),ownerState:l},s,{children:D.jsx(Ogt,{ownerState:l,className:c.thumb})}))}function Egt(e){return Ut("MuiClock",e)}zt("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const wgt=e=>{const{classes:t}=e;return $t({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},Egt,t)},Tgt=Ne("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),xgt=Ne("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),kgt=Ne("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Cgt=Ne("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>$({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),_gt=Ne("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Agt=Ne($a,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>$({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:qh},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Rgt=Ne($a,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>$({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:qh},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Jae=Ne(Ar,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Igt(e){const t=Rt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:o,isTimeDisabled:l,meridiemMode:c,minutesStep:d=1,onChange:h,selectedId:p,type:b,viewValue:v,disabled:S,readOnly:w,className:T}=t,x=t,k=Tr(),C=Es(),I=P.useRef(!1),_=wgt(x),A=l(v,b),U=!n&&b==="hours"&&(v<1||v>12),F=(ne,j)=>{S||w||l(ne,b)||h(ne,j)},M=(ne,j)=>{let{offsetX:Ce,offsetY:ye}=ne;if(Ce===void 0){const ve=ne.target.getBoundingClientRect();Ce=ne.changedTouches[0].clientX-ve.left,ye=ne.changedTouches[0].clientY-ve.top}const te=b==="seconds"||b==="minutes"?pgt(Ce,ye,d):mgt(Ce,ye,!!n);F(te,j)},V=ne=>{I.current=!0,M(ne,"shallow")},Q=ne=>{I.current&&(M(ne,"finish"),I.current=!1)},X=ne=>{ne.buttons>0&&M(ne.nativeEvent,"shallow")},Y=ne=>{I.current&&(I.current=!1),M(ne.nativeEvent,"finish")},W=P.useMemo(()=>b==="hours"?!0:v%5===0,[b,v]),ee=b==="minutes"?d:1,J=P.useRef(null);wa(()=>{i&&J.current.focus()},[i]);const K=ne=>{if(!I.current)switch(ne.key){case"Home":F(0,"partial"),ne.preventDefault();break;case"End":F(b==="minutes"?59:23,"partial"),ne.preventDefault();break;case"ArrowUp":F(v+ee,"partial"),ne.preventDefault();break;case"ArrowDown":F(v-ee,"partial"),ne.preventDefault();break}};return D.jsxs(Tgt,{className:gt(T,_.root),children:[D.jsxs(xgt,{className:_.clock,children:[D.jsx(Cgt,{onTouchMove:V,onTouchEnd:Q,onMouseUp:Y,onMouseMove:X,ownerState:{disabled:S},className:_.squareMask}),!A&&D.jsxs(P.Fragment,{children:[D.jsx(_gt,{className:_.pin}),s!=null&&D.jsx(Sgt,{type:b,viewValue:v,isInner:U,hasSelected:W})]}),D.jsx(kgt,{"aria-activedescendant":p,"aria-label":C.clockLabelText(b,s,k),ref:J,role:"listbox",onKeyDown:K,tabIndex:0,className:_.wrapper,children:a})]}),n&&r&&D.jsxs(P.Fragment,{children:[D.jsx(Agt,{onClick:w?void 0:()=>o("am"),disabled:S||c===null,ownerState:x,className:_.amButton,title:pf(k,"am"),children:D.jsx(Jae,{variant:"caption",className:_.meridiemText,children:pf(k,"am")})}),D.jsx(Rgt,{disabled:S||c===null,onClick:w?void 0:()=>o("pm"),ownerState:x,className:_.pmButton,title:pf(k,"pm"),children:D.jsx(Jae,{variant:"caption",className:_.meridiemText,children:pf(k,"pm")})})]})]})}function Dgt(e){return Ut("MuiClockNumber",e)}const T3=zt("MuiClockNumber",["root","selected","disabled"]),Ngt=["className","disabled","index","inner","label","selected"],Pgt=e=>{const{classes:t,selected:n,disabled:r}=e;return $t({root:["root",n&&"selected",r&&"disabled"]},Dgt,t)},Mgt=Ne("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${T3.disabled}`]:t.disabled},{[`&.${T3.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>$({height:qh,width:qh,position:"absolute",left:`calc((100% - ${qh}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${T3.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${T3.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function Ive(e){const t=Rt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:a,label:s,selected:o}=t,l=st(t,Ngt),c=t,d=Pgt(c),h=i%12/12*Math.PI*2-Math.PI/2,p=(qS-qh-2)/2*(a?.65:1),b=Math.round(Math.cos(h)*p),v=Math.round(Math.sin(h)*p);return D.jsx(Mgt,$({className:gt(n,d.root),"aria-disabled":r?!0:void 0,"aria-selected":o?!0:void 0,role:"option",style:{transform:`translate(${b}px, ${v+(qS-qh)/2}px`},ownerState:c},l,{children:s}))}const Lgt=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:a})=>{const s=t?a.getHours(t):null,o=[],l=e?1:0,c=e?12:23,d=h=>s===null?!1:e?h===12?s===12||s===0:s===h||s-12===h:s===h;for(let h=l;h<=c;h+=1){let p=h.toString();h===0&&(p="00");const b=!e&&(h===0||h>12);p=a.formatNumber(p);const v=d(h);o.push(D.jsx(Ive,{id:v?i:void 0,index:h,inner:b,selected:v,disabled:r(h),label:p,"aria-label":n(p)},h))}return o},ese=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([s,o],l)=>{const c=s===t;return D.jsx(Ive,{label:o,id:c?i:void 0,index:l+1,inner:!1,disabled:n(s),selected:c,"aria-label":r(o)},s)})},$gt=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Fgt=e=>{const{classes:t}=e;return $t({root:["root"],arrowSwitcher:["arrowSwitcher"]},cgt,t)},Bgt=Ne(x6,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Ugt=Ne(lve,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),zgt=["hours","minutes"],jgt=P.forwardRef(function(t,n){const r=Tr(),i=Rt({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:o,components:l,componentsProps:c,slots:d,slotProps:h,value:p,defaultValue:b,referenceDate:v,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:w,minTime:T,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:I,shouldDisableTime:_,showViewSwitcher:A,onChange:U,view:F,views:M=zgt,openTo:V,onViewChange:Q,focusedView:X,onFocusedViewChange:Y,className:W,disabled:ee,readOnly:J,timezone:K}=i,ne=st(i,$gt),j=d??zC(l),Ce=h??c,{value:ye,handleValueChange:te,timezone:ve}=NE({name:"TimeClock",timezone:K,value:p,defaultValue:b,onChange:U,valueManager:Ss}),Se=tG({value:ye,referenceDate:v,utils:r,props:i,timezone:ve}),he=Es(),Pe=Xg(ve),{view:Me,setView:Ze,previousView:ot,nextView:Qe,setValueAndGoToNextView:Je}=jC({view:F,views:M,openTo:V,onViewChange:Q,onChange:te,focusedView:X,onFocusedViewChange:Y}),{meridiemMode:Ye,handleMeridiemChange:nt}=w6(Se,a,Je),tt=P.useCallback((ue,me)=>{const We=UC(S,r),et=me==="hours"||me==="minutes"&&M.includes("seconds"),qe=({start:Te,end:Oe})=>!(T&&We(T,Oe)||w&&We(Te,w)||x&&We(Te,Pe)||k&&We(Pe,et?Oe:Te)),pe=(Te,Oe=1)=>{if(Te%Oe!==0||I!=null&&I(Te,me))return!1;if(_)switch(me){case"hours":return!_(r.setHours(Se,Te),"hours");case"minutes":return!_(r.setMinutes(Se,Te),"minutes");case"seconds":return!_(r.setSeconds(Se,Te),"seconds");default:return!1}return!0};switch(me){case"hours":{const Te=ok(ue,Ye,a),Oe=r.setHours(Se,Te),De=r.setSeconds(r.setMinutes(Oe,0),0),je=r.setSeconds(r.setMinutes(Oe,59),59);return!qe({start:De,end:je})||!pe(Te)}case"minutes":{const Te=r.setMinutes(Se,ue),Oe=r.setSeconds(Te,0),De=r.setSeconds(Te,59);return!qe({start:Oe,end:De})||!pe(ue,C)}case"seconds":{const Te=r.setSeconds(Se,ue);return!qe({start:Te,end:Te})||!pe(ue)}default:throw new Error("not supported")}},[a,Se,S,w,Ye,T,C,I,_,r,x,k,Pe,M]),ht=_f(),_t=P.useMemo(()=>{switch(Me){case"hours":{const ue=(me,We)=>{const et=ok(me,Ye,a);Je(r.setHours(Se,et),We)};return{onChange:ue,viewValue:r.getHours(Se),children:Lgt({value:ye,utils:r,ampm:a,onChange:ue,getClockNumberText:he.hoursClockNumberText,isDisabled:me=>ee||tt(me,"hours"),selectedId:ht})}}case"minutes":{const ue=r.getMinutes(Se),me=(We,et)=>{Je(r.setMinutes(Se,We),et)};return{viewValue:ue,onChange:me,children:ese({utils:r,value:ue,onChange:me,getClockNumberText:he.minutesClockNumberText,isDisabled:We=>ee||tt(We,"minutes"),selectedId:ht})}}case"seconds":{const ue=r.getSeconds(Se),me=(We,et)=>{Je(r.setSeconds(Se,We),et)};return{viewValue:ue,onChange:me,children:ese({utils:r,value:ue,onChange:me,getClockNumberText:he.secondsClockNumberText,isDisabled:We=>ee||tt(We,"seconds"),selectedId:ht})}}default:throw new Error("You must provide the type for ClockView")}},[Me,r,ye,a,he.hoursClockNumberText,he.minutesClockNumberText,he.secondsClockNumberText,Ye,Je,Se,tt,ht,ee]),lt=i,ge=Fgt(lt);return D.jsxs(Bgt,$({ref:n,className:gt(ge.root,W),ownerState:lt},ne,{children:[D.jsx(Igt,$({autoFocus:o??!!X,ampmInClock:s&&M.includes("hours"),value:ye,type:Me,ampm:a,minutesStep:C,isTimeDisabled:tt,meridiemMode:Ye,handleMeridiemChange:nt,selectedId:ht,disabled:ee,readOnly:J},_t)),A&&D.jsx(Ugt,{className:ge.arrowSwitcher,slots:j,slotProps:Ce,onGoToPrevious:()=>Ze(ot),isPreviousDisabled:!ot,previousLabel:he.openPreviousView,onGoToNext:()=>Ze(Qe),isNextDisabled:!Qe,nextLabel:he.openNextView,ownerState:lt})]}))});function Hgt(e){return Ut("MuiDigitalClock",e)}const Vgt=zt("MuiDigitalClock",["root","list","item"]),Wgt=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Qgt=e=>{const{classes:t}=e;return $t({root:["root"],list:["list"],item:["item"]},Hgt,t)},Ygt=Ne(x6,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:uve})),qgt=Ne(uE,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Ggt=Ne(cm,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity)}})),Zgt=P.forwardRef(function(t,n){var r,i,a;const s=Tr(),o=P.useRef(null),l=rr(n,o),c=Rt({props:t,name:"MuiDigitalClock"}),{ampm:d=s.is12HourCycleInCurrentLocale(),timeStep:h=30,autoFocus:p,components:b,componentsProps:v,slots:S,slotProps:w,value:T,defaultValue:x,referenceDate:k,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:I,minTime:_,disableFuture:A,disablePast:U,minutesStep:F=1,shouldDisableClock:M,shouldDisableTime:V,onChange:Q,view:X,openTo:Y,onViewChange:W,focusedView:ee,onFocusedViewChange:J,className:K,disabled:ne,readOnly:j,views:Ce=["hours"],skipDisabled:ye=!1,timezone:te}=c,ve=st(c,Wgt),{value:Se,handleValueChange:he,timezone:Pe}=NE({name:"DigitalClock",timezone:te,value:T,defaultValue:x,onChange:Q,valueManager:Ss}),Me=Es(),Ze=Xg(Pe),ot=P.useMemo(()=>$({},c,{alreadyRendered:!!o.current}),[c]),Qe=Qgt(ot),Je=(r=(i=S==null?void 0:S.digitalClockItem)!=null?i:b==null?void 0:b.DigitalClockItem)!=null?r:Ggt,Ye=gr({elementType:Je,externalSlotProps:(a=w==null?void 0:w.digitalClockItem)!=null?a:v==null?void 0:v.digitalClockItem,ownerState:{},className:Qe.item}),nt=tG({value:Se,referenceDate:k,utils:s,props:c,timezone:Pe}),tt=on(ue=>he(ue,"finish","hours")),{setValueAndGoToNextView:ht}=jC({view:X,views:Ce,openTo:Y,onViewChange:W,onChange:tt,focusedView:ee,onFocusedViewChange:J}),_t=on(ue=>{ht(ue,"finish")});P.useEffect(()=>{if(o.current===null)return;const ue=o.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ue)return;const me=ue.offsetTop;o.current.scrollTop=me-4});const lt=P.useCallback(ue=>{const me=UC(C,s),We=()=>!(_&&me(_,ue)||I&&me(ue,I)||A&&me(ue,Ze)||U&&me(Ze,ue)),et=()=>s.getMinutes(ue)%F!==0||M!=null&&M(s.toJsDate(ue).getTime(),"hours")?!1:V?!V(ue,"hours"):!0;return!We()||!et()},[C,s,_,I,A,Ze,U,F,M,V]),ge=P.useMemo(()=>{const ue=s.startOfDay(nt);return[ue,...Array.from({length:Math.ceil(24*60/h)-1},(me,We)=>s.addMinutes(ue,h*(We+1)))]},[nt,h,s]);return D.jsx(Ygt,$({ref:l,className:gt(Qe.root,K),ownerState:ot},ve,{children:D.jsx(qgt,{autoFocusItem:p||!!ee,role:"listbox","aria-label":Me.timePickerToolbarTitle,className:Qe.list,children:ge.map(ue=>{if(ye&<(ue))return null;const me=s.isEqual(ue,Se);return D.jsx(Je,$({onClick:()=>!j&&_t(ue),selected:me,disabled:ne||lt(ue),disableRipple:j,role:"option","aria-disabled":j,"aria-selected":me},Ye,{children:s.format(ue,d?"fullTime12h":"fullTime24h")}),s.toISO(ue))})})}))}),YO=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,ampmInClock:k,components:C,componentsProps:I,slots:_,slotProps:A,readOnly:U,disabled:F,sx:M,autoFocus:V,showViewSwitcher:Q,disableIgnoringDatePartForTimeValidation:X,timezone:Y})=>D.jsx(jgt,{view:e,onViewChange:t,focusedView:n&&YS(n)?n:null,onFocusedViewChange:r,views:i.filter(YS),value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,ampmInClock:k,components:C,componentsProps:I,slots:_,slotProps:A,readOnly:U,disabled:F,sx:M,autoFocus:V,showViewSwitcher:Q,disableIgnoringDatePartForTimeValidation:X,timezone:Y}),Dve=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,components:k,componentsProps:C,slots:I,slotProps:_,readOnly:A,disabled:U,sx:F,autoFocus:M,disableIgnoringDatePartForTimeValidation:V,timeSteps:Q,skipDisabled:X,timezone:Y})=>D.jsx(Zgt,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(YS),value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,components:k,componentsProps:C,slots:I,slotProps:_,readOnly:A,disabled:U,sx:F,autoFocus:M,disableIgnoringDatePartForTimeValidation:V,timeStep:Q==null?void 0:Q.minutes,skipDisabled:X,timezone:Y}),bB=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,components:k,componentsProps:C,slots:I,slotProps:_,readOnly:A,disabled:U,sx:F,autoFocus:M,disableIgnoringDatePartForTimeValidation:V,timeSteps:Q,skipDisabled:X,timezone:Y})=>D.jsx(lgt,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(YS),value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:b,maxTime:v,shouldDisableTime:S,shouldDisableClock:w,minutesStep:T,ampm:x,components:k,componentsProps:C,slots:I,slotProps:_,readOnly:A,disabled:U,sx:F,autoFocus:M,disableIgnoringDatePartForTimeValidation:V,timeSteps:Q,skipDisabled:X,timezone:Y}),X1=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minDate:b,minTime:v,maxDate:S,maxTime:w,shouldDisableDate:T,shouldDisableMonth:x,shouldDisableYear:k,shouldDisableTime:C,shouldDisableClock:I,reduceAnimations:_,minutesStep:A,ampm:U,onMonthChange:F,monthsPerRow:M,onYearChange:V,yearsPerRow:Q,defaultCalendarMonth:X,components:Y,componentsProps:W,slots:ee,slotProps:J,loading:K,renderLoading:ne,disableHighlightToday:j,readOnly:Ce,disabled:ye,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:ve,sx:Se,autoFocus:he,fixedWeekNumber:Pe,displayWeekNumber:Me,timezone:Ze,disableIgnoringDatePartForTimeValidation:ot,timeSteps:Qe,skipDisabled:Je,timeViewsCount:Ye,shouldRenderTimeInASingleColumn:nt})=>{var tt,ht;const _t=!!((tt=$g((ht=J==null?void 0:J.actionBar)!=null?ht:W==null?void 0:W.actionBar,{}))!=null&&(tt=tt.actions)!=null&&tt.length),lt={view:w0(e)?e:"hours",onViewChange:t,focusedView:r&&w0(r)?r:null,onFocusedViewChange:i,views:n.filter(w0),value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minTime:v,maxTime:w,shouldDisableTime:C,shouldDisableClock:I,minutesStep:A,ampm:U,components:Y,componentsProps:W,slots:ee,slotProps:J,readOnly:Ce,disabled:ye,autoFocus:he,disableIgnoringDatePartForTimeValidation:ot,timeSteps:Qe,skipDisabled:Je,timezone:Ze};return D.jsxs(P.Fragment,{children:[D.jsxs(ugt,{children:[D.jsx(wve,{view:WO(e)?e:"day",onViewChange:t,views:n.filter(WO),focusedView:r&&WO(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:c,classes:d,disableFuture:h,disablePast:p,minDate:b,maxDate:S,shouldDisableDate:T,shouldDisableMonth:x,shouldDisableYear:k,reduceAnimations:_,onMonthChange:F,monthsPerRow:M,onYearChange:V,yearsPerRow:Q,defaultCalendarMonth:X,components:Y,componentsProps:W,slots:ee,slotProps:J,loading:K,renderLoading:ne,disableHighlightToday:j,readOnly:Ce,disabled:ye,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:ve,sx:Se,autoFocus:he,fixedWeekNumber:Pe,displayWeekNumber:Me,timezone:Ze}),Ye>0&&D.jsxs(P.Fragment,{children:[D.jsx(Yb,{orientation:"vertical"}),nt?Dve($({},lt,{view:"hours",views:["hours"],focusedView:r&&w0(r)?"hours":null,sx:$({width:"auto",[`&.${Vgt.root}`]:{maxHeight:E6}},Array.isArray(Se)?Se:[Se])})):bB($({},lt,{view:w0(e)?e:"hours",views:n.filter(w0),focusedView:r&&w0(r)?r:null,sx:$({borderBottom:0,width:"auto",[`.${K0t.root}`]:{maxHeight:"100%"}},Array.isArray(Se)?Se:[Se])}))]})]}),_t&&D.jsx(Yb,{})]})},Xgt=["views","format"],Nve=(e,t)=>{let{views:n,format:r}=t,i=st(t,Xgt);if(r)return r;const a=[],s=[];if(n.forEach(c=>{YS(c)?s.push(c):a.push(c)}),s.length===0)return sk(e,$({views:a},i),!1);if(a.length===0)return UI(e,$({views:s},i));const o=UI(e,$({views:s},i));return`${sk(e,$({views:a},i),!1)} ${o}`},Kgt=(e,t,n)=>n?t.filter(r=>!w0(r)||r==="hours"):e?[...t,"meridiem"]:t,Jgt=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Pve({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,a=$({hours:1,minutes:5,seconds:5},n),s=Jgt(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:s,views:Kgt(t,r,s)}}const Mve=P.forwardRef(function(t,n){var r,i,a,s,o,l,c;const d=Es(),h=Tr(),p=_ve(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:b,thresholdToRenderTimeInASingleColumn:v,views:S,timeSteps:w}=Pve(p),T=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,x=T?{day:X1,month:X1,year:X1,hours:X1,minutes:X1,seconds:X1,meridiem:X1}:$({day:gd,month:gd,year:gd,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),k=(r=p.ampmInClock)!=null?r:!0,C=T?["accept"]:[],I=$({},p,{viewRenderers:x,format:Nve(h,p),views:S,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:k,timeSteps:w,thresholdToRenderTimeInASingleColumn:v,shouldRenderTimeInASingleColumn:b,slots:$({field:xve,openPickerIcon:ove},p.slots),slotProps:$({},p.slotProps,{field:A=>{var U;return $({},$g((U=p.slotProps)==null?void 0:U.field,A),PE(p),{ref:n})},toolbar:$({hidden:!0,ampmInClock:k,toolbarVariant:T?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:$({hidden:!0},(s=p.slotProps)==null?void 0:s.tabs),actionBar:$({actions:C},(o=p.slotProps)==null?void 0:o.actionBar)})}),{renderPicker:_}=Xq({props:I,valueManager:Ss,valueType:"date-time",getOpenDialogAriaText:(l=(c=I.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:d.openDatePickerDialogue,validator:T6});return _()});Mve.propTypes={ampm:G.bool,ampmInClock:G.bool,autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,dayOfWeekFormatter:G.func,defaultCalendarMonth:G.any,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableHighlightToday:G.bool,disableIgnoringDatePartForTimeValidation:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,displayWeekNumber:G.bool,fixedWeekNumber:G.number,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:rE,label:G.node,loading:G.bool,localeText:G.object,maxDate:G.any,maxDateTime:G.any,maxTime:G.any,minDate:G.any,minDateTime:G.any,minTime:G.any,minutesStep:G.number,monthsPerRow:G.oneOf([3,4]),name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onMonthChange:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,onYearChange:G.func,open:G.bool,openTo:G.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,renderLoading:G.func,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableClock:G.func,shouldDisableDate:G.func,shouldDisableMonth:G.func,shouldDisableTime:G.func,shouldDisableYear:G.func,showDaysOutsideCurrentMonth:G.bool,skipDisabled:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),thresholdToRenderTimeInASingleColumn:G.number,timeSteps:G.shape({hours:G.number,minutes:G.number,seconds:G.number}),timezone:G.string,value:G.any,view:G.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:G.shape({day:G.func,hours:G.func,meridiem:G.func,minutes:G.func,month:G.func,seconds:G.func,year:G.func}),views:G.arrayOf(G.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:G.oneOf([3,4])};const Lve=P.forwardRef(function(t,n){var r,i,a,s,o;const l=Es(),c=Tr(),d=_ve(t,"MuiMobileDateTimePicker"),h=$({day:gd,month:gd,year:gd,hours:YO,minutes:YO,seconds:YO},d.viewRenderers),p=(r=d.ampmInClock)!=null?r:!1,b=$({},d,{viewRenderers:h,format:Nve(c,d),ampmInClock:p,slots:$({field:xve},d.slots),slotProps:$({},d.slotProps,{field:S=>{var w;return $({},$g((w=d.slotProps)==null?void 0:w.field,S),PE(d),{ref:n})},toolbar:$({hidden:!1,ampmInClock:p},(i=d.slotProps)==null?void 0:i.toolbar),tabs:$({hidden:!1},(a=d.slotProps)==null?void 0:a.tabs)})}),{renderPicker:v}=Jq({props:b,valueManager:Ss,valueType:"date-time",getOpenDialogAriaText:(s=(o=b.localeText)==null?void 0:o.openDatePickerDialogue)!=null?s:l.openDatePickerDialogue,validator:T6});return v()});Lve.propTypes={ampm:G.bool,ampmInClock:G.bool,autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,dayOfWeekFormatter:G.func,defaultCalendarMonth:G.any,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableHighlightToday:G.bool,disableIgnoringDatePartForTimeValidation:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,displayWeekNumber:G.bool,fixedWeekNumber:G.number,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:rE,label:G.node,loading:G.bool,localeText:G.object,maxDate:G.any,maxDateTime:G.any,maxTime:G.any,minDate:G.any,minDateTime:G.any,minTime:G.any,minutesStep:G.number,monthsPerRow:G.oneOf([3,4]),name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onMonthChange:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,onYearChange:G.func,open:G.bool,openTo:G.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,renderLoading:G.func,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableClock:G.func,shouldDisableDate:G.func,shouldDisableMonth:G.func,shouldDisableTime:G.func,shouldDisableYear:G.func,showDaysOutsideCurrentMonth:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),timezone:G.string,value:G.any,view:G.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:G.shape({day:G.func,hours:G.func,minutes:G.func,month:G.func,seconds:G.func,year:G.func}),views:G.arrayOf(G.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:G.oneOf([3,4])};const e1t=["desktopModeMediaQuery"],t1t=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=Qq}=r,a=st(r,e1t);return lE(i,{defaultMatches:!0})?D.jsx(Mve,$({ref:n},a)):D.jsx(Lve,$({ref:n},a))}),n1t=e=>{var t,n,r,i;const a=Tr(),o=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return $({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:o})},r1t=({props:e,inputRef:t})=>{const n=n1t(e),{forwardedProps:r,internalProps:i}=Zq(n,"time");return Gq({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Ss,fieldValueManager:Vq,validator:HC,valueType:"time"})},i1t=["slots","slotProps","components","componentsProps","InputProps","inputProps"],a1t=["inputRef"],s1t=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],$ve=P.forwardRef(function(t,n){var r,i,a;const s=Rt({props:t,name:"MuiTimeField"}),{slots:o,slotProps:l,components:c,componentsProps:d,InputProps:h,inputProps:p}=s,b=st(s,i1t),v=s,S=(r=(i=o==null?void 0:o.textField)!=null?i:c==null?void 0:c.TextField)!=null?r:zg,w=gr({elementType:S,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:d==null?void 0:d.textField,externalForwardedProps:b,ownerState:v}),{inputRef:T}=w,x=st(w,a1t);x.inputProps=$({},p,x.inputProps),x.InputProps=$({},h,x.InputProps);const k=r1t({props:x,inputRef:T}),{ref:C,onPaste:I,onKeyDown:_,inputMode:A,readOnly:U,clearable:F,onClear:M}=k,V=st(k,s1t),{InputProps:Q,fieldProps:X}=Kq({onClear:M,clearable:F,fieldProps:V,InputProps:V.InputProps,slots:o,slotProps:l,components:c,componentsProps:d});return D.jsx(S,$({ref:n},X,{InputProps:$({},Q,{readOnly:U}),inputProps:$({},V.inputProps,{inputMode:A,onPaste:I,onKeyDown:_,ref:C})}))});function o1t(e){return Ut("MuiTimePickerToolbar",e)}const V2=zt("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),l1t=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],u1t=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return $t(i,o1t,r)},c1t=Ne(Wq,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d1t=Ne(Yq,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Fve=Ne("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${V2.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${V2.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Fve.propTypes={as:G.elementType,ownerState:G.object.isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object])};const Bve=Ne("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${V2.ampmLabel}`]:t.ampmLabel},{[`&.${V2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>$({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${V2.ampmLabel}`]:{fontSize:17}}));Bve.propTypes={as:G.elementType,ownerState:G.object.isRequired,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object])};function f1t(e){const t=Rt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:a,onChange:s,view:o,onViewChange:l,views:c,disabled:d,readOnly:h}=t,p=st(t,l1t),b=Tr(),v=Es(),S=ji(),w=!!(n&&!r&&c.includes("hours")),{meridiemMode:T,handleMeridiemChange:x}=w6(i,n,s),k=A=>n?b.format(A,"hours12h"):b.format(A,"hours24h"),C=t,I=u1t($({},C,{theme:S})),_=D.jsx(d1t,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:I.separator});return D.jsxs(c1t,$({landscapeDirection:"row",toolbarTitle:v.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:I.root},p,{children:[D.jsxs(Fve,{className:I.hourMinuteLabel,ownerState:C,children:[Xv(c,"hours")&&D.jsx(qu,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:o==="hours",value:i?k(i):"--"}),Xv(c,["hours","minutes"])&&_,Xv(c,"minutes")&&D.jsx(qu,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:o==="minutes",value:i?b.format(i,"minutes"):"--"}),Xv(c,["minutes","seconds"])&&_,Xv(c,"seconds")&&D.jsx(qu,{variant:"h3",onClick:()=>l("seconds"),selected:o==="seconds",value:i?b.format(i,"seconds"):"--"})]}),w&&D.jsxs(Bve,{className:I.ampmSelection,ownerState:C,children:[D.jsx(qu,{disableRipple:!0,variant:"subtitle2",selected:T==="am",typographyClassName:I.ampmLabel,value:pf(b,"am"),onClick:h?void 0:()=>x("am"),disabled:d}),D.jsx(qu,{disableRipple:!0,variant:"subtitle2",selected:T==="pm",typographyClassName:I.ampmLabel,value:pf(b,"pm"),onClick:h?void 0:()=>x("pm"),disabled:d})]})]}))}function Uve(e,t){var n,r,i,a,s;const o=Tr(),l=Rt({props:e,name:t}),c=(n=l.ampm)!=null?n:o.is12HourCycleInCurrentLocale(),d=P.useMemo(()=>{var b;return((b=l.localeText)==null?void 0:b.toolbarTitle)==null?l.localeText:$({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),h=(r=l.slots)!=null?r:zC(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return $({},l,{ampm:c,localeText:d},Uq({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(s=l.disablePast)!=null?s:!1,slots:$({toolbar:f1t},h),slotProps:$({},p,{toolbar:$({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const zve=P.forwardRef(function(t,n){var r,i,a,s,o,l;const c=Es(),d=Tr(),h=Uve(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:b,timeSteps:v}=Pve(h),S=p?Dve:bB,w=$({hours:S,minutes:S,seconds:S,meridiem:S},h.viewRenderers),T=(r=h.ampmInClock)!=null?r:!0,x=p?[]:["accept"],C=((i=w.hours)==null?void 0:i.name)===bB.name?b:b.filter(A=>A!=="meridiem"),I=$({},h,{ampmInClock:T,timeSteps:v,viewRenderers:w,format:UI(d,h),views:p?["hours"]:C,slots:$({field:$ve,openPickerIcon:Yht},h.slots),slotProps:$({},h.slotProps,{field:A=>{var U;return $({},$g((U=h.slotProps)==null?void 0:U.field,A),PE(h),{ref:n})},toolbar:$({hidden:!0,ampmInClock:T},(a=h.slotProps)==null?void 0:a.toolbar),actionBar:$({actions:x},(s=h.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:_}=Xq({props:I,valueManager:Ss,valueType:"time",getOpenDialogAriaText:(o=(l=I.localeText)==null?void 0:l.openTimePickerDialogue)!=null?o:c.openTimePickerDialogue,validator:HC});return _()});zve.propTypes={ampm:G.bool,ampmInClock:G.bool,autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableIgnoringDatePartForTimeValidation:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:rE,label:G.node,localeText:G.object,maxTime:G.any,minTime:G.any,minutesStep:G.number,name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,open:G.bool,openTo:G.oneOf(["hours","meridiem","minutes","seconds"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableClock:G.func,shouldDisableTime:G.func,skipDisabled:G.bool,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),thresholdToRenderTimeInASingleColumn:G.number,timeSteps:G.shape({hours:G.number,minutes:G.number,seconds:G.number}),timezone:G.string,value:G.any,view:G.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:G.shape({hours:G.func,meridiem:G.func,minutes:G.func,seconds:G.func}),views:G.arrayOf(G.oneOf(["hours","minutes","seconds"]).isRequired)};const jve=P.forwardRef(function(t,n){var r,i,a,s;const o=Es(),l=Tr(),c=Uve(t,"MuiMobileTimePicker"),d=$({hours:YO,minutes:YO,seconds:YO},c.viewRenderers),h=(r=c.ampmInClock)!=null?r:!1,p=$({},c,{ampmInClock:h,viewRenderers:d,format:UI(l,c),slots:$({field:$ve},c.slots),slotProps:$({},c.slotProps,{field:v=>{var S;return $({},$g((S=c.slotProps)==null?void 0:S.field,v),PE(c),{ref:n})},toolbar:$({hidden:!1,ampmInClock:h},(i=c.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:b}=Jq({props:p,valueManager:Ss,valueType:"time",getOpenDialogAriaText:(a=(s=p.localeText)==null?void 0:s.openTimePickerDialogue)!=null?a:o.openTimePickerDialogue,validator:HC});return b()});jve.propTypes={ampm:G.bool,ampmInClock:G.bool,autoFocus:G.bool,className:G.string,closeOnSelect:G.bool,components:G.object,componentsProps:G.object,defaultValue:G.any,disabled:G.bool,disableFuture:G.bool,disableIgnoringDatePartForTimeValidation:G.bool,disableOpenPicker:G.bool,disablePast:G.bool,format:G.string,formatDensity:G.oneOf(["dense","spacious"]),inputRef:rE,label:G.node,localeText:G.object,maxTime:G.any,minTime:G.any,minutesStep:G.number,name:G.string,onAccept:G.func,onChange:G.func,onClose:G.func,onError:G.func,onOpen:G.func,onSelectedSectionsChange:G.func,onViewChange:G.func,open:G.bool,openTo:G.oneOf(["hours","minutes","seconds"]),orientation:G.oneOf(["landscape","portrait"]),readOnly:G.bool,reduceAnimations:G.bool,referenceDate:G.any,selectedSections:G.oneOfType([G.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),G.number,G.shape({endIndex:G.number.isRequired,startIndex:G.number.isRequired})]),shouldDisableClock:G.func,shouldDisableTime:G.func,slotProps:G.object,slots:G.object,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),timezone:G.string,value:G.any,view:G.oneOf(["hours","minutes","seconds"]),viewRenderers:G.shape({hours:G.func,minutes:G.func,seconds:G.func}),views:G.arrayOf(G.oneOf(["hours","minutes","seconds"]).isRequired)};const h1t=["desktopModeMediaQuery"],p1t=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=Qq}=r,a=st(r,h1t);return lE(i,{defaultMatches:!0})?D.jsx(zve,$({ref:n},a)):D.jsx(jve,$({ref:n},a))});var nG={},m1t=ha;Object.defineProperty(nG,"__esModule",{value:!0});var Hve=nG.default=void 0,g1t=m1t(pa()),b1t=D;Hve=nG.default=(0,g1t.default)((0,b1t.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var rG={},y1t=ha;Object.defineProperty(rG,"__esModule",{value:!0});var iG=rG.default=void 0,v1t=y1t(pa()),O1t=D;iG=rG.default=(0,v1t.default)((0,O1t.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var aG={},S1t=ha;Object.defineProperty(aG,"__esModule",{value:!0});var Vve=aG.default=void 0,E1t=S1t(pa()),w1t=D;Vve=aG.default=(0,E1t.default)((0,w1t.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function yB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function D1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function N1t(e,t){return T1t(e)||_1t(e,t)||Wve(e,t)||A1t()}function Ng(e){return x1t(e)||C1t(e)||Wve(e)||R1t()}function P1t(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Wve(e,t){if(e){if(typeof e=="string")return yB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yB(e,t)}}var M1t=P.createContext({onError:function(e){return e==null?void 0:e.message}}),Oc=function(){var e;return(e=P.useContext(M1t))===null||e===void 0?void 0:e.onError};function hu(e){var t;return{value:typeof((t=e.transform)===null||t===void 0?void 0:t.input)=="function"?e.transform.input(e.value):e.value,onChange:function(){for(var n=arguments.length,r=new Array(n),i=0;i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),T=fu({name:o,control:l,disabled:b.disabled,rules:w}),x=T.field,k=T.fieldState,C=k.error,I=hu({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(F){return F||""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(F){var M=F.target.value;return a==="number"&&M?+M:M}}}),_=I.value,A=I.onChange,U=rr(x.ref,h);return D.jsx(d,yr(dn({},b),{name:x.name,value:_,onChange:function(F){A(F),typeof b.onChange=="function"&&b.onChange(F)},onBlur:x.onBlur,required:s,type:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:b.helperText,ref:t,inputRef:U}))});Qve.displayName="TextFieldElement";var k6=Qve;function VC(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=bo(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),D.jsx(Mye,yr(dn({},i),{children:D.jsx("form",yr(dn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):D.jsx(L1t,dn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function L1t(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=bo(e,["onSuccess","onError","FormProps","children"]),s=qye(dn({},a)),o=s.handleSubmit;return D.jsx(Mye,yr(dn({},s),{children:D.jsx("form",yr(dn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Yve={disableFuture:"Date must be in the past",maxDate:"Date is later than the maximum allowed date",disablePast:"Past date is not allowed",invalidDate:"Date is invalid",minDate:"Date is earlier than the minimum allowed date",shouldDisableDate:"Date is not allowed",shouldDisableMonth:"Month is not allowed",shouldDisableYear:"Year is not allowed"},$1t=P.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,a=e.validation,s=a===void 0?{}:a,o=e.inputProps,l=e.control,c=e.textReadOnly,d=e.slotProps,h=e.overwriteErrorMessages,p=e.inputRef,b=e.transform,v=bo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),S=$f(),w=Oc(),T=n||w,x=dn({},Yve,h),k=yr(dn({},s,i&&!s.required&&{required:"This field is required"}),{validate:dn({internal:function(X){var Y,W,ee=X==null||!S.utils.isValid(X)?null:S.utils.getTimezone(X),J=vy({props:{shouldDisableDate:v.shouldDisableDate,shouldDisableMonth:v.shouldDisableMonth,shouldDisableYear:v.shouldDisableYear,disablePast:!!v.disablePast,disableFuture:!!v.disableFuture,minDate:v.minDate,maxDate:v.maxDate,timezone:(W=(Y=v.timezone)!==null&&Y!==void 0?Y:ee)!==null&&W!==void 0?W:"default"},value:X,adapter:S});return J==null||x[J]}},s.validate)}),C=fu({name:r,control:l,rules:k,disabled:v.disabled,defaultValue:null}),I=C.field,_=C.fieldState,A=_.error,U=hu({value:I.value,onChange:I.onChange,transform:{input:typeof(b==null?void 0:b.input)=="function"?b.input:function(X){return X&&X==="string"?new Date(X):X},output:typeof(b==null?void 0:b.output)=="function"?b.output:function(X){return X}}}),F=U.value,M=U.onChange,V=rr(I.ref,p),Q=A?typeof T=="function"?T(A):A.message:null;return D.jsx(I0t,yr(dn({},v,I),{value:F,ref:t,inputRef:V,onClose:function(){for(var X=arguments.length,Y=new Array(X),W=0;W"u"?"undefined":P1t(X))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),D.jsxs(zg,yr(dn({},k),{name:r,value:X,onBlur:F.onBlur,ref:t,onChange:function(ee){if(Y(ee),typeof k.onChange=="function"){var J=ee.target.value;p==="number"&&J&&(J=Number(J)),b&&(J=d.find(function(K){return K[s]===J})),k.onChange(J)}},select:!0,required:i,error:!!V,helperText:V?typeof I=="function"?I(V):V.message:k.helperText,inputRef:W,children:[_&&D.jsx("option",{}),d.map(function(ee){var J,K={key:"".concat(r,"_").concat(ee[s]),value:(J=ee==null?void 0:ee[s])!==null&&J!==void 0?J:ee,disabled:eu(ee,"disabled")?!!ee.disabled:!1,children:ee[l]};return _?D.jsx("option",dn({},K)):D.jsx(cm,dn({},K))})]}))});qve.displayName="SelectElement";var vB=qve,V1t=P.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,c=l===void 0?"label":l,d=e.valueKey,h=d===void 0?"id":d,p=e.returnObject,b=e.disabled,v=e.row,S=e.control,w=e.checkboxColor,T=e.rules,x=e.labelProps,k=e.transform,C=e.defaultValue,I=C===void 0?[]:C,_=bo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),A=ji(),U=Oc(),F=s||U,M=fu({name:a,rules:o?{required:"This field is required"}:T,disabled:b,control:S,defaultValue:I}),V=M.field,Q=M.fieldState,X=Q.error,Y=Q.invalid,W=hu({value:V.value,onChange:V.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(j){return Array.isArray(j)?j:[]},output:k==null?void 0:k.output}}),ee=W.value,J=W.onChange,K=function(j){var Ce=eu(j,h)?j[h]:j,ye=ee.findIndex(function(ve){var Se=eu(ve,h)?ve[h]:ve;return Ce===Se}),te=(ye===-1?Ng(ee).concat([j]):ee.filter(function(ve,Se){return ye!==Se})).map(function(ve){return p||!eu(ve,h)?ve:ve[h]});J(te),typeof _.onChange=="function"&&_.onChange(te)},ne=X?typeof F=="function"?F(X):X.message:n;return D.jsxs(Af,{error:Y,required:o,ref:t,children:[i?D.jsx(lN,{children:i}):null,D.jsx(_z,{row:v,children:r.map(function(j){var Ce=eu(j,h)?j[h]:j,ye=eu(j,c)?j[c]:j,te=ee.some(function(ve){return(eu(ve,h)?ve[h]:ve)===Ce});return P.createElement(Ox,yr(dn({},x),{control:D.jsx(sN,{sx:{color:X?A.palette.error.main:void 0},color:w,value:Ce,checked:te,disabled:b,onChange:function(){return K(j)}}),label:"".concat(ye),key:"".concat(Ce)}))})}),ne&&D.jsx(oE,{children:ne})]})});V1t.displayName="CheckboxButtonGroup";var W1t=48,Q1t=8,Y1t=P.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,c=l===void 0?"":l,d=e.itemKey,h=d===void 0?"id":d,p=e.itemValue,b=p===void 0?"":p,v=e.itemLabel,S=v===void 0?"label":v,w=e.required,T=w===void 0?!1:w,x=e.validation,k=x===void 0?{}:x,C=e.parseError,I=e.name,_=e.menuMaxHeight,A=_===void 0?W1t*4.5+Q1t:_,U=e.menuMaxWidth,F=U===void 0?250:U,M=e.minWidth,V=M===void 0?120:M,Q=e.helperText,X=e.showChips,Y=e.preserveOrder,W=e.control,ee=e.showCheckbox,J=e.formControlProps,K=e.inputRef,ne=e.transform,j=bo(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),Ce=Oc(),ye=C||Ce,te=function(tt){var ht,_t;return(_t=(ht=o.find(function(lt){var ge;return((ge=lt[b||h])!==null&&ge!==void 0?ge:lt)===tt}))===null||ht===void 0?void 0:ht[S])!==null&&_t!==void 0?_t:tt},ve=dn({},k,T&&!k.required&&{required:"This field is required"}),Se=fu({name:I,rules:ve,disabled:j.disabled,control:W}),he=Se.field,Pe=Se.fieldState,Me=Pe.error,Ze=hu({value:he.value,onChange:he.onChange,transform:{input:typeof(ne==null?void 0:ne.input)=="function"?ne.input:function(tt){return Array.isArray(tt)?tt:[]},output:ne==null?void 0:ne.output}}),ot=Ze.value,Qe=Ze.onChange,Je=rr(he.ref,K),Ye=Me?typeof ye=="function"?ye(Me):Me.message:Q,nt;return D.jsxs(Af,yr(dn({},J),{style:dn({minWidth:V},J==null?void 0:J.style),variant:j.variant,fullWidth:j.fullWidth,error:!!Me,size:j.size,ref:t,children:[c&&D.jsx(Xce,{size:j.size==="small"?"small":void 0,error:!!Me,htmlFor:j.id||"select-multi-select-".concat(I),required:T,children:c}),D.jsx(ude,yr(dn({},j),{id:j.id||"select-multi-select-".concat(I),multiple:!0,label:c||void 0,error:!!Me,value:ot,required:T,onChange:Qe,onBlur:he.onBlur,MenuProps:yr(dn({},j.MenuProps),{slotProps:yr(dn({},(n=j.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:dn({},(nt=(i=j.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&nt!==void 0?nt:{style:dn({maxHeight:A,width:F},eu((s=j.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof j.MenuProps.slotProps.paper.style=="object"&&dn({},j.MenuProps.slotProps.paper.style))})})}),renderValue:typeof j.renderValue=="function"?j.renderValue:X?function(tt){return D.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(Y?o.filter(function(ht){return tt.includes(ht)}):tt||[]).map(function(ht){return D.jsx(wz,{label:te(ht),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Qe((Array.isArray(ot)?ot:[]).filter(function(_t){return _t!==ht}))},deleteIcon:D.jsx(Hve,{onMouseDown:function(_t){_t.stopPropagation()}})},ht)})})}:function(tt){return Array.isArray(tt)?tt.map(te).join(", "):""},inputRef:Je,children:o.map(function(tt){var ht=tt[b||h]||tt,_t=Array.isArray(ot)?ot.some(function(lt){return lt===ht}):!1;return D.jsxs(cm,{value:ht,sx:{fontWeight:function(lt){return _t?lt.typography.fontWeightBold:lt.typography.fontWeightRegular}},children:[ee&&D.jsx(sN,{checked:_t}),D.jsx(Og,{primary:tt[S]||tt})]},ht)})})),Ye&&D.jsx(oE,{error:!!Me,children:Ye})]}))});Y1t.displayName="MultiSelectElement";var Gve=P.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(c){return c?D.jsx(iG,{}):D.jsx(Vve,{})}:r,a=bo(e,["iconColor","renderIcon"]),s=N1t(P.useState(!0),2),o=s[0],l=s[1];return D.jsx(k6,yr(dn({},a),{ref:t,InputProps:{endAdornment:D.jsx(Ex,{position:"end",children:D.jsx($a,{onMouseDown:function(c){return c.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});Gve.displayName="PasswordElement";var q1t=Gve,G1t=P.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,c=e.valueKey,d=c===void 0?"id":c,h=e.required,p=e.emptyOptionLabel,b=e.returnObject,v=e.row,S=e.control,w=e.type,T=e.labelProps,x=e.disabled,k=e.formLabelProps,C=e.transform,I=bo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),_=ji(),A=Oc(),U=s||A,F=fu({name:a,rules:h?{required:"This field is required"}:void 0,disabled:x,control:S}),M=F.field,V=F.fieldState,Q=V.error,X=hu({value:M.value,onChange:M.onChange,transform:{input:typeof(C==null?void 0:C.input)=="function"?C.input:function(K){return K||""},output:typeof(C==null?void 0:C.output)=="function"?C==null?void 0:C.output:function(K,ne){return ne}}}),Y=X.value,W=X.onChange,ee=Q?typeof U=="function"?U(Q):Q.message:n,J=function(K,ne){var j=b?r.find(function(Ce){return Ce[d]===ne}):ne;W(K,j),typeof I.onChange=="function"&&I.onChange(j)};return D.jsxs(Af,{error:!!Q,ref:t,children:[i&&D.jsx(lN,yr(dn({},k),{required:h,error:!!Q,children:i})),D.jsxs(k7e,{onChange:J,name:a,row:v,value:Y,children:[p&&D.jsx(Ox,yr(dn({},T),{control:D.jsx(hJ,{sx:{color:Q?_.palette.error.main:void 0},checked:!Y}),label:p,value:""})),r.map(function(K){var ne=K[d];ne||console.error("CheckboxButtonGroup: valueKey ".concat(d," does not exist on option"),K);var j=b?Y==null?void 0:Y[d]:Y;w==="number"&&(j=Number(j));var Ce=j===ne;return P.createElement(Ox,yr(dn({},T),{control:D.jsx(hJ,{sx:{color:Q?_.palette.error.main:void 0},disabled:x,checked:Ce}),value:ne,label:K[l],key:ne}))})]}),ee&&D.jsx(oE,{children:ee})]})});G1t.displayName="RadioButtonGroup";var Z1t=P.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=bo(e,["name","control","switchProps","transform"]),o=fu({name:n,control:r,disabled:s.disabled}),l=o.field,c=hu({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(b,v){return v}}}),d=c.value,h=c.onChange,p=rr(l.ref,i==null?void 0:i.ref);return D.jsx(Ox,dn({ref:t,control:D.jsx(E8e,yr(dn({},i),{name:l.name,value:d,onChange:function(b,v){h(b,v),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(b,v)},onBlur:function(b){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(b))},ref:p,checked:!!d}))},s))});Z1t.displayName="SwitchElement";var X1t=P.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=bo(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=Uye({name:n,control:i});return D.jsx(q1t,yr(dn({control:i},a),{ref:t,validation:{validate:function(o){return o===s||(r??"Password should match")}}}))});X1t.displayName="PasswordRepeatElement";var K1t=P.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,c=e.rules,d=e.loadingIndicator,h=e.required,p=e.multiple,b=e.label,v=e.parseError,S=e.transform,w=e.matchId,T=Oc(),x=v||T,k=dn({},c,h&&{required:(c==null?void 0:c.required)||"This field is required"}),C=fu({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),I=C.field,_=C.fieldState,A=_.error,U=function(J){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(J):eu(J,"label")?"".concat(J==null?void 0:J.label):"".concat(J)},F=function(J,K){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(J,K);var ne=eu(J,"id")?J.id:J,j=eu(K,"id")?K.id:K;return ne===j},M=function(J){return s.find(function(K){return w&&eu(K,"id")?K.id===J:F(K,J)})},V=hu({value:I.value,onChange:I.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(J){var K;return p?(Array.isArray(J)?J:[]).map(M):(K=M(J))!==null&&K!==void 0?K:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(J,K){if(p){var ne=Array.isArray(K)?K:[];return w?ne.map(function(j){return eu(j,"id")?j.id:j}):ne}return w&&eu(K,"id")?K.id:K}}}),Q=V.value,X=V.onChange,Y=rr(I.ref,n==null?void 0:n.inputRef),W=d||D.jsx(xm,{color:"inherit",size:20}),ee;return D.jsx(BRe,yr(dn({},r),{value:Q,loading:o,multiple:p,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:F,getOptionLabel:U,onChange:function(J,K,ne,j){X(J,K,ne,j),r!=null&&r.onChange&&r.onChange(J,K,ne,j)},ref:t,renderOption:(ee=r==null?void 0:r.renderOption)!==null&&ee!==void 0?ee:l?function(J,K,ne){var j=ne.selected;return D.jsxs("li",yr(dn({},J),{children:[D.jsx(sN,{sx:{marginRight:1},checked:j}),U(K)]}))}:void 0,onBlur:function(J){I.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(J)},renderInput:function(J){return D.jsx(zg,yr(dn({name:i,required:c!=null&&c.required?!0:h,label:b},n,J),{error:!!A,InputLabelProps:dn({},J.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:dn(yr(dn({},J.InputProps),{endAdornment:D.jsxs(D.Fragment,{children:[o?W:null,J.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:dn({},J.inputProps,n==null?void 0:n.inputProps),helperText:A?typeof x=="function"?x(A):A.message:n==null?void 0:n.helperText,inputRef:Y}))}}))});K1t.displayName="AutocompleteElement";var J1t=P.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,c=e.formControlProps,d=e.transform,h=bo(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Oc(),b=o||p,v=dn({},s,l&&!s.required&&{required:"This field is required"}),S=fu({name:n,control:r,disabled:h.disabled,rules:v}),w=S.field,T=S.fieldState,x=T.error,k=T.invalid,C=hu({value:w.value,onChange:w.onChange,transform:d}),I=C.value,_=C.onChange,A=x?typeof b=="function"?b(x):x.message:null;return D.jsxs(Af,yr(dn({error:k,required:l,fullWidth:!0},c),{ref:t,children:[i&&D.jsx(lN,{component:"legend",error:k,children:i}),D.jsx(r8e,yr(dn({},h),{value:I,onChange:_,valueLabelDisplay:h.valueLabelDisplay||"auto"})),A&&D.jsx(oE,{error:k,children:A})]}))});J1t.displayName="SliderElement";var ebt=P.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,c=e.resizeStyle,d=e.inputRef,h=e.inputProps,p=e.transform,b=bo(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),v=Oc(),S=i||v,w=dn({},r,a&&!r.required&&{required:"This field is required"}),T=fu({name:s,control:o,rules:w,disabled:b.disabled}),x=T.field,k=T.fieldState,C=k.error,I=hu({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(F){return F??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(F){return F.target.value}}}),_=I.value,A=I.onChange,U=rr(x.ref,d);return D.jsx(zg,yr(dn({},b),{name:s,value:_,onChange:function(F){A(F),typeof b.onChange=="function"&&b.onChange(F)},onBlur:x.onBlur,required:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:b.helperText,inputRef:U,multiline:!0,InputProps:{inputComponent:Nce,inputProps:dn({minRows:l,style:{resize:c||"both"}},h||{})},ref:t}))});ebt.displayName="TextareaAutosizeElement";var sG={},tbt=ha;Object.defineProperty(sG,"__esModule",{value:!0});var Zve=sG.default=void 0,nbt=tbt(pa()),rbt=D;Zve=sG.default=(0,nbt.default)((0,rbt.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const ibt=e=>{var p;const t=Ki($C),n=Ki(ij),[r,i]=P.useState(null),[a,s]=P.useState(null),[o,l]=P.useState(!1),[c,d]=P.useState(!1),h=P.useCallback(async b=>{var x,k;l(!0),d(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:b})})).body)==null?void 0:k.getReader();let w=!0,T="";for(;S;){const{done:C,value:I}=await S.read();if(l(!1),C)break;let _=new TextDecoder().decode(I);if(w){const A=_.split(` `);s(A[0]),w=!1,_=A.slice(1).join(` -`)}T+=_,i(T)}d(!0)},[t.accessToken,(p=n.data)==null?void 0:p.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:c,mutateAsync:h}},l1t=e=>{var d;const t=Sa(IC),n=Sa(tj),[r,i]=M.useState(null),[a,s]=M.useState(!1),[o,l]=M.useState(!1),c=M.useCallback(async h=>{var S,w;if(!e)return;s(!0),l(!1),i(null);const b=(w=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:h})})).body)==null?void 0:w.getReader();let v="";for(;b;){const{done:T,value:x}=await b.read();if(s(!1),T)break;const k=new TextDecoder().decode(x);v+=k,i(v)}l(!0)},[t.accessToken,(d=n.data)==null?void 0:d.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:c}},vy={};vy.write=async e=>{await navigator.clipboard.writeText(e)};vy.read=async()=>navigator.clipboard.readText();vy.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};vy.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function Mve(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[i]=e[i]);return n}function Hae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Lve=gn.createContext(),d1t={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Ip={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Eb={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:xce,transitionDuration:{enter:225,exit:195}},VT=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},f1t=function(t){return""+VT(t.vertical)+VT(t.horizontal)},h1t=function(t){return Object.keys(t).filter(function(n){return!d1t.container[n]}).reduce(function(n,r){var i;return Qi({},n,(i={},i[r]=t[r],i))},{})},N0={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},k5={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+VT(n)+VT(r)},toVariant:function(t){return"variant"+VT(t)}},v3=function(t){return!!t||t===0},Vae=function(t){return typeof t=="number"||t===null},p1t=function(t,n,r){return function(i){return i==="autoHideDuration"?Vae(t.autoHideDuration)?t.autoHideDuration:Vae(n.autoHideDuration)?n.autoHideDuration:Eb.autoHideDuration:t[i]||n[i]||r[i]}};function SL(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Qi({},n,{},t,{},e)}var m1t="SnackbarContent",$ve={root:m1t+"-root"},g1t=Le("div")(function(e){var t,n,r=e.theme;return n={},n["&."+$ve.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),b1t=M.forwardRef(function(e,t){var n=e.className,r=pg(e,["className"]);return gn.createElement(g1t,Object.assign({ref:t,className:lk($ve.root,n)},r))}),Wae={right:"left",left:"right",bottom:"up",top:"down"},y1t=function(t){return t.horizontal!=="center"?Wae[t.horizontal]:Wae[t.vertical]},v1t=function(t){return gn.createElement(vg,Object.assign({},t),gn.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 - 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},O1t=function(t){return gn.createElement(vg,Object.assign({},t),gn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},S1t=function(t){return gn.createElement(vg,Object.assign({},t),gn.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, +`)}T+=_,i(T)}d(!0)},[t.accessToken,(p=n.data)==null?void 0:p.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:c,mutateAsync:h}},abt=e=>{var d;const t=Ki($C),n=Ki(ij),[r,i]=P.useState(null),[a,s]=P.useState(!1),[o,l]=P.useState(!1),c=P.useCallback(async h=>{var S,w;if(!e)return;s(!0),l(!1),i(null);const b=(w=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:h})})).body)==null?void 0:w.getReader();let v="";for(;b;){const{done:T,value:x}=await b.read();if(s(!1),T)break;const k=new TextDecoder().decode(x);v+=k,i(v)}l(!0)},[t.accessToken,(d=n.data)==null?void 0:d.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:c}},Oy={};Oy.write=async e=>{await navigator.clipboard.writeText(e)};Oy.read=async()=>navigator.clipboard.readText();Oy.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};Oy.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function Xve(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[i]=e[i]);return n}function nse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Kve=gn.createContext(),lbt={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Dp={view:{default:20,dense:4},snackbar:{default:6,dense:2}},wb={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:zce,transitionDuration:{enter:225,exit:195}},W2=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},ubt=function(t){return""+W2(t.vertical)+W2(t.horizontal)},cbt=function(t){return Object.keys(t).filter(function(n){return!lbt.container[n]}).reduce(function(n,r){var i;return Yi({},n,(i={},i[r]=t[r],i))},{})},N0={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},D5={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+W2(n)+W2(r)},toVariant:function(t){return"variant"+W2(t)}},x3=function(t){return!!t||t===0},rse=function(t){return typeof t=="number"||t===null},dbt=function(t,n,r){return function(i){return i==="autoHideDuration"?rse(t.autoHideDuration)?t.autoHideDuration:rse(n.autoHideDuration)?n.autoHideDuration:wb.autoHideDuration:t[i]||n[i]||r[i]}};function SL(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Yi({},n,{},t,{},e)}var fbt="SnackbarContent",Jve={root:fbt+"-root"},hbt=Ne("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Jve.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),pbt=P.forwardRef(function(e,t){var n=e.className,r=hg(e,["className"]);return gn.createElement(hbt,Object.assign({ref:t,className:ck(Jve.root,n)},r))}),ise={right:"left",left:"right",bottom:"up",top:"down"},mbt=function(t){return t.horizontal!=="center"?ise[t.horizontal]:ise[t.vertical]},gbt=function(t){return gn.createElement(yg,Object.assign({},t),gn.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 + 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},bbt=function(t){return gn.createElement(yg,Object.assign({},t),gn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},ybt=function(t){return gn.createElement(yg,Object.assign({},t),gn.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, - 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},E1t=function(t){return gn.createElement(vg,Object.assign({},t),gn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, - 0 22,12A10,10 0 0,0 12,2Z`}))},O3={fontSize:20,marginInlineEnd:8},w1t={default:void 0,success:gn.createElement(v1t,{style:O3}),warning:gn.createElement(O1t,{style:O3}),error:gn.createElement(S1t,{style:O3}),info:gn.createElement(E1t,{style:O3})};function WT(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},wL=16,X1="SnackbarContainer",rf={root:X1+"-root",rootDense:X1+"-rootDense",top:X1+"-top",bottom:X1+"-bottom",left:X1+"-left",right:X1+"-right",center:X1+"-center"},_1t=Le("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+rf.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[EL.container]={pointerEvents:"all"},t[EL.wrapper]={padding:Ip.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Ip.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+wL*2+"px)"},t),s["&."+rf.rootDense]=(n={},n[EL.wrapper]={padding:Ip.snackbar.dense+"px 0px"},n),s["&."+rf.top]={top:Ip.view.default-Ip.snackbar.default,flexDirection:"column"},s["&."+rf.bottom]={bottom:Ip.view.default-Ip.snackbar.default,flexDirection:"column-reverse"},s["&."+rf.left]=(r={left:Ip.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:wL+"px"},r),s["&."+rf.right]=(i={right:Ip.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:wL+"px"},i),s["&."+rf.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),A1t=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=pg(t,["className","anchorOrigin","dense"]),s=lk(rf[r.vertical],rf[r.horizontal],rf.root,n,i&&rf.rootDense);return gn.createElement(_1t,Object.assign({className:s},a))},R1t=gn.memo(A1t),I1t=function(e){c1t(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,c=o.preventDuplicate,d=pg(o,["key","preventDuplicate"]),h=v3(l),p=h?l:new Date().getTime()+Math.random(),b=p1t(d,i.props,Eb),v=Qi({key:p},d,{message:a,open:!0,entered:!1,requestClose:!1,variant:b("variant"),anchorOrigin:b("anchorOrigin"),autoHideDuration:b("autoHideDuration")});return d.persist&&(v.autoHideDuration=void 0),i.setState(function(S){if(c===void 0&&i.props.preventDuplicate||c){var w=function(C){return h?C.key===l:C.message===a},T=S.queue.findIndex(w)>-1,x=S.snacks.findIndex(w)>-1;if(T||x)return S}return i.handleDisplaySnack(Qi({},S,{queue:[].concat(S.queue,[v])}))}),p},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Qi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(d){return!d.open||d.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(d,h){return d+(h.open&&h.persist?1:0)},0);l===i.maxSnack&&(o=!0);var c=a.snacks.map(function(d){return!s&&(!d.persist||o)?(s=!0,d.entered?(d.onClose&&d.onClose(null,N0.MAXSNACK,d.key),i.props.onClose&&i.props.onClose(null,N0.MAXSNACK,d.key),Qi({},d,{open:!1})):Qi({},d,{requestClose:!0})):Qi({},d)});return Qi({},a,{snacks:c})},i.handleEnteredSnack=function(a,s,o){if(!v3(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var c=l.snacks;return{snacks:c.map(function(d){return d.key===o?Qi({},d,{entered:!0}):Qi({},d)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==N0.CLICKAWAY){var l=o===void 0;i.setState(function(c){var d=c.snacks,h=c.queue;return{snacks:d.map(function(p){return!l&&p.key!==o?Qi({},p):p.entered?Qi({},p,{open:!1}):Qi({},p,{requestClose:!0})}),queue:h.filter(function(p){return p.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});v3(a)&&s&&s.onClose&&s.onClose(null,N0.INSTRUCTED,a),i.handleCloseSnack(null,N0.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!v3(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(c){var d=i.processQueue(Qi({},c,{snacks:c.snacks.filter(function(h){return h.key!==l})}));return d.queue.length===0?d:i.handleDismissOldest(d)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(Hae(i)),closeSnackbar:i.closeSnackbar.bind(Hae(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,c=l===void 0?Eb.dense:l,d=s.hideIconVariant,h=d===void 0?Eb.hideIconVariant:d,p=s.domRoot,b=s.children,v=s.classes,S=v===void 0?{}:v,w=pg(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),T=this.state.snacks.reduce(function(k,C){var I,_=f1t(C.anchorOrigin),A=k[_]||[];return Qi({},k,(I={},I[_]=[].concat(A,[C]),I))},{}),x=Object.keys(T).map(function(k){var C=T[k];return gn.createElement(R1t,{key:k,dense:c,anchorOrigin:C[0].anchorOrigin,className:lk(S.containerRoot,S[k5.toContainerAnchorOrigin(k)])},C.map(function(I){return gn.createElement(C1t,Object.assign({},w,{key:I.key,snack:I,dense:c,iconVariant:o,hideIconVariant:h,classes:h1t(S),onClose:i.handleCloseSnack,onExited:WT([i.handleExitedSnack,i.props.onExited]),onEntered:WT([i.handleEnteredSnack,i.props.onEntered])}))}))});return gn.createElement(Lve.Provider,{value:a},b,p?sy.createPortal(x,p):x)},u1t(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Eb.maxSnack}}]),t}(M.Component),C6=function(){return M.useContext(Lve)};function D1t(e){const{title:t,feature:n,onClose:r}=e,i=Ki(),a=MN(),s=Sa(dE),{data:o,memoryKey:l,isLoading:c,isComplete:d,mutateAsync:h}=o1t(n),{data:p,isLoading:b,isComplete:v,mutateAsync:S}=l1t(l),[w,T]=M.useState(""),x=document.getElementById(Qj),k=M.useMemo(()=>c||b,[c,b]),C=M.useMemo(()=>d||v,[d,v]),I=M.useMemo(()=>p||o,[o,p]),{enqueueSnackbar:_}=C6(),A=M.useRef(null),U=Dye(),{reset:F,formState:P}=U;M.useEffect(()=>{P.isSubmitSuccessful&&F({content:""})},[P.isSubmitSuccessful,F]),M.useEffect(()=>{T((x==null?void 0:x.getAttribute("content"))??"")},[x]),M.useEffect(()=>{w&&h(w)},[w,h]),M.useEffect(()=>{I&&A.current&&A.current.scrollTo({behavior:"smooth",top:A.current.scrollHeight})},[I]);const V=async()=>{I&&(await vy.write(I),_("URL Copied!",{variant:"success"}))},Q=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},X=W=>{S(W.content)},Y=(W=!1)=>{var ye,te;if(!s.cmView)return;const ee=s.cmView.state.selection.main;let J=Math.min(ee.to,ee.from);const K=Math.max(ee.to,ee.from);let ne=I;W||(J=K,ne=` -${ne}`);const j=W?J:J+1,Ce=J+ne.length;(ye=s.cmView)==null||ye.dispatch({changes:{from:J,to:K,insert:ne},selection:{anchor:j,head:Ce}}),(te=s.doc)==null||te.update((ve,Se)=>{ve.content.edit(J,K,ne),Se.set({selection:ve.content.indexRangeToPosRange([j,Ce])})}),r()};return D.jsxs(kr,{gap:4,children:[D.jsx(bs,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:D.jsx(Xr,{children:t})}),k&&D.jsx(Tm,{sx:{marginX:"auto"}}),D.jsx(bs,{ref:A,sx:{height:350,overflow:"auto"},children:!k&&D.jsx(G1e,{source:GF(I||""),wrapperElement:{"data-color-mode":a}})}),D.jsxs(kr,{gap:2,children:[D.jsx(um,{in:C,children:D.jsxs(kr,{direction:"row",justifyContent:"flex-end",gap:1,children:[D.jsx(lo,{variant:"outlined",onClick:Q,children:D.jsx(pye,{fontSize:"small"})}),D.jsx(lo,{variant:"outlined",onClick:V,children:D.jsx(y6,{fontSize:"small"})}),D.jsx(lo,{variant:"outlined",onClick:()=>Y(),children:"Insert below"}),D.jsx(lo,{variant:"contained",onClick:()=>Y(!0),children:"Replace"})]})}),D.jsx(_f,{children:D.jsx(FC,{defaultValues:{content:""},formContext:U,onSuccess:X,children:D.jsx(kr,{gap:4,alignItems:"flex-end",children:D.jsx(k6,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!C,size:"small",InputProps:{startAdornment:D.jsx(Sx,{position:"start",children:D.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:D.jsx(um,{in:C,children:D.jsx(Sx,{position:"end",children:D.jsx(ys,{type:"submit",edge:"end",children:D.jsx(Pve,{})})})})}})})})})]})]})}function N1t(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return D.jsx(zg,{disableAutoFocus:!0,...n,children:D.jsx(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:D.jsxs(kr,{gap:4,children:[D.jsxs(kr,{alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),D.jsxs(Xr,{variant:"h6",align:"center",children:["Do you want to discard",D.jsx("br",{}),"the Yorkie response?"]})]}),D.jsxs(kr,{direction:"row",gap:1,justifyContent:"center",children:[D.jsx(lo,{variant:"outlined",onClick:i,children:"Discard"}),D.jsx(lo,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function P1t(e){const{onClose:t}=e,n=Ki(),r=Sa(dE),i=M.useRef(null),[a,s]=M.useState(null),[o,l]=M.useState(null),[c,d]=M.useState(),[h,p]=M.useState(!1),b=M.useRef(null),v=M.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);M.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(T,x)=>{l(T),s(x)},w=()=>{p(T=>!T)};return D.jsxs(bs,{sx:{position:"absolute",mt:1},children:[D.jsx("span",{ref:i,style:{marginTop:4}}),D.jsx(lN,{open:!!c,anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:w,children:D.jsx(xz,{ref:b,sx:{boxShadow:n.shadows[11],borderRadius:2,width:v,padding:2},children:o&&a?D.jsx(D1t,{title:a,feature:o,onClose:t}):D.jsx(Gdt,{onSelectFeature:S})})}),D.jsx(N1t,{open:h,onCloseIntelligence:t,onClose:w})]})}function M1t(){const e=Ki(),[t,n]=M.useState(!1),[r,i]=M.useState(null),[a,s]=M.useState(null),[o,l]=M.useState(null);kq(()=>{l(r)},500,[r]),M.useEffect(()=>{document.addEventListener("selectionchange",function(){const d=document.getElementById(M0e),h=document.getElementById(Qj);i(d),s(h),d||(n(!1),l(null))})},[]);const c=()=>{n(d=>!d)};if(!(!o||!a))return D.jsxs(D.Fragment,{children:[D.jsx(iE,{open:!!o,anchorEl:o,placement:"top-start",transition:!0,children:({TransitionProps:d})=>D.jsx(um,{...d,children:D.jsx(xz,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:D.jsx(wce,{sx:{paddingX:1.3,paddingY:.3},onClick:c,children:D.jsxs(kr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",height:20}),D.jsx(Xr,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&sy.createPortal(D.jsx(P1t,{onClose:c}),a)]})}function L1t(){var l;const e=Af(),t=lE(),n=Sa(Xz),{data:r}=Ofe(t.workspaceSlug),{data:i}=fBe(r==null?void 0:r.id,t.documentId),{doc:a,client:s,cleanUpYorkieDocument:o}=oye(i==null?void 0:i.yorkieDocumentId,(l=n.data)==null?void 0:l.nickname);return M.useEffect(()=>{if(!(!a||!s))return e(AR(a)),e(RR(s)),()=>{o(),e(AR(null)),e(RR(null))}},[o,e,s,a]),D.jsxs(bs,{height:"calc(100% - 64px)",children:[D.jsx(Kbe,{}),D.jsx(M1t,{})]})}var rG={},$1t=Ma;Object.defineProperty(rG,"__esModule",{value:!0});var Fve=rG.default=void 0,F1t=$1t(La()),B1t=D;Fve=rG.default=(0,F1t.default)((0,B1t.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var iG={},U1t=Ma;Object.defineProperty(iG,"__esModule",{value:!0});var Bve=iG.default=void 0,z1t=U1t(La()),j1t=D;Bve=iG.default=(0,z1t.default)((0,j1t.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function aG(){const e=Af(),t=MN(),n=()=>{e(o$e(t=="light"?"dark":"light"))};return D.jsx(ys,{onClick:n,color:"inherit",children:t==="light"?D.jsx(Bve,{}):D.jsx(Fve,{})})}function Uve(e){return D.jsx(vg,{...e,children:D.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[D.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),D.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),D.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}function H1t(){const e=Cm(),t=()=>{e("/login")};return D.jsx(nce,{position:"static",sx:{zIndex:100},children:D.jsx(qce,{children:D.jsxs(kr,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[D.jsx(Uve,{}),D.jsxs(kr,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(lo,{color:"inherit",onClick:t,children:"Login"}),D.jsx(aG,{})]})]})})})}function V1t(){return D.jsxs(kr,{sx:{flexGrow:1,height:"100vh"},children:[D.jsx(H1t,{}),D.jsx($z,{})]})}var W1t=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=M},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(c,d,h,p,b,v){if(v!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return J}),n.d(t,"GoogleLoginButton",function(){return j}),n.d(t,"GithubLoginButton",function(){return te}),n.d(t,"TwitterLoginButton",function(){return he}),n.d(t,"AmazonLoginButton",function(){return Ze}),n.d(t,"InstagramLoginButton",function(){return Je}),n.d(t,"LinkedInLoginButton",function(){return tt}),n.d(t,"MicrosoftLoginButton",function(){return ot}),n.d(t,"BufferLoginButton",function(){return me}),n.d(t,"TelegramLoginButton",function(){return qe}),n.d(t,"AppleLoginButton",function(){return Oe}),n.d(t,"DiscordLoginButton",function(){return Ot}),n.d(t,"OktaLoginButton",function(){return St}),n.d(t,"SlackLoginButton",function(){return At}),n.d(t,"YahooLoginButton",function(){return Ln}),n.d(t,"createButton",function(){return X}),n.d(t,"createSvgIcon",function(){return W}),n.d(t,"ZaloLoginButton",function(){return Wr}),n.d(t,"TikTokLoginButton",function(){return ct}),n.d(t,"MetamaskLoginButton",function(){return yn});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return J}),n.d(r,"GoogleLoginButton",function(){return j}),n.d(r,"GithubLoginButton",function(){return te}),n.d(r,"TwitterLoginButton",function(){return he}),n.d(r,"AmazonLoginButton",function(){return Ze}),n.d(r,"InstagramLoginButton",function(){return Je}),n.d(r,"LinkedInLoginButton",function(){return tt}),n.d(r,"MicrosoftLoginButton",function(){return ot}),n.d(r,"BufferLoginButton",function(){return me}),n.d(r,"TelegramLoginButton",function(){return qe}),n.d(r,"AppleLoginButton",function(){return Oe}),n.d(r,"DiscordLoginButton",function(){return Ot}),n.d(r,"OktaLoginButton",function(){return St}),n.d(r,"SlackLoginButton",function(){return At}),n.d(r,"YahooLoginButton",function(){return Ln}),n.d(r,"createButton",function(){return X}),n.d(r,"createSvgIcon",function(){return W}),n.d(r,"ZaloLoginButton",function(){return Wr}),n.d(r,"TikTokLoginButton",function(){return ct}),n.d(r,"MetamaskLoginButton",function(){return yn});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(Ge){var Ke=Ge.name,dt=Ge.size,Et=Ge.format;return a.a.createElement("i",{className:Et(Ke),style:{fontSize:dt}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(Ge){return"demo-icon icon-".concat(Ge)},size:26};var c=l,d=function(Ge){var Ke=Ge.type,dt=Ge.size,Et=Ge.format,Jn=Ge.color,bn=Jn===void 0?"#FFFFFF":Jn;return typeof Ke=="string"?a.a.createElement(c,{format:Et,name:Ke,size:dt}):a.a.createElement(Ke,{size:dt,color:bn})};d.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var h=d;function p(Ge,Ke){var dt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(Ge);Ke&&(Et=Et.filter(function(Jn){return Object.getOwnPropertyDescriptor(Ge,Jn).enumerable})),dt.push.apply(dt,Et)}return dt}function b(Ge){for(var Ke=1;Ke"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var dt,Et=I(Ge);if(Ke){var Jn=I(this).constructor;dt=Reflect.construct(Et,arguments,Jn)}else dt=Et.apply(this,arguments);return C(this,dt)}}function C(Ge,Ke){return!Ke||S(Ke)!=="object"&&typeof Ke!="function"?function(dt){if(dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt}(Ge):Ke}function I(Ge){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(Ke){return Ke.__proto__||Object.getPrototypeOf(Ke)})(Ge)}var _=function(Ge){(function(bn,Yn){if(typeof Yn!="function"&&Yn!==null)throw new TypeError("Super expression must either be null or a function");bn.prototype=Object.create(Yn&&Yn.prototype,{constructor:{value:bn,writable:!0,configurable:!0}}),Yn&&x(bn,Yn)})(Jn,Ge);var Ke,dt,Et=k(Jn);function Jn(bn){var Yn;return function(mi,it){if(!(mi instanceof it))throw new TypeError("Cannot call a class as a function")}(this,Jn),(Yn=Et.call(this,bn)).state={focused:!1,hovered:!1},Yn.handleMouseEnter=function(){Yn.setState({hovered:!0}),typeof Yn.props.onMouseEnter=="function"&&Yn.props.onMouseEnter()},Yn.handleMouseLeave=function(){Yn.setState({hovered:!1}),typeof Yn.props.onMouseLeave=="function"&&Yn.props.onMouseLeave()},Yn.handleFocus=function(){Yn.setState({focused:!0})},Yn.handleBlur=function(){Yn.setState({focused:!1})},Yn.handleClick=function(mi){typeof Yn.props.onClick=="function"&&Yn.props.onClick(mi)},Yn}return Ke=Jn,(dt=[{key:"render",value:function(){var bn=this.props,Yn=bn.activeStyle,mi=bn.align,it=bn.text,Ue=bn.children,ke=Ue===void 0?it:Ue,ln=bn.className,qn=bn.icon,Jr=bn.iconFormat,Ie=bn.iconSize,Dn=bn.iconColor,Gn=Dn===void 0?"#FFFFFF":Dn,ci=bn.preventActiveStyles,ea=bn.size,Nd=bn.style,fp=bn.disabled,Ty=this.state,ji=Ty.focused,xy=Ty.hovered,js=U(F.button,{activeStyle:ci?Nd:Yn,customStyle:Nd,active:xy||ji,size:ea});return a.a.createElement("button",w({type:"button",style:js,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:ln},{disabled:fp}),a.a.createElement("div",{style:F.flex},!A(Ie)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Ie}},a.a.createElement(h,{type:qn,size:Ie,format:Jr,color:Gn})),!A(Ie)&&a.a.createElement("div",{style:F.divider}),a.a.createElement("div",{style:{textAlign:mi,width:"100%"}},ke)))}}])&&T(Ke.prototype,dt),Jn}(i.Component),A=function(Ge){return Ge==="0"||Ge==="0px"||Ge===0},U=function(Ge,Ke){var dt=Ke.size,Et=Ke.customStyle,Jn=Ke.active,bn=Ke.activeStyle;return b(b(b({},Ge),{},{height:dt},Et),Jn&&bn)};_.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},_.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var F={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function P(Ge,Ke){var dt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(Ge);Ke&&(Et=Et.filter(function(Jn){return Object.getOwnPropertyDescriptor(Ge,Jn).enumerable})),dt.push.apply(dt,Et)}return dt}function V(Ge){for(var Ke=1;Ke{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return D.jsx(iDe,{sx:{height:1},children:D.jsx(kr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:D.jsx(po,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:D.jsxs(kr,{gap:4,children:[D.jsxs(bs,{children:[D.jsxs(kr,{direction:"row",gap:1,children:[D.jsx(Uve,{}),D.jsx(Xr,{variant:"h6",children:"Login"})]}),D.jsx(Xr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),D.jsxs(kr,{gap:2,children:[D.jsxs(dO,{container:!0,spacing:1,alignItems:"center",children:[D.jsx(dO,{item:!0,xs:!0,children:D.jsx(Yp,{sx:{width:1}})}),D.jsx(dO,{item:!0,xs:"auto",children:D.jsx(Xr,{variant:"body2",color:"text.secondary",children:"Login with"})}),D.jsx(dO,{item:!0,xs:!0,children:D.jsx(Yp,{sx:{width:1}})})]}),Q1t.map(({SocailLoginComponent:t,provider:n})=>D.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}function q1t(){const e=Af(),t=Cm(),[n]=Fz();return M.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(xq(r))},[e,t,n]),D.jsx(bs,{})}function G1t(){return D.jsx($z,{})}const sG=gn.createContext({isLoading:!0,isLoggedIn:!1}),Z1t=e=>{var a;const{children:t}=e,{isLoggedIn:n}=M.useContext(sG),r=oy(),i=Sa(Xz);return n?D.jsx(Lz,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},X1t=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=M.useContext(sG),i=oy();return r?D.jsx(Wk,{open:!0,children:D.jsx(Tm,{color:"inherit"})}):n?t:D.jsx(Lz,{to:"/",state:{from:i},replace:!0})};var oG={},K1t=Ma;Object.defineProperty(oG,"__esModule",{value:!0});var zve=oG.default=void 0,J1t=K1t(La()),ebt=D;zve=oG.default=(0,J1t.default)((0,ebt.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var lG={},tbt=Ma;Object.defineProperty(lG,"__esModule",{value:!0});var jve=lG.default=void 0,nbt=tbt(La()),rbt=D;jve=lG.default=(0,nbt.default)((0,rbt.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");function ibt(e){const t=Af(),n=()=>{t(xq(null)),t(r$(null))};return D.jsx(lN,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:D.jsx(oE,{children:D.jsxs(Sg,{onClick:n,children:[D.jsx(oN,{children:D.jsx(jve,{fontSize:"small"})}),D.jsx(og,{children:"Logout"})]})})})}var uG={},abt=Ma;Object.defineProperty(uG,"__esModule",{value:!0});var Hve=uG.default=void 0,sbt=abt(La()),obt=D;Hve=uG.default=(0,sbt.default)((0,obt.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var cG={},lbt=Ma;Object.defineProperty(cG,"__esModule",{value:!0});var Vve=cG.default=void 0,ubt=lbt(La()),cbt=D;Vve=cG.default=(0,ubt.default)((0,cbt.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class uk extends M.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=T,d&&d(T)};const w=[n];return i&&(o?s?w.unshift(o):w.push(o):this.defaultLoader&&(s?w.unshift(this.defaultLoader):w.push(this.defaultLoader))),gn.createElement(r,S,w)}}Ks(uk,"propTypes",{children:G.node.isRequired,element:G.node,hasMore:G.bool,initialLoad:G.bool,isReverse:G.bool,loader:G.node,loadMore:G.func.isRequired,pageStart:G.number,ref:G.func,getScrollParent:G.func,threshold:G.number,useCapture:G.bool,useWindow:G.bool}),Ks(uk,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var dG={},dbt=Ma;Object.defineProperty(dG,"__esModule",{value:!0});var Wve=dG.default=void 0,fbt=dbt(La()),hbt=D;Wve=dG.default=(0,fbt.default)((0,hbt.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var fG={},pbt=Ma;Object.defineProperty(fG,"__esModule",{value:!0});var hG=fG.default=void 0,mbt=pbt(La()),gbt=D;hG=fG.default=(0,mbt.default)((0,gbt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var pG={},bbt=Ma;Object.defineProperty(pG,"__esModule",{value:!0});var _6=pG.default=void 0,ybt=bbt(La()),vbt=D;_6=pG.default=(0,ybt.default)((0,vbt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const Obt=e=>["check","name-conflict",e],Qve=e=>eC({queryKey:Obt(e||""),enabled:!!e,queryFn:async()=>(await Rr.post("/check/name-conflict",{name:e})).data});function Yve(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=M.useState(""),[o,l]=M.useState(""),{data:c}=Qve(o),d=M.useMemo(()=>c!=null&&c.conflict?"Already Exists":null,[c==null?void 0:c.conflict]);kq(()=>{l(a)},500,[a]);const h=()=>{var v;(v=i==null?void 0:i.onClose)==null||v.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async v=>{await n(v),h()},b=v=>{r&&s(v.target.value)};return D.jsx(zg,{disableAutoFocus:!0,...i,children:D.jsxs(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx(ys,{sx:{position:"absolute",top:28,right:28},onClick:h,children:D.jsx(_6,{})}),D.jsxs(kr,{gap:4,children:[D.jsxs(Xr,{variant:"h5",children:["Create New ",t]}),D.jsx(_f,{children:D.jsx(FC,{defaultValues:{title:""},onSuccess:p,children:D.jsxs(kr,{gap:4,alignItems:"flex-end",children:[D.jsx(k6,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:b,error:!!d,helperText:d}),D.jsx(lo,{type:"submit",variant:"contained",size:"large",disabled:!!d,children:"OK"})]})})})]})]})})}function Sbt(e){const{width:t,...n}=e,r=Cm(),i=lE(),{data:a,hasNextPage:s,fetchNextPage:o}=yBe(),{mutateAsync:l}=vBe(),c=M.useMemo(()=>(a==null?void 0:a.pages.reduce((w,T)=>w.concat(T.workspaces),[]))??[],[a==null?void 0:a.pages]),[d,h]=M.useState(!1),p=w=>{r(`/${w}`)},b=w=>{var T;i.workspaceSlug!==w&&(p(w),(T=n==null?void 0:n.onClose)==null||T.call(n,new Event("Close Popover"),"backdropClick"))},v=()=>{var w;h(T=>!T),n.open&&((w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},S=async w=>{const T=await l(w);p(T.slug)};return D.jsxs(D.Fragment,{children:[D.jsx(lN,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:D.jsxs(oE,{sx:{width:t},children:[D.jsx(bs,{style:{maxHeight:300,overflow:"auto"},children:D.jsx(uk,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:D.jsx(bs,{className:"loader",children:D.jsx(Tm,{size:"sm"})},0),useWindow:!1,children:c.map(w=>D.jsxs(Sg,{onClick:()=>b(w.slug),children:[D.jsx(og,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:w.title}),i.workspaceSlug===w.slug&&D.jsx(OR,{children:D.jsx(Wve,{fontSize:"small"})})]},w.id))})}),D.jsx(Yp,{}),D.jsxs(Sg,{onClick:v,children:[D.jsx(oN,{children:D.jsx(hG,{fontSize:"small"})}),D.jsx(og,{children:"Create Workspace"})]})]})}),D.jsx(Yve,{open:d,title:"Workspace",onClose:v,onSuccess:S,enableConflictCheck:!0})]})}var mG={},Ebt=Ma;Object.defineProperty(mG,"__esModule",{value:!0});var qve=mG.default=void 0,wbt=Ebt(La()),Tbt=D;qve=mG.default=(0,wbt.default)((0,Tbt.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");const xbt=e=>["workspaces",e,"users"],kbt=e=>ej({queryKey:xbt(e||""),queryFn:async({pageParam:t})=>(await Rr.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),YO=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];//! moment.js + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},vbt=function(t){return gn.createElement(yg,Object.assign({},t),gn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, + 0 22,12A10,10 0 0,0 12,2Z`}))},k3={fontSize:20,marginInlineEnd:8},Obt={default:void 0,success:gn.createElement(gbt,{style:k3}),warning:gn.createElement(bbt,{style:k3}),error:gn.createElement(ybt,{style:k3}),info:gn.createElement(vbt,{style:k3})};function Q2(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},wL=16,K1="SnackbarContainer",rf={root:K1+"-root",rootDense:K1+"-rootDense",top:K1+"-top",bottom:K1+"-bottom",left:K1+"-left",right:K1+"-right",center:K1+"-center"},xbt=Ne("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+rf.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[EL.container]={pointerEvents:"all"},t[EL.wrapper]={padding:Dp.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Dp.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+wL*2+"px)"},t),s["&."+rf.rootDense]=(n={},n[EL.wrapper]={padding:Dp.snackbar.dense+"px 0px"},n),s["&."+rf.top]={top:Dp.view.default-Dp.snackbar.default,flexDirection:"column"},s["&."+rf.bottom]={bottom:Dp.view.default-Dp.snackbar.default,flexDirection:"column-reverse"},s["&."+rf.left]=(r={left:Dp.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:wL+"px"},r),s["&."+rf.right]=(i={right:Dp.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:wL+"px"},i),s["&."+rf.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),kbt=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=hg(t,["className","anchorOrigin","dense"]),s=ck(rf[r.vertical],rf[r.horizontal],rf.root,n,i&&rf.rootDense);return gn.createElement(xbt,Object.assign({className:s},a))},Cbt=gn.memo(kbt),_bt=function(e){obt(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,c=o.preventDuplicate,d=hg(o,["key","preventDuplicate"]),h=x3(l),p=h?l:new Date().getTime()+Math.random(),b=dbt(d,i.props,wb),v=Yi({key:p},d,{message:a,open:!0,entered:!1,requestClose:!1,variant:b("variant"),anchorOrigin:b("anchorOrigin"),autoHideDuration:b("autoHideDuration")});return d.persist&&(v.autoHideDuration=void 0),i.setState(function(S){if(c===void 0&&i.props.preventDuplicate||c){var w=function(C){return h?C.key===l:C.message===a},T=S.queue.findIndex(w)>-1,x=S.snacks.findIndex(w)>-1;if(T||x)return S}return i.handleDisplaySnack(Yi({},S,{queue:[].concat(S.queue,[v])}))}),p},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Yi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(d){return!d.open||d.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(d,h){return d+(h.open&&h.persist?1:0)},0);l===i.maxSnack&&(o=!0);var c=a.snacks.map(function(d){return!s&&(!d.persist||o)?(s=!0,d.entered?(d.onClose&&d.onClose(null,N0.MAXSNACK,d.key),i.props.onClose&&i.props.onClose(null,N0.MAXSNACK,d.key),Yi({},d,{open:!1})):Yi({},d,{requestClose:!0})):Yi({},d)});return Yi({},a,{snacks:c})},i.handleEnteredSnack=function(a,s,o){if(!x3(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var c=l.snacks;return{snacks:c.map(function(d){return d.key===o?Yi({},d,{entered:!0}):Yi({},d)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==N0.CLICKAWAY){var l=o===void 0;i.setState(function(c){var d=c.snacks,h=c.queue;return{snacks:d.map(function(p){return!l&&p.key!==o?Yi({},p):p.entered?Yi({},p,{open:!1}):Yi({},p,{requestClose:!0})}),queue:h.filter(function(p){return p.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});x3(a)&&s&&s.onClose&&s.onClose(null,N0.INSTRUCTED,a),i.handleCloseSnack(null,N0.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!x3(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(c){var d=i.processQueue(Yi({},c,{snacks:c.snacks.filter(function(h){return h.key!==l})}));return d.queue.length===0?d:i.handleDismissOldest(d)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(nse(i)),closeSnackbar:i.closeSnackbar.bind(nse(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,c=l===void 0?wb.dense:l,d=s.hideIconVariant,h=d===void 0?wb.hideIconVariant:d,p=s.domRoot,b=s.children,v=s.classes,S=v===void 0?{}:v,w=hg(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),T=this.state.snacks.reduce(function(k,C){var I,_=ubt(C.anchorOrigin),A=k[_]||[];return Yi({},k,(I={},I[_]=[].concat(A,[C]),I))},{}),x=Object.keys(T).map(function(k){var C=T[k];return gn.createElement(Cbt,{key:k,dense:c,anchorOrigin:C[0].anchorOrigin,className:ck(S.containerRoot,S[D5.toContainerAnchorOrigin(k)])},C.map(function(I){return gn.createElement(Tbt,Object.assign({},w,{key:I.key,snack:I,dense:c,iconVariant:o,hideIconVariant:h,classes:cbt(S),onClose:i.handleCloseSnack,onExited:Q2([i.handleExitedSnack,i.props.onExited]),onEntered:Q2([i.handleEnteredSnack,i.props.onEntered])}))}))});return gn.createElement(Kve.Provider,{value:a},b,p?ly.createPortal(x,p):x)},sbt(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||wb.maxSnack}}]),t}(P.Component),C6=function(){return P.useContext(Kve)};function Abt(e){const{title:t,feature:n,onClose:r}=e,i=ji(),a=bC(),s=Ki(fE),{data:o,memoryKey:l,isLoading:c,isComplete:d,mutateAsync:h}=ibt(n),{data:p,isLoading:b,isComplete:v,mutateAsync:S}=abt(l),[w,T]=P.useState(""),x=document.getElementById(Zj),k=P.useMemo(()=>c||b,[c,b]),C=P.useMemo(()=>d||v,[d,v]),I=P.useMemo(()=>p||o,[o,p]),{enqueueSnackbar:_}=C6(),A=P.useRef(null),U=qye(),{reset:F,formState:M}=U;P.useEffect(()=>{M.isSubmitSuccessful&&F({content:""})},[M.isSubmitSuccessful,F]),P.useEffect(()=>{T((x==null?void 0:x.getAttribute("content"))??"")},[x]),P.useEffect(()=>{w&&h(w)},[w,h]),P.useEffect(()=>{I&&A.current&&A.current.scrollTo({behavior:"smooth",top:A.current.scrollHeight})},[I]);const V=async()=>{I&&(await Oy.write(I),_("URL Copied!",{variant:"success"}))},Q=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},X=W=>{S(W.content)},Y=(W=!1)=>{var ye,te;if(!s.cmView)return;const ee=s.cmView.state.selection.main;let J=Math.min(ee.to,ee.from);const K=Math.max(ee.to,ee.from);let ne=I;W||(J=K,ne=` +${ne}`);const j=W?J:J+1,Ce=J+ne.length;(ye=s.cmView)==null||ye.dispatch({changes:{from:J,to:K,insert:ne},selection:{anchor:j,head:Ce}}),(te=s.doc)==null||te.update((ve,Se)=>{ve.content.edit(J,K,ne),Se.set({selection:ve.content.indexRangeToPosRange([j,Ce])})}),r()};return D.jsxs(hr,{gap:4,children:[D.jsx($s,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:D.jsx(Ar,{children:t})}),k&&D.jsx(xm,{sx:{marginX:"auto"}}),D.jsx($s,{ref:A,sx:{height:350,overflow:"auto"},children:!k&&D.jsx(dbe,{source:GF(I||""),wrapperElement:{"data-color-mode":a}})}),D.jsxs(hr,{gap:2,children:[D.jsx(um,{in:C,children:D.jsxs(hr,{direction:"row",justifyContent:"flex-end",gap:1,children:[D.jsx(lo,{variant:"outlined",onClick:Q,children:D.jsx(Rye,{fontSize:"small"})}),D.jsx(lo,{variant:"outlined",onClick:V,children:D.jsx(y6,{fontSize:"small"})}),D.jsx(lo,{variant:"outlined",onClick:()=>Y(),children:"Insert below"}),D.jsx(lo,{variant:"contained",onClick:()=>Y(!0),children:"Replace"})]})}),D.jsx(Af,{children:D.jsx(VC,{defaultValues:{content:""},formContext:U,onSuccess:X,children:D.jsx(hr,{gap:4,alignItems:"flex-end",children:D.jsx(k6,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!C,size:"small",InputProps:{startAdornment:D.jsx(Ex,{position:"start",children:D.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:D.jsx(um,{in:C,children:D.jsx(Ex,{position:"end",children:D.jsx($a,{type:"submit",edge:"end",children:D.jsx(Zve,{})})})})}})})})})]})]})}function Rbt(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return D.jsx(Ug,{disableAutoFocus:!0,...n,children:D.jsx(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:D.jsxs(hr,{gap:4,children:[D.jsxs(hr,{alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),D.jsxs(Ar,{variant:"h6",align:"center",children:["Do you want to discard",D.jsx("br",{}),"the Yorkie response?"]})]}),D.jsxs(hr,{direction:"row",gap:1,justifyContent:"center",children:[D.jsx(lo,{variant:"outlined",onClick:i,children:"Discard"}),D.jsx(lo,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function Ibt(e){const{onClose:t}=e,n=ji(),r=Ki(fE),i=P.useRef(null),[a,s]=P.useState(null),[o,l]=P.useState(null),[c,d]=P.useState(),[h,p]=P.useState(!1),b=P.useRef(null),v=P.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);P.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(T,x)=>{l(T),s(x)},w=()=>{p(T=>!T)};return D.jsxs($s,{sx:{position:"absolute",mt:1},children:[D.jsx("span",{ref:i,style:{marginTop:4}}),D.jsx(uN,{open:!!c,anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:w,children:D.jsx(kz,{ref:b,sx:{boxShadow:n.shadows[11],borderRadius:2,width:v,padding:2},children:o&&a?D.jsx(Abt,{title:a,feature:o,onClose:t}):D.jsx(Qft,{onSelectFeature:S})})}),D.jsx(Rbt,{open:h,onCloseIntelligence:t,onClose:w})]})}function Dbt(){const e=ji(),[t,n]=P.useState(!1),[r,i]=P.useState(null),[a,s]=P.useState(null),[o,l]=P.useState(null);Rq(()=>{l(r)},500,[r]),P.useEffect(()=>{document.addEventListener("selectionchange",function(){const d=document.getElementById(X0e),h=document.getElementById(Zj);i(d),s(h),d||(n(!1),l(null))})},[]);const c=()=>{n(d=>!d)};if(!(!o||!a))return D.jsxs(D.Fragment,{children:[D.jsx(sE,{open:!!o,anchorEl:o,placement:"top-start",transition:!0,children:({TransitionProps:d})=>D.jsx(um,{...d,children:D.jsx(kz,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:D.jsx(Fce,{sx:{paddingX:1.3,paddingY:.3},onClick:c,children:D.jsxs(hr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",height:20}),D.jsx(Ar,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&ly.createPortal(D.jsx(Ibt,{onClose:c}),a)]})}function Nbt(){var l;const e=kd(),t=Hg(),n=Ki(ej),{data:r}=aj(t.workspaceSlug),{data:i}=uUe(r==null?void 0:r.id,t.documentId),{doc:a,client:s,cleanUpYorkieDocument:o}=wye(i==null?void 0:i.yorkieDocumentId,(l=n.data)==null?void 0:l.nickname);return P.useEffect(()=>{if(!(!a||!s))return e(PR(a)),e(MR(s)),()=>{o(),e(PR(null)),e(MR(null))}},[o,e,s,a]),D.jsxs($s,{height:"calc(100% - 64px)",children:[D.jsx(pye,{}),D.jsx(Dbt,{})]})}function Pbt(){return D.jsx(hr,{sx:{flexGrow:1,height:"100vh"},children:D.jsx(Bz,{})})}function Mbt(){const e=kd(),t=ep(),[n]=Uz();return P.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(Aq(r))},[e,t,n]),D.jsx($s,{})}var oG={},Lbt=ha;Object.defineProperty(oG,"__esModule",{value:!0});var eOe=oG.default=void 0,$bt=Lbt(pa()),Fbt=D;eOe=oG.default=(0,$bt.default)((0,Fbt.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var lG={},Bbt=ha;Object.defineProperty(lG,"__esModule",{value:!0});var tOe=lG.default=void 0,Ubt=Bbt(pa()),zbt=D;tOe=lG.default=(0,Ubt.default)((0,zbt.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var uG={},jbt=ha;Object.defineProperty(uG,"__esModule",{value:!0});var cG=uG.default=void 0,Hbt=jbt(pa()),Vbt=D;cG=uG.default=(0,Hbt.default)((0,Vbt.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var dG={},Wbt=ha;Object.defineProperty(dG,"__esModule",{value:!0});var fG=dG.default=void 0,Qbt=Wbt(pa()),Ybt=D;fG=dG.default=(0,Qbt.default)((0,Ybt.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function qbt(e){const t=kd(),n=bC(),r=()=>{t(Aq(null)),t(r$(null))},i=()=>{t(Gde(n=="light"?"dark":"light"))};return D.jsx(uN,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:D.jsxs(uE,{children:[D.jsxs(cm,{onClick:i,children:[D.jsx(wx,{children:n==="light"?D.jsx(fG,{}):D.jsx(cG,{})}),D.jsx(Og,{children:"Appearance"})]}),D.jsxs(cm,{onClick:r,children:[D.jsx(wx,{children:D.jsx(tOe,{fontSize:"small"})}),D.jsx(Og,{children:"Logout"})]})]})})}var hG={},Gbt=ha;Object.defineProperty(hG,"__esModule",{value:!0});var nOe=hG.default=void 0,Zbt=Gbt(pa()),sse=D;nOe=hG.default=(0,Zbt.default)([(0,sse.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,sse.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");var pG={},Xbt=ha;Object.defineProperty(pG,"__esModule",{value:!0});var rOe=pG.default=void 0,Kbt=Xbt(pa()),ose=D;rOe=pG.default=(0,Kbt.default)([(0,ose.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,ose.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function iOe(e){return D.jsx(yg,{...e,children:D.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[D.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),D.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),D.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}const Jbt=Ne(bce,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{width:`calc(100% - ${qO}px)`,marginLeft:`${qO}px`,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}));function eyt(e){var p,b;const{open:t,onDrawerOpen:n}=e,r=ji(),i=ep(),a=Ki(ej),s=Ki(aC),[o,l]=P.useState(null),c=v=>{l(v.currentTarget)},d=()=>{l(null)},h=()=>{var v;i(`/${(v=s.data)==null?void 0:v.slug}`)};return D.jsxs(Jbt,{position:"fixed",open:t,children:[D.jsx(dde,{children:D.jsxs(hr,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[D.jsx($a,{onClick:c,children:D.jsx(xz,{children:(b=(p=a.data)==null?void 0:p.nickname)==null?void 0:b.charAt(0)})}),D.jsxs(hr,{direction:"row",children:[D.jsx($a,{color:"inherit","aria-label":"open drawer",onClick:n,edge:"start",sx:{mr:2},children:t?r.direction==="ltr"?D.jsx(nOe,{}):D.jsx(rOe,{}):D.jsx(eOe,{})}),D.jsx($a,{onClick:h,children:D.jsx(iOe,{})})]})]})}),D.jsx(qbt,{open:!!o,anchorEl:o,onClose:d})]})}var mG={},tyt=ha;Object.defineProperty(mG,"__esModule",{value:!0});var aOe=mG.default=void 0,nyt=tyt(pa()),ryt=D;aOe=mG.default=(0,nyt.default)((0,ryt.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var gG={},iyt=ha;Object.defineProperty(gG,"__esModule",{value:!0});var sOe=gG.default=void 0,ayt=iyt(pa()),syt=D;sOe=gG.default=(0,ayt.default)((0,syt.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class dk extends P.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=T,d&&d(T)};const w=[n];return i&&(o?s?w.unshift(o):w.push(o):this.defaultLoader&&(s?w.unshift(this.defaultLoader):w.push(this.defaultLoader))),gn.createElement(r,S,w)}}Ks(dk,"propTypes",{children:G.node.isRequired,element:G.node,hasMore:G.bool,initialLoad:G.bool,isReverse:G.bool,loader:G.node,loadMore:G.func.isRequired,pageStart:G.number,ref:G.func,getScrollParent:G.func,threshold:G.number,useCapture:G.bool,useWindow:G.bool}),Ks(dk,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var bG={},oyt=ha;Object.defineProperty(bG,"__esModule",{value:!0});var oOe=bG.default=void 0,lyt=oyt(pa()),uyt=D;oOe=bG.default=(0,lyt.default)((0,uyt.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var yG={},cyt=ha;Object.defineProperty(yG,"__esModule",{value:!0});var _6=yG.default=void 0,dyt=cyt(pa()),fyt=D;_6=yG.default=(0,dyt.default)((0,fyt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var vG={},hyt=ha;Object.defineProperty(vG,"__esModule",{value:!0});var A6=vG.default=void 0,pyt=hyt(pa()),myt=D;A6=vG.default=(0,pyt.default)((0,myt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const gyt=e=>["check","name-conflict",e],lOe=e=>iC({queryKey:gyt(e||""),enabled:!!e,queryFn:async()=>(await Ir.post("/check/name-conflict",{name:e})).data});function uOe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=P.useState(""),[o,l]=P.useState(""),{data:c}=lOe(o),d=P.useMemo(()=>c!=null&&c.conflict?"Already Exists":null,[c==null?void 0:c.conflict]);Rq(()=>{l(a)},500,[a]);const h=()=>{var v;(v=i==null?void 0:i.onClose)==null||v.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async v=>{await n(v),h()},b=v=>{r&&s(v.target.value)};return D.jsx(Ug,{disableAutoFocus:!0,...i,children:D.jsxs(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx($a,{sx:{position:"absolute",top:28,right:28},onClick:h,children:D.jsx(A6,{})}),D.jsxs(hr,{gap:4,children:[D.jsxs(Ar,{variant:"h5",children:["Create New ",t]}),D.jsx(Af,{children:D.jsx(VC,{defaultValues:{title:""},onSuccess:p,children:D.jsxs(hr,{gap:4,alignItems:"flex-end",children:[D.jsx(k6,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:b,error:!!d,helperText:d}),D.jsx(lo,{type:"submit",variant:"contained",size:"large",disabled:!!d,children:"OK"})]})})})]})]})})}function byt(e){const{width:t,...n}=e,r=ep(),i=Hg(),{data:a,hasNextPage:s,fetchNextPage:o}=mUe(),{mutateAsync:l}=gUe(),c=P.useMemo(()=>(a==null?void 0:a.pages.reduce((w,T)=>w.concat(T.workspaces),[]))??[],[a==null?void 0:a.pages]),[d,h]=P.useState(!1),p=w=>{r(`/${w}`)},b=w=>{var T;i.workspaceSlug!==w&&(p(w),(T=n==null?void 0:n.onClose)==null||T.call(n,new Event("Close Popover"),"backdropClick"))},v=()=>{var w;h(T=>!T),n.open&&((w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},S=async w=>{const T=await l(w);p(T.slug)};return D.jsxs(D.Fragment,{children:[D.jsx(uN,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:D.jsxs(uE,{sx:{width:t},children:[D.jsx($s,{style:{maxHeight:300,overflow:"auto"},children:D.jsx(dk,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:D.jsx($s,{className:"loader",children:D.jsx(xm,{size:"sm"})},0),useWindow:!1,children:c.map(w=>D.jsxs(cm,{onClick:()=>b(w.slug),children:[D.jsx(Og,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:w.title}),i.workspaceSlug===w.slug&&D.jsx(Az,{children:D.jsx(oOe,{fontSize:"small"})})]},w.id))})}),D.jsx(Yb,{}),D.jsxs(cm,{onClick:v,children:[D.jsx(wx,{children:D.jsx(_6,{fontSize:"small"})}),D.jsx(Og,{children:"Create Workspace"})]})]})}),D.jsx(uOe,{open:d,title:"Workspace",onClose:v,onSuccess:S,enableConflictCheck:!0})]})}var OG={},yyt=ha;Object.defineProperty(OG,"__esModule",{value:!0});var cOe=OG.default=void 0,vyt=yyt(pa()),Oyt=D;cOe=OG.default=(0,vyt.default)((0,Oyt.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");function Syt(e){var p;const{open:t}=e,n=jg(),r=Hg(),i=ep(),a=Ki(aC),[s,o]=P.useState(null),l=P.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),c=b=>{o(b.currentTarget)},d=()=>{o(null)},h=()=>{i(`/${r.workspaceSlug}/member`)};return D.jsxs(SNe,{sx:{width:qO,flexShrink:0,"& .MuiDrawer-paper":{width:qO,boxSizing:"border-box"}},variant:"persistent",anchor:"left",open:t,children:[D.jsx(dOe,{children:D.jsxs(B9,{disablePadding:!0,children:[D.jsxs(rJ,{onClick:c,children:[D.jsx(Og,{primary:(p=a.data)==null?void 0:p.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),D.jsx(Az,{children:D.jsx($a,{children:s?D.jsx(sOe,{}):D.jsx(aOe,{})})})]}),D.jsx(byt,{open:!!s,anchorEl:s,onClose:d,width:qO-32})]})}),D.jsx(Yb,{}),D.jsx(B9,{disablePadding:!0,children:D.jsxs(rJ,{onClick:h,selected:l==="member",children:[D.jsx(wx,{children:D.jsx(cOe,{})}),D.jsx(Og,{primary:"Members"})]})})]})}const qO=282,Eyt=Ne("main",{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({flexGrow:1,padding:e.spacing(3),transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginLeft:`-${qO}px`,...t&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}})),dOe=Ne("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function wyt(){const{drawerOpen:e}=Ki(Yz),t=kd(),n=()=>{t(iFe(!e))};return D.jsxs($s,{sx:{display:"flex"},children:[D.jsx(eyt,{open:e,onDrawerOpen:n}),D.jsx(Syt,{open:e}),D.jsxs(Eyt,{open:e,children:[D.jsx(dOe,{}),D.jsx(Bz,{})]})]})}const SG=gn.createContext({isLoading:!0,isLoggedIn:!1}),Tyt=e=>{var a;const{children:t}=e,{isLoggedIn:n}=P.useContext(SG),r=jg(),i=Ki(ej);return n?D.jsx(Fz,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},xyt=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=P.useContext(SG),i=jg();return r?D.jsx(Gk,{open:!0,children:D.jsx(xm,{color:"inherit"})}):n?t:D.jsx(Fz,{to:"/",state:{from:i},replace:!0})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var Gve;function cn(){return Gve.apply(null,arguments)}function Cbt(e){Gve=e}function Tf(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Lb(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ri(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gG(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ri(e,t))return!1;return!0}function Gl(e){return e===void 0}function vm(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function BC(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Zve(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var OG=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,S3=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xL={},qO={};function Hn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(qO[e]=i),t&&(qO[t[0]]=function(){return Xh(i.apply(this,arguments),t[1],t[2])}),n&&(qO[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Dbt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Nbt(e){var t=e.match(OG),n,r;for(n=0,r=t.length;n=0&&S3.test(e);)e=e.replace(S3,r),S3.lastIndex=0,n-=1;return e}var Pbt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Mbt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(OG).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Lbt="Invalid date";function $bt(){return this._invalidDate}var Fbt="%d",Bbt=/\d{1,2}/;function Ubt(e){return this._ordinal.replace("%d",e)}var zbt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function jbt(e,t,n,r){var i=this._relativeTime[n];return dp(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Hbt(e,t){var n=this._relativeTime[e>0?"future":"past"];return dp(n)?n(t):n.replace(/%s/i,t)}var Gae={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Id(e){return typeof e=="string"?Gae[e]||Gae[e.toLowerCase()]:void 0}function SG(e){var t={},n,r;for(r in e)ri(e,r)&&(n=Id(r),n&&(t[n]=e[r]));return t}var Vbt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Wbt(e){var t=[],n;for(n in e)ri(e,n)&&t.push({unit:n,priority:Vbt[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var eOe=/\d/,Sc=/\d\d/,tOe=/\d{3}/,EG=/\d{4}/,R6=/[+-]?\d{6}/,Ji=/\d\d?/,nOe=/\d\d\d\d?/,rOe=/\d\d\d\d\d\d?/,I6=/\d{1,3}/,wG=/\d{1,4}/,D6=/[+-]?\d{1,6}/,PE=/\d+/,N6=/[+-]?\d+/,Qbt=/Z|[+-]\d\d:?\d\d/gi,P6=/Z|[+-]\d\d(?::?\d\d)?/gi,Ybt=/[+-]?\d+(\.\d{1,3})?/,zC=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ME=/^[1-9]\d?/,TG=/^([1-9]\d|\d)/,$I;$I={};function On(e,t,n){$I[e]=dp(t)?t:function(r,i){return r&&n?n:t}}function qbt(e,t){return ri($I,e)?$I[e](t._strict,t._locale):new RegExp(Gbt(e))}function Gbt(e){return nm(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function nm(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function nd(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Fr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=nd(t)),n}var wB={};function ki(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),vm(t)&&(r=function(a,s){s[t]=Fr(a)}),i=e.length,n=0;n68?1900:2e3)};var iOe=LE("FullYear",!0);function Jbt(){return M6(this.year())}function LE(e,t){return function(n){return n!=null?(aOe(this,e,n),cn.updateOffset(this,t),this):ck(this,e)}}function ck(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function aOe(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!M6(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function eyt(e){return e=Id(e),dp(this[e])?this[e]():this}function tyt(e,t){if(typeof e=="object"){e=SG(e);var n=Wbt(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function dk(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function FI(e,t,n){var r=7+t-n,i=(7+dk(e,0,r).getUTCDay()-t)%7;return-i+r-1}function dOe(e,t,n,r,i){var a=(7+n-r)%7,s=FI(e,r,i),o=1+7*(t-1)+a+s,l,c;return o<=0?(l=e-1,c=QT(l)+o):o>QT(e)?(l=e+1,c=o-QT(e)):(l=e,c=o),{year:l,dayOfYear:c}}function fk(e,t,n){var r=FI(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+rm(s,t,n)):i>rm(e.year(),t,n)?(a=i-rm(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function rm(e,t,n){var r=FI(e,t,n),i=FI(e+1,t,n);return(QT(e)-r+i)/7}Hn("w",["ww",2],"wo","week");Hn("W",["WW",2],"Wo","isoWeek");On("w",Ji,ME);On("ww",Ji,Sc);On("W",Ji,ME);On("WW",Ji,Sc);jC(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Fr(e)});function pyt(e){return fk(e,this._week.dow,this._week.doy).week}var myt={dow:0,doy:6};function gyt(){return this._week.dow}function byt(){return this._week.doy}function yyt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function vyt(e){var t=fk(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Hn("d",0,"do","day");Hn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Hn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Hn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Hn("e",0,0,"weekday");Hn("E",0,0,"isoWeekday");On("d",Ji);On("e",Ji);On("E",Ji);On("dd",function(e,t){return t.weekdaysMinRegex(e)});On("ddd",function(e,t){return t.weekdaysShortRegex(e)});On("dddd",function(e,t){return t.weekdaysRegex(e)});jC(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Sr(n).invalidWeekday=e});jC(["d","e","E"],function(e,t,n,r){t[r]=Fr(e)});function Oyt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Syt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kG(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Eyt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fOe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wyt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Tyt=zC,xyt=zC,kyt=zC;function Cyt(e,t){var n=Tf(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?kG(n,this._week.dow):e?n[e.day()]:n}function _yt(e){return e===!0?kG(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ayt(e){return e===!0?kG(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ryt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=cp([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=ja.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=ja.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=ja.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=ja.call(this._weekdaysParse,s),i!==-1||(i=ja.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=ja.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=ja.call(this._shortWeekdaysParse,s),i!==-1||(i=ja.call(this._weekdaysParse,s),i!==-1)?i:(i=ja.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=ja.call(this._minWeekdaysParse,s),i!==-1||(i=ja.call(this._weekdaysParse,s),i!==-1)?i:(i=ja.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Iyt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Ryt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=cp([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Dyt(e){if(!this.isValid())return e!=null?this:NaN;var t=ck(this,"Day");return e!=null?(e=Oyt(e,this.localeData()),this.add(e-t,"d")):t}function Nyt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Pyt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Syt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Myt(e){return this._weekdaysParseExact?(ri(this,"_weekdaysRegex")||CG.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ri(this,"_weekdaysRegex")||(this._weekdaysRegex=Tyt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Lyt(e){return this._weekdaysParseExact?(ri(this,"_weekdaysRegex")||CG.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ri(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xyt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $yt(e){return this._weekdaysParseExact?(ri(this,"_weekdaysRegex")||CG.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ri(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kyt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function CG(){function e(d,h){return h.length-d.length}var t=[],n=[],r=[],i=[],a,s,o,l,c;for(a=0;a<7;a++)s=cp([2e3,1]).day(a),o=nm(this.weekdaysMin(s,"")),l=nm(this.weekdaysShort(s,"")),c=nm(this.weekdays(s,"")),t.push(o),n.push(l),r.push(c),i.push(o),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function _G(){return this.hours()%12||12}function Fyt(){return this.hours()||24}Hn("H",["HH",2],0,"hour");Hn("h",["hh",2],0,_G);Hn("k",["kk",2],0,Fyt);Hn("hmm",0,0,function(){return""+_G.apply(this)+Xh(this.minutes(),2)});Hn("hmmss",0,0,function(){return""+_G.apply(this)+Xh(this.minutes(),2)+Xh(this.seconds(),2)});Hn("Hmm",0,0,function(){return""+this.hours()+Xh(this.minutes(),2)});Hn("Hmmss",0,0,function(){return""+this.hours()+Xh(this.minutes(),2)+Xh(this.seconds(),2)});function hOe(e,t){Hn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}hOe("a",!0);hOe("A",!1);function pOe(e,t){return t._meridiemParse}On("a",pOe);On("A",pOe);On("H",Ji,TG);On("h",Ji,ME);On("k",Ji,ME);On("HH",Ji,Sc);On("hh",Ji,Sc);On("kk",Ji,Sc);On("hmm",nOe);On("hmmss",rOe);On("Hmm",nOe);On("Hmmss",rOe);ki(["H","HH"],gs);ki(["k","kk"],function(e,t,n){var r=Fr(e);t[gs]=r===24?0:r});ki(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ki(["h","hh"],function(e,t,n){t[gs]=Fr(e),Sr(n).bigHour=!0});ki("hmm",function(e,t,n){var r=e.length-2;t[gs]=Fr(e.substr(0,r)),t[mf]=Fr(e.substr(r)),Sr(n).bigHour=!0});ki("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[gs]=Fr(e.substr(0,r)),t[mf]=Fr(e.substr(r,2)),t[Gp]=Fr(e.substr(i)),Sr(n).bigHour=!0});ki("Hmm",function(e,t,n){var r=e.length-2;t[gs]=Fr(e.substr(0,r)),t[mf]=Fr(e.substr(r))});ki("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[gs]=Fr(e.substr(0,r)),t[mf]=Fr(e.substr(r,2)),t[Gp]=Fr(e.substr(i))});function Byt(e){return(e+"").toLowerCase().charAt(0)==="p"}var Uyt=/[ap]\.?m?\.?/i,zyt=LE("Hours",!0);function jyt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var mOe={calendar:Rbt,longDateFormat:Pbt,invalidDate:Lbt,ordinal:Fbt,dayOfMonthOrdinalParse:Bbt,relativeTime:zbt,months:ryt,monthsShort:sOe,week:myt,weekdays:Eyt,weekdaysMin:wyt,weekdaysShort:fOe,meridiemParse:Uyt},la={},R2={},hk;function Hyt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=L6(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Hyt(a,r)>=n-1)break;n--}t++}return hk}function Wyt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function L6(e){var t=null,n;if(la[e]===void 0&&typeof B5<"u"&&B5&&B5.exports&&Wyt(e))try{t=hk._abbr,n=require,n("./locale/"+e),mg(t)}catch{la[e]=null}return la[e]}function mg(e,t){var n;return e&&(Gl(t)?n=Im(e):n=AG(e,t),n?hk=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),hk._abbr}function AG(e,t){if(t!==null){var n,r=mOe;if(t.abbr=e,la[e]!=null)Kve("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=la[e]._config;else if(t.parentLocale!=null)if(la[t.parentLocale]!=null)r=la[t.parentLocale]._config;else if(n=L6(t.parentLocale),n!=null)r=n._config;else return R2[t.parentLocale]||(R2[t.parentLocale]=[]),R2[t.parentLocale].push({name:e,config:t}),null;return la[e]=new vG(SB(r,t)),R2[e]&&R2[e].forEach(function(i){AG(i.name,i.config)}),mg(e),la[e]}else return delete la[e],null}function Qyt(e,t){if(t!=null){var n,r,i=mOe;la[e]!=null&&la[e].parentLocale!=null?la[e].set(SB(la[e]._config,t)):(r=L6(e),r!=null&&(i=r._config),t=SB(i,t),r==null&&(t.abbr=e),n=new vG(t),n.parentLocale=la[e],la[e]=n),mg(e)}else la[e]!=null&&(la[e].parentLocale!=null?(la[e]=la[e].parentLocale,e===mg()&&mg(e)):la[e]!=null&&delete la[e]);return la[e]}function Im(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return hk;if(!Tf(e)){if(t=L6(e),t)return t;e=[e]}return Vyt(e)}function Yyt(){return EB(la)}function RG(e){var t,n=e._a;return n&&Sr(e).overflow===-2&&(t=n[qp]<0||n[qp]>11?qp:n[_h]<1||n[_h]>xG(n[Lo],n[qp])?_h:n[gs]<0||n[gs]>24||n[gs]===24&&(n[mf]!==0||n[Gp]!==0||n[wb]!==0)?gs:n[mf]<0||n[mf]>59?mf:n[Gp]<0||n[Gp]>59?Gp:n[wb]<0||n[wb]>999?wb:-1,Sr(e)._overflowDayOfYear&&(t_h)&&(t=_h),Sr(e)._overflowWeeks&&t===-1&&(t=Xbt),Sr(e)._overflowWeekday&&t===-1&&(t=Kbt),Sr(e).overflow=t),e}var qyt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gyt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zyt=/Z|[+-]\d\d(?::?\d\d)?/,E3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kL=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Xyt=/^\/?Date\((-?\d+)/i,Kyt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Jyt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function gOe(e){var t,n,r=e._i,i=qyt.exec(r)||Gyt.exec(r),a,s,o,l,c=E3.length,d=kL.length;if(i){for(Sr(e).iso=!0,t=0,n=c;tQT(s)||e._dayOfYear===0)&&(Sr(e)._overflowDayOfYear=!0),n=dk(s,0,e._dayOfYear),e._a[qp]=n.getUTCMonth(),e._a[_h]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[gs]===24&&e._a[mf]===0&&e._a[Gp]===0&&e._a[wb]===0&&(e._nextDay=!0,e._a[gs]=0),e._d=(e._useUTC?dk:hyt).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[gs]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Sr(e).weekdayMismatch=!0)}}function ovt(e){var t,n,r,i,a,s,o,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=Xv(t.GG,e._a[Lo],fk(Xi(),1,4).year),r=Xv(t.W,1),i=Xv(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,c=fk(Xi(),a,s),n=Xv(t.gg,e._a[Lo],c.year),r=Xv(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>rm(n,a,s)?Sr(e)._overflowWeeks=!0:l!=null?Sr(e)._overflowWeekday=!0:(o=dOe(n,r,i,a,s),e._a[Lo]=o.year,e._dayOfYear=o.dayOfYear)}cn.ISO_8601=function(){};cn.RFC_2822=function(){};function DG(e){if(e._f===cn.ISO_8601){gOe(e);return}if(e._f===cn.RFC_2822){bOe(e);return}e._a=[],Sr(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,c,d;for(i=Jve(e._f,e._locale).match(OG)||[],d=i.length,n=0;n0&&Sr(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),qO[a]?(r?Sr(e).empty=!1:Sr(e).unusedTokens.push(a),Zbt(a,r,e)):e._strict&&!r&&Sr(e).unusedTokens.push(a);Sr(e).charsLeftOver=o-l,t.length>0&&Sr(e).unusedInput.push(t),e._a[gs]<=12&&Sr(e).bigHour===!0&&e._a[gs]>0&&(Sr(e).bigHour=void 0),Sr(e).parsedDateParts=e._a.slice(0),Sr(e).meridiem=e._meridiem,e._a[gs]=lvt(e._locale,e._a[gs],e._meridiem),c=Sr(e).era,c!==null&&(e._a[Lo]=e._locale.erasConvertYear(c,e._a[Lo])),IG(e),RG(e)}function lvt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function uvt(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){Sr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:A6()});function OOe(e,t){var n,r;if(t.length===1&&Tf(t[0])&&(t=t[0]),!t.length)return Xi();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Rvt(){if(!Gl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return yG(e,this),e=yOe(e),e._a?(t=e._isUTC?cp(e._a):Xi(e._a),this._isDSTShifted=this.isValid()&&Svt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ivt(){return this.isValid()?!this._isUTC:!1}function Dvt(){return this.isValid()?this._isUTC:!1}function EOe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Nvt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pvt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ff(e,t){var n=e,r=null,i,a,s;return _5(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:vm(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Nvt.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Fr(r[_h])*i,h:Fr(r[gs])*i,m:Fr(r[mf])*i,s:Fr(r[Gp])*i,ms:Fr(TB(r[wb]*1e3))*i}):(r=Pvt.exec(e))?(i=r[1]==="-"?-1:1,n={y:K1(r[2],i),M:K1(r[3],i),w:K1(r[4],i),d:K1(r[5],i),h:K1(r[6],i),m:K1(r[7],i),s:K1(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=Mvt(Xi(n.from),Xi(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new $6(n),_5(e)&&ri(e,"_locale")&&(a._locale=e._locale),_5(e)&&ri(e,"_isValid")&&(a._isValid=e._isValid),a}Ff.fn=$6.prototype;Ff.invalid=Ovt;function K1(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Xae(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Mvt(e,t){var n;return e.isValid()&&t.isValid()?(t=PG(t,e),e.isBefore(t)?n=Xae(e,t):(n=Xae(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function wOe(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(Kve(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Ff(n,r),TOe(this,i,e),this}}function TOe(e,t,n,r){var i=t._milliseconds,a=TB(t._days),s=TB(t._months);e.isValid()&&(r=r??!0,s&&lOe(e,ck(e,"Month")+s*n),a&&aOe(e,"Date",ck(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&cn.updateOffset(e,a||s))}var Lvt=wOe(1,"add"),$vt=wOe(-1,"subtract");function xOe(e){return typeof e=="string"||e instanceof String}function Fvt(e){return xf(e)||BC(e)||xOe(e)||vm(e)||Uvt(e)||Bvt(e)||e===null||e===void 0}function Bvt(e){var t=Lb(e)&&!gG(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?C5(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):dp(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",C5(n,"Z")):C5(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eOt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function tOt(e){e||(e=this.isUtc()?cn.defaultFormatUtc:cn.defaultFormat);var t=C5(this,e);return this.localeData().postformat(t)}function nOt(e,t){return this.isValid()&&(xf(e)&&e.isValid()||Xi(e).isValid())?Ff({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rOt(e){return this.from(Xi(),e)}function iOt(e,t){return this.isValid()&&(xf(e)&&e.isValid()||Xi(e).isValid())?Ff({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aOt(e){return this.to(Xi(),e)}function kOe(e){var t;return e===void 0?this._locale._abbr:(t=Im(e),t!=null&&(this._locale=t),this)}var COe=Rd("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function _Oe(){return this._locale}var BI=1e3,GO=60*BI,UI=60*GO,AOe=(365*400+97)*24*UI;function ZO(e,t){return(e%t+t)%t}function ROe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-AOe:new Date(e,t,n).valueOf()}function IOe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-AOe:Date.UTC(e,t,n)}function sOt(e){var t,n;if(e=Id(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?IOe:ROe,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ZO(t+(this._isUTC?0:this.utcOffset()*GO),UI);break;case"minute":t=this._d.valueOf(),t-=ZO(t,GO);break;case"second":t=this._d.valueOf(),t-=ZO(t,BI);break}return this._d.setTime(t),cn.updateOffset(this,!0),this}function oOt(e){var t,n;if(e=Id(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?IOe:ROe,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=UI-ZO(t+(this._isUTC?0:this.utcOffset()*GO),UI)-1;break;case"minute":t=this._d.valueOf(),t+=GO-ZO(t,GO)-1;break;case"second":t=this._d.valueOf(),t+=BI-ZO(t,BI)-1;break}return this._d.setTime(t),cn.updateOffset(this,!0),this}function lOt(){return this._d.valueOf()-(this._offset||0)*6e4}function uOt(){return Math.floor(this.valueOf()/1e3)}function cOt(){return new Date(this.valueOf())}function dOt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function fOt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function hOt(){return this.isValid()?this.toISOString():null}function pOt(){return bG(this)}function mOt(){return X0({},Sr(this))}function gOt(){return Sr(this).overflow}function bOt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Hn("N",0,0,"eraAbbr");Hn("NN",0,0,"eraAbbr");Hn("NNN",0,0,"eraAbbr");Hn("NNNN",0,0,"eraName");Hn("NNNNN",0,0,"eraNarrow");Hn("y",["y",1],"yo","eraYear");Hn("y",["yy",2],0,"eraYear");Hn("y",["yyy",3],0,"eraYear");Hn("y",["yyyy",4],0,"eraYear");On("N",MG);On("NN",MG);On("NNN",MG);On("NNNN",_Ot);On("NNNNN",AOt);ki(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Sr(n).era=i:Sr(n).invalidEra=e});On("y",PE);On("yy",PE);On("yyy",PE);On("yyyy",PE);On("yo",ROt);ki(["y","yy","yyy","yyyy"],Lo);ki(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Lo]=n._locale.eraYearOrdinalParse(e,i):t[Lo]=parseInt(e,10)});function yOt(e,t){var n,r,i,a=this._eras||Im("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function OOt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?cn(e.since).year():cn(e.since).year()+(t-e.offset)*n}function SOt(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),$Ot.call(this,e,t,n,r,i))}function $Ot(e,t,n,r,i){var a=dOe(e,t,n,r,i),s=dk(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Hn("Q",0,"Qo","quarter");On("Q",eOe);ki("Q",function(e,t){t[qp]=(Fr(e)-1)*3});function FOt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Hn("D",["DD",2],"Do","date");On("D",Ji,ME);On("DD",Ji,Sc);On("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ki(["D","DD"],_h);ki("Do",function(e,t){t[_h]=Fr(e.match(Ji)[0])});var NOe=LE("Date",!0);Hn("DDD",["DDDD",3],"DDDo","dayOfYear");On("DDD",I6);On("DDDD",tOe);ki(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Fr(e)});function BOt(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Hn("m",["mm",2],0,"minute");On("m",Ji,TG);On("mm",Ji,Sc);ki(["m","mm"],mf);var UOt=LE("Minutes",!1);Hn("s",["ss",2],0,"second");On("s",Ji,TG);On("ss",Ji,Sc);ki(["s","ss"],Gp);var zOt=LE("Seconds",!1);Hn("S",0,0,function(){return~~(this.millisecond()/100)});Hn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Hn(0,["SSS",3],0,"millisecond");Hn(0,["SSSS",4],0,function(){return this.millisecond()*10});Hn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Hn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Hn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Hn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Hn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});On("S",I6,eOe);On("SS",I6,Sc);On("SSS",I6,tOe);var K0,POe;for(K0="SSSS";K0.length<=9;K0+="S")On(K0,PE);function jOt(e,t){t[wb]=Fr(("0."+e)*1e3)}for(K0="S";K0.length<=9;K0+="S")ki(K0,jOt);POe=LE("Milliseconds",!1);Hn("z",0,0,"zoneAbbr");Hn("zz",0,0,"zoneName");function HOt(){return this._isUTC?"UTC":""}function VOt(){return this._isUTC?"Coordinated Universal Time":""}var Vt=UC.prototype;Vt.add=Lvt;Vt.calendar=Hvt;Vt.clone=Vvt;Vt.diff=Xvt;Vt.endOf=oOt;Vt.format=tOt;Vt.from=nOt;Vt.fromNow=rOt;Vt.to=iOt;Vt.toNow=aOt;Vt.get=eyt;Vt.invalidAt=gOt;Vt.isAfter=Wvt;Vt.isBefore=Qvt;Vt.isBetween=Yvt;Vt.isSame=qvt;Vt.isSameOrAfter=Gvt;Vt.isSameOrBefore=Zvt;Vt.isValid=pOt;Vt.lang=COe;Vt.locale=kOe;Vt.localeData=_Oe;Vt.max=pvt;Vt.min=hvt;Vt.parsingFlags=mOt;Vt.set=tyt;Vt.startOf=sOt;Vt.subtract=$vt;Vt.toArray=dOt;Vt.toObject=fOt;Vt.toDate=cOt;Vt.toISOString=Jvt;Vt.inspect=eOt;typeof Symbol<"u"&&Symbol.for!=null&&(Vt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Vt.toJSON=hOt;Vt.toString=Kvt;Vt.unix=uOt;Vt.valueOf=lOt;Vt.creationData=bOt;Vt.eraName=SOt;Vt.eraNarrow=EOt;Vt.eraAbbr=wOt;Vt.eraYear=TOt;Vt.year=iOe;Vt.isLeapYear=Jbt;Vt.weekYear=IOt;Vt.isoWeekYear=DOt;Vt.quarter=Vt.quarters=FOt;Vt.month=uOe;Vt.daysInMonth=cyt;Vt.week=Vt.weeks=yyt;Vt.isoWeek=Vt.isoWeeks=vyt;Vt.weeksInYear=MOt;Vt.weeksInWeekYear=LOt;Vt.isoWeeksInYear=NOt;Vt.isoWeeksInISOWeekYear=POt;Vt.date=NOe;Vt.day=Vt.days=Dyt;Vt.weekday=Nyt;Vt.isoWeekday=Pyt;Vt.dayOfYear=BOt;Vt.hour=Vt.hours=zyt;Vt.minute=Vt.minutes=UOt;Vt.second=Vt.seconds=zOt;Vt.millisecond=Vt.milliseconds=POe;Vt.utcOffset=wvt;Vt.utc=xvt;Vt.local=kvt;Vt.parseZone=Cvt;Vt.hasAlignedHourOffset=_vt;Vt.isDST=Avt;Vt.isLocal=Ivt;Vt.isUtcOffset=Dvt;Vt.isUtc=EOe;Vt.isUTC=EOe;Vt.zoneAbbr=HOt;Vt.zoneName=VOt;Vt.dates=Rd("dates accessor is deprecated. Use date instead.",NOe);Vt.months=Rd("months accessor is deprecated. Use month instead",uOe);Vt.years=Rd("years accessor is deprecated. Use year instead",iOe);Vt.zone=Rd("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Tvt);Vt.isDSTShifted=Rd("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Rvt);function WOt(e){return Xi(e*1e3)}function QOt(){return Xi.apply(null,arguments).parseZone()}function MOe(e){return e}var ii=vG.prototype;ii.calendar=Ibt;ii.longDateFormat=Mbt;ii.invalidDate=$bt;ii.ordinal=Ubt;ii.preparse=MOe;ii.postformat=MOe;ii.relativeTime=jbt;ii.pastFuture=Hbt;ii.set=Abt;ii.eras=yOt;ii.erasParse=vOt;ii.erasConvertYear=OOt;ii.erasAbbrRegex=kOt;ii.erasNameRegex=xOt;ii.erasNarrowRegex=COt;ii.months=syt;ii.monthsShort=oyt;ii.monthsParse=uyt;ii.monthsRegex=fyt;ii.monthsShortRegex=dyt;ii.week=pyt;ii.firstDayOfYear=byt;ii.firstDayOfWeek=gyt;ii.weekdays=Cyt;ii.weekdaysMin=Ayt;ii.weekdaysShort=_yt;ii.weekdaysParse=Iyt;ii.weekdaysRegex=Myt;ii.weekdaysShortRegex=Lyt;ii.weekdaysMinRegex=$yt;ii.isPM=Byt;ii.meridiem=jyt;function zI(e,t,n,r){var i=Im(),a=cp().set(r,t);return i[n](a,e)}function LOe(e,t,n){if(vm(e)&&(t=e,e=void 0),e=e||"",t!=null)return zI(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=zI(e,r,n,"month");return i}function $G(e,t,n,r){typeof e=="boolean"?(vm(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,vm(t)&&(n=t,t=void 0),t=t||"");var i=Im(),a=e?i._week.dow:0,s,o=[];if(n!=null)return zI(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=zI(t,(s+a)%7,r,"day");return o}function YOt(e,t){return LOe(e,t,"months")}function qOt(e,t){return LOe(e,t,"monthsShort")}function GOt(e,t,n){return $G(e,t,n,"weekdays")}function ZOt(e,t,n){return $G(e,t,n,"weekdaysShort")}function XOt(e,t,n){return $G(e,t,n,"weekdaysMin")}mg("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Fr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});cn.lang=Rd("moment.lang is deprecated. Use moment.locale instead.",mg);cn.langData=Rd("moment.langData is deprecated. Use moment.localeData instead.",Im);var Np=Math.abs;function KOt(){var e=this._data;return this._milliseconds=Np(this._milliseconds),this._days=Np(this._days),this._months=Np(this._months),e.milliseconds=Np(e.milliseconds),e.seconds=Np(e.seconds),e.minutes=Np(e.minutes),e.hours=Np(e.hours),e.months=Np(e.months),e.years=Np(e.years),this}function $Oe(e,t,n,r){var i=Ff(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function JOt(e,t){return $Oe(this,e,t,1)}function eSt(e,t){return $Oe(this,e,t,-1)}function Kae(e){return e<0?Math.floor(e):Math.ceil(e)}function tSt(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Kae(kB(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=nd(e/1e3),r.seconds=i%60,a=nd(i/60),r.minutes=a%60,s=nd(a/60),r.hours=s%24,t+=nd(s/24),l=nd(FOe(t)),n+=l,t-=Kae(kB(l)),o=nd(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function FOe(e){return e*4800/146097}function kB(e){return e*146097/4800}function nSt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Id(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+FOe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kB(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Dm(e){return function(){return this.as(e)}}var BOe=Dm("ms"),rSt=Dm("s"),iSt=Dm("m"),aSt=Dm("h"),sSt=Dm("d"),oSt=Dm("w"),lSt=Dm("M"),uSt=Dm("Q"),cSt=Dm("y"),dSt=BOe;function fSt(){return Ff(this)}function hSt(e){return e=Id(e),this.isValid()?this[e+"s"]():NaN}function Oy(e){return function(){return this.isValid()?this._data[e]:NaN}}var pSt=Oy("milliseconds"),mSt=Oy("seconds"),gSt=Oy("minutes"),bSt=Oy("hours"),ySt=Oy("days"),vSt=Oy("months"),OSt=Oy("years");function SSt(){return nd(this.days()/7)}var $p=Math.round,SO={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ESt(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function wSt(e,t,n,r){var i=Ff(e).abs(),a=$p(i.as("s")),s=$p(i.as("m")),o=$p(i.as("h")),l=$p(i.as("d")),c=$p(i.as("M")),d=$p(i.as("w")),h=$p(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,ESt.apply(null,p)}function TSt(e){return e===void 0?$p:typeof e=="function"?($p=e,!0):!1}function xSt(e,t){return SO[e]===void 0?!1:t===void 0?SO[e]:(SO[e]=t,e==="s"&&(SO.ss=t-1),!0)}function kSt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=SO,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},SO,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=wSt(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var CL=Math.abs;function Lv(e){return(e>0)-(e<0)||+e}function B6(){if(!this.isValid())return this.localeData().invalidDate();var e=CL(this._milliseconds)/1e3,t=CL(this._days),n=CL(this._months),r,i,a,s,o=this.asSeconds(),l,c,d,h;return o?(r=nd(e/60),i=nd(r/60),e%=60,r%=60,a=nd(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",c=Lv(this._months)!==Lv(o)?"-":"",d=Lv(this._days)!==Lv(o)?"-":"",h=Lv(this._milliseconds)!==Lv(o)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?h+i+"H":"")+(r?h+r+"M":"")+(e?h+s+"S":"")):"P0D"}var Gr=$6.prototype;Gr.isValid=vvt;Gr.abs=KOt;Gr.add=JOt;Gr.subtract=eSt;Gr.as=nSt;Gr.asMilliseconds=BOe;Gr.asSeconds=rSt;Gr.asMinutes=iSt;Gr.asHours=aSt;Gr.asDays=sSt;Gr.asWeeks=oSt;Gr.asMonths=lSt;Gr.asQuarters=uSt;Gr.asYears=cSt;Gr.valueOf=dSt;Gr._bubble=tSt;Gr.clone=fSt;Gr.get=hSt;Gr.milliseconds=pSt;Gr.seconds=mSt;Gr.minutes=gSt;Gr.hours=bSt;Gr.days=ySt;Gr.weeks=SSt;Gr.months=vSt;Gr.years=OSt;Gr.humanize=kSt;Gr.toISOString=B6;Gr.toString=B6;Gr.toJSON=B6;Gr.locale=kOe;Gr.localeData=_Oe;Gr.toIsoString=Rd("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",B6);Gr.lang=COe;Hn("X",0,0,"unix");Hn("x",0,0,"valueOf");On("x",N6);On("X",Ybt);ki("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ki("x",function(e,t,n){n._d=new Date(Fr(e))});//! moment.js -cn.version="2.30.1";Cbt(Xi);cn.fn=Vt;cn.min=mvt;cn.max=gvt;cn.now=bvt;cn.utc=cp;cn.unix=WOt;cn.months=YOt;cn.isDate=BC;cn.locale=mg;cn.invalid=A6;cn.duration=Ff;cn.isMoment=xf;cn.weekdays=GOt;cn.parseZone=QOt;cn.localeData=Im;cn.isDuration=_5;cn.monthsShort=qOt;cn.weekdaysMin=XOt;cn.defineLocale=AG;cn.updateLocale=Qyt;cn.locales=Yyt;cn.weekdaysShort=ZOt;cn.normalizeUnits=Id;cn.relativeTimeRounding=TSt;cn.relativeTimeThreshold=xSt;cn.calendarFormat=jvt;cn.prototype=Vt;cn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function CSt(e){var v,S;const{open:t,onClose:n}=e,r=Sa(SN),{data:i,fetchNextPage:a,hasNextPage:s}=kbt((v=r.data)==null?void 0:v.id),{mutateAsync:o}=OBe(((S=r.data)==null?void 0:S.id)||""),l=M.useMemo(()=>(i==null?void 0:i.pages.reduce((w,T)=>w.concat(T.workspaceUsers),[]))??[],[i==null?void 0:i.pages]),{enqueueSnackbar:c}=C6(),[d,h]=M.useState(null),p=async w=>{let T;if(w.expiredString===YO[0])T=null;else{const[k,C]=w.expiredString.split(" ");T=cn().add(Number(k),C).toDate()}const{invitationToken:x}=await o({expiredAt:T});h(`${window.location.origin}/join/${x}`)},b=async()=>{d&&(await vy.write(d),c("URL Copied!",{variant:"success"}))};return D.jsx(zg,{open:t,disableAutoFocus:!0,onClose:n,children:D.jsxs(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx(ys,{sx:{position:"absolute",top:28,right:28},onClick:n,children:D.jsx(_6,{})}),D.jsxs(kr,{gap:4,children:[D.jsx(Xr,{variant:"h5",children:"Members"}),D.jsxs(kr,{gap:1,children:[D.jsx(Xr,{variant:"subtitle1",children:"Invite Link"}),D.jsx(_f,{children:D.jsx(FC,{defaultValues:{expiredString:YO[0]},onSuccess:p,children:D.jsxs(kr,{direction:"row",justifyContent:"space-between",gap:2,children:[D.jsx(vB,{label:"Expired Date",name:"expiredString",options:YO.map(w=>({id:w,label:w})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(lo,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!d&&D.jsxs(kr,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(Xr,{variant:"body1",children:d}),D.jsx(ab,{title:"Copy URL",children:D.jsx(ys,{onClick:b,children:D.jsx(y6,{})})})]})]}),D.jsx(bs,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:D.jsx(uk,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:D.jsx(bs,{className:"loader",children:D.jsx(Tm,{size:"sm"})},0),useWindow:!1,children:D.jsx(kr,{gap:2,children:l.map(w=>{var T;return D.jsx(kr,{direction:"row",alignItems:"center",children:D.jsxs(kr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(rN,{children:(T=w.nickname)==null?void 0:T[0]}),D.jsx(Xr,{children:w.nickname})]})},w.id)})})})})]})]})})}const _L=240;function _St(){var k,C,I,_,A;const e=Cm(),t=Sa(Xz),n=Sa(SN),{mutateAsync:r}=hBe(((k=n.data)==null?void 0:k.id)||""),[i,a]=M.useState(null),[s,o]=M.useState(null),[l,c]=M.useState(!1),[d,h]=M.useState(!1),p=U=>{a(U.currentTarget)},b=()=>{a(null)},v=U=>{o(U.currentTarget)},S=()=>{o(null)},w=async U=>{const F=await r(U);e(F.id)},T=()=>{c(U=>!U)},x=()=>{h(U=>!U)};return D.jsxs(aNe,{sx:{width:_L,flexShrink:0,"& .MuiDrawer-paper":{width:_L,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[D.jsxs(jv,{disablePadding:!0,children:[D.jsxs(_8,{onClick:v,children:[D.jsx(og,{primary:(C=n.data)==null?void 0:C.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),D.jsx(OR,{children:D.jsx(ys,{children:s?D.jsx(Vve,{}):D.jsx(Hve,{})})})]}),D.jsx(Sbt,{open:!!s,anchorEl:s,onClose:S,width:_L-32})]}),D.jsx(Yp,{}),D.jsx(jv,{children:D.jsx(lo,{variant:"contained",startIcon:D.jsx(hG,{}),sx:{width:1},onClick:T,children:"New Note"})}),D.jsx(Yp,{}),D.jsx(jv,{disablePadding:!0,children:D.jsxs(_8,{onClick:x,children:[D.jsx(oN,{children:D.jsx(qve,{})}),D.jsx(og,{primary:"Members"})]})}),D.jsx(Yp,{}),D.jsx(jv,{sx:{mt:"auto"},children:D.jsx(kr,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:D.jsx(aG,{})})}),D.jsx(Yp,{}),D.jsxs(jv,{disablePadding:!0,children:[D.jsxs(_8,{onClick:p,children:[D.jsx(K6e,{children:D.jsx(rN,{children:(_=(I=t.data)==null?void 0:I.nickname)==null?void 0:_.charAt(0)})}),D.jsx(og,{primary:(A=t.data)==null?void 0:A.nickname}),D.jsx(OR,{children:D.jsx(zve,{})})]}),D.jsx(ibt,{open:!!i,anchorEl:i,onClose:b})]}),D.jsx(Yve,{open:l,title:"Note",onSuccess:w,onClose:T}),D.jsx(CSt,{open:d,onClose:x})]})}var FG={},ASt=Ma;Object.defineProperty(FG,"__esModule",{value:!0});var UOe=FG.default=void 0,RSt=ASt(La()),Jae=D;UOe=FG.default=(0,RSt.default)([(0,Jae.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Jae.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ISt(e){const{document:t}=e,n=Cm(),r=lE(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return D.jsx(xz,{sx:{width:"100%"},children:D.jsx(wce,{onClick:i,children:D.jsxs(AIe,{children:[D.jsx(Xr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),D.jsxs(kr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(UOe,{fontSize:"small",sx:{color:"text.secondary"}}),D.jsxs(Xr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",cn(t.updatedAt).fromNow()]})]})]})})})}function DSt(){const e=lE(),{data:t}=Ofe(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=dBe(t==null?void 0:t.id),a=M.useMemo(()=>(n==null?void 0:n.pages.reduce((s,o)=>s.concat(o.documents),[]))??[],[n==null?void 0:n.pages]);return D.jsxs(kr,{direction:"row",children:[D.jsx(_St,{}),D.jsx(bs,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:D.jsx(uk,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:D.jsx(bs,{className:"loader",children:D.jsx(Tm,{size:"sm"})},0),useWindow:!1,children:D.jsx(bs,{p:2,width:1,children:D.jsx(dO,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:a.map(s=>D.jsx(dO,{item:!0,xs:4,sm:4,md:4,lg:3,children:D.jsx(ISt,{document:s})},s.id))})})})})]})}function NSt(){const e=gde();return D.jsx(kr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:D.jsxs(kr,{alignItems:"center",children:[D.jsx(Xr,{variant:"h5",children:"Something went wrong"}),Pz(e)&&D.jsxs(Xr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function PSt(){const e=lE(),t=Cm(),{mutateAsync:n}=SBe();return M.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),D.jsx(Wk,{open:!0,children:D.jsx(Tm,{color:"inherit"})})}function MSt(){return D.jsx(bs,{})}var BG={},LSt=Ma;Object.defineProperty(BG,"__esModule",{value:!0});var zOe=BG.default=void 0,$St=LSt(La()),FSt=D;zOe=BG.default=(0,$St.default)((0,FSt.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var UG={},BSt=Ma;Object.defineProperty(UG,"__esModule",{value:!0});var jOe=UG.default=void 0,USt=BSt(La()),zSt=D;jOe=UG.default=(0,USt.default)((0,zSt.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var zG={},jSt=Ma;Object.defineProperty(zG,"__esModule",{value:!0});var HOe=zG.default=void 0,HSt=jSt(La()),VSt=D;HOe=zG.default=(0,HSt.default)((0,VSt.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");var CB=(e=>(e.READ="READ",e.EDIT="EDIT",e))(CB||{});function WSt(e){var d,h;const{...t}=e,n=lE(),[r,i]=M.useState(null),a=Sa(tj),{mutateAsync:s}=pBe(((d=a.data)==null?void 0:d.workspaceId)||"",((h=a.data)==null?void 0:h.id)||""),{enqueueSnackbar:o}=C6(),l=async p=>{let b;if(p.expiredString===YO[0])b=null;else{const[S,w]=p.expiredString.split(" ");b=cn().add(Number(S),w).toDate()}const{sharingToken:v}=await s({role:p.role,expiredAt:b});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${v}`)},c=async()=>{r&&(await vy.write(r),o("URL Copied!",{variant:"success"}))};return D.jsx(zg,{disableAutoFocus:!0,...t,children:D.jsxs(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx(ys,{sx:{position:"absolute",top:28,right:28},onClick:p=>{var b;return(b=e.onClose)==null?void 0:b.call(e,p,"backdropClick")},children:D.jsx(_6,{})}),D.jsxs(kr,{gap:1,children:[D.jsx(Xr,{variant:"subtitle1",children:"Share Link"}),D.jsx(_f,{children:D.jsx(FC,{defaultValues:{expiredString:YO[0],role:Object.values(CB)[0]},onSuccess:l,children:D.jsxs(kr,{gap:2,children:[D.jsx(vB,{label:"Role",name:"role",options:Object.values(CB).map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(vB,{label:"Expired Date",name:"expiredString",options:YO.map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(lo,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&D.jsxs(kr,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(Xr,{variant:"body1",width:1,noWrap:!0,children:r}),D.jsx(ab,{title:"Copy URL",children:D.jsx(ys,{onClick:c,children:D.jsx(y6,{})})})]})]})]})})}function QSt(){const[e,t]=M.useState(!1),n=()=>{t(r=>!r)};return D.jsxs(D.Fragment,{children:[D.jsx(ys,{onClick:n,color:"inherit",children:D.jsx(HOe,{})}),D.jsx(WSt,{open:e,onClose:n})]})}var jG={},YSt=Ma;Object.defineProperty(jG,"__esModule",{value:!0});var VOe=jG.default=void 0,qSt=YSt(La()),GSt=D;VOe=jG.default=(0,qSt.default)((0,GSt.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");function ZSt(){const e=Af(),t=Cm(),n=Sa(dE),r=Sa(SN),[i,{set:a,push:s,removeAt:o,clear:l,filter:c}]=Cdt([]);M.useEffect(()=>{n.shareRole==="READ"&&e(n$("read"))},[e,n.shareRole]),M.useEffect(()=>{if(!n.doc)return;a(n.doc.getPresences());const p=n.doc.subscribe("others",b=>{var v,S;b.type==="watched"&&a(((S=(v=n.doc)==null?void 0:v.getPresences)==null?void 0:S.call(v))??[]),b.type==="unwatched"&&c(w=>w.clientID!==b.value.clientID)});return()=>{p(),l()}},[n.doc,l,s,o,a,c]);const d=p=>{p&&e(n$(p))},h=()=>{var p;t(`/${(p=r.data)==null?void 0:p.slug}`)};return D.jsx(nce,{position:"static",sx:{zIndex:100},children:D.jsx(qce,{children:D.jsxs(kr,{width:"100%",direction:"row",justifyContent:"space-between",children:[D.jsxs(kr,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&D.jsx(ab,{title:"Back to Previous Page",children:D.jsx(ys,{color:"inherit",onClick:h,children:D.jsx(VOe,{})})}),D.jsx(po,{children:n.shareRole!=="READ"&&D.jsxs(yMe,{value:n.mode,exclusive:!0,onChange:(p,b)=>d(b),size:"small",children:[D.jsx(I8,{value:"edit","aria-label":"edit",children:D.jsx(ab,{title:"Edit Mode",children:D.jsx(zOe,{})})}),D.jsx(I8,{value:"both","aria-label":"both",children:D.jsx(ab,{title:"Both Mode",children:D.jsx(jOe,{})})}),D.jsx(I8,{value:"read","aria-label":"read",children:D.jsx(ab,{title:"Read Mode",children:D.jsx(eG,{})})})]})})]}),D.jsxs(kr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(zRe,{max:4,children:i==null?void 0:i.map(p=>D.jsx(ab,{title:p.presence.name,children:D.jsx(rN,{alt:p.presence.name,sx:{bgcolor:p.presence.color},children:p.presence.name[0]})},p.clientID))}),!n.shareRole&&D.jsx(QSt,{}),D.jsx(aG,{})]})]})})})}function XSt(){return D.jsxs(bs,{sx:{flexGrow:1},height:"100vh",children:[D.jsx(ZSt,{}),D.jsx($z,{})]})}const KSt=e=>["documents","share",e],JSt=e=>{const t=Af(),n=eC({queryKey:KSt(e||""),enabled:!!e,queryFn:async()=>(await Rr.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return M.useEffect(()=>(n.data&&t(PR(n.data)),()=>{t(PR(null))}),[t,n.data]),n};function eEt(){const e=Af(),t=oy(),[n]=Fz(),r=M.useMemo(()=>n.get("token"),[n]),{data:i}=JSt(r),{doc:a,client:s,cleanUpYorkieDocument:o}=oye(i==null?void 0:i.yorkieDocumentId,"Anonymous");return M.useEffect(()=>{i!=null&&i.role&&(e(kFe(i.role)),i.role==="READ"&&e(n$("read")))},[e,i==null?void 0:i.role]),M.useEffect(()=>{if(!(!a||!s))return e(AR(a)),e(RR(s)),()=>{o(),e(AR(null)),e(RR(null))}},[o,e,s,a]),r?D.jsx(bs,{height:"calc(100% - 64px)",children:D.jsx(Kbe,{})}):D.jsx(Lz,{to:"/",state:{from:t},replace:!0})}const tEt=[{path:"",accessType:2,element:D.jsx(V1t,{}),children:[{path:"",element:D.jsx(MSt,{})},{path:"login",element:D.jsx(Y1t,{})}]},{path:":workspaceSlug",accessType:1,element:D.jsx(G1t,{}),children:[{path:"",element:D.jsx(DSt,{})}]},{path:":workspaceSlug",element:D.jsx(XSt,{}),children:[{path:":documentId",accessType:1,element:D.jsx(L1t,{})},{path:":documentId/share",accessType:0,element:D.jsx(eEt,{})}]},{path:"auth/callback",accessType:2,element:D.jsx(q1t,{})},{path:"join/:invitationToken",accessType:1,element:D.jsx(PSt,{})}],nEt=e=>{const t=n=>(n.accessType===1?n.element=D.jsx(X1t,{children:n.element}):n.accessType===2&&(n.element=D.jsx(Z1t,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=D.jsx(NSt,{}),n))},rEt=nEt(tEt),WOe=e=>["users",e],iEt=()=>{const e=Af(),t=Sa(IC);t.accessToken&&(Rr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=eC({queryKey:WOe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await Rr.get("/users")).data});return M.useEffect(()=>{n.isSuccess?e(r$(n.data)):n.isError&&(e(xq(null)),e(r$(null)),Rr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},aEt=()=>{const e=Sa(IC),t=Jk();return Hg({mutationFn:async n=>(await Rr.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:WOe(e.accessToken||"")})}})};function sEt(e){const[t,n]=M.useState(""),[r,i]=M.useState(""),{data:a}=Qve(r),{mutateAsync:s}=aEt(),o=M.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);kq(()=>{i(t)},500,[t]);const l=d=>{n(d.target.value)},c=async d=>{await s(d)};return D.jsx(zg,{disableAutoFocus:!0,...e,children:D.jsx(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:D.jsxs(kr,{gap:4,children:[D.jsx(Xr,{variant:"h5",children:"Create Your Nickname"}),D.jsx(_f,{children:D.jsx(FC,{defaultValues:{nickname:""},onSuccess:c,children:D.jsxs(kr,{gap:4,alignItems:"flex-end",children:[D.jsx(k6,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),D.jsx(lo,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function oEt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=iEt(),a=M.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return D.jsx(sG.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?D.jsx(sEt,{open:!0}):t})}function lEt(){const{enqueueSnackbar:e}=C6();return M.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}const QOe=Object.prototype.toString;function YOe(e){switch(QOe.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Om(e,Error)}}function $E(e,t){return QOe.call(e)===`[object ${t}]`}function HG(e){return $E(e,"ErrorEvent")}function ese(e){return $E(e,"DOMError")}function uEt(e){return $E(e,"DOMException")}function Gh(e){return $E(e,"String")}function VG(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function WG(e){return e===null||VG(e)||typeof e!="object"&&typeof e!="function"}function YS(e){return $E(e,"Object")}function U6(e){return typeof Event<"u"&&Om(e,Event)}function cEt(e){return typeof Element<"u"&&Om(e,Element)}function dEt(e){return $E(e,"RegExp")}function z6(e){return!!(e&&e.then&&typeof e.then=="function")}function fEt(e){return YS(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function qOe(e){return typeof e=="number"&&e!==e}function Om(e,t){try{return e instanceof t}catch{return!1}}function GOe(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function XO(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function tse(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rhEt(e,r,n))}function pEt(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!Om(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=mEt(_B(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function _B(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(Om(r[i],Error)){nse(s,o);const c=e(t,r[i]),d=l.length;rse(c,i,d,o),l=_B(e,t,n,r[i],i,[c,...l],c,d)}return Array.isArray(r.errors)&&r.errors.forEach((c,d)=>{if(Om(c,Error)){nse(s,o);const h=e(t,c),p=l.length;rse(h,`errors[${d}]`,p,o),l=_B(e,t,n,c,i,[h,...l],h,p)}}),l}function nse(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function rse(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function mEt(e,t){return e.map(n=>(n.value&&(n.value=XO(n.value,t)),n))}function w3(e){return e&&e.Math==Math?e:void 0}const ui=typeof globalThis=="object"&&w3(globalThis)||typeof window=="object"&&w3(window)||typeof self=="object"&&w3(self)||typeof global=="object"&&w3(global)||function(){return this}()||{};function QG(){return ui}function ZOe(e,t,n){const r=n||ui,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const KO=QG(),gEt=80;function pk(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let c;const d=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||gEt;for(;n&&a++1&&s+i.length*l+c.length>=h));)i.push(c),s+=c.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function bEt(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(KO.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(h=>n.getAttribute(h)).map(h=>[h,n.getAttribute(h)]):null;if(c&&c.length)c.forEach(h=>{r.push(`[${h[0]}="${h[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Gh(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,OEt="Sentry Logger ",AB=["debug","info","warn","error","log","assert","trace"],jI={};function j6(e){if(!("console"in ui))return e();const t=ui.console,n={},r=Object.keys(jI);r.forEach(i=>{const a=jI[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function SEt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return FE?AB.forEach(n=>{t[n]=(...r)=>{e&&j6(()=>{ui.console[n](`${OEt}[${n}]:`,...r)})}}):AB.forEach(n=>{t[n]=()=>{}}),t}const Mt=SEt(),EEt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function wEt(e){return e==="http"||e==="https"}function VC(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function TEt(e){const t=EEt.exec(e);if(!t){j6(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",c=o;const d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){const h=c.match(/^\d+/);h&&(c=h[0])}return KOe({host:a,pass:i,path:l,projectId:c,port:s,protocol:n,publicKey:r})}function KOe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function xEt(e){if(!FE)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Mt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?wEt(r)?t&&isNaN(parseInt(t,10))?(Mt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Mt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Mt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function kEt(e){const t=typeof e=="string"?TEt(e):KOe(e);if(!(!t||!xEt(t)))return t}class Ah extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function co(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&JOe(i,r),e[t]=i}function mk(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{FE&&Mt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function JOe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,mk(e,"__sentry_original__",t)}catch{}}function YG(e){return e.__sentry_original__}function CEt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function eSe(e){if(YOe(e))return{message:e.message,name:e.name,stack:e.stack,...ase(e)};if(U6(e)){const t={type:e.type,target:ise(e.target),currentTarget:ise(e.currentTarget),...ase(e)};return typeof CustomEvent<"u"&&Om(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function ise(e){try{return cEt(e)?pk(e):Object.prototype.toString.call(e)}catch{return""}}function ase(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function _Et(e,t=40){const n=Object.keys(eSe(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return XO(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:XO(i,t)}return""}function cd(e){return RB(e,new Map)}function RB(e,t){if(AEt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=RB(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(RB(i,t))}),r}return e}function AEt(e){if(!YS(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const tSe=50,sse=/\(error: (.*)\)/,ose=/captureMessage|captureException/;function nSe(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` -`);for(let s=r;s1024)continue;const l=sse.test(o)?o.replace(sse,"$1"):o;if(!l.match(/\S*Error: /)){for(const c of t){const d=c(l);if(d){i.push(d);break}}if(i.length>=tSe)break}}return IEt(i)}}function REt(e){return Array.isArray(e)?nSe(...e):e}function IEt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),ose.test(t[t.length-1].function||"")&&(t.pop(),ose.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,tSe).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const AL="";function Sm(e){try{return!e||typeof e!="function"?AL:e.name||AL}catch{return AL}}const R5={},lse={};function Sy(e,t){R5[e]=R5[e]||[],R5[e].push(t)}function Ey(e,t){lse[e]||(t(),lse[e]=!0)}function vf(e,t){const n=e&&R5[e];if(n)for(const r of n)try{r(t)}catch(i){FE&&Mt.error(`Error while triggering instrumentation handler. +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var use={};function mOe(e,t){cn.deprecationHandler!=null&&cn.deprecationHandler(e,t),use[e]||(pOe(t),use[e]=!0)}cn.suppressDeprecationWarnings=!1;cn.deprecationHandler=null;function fp(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function _yt(e){var t,n;for(n in e)ri(e,n)&&(t=e[n],fp(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function SB(e,t){var n=X0({},e),r;for(r in t)ri(t,r)&&($b(e[r])&&$b(t[r])?(n[r]={},X0(n[r],e[r]),X0(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)ri(e,r)&&!ri(t,r)&&$b(e[r])&&(n[r]=X0({},n[r]));return n}function xG(e){e!=null&&this.set(e)}var EB;Object.keys?EB=Object.keys:EB=function(e){var t,n=[];for(t in e)ri(e,t)&&n.push(t);return n};var Ayt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ryt(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return fp(r)?r.call(t,n):r}function Xh(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var kG=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C3=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xL={},GO={};function Hn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(GO[e]=i),t&&(GO[t[0]]=function(){return Xh(i.apply(this,arguments),t[1],t[2])}),n&&(GO[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Iyt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Dyt(e){var t=e.match(kG),n,r;for(n=0,r=t.length;n=0&&C3.test(e);)e=e.replace(C3,r),C3.lastIndex=0,n-=1;return e}var Nyt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Pyt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(kG).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Myt="Invalid date";function Lyt(){return this._invalidDate}var $yt="%d",Fyt=/\d{1,2}/;function Byt(e){return this._ordinal.replace("%d",e)}var Uyt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function zyt(e,t,n,r){var i=this._relativeTime[n];return fp(i)?i(e,t,n,r):i.replace(/%d/i,e)}function jyt(e,t){var n=this._relativeTime[e>0?"future":"past"];return fp(n)?n(t):n.replace(/%s/i,t)}var cse={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Id(e){return typeof e=="string"?cse[e]||cse[e.toLowerCase()]:void 0}function CG(e){var t={},n,r;for(r in e)ri(e,r)&&(n=Id(r),n&&(t[n]=e[r]));return t}var Hyt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Vyt(e){var t=[],n;for(n in e)ri(e,n)&&t.push({unit:n,priority:Hyt[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var bOe=/\d/,Sc=/\d\d/,yOe=/\d{3}/,_G=/\d{4}/,I6=/[+-]?\d{6}/,ea=/\d\d?/,vOe=/\d\d\d\d?/,OOe=/\d\d\d\d\d\d?/,D6=/\d{1,3}/,AG=/\d{1,4}/,N6=/[+-]?\d{1,6}/,ME=/\d+/,P6=/[+-]?\d+/,Wyt=/Z|[+-]\d\d:?\d\d/gi,M6=/Z|[+-]\d\d(?::?\d\d)?/gi,Qyt=/[+-]?\d+(\.\d{1,3})?/,YC=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,LE=/^[1-9]\d?/,RG=/^([1-9]\d|\d)/,jI;jI={};function On(e,t,n){jI[e]=fp(t)?t:function(r,i){return r&&n?n:t}}function Yyt(e,t){return ri(jI,e)?jI[e](t._strict,t._locale):new RegExp(qyt(e))}function qyt(e){return nm(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function nm(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function nd(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Br(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=nd(t)),n}var wB={};function ki(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Om(t)&&(r=function(a,s){s[t]=Br(a)}),i=e.length,n=0;n68?1900:2e3)};var SOe=$E("FullYear",!0);function Kyt(){return L6(this.year())}function $E(e,t){return function(n){return n!=null?(EOe(this,e,n),cn.updateOffset(this,t),this):fk(this,e)}}function fk(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function EOe(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!L6(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function Jyt(e){return e=Id(e),fp(this[e])?this[e]():this}function evt(e,t){if(typeof e=="object"){e=CG(e);var n=Vyt(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function hk(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function HI(e,t,n){var r=7+t-n,i=(7+hk(e,0,r).getUTCDay()-t)%7;return-i+r-1}function _Oe(e,t,n,r,i){var a=(7+n-r)%7,s=HI(e,r,i),o=1+7*(t-1)+a+s,l,c;return o<=0?(l=e-1,c=Y2(l)+o):o>Y2(e)?(l=e+1,c=o-Y2(e)):(l=e,c=o),{year:l,dayOfYear:c}}function pk(e,t,n){var r=HI(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+rm(s,t,n)):i>rm(e.year(),t,n)?(a=i-rm(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function rm(e,t,n){var r=HI(e,t,n),i=HI(e+1,t,n);return(Y2(e)-r+i)/7}Hn("w",["ww",2],"wo","week");Hn("W",["WW",2],"Wo","isoWeek");On("w",ea,LE);On("ww",ea,Sc);On("W",ea,LE);On("WW",ea,Sc);qC(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Br(e)});function hvt(e){return pk(e,this._week.dow,this._week.doy).week}var pvt={dow:0,doy:6};function mvt(){return this._week.dow}function gvt(){return this._week.doy}function bvt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function yvt(e){var t=pk(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Hn("d",0,"do","day");Hn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Hn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Hn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Hn("e",0,0,"weekday");Hn("E",0,0,"isoWeekday");On("d",ea);On("e",ea);On("E",ea);On("dd",function(e,t){return t.weekdaysMinRegex(e)});On("ddd",function(e,t){return t.weekdaysShortRegex(e)});On("dddd",function(e,t){return t.weekdaysRegex(e)});qC(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Er(n).invalidWeekday=e});qC(["d","e","E"],function(e,t,n,r){t[r]=Br(e)});function vvt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ovt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function DG(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Svt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),AOe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Evt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wvt=YC,Tvt=YC,xvt=YC;function kvt(e,t){var n=xf(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?DG(n,this._week.dow):e?n[e.day()]:n}function Cvt(e){return e===!0?DG(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function _vt(e){return e===!0?DG(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Avt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=dp([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Ha.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Ha.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Ha.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Ha.call(this._weekdaysParse,s),i!==-1||(i=Ha.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Ha.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Ha.call(this._shortWeekdaysParse,s),i!==-1||(i=Ha.call(this._weekdaysParse,s),i!==-1)?i:(i=Ha.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Ha.call(this._minWeekdaysParse,s),i!==-1||(i=Ha.call(this._weekdaysParse,s),i!==-1)?i:(i=Ha.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Rvt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Avt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=dp([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ivt(e){if(!this.isValid())return e!=null?this:NaN;var t=fk(this,"Day");return e!=null?(e=vvt(e,this.localeData()),this.add(e-t,"d")):t}function Dvt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Nvt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ovt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Pvt(e){return this._weekdaysParseExact?(ri(this,"_weekdaysRegex")||NG.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ri(this,"_weekdaysRegex")||(this._weekdaysRegex=wvt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Mvt(e){return this._weekdaysParseExact?(ri(this,"_weekdaysRegex")||NG.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ri(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tvt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Lvt(e){return this._weekdaysParseExact?(ri(this,"_weekdaysRegex")||NG.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ri(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xvt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function NG(){function e(d,h){return h.length-d.length}var t=[],n=[],r=[],i=[],a,s,o,l,c;for(a=0;a<7;a++)s=dp([2e3,1]).day(a),o=nm(this.weekdaysMin(s,"")),l=nm(this.weekdaysShort(s,"")),c=nm(this.weekdays(s,"")),t.push(o),n.push(l),r.push(c),i.push(o),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function PG(){return this.hours()%12||12}function $vt(){return this.hours()||24}Hn("H",["HH",2],0,"hour");Hn("h",["hh",2],0,PG);Hn("k",["kk",2],0,$vt);Hn("hmm",0,0,function(){return""+PG.apply(this)+Xh(this.minutes(),2)});Hn("hmmss",0,0,function(){return""+PG.apply(this)+Xh(this.minutes(),2)+Xh(this.seconds(),2)});Hn("Hmm",0,0,function(){return""+this.hours()+Xh(this.minutes(),2)});Hn("Hmmss",0,0,function(){return""+this.hours()+Xh(this.minutes(),2)+Xh(this.seconds(),2)});function ROe(e,t){Hn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ROe("a",!0);ROe("A",!1);function IOe(e,t){return t._meridiemParse}On("a",IOe);On("A",IOe);On("H",ea,RG);On("h",ea,LE);On("k",ea,LE);On("HH",ea,Sc);On("hh",ea,Sc);On("kk",ea,Sc);On("hmm",vOe);On("hmmss",OOe);On("Hmm",vOe);On("Hmmss",OOe);ki(["H","HH"],bs);ki(["k","kk"],function(e,t,n){var r=Br(e);t[bs]=r===24?0:r});ki(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ki(["h","hh"],function(e,t,n){t[bs]=Br(e),Er(n).bigHour=!0});ki("hmm",function(e,t,n){var r=e.length-2;t[bs]=Br(e.substr(0,r)),t[mf]=Br(e.substr(r)),Er(n).bigHour=!0});ki("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[bs]=Br(e.substr(0,r)),t[mf]=Br(e.substr(r,2)),t[Gp]=Br(e.substr(i)),Er(n).bigHour=!0});ki("Hmm",function(e,t,n){var r=e.length-2;t[bs]=Br(e.substr(0,r)),t[mf]=Br(e.substr(r))});ki("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[bs]=Br(e.substr(0,r)),t[mf]=Br(e.substr(r,2)),t[Gp]=Br(e.substr(i))});function Fvt(e){return(e+"").toLowerCase().charAt(0)==="p"}var Bvt=/[ap]\.?m?\.?/i,Uvt=$E("Hours",!0);function zvt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var DOe={calendar:Ayt,longDateFormat:Nyt,invalidDate:Myt,ordinal:$yt,dayOfMonthOrdinalParse:Fyt,relativeTime:Uyt,months:nvt,monthsShort:wOe,week:pvt,weekdays:Svt,weekdaysMin:Evt,weekdaysShort:AOe,meridiemParse:Bvt},ua={},IT={},mk;function jvt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=$6(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&jvt(a,r)>=n-1)break;n--}t++}return mk}function Vvt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function $6(e){var t=null,n;if(ua[e]===void 0&&typeof W5<"u"&&W5&&W5.exports&&Vvt(e))try{t=mk._abbr,n=require,n("./locale/"+e),pg(t)}catch{ua[e]=null}return ua[e]}function pg(e,t){var n;return e&&(Gl(t)?n=Im(e):n=MG(e,t),n?mk=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),mk._abbr}function MG(e,t){if(t!==null){var n,r=DOe;if(t.abbr=e,ua[e]!=null)mOe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ua[e]._config;else if(t.parentLocale!=null)if(ua[t.parentLocale]!=null)r=ua[t.parentLocale]._config;else if(n=$6(t.parentLocale),n!=null)r=n._config;else return IT[t.parentLocale]||(IT[t.parentLocale]=[]),IT[t.parentLocale].push({name:e,config:t}),null;return ua[e]=new xG(SB(r,t)),IT[e]&&IT[e].forEach(function(i){MG(i.name,i.config)}),pg(e),ua[e]}else return delete ua[e],null}function Wvt(e,t){if(t!=null){var n,r,i=DOe;ua[e]!=null&&ua[e].parentLocale!=null?ua[e].set(SB(ua[e]._config,t)):(r=$6(e),r!=null&&(i=r._config),t=SB(i,t),r==null&&(t.abbr=e),n=new xG(t),n.parentLocale=ua[e],ua[e]=n),pg(e)}else ua[e]!=null&&(ua[e].parentLocale!=null?(ua[e]=ua[e].parentLocale,e===pg()&&pg(e)):ua[e]!=null&&delete ua[e]);return ua[e]}function Im(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return mk;if(!xf(e)){if(t=$6(e),t)return t;e=[e]}return Hvt(e)}function Qvt(){return EB(ua)}function LG(e){var t,n=e._a;return n&&Er(e).overflow===-2&&(t=n[qp]<0||n[qp]>11?qp:n[_h]<1||n[_h]>IG(n[Lo],n[qp])?_h:n[bs]<0||n[bs]>24||n[bs]===24&&(n[mf]!==0||n[Gp]!==0||n[Tb]!==0)?bs:n[mf]<0||n[mf]>59?mf:n[Gp]<0||n[Gp]>59?Gp:n[Tb]<0||n[Tb]>999?Tb:-1,Er(e)._overflowDayOfYear&&(t_h)&&(t=_h),Er(e)._overflowWeeks&&t===-1&&(t=Zyt),Er(e)._overflowWeekday&&t===-1&&(t=Xyt),Er(e).overflow=t),e}var Yvt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qvt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gvt=/Z|[+-]\d\d(?::?\d\d)?/,_3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kL=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zvt=/^\/?Date\((-?\d+)/i,Xvt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kvt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function NOe(e){var t,n,r=e._i,i=Yvt.exec(r)||qvt.exec(r),a,s,o,l,c=_3.length,d=kL.length;if(i){for(Er(e).iso=!0,t=0,n=c;tY2(s)||e._dayOfYear===0)&&(Er(e)._overflowDayOfYear=!0),n=hk(s,0,e._dayOfYear),e._a[qp]=n.getUTCMonth(),e._a[_h]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[bs]===24&&e._a[mf]===0&&e._a[Gp]===0&&e._a[Tb]===0&&(e._nextDay=!0,e._a[bs]=0),e._d=(e._useUTC?hk:fvt).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[bs]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Er(e).weekdayMismatch=!0)}}function sOt(e){var t,n,r,i,a,s,o,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=Kv(t.GG,e._a[Lo],pk(Ji(),1,4).year),r=Kv(t.W,1),i=Kv(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,c=pk(Ji(),a,s),n=Kv(t.gg,e._a[Lo],c.year),r=Kv(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>rm(n,a,s)?Er(e)._overflowWeeks=!0:l!=null?Er(e)._overflowWeekday=!0:(o=_Oe(n,r,i,a,s),e._a[Lo]=o.year,e._dayOfYear=o.dayOfYear)}cn.ISO_8601=function(){};cn.RFC_2822=function(){};function FG(e){if(e._f===cn.ISO_8601){NOe(e);return}if(e._f===cn.RFC_2822){POe(e);return}e._a=[],Er(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,c,d;for(i=gOe(e._f,e._locale).match(kG)||[],d=i.length,n=0;n0&&Er(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),GO[a]?(r?Er(e).empty=!1:Er(e).unusedTokens.push(a),Gyt(a,r,e)):e._strict&&!r&&Er(e).unusedTokens.push(a);Er(e).charsLeftOver=o-l,t.length>0&&Er(e).unusedInput.push(t),e._a[bs]<=12&&Er(e).bigHour===!0&&e._a[bs]>0&&(Er(e).bigHour=void 0),Er(e).parsedDateParts=e._a.slice(0),Er(e).meridiem=e._meridiem,e._a[bs]=oOt(e._locale,e._a[bs],e._meridiem),c=Er(e).era,c!==null&&(e._a[Lo]=e._locale.erasConvertYear(c,e._a[Lo])),$G(e),LG(e)}function oOt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function lOt(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){Er(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:R6()});function $Oe(e,t){var n,r;if(t.length===1&&xf(t[0])&&(t=t[0]),!t.length)return Ji();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function AOt(){if(!Gl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return TG(e,this),e=MOe(e),e._a?(t=e._isUTC?dp(e._a):Ji(e._a),this._isDSTShifted=this.isValid()&&OOt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ROt(){return this.isValid()?!this._isUTC:!1}function IOt(){return this.isValid()?this._isUTC:!1}function BOe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var DOt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,NOt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ff(e,t){var n=e,r=null,i,a,s;return P5(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Om(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=DOt.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Br(r[_h])*i,h:Br(r[bs])*i,m:Br(r[mf])*i,s:Br(r[Gp])*i,ms:Br(TB(r[Tb]*1e3))*i}):(r=NOt.exec(e))?(i=r[1]==="-"?-1:1,n={y:J1(r[2],i),M:J1(r[3],i),w:J1(r[4],i),d:J1(r[5],i),h:J1(r[6],i),m:J1(r[7],i),s:J1(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=POt(Ji(n.from),Ji(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new F6(n),P5(e)&&ri(e,"_locale")&&(a._locale=e._locale),P5(e)&&ri(e,"_isValid")&&(a._isValid=e._isValid),a}Ff.fn=F6.prototype;Ff.invalid=vOt;function J1(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function fse(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function POt(e,t){var n;return e.isValid()&&t.isValid()?(t=UG(t,e),e.isBefore(t)?n=fse(e,t):(n=fse(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function UOe(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(mOe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Ff(n,r),zOe(this,i,e),this}}function zOe(e,t,n,r){var i=t._milliseconds,a=TB(t._days),s=TB(t._months);e.isValid()&&(r=r??!0,s&&xOe(e,fk(e,"Month")+s*n),a&&EOe(e,"Date",fk(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&cn.updateOffset(e,a||s))}var MOt=UOe(1,"add"),LOt=UOe(-1,"subtract");function jOe(e){return typeof e=="string"||e instanceof String}function $Ot(e){return kf(e)||WC(e)||jOe(e)||Om(e)||BOt(e)||FOt(e)||e===null||e===void 0}function FOt(e){var t=$b(e)&&!EG(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?N5(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fp(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",N5(n,"Z")):N5(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function JOt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function eSt(e){e||(e=this.isUtc()?cn.defaultFormatUtc:cn.defaultFormat);var t=N5(this,e);return this.localeData().postformat(t)}function tSt(e,t){return this.isValid()&&(kf(e)&&e.isValid()||Ji(e).isValid())?Ff({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nSt(e){return this.from(Ji(),e)}function rSt(e,t){return this.isValid()&&(kf(e)&&e.isValid()||Ji(e).isValid())?Ff({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function iSt(e){return this.to(Ji(),e)}function HOe(e){var t;return e===void 0?this._locale._abbr:(t=Im(e),t!=null&&(this._locale=t),this)}var VOe=Rd("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function WOe(){return this._locale}var VI=1e3,ZO=60*VI,WI=60*ZO,QOe=(365*400+97)*24*WI;function XO(e,t){return(e%t+t)%t}function YOe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-QOe:new Date(e,t,n).valueOf()}function qOe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-QOe:Date.UTC(e,t,n)}function aSt(e){var t,n;if(e=Id(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?qOe:YOe,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=XO(t+(this._isUTC?0:this.utcOffset()*ZO),WI);break;case"minute":t=this._d.valueOf(),t-=XO(t,ZO);break;case"second":t=this._d.valueOf(),t-=XO(t,VI);break}return this._d.setTime(t),cn.updateOffset(this,!0),this}function sSt(e){var t,n;if(e=Id(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?qOe:YOe,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=WI-XO(t+(this._isUTC?0:this.utcOffset()*ZO),WI)-1;break;case"minute":t=this._d.valueOf(),t+=ZO-XO(t,ZO)-1;break;case"second":t=this._d.valueOf(),t+=VI-XO(t,VI)-1;break}return this._d.setTime(t),cn.updateOffset(this,!0),this}function oSt(){return this._d.valueOf()-(this._offset||0)*6e4}function lSt(){return Math.floor(this.valueOf()/1e3)}function uSt(){return new Date(this.valueOf())}function cSt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function dSt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function fSt(){return this.isValid()?this.toISOString():null}function hSt(){return wG(this)}function pSt(){return X0({},Er(this))}function mSt(){return Er(this).overflow}function gSt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Hn("N",0,0,"eraAbbr");Hn("NN",0,0,"eraAbbr");Hn("NNN",0,0,"eraAbbr");Hn("NNNN",0,0,"eraName");Hn("NNNNN",0,0,"eraNarrow");Hn("y",["y",1],"yo","eraYear");Hn("y",["yy",2],0,"eraYear");Hn("y",["yyy",3],0,"eraYear");Hn("y",["yyyy",4],0,"eraYear");On("N",zG);On("NN",zG);On("NNN",zG);On("NNNN",CSt);On("NNNNN",_St);ki(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Er(n).era=i:Er(n).invalidEra=e});On("y",ME);On("yy",ME);On("yyy",ME);On("yyyy",ME);On("yo",ASt);ki(["y","yy","yyy","yyyy"],Lo);ki(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Lo]=n._locale.eraYearOrdinalParse(e,i):t[Lo]=parseInt(e,10)});function bSt(e,t){var n,r,i,a=this._eras||Im("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function vSt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?cn(e.since).year():cn(e.since).year()+(t-e.offset)*n}function OSt(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),LSt.call(this,e,t,n,r,i))}function LSt(e,t,n,r,i){var a=_Oe(e,t,n,r,i),s=hk(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Hn("Q",0,"Qo","quarter");On("Q",bOe);ki("Q",function(e,t){t[qp]=(Br(e)-1)*3});function $St(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Hn("D",["DD",2],"Do","date");On("D",ea,LE);On("DD",ea,Sc);On("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ki(["D","DD"],_h);ki("Do",function(e,t){t[_h]=Br(e.match(ea)[0])});var ZOe=$E("Date",!0);Hn("DDD",["DDDD",3],"DDDo","dayOfYear");On("DDD",D6);On("DDDD",yOe);ki(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Br(e)});function FSt(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Hn("m",["mm",2],0,"minute");On("m",ea,RG);On("mm",ea,Sc);ki(["m","mm"],mf);var BSt=$E("Minutes",!1);Hn("s",["ss",2],0,"second");On("s",ea,RG);On("ss",ea,Sc);ki(["s","ss"],Gp);var USt=$E("Seconds",!1);Hn("S",0,0,function(){return~~(this.millisecond()/100)});Hn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Hn(0,["SSS",3],0,"millisecond");Hn(0,["SSSS",4],0,function(){return this.millisecond()*10});Hn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Hn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Hn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Hn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Hn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});On("S",D6,bOe);On("SS",D6,Sc);On("SSS",D6,yOe);var K0,XOe;for(K0="SSSS";K0.length<=9;K0+="S")On(K0,ME);function zSt(e,t){t[Tb]=Br(("0."+e)*1e3)}for(K0="S";K0.length<=9;K0+="S")ki(K0,zSt);XOe=$E("Milliseconds",!1);Hn("z",0,0,"zoneAbbr");Hn("zz",0,0,"zoneName");function jSt(){return this._isUTC?"UTC":""}function HSt(){return this._isUTC?"Coordinated Universal Time":""}var Yt=QC.prototype;Yt.add=MOt;Yt.calendar=jOt;Yt.clone=HOt;Yt.diff=ZOt;Yt.endOf=sSt;Yt.format=eSt;Yt.from=tSt;Yt.fromNow=nSt;Yt.to=rSt;Yt.toNow=iSt;Yt.get=Jyt;Yt.invalidAt=mSt;Yt.isAfter=VOt;Yt.isBefore=WOt;Yt.isBetween=QOt;Yt.isSame=YOt;Yt.isSameOrAfter=qOt;Yt.isSameOrBefore=GOt;Yt.isValid=hSt;Yt.lang=VOe;Yt.locale=HOe;Yt.localeData=WOe;Yt.max=hOt;Yt.min=fOt;Yt.parsingFlags=pSt;Yt.set=evt;Yt.startOf=aSt;Yt.subtract=LOt;Yt.toArray=cSt;Yt.toObject=dSt;Yt.toDate=uSt;Yt.toISOString=KOt;Yt.inspect=JOt;typeof Symbol<"u"&&Symbol.for!=null&&(Yt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Yt.toJSON=fSt;Yt.toString=XOt;Yt.unix=lSt;Yt.valueOf=oSt;Yt.creationData=gSt;Yt.eraName=OSt;Yt.eraNarrow=SSt;Yt.eraAbbr=ESt;Yt.eraYear=wSt;Yt.year=SOe;Yt.isLeapYear=Kyt;Yt.weekYear=RSt;Yt.isoWeekYear=ISt;Yt.quarter=Yt.quarters=$St;Yt.month=kOe;Yt.daysInMonth=uvt;Yt.week=Yt.weeks=bvt;Yt.isoWeek=Yt.isoWeeks=yvt;Yt.weeksInYear=PSt;Yt.weeksInWeekYear=MSt;Yt.isoWeeksInYear=DSt;Yt.isoWeeksInISOWeekYear=NSt;Yt.date=ZOe;Yt.day=Yt.days=Ivt;Yt.weekday=Dvt;Yt.isoWeekday=Nvt;Yt.dayOfYear=FSt;Yt.hour=Yt.hours=Uvt;Yt.minute=Yt.minutes=BSt;Yt.second=Yt.seconds=USt;Yt.millisecond=Yt.milliseconds=XOe;Yt.utcOffset=EOt;Yt.utc=TOt;Yt.local=xOt;Yt.parseZone=kOt;Yt.hasAlignedHourOffset=COt;Yt.isDST=_Ot;Yt.isLocal=ROt;Yt.isUtcOffset=IOt;Yt.isUtc=BOe;Yt.isUTC=BOe;Yt.zoneAbbr=jSt;Yt.zoneName=HSt;Yt.dates=Rd("dates accessor is deprecated. Use date instead.",ZOe);Yt.months=Rd("months accessor is deprecated. Use month instead",kOe);Yt.years=Rd("years accessor is deprecated. Use year instead",SOe);Yt.zone=Rd("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wOt);Yt.isDSTShifted=Rd("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",AOt);function VSt(e){return Ji(e*1e3)}function WSt(){return Ji.apply(null,arguments).parseZone()}function KOe(e){return e}var ii=xG.prototype;ii.calendar=Ryt;ii.longDateFormat=Pyt;ii.invalidDate=Lyt;ii.ordinal=Byt;ii.preparse=KOe;ii.postformat=KOe;ii.relativeTime=zyt;ii.pastFuture=jyt;ii.set=_yt;ii.eras=bSt;ii.erasParse=ySt;ii.erasConvertYear=vSt;ii.erasAbbrRegex=xSt;ii.erasNameRegex=TSt;ii.erasNarrowRegex=kSt;ii.months=avt;ii.monthsShort=svt;ii.monthsParse=lvt;ii.monthsRegex=dvt;ii.monthsShortRegex=cvt;ii.week=hvt;ii.firstDayOfYear=gvt;ii.firstDayOfWeek=mvt;ii.weekdays=kvt;ii.weekdaysMin=_vt;ii.weekdaysShort=Cvt;ii.weekdaysParse=Rvt;ii.weekdaysRegex=Pvt;ii.weekdaysShortRegex=Mvt;ii.weekdaysMinRegex=Lvt;ii.isPM=Fvt;ii.meridiem=zvt;function QI(e,t,n,r){var i=Im(),a=dp().set(r,t);return i[n](a,e)}function JOe(e,t,n){if(Om(e)&&(t=e,e=void 0),e=e||"",t!=null)return QI(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=QI(e,r,n,"month");return i}function HG(e,t,n,r){typeof e=="boolean"?(Om(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Om(t)&&(n=t,t=void 0),t=t||"");var i=Im(),a=e?i._week.dow:0,s,o=[];if(n!=null)return QI(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=QI(t,(s+a)%7,r,"day");return o}function QSt(e,t){return JOe(e,t,"months")}function YSt(e,t){return JOe(e,t,"monthsShort")}function qSt(e,t,n){return HG(e,t,n,"weekdays")}function GSt(e,t,n){return HG(e,t,n,"weekdaysShort")}function ZSt(e,t,n){return HG(e,t,n,"weekdaysMin")}pg("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Br(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});cn.lang=Rd("moment.lang is deprecated. Use moment.locale instead.",pg);cn.langData=Rd("moment.langData is deprecated. Use moment.localeData instead.",Im);var Pp=Math.abs;function XSt(){var e=this._data;return this._milliseconds=Pp(this._milliseconds),this._days=Pp(this._days),this._months=Pp(this._months),e.milliseconds=Pp(e.milliseconds),e.seconds=Pp(e.seconds),e.minutes=Pp(e.minutes),e.hours=Pp(e.hours),e.months=Pp(e.months),e.years=Pp(e.years),this}function eSe(e,t,n,r){var i=Ff(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function KSt(e,t){return eSe(this,e,t,1)}function JSt(e,t){return eSe(this,e,t,-1)}function hse(e){return e<0?Math.floor(e):Math.ceil(e)}function eEt(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=hse(kB(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=nd(e/1e3),r.seconds=i%60,a=nd(i/60),r.minutes=a%60,s=nd(a/60),r.hours=s%24,t+=nd(s/24),l=nd(tSe(t)),n+=l,t-=hse(kB(l)),o=nd(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function tSe(e){return e*4800/146097}function kB(e){return e*146097/4800}function tEt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Id(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+tSe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kB(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Dm(e){return function(){return this.as(e)}}var nSe=Dm("ms"),nEt=Dm("s"),rEt=Dm("m"),iEt=Dm("h"),aEt=Dm("d"),sEt=Dm("w"),oEt=Dm("M"),lEt=Dm("Q"),uEt=Dm("y"),cEt=nSe;function dEt(){return Ff(this)}function fEt(e){return e=Id(e),this.isValid()?this[e+"s"]():NaN}function Sy(e){return function(){return this.isValid()?this._data[e]:NaN}}var hEt=Sy("milliseconds"),pEt=Sy("seconds"),mEt=Sy("minutes"),gEt=Sy("hours"),bEt=Sy("days"),yEt=Sy("months"),vEt=Sy("years");function OEt(){return nd(this.days()/7)}var Fp=Math.round,EO={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function SEt(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function EEt(e,t,n,r){var i=Ff(e).abs(),a=Fp(i.as("s")),s=Fp(i.as("m")),o=Fp(i.as("h")),l=Fp(i.as("d")),c=Fp(i.as("M")),d=Fp(i.as("w")),h=Fp(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,SEt.apply(null,p)}function wEt(e){return e===void 0?Fp:typeof e=="function"?(Fp=e,!0):!1}function TEt(e,t){return EO[e]===void 0?!1:t===void 0?EO[e]:(EO[e]=t,e==="s"&&(EO.ss=t-1),!0)}function xEt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=EO,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},EO,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=EEt(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var CL=Math.abs;function Fv(e){return(e>0)-(e<0)||+e}function U6(){if(!this.isValid())return this.localeData().invalidDate();var e=CL(this._milliseconds)/1e3,t=CL(this._days),n=CL(this._months),r,i,a,s,o=this.asSeconds(),l,c,d,h;return o?(r=nd(e/60),i=nd(r/60),e%=60,r%=60,a=nd(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",c=Fv(this._months)!==Fv(o)?"-":"",d=Fv(this._days)!==Fv(o)?"-":"",h=Fv(this._milliseconds)!==Fv(o)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?h+i+"H":"")+(r?h+r+"M":"")+(e?h+s+"S":"")):"P0D"}var Zr=F6.prototype;Zr.isValid=yOt;Zr.abs=XSt;Zr.add=KSt;Zr.subtract=JSt;Zr.as=tEt;Zr.asMilliseconds=nSe;Zr.asSeconds=nEt;Zr.asMinutes=rEt;Zr.asHours=iEt;Zr.asDays=aEt;Zr.asWeeks=sEt;Zr.asMonths=oEt;Zr.asQuarters=lEt;Zr.asYears=uEt;Zr.valueOf=cEt;Zr._bubble=eEt;Zr.clone=dEt;Zr.get=fEt;Zr.milliseconds=hEt;Zr.seconds=pEt;Zr.minutes=mEt;Zr.hours=gEt;Zr.days=bEt;Zr.weeks=OEt;Zr.months=yEt;Zr.years=vEt;Zr.humanize=xEt;Zr.toISOString=U6;Zr.toString=U6;Zr.toJSON=U6;Zr.locale=HOe;Zr.localeData=WOe;Zr.toIsoString=Rd("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",U6);Zr.lang=VOe;Hn("X",0,0,"unix");Hn("x",0,0,"valueOf");On("x",P6);On("X",Qyt);ki("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ki("x",function(e,t,n){n._d=new Date(Br(e))});//! moment.js +cn.version="2.30.1";kyt(Ji);cn.fn=Yt;cn.min=pOt;cn.max=mOt;cn.now=gOt;cn.utc=dp;cn.unix=VSt;cn.months=QSt;cn.isDate=WC;cn.locale=pg;cn.invalid=R6;cn.duration=Ff;cn.isMoment=kf;cn.weekdays=qSt;cn.parseZone=WSt;cn.localeData=Im;cn.isDuration=P5;cn.monthsShort=YSt;cn.weekdaysMin=ZSt;cn.defineLocale=MG;cn.updateLocale=Wvt;cn.locales=Qvt;cn.weekdaysShort=GSt;cn.normalizeUnits=Id;cn.relativeTimeRounding=wEt;cn.relativeTimeThreshold=TEt;cn.calendarFormat=zOt;cn.prototype=Yt;cn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var VG={},kEt=ha;Object.defineProperty(VG,"__esModule",{value:!0});var rSe=VG.default=void 0,CEt=kEt(pa()),pse=D;rSe=VG.default=(0,CEt.default)([(0,pse.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,pse.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function _Et(e){const{document:t}=e,n=ep(),r=Hg(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return D.jsx(kz,{sx:{width:"100%"},children:D.jsx(Fce,{onClick:i,children:D.jsxs(QIe,{children:[D.jsx(Ar,{variant:"h5",component:"div",noWrap:!0,children:t.title}),D.jsxs(hr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(rSe,{fontSize:"small",sx:{color:"text.secondary"}}),D.jsxs(Ar,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",cn(t.updatedAt).fromNow()]})]})]})})})}function AEt(){const e=Hg(),t=ep(),{data:n}=aj(e.workspaceSlug),{data:r,fetchNextPage:i,hasNextPage:a}=lUe(n==null?void 0:n.id),{mutateAsync:s}=cUe((n==null?void 0:n.id)||""),[o,l]=P.useState(!1),c=P.useMemo(()=>(r==null?void 0:r.pages.reduce((p,b)=>p.concat(b.documents),[]))??[],[r==null?void 0:r.pages]),d=()=>{l(p=>!p)},h=async p=>{const b=await s(p);t(b.id)};return D.jsxs(hr,{gap:2,children:[D.jsxs(hr,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[D.jsxs(Ar,{variant:"h5",fontWeight:"bold",children:[n==null?void 0:n.title," ",D.jsx(Ar,{component:"span",variant:"inherit",color:"primary",children:r==null?void 0:r.pages[0].documents.length})]}),D.jsx(lo,{variant:"contained",startIcon:D.jsx(_6,{}),onClick:d,children:"New Note"})]}),D.jsx(hr,{style:{maxHeight:"calc(100vh - 160px)",overflow:"auto"},children:D.jsx(dk,{pageStart:0,loadMore:()=>i(),hasMore:a,loader:D.jsx(hr,{className:"loader",children:D.jsx(xm,{size:"sm"})},0),useWindow:!1,children:D.jsx($s,{p:2,width:1,children:D.jsx(fO,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:c.map(p=>D.jsx(fO,{item:!0,xs:4,sm:4,md:4,lg:3,children:D.jsx(_Et,{document:p})},p.id))})})})}),D.jsx(uOe,{open:o,title:"Note",onSuccess:h,onClose:d})]})}function REt(){const e=Nde();return D.jsx(hr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:D.jsxs(hr,{alignItems:"center",children:[D.jsx(Ar,{variant:"h5",children:"Something went wrong"}),Lz(e)&&D.jsxs(Ar,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function IEt(){const e=Hg(),t=ep(),{mutateAsync:n}=yUe();return P.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),D.jsx(Gk,{open:!0,children:D.jsx(xm,{color:"inherit"})})}var DEt=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=P},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(c,d,h,p,b,v){if(v!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return J}),n.d(t,"GoogleLoginButton",function(){return j}),n.d(t,"GithubLoginButton",function(){return te}),n.d(t,"TwitterLoginButton",function(){return he}),n.d(t,"AmazonLoginButton",function(){return Ze}),n.d(t,"InstagramLoginButton",function(){return Je}),n.d(t,"LinkedInLoginButton",function(){return tt}),n.d(t,"MicrosoftLoginButton",function(){return lt}),n.d(t,"BufferLoginButton",function(){return me}),n.d(t,"TelegramLoginButton",function(){return qe}),n.d(t,"AppleLoginButton",function(){return Oe}),n.d(t,"DiscordLoginButton",function(){return Ot}),n.d(t,"OktaLoginButton",function(){return St}),n.d(t,"SlackLoginButton",function(){return At}),n.d(t,"YahooLoginButton",function(){return $n}),n.d(t,"createButton",function(){return X}),n.d(t,"createSvgIcon",function(){return W}),n.d(t,"ZaloLoginButton",function(){return Qr}),n.d(t,"TikTokLoginButton",function(){return ct}),n.d(t,"MetamaskLoginButton",function(){return yn});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return J}),n.d(r,"GoogleLoginButton",function(){return j}),n.d(r,"GithubLoginButton",function(){return te}),n.d(r,"TwitterLoginButton",function(){return he}),n.d(r,"AmazonLoginButton",function(){return Ze}),n.d(r,"InstagramLoginButton",function(){return Je}),n.d(r,"LinkedInLoginButton",function(){return tt}),n.d(r,"MicrosoftLoginButton",function(){return lt}),n.d(r,"BufferLoginButton",function(){return me}),n.d(r,"TelegramLoginButton",function(){return qe}),n.d(r,"AppleLoginButton",function(){return Oe}),n.d(r,"DiscordLoginButton",function(){return Ot}),n.d(r,"OktaLoginButton",function(){return St}),n.d(r,"SlackLoginButton",function(){return At}),n.d(r,"YahooLoginButton",function(){return $n}),n.d(r,"createButton",function(){return X}),n.d(r,"createSvgIcon",function(){return W}),n.d(r,"ZaloLoginButton",function(){return Qr}),n.d(r,"TikTokLoginButton",function(){return ct}),n.d(r,"MetamaskLoginButton",function(){return yn});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(Ge){var Ke=Ge.name,dt=Ge.size,Et=Ge.format;return a.a.createElement("i",{className:Et(Ke),style:{fontSize:dt}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(Ge){return"demo-icon icon-".concat(Ge)},size:26};var c=l,d=function(Ge){var Ke=Ge.type,dt=Ge.size,Et=Ge.format,Jn=Ge.color,bn=Jn===void 0?"#FFFFFF":Jn;return typeof Ke=="string"?a.a.createElement(c,{format:Et,name:Ke,size:dt}):a.a.createElement(Ke,{size:dt,color:bn})};d.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var h=d;function p(Ge,Ke){var dt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(Ge);Ke&&(Et=Et.filter(function(Jn){return Object.getOwnPropertyDescriptor(Ge,Jn).enumerable})),dt.push.apply(dt,Et)}return dt}function b(Ge){for(var Ke=1;Ke"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var dt,Et=I(Ge);if(Ke){var Jn=I(this).constructor;dt=Reflect.construct(Et,arguments,Jn)}else dt=Et.apply(this,arguments);return C(this,dt)}}function C(Ge,Ke){return!Ke||S(Ke)!=="object"&&typeof Ke!="function"?function(dt){if(dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt}(Ge):Ke}function I(Ge){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(Ke){return Ke.__proto__||Object.getPrototypeOf(Ke)})(Ge)}var _=function(Ge){(function(bn,Yn){if(typeof Yn!="function"&&Yn!==null)throw new TypeError("Super expression must either be null or a function");bn.prototype=Object.create(Yn&&Yn.prototype,{constructor:{value:bn,writable:!0,configurable:!0}}),Yn&&x(bn,Yn)})(Jn,Ge);var Ke,dt,Et=k(Jn);function Jn(bn){var Yn;return function(mi,it){if(!(mi instanceof it))throw new TypeError("Cannot call a class as a function")}(this,Jn),(Yn=Et.call(this,bn)).state={focused:!1,hovered:!1},Yn.handleMouseEnter=function(){Yn.setState({hovered:!0}),typeof Yn.props.onMouseEnter=="function"&&Yn.props.onMouseEnter()},Yn.handleMouseLeave=function(){Yn.setState({hovered:!1}),typeof Yn.props.onMouseLeave=="function"&&Yn.props.onMouseLeave()},Yn.handleFocus=function(){Yn.setState({focused:!0})},Yn.handleBlur=function(){Yn.setState({focused:!1})},Yn.handleClick=function(mi){typeof Yn.props.onClick=="function"&&Yn.props.onClick(mi)},Yn}return Ke=Jn,(dt=[{key:"render",value:function(){var bn=this.props,Yn=bn.activeStyle,mi=bn.align,it=bn.text,Ue=bn.children,ke=Ue===void 0?it:Ue,ln=bn.className,qn=bn.icon,Jr=bn.iconFormat,Ie=bn.iconSize,Nn=bn.iconColor,Gn=Nn===void 0?"#FFFFFF":Nn,ci=bn.preventActiveStyles,ta=bn.size,Nd=bn.style,hp=bn.disabled,xy=this.state,Hi=xy.focused,ky=xy.hovered,js=U(F.button,{activeStyle:ci?Nd:Yn,customStyle:Nd,active:ky||Hi,size:ta});return a.a.createElement("button",w({type:"button",style:js,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:ln},{disabled:hp}),a.a.createElement("div",{style:F.flex},!A(Ie)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Ie}},a.a.createElement(h,{type:qn,size:Ie,format:Jr,color:Gn})),!A(Ie)&&a.a.createElement("div",{style:F.divider}),a.a.createElement("div",{style:{textAlign:mi,width:"100%"}},ke)))}}])&&T(Ke.prototype,dt),Jn}(i.Component),A=function(Ge){return Ge==="0"||Ge==="0px"||Ge===0},U=function(Ge,Ke){var dt=Ke.size,Et=Ke.customStyle,Jn=Ke.active,bn=Ke.activeStyle;return b(b(b({},Ge),{},{height:dt},Et),Jn&&bn)};_.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},_.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var F={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function M(Ge,Ke){var dt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(Ge);Ke&&(Et=Et.filter(function(Jn){return Object.getOwnPropertyDescriptor(Ge,Jn).enumerable})),dt.push.apply(dt,Et)}return dt}function V(Ge){for(var Ke=1;Ke{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return D.jsx(Bce,{sx:{height:1},children:D.jsx(hr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:D.jsx(po,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:D.jsxs(hr,{gap:4,children:[D.jsxs($s,{children:[D.jsxs(hr,{direction:"row",gap:1,children:[D.jsx(iOe,{}),D.jsx(Ar,{variant:"h6",children:"Login"})]}),D.jsx(Ar,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),D.jsxs(hr,{gap:2,children:[D.jsxs(fO,{container:!0,spacing:1,alignItems:"center",children:[D.jsx(fO,{item:!0,xs:!0,children:D.jsx(Yb,{sx:{width:1}})}),D.jsx(fO,{item:!0,xs:"auto",children:D.jsx(Ar,{variant:"body2",color:"text.secondary",children:"Login with"})}),D.jsx(fO,{item:!0,xs:!0,children:D.jsx(Yb,{sx:{width:1}})})]}),NEt.map(({SocailLoginComponent:t,provider:n})=>D.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}var WG={},MEt=ha;Object.defineProperty(WG,"__esModule",{value:!0});var iSe=WG.default=void 0,LEt=MEt(pa()),$Et=D;iSe=WG.default=(0,LEt.default)((0,$Et.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var QG={},FEt=ha;Object.defineProperty(QG,"__esModule",{value:!0});var aSe=QG.default=void 0,BEt=FEt(pa()),UEt=D;aSe=QG.default=(0,BEt.default)((0,UEt.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");function zEt(){const e=kd(),t=bC(),n=()=>{e(Gde(t=="light"?"dark":"light"))};return D.jsx($a,{onClick:n,color:"inherit",children:t==="light"?D.jsx(fG,{}):D.jsx(cG,{})})}var YG={},jEt=ha;Object.defineProperty(YG,"__esModule",{value:!0});var sSe=YG.default=void 0,HEt=jEt(pa()),VEt=D;sSe=YG.default=(0,HEt.default)((0,VEt.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");const KO=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];var CB=(e=>(e.READ="READ",e.EDIT="EDIT",e))(CB||{});function WEt(e){var d,h;const{...t}=e,n=Hg(),[r,i]=P.useState(null),a=Ki(ij),{mutateAsync:s}=dUe(((d=a.data)==null?void 0:d.workspaceId)||"",((h=a.data)==null?void 0:h.id)||""),{enqueueSnackbar:o}=C6(),l=async p=>{let b;if(p.expiredString===KO[0])b=null;else{const[S,w]=p.expiredString.split(" ");b=cn().add(Number(S),w).toDate()}const{sharingToken:v}=await s({role:p.role,expiredAt:b});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${v}`)},c=async()=>{r&&(await Oy.write(r),o("URL Copied!",{variant:"success"}))};return D.jsx(Ug,{disableAutoFocus:!0,...t,children:D.jsxs(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx($a,{sx:{position:"absolute",top:28,right:28},onClick:p=>{var b;return(b=e.onClose)==null?void 0:b.call(e,p,"backdropClick")},children:D.jsx(A6,{})}),D.jsxs(hr,{gap:1,children:[D.jsx(Ar,{variant:"subtitle1",children:"Share Link"}),D.jsx(Af,{children:D.jsx(VC,{defaultValues:{expiredString:KO[0],role:Object.values(CB)[0]},onSuccess:l,children:D.jsxs(hr,{gap:2,children:[D.jsx(vB,{label:"Role",name:"role",options:Object.values(CB).map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(vB,{label:"Expired Date",name:"expiredString",options:KO.map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(lo,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&D.jsxs(hr,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(Ar,{variant:"body1",width:1,noWrap:!0,children:r}),D.jsx(sb,{title:"Copy URL",children:D.jsx($a,{onClick:c,children:D.jsx(y6,{})})})]})]})]})})}function QEt(){const[e,t]=P.useState(!1),n=()=>{t(r=>!r)};return D.jsxs(D.Fragment,{children:[D.jsx($a,{onClick:n,color:"inherit",children:D.jsx(sSe,{})}),D.jsx(WEt,{open:e,onClose:n})]})}var qG={},YEt=ha;Object.defineProperty(qG,"__esModule",{value:!0});var oSe=qG.default=void 0,qEt=YEt(pa()),GEt=D;oSe=qG.default=(0,qEt.default)((0,GEt.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");function ZEt(){const e=kd(),t=ep(),n=Ki(fE),r=Ki(aC),[i,{set:a,push:s,removeAt:o,clear:l,filter:c}]=Tft([]);P.useEffect(()=>{n.shareRole==="READ"&&e(n$("read"))},[e,n.shareRole]),P.useEffect(()=>{if(!n.doc)return;a(n.doc.getPresences());const p=n.doc.subscribe("others",b=>{var v,S;b.type==="watched"&&a(((S=(v=n.doc)==null?void 0:v.getPresences)==null?void 0:S.call(v))??[]),b.type==="unwatched"&&c(w=>w.clientID!==b.value.clientID)});return()=>{p(),l()}},[n.doc,l,s,o,a,c]);const d=p=>{p&&e(n$(p))},h=()=>{var p;t(`/${(p=r.data)==null?void 0:p.slug}`)};return D.jsx(bce,{position:"static",sx:{zIndex:100},children:D.jsx(dde,{children:D.jsxs(hr,{width:"100%",direction:"row",justifyContent:"space-between",children:[D.jsxs(hr,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&D.jsx(sb,{title:"Back to Previous Page",children:D.jsx($a,{color:"inherit",onClick:h,children:D.jsx(oSe,{})})}),D.jsx(po,{children:n.shareRole!=="READ"&&D.jsxs(mLe,{value:n.mode,exclusive:!0,onChange:(p,b)=>d(b),size:"small",children:[D.jsx(I8,{value:"edit","aria-label":"edit",children:D.jsx(sb,{title:"Edit Mode",children:D.jsx(iSe,{})})}),D.jsx(I8,{value:"both","aria-label":"both",children:D.jsx(sb,{title:"Both Mode",children:D.jsx(aSe,{})})}),D.jsx(I8,{value:"read","aria-label":"read",children:D.jsx(sb,{title:"Read Mode",children:D.jsx(iG,{})})})]})})]}),D.jsxs(hr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(iIe,{max:4,children:i==null?void 0:i.map(p=>D.jsx(sb,{title:p.presence.name,children:D.jsx(xz,{alt:p.presence.name,sx:{bgcolor:p.presence.color},children:p.presence.name[0]})},p.clientID))}),!n.shareRole&&D.jsx(QEt,{}),D.jsx(zEt,{})]})]})})})}function XEt(){return D.jsxs($s,{sx:{flexGrow:1},height:"100vh",children:[D.jsx(ZEt,{}),D.jsx(Bz,{})]})}const KEt=e=>["documents","share",e],JEt=e=>{const t=kd(),n=iC({queryKey:KEt(e||""),enabled:!!e,queryFn:async()=>(await Ir.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return P.useEffect(()=>(n.data&&t(BR(n.data)),()=>{t(BR(null))}),[t,n.data]),n};function ewt(){const e=kd(),t=jg(),[n]=Uz(),r=P.useMemo(()=>n.get("token"),[n]),{data:i}=JEt(r),{doc:a,client:s,cleanUpYorkieDocument:o}=wye(i==null?void 0:i.yorkieDocumentId,"Anonymous");return P.useEffect(()=>{i!=null&&i.role&&(e(wBe(i.role)),i.role==="READ"&&e(n$("read")))},[e,i==null?void 0:i.role]),P.useEffect(()=>{if(!(!a||!s))return e(PR(a)),e(MR(s)),()=>{o(),e(PR(null)),e(MR(null))}},[o,e,s,a]),r?D.jsx($s,{height:"calc(100% - 64px)",children:D.jsx(pye,{})}):D.jsx(Fz,{to:"/",state:{from:t},replace:!0})}const twt=e=>["workspaces",e,"users"],nwt=e=>rj({queryKey:twt(e||""),queryFn:async({pageParam:t})=>(await Ir.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0});function rwt(e){var d;const{open:t,onClose:n}=e,r=Ki(aC),{mutateAsync:i}=bUe(((d=r.data)==null?void 0:d.id)||""),{enqueueSnackbar:a}=C6(),[s,o]=P.useState(null),l=async h=>{let p;if(h.expiredString===KO[0])p=null;else{const[v,S]=h.expiredString.split(" ");p=cn().add(Number(v),S).toDate()}const{invitationToken:b}=await i({expiredAt:p});o(`${window.location.origin}/join/${b}`)},c=async()=>{s&&(await Oy.write(s),a("URL Copied!",{variant:"success"}))};return D.jsx(Ug,{open:t,disableAutoFocus:!0,onClose:n,children:D.jsxs(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[D.jsx($a,{sx:{position:"absolute",top:28,right:28},onClick:n,children:D.jsx(A6,{})}),D.jsxs(hr,{gap:4,children:[D.jsxs(hr,{children:[D.jsx(Ar,{variant:"h5",fontWeight:"bold",children:"Add Members"}),D.jsx(Ar,{children:"Generate and share the link."})]}),D.jsx(hr,{gap:1,children:D.jsx(Af,{children:D.jsx(VC,{defaultValues:{expiredString:KO[0]},onSuccess:l,children:D.jsxs(hr,{gap:2,children:[D.jsx(vB,{label:"Expired Date",name:"expiredString",options:KO.map(h=>({id:h,label:h})),size:"small",sx:{width:1}}),D.jsx(lo,{type:"submit",variant:"contained",children:"Generate"})]})})})}),D.jsxs(hr,{gap:1,children:[D.jsx(Ar,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),D.jsx($s,{height:40,children:s?D.jsxs(hr,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(Ar,{variant:"body1",children:s}),D.jsx(sb,{title:"Copy URL",children:D.jsx($a,{onClick:c,children:D.jsx(y6,{})})})]}):D.jsx(Ar,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function iwt(){const e=Hg(),{data:t}=aj(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=nwt(t==null?void 0:t.id),[a,s]=P.useState(!1),o=P.useMemo(()=>(n==null?void 0:n.pages.reduce((c,d)=>c.concat(d.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(c=>!c)};return D.jsxs(Bce,{maxWidth:"lg",children:[D.jsxs(hr,{gap:4,children:[D.jsxs(hr,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[D.jsxs(Ar,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",D.jsx(Ar,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),D.jsx(lo,{variant:"contained",startIcon:D.jsx(_6,{}),onClick:l,children:"Add Members"})]}),D.jsxs(nMe,{component:$s,children:[D.jsx(Yb,{}),D.jsx(dk,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:D.jsx($s,{className:"loader",children:D.jsx(xm,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:D.jsxs(M8e,{children:[D.jsx(uMe,{children:D.jsxs(TJ,{children:[D.jsx(Rv,{children:"Name"}),D.jsx(Rv,{children:"Role"}),D.jsx(Rv,{})]})}),D.jsx(H8e,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(c=>D.jsxs(TJ,{sx:{width:"100%"},children:[D.jsx(Rv,{component:"th",scope:"row",children:c.nickname}),D.jsx(Rv,{children:"-"}),D.jsx(Rv,{children:"-"})]},c.id))})]})})]})]}),D.jsx(rwt,{open:a,onClose:l})]})}const awt=[{path:"",accessType:2,element:D.jsx(Pbt,{}),children:[{path:"",element:D.jsx(PEt,{})}]},{path:":workspaceSlug",accessType:1,element:D.jsx(wyt,{}),children:[{path:"",element:D.jsx(AEt,{})},{path:"member",element:D.jsx(iwt,{})}]},{path:":workspaceSlug",element:D.jsx(XEt,{}),children:[{path:":documentId",accessType:1,element:D.jsx(Nbt,{})},{path:":documentId/share",accessType:0,element:D.jsx(ewt,{})}]},{path:"auth/callback",accessType:2,element:D.jsx(Mbt,{})},{path:"join/:invitationToken",accessType:1,element:D.jsx(IEt,{})}],swt=e=>{const t=n=>(n.accessType===1?n.element=D.jsx(xyt,{children:n.element}):n.accessType===2&&(n.element=D.jsx(Tyt,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=D.jsx(REt,{}),n))},owt=swt(awt),lSe=e=>["users",e],lwt=()=>{const e=kd(),t=Ki($C);t.accessToken&&(Ir.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=iC({queryKey:lSe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await Ir.get("/users")).data});return P.useEffect(()=>{n.isSuccess?e(r$(n.data)):n.isError&&(e(Aq(null)),e(r$(null)),Ir.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},uwt=()=>{const e=Ki($C),t=rC();return Vg({mutationFn:async n=>(await Ir.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:lSe(e.accessToken||"")})}})};function cwt(e){const[t,n]=P.useState(""),[r,i]=P.useState(""),{data:a}=lOe(r),{mutateAsync:s}=uwt(),o=P.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);Rq(()=>{i(t)},500,[t]);const l=d=>{n(d.target.value)},c=async d=>{await s(d)};return D.jsx(Ug,{disableAutoFocus:!0,...e,children:D.jsx(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:D.jsxs(hr,{gap:4,children:[D.jsx(Ar,{variant:"h5",children:"Create Your Nickname"}),D.jsx(Af,{children:D.jsx(VC,{defaultValues:{nickname:""},onSuccess:c,children:D.jsxs(hr,{gap:4,alignItems:"flex-end",children:[D.jsx(k6,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),D.jsx(lo,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function dwt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=lwt(),a=P.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return D.jsx(SG.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?D.jsx(cwt,{open:!0}):t})}function fwt(){const{enqueueSnackbar:e}=C6();return P.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}const uSe=Object.prototype.toString;function cSe(e){switch(uSe.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Sm(e,Error)}}function FE(e,t){return uSe.call(e)===`[object ${t}]`}function GG(e){return FE(e,"ErrorEvent")}function mse(e){return FE(e,"DOMError")}function hwt(e){return FE(e,"DOMException")}function Gh(e){return FE(e,"String")}function ZG(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function XG(e){return e===null||ZG(e)||typeof e!="object"&&typeof e!="function"}function GS(e){return FE(e,"Object")}function z6(e){return typeof Event<"u"&&Sm(e,Event)}function pwt(e){return typeof Element<"u"&&Sm(e,Element)}function mwt(e){return FE(e,"RegExp")}function j6(e){return!!(e&&e.then&&typeof e.then=="function")}function gwt(e){return GS(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function dSe(e){return typeof e=="number"&&e!==e}function Sm(e,t){try{return e instanceof t}catch{return!1}}function fSe(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function JO(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function gse(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rbwt(e,r,n))}function ywt(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!Sm(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=vwt(_B(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function _B(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(Sm(r[i],Error)){bse(s,o);const c=e(t,r[i]),d=l.length;yse(c,i,d,o),l=_B(e,t,n,r[i],i,[c,...l],c,d)}return Array.isArray(r.errors)&&r.errors.forEach((c,d)=>{if(Sm(c,Error)){bse(s,o);const h=e(t,c),p=l.length;yse(h,`errors[${d}]`,p,o),l=_B(e,t,n,c,i,[h,...l],h,p)}}),l}function bse(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function yse(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function vwt(e,t){return e.map(n=>(n.value&&(n.value=JO(n.value,t)),n))}function A3(e){return e&&e.Math==Math?e:void 0}const ui=typeof globalThis=="object"&&A3(globalThis)||typeof window=="object"&&A3(window)||typeof self=="object"&&A3(self)||typeof global=="object"&&A3(global)||function(){return this}()||{};function KG(){return ui}function hSe(e,t,n){const r=n||ui,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const eS=KG(),Owt=80;function gk(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let c;const d=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||Owt;for(;n&&a++1&&s+i.length*l+c.length>=h));)i.push(c),s+=c.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function Swt(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(eS.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(h=>n.getAttribute(h)).map(h=>[h,n.getAttribute(h)]):null;if(c&&c.length)c.forEach(h=>{r.push(`[${h[0]}="${h[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Gh(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,Twt="Sentry Logger ",AB=["debug","info","warn","error","log","assert","trace"],YI={};function H6(e){if(!("console"in ui))return e();const t=ui.console,n={},r=Object.keys(YI);r.forEach(i=>{const a=YI[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function xwt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return BE?AB.forEach(n=>{t[n]=(...r)=>{e&&H6(()=>{ui.console[n](`${Twt}[${n}]:`,...r)})}}):AB.forEach(n=>{t[n]=()=>{}}),t}const Mt=xwt(),kwt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Cwt(e){return e==="http"||e==="https"}function ZC(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function _wt(e){const t=kwt.exec(e);if(!t){H6(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",c=o;const d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){const h=c.match(/^\d+/);h&&(c=h[0])}return mSe({host:a,pass:i,path:l,projectId:c,port:s,protocol:n,publicKey:r})}function mSe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Awt(e){if(!BE)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Mt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Cwt(r)?t&&isNaN(parseInt(t,10))?(Mt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Mt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Mt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Rwt(e){const t=typeof e=="string"?_wt(e):mSe(e);if(!(!t||!Awt(t)))return t}class Ah extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function co(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&gSe(i,r),e[t]=i}function bk(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{BE&&Mt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function gSe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,bk(e,"__sentry_original__",t)}catch{}}function JG(e){return e.__sentry_original__}function Iwt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function bSe(e){if(cSe(e))return{message:e.message,name:e.name,stack:e.stack,...Ose(e)};if(z6(e)){const t={type:e.type,target:vse(e.target),currentTarget:vse(e.currentTarget),...Ose(e)};return typeof CustomEvent<"u"&&Sm(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function vse(e){try{return pwt(e)?gk(e):Object.prototype.toString.call(e)}catch{return""}}function Ose(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Dwt(e,t=40){const n=Object.keys(bSe(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return JO(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:JO(i,t)}return""}function cd(e){return RB(e,new Map)}function RB(e,t){if(Nwt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=RB(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(RB(i,t))}),r}return e}function Nwt(e){if(!GS(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const ySe=50,Sse=/\(error: (.*)\)/,Ese=/captureMessage|captureException/;function vSe(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` +`);for(let s=r;s1024)continue;const l=Sse.test(o)?o.replace(Sse,"$1"):o;if(!l.match(/\S*Error: /)){for(const c of t){const d=c(l);if(d){i.push(d);break}}if(i.length>=ySe)break}}return Mwt(i)}}function Pwt(e){return Array.isArray(e)?vSe(...e):e}function Mwt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Ese.test(t[t.length-1].function||"")&&(t.pop(),Ese.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,ySe).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const _L="";function Em(e){try{return!e||typeof e!="function"?_L:e.name||_L}catch{return _L}}const L5={},wse={};function Ey(e,t){L5[e]=L5[e]||[],L5[e].push(t)}function wy(e,t){wse[e]||(t(),wse[e]=!0)}function Of(e,t){const n=e&&L5[e];if(n)for(const r of n)try{r(t)}catch(i){BE&&Mt.error(`Error while triggering instrumentation handler. Type: ${e} -Name: ${Sm(r)} -Error:`,i)}}function DEt(e){const t="console";Sy(t,e),Ey(t,NEt)}function NEt(){"console"in ui&&AB.forEach(function(e){e in ui.console&&co(ui.console,e,function(t){return jI[e]=t,function(...n){vf("console",{args:n,level:e});const i=jI[e];i&&i.apply(ui.console,n)}})})}function Qa(){const e=ui,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function rSe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function P0(e){const{message:t,event_id:n}=e;if(t)return t;const r=rSe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function IB(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function gk(e,t){const n=rSe(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function use(e){if(e&&e.__sentry_captured__)return!0;try{mk(e,"__sentry_captured__",!0)}catch{}return!1}function iSe(e){return Array.isArray(e)?e:[e]}const Kv=ui,PEt=1e3;let cse,DB,NB;function MEt(e){const t="dom";Sy(t,e),Ey(t,LEt)}function LEt(){if(!Kv.document)return;const e=vf.bind(null,"dom"),t=dse(e,!0);Kv.document.addEventListener("click",t,!1),Kv.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Kv[n]&&Kv[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(co(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=c[a]=c[a]||{refCount:0};if(!d.handler){const h=dse(e);d.handler=h,i.call(this,a,h,o)}d.refCount++}catch{}return i.call(this,a,s,o)}}),co(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},d=c[a];d&&(d.refCount--,d.refCount<=0&&(i.call(this,a,d.handler,o),d.handler=void 0,delete c[a]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function $Et(e){if(e.type!==DB)return!1;try{if(!e.target||e.target._sentryId!==NB)return!1}catch{}return!0}function FEt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function dse(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=BEt(n);if(FEt(n.type,r))return;mk(n,"_sentryCaptured",!0),r&&!r._sentryId&&mk(r,"_sentryId",Qa());const i=n.type==="keypress"?"input":n.type;$Et(n)||(e({event:n,name:i,global:t}),DB=n.type,NB=r?r._sentryId:void 0),clearTimeout(cse),cse=Kv.setTimeout(()=>{NB=void 0,DB=void 0},PEt)}}function BEt(e){try{return e.target}catch{return null}}const PB=QG();function aSe(){if(!("fetch"in PB))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function MB(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function UEt(){if(typeof EdgeRuntime=="string")return!0;if(!aSe())return!1;if(MB(PB.fetch))return!0;let e=!1;const t=PB.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=MB(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){FE&&Mt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function sSe(e){const t="fetch";Sy(t,e),Ey(t,zEt)}function zEt(){UEt()&&co(ui,"fetch",function(e){return function(...t){const{method:n,url:r}=jEt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return vf("fetch",{...i}),e.apply(ui,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return vf("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw vf("fetch",s),a})}})}function LB(e,t){return!!e&&typeof e=="object"&&!!e[t]}function fse(e){return typeof e=="string"?e:e?LB(e,"url")?e.url:e.toString?e.toString():"":""}function jEt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:fse(n),method:LB(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:fse(t),method:LB(t,"method")?String(t.method).toUpperCase():"GET"}}let T3=null;function oSe(e){const t="error";Sy(t,e),Ey(t,HEt)}function HEt(){T3=ui.onerror,ui.onerror=function(e,t,n,r,i){return vf("error",{column:r,error:i,line:n,msg:e,url:t}),T3&&!T3.__SENTRY_LOADER__?T3.apply(this,arguments):!1},ui.onerror.__SENTRY_INSTRUMENTED__=!0}let x3=null;function lSe(e){const t="unhandledrejection";Sy(t,e),Ey(t,VEt)}function VEt(){x3=ui.onunhandledrejection,ui.onunhandledrejection=function(e){return vf("unhandledrejection",e),x3&&!x3.__SENTRY_LOADER__?x3.apply(this,arguments):!0},ui.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const k3=QG();function WEt(){const e=k3.chrome,t=e&&e.app&&e.app.runtime,n="history"in k3&&!!k3.history.pushState&&!!k3.history.replaceState;return!t&&n}const D2=ui;let C3;function qG(e){const t="history";Sy(t,e),Ey(t,QEt)}function QEt(){if(!WEt())return;const e=D2.onpopstate;D2.onpopstate=function(...n){const r=D2.location.href,i=C3;if(C3=r,vf("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=C3,s=String(i);C3=s,vf("history",{from:a,to:s})}return n.apply(this,r)}}co(D2.history,"pushState",t),co(D2.history,"replaceState",t)}const YEt=ui,EO="__sentry_xhr_v3__";function uSe(e){const t="xhr";Sy(t,e),Ey(t,qEt)}function qEt(){if(!YEt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;co(e,"open",function(t){return function(...n){const r=Date.now(),i=Gh(n[0])?n[0].toUpperCase():void 0,a=GEt(n[1]);if(!i||!a)return t.apply(this,n);this[EO]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[EO];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};vf("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?co(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),co(this,"setRequestHeader",function(o){return function(...l){const[c,d]=l,h=this[EO];return h&&Gh(c)&&Gh(d)&&(h.request_headers[c.toLowerCase()]=d),o.apply(this,l)}}),t.apply(this,n)}}),co(e,"send",function(t){return function(...n){const r=this[EO];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return vf("xhr",i),t.apply(this,n)}})}function GEt(e){if(Gh(e))return e;try{return e.toString()}catch{}}function ZEt(){return"npm"}function XEt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?cSe(e,t-1,n):r}function $B(e,t,n=1/0,r=1/0,i=XEt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!qOe(t))return t;const o=KEt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const b=c.toJSON();return $B("",b,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let h=0;const p=eSe(t);for(const b in p){if(!Object.prototype.hasOwnProperty.call(p,b))continue;if(h>=r){d[b]="[MaxProperties ~]";break}const v=p[b];d[b]=$B(b,v,l-1,r,i),h++}return s(t),d}function KEt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(GOe(t))return"[VueViewModel]";if(fEt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Sm(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=JEt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function JEt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function ewt(e){return~-encodeURI(e).split(/%..|./).length}function twt(e){return ewt(JSON.stringify(e))}var Fp;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Fp||(Fp={}));function qS(e){return new ec(t=>{t(e)})}function GG(e){return new ec((t,n)=>{n(e)})}class ec{constructor(t){ec.prototype.__init.call(this),ec.prototype.__init2.call(this),ec.prototype.__init3.call(this),ec.prototype.__init4.call(this),this._state=Fp.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new ec((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ec((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Fp.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Fp.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Fp.PENDING){if(z6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Fp.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Fp.RESOLVED&&n[1](this._value),this._state===Fp.REJECTED&&n[2](this._value),n[0]=!0)})}}}function nwt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new ec((o,l)=>{let c=t.length;if(!c)return o(!0);const d=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(h=>{qS(h).then(()=>{--c||(clearTimeout(d),o(!0))},l)})})}return{$:t,add:i,drain:a}}function I5(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const rwt=["fatal","error","warning","log","info","debug"];function iwt(e){return e==="warn"?"warning":rwt.includes(e)?e:"log"}const dSe=1e3;function WC(){return Date.now()/dSe}function awt(){const{performance:e}=ui;if(!e||!e.now)return WC;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/dSe}const QC=awt(),Kh=(()=>{const{performance:e}=ui;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=hse(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=hse(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(swt)){const s=i.slice(fSe.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function hSe(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${fSe}${r}`]=i),n),{});return uwt(t)}function hse(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function uwt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>owt?(FE&&Mt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const cwt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function dwt(e){if(!e)return;const t=e.match(cwt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function fwt(e,t){const n=dwt(e),r=lwt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||Qa(),parentSpanId:a||Qa().substring(16),spanId:Qa().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||Qa(),spanId:Qa().substring(16)}}}function ZG(e=Qa(),t=Qa().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function BE(e,t=[]){return[e,t]}function hwt(e,t){const[n,r]=e;return[n,[...r,t]]}function pse(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function BB(e,t){return(t||new TextEncoder).encode(e)}function pwt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[BB(i,t),s]:i.push(typeof s=="string"?BB(s,t):s)}for(const s of r){const[o,l]=s;if(a(` +Name: ${Em(r)} +Error:`,i)}}function Lwt(e){const t="console";Ey(t,e),wy(t,$wt)}function $wt(){"console"in ui&&AB.forEach(function(e){e in ui.console&&co(ui.console,e,function(t){return YI[e]=t,function(...n){Of("console",{args:n,level:e});const i=YI[e];i&&i.apply(ui.console,n)}})})}function Ya(){const e=ui,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function OSe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function P0(e){const{message:t,event_id:n}=e;if(t)return t;const r=OSe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function IB(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function yk(e,t){const n=OSe(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function Tse(e){if(e&&e.__sentry_captured__)return!0;try{bk(e,"__sentry_captured__",!0)}catch{}return!1}function SSe(e){return Array.isArray(e)?e:[e]}const Jv=ui,Fwt=1e3;let xse,DB,NB;function Bwt(e){const t="dom";Ey(t,e),wy(t,Uwt)}function Uwt(){if(!Jv.document)return;const e=Of.bind(null,"dom"),t=kse(e,!0);Jv.document.addEventListener("click",t,!1),Jv.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Jv[n]&&Jv[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(co(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=c[a]=c[a]||{refCount:0};if(!d.handler){const h=kse(e);d.handler=h,i.call(this,a,h,o)}d.refCount++}catch{}return i.call(this,a,s,o)}}),co(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},d=c[a];d&&(d.refCount--,d.refCount<=0&&(i.call(this,a,d.handler,o),d.handler=void 0,delete c[a]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function zwt(e){if(e.type!==DB)return!1;try{if(!e.target||e.target._sentryId!==NB)return!1}catch{}return!0}function jwt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function kse(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Hwt(n);if(jwt(n.type,r))return;bk(n,"_sentryCaptured",!0),r&&!r._sentryId&&bk(r,"_sentryId",Ya());const i=n.type==="keypress"?"input":n.type;zwt(n)||(e({event:n,name:i,global:t}),DB=n.type,NB=r?r._sentryId:void 0),clearTimeout(xse),xse=Jv.setTimeout(()=>{NB=void 0,DB=void 0},Fwt)}}function Hwt(e){try{return e.target}catch{return null}}const PB=KG();function ESe(){if(!("fetch"in PB))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function MB(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Vwt(){if(typeof EdgeRuntime=="string")return!0;if(!ESe())return!1;if(MB(PB.fetch))return!0;let e=!1;const t=PB.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=MB(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){BE&&Mt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function wSe(e){const t="fetch";Ey(t,e),wy(t,Wwt)}function Wwt(){Vwt()&&co(ui,"fetch",function(e){return function(...t){const{method:n,url:r}=Qwt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Of("fetch",{...i}),e.apply(ui,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Of("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Of("fetch",s),a})}})}function LB(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Cse(e){return typeof e=="string"?e:e?LB(e,"url")?e.url:e.toString?e.toString():"":""}function Qwt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Cse(n),method:LB(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Cse(t),method:LB(t,"method")?String(t.method).toUpperCase():"GET"}}let R3=null;function TSe(e){const t="error";Ey(t,e),wy(t,Ywt)}function Ywt(){R3=ui.onerror,ui.onerror=function(e,t,n,r,i){return Of("error",{column:r,error:i,line:n,msg:e,url:t}),R3&&!R3.__SENTRY_LOADER__?R3.apply(this,arguments):!1},ui.onerror.__SENTRY_INSTRUMENTED__=!0}let I3=null;function xSe(e){const t="unhandledrejection";Ey(t,e),wy(t,qwt)}function qwt(){I3=ui.onunhandledrejection,ui.onunhandledrejection=function(e){return Of("unhandledrejection",e),I3&&!I3.__SENTRY_LOADER__?I3.apply(this,arguments):!0},ui.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const D3=KG();function Gwt(){const e=D3.chrome,t=e&&e.app&&e.app.runtime,n="history"in D3&&!!D3.history.pushState&&!!D3.history.replaceState;return!t&&n}const NT=ui;let N3;function eZ(e){const t="history";Ey(t,e),wy(t,Zwt)}function Zwt(){if(!Gwt())return;const e=NT.onpopstate;NT.onpopstate=function(...n){const r=NT.location.href,i=N3;if(N3=r,Of("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=N3,s=String(i);N3=s,Of("history",{from:a,to:s})}return n.apply(this,r)}}co(NT.history,"pushState",t),co(NT.history,"replaceState",t)}const Xwt=ui,wO="__sentry_xhr_v3__";function kSe(e){const t="xhr";Ey(t,e),wy(t,Kwt)}function Kwt(){if(!Xwt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;co(e,"open",function(t){return function(...n){const r=Date.now(),i=Gh(n[0])?n[0].toUpperCase():void 0,a=Jwt(n[1]);if(!i||!a)return t.apply(this,n);this[wO]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[wO];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Of("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?co(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),co(this,"setRequestHeader",function(o){return function(...l){const[c,d]=l,h=this[wO];return h&&Gh(c)&&Gh(d)&&(h.request_headers[c.toLowerCase()]=d),o.apply(this,l)}}),t.apply(this,n)}}),co(e,"send",function(t){return function(...n){const r=this[wO];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Of("xhr",i),t.apply(this,n)}})}function Jwt(e){if(Gh(e))return e;try{return e.toString()}catch{}}function eTt(){return"npm"}function tTt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?CSe(e,t-1,n):r}function $B(e,t,n=1/0,r=1/0,i=tTt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!dSe(t))return t;const o=nTt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const b=c.toJSON();return $B("",b,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let h=0;const p=bSe(t);for(const b in p){if(!Object.prototype.hasOwnProperty.call(p,b))continue;if(h>=r){d[b]="[MaxProperties ~]";break}const v=p[b];d[b]=$B(b,v,l-1,r,i),h++}return s(t),d}function nTt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(fSe(t))return"[VueViewModel]";if(gwt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Em(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=rTt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function rTt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function iTt(e){return~-encodeURI(e).split(/%..|./).length}function aTt(e){return iTt(JSON.stringify(e))}var Bp;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Bp||(Bp={}));function ZS(e){return new ec(t=>{t(e)})}function tZ(e){return new ec((t,n)=>{n(e)})}class ec{constructor(t){ec.prototype.__init.call(this),ec.prototype.__init2.call(this),ec.prototype.__init3.call(this),ec.prototype.__init4.call(this),this._state=Bp.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new ec((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ec((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Bp.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Bp.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Bp.PENDING){if(j6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Bp.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Bp.RESOLVED&&n[1](this._value),this._state===Bp.REJECTED&&n[2](this._value),n[0]=!0)})}}}function sTt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new ec((o,l)=>{let c=t.length;if(!c)return o(!0);const d=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(h=>{ZS(h).then(()=>{--c||(clearTimeout(d),o(!0))},l)})})}return{$:t,add:i,drain:a}}function $5(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const oTt=["fatal","error","warning","log","info","debug"];function lTt(e){return e==="warn"?"warning":oTt.includes(e)?e:"log"}const _Se=1e3;function XC(){return Date.now()/_Se}function uTt(){const{performance:e}=ui;if(!e||!e.now)return XC;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/_Se}const KC=uTt(),Kh=(()=>{const{performance:e}=ui;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=_se(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=_se(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(cTt)){const s=i.slice(ASe.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function RSe(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${ASe}${r}`]=i),n),{});return hTt(t)}function _se(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function hTt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>dTt?(BE&&Mt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const pTt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function mTt(e){if(!e)return;const t=e.match(pTt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function gTt(e,t){const n=mTt(e),r=fTt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||Ya(),parentSpanId:a||Ya().substring(16),spanId:Ya().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||Ya(),spanId:Ya().substring(16)}}}function nZ(e=Ya(),t=Ya().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function UE(e,t=[]){return[e,t]}function bTt(e,t){const[n,r]=e;return[n,[...r,t]]}function Ase(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function BB(e,t){return(t||new TextEncoder).encode(e)}function yTt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[BB(i,t),s]:i.push(typeof s=="string"?BB(s,t):s)}for(const s of r){const[o,l]=s;if(a(` ${JSON.stringify(o)} -`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(_0(l))}a(c)}}return typeof i=="string"?i:mwt(i)}function mwt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function gwt(e,t){const n=typeof e.data=="string"?BB(e.data,t):e.data;return[cd({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const bwt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function mse(e){return bwt[e]}function pSe(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ywt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:VC(r)},...i&&{trace:cd({...i})}}}function vwt(e,t,n){const r=[{type:"client_report"},{timestamp:n||WC(),discarded_events:e}];return BE(t?{dsn:t}:{},[r])}const Owt=60*1e3;function Swt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Owt:r-t}function Ewt(e,t){return e[t]||e.all||0}function wwt(e,t,n=Date.now()){return Ewt(e,t)>n}function Twt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,c]=o.split(":",2),d=parseInt(l,10),h=(isNaN(d)?60:d)*1e3;if(!c)i.all=r+h;else for(const p of c.split(";"))i[p]=r+h}else s?i.all=r+Swt(s,r):t===429&&(i.all=r+60*1e3);return i}const Wn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,H6="production";function XG(){return ZOe("globalEventProcessors",()=>[])}function xwt(e){XG().push(e)}function HI(e,t,n,r=0){return new ec((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);Wn&&s.id&&o===null&&Mt.log(`Event processor "${s.id}" dropped event`),z6(o)?o.then(l=>HI(e,l,n,r+1).then(i)).then(null,a):HI(e,o,n,r+1).then(i).then(null,a)}})}function mSe(e){const t=QC(),n={sid:Qa(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>kwt(n)};return e&&ny(n,e),n}function ny(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||QC(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Qa()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function gSe(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ny(e,n)}function kwt(e){return cd({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Cwt=0,bSe=1;function KG(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=gl(e);return cd({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function V6(e){const{traceId:t,spanId:n}=e.spanContext(),r=ySe(e);return ZG(t,n,r)}function W6(e){return typeof e=="number"?gse(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gse(e.getTime()):QC()}function gse(e){return e>9999999999?e/1e3:e}function gl(e){return _wt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function _wt(e){return typeof e.getSpanJSON=="function"}function ySe(e){const{traceFlags:t}=e.spanContext();return!!(t&bSe)}function Awt(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Qa(),timestamp:t.timestamp||WC()},c=n.integrations||e.integrations.map(w=>w.name);Rwt(l,e),Nwt(l,c),t.type===void 0&&Iwt(l,e.stackParser);const d=Mwt(r,n.captureContext);n.mechanism&&gk(l,n.mechanism);const h=i&&i.getEventProcessors?i.getEventProcessors():[],p=qwt().getScopeData();if(a){const w=a.getScopeData();Ose(p,w)}if(d){const w=d.getScopeData();Ose(p,w)}const b=[...n.attachments||[],...p.attachments];b.length&&(n.attachments=b),ESe(l,p);const v=[...h,...XG(),...p.eventProcessors];return HI(v,l,n).then(w=>(w&&Dwt(w),typeof s=="number"&&s>0?Pwt(w,s,o):w))}function Rwt(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:H6),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=XO(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=XO(s.value,a));const o=e.request;o&&o.url&&(o.url=XO(o.url,a))}const bse=new WeakMap;function Iwt(e,t){const n=ui._sentryDebugIds;if(!n)return;let r;const i=bse.get(t);i?r=i:(r=new Map,bse.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const c=r.get(o);c?l=c:(l=t(o),r.set(o,l));for(let d=l.length-1;d>=0;d--){const h=l[d];if(h.filename){s[h.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function Dwt(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Nwt(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Pwt(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:_0(i.data,t,n)}}))},...e.user&&{user:_0(e.user,t,n)},...e.contexts&&{contexts:_0(e.contexts,t,n)},...e.extra&&{extra:_0(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=_0(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=gl(i).data;return a&&(i.data=_0(a,t,n)),i})),r}function Mwt(e,t){if(!t)return e;const n=e?e.clone():new Fh;return n.update(t),n}function Lwt(e){if(e)return $wt(e)?{captureContext:e}:Bwt(e)?{captureContext:e}:e}function $wt(e){return e instanceof Fh||typeof e=="function"}const Fwt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Bwt(e){return Object.keys(e).some(t=>Fwt.includes(t))}function Uwt(e,t){return Dd().captureException(e,Lwt(t))}function vSe(e,t){return Dd().captureEvent(e,t)}function ry(e,t){Dd().addBreadcrumb(e,t)}function zwt(...e){const t=Dd();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function yo(){return Dd().getClient()}function Nm(){return Dd().getScope()}function yse(e){const t=yo(),n=wy(),r=Nm(),{release:i,environment:a=H6}=t&&t.getOptions()||{},{userAgent:s}=ui.navigator||{},o=mSe({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&ny(l,{status:"exited"}),OSe(),n.setSession(o),r.setSession(o),o}function OSe(){const e=wy(),t=Nm(),n=t.getSession()||e.getSession();n&&gSe(n),SSe(),e.setSession(),t.setSession()}function SSe(){const e=wy(),t=Nm(),n=yo(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function vse(e=!1){if(e){OSe();return}SSe()}function VI(e){return e.transaction}function Q6(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=cd({environment:r.environment||H6,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function bk(e){const t=yo();if(!t)return{};const n=Q6(gl(e).trace_id||"",t,Nm()),r=VI(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=gl(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(ySe(r)),t.emit&&t.emit("createDsc",n),n}function ESe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;jwt(e,t),r&&Wwt(e,r),Qwt(e,n),Hwt(e,i),Vwt(e,a)}function Ose(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:h,propagationContext:p,transactionName:b,span:v}=t;N2(e,"extra",n),N2(e,"tags",r),N2(e,"user",i),N2(e,"contexts",a),N2(e,"sdkProcessingMetadata",o),s&&(e.level=s),b&&(e.transactionName=b),v&&(e.span=v),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...p}}function N2(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function jwt(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=cd(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=cd(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const d=cd(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const h=cd(a);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function Hwt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Vwt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Wwt(e,t){e.contexts={trace:KG(t),...e.contexts};const n=VI(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:bk(t),...e.sdkProcessingMetadata};const r=gl(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Qwt(e,t){e.fingerprint=e.fingerprint?iSe(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Ywt=100;let RL;class Fh{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Sse()}static clone(t){return t?t.clone():new Fh}clone(){const t=new Fh;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ny(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Fh?n:this}return t instanceof Fh?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):YS(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Sse(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Ywt;if(r<=0)return this;const i={timestamp:WC(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:c,_propagationContext:d,_sdkProcessingMetadata:h,_transactionName:p,_span:b}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:c,propagationContext:d,sdkProcessingMetadata:h,transactionName:p,span:b}}applyToEvent(t,n={},r=[]){ESe(t,this.getScopeData());const i=[...r,...XG(),...this._eventProcessors];return HI(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Qa();if(!this._client)return Mt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:Qa();if(!this._client)return Mt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Qa();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Mt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function qwt(){return RL||(RL=new Fh),RL}function Sse(){return{traceId:Qa(),spanId:Qa().substring(16)}}const UB="7.99.0",wSe=parseFloat(UB),Gwt=100;class TSe{constructor(t,n,r,i=wSe){this._version=i;let a;n?a=n:(a=new Fh,a.setClient(t));let s;r?s=r:(s=new Fh,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Qa(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Qa(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Qa();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=Gwt}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:WC(),...t},c=a?j6(()=>a(l,n)):l;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Ese(this);try{t(this)}finally{Ese(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Wn&&Mt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Wn&&!r&&(this.getClient()?Mt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(_0(l))}a(c)}}return typeof i=="string"?i:vTt(i)}function vTt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function OTt(e,t){const n=typeof e.data=="string"?BB(e.data,t):e.data;return[cd({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const STt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Rse(e){return STt[e]}function ISe(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ETt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ZC(r)},...i&&{trace:cd({...i})}}}function wTt(e,t,n){const r=[{type:"client_report"},{timestamp:n||XC(),discarded_events:e}];return UE(t?{dsn:t}:{},[r])}const TTt=60*1e3;function xTt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?TTt:r-t}function kTt(e,t){return e[t]||e.all||0}function CTt(e,t,n=Date.now()){return kTt(e,t)>n}function _Tt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,c]=o.split(":",2),d=parseInt(l,10),h=(isNaN(d)?60:d)*1e3;if(!c)i.all=r+h;else for(const p of c.split(";"))i[p]=r+h}else s?i.all=r+xTt(s,r):t===429&&(i.all=r+60*1e3);return i}const Wn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,V6="production";function rZ(){return hSe("globalEventProcessors",()=>[])}function ATt(e){rZ().push(e)}function qI(e,t,n,r=0){return new ec((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);Wn&&s.id&&o===null&&Mt.log(`Event processor "${s.id}" dropped event`),j6(o)?o.then(l=>qI(e,l,n,r+1).then(i)).then(null,a):qI(e,o,n,r+1).then(i).then(null,a)}})}function DSe(e){const t=KC(),n={sid:Ya(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>RTt(n)};return e&&iy(n,e),n}function iy(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||KC(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ya()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function NSe(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),iy(e,n)}function RTt(e){return cd({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const ITt=0,PSe=1;function iZ(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=gl(e);return cd({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function W6(e){const{traceId:t,spanId:n}=e.spanContext(),r=MSe(e);return nZ(t,n,r)}function Q6(e){return typeof e=="number"?Ise(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ise(e.getTime()):KC()}function Ise(e){return e>9999999999?e/1e3:e}function gl(e){return DTt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function DTt(e){return typeof e.getSpanJSON=="function"}function MSe(e){const{traceFlags:t}=e.spanContext();return!!(t&PSe)}function NTt(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Ya(),timestamp:t.timestamp||XC()},c=n.integrations||e.integrations.map(w=>w.name);PTt(l,e),$Tt(l,c),t.type===void 0&&MTt(l,e.stackParser);const d=BTt(r,n.captureContext);n.mechanism&&yk(l,n.mechanism);const h=i&&i.getEventProcessors?i.getEventProcessors():[],p=KTt().getScopeData();if(a){const w=a.getScopeData();Mse(p,w)}if(d){const w=d.getScopeData();Mse(p,w)}const b=[...n.attachments||[],...p.attachments];b.length&&(n.attachments=b),BSe(l,p);const v=[...h,...rZ(),...p.eventProcessors];return qI(v,l,n).then(w=>(w&<t(w),typeof s=="number"&&s>0?FTt(w,s,o):w))}function PTt(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:V6),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=JO(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=JO(s.value,a));const o=e.request;o&&o.url&&(o.url=JO(o.url,a))}const Dse=new WeakMap;function MTt(e,t){const n=ui._sentryDebugIds;if(!n)return;let r;const i=Dse.get(t);i?r=i:(r=new Map,Dse.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const c=r.get(o);c?l=c:(l=t(o),r.set(o,l));for(let d=l.length-1;d>=0;d--){const h=l[d];if(h.filename){s[h.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function LTt(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function $Tt(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function FTt(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:_0(i.data,t,n)}}))},...e.user&&{user:_0(e.user,t,n)},...e.contexts&&{contexts:_0(e.contexts,t,n)},...e.extra&&{extra:_0(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=_0(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=gl(i).data;return a&&(i.data=_0(a,t,n)),i})),r}function BTt(e,t){if(!t)return e;const n=e?e.clone():new Fh;return n.update(t),n}function UTt(e){if(e)return zTt(e)?{captureContext:e}:HTt(e)?{captureContext:e}:e}function zTt(e){return e instanceof Fh||typeof e=="function"}const jTt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function HTt(e){return Object.keys(e).some(t=>jTt.includes(t))}function VTt(e,t){return Dd().captureException(e,UTt(t))}function LSe(e,t){return Dd().captureEvent(e,t)}function ay(e,t){Dd().addBreadcrumb(e,t)}function WTt(...e){const t=Dd();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function yo(){return Dd().getClient()}function Nm(){return Dd().getScope()}function Nse(e){const t=yo(),n=Ty(),r=Nm(),{release:i,environment:a=V6}=t&&t.getOptions()||{},{userAgent:s}=ui.navigator||{},o=DSe({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&iy(l,{status:"exited"}),$Se(),n.setSession(o),r.setSession(o),o}function $Se(){const e=Ty(),t=Nm(),n=t.getSession()||e.getSession();n&&NSe(n),FSe(),e.setSession(),t.setSession()}function FSe(){const e=Ty(),t=Nm(),n=yo(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Pse(e=!1){if(e){$Se();return}FSe()}function GI(e){return e.transaction}function Y6(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=cd({environment:r.environment||V6,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function vk(e){const t=yo();if(!t)return{};const n=Y6(gl(e).trace_id||"",t,Nm()),r=GI(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=gl(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(MSe(r)),t.emit&&t.emit("createDsc",n),n}function BSe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;QTt(e,t),r&>t(e,r),ZTt(e,n),YTt(e,i),qTt(e,a)}function Mse(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:h,propagationContext:p,transactionName:b,span:v}=t;PT(e,"extra",n),PT(e,"tags",r),PT(e,"user",i),PT(e,"contexts",a),PT(e,"sdkProcessingMetadata",o),s&&(e.level=s),b&&(e.transactionName=b),v&&(e.span=v),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...p}}function PT(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function QTt(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=cd(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=cd(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const d=cd(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const h=cd(a);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function YTt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function qTt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function GTt(e,t){e.contexts={trace:iZ(t),...e.contexts};const n=GI(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:vk(t),...e.sdkProcessingMetadata};const r=gl(n).description;r&&(e.tags={transaction:r,...e.tags})}}function ZTt(e,t){e.fingerprint=e.fingerprint?SSe(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const XTt=100;let AL;class Fh{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Lse()}static clone(t){return t?t.clone():new Fh}clone(){const t=new Fh;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&iy(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Fh?n:this}return t instanceof Fh?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):GS(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Lse(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:XTt;if(r<=0)return this;const i={timestamp:XC(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:c,_propagationContext:d,_sdkProcessingMetadata:h,_transactionName:p,_span:b}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:c,propagationContext:d,sdkProcessingMetadata:h,transactionName:p,span:b}}applyToEvent(t,n={},r=[]){BSe(t,this.getScopeData());const i=[...r,...rZ(),...this._eventProcessors];return qI(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Ya();if(!this._client)return Mt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:Ya();if(!this._client)return Mt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ya();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Mt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function KTt(){return AL||(AL=new Fh),AL}function Lse(){return{traceId:Ya(),spanId:Ya().substring(16)}}const UB="7.99.0",USe=parseFloat(UB),JTt=100;class zSe{constructor(t,n,r,i=USe){this._version=i;let a;n?a=n:(a=new Fh,a.setClient(t));let s;r?s=r:(s=new Fh,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Ya(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Ya(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ya();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=JTt}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:XC(),...t},c=a?H6(()=>a(l,n)):l;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=$se(this);try{t(this)}finally{$se(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Wn&&Mt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Wn&&!r&&(this.getClient()?Mt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); -`):Mt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&gSe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=H6}=r&&r.getOptions()||{},{userAgent:s}=ui.navigator||{},o=mSe({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&ny(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=YC().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);Wn&&Mt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function YC(){return ui.__SENTRY__=ui.__SENTRY__||{extensions:{},hub:void 0},ui}function Ese(e){const t=YC(),n=zB(t);return xSe(t,e),n}function Dd(){const e=YC();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Zwt(e)}function wy(){return Dd().getIsolationScope()}function Zwt(e=YC()){return(!Xwt(e)||zB(e).isOlderThan(wSe))&&xSe(e,new TSe),zB(e)}function Xwt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function zB(e){return ZOe("hub",()=>new TSe,e)}function xSe(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function UE(e){return(e||Dd()).getScope().getTransaction()}let wse=!1;function Kwt(){wse||(wse=!0,oSe(jB),lSe(jB))}function jB(){const e=UE();if(e){const t="internal_error";Wn&&Mt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}jB.tag="sentry_tracingErrorCallback";const JO="sentry.source",wO="sentry.sample_rate",_3="sentry.op",TO="sentry.origin";var Tse;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const c="unavailable";e.Unavailable=c;const d="internal_error";e.InternalError=d;const h="unknown_error";e.UnknownError=h;const p="cancelled";e.Cancelled=p;const b="already_exists";e.AlreadyExists=b;const v="failed_precondition";e.FailedPrecondition=v;const S="aborted";e.Aborted=S;const w="out_of_range";e.OutOfRange=w;const T="data_loss";e.DataLoss=T})(Tse||(Tse={}));function Jwt(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function JG(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=Jwt(t);n!=="unknown_error"&&e.setStatus(n)}class kSe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class eZ{constructor(t={}){this._traceId=t.traceId||Qa(),this._spanId=t.spanId||Qa().substring(16),this._startTime=t.startTimestamp||QC(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[TO]:t.origin||"manual",[_3]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp)}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[_3]}set op(t){this.setAttribute(_3,t)}get origin(){return this._attributes[TO]}set origin(t){this.setAttribute(TO,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?bSe:Cwt}}startChild(t){const n=new eZ({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=VI(this);if(n.transaction=r,Wn&&r){const i=t&&t.op||"< unknown op >",a=gl(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;Mt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return JG(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=VI(this);if(Wn&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Mt.log(r.replace("Starting","Finishing"))}this._endTime=W6(t)}toTraceparent(){return V6(this)}toContext(){return cd({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return KG(this)}getSpanJSON(){return cd({data:this._getData(),description:this._name,op:this._attributes[_3],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[TO]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class CSe extends eZ{constructor(t,n){super(t),this._measurements={},this._contexts={},this._hub=n||Dd(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[JO]&&{source:this._attributes[JO]},...this._attributes[wO]&&{sampleRate:this._attributes[wO]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(JO,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new kSe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=W6(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return cd({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return bk(this)}setHub(t){this._hub=t}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(Wn&&Mt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){Wn&&Mt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&gl(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(c=>gl(c).timestamp).filter(Boolean);this._endTime=l.reduce((c,d)=>c>d?c:d)}const{metadata:i}=this,{source:a}=i,s={contexts:{...this._contexts,trace:KG(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:bk(this)},...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(Wn&&Mt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),Wn&&Mt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}const D5={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},e2t="finishReason",$v=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class t2t extends kSe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),gl(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class n2t extends CSe{constructor(t,n,r=D5.idleTimeout,i=D5.finalTimeout,a=D5.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=$v[4],this._autoFinishAllowed=!o,s&&(Wn&&Mt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=$v[3],this.end())},this._finalTimeout)}end(t){const n=W6(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(e2t,this._finishReason),this.spanRecorder){Wn&&Mt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;gl(r).timestamp||(r.setStatus("cancelled"),r.end(n),Wn&&Mt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=gl(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new t2t(n,r,this.spanContext().spanId,t),Wn&&Mt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=$v[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(Wn&&Mt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=$v[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Wn&&Mt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Wn&&Mt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Wn&&Mt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Wn&&Mt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=QC();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=$v[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Wn&&Mt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=$v[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Wn&&Mt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Y6(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=yo(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function _Se(e,t,n){if(!Y6(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(wO,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(wO,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(wO,Number(r))):(r=1,e.setAttribute(wO,r)),r2t(r)?r?(e.sampled=Math.random()1?(Wn&&Mt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function i2t(){const t=this.getScope().getSpan();return t?{"sentry-trace":V6(t)}:{}}function a2t(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(Wn&&Mt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. -The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new CSe(e,this);return s=_Se(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function xse(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),c=l&&l.getOptions()||{};let d=new n2t(t,e,n,r,s,i,o);return d=_Se(d,c,{parentSampled:t.parentSampled,transactionContext:t,...a}),d.isRecording()&&d.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",d),d}function s2t(){const e=YC();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=a2t),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=i2t),Kwt())}function ASe(e){if(!Y6())return;const t=l2t(e),n=Dd(),r=e.scope?e.scope.getSpan():o2t();if(!(e.onlyIfParent&&!r)){if(r)return r.startChild(t);{const a=wy(),s=Nm(),{traceId:o,dsc:l,parentSpanId:c,sampled:d}={...a.getPropagationContext(),...s.getPropagationContext()};return n.startTransaction({traceId:o,parentSpanId:c,parentSampled:d,...t,metadata:{dynamicSamplingContext:l,...t.metadata}})}}}function o2t(){return Nm().getSpan()}function l2t(e){if(e.startTime){const t={...e};return t.startTimestamp=W6(e.startTime),delete t.startTime,t}return e}function u2t(e,t,n){const r=UE();r&&r.setMeasurement(e,t,n)}function c2t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function d2t(e,t,n,r){const i=pSe(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:VC(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return BE(a,[s])}function f2t(e,t,n,r){const i=pSe(n),a=e.type&&e.type!=="replay_event"?e.type:"event";c2t(e,n&&n.sdk);const s=ywt(e,i,r,t);return delete e.sdkProcessingMetadata,BE(s,[[{type:a},e]])}const h2t="7";function p2t(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function m2t(e){return`${p2t(e)}${e.projectId}/envelope/`}function g2t(e,t){return CEt({sentry_key:e.publicKey,sentry_version:h2t,...t&&{sentry_client:`${t.name}/${t.version}`}})}function b2t(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${m2t(e)}?${g2t(e,r)}`}const kse=[];function y2t(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function v2t(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=iSe(n(t)):r=t;const i=y2t(r),a=S2t(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function O2t(e,t){const n={};return t.forEach(r=>{r&&RSe(e,r,n)}),n}function Cse(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function RSe(e,t,n){if(n[t.name]){Wn&&Mt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,kse.indexOf(t.name)===-1&&(t.setupOnce(xwt,Dd),kse.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}Wn&&Mt.log(`Integration installed: ${t.name}`)}function S2t(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} -`}return t}function w2t(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=VC(t));const a=T2t(e);return BE(i,[a])}function T2t(e){const t=E2t(e);return[{type:"statsd",length:t.length},t]}const _se="Not capturing exception because it's already been captured.";class x2t{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=kEt(t.dsn):Wn&&Mt.warn("No DSN provided, client will not send events."),this._dsn){const n=b2t(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(use(t)){Wn&&Mt.log(_se);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=VG(t)?t:String(t),o=WG(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&use(n.originalException)){Wn&&Mt.log(_se);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(a=>{i=a})),i}captureSession(t){typeof t.release!="string"?Wn&&Mt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ny(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):qS(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Wn&&Mt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];RSe(this,t,this._integrations),n||Cse(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=f2t(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=hwt(r,gwt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=d2t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;Wn&&Mt.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(t){Wn&&Mt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=w2t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=O2t(this,t),Cse(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(ny(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new ec(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=wy()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),Awt(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:d,spanId:h,parentSpanId:p,dsc:b}=l;o.contexts={trace:{trace_id:d,span_id:h,parent_span_id:p},...o.contexts};const v=b||Q6(d,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:v,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Wn){const a=i;a.logLevel==="log"?Mt.log(a.message):Mt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=DSe(t),o=ISe(t),l=t.type||"error",c=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),GG(new Ah(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",d,t),new Ah("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const b=C2t(i,h,n);return k2t(b,c)}).then(h=>{if(h===null)throw this.recordDroppedEvent("before_send",d,t),new Ah(`${c} returned \`null\`, will not send event.`,"log");const p=r&&r.getSession();!s&&p&&this._updateSessionFromEvent(p,h);const b=h.transaction_info;if(s&&b&&h.transaction!==t.transaction){const v="custom";h.transaction_info={...b,source:v}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof Ah?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new Ah(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Wn&&Mt.error("Error while sending event:",n)});Wn&&Mt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function k2t(e,t){const n=`${t} must return \`null\` or a valid event.`;if(z6(e))return e.then(r=>{if(!YS(r)&&r!==null)throw new Ah(n);return r},r=>{throw new Ah(`${t} rejected with ${r}`)});if(!YS(e)&&e!==null)throw new Ah(n);return e}function C2t(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return ISe(t)&&r?r(t,n):DSe(t)&&i?i(t,n):t}function ISe(e){return e.type===void 0}function DSe(e){return e.type==="transaction"}function _2t(e,t){t.debug===!0&&(Wn?Mt.enable():j6(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Nm().update(t.initialScope);const r=new e(t);A2t(r),R2t(r)}function A2t(e){const n=Dd().getStackTop();n.client=e,n.scope.setClient(e)}function R2t(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const I2t=30;function NSe(e,t,n=nwt(e.bufferSize||I2t)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(pse(s,(h,p)=>{const b=mse(p);if(wwt(r,b)){const v=Ase(h,p);e.recordDroppedEvent("ratelimit_backoff",b,v)}else o.push(h)}),o.length===0)return qS();const l=BE(s[0],o),c=h=>{pse(l,(p,b)=>{const v=Ase(p,b);e.recordDroppedEvent(h,mse(b),v)})},d=()=>t({body:pwt(l,e.textEncoder)}).then(h=>(h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&Wn&&Mt.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=Twt(r,h),h),h=>{throw c("network_error"),h});return n.add(d).then(h=>h,h=>{if(h instanceof Ah)return Wn&&Mt.error("Skipped sending event because buffer is full."),c("queue_overflow"),qS();throw h})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function Ase(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function PSe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:UB})),version:UB}),e._metadata=i}const D2t=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],N2t=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],MSe="InboundFilters",P2t=(e={})=>({name:MSe,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=M2t(e,i);return L2t(t,a)?null:t}}),LSe=P2t;Xg(MSe,LSe);function M2t(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:D2t],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:N2t],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function L2t(e,t){return t.ignoreInternal&&j2t(e)?(Wn&&Mt.warn(`Event dropped due to being internal Sentry Error. -Event: ${P0(e)}`),!0):$2t(e,t.ignoreErrors)?(Wn&&Mt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${P0(e)}`),!0):F2t(e,t.ignoreTransactions)?(Wn&&Mt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${P0(e)}`),!0):B2t(e,t.denyUrls)?(Wn&&Mt.warn(`Event dropped due to being matched by \`denyUrls\` option. +`):Mt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&NSe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=V6}=r&&r.getOptions()||{},{userAgent:s}=ui.navigator||{},o=DSe({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&iy(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=JC().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);Wn&&Mt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function JC(){return ui.__SENTRY__=ui.__SENTRY__||{extensions:{},hub:void 0},ui}function $se(e){const t=JC(),n=zB(t);return jSe(t,e),n}function Dd(){const e=JC();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return e2t(e)}function Ty(){return Dd().getIsolationScope()}function e2t(e=JC()){return(!t2t(e)||zB(e).isOlderThan(USe))&&jSe(e,new zSe),zB(e)}function t2t(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function zB(e){return hSe("hub",()=>new zSe,e)}function jSe(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function zE(e){return(e||Dd()).getScope().getTransaction()}let Fse=!1;function n2t(){Fse||(Fse=!0,TSe(jB),xSe(jB))}function jB(){const e=zE();if(e){const t="internal_error";Wn&&Mt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}jB.tag="sentry_tracingErrorCallback";const tS="sentry.source",TO="sentry.sample_rate",P3="sentry.op",xO="sentry.origin";var Bse;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const c="unavailable";e.Unavailable=c;const d="internal_error";e.InternalError=d;const h="unknown_error";e.UnknownError=h;const p="cancelled";e.Cancelled=p;const b="already_exists";e.AlreadyExists=b;const v="failed_precondition";e.FailedPrecondition=v;const S="aborted";e.Aborted=S;const w="out_of_range";e.OutOfRange=w;const T="data_loss";e.DataLoss=T})(Bse||(Bse={}));function r2t(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function aZ(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=r2t(t);n!=="unknown_error"&&e.setStatus(n)}class HSe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class sZ{constructor(t={}){this._traceId=t.traceId||Ya(),this._spanId=t.spanId||Ya().substring(16),this._startTime=t.startTimestamp||KC(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[xO]:t.origin||"manual",[P3]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp)}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[P3]}set op(t){this.setAttribute(P3,t)}get origin(){return this._attributes[xO]}set origin(t){this.setAttribute(xO,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?PSe:ITt}}startChild(t){const n=new sZ({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=GI(this);if(n.transaction=r,Wn&&r){const i=t&&t.op||"< unknown op >",a=gl(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;Mt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return aZ(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=GI(this);if(Wn&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Mt.log(r.replace("Starting","Finishing"))}this._endTime=Q6(t)}toTraceparent(){return W6(this)}toContext(){return cd({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return iZ(this)}getSpanJSON(){return cd({data:this._getData(),description:this._name,op:this._attributes[P3],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[xO]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class VSe extends sZ{constructor(t,n){super(t),this._measurements={},this._contexts={},this._hub=n||Dd(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[tS]&&{source:this._attributes[tS]},...this._attributes[TO]&&{sampleRate:this._attributes[TO]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(tS,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new HSe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=Q6(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return cd({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return vk(this)}setHub(t){this._hub=t}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(Wn&&Mt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){Wn&&Mt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&gl(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(c=>gl(c).timestamp).filter(Boolean);this._endTime=l.reduce((c,d)=>c>d?c:d)}const{metadata:i}=this,{source:a}=i,s={contexts:{...this._contexts,trace:iZ(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:vk(this)},...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(Wn&&Mt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),Wn&&Mt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}const F5={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},i2t="finishReason",Bv=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class a2t extends HSe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),gl(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class s2t extends VSe{constructor(t,n,r=F5.idleTimeout,i=F5.finalTimeout,a=F5.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Bv[4],this._autoFinishAllowed=!o,s&&(Wn&&Mt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Bv[3],this.end())},this._finalTimeout)}end(t){const n=Q6(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(i2t,this._finishReason),this.spanRecorder){Wn&&Mt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;gl(r).timestamp||(r.setStatus("cancelled"),r.end(n),Wn&&Mt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=gl(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new a2t(n,r,this.spanContext().spanId,t),Wn&&Mt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Bv[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(Wn&&Mt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Bv[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Wn&&Mt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Wn&&Mt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Wn&&Mt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Wn&&Mt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=KC();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Bv[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Wn&&Mt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Bv[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Wn&&Mt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function q6(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=yo(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function WSe(e,t,n){if(!q6(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(TO,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(TO,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(TO,Number(r))):(r=1,e.setAttribute(TO,r)),o2t(r)?r?(e.sampled=Math.random()1?(Wn&&Mt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function l2t(){const t=this.getScope().getSpan();return t?{"sentry-trace":W6(t)}:{}}function u2t(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(Wn&&Mt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. +The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new VSe(e,this);return s=WSe(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Use(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),c=l&&l.getOptions()||{};let d=new s2t(t,e,n,r,s,i,o);return d=WSe(d,c,{parentSampled:t.parentSampled,transactionContext:t,...a}),d.isRecording()&&d.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",d),d}function c2t(){const e=JC();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=u2t),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=l2t),n2t())}function QSe(e){if(!q6())return;const t=f2t(e),n=Dd(),r=e.scope?e.scope.getSpan():d2t();if(!(e.onlyIfParent&&!r)){if(r)return r.startChild(t);{const a=Ty(),s=Nm(),{traceId:o,dsc:l,parentSpanId:c,sampled:d}={...a.getPropagationContext(),...s.getPropagationContext()};return n.startTransaction({traceId:o,parentSpanId:c,parentSampled:d,...t,metadata:{dynamicSamplingContext:l,...t.metadata}})}}}function d2t(){return Nm().getSpan()}function f2t(e){if(e.startTime){const t={...e};return t.startTimestamp=Q6(e.startTime),delete t.startTime,t}return e}function h2t(e,t,n){const r=zE();r&&r.setMeasurement(e,t,n)}function p2t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function m2t(e,t,n,r){const i=ISe(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ZC(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return UE(a,[s])}function g2t(e,t,n,r){const i=ISe(n),a=e.type&&e.type!=="replay_event"?e.type:"event";p2t(e,n&&n.sdk);const s=ETt(e,i,r,t);return delete e.sdkProcessingMetadata,UE(s,[[{type:a},e]])}const b2t="7";function y2t(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function v2t(e){return`${y2t(e)}${e.projectId}/envelope/`}function O2t(e,t){return Iwt({sentry_key:e.publicKey,sentry_version:b2t,...t&&{sentry_client:`${t.name}/${t.version}`}})}function S2t(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${v2t(e)}?${O2t(e,r)}`}const zse=[];function E2t(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function w2t(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=SSe(n(t)):r=t;const i=E2t(r),a=x2t(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function T2t(e,t){const n={};return t.forEach(r=>{r&&YSe(e,r,n)}),n}function jse(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function YSe(e,t,n){if(n[t.name]){Wn&&Mt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,zse.indexOf(t.name)===-1&&(t.setupOnce(ATt,Dd),zse.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}Wn&&Mt.log(`Integration installed: ${t.name}`)}function x2t(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} +`}return t}function C2t(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=ZC(t));const a=_2t(e);return UE(i,[a])}function _2t(e){const t=k2t(e);return[{type:"statsd",length:t.length},t]}const Hse="Not capturing exception because it's already been captured.";class A2t{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Rwt(t.dsn):Wn&&Mt.warn("No DSN provided, client will not send events."),this._dsn){const n=S2t(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Tse(t)){Wn&&Mt.log(Hse);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=ZG(t)?t:String(t),o=XG(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&Tse(n.originalException)){Wn&&Mt.log(Hse);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(a=>{i=a})),i}captureSession(t){typeof t.release!="string"?Wn&&Mt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),iy(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):ZS(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Wn&&Mt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];YSe(this,t,this._integrations),n||jse(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=g2t(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=bTt(r,OTt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=m2t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;Wn&&Mt.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(t){Wn&&Mt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=C2t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=T2t(this,t),jse(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(iy(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new ec(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=Ty()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),NTt(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:d,spanId:h,parentSpanId:p,dsc:b}=l;o.contexts={trace:{trace_id:d,span_id:h,parent_span_id:p},...o.contexts};const v=b||Y6(d,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:v,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Wn){const a=i;a.logLevel==="log"?Mt.log(a.message):Mt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=GSe(t),o=qSe(t),l=t.type||"error",c=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),tZ(new Ah(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",d,t),new Ah("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const b=I2t(i,h,n);return R2t(b,c)}).then(h=>{if(h===null)throw this.recordDroppedEvent("before_send",d,t),new Ah(`${c} returned \`null\`, will not send event.`,"log");const p=r&&r.getSession();!s&&p&&this._updateSessionFromEvent(p,h);const b=h.transaction_info;if(s&&b&&h.transaction!==t.transaction){const v="custom";h.transaction_info={...b,source:v}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof Ah?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new Ah(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Wn&&Mt.error("Error while sending event:",n)});Wn&&Mt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function R2t(e,t){const n=`${t} must return \`null\` or a valid event.`;if(j6(e))return e.then(r=>{if(!GS(r)&&r!==null)throw new Ah(n);return r},r=>{throw new Ah(`${t} rejected with ${r}`)});if(!GS(e)&&e!==null)throw new Ah(n);return e}function I2t(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return qSe(t)&&r?r(t,n):GSe(t)&&i?i(t,n):t}function qSe(e){return e.type===void 0}function GSe(e){return e.type==="transaction"}function D2t(e,t){t.debug===!0&&(Wn?Mt.enable():H6(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Nm().update(t.initialScope);const r=new e(t);N2t(r),P2t(r)}function N2t(e){const n=Dd().getStackTop();n.client=e,n.scope.setClient(e)}function P2t(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const M2t=30;function ZSe(e,t,n=sTt(e.bufferSize||M2t)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(Ase(s,(h,p)=>{const b=Rse(p);if(CTt(r,b)){const v=Vse(h,p);e.recordDroppedEvent("ratelimit_backoff",b,v)}else o.push(h)}),o.length===0)return ZS();const l=UE(s[0],o),c=h=>{Ase(l,(p,b)=>{const v=Vse(p,b);e.recordDroppedEvent(h,Rse(b),v)})},d=()=>t({body:yTt(l,e.textEncoder)}).then(h=>(h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&Wn&&Mt.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=_Tt(r,h),h),h=>{throw c("network_error"),h});return n.add(d).then(h=>h,h=>{if(h instanceof Ah)return Wn&&Mt.error("Skipped sending event because buffer is full."),c("queue_overflow"),ZS();throw h})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function Vse(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function XSe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:UB})),version:UB}),e._metadata=i}const L2t=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],$2t=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],KSe="InboundFilters",F2t=(e={})=>({name:KSe,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=B2t(e,i);return U2t(t,a)?null:t}}),JSe=F2t;Kg(KSe,JSe);function B2t(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:L2t],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:$2t],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function U2t(e,t){return t.ignoreInternal&&Q2t(e)?(Wn&&Mt.warn(`Event dropped due to being internal Sentry Error. +Event: ${P0(e)}`),!0):z2t(e,t.ignoreErrors)?(Wn&&Mt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${P0(e)}`),!0):j2t(e,t.ignoreTransactions)?(Wn&&Mt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${P0(e)}`),!0):H2t(e,t.denyUrls)?(Wn&&Mt.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${P0(e)}. -Url: ${WI(e)}`),!0):U2t(e,t.allowUrls)?!1:(Wn&&Mt.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Url: ${ZI(e)}`),!0):V2t(e,t.allowUrls)?!1:(Wn&&Mt.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${P0(e)}. -Url: ${WI(e)}`),!0)}function $2t(e,t){return e.type||!t||!t.length?!1:z2t(e).some(n=>HC(n,t))}function F2t(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?HC(n,t):!1}function B2t(e,t){if(!t||!t.length)return!1;const n=WI(e);return n?HC(n,t):!1}function U2t(e,t){if(!t||!t.length)return!0;const n=WI(e);return n?HC(n,t):!0}function z2t(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Wn&&t.length===0&&Mt.error(`Could not extract message for event ${P0(e)}`),t}function j2t(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function H2t(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function WI(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?H2t(t):null}catch{return Wn&&Mt.error(`Cannot extract url for event ${P0(e)}`),null}}let Rse;const $Se="FunctionToString",Ise=new WeakMap,V2t=()=>({name:$Se,setupOnce(){Rse=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=YG(this),n=Ise.has(yo())&&t!==void 0?t:this;return Rse.apply(n,e)}}catch{}},setup(e){Ise.set(e,!0)}}),FSe=V2t;Xg($Se,FSe);const ga=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,li=ui;function W2t(){li&&li.document?li.document.addEventListener("visibilitychange",()=>{const e=UE();if(li.document.hidden&&e){const t="cancelled",{op:n,status:r}=gl(e);ga&&Mt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):ga&&Mt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const tZ=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Q2t=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Y2t=()=>{const e=li.performance.timing,t=li.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},BSe=()=>li.__WEB_VITALS_POLYFILL__?li.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Y2t()):li.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],USe=()=>{const e=BSe();return e&&e.activationStart||0},nZ=(e,t)=>{const n=BSe();let r="navigate";return n&&(li.document.prerendering||USe()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Q2t(),navigationType:r}},q6=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},G6=(e,t)=>{const n=r=>{(r.type==="pagehide"||li.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},q2t=e=>{const t=nZ("CLS",0);let n,r=0,i=[];const a=o=>{o.forEach(l=>{if(!l.hadRecentInput){const c=i[0],d=i[i.length-1];r&&i.length!==0&&l.startTime-d.startTime<1e3&&l.startTime-c.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=q6("layout-shift",a);if(s){n=tZ(e,t);const o=()=>{a(s.takeRecords()),n(!0)};return G6(o),o}};let N5=-1;const G2t=()=>li.document.visibilityState==="hidden"&&!li.document.prerendering?0:1/0,Z2t=()=>{G6(({timeStamp:e})=>{N5=e},!0)},rZ=()=>(N5<0&&(N5=G2t(),Z2t()),{get firstHiddenTime(){return N5}}),X2t=e=>{const t=rZ(),n=nZ("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=q6("first-input",a);r=tZ(e,n),s&&G6(()=>{a(s.takeRecords()),s.disconnect()},!0)},Dse={},K2t=e=>{const t=rZ(),n=nZ("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-USe(),0);l{Dse[n.id]||(i(a.takeRecords()),a.disconnect(),Dse[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),G6(s,!0),s}},YT={},QI={};let zSe,jSe,HSe;function J2t(e,t=!1){return aZ("cls",e,nTt,zSe,t)}function eTt(e,t=!1){return aZ("lcp",e,iTt,HSe,t)}function tTt(e){return aZ("fid",e,rTt,jSe)}function iZ(e,t){return VSe(e,t),QI[e]||(aTt(e),QI[e]=!0),WSe(e,t)}function Z6(e,t){const n=YT[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){ga&&Mt.error(`Error while triggering instrumentation handler. +Url: ${ZI(e)}`),!0)}function z2t(e,t){return e.type||!t||!t.length?!1:W2t(e).some(n=>GC(n,t))}function j2t(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?GC(n,t):!1}function H2t(e,t){if(!t||!t.length)return!1;const n=ZI(e);return n?GC(n,t):!1}function V2t(e,t){if(!t||!t.length)return!0;const n=ZI(e);return n?GC(n,t):!0}function W2t(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Wn&&t.length===0&&Mt.error(`Could not extract message for event ${P0(e)}`),t}function Q2t(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Y2t(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function ZI(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Y2t(t):null}catch{return Wn&&Mt.error(`Cannot extract url for event ${P0(e)}`),null}}let Wse;const eEe="FunctionToString",Qse=new WeakMap,q2t=()=>({name:eEe,setupOnce(){Wse=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=JG(this),n=Qse.has(yo())&&t!==void 0?t:this;return Wse.apply(n,e)}}catch{}},setup(e){Qse.set(e,!0)}}),tEe=q2t;Kg(eEe,tEe);const va=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,li=ui;function G2t(){li&&li.document?li.document.addEventListener("visibilitychange",()=>{const e=zE();if(li.document.hidden&&e){const t="cancelled",{op:n,status:r}=gl(e);va&&Mt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):va&&Mt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const oZ=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Z2t=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,X2t=()=>{const e=li.performance.timing,t=li.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},nEe=()=>li.__WEB_VITALS_POLYFILL__?li.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||X2t()):li.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],rEe=()=>{const e=nEe();return e&&e.activationStart||0},lZ=(e,t)=>{const n=nEe();let r="navigate";return n&&(li.document.prerendering||rEe()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Z2t(),navigationType:r}},G6=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Z6=(e,t)=>{const n=r=>{(r.type==="pagehide"||li.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},K2t=e=>{const t=lZ("CLS",0);let n,r=0,i=[];const a=o=>{o.forEach(l=>{if(!l.hadRecentInput){const c=i[0],d=i[i.length-1];r&&i.length!==0&&l.startTime-d.startTime<1e3&&l.startTime-c.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=G6("layout-shift",a);if(s){n=oZ(e,t);const o=()=>{a(s.takeRecords()),n(!0)};return Z6(o),o}};let B5=-1;const J2t=()=>li.document.visibilityState==="hidden"&&!li.document.prerendering?0:1/0,ext=()=>{Z6(({timeStamp:e})=>{B5=e},!0)},uZ=()=>(B5<0&&(B5=J2t(),ext()),{get firstHiddenTime(){return B5}}),txt=e=>{const t=uZ(),n=lZ("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=G6("first-input",a);r=oZ(e,n),s&&Z6(()=>{a(s.takeRecords()),s.disconnect()},!0)},Yse={},nxt=e=>{const t=uZ(),n=lZ("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-rEe(),0);l{Yse[n.id]||(i(a.takeRecords()),a.disconnect(),Yse[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),Z6(s,!0),s}},q2={},XI={};let iEe,aEe,sEe;function rxt(e,t=!1){return dZ("cls",e,sxt,iEe,t)}function ixt(e,t=!1){return dZ("lcp",e,lxt,sEe,t)}function axt(e){return dZ("fid",e,oxt,aEe)}function cZ(e,t){return oEe(e,t),XI[e]||(uxt(e),XI[e]=!0),lEe(e,t)}function X6(e,t){const n=q2[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){va&&Mt.error(`Error while triggering instrumentation handler. Type: ${e} -Name: ${Sm(r)} -Error:`,i)}}function nTt(){return q2t(e=>{Z6("cls",{metric:e}),zSe=e})}function rTt(){return X2t(e=>{Z6("fid",{metric:e}),jSe=e})}function iTt(){return K2t(e=>{Z6("lcp",{metric:e}),HSe=e})}function aZ(e,t,n,r,i=!1){VSe(e,t);let a;return QI[e]||(a=n(),QI[e]=!0),r&&t({metric:r}),WSe(e,t,i?a:void 0)}function aTt(e){const t={};e==="event"&&(t.durationThreshold=0),q6(e,n=>{Z6(e,{entries:n})},t)}function VSe(e,t){YT[e]=YT[e]||[],YT[e].push(t)}function WSe(e,t,n){return()=>{n&&n();const r=YT[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function IL(e){return typeof e=="number"&&isFinite(e)}function GS(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const sTt=2147483647;function hs(e){return e/1e3}function QSe(){return li&&li.addEventListener&&li.performance}let Nse=0,Ua={},gh,qT;function oTt(){const e=QSe();if(e&&Kh){e.mark&&li.performance.mark("sentry-tracing-init");const t=fTt(),n=cTt(),r=dTt();return()=>{t(),n(),r()}}return()=>{}}function lTt(){iZ("longtask",({entries:e})=>{for(const t of e){const n=UE();if(!n)return;const r=hs(Kh+t.startTime),i=hs(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function uTt(){iZ("event",({entries:e})=>{for(const t of e){const n=UE();if(!n)return;if(t.name==="click"){const r=hs(Kh+t.startTime),i=hs(t.duration),a={description:pk(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=XOe(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function cTt(){return J2t(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ga&&Mt.log("[Measurements] Adding CLS"),Ua.cls={value:e.value,unit:""},qT=t)},!0)}function dTt(){return eTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ga&&Mt.log("[Measurements] Adding LCP"),Ua.lcp={value:e.value,unit:"millisecond"},gh=t)},!0)}function fTt(){return tTt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=hs(Kh),r=hs(t.startTime);ga&&Mt.log("[Measurements] Adding FID"),Ua.fid={value:e.value,unit:"millisecond"},Ua["mark.fid"]={value:n+r,unit:"second"}})}function hTt(e){const t=QSe();if(!t||!li.performance.getEntries||!Kh)return;ga&&Mt.log("[Tracing] Adding & adjusting spans using Performance API");const n=hs(Kh),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=gl(e);if(r.slice(Nse).forEach(l=>{const c=hs(l.startTime),d=hs(l.duration);if(!(e.op==="navigation"&&o&&n+c{if(!Ua[c]||!o||n>=o)return;const d=Ua[c].value,h=n+hs(d),p=Math.abs((h-o)*1e3),b=p-d;ga&&Mt.log(`[Measurements] Normalized ${c} from ${d} to ${p} (${b})`),Ua[c].value=p});const l=Ua["mark.fid"];l&&Ua.fid&&(GS(e,{description:"first input delay",endTimestamp:l.value+hs(Ua.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete Ua["mark.fid"]),"fcp"in Ua||delete Ua.cls,Object.keys(Ua).forEach(c=>{u2t(c,Ua[c].value,Ua[c].unit)}),vTt(e)}gh=void 0,qT=void 0,Ua={}}function pTt(e,t,n,r,i){const a=i+n,s=a+r;return GS(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function mTt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{A3(e,t,r,n)}),A3(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),A3(e,t,"fetch",n,"cache","domainLookupStart"),A3(e,t,"domainLookup",n,"DNS"),gTt(e,t,n)}function A3(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||GS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+hs(o),endTimestamp:r+hs(s)})}function gTt(e,t,n){t.responseEnd&&(GS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+hs(t.requestStart),endTimestamp:n+hs(t.responseEnd)}),GS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+hs(t.responseStart),endTimestamp:n+hs(t.responseEnd)}))}function bTt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=I5(n),o={};DL(o,t,"transferSize","http.response_transfer_size"),DL(o,t,"encodedBodySize","http.response_content_length"),DL(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(li.location.origin);const l=a+r,c=l+i;GS(e,{description:n.replace(li.location.origin,""),endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function yTt(e){const t=li.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),IL(n.rtt)&&(Ua["connection.rtt"]={value:n.rtt,unit:"millisecond"})),IL(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),IL(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function vTt(e){gh&&(ga&&Mt.log("[Measurements] Adding LCP Data"),gh.element&&e.setTag("lcp.element",pk(gh.element)),gh.id&&e.setTag("lcp.id",gh.id),gh.url&&e.setTag("lcp.url",gh.url.trim().slice(0,200)),e.setTag("lcp.size",gh.size)),qT&&qT.sources&&(ga&&Mt.log("[Measurements] Adding CLS Data"),qT.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,pk(t.node))))}function DL(e,t,n,r){const i=t[n];i!=null&&i0&&p.setAttribute("http.response_content_length",v)}}else e.error&&p.setStatus("internal_error");p.end(),delete r[h]}return}const s=Nm(),o=yo(),{method:l,url:c}=e.fetchData,d=a?ASe({name:`${l} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,[TO]:i},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d),n(e.fetchData.url)&&o){const h=e.args[0];e.args[1]=e.args[1]||{};const p=e.args[1];p.headers=ETt(h,o,s,p,d)}return d}function ETt(e,t,n,r,i){const a=i||n.getSpan(),s=wy(),{traceId:o,spanId:l,sampled:c,dsc:d}={...s.getPropagationContext(),...n.getPropagationContext()},h=a?V6(a):ZG(o,l,c),p=hSe(d||(a?bk(a):Q6(o,t,n))),b=r.headers||(typeof Request<"u"&&Om(e,Request)?e.headers:void 0);if(b)if(typeof Headers<"u"&&Om(b,Headers)){const v=new Headers(b);return v.append("sentry-trace",h),p&&v.append(FB,p),v}else if(Array.isArray(b)){const v=[...b,["sentry-trace",h]];return p&&v.push([FB,p]),v}else{const v="baggage"in b?b.baggage:void 0,S=[];return Array.isArray(v)?S.push(...v):v&&S.push(v),p&&S.push(p),{...b,"sentry-trace":h,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":h,baggage:p}}const HB=["localhost",/^\/(?!\/)/],VB={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:HB,tracePropagationTargets:HB};function wTt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:VB.traceFetch,traceXHR:VB.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>CTt(d,r||i),c={};t&&sSe(d=>{const h=STt(d,o,l,c);s&&h&&Pse(h)}),n&&uSe(d=>{const h=_Tt(d,o,l,c);s&&h&&Pse(h)})}function TTt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Pse(e){const{url:t}=gl(e).data||{};if(!t||typeof t!="string")return;const n=iZ("resource",({entries:r})=>{r.forEach(i=>{TTt(i)&&i.name.endsWith(t)&&(kTt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function xTt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function dh(e=0){return((Kh||performance.timeOrigin)+e)/1e3}function kTt(e){const{name:t,version:n}=xTt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Kh?[...r,["http.request.redirect_start",dh(e.redirectStart)],["http.request.fetch_start",dh(e.fetchStart)],["http.request.domain_lookup_start",dh(e.domainLookupStart)],["http.request.domain_lookup_end",dh(e.domainLookupEnd)],["http.request.connect_start",dh(e.connectStart)],["http.request.secure_connection_start",dh(e.secureConnectionStart)],["http.request.connection_end",dh(e.connectEnd)],["http.request.request_start",dh(e.requestStart)],["http.request.response_start",dh(e.responseStart)],["http.request.response_end",dh(e.responseEnd)]]:r}function CTt(e,t){return HC(e,t||HB)}function _Tt(e,t,n,r){const i=e.xhr,a=i&&i[EO];if(!Y6()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const h=i.__sentry_xhr_span_id__;if(!h)return;const p=r[h];p&&a.status_code!==void 0&&(JG(p,a.status_code),p.end(),delete r[h]);return}const o=Nm(),l=wy(),c=s?ASe({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[TO]:"auto.http.browser"},op:"http.client"}):void 0;c&&(i.__sentry_xhr_span_id__=c.spanContext().spanId,r[i.__sentry_xhr_span_id__]=c);const d=yo();if(i.setRequestHeader&&n(a.url)&&d){const{traceId:h,spanId:p,sampled:b,dsc:v}={...l.getPropagationContext(),...o.getPropagationContext()},S=c?V6(c):ZG(h,p,b),w=hSe(v||(c?bk(c):Q6(h,d,o)));ATt(i,S,w)}return c}function ATt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(FB,n)}catch{}}function RTt(e,t=!0,n=!0){if(!li||!li.location){ga&&Mt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=li.location.href,i;t&&(i=e({name:li.location.pathname,startTimestamp:Kh?Kh/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&qG(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(ga&&Mt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:li.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const ITt="BrowserTracing",DTt={...D5,markBackgroundTransactions:!0,routingInstrumentation:RTt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...VB};class NTt{constructor(t){this.name=ITt,this._hasSetTracePropagationTargets=!1,s2t(),ga&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...DTt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=oTt(),this.options.enableLongTask&&lTt(),this.options._experiments.enableInteractions&&uTt()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:c,traceFetch:d,traceXHR:h,shouldCreateSpanForRequest:p,enableHTTPTimings:b,_experiments:v}=this.options,S=a&&a.tracePropagationTargets,w=S||this.options.tracePropagationTargets;ga&&this._hasSetTracePropagationTargets&&S&&Mt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(T=>{const x=this._createRouteTransaction(T);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,T,n),x},l,o),c&&W2t(),v.enableInteractions&&this._registerInteractionListener(),wTt({traceFetch:d,traceXHR:h,tracePropagationTargets:w,shouldCreateSpanForRequest:p,enableHTTPTimings:b})}_createRouteTransaction(t){if(!this._getCurrentHub){ga&&Mt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const b=o?Mse("sentry-trace"):"",v=o?Mse("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:w}=fwt(b,v);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!w?{}:w},trimEnd:!0}}else l={...t,trimEnd:!0};const c=typeof r=="function"?r(l):l,d=c===void 0?{...l,sampled:!1}:c;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRouteName=d.name,this._latestRouteSource=PTt(d),d.sampled===!1&&ga&&Mt.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),ga&&Mt.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:h}=li,p=xse(n,d,i,a,!0,{location:h},s,o);return o&&(li.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(li.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(li.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(b=>{this._collectWebVitals(),hTt(b)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=UE();if(o&&o.op&&["navigation","pageload"].includes(o.op)){ga&&Mt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){ga&&Mt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){ga&&Mt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:c}=li,d={name:this._latestRouteName,op:s,trimEnd:!0,data:{[JO]:this._latestRouteSource||"url"}};t=xse(l,d,r,i,!0,{location:c},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function Mse(e){const t=vEt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function PTt(e){const t=e.attributes&&e.attributes[JO],n=e.data&&e.data[JO],r=e.metadata&&e.metadata.source;return t||n||r}const hi=ui;let WB=0;function YSe(){return WB>0}function MTt(){WB++,setTimeout(()=>{WB--})}function ZS(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(YG(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>ZS(s,t));return e.apply(this,a)}catch(a){throw MTt(),zwt(s=>{s.addEventProcessor(o=>(t.mechanism&&(IB(o,void 0,void 0),gk(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),Uwt(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}JOe(r,e),mk(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Zp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function qSe(e,t){const n=sZ(e,t),r={type:t&&t.name,value:BTt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function LTt(e,t,n,r){const i=yo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:U6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:jTt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:cSe(t,a)}};if(n){const o=sZ(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function NL(e,t){return{exception:{values:[qSe(e,t)]}}}function sZ(e,t){const n=t.stacktrace||t.stack||"",r=FTt(t);try{return e(n,r)}catch{}return[]}const $Tt=/Minified React error #\d+;/i;function FTt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if($Tt.test(e.message))return 1}return 0}function BTt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function UTt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=oZ(e,t,i,r);return gk(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),qS(a)}function zTt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=QB(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),qS(s)}function oZ(e,t,n,r,i){let a;if(HG(t)&&t.error)return NL(e,t.error);if(ese(t)||uEt(t)){const s=t;if("stack"in t)a=NL(e,t);else{const o=s.name||(ese(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=QB(e,l,n,r),IB(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return YOe(t)?NL(e,t):YS(t)||U6(t)?(a=LTt(e,t,n,i),gk(a,{synthetic:!0}),a):(a=QB(e,t,n,r),IB(a,`${t}`,void 0),gk(a,{synthetic:!0}),a)}function QB(e,t,n,r){const i={};if(r&&n){const a=sZ(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(VG(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function jTt(e,{isUnhandledRejection:t}){const n=_Et(e),r=t?"promise rejection":"exception";return HG(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:U6(e)?`Event \`${HTt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function HTt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function VTt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:VC(r)}},a=WTt(e);return BE(i,[a])}function WTt(e){return[{type:"user_report"},e]}class QTt extends x2t{constructor(t){const n=hi.SENTRY_SDK_SOURCE||ZEt();PSe(t,"browser",["browser"],n),super(t),t.sendClientReports&&hi.document&&hi.document.addEventListener("visibilitychange",()=>{hi.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return UTt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return zTt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Zp&&Mt.warn("SDK not enabled, will not capture user feedback.");return}const n=VTt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Zp&&Mt.log("No outcomes to send");return}if(!this._dsn){Zp&&Mt.log("No dsn provided, will not send outcomes");return}Zp&&Mt.log("Sending outcomes:",t);const n=vwt(t,this._options.tunnel&&VC(this._dsn));this._sendEnvelope(n)}}let tT;function YTt(){if(tT)return tT;if(MB(hi.fetch))return tT=hi.fetch.bind(hi);const e=hi.document;let t=hi.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Zp&&Mt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return tT=t.bind(hi)}function qTt(){tT=void 0}function GTt(e,t=YTt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return qTt(),n-=s,r--,GG(l)}}return NSe(e,i)}const ZTt=4;function XTt(e){function t(n){return new ec((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===ZTt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return NSe(e,t)}const X6="?",KTt=30,JTt=40,ext=50;function lZ(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const txt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nxt=/\((\S*)(?::(\d+))(?::(\d+))\)/,rxt=e=>{const t=txt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=nxt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=GSe(t[1]||X6,t[2]);return lZ(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},ixt=[KTt,rxt],axt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,sxt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,oxt=e=>{const t=axt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=sxt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||X6;return[i,r]=GSe(i,r),lZ(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},lxt=[ext,oxt],uxt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cxt=e=>{const t=uxt.exec(e);return t?lZ(t[2],t[1]||X6,+t[3],t[4]?+t[4]:void 0):void 0},dxt=[JTt,cxt],fxt=[ixt,lxt,dxt],hxt=nSe(...fxt),GSe=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:X6,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},R3=1024,ZSe="Breadcrumbs",pxt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ZSe,setupOnce(){},setup(n){t.console&&DEt(bxt(n)),t.dom&&MEt(gxt(n,t.dom)),t.xhr&&uSe(yxt(n)),t.fetch&&sSe(vxt(n)),t.history&&qG(Oxt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",mxt(n))}}},XSe=pxt;Xg(ZSe,XSe);function mxt(e){return function(n){yo()===e&&ry({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:P0(n)},{event:n})}}function gxt(e,t){return function(r){if(yo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>R3&&(Zp&&Mt.warn(`\`dom.maxStringLength\` cannot exceed ${R3}, but a value of ${o} was configured. Sentry will use ${R3} instead.`),o=R3),typeof s=="string"&&(s=[s]);try{const c=r.event,d=Sxt(c)?c.target:c;i=pk(d,{keyAttrs:s,maxStringLength:o}),a=XOe(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),ry(l,{event:r.event,name:r.name,global:r.global})}}function bxt(e){return function(n){if(yo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:iwt(n.level),message:tse(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${tse(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ry(r,{input:n.args,level:n.level})}}function yxt(e){return function(n){if(yo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[EO];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:c}=a,d={method:s,url:o,status_code:l},h={xhr:n.xhr,input:c,startTimestamp:r,endTimestamp:i};ry({category:"xhr",data:d,type:"http"},h)}}function vxt(e){return function(n){if(yo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};ry({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};ry({category:"fetch",data:s,type:"http"},o)}}}function Oxt(e){return function(n){if(yo()!==e)return;let r=n.from,i=n.to;const a=I5(hi.location.href);let s=r?I5(r):void 0;const o=I5(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),ry({category:"navigation",data:{from:r,to:i}})}}function Sxt(e){return!!e&&!!e.target}const KSe="Dedupe",Ext=()=>{let e;return{name:KSe,setupOnce(){},processEvent(t){if(t.type)return t;try{if(wxt(t,e))return Zp&&Mt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},JSe=Ext;Xg(KSe,JSe);function wxt(e,t){return t?!!(Txt(e,t)||xxt(e,t)):!1}function Txt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!tEe(e,t)||!eEe(e,t))}function xxt(e,t){const n=Lse(t),r=Lse(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!tEe(e,t)||!eEe(e,t))}function eEe(e,t){let n=$se(e),r=$se(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:nEe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Cxt(n),Fse("onerror")),t.onunhandledrejection&&(_xt(n),Fse("onunhandledrejection"))}}},rEe=kxt;Xg(nEe,rEe);function Cxt(e){oSe(t=>{const{stackParser:n,attachStacktrace:r}=aEe();if(yo()!==e||YSe())return;const{msg:i,url:a,line:s,column:o,error:l}=t,c=l===void 0&&Gh(i)?Ixt(i,a,s,o):iEe(oZ(n,l||i,void 0,r,!1),a,s,o);c.level="error",vSe(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function _xt(e){lSe(t=>{const{stackParser:n,attachStacktrace:r}=aEe();if(yo()!==e||YSe())return;const i=Axt(t),a=WG(i)?Rxt(i):oZ(n,i,void 0,r,!0);a.level="error",vSe(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Axt(e){if(WG(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Rxt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ixt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=HG(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),iEe({exception:{values:[{type:s,value:a}]}},t,n,r)}function iEe(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],c=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=Gh(t)&&t.length>0?t:yEt();return l.length===0&&l.push({colno:c,filename:h,function:"?",in_app:!0,lineno:d}),e}function Fse(e){Zp&&Mt.log(`Global Handler attached: ${e}`)}function aEe(){const e=yo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const sEe="HttpContext",Dxt=()=>({name:sEe,setupOnce(){},preprocessEvent(e){if(!hi.navigator&&!hi.location&&!hi.document)return;const t=e.request&&e.request.url||hi.location&&hi.location.href,{referrer:n}=hi.document||{},{userAgent:r}=hi.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),oEe=Dxt;Xg(sEe,oEe);const Nxt="cause",Pxt=5,lEe="LinkedErrors",Mxt=(e={})=>{const t=e.limit||Pxt,n=e.key||Nxt;return{name:lEe,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();pEt(qSe,s.stackParser,s.maxValueLength,n,t,r,i)}}},uEe=Mxt;Xg(lEe,uEe);const Lxt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],cEe="TryCatch",$xt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:cEe,setupOnce(){t.setTimeout&&co(hi,"setTimeout",Bse),t.setInterval&&co(hi,"setInterval",Bse),t.requestAnimationFrame&&co(hi,"requestAnimationFrame",Fxt),t.XMLHttpRequest&&"XMLHttpRequest"in hi&&co(XMLHttpRequest.prototype,"send",Bxt);const n=t.eventTarget;n&&(Array.isArray(n)?n:Lxt).forEach(Uxt)}}},dEe=$xt;Xg(cEe,dEe);function Bse(e){return function(...t){const n=t[0];return t[0]=ZS(n,{mechanism:{data:{function:Sm(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Fxt(e){return function(t){return e.apply(this,[ZS(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Sm(e)},handled:!1,type:"instrument"}})])}}function Bxt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&co(n,i,function(a){const s={mechanism:{data:{function:i,handler:Sm(a)},handled:!1,type:"instrument"}},o=YG(a);return o&&(s.mechanism.data.handler=Sm(o)),ZS(a,s)})}),e.apply(this,t)}}function Uxt(e){const t=hi,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(co(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=ZS(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Sm(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,ZS(a,{mechanism:{data:{function:"addEventListener",handler:Sm(a),target:e},handled:!1,type:"instrument"}}),s])}}),co(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const zxt=[LSe(),FSe(),dEe(),XSe(),rEe(),uEe(),JSe(),oEe()];function jxt(e){return[...zxt]}function Hxt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=jxt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),hi.SENTRY_RELEASE&&hi.SENTRY_RELEASE.id&&(e.release=hi.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:REt(e.stackParser||hxt),integrations:v2t(e),transport:e.transport||(aSe()?GTt:XTt)};_2t(QTt,t),e.autoSessionTracking&&Vxt()}function Vxt(){if(typeof hi.document>"u"){Zp&&Mt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}yse({ignoreDuration:!0}),vse(),qG(({from:e,to:t})=>{e!==void 0&&e!==t&&(yse({ignoreDuration:!0}),vse())})}function Wxt(e){const t={...e};PSe(t,"react"),Hxt(t)}const Qxt={"routing.instrumentation":"react-router-v6"};function Yxt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const c=hi&&hi.location&&hi.location.pathname;o&&c&&s({name:c,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:Qxt,metadata:{source:"url"}})}}Wxt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.0.0",integrations:[new NTt({routingInstrumentation:Yxt()})],tracesSampleRate:1});const qxt=GLe(rEt);Rr.defaults.baseURL="https://codepair-api.yorkie.dev";function Gxt(){const e=Sa(Dde),t=sE("(prefers-color-scheme: dark)"),n=M.useMemo(()=>{const a=t?"dark":"light";return lz({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=lEt(),i=M.useMemo(()=>new WFe({queryCache:new ofe({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return D.jsx(ZFe,{client:i,children:D.jsx(oEt,{children:D.jsxs(gAe,{theme:n,children:[D.jsx(lDe,{}),D.jsx(bs,{minHeight:"100vh",children:D.jsx(i9e,{router:qxt})})]})})})}var uZ={},cZ={};cZ.__esModule=!0;cZ.default=Kxt;function P5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P5=function(n){return typeof n}:P5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},P5(e)}function PL(){}var Zxt={getItem:PL,setItem:PL,removeItem:PL};function Xxt(e){if((typeof self>"u"?"undefined":P5(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function Kxt(e){var t="".concat(e,"Storage");return Xxt(t)?self[t]:Zxt}uZ.__esModule=!0;uZ.default=tkt;var Jxt=ekt(cZ);function ekt(e){return e&&e.__esModule?e:{default:e}}function tkt(e){var t=(0,Jxt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var fEe=void 0,nkt=rkt(uZ);function rkt(e){return e&&e.__esModule?e:{default:e}}var ikt=(0,nkt.default)("local");fEe=ikt;var dZ="persist:",hEe="persist/FLUSH",fZ="persist/REHYDRATE",pEe="persist/PAUSE",mEe="persist/PERSIST",gEe="persist/PURGE",bEe="persist/REGISTER",akt=-1;function M5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M5=function(n){return typeof n}:M5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},M5(e)}function Use(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function skt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bkt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var ykt=5e3;function vkt(e,t){var n=e.version!==void 0?e.version:akt;e.debug;var r=e.stateReconciler===void 0?lkt:e.stateReconciler,i=e.getStoredState||dkt,a=e.timeout!==void 0?e.timeout:ykt,s=null,o=!1,l=!0,c=function(h){return h._persist.rehydrated&&s&&!l&&s.update(h),h};return function(d,h){var p=d||{},b=p._persist,v=gkt(p,["_persist"]),S=v;if(h.type===mEe){var w=!1,T=function(U,F){w||(h.rehydrate(e.key,U,F),w=!0)};if(a&&setTimeout(function(){!w&&T(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=ukt(e)),b)return Pp({},t(S,h),{_persist:b});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(A){var U=e.migrate||function(F,P){return Promise.resolve(F)};U(A,n).then(function(F){T(F)},function(F){T(void 0,F)})},function(A){T(void 0,A)}),Pp({},t(S,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===gEe)return o=!0,h.result(hkt(e)),Pp({},t(S,h),{_persist:b});if(h.type===hEe)return h.result(s&&s.flush()),Pp({},t(S,h),{_persist:b});if(h.type===pEe)l=!0;else if(h.type===fZ){if(o)return Pp({},S,{_persist:Pp({},b,{rehydrated:!0})});if(h.key===e.key){var x=t(S,h),k=h.payload,C=r!==!1&&k!==void 0?r(k,d,x,e):x,I=Pp({},C,{_persist:Pp({},b,{rehydrated:!0})});return c(I)}}}if(!b)return t(d,h);var _=t(S,h);return _===S?d:c(Pp({},_,{_persist:b}))}}function jse(e){return Ekt(e)||Skt(e)||Okt()}function Okt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Skt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ekt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:yEe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case bEe:return YB({},t,{registry:[].concat(jse(t.registry),[n.key])});case fZ:var r=t.registry.indexOf(n.key),i=jse(t.registry);return i.splice(r,1),YB({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function xkt(e,t,n){var r=n||!1,i=Uz(Tkt,yEe,t&&t.enhancer?t.enhancer:void 0),a=function(c){i.dispatch({type:bEe,key:c})},s=function(c,d,h){var p={type:fZ,payload:d,err:h,key:c};e.dispatch(p),i.dispatch(p),r&&o.getState().bootstrapped&&(r(),r=!1)},o=YB({},i,{purge:function(){var c=[];return e.dispatch({type:gEe,result:function(h){c.push(h)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:hEe,result:function(h){c.push(h)}}),Promise.all(c)},pause:function(){e.dispatch({type:pEe})},persist:function(){e.dispatch({type:mEe,register:a,rehydrate:s})}});return t&&t.manualPersist||o.persist(),o}const kkt=bde({auth:wdt,config:l$e,user:RFe,editor:_Fe,workspace:gBe,document:uBe}),Ckt={key:"root",storage:fEe,whitelist:["auth","config"]},_kt=vkt(Ckt,kkt),vEe=z9e({reducer:_kt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function L5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L5=function(n){return typeof n}:L5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},L5(e)}function Akt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vse(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(wEe);var TEe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,c,d){return c>0&&c+l.length!==d.length&&l.search(t)>-1&&d.charAt(c-2)!==":"&&(d.charAt(c+l.length)!=="-"||d.charAt(c-1)==="-")&&d.charAt(c-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=o||"";return l&&(d=n(o)),c&&(d=a(d)),d}})(TEe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(wEe),n=s(TEe),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(Y){return Y&&Y.__esModule?Y:{default:Y}}function o(Y,W){if(Y==null)return{};var ee=l(Y,W),J,K;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(Y);for(K=0;K=0)&&Object.prototype.propertyIsEnumerable.call(Y,J)&&(ee[J]=Y[J])}return ee}function l(Y,W){if(Y==null)return{};var ee={},J=Object.keys(Y),K,ne;for(ne=0;ne=0)&&(ee[K]=Y[K]);return ee}function c(Y){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},c(Y)}function d(Y){return b(Y)||p(Y)||x(Y)||h()}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +Name: ${Em(r)} +Error:`,i)}}function sxt(){return K2t(e=>{X6("cls",{metric:e}),iEe=e})}function oxt(){return txt(e=>{X6("fid",{metric:e}),aEe=e})}function lxt(){return nxt(e=>{X6("lcp",{metric:e}),sEe=e})}function dZ(e,t,n,r,i=!1){oEe(e,t);let a;return XI[e]||(a=n(),XI[e]=!0),r&&t({metric:r}),lEe(e,t,i?a:void 0)}function uxt(e){const t={};e==="event"&&(t.durationThreshold=0),G6(e,n=>{X6(e,{entries:n})},t)}function oEe(e,t){q2[e]=q2[e]||[],q2[e].push(t)}function lEe(e,t,n){return()=>{n&&n();const r=q2[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function RL(e){return typeof e=="number"&&isFinite(e)}function XS(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const cxt=2147483647;function ps(e){return e/1e3}function uEe(){return li&&li.addEventListener&&li.performance}let qse=0,za={},gh,G2;function dxt(){const e=uEe();if(e&&Kh){e.mark&&li.performance.mark("sentry-tracing-init");const t=gxt(),n=pxt(),r=mxt();return()=>{t(),n(),r()}}return()=>{}}function fxt(){cZ("longtask",({entries:e})=>{for(const t of e){const n=zE();if(!n)return;const r=ps(Kh+t.startTime),i=ps(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function hxt(){cZ("event",({entries:e})=>{for(const t of e){const n=zE();if(!n)return;if(t.name==="click"){const r=ps(Kh+t.startTime),i=ps(t.duration),a={description:gk(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=pSe(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function pxt(){return rxt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(va&&Mt.log("[Measurements] Adding CLS"),za.cls={value:e.value,unit:""},G2=t)},!0)}function mxt(){return ixt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(va&&Mt.log("[Measurements] Adding LCP"),za.lcp={value:e.value,unit:"millisecond"},gh=t)},!0)}function gxt(){return axt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ps(Kh),r=ps(t.startTime);va&&Mt.log("[Measurements] Adding FID"),za.fid={value:e.value,unit:"millisecond"},za["mark.fid"]={value:n+r,unit:"second"}})}function bxt(e){const t=uEe();if(!t||!li.performance.getEntries||!Kh)return;va&&Mt.log("[Tracing] Adding & adjusting spans using Performance API");const n=ps(Kh),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=gl(e);if(r.slice(qse).forEach(l=>{const c=ps(l.startTime),d=ps(l.duration);if(!(e.op==="navigation"&&o&&n+c{if(!za[c]||!o||n>=o)return;const d=za[c].value,h=n+ps(d),p=Math.abs((h-o)*1e3),b=p-d;va&&Mt.log(`[Measurements] Normalized ${c} from ${d} to ${p} (${b})`),za[c].value=p});const l=za["mark.fid"];l&&za.fid&&(XS(e,{description:"first input delay",endTimestamp:l.value+ps(za.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete za["mark.fid"]),"fcp"in za||delete za.cls,Object.keys(za).forEach(c=>{h2t(c,za[c].value,za[c].unit)}),wxt(e)}gh=void 0,G2=void 0,za={}}function yxt(e,t,n,r,i){const a=i+n,s=a+r;return XS(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function vxt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{M3(e,t,r,n)}),M3(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),M3(e,t,"fetch",n,"cache","domainLookupStart"),M3(e,t,"domainLookup",n,"DNS"),Oxt(e,t,n)}function M3(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||XS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ps(o),endTimestamp:r+ps(s)})}function Oxt(e,t,n){t.responseEnd&&(XS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ps(t.requestStart),endTimestamp:n+ps(t.responseEnd)}),XS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ps(t.responseStart),endTimestamp:n+ps(t.responseEnd)}))}function Sxt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=$5(n),o={};IL(o,t,"transferSize","http.response_transfer_size"),IL(o,t,"encodedBodySize","http.response_content_length"),IL(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(li.location.origin);const l=a+r,c=l+i;XS(e,{description:n.replace(li.location.origin,""),endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function Ext(e){const t=li.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),RL(n.rtt)&&(za["connection.rtt"]={value:n.rtt,unit:"millisecond"})),RL(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),RL(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function wxt(e){gh&&(va&&Mt.log("[Measurements] Adding LCP Data"),gh.element&&e.setTag("lcp.element",gk(gh.element)),gh.id&&e.setTag("lcp.id",gh.id),gh.url&&e.setTag("lcp.url",gh.url.trim().slice(0,200)),e.setTag("lcp.size",gh.size)),G2&&G2.sources&&(va&&Mt.log("[Measurements] Adding CLS Data"),G2.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,gk(t.node))))}function IL(e,t,n,r){const i=t[n];i!=null&&i0&&p.setAttribute("http.response_content_length",v)}}else e.error&&p.setStatus("internal_error");p.end(),delete r[h]}return}const s=Nm(),o=yo(),{method:l,url:c}=e.fetchData,d=a?QSe({name:`${l} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,[xO]:i},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d),n(e.fetchData.url)&&o){const h=e.args[0];e.args[1]=e.args[1]||{};const p=e.args[1];p.headers=kxt(h,o,s,p,d)}return d}function kxt(e,t,n,r,i){const a=i||n.getSpan(),s=Ty(),{traceId:o,spanId:l,sampled:c,dsc:d}={...s.getPropagationContext(),...n.getPropagationContext()},h=a?W6(a):nZ(o,l,c),p=RSe(d||(a?vk(a):Y6(o,t,n))),b=r.headers||(typeof Request<"u"&&Sm(e,Request)?e.headers:void 0);if(b)if(typeof Headers<"u"&&Sm(b,Headers)){const v=new Headers(b);return v.append("sentry-trace",h),p&&v.append(FB,p),v}else if(Array.isArray(b)){const v=[...b,["sentry-trace",h]];return p&&v.push([FB,p]),v}else{const v="baggage"in b?b.baggage:void 0,S=[];return Array.isArray(v)?S.push(...v):v&&S.push(v),p&&S.push(p),{...b,"sentry-trace":h,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":h,baggage:p}}const HB=["localhost",/^\/(?!\/)/],VB={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:HB,tracePropagationTargets:HB};function Cxt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:VB.traceFetch,traceXHR:VB.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>Ixt(d,r||i),c={};t&&wSe(d=>{const h=xxt(d,o,l,c);s&&h&&Gse(h)}),n&&kSe(d=>{const h=Dxt(d,o,l,c);s&&h&&Gse(h)})}function _xt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Gse(e){const{url:t}=gl(e).data||{};if(!t||typeof t!="string")return;const n=cZ("resource",({entries:r})=>{r.forEach(i=>{_xt(i)&&i.name.endsWith(t)&&(Rxt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function Axt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function dh(e=0){return((Kh||performance.timeOrigin)+e)/1e3}function Rxt(e){const{name:t,version:n}=Axt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Kh?[...r,["http.request.redirect_start",dh(e.redirectStart)],["http.request.fetch_start",dh(e.fetchStart)],["http.request.domain_lookup_start",dh(e.domainLookupStart)],["http.request.domain_lookup_end",dh(e.domainLookupEnd)],["http.request.connect_start",dh(e.connectStart)],["http.request.secure_connection_start",dh(e.secureConnectionStart)],["http.request.connection_end",dh(e.connectEnd)],["http.request.request_start",dh(e.requestStart)],["http.request.response_start",dh(e.responseStart)],["http.request.response_end",dh(e.responseEnd)]]:r}function Ixt(e,t){return GC(e,t||HB)}function Dxt(e,t,n,r){const i=e.xhr,a=i&&i[wO];if(!q6()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const h=i.__sentry_xhr_span_id__;if(!h)return;const p=r[h];p&&a.status_code!==void 0&&(aZ(p,a.status_code),p.end(),delete r[h]);return}const o=Nm(),l=Ty(),c=s?QSe({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[xO]:"auto.http.browser"},op:"http.client"}):void 0;c&&(i.__sentry_xhr_span_id__=c.spanContext().spanId,r[i.__sentry_xhr_span_id__]=c);const d=yo();if(i.setRequestHeader&&n(a.url)&&d){const{traceId:h,spanId:p,sampled:b,dsc:v}={...l.getPropagationContext(),...o.getPropagationContext()},S=c?W6(c):nZ(h,p,b),w=RSe(v||(c?vk(c):Y6(h,d,o)));Nxt(i,S,w)}return c}function Nxt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(FB,n)}catch{}}function Pxt(e,t=!0,n=!0){if(!li||!li.location){va&&Mt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=li.location.href,i;t&&(i=e({name:li.location.pathname,startTimestamp:Kh?Kh/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&eZ(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(va&&Mt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:li.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const Mxt="BrowserTracing",Lxt={...F5,markBackgroundTransactions:!0,routingInstrumentation:Pxt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...VB};class $xt{constructor(t){this.name=Mxt,this._hasSetTracePropagationTargets=!1,c2t(),va&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...Lxt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=dxt(),this.options.enableLongTask&&fxt(),this.options._experiments.enableInteractions&&hxt()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:c,traceFetch:d,traceXHR:h,shouldCreateSpanForRequest:p,enableHTTPTimings:b,_experiments:v}=this.options,S=a&&a.tracePropagationTargets,w=S||this.options.tracePropagationTargets;va&&this._hasSetTracePropagationTargets&&S&&Mt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(T=>{const x=this._createRouteTransaction(T);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,T,n),x},l,o),c&&G2t(),v.enableInteractions&&this._registerInteractionListener(),Cxt({traceFetch:d,traceXHR:h,tracePropagationTargets:w,shouldCreateSpanForRequest:p,enableHTTPTimings:b})}_createRouteTransaction(t){if(!this._getCurrentHub){va&&Mt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const b=o?Zse("sentry-trace"):"",v=o?Zse("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:w}=gTt(b,v);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!w?{}:w},trimEnd:!0}}else l={...t,trimEnd:!0};const c=typeof r=="function"?r(l):l,d=c===void 0?{...l,sampled:!1}:c;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRouteName=d.name,this._latestRouteSource=Fxt(d),d.sampled===!1&&va&&Mt.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),va&&Mt.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:h}=li,p=Use(n,d,i,a,!0,{location:h},s,o);return o&&(li.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(li.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(li.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(b=>{this._collectWebVitals(),bxt(b)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=zE();if(o&&o.op&&["navigation","pageload"].includes(o.op)){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:c}=li,d={name:this._latestRouteName,op:s,trimEnd:!0,data:{[tS]:this._latestRouteSource||"url"}};t=Use(l,d,r,i,!0,{location:c},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function Zse(e){const t=wwt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function Fxt(e){const t=e.attributes&&e.attributes[tS],n=e.data&&e.data[tS],r=e.metadata&&e.metadata.source;return t||n||r}const hi=ui;let WB=0;function cEe(){return WB>0}function Bxt(){WB++,setTimeout(()=>{WB--})}function KS(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(JG(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>KS(s,t));return e.apply(this,a)}catch(a){throw Bxt(),WTt(s=>{s.addEventProcessor(o=>(t.mechanism&&(IB(o,void 0,void 0),yk(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),VTt(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}gSe(r,e),bk(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Zp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function dEe(e,t){const n=fZ(e,t),r={type:t&&t.name,value:Hxt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Uxt(e,t,n,r){const i=yo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:z6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Qxt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:CSe(t,a)}};if(n){const o=fZ(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function DL(e,t){return{exception:{values:[dEe(e,t)]}}}function fZ(e,t){const n=t.stacktrace||t.stack||"",r=jxt(t);try{return e(n,r)}catch{}return[]}const zxt=/Minified React error #\d+;/i;function jxt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(zxt.test(e.message))return 1}return 0}function Hxt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Vxt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=hZ(e,t,i,r);return yk(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),ZS(a)}function Wxt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=QB(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),ZS(s)}function hZ(e,t,n,r,i){let a;if(GG(t)&&t.error)return DL(e,t.error);if(mse(t)||hwt(t)){const s=t;if("stack"in t)a=DL(e,t);else{const o=s.name||(mse(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=QB(e,l,n,r),IB(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return cSe(t)?DL(e,t):GS(t)||z6(t)?(a=Uxt(e,t,n,i),yk(a,{synthetic:!0}),a):(a=QB(e,t,n,r),IB(a,`${t}`,void 0),yk(a,{synthetic:!0}),a)}function QB(e,t,n,r){const i={};if(r&&n){const a=fZ(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(ZG(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function Qxt(e,{isUnhandledRejection:t}){const n=Dwt(e),r=t?"promise rejection":"exception";return GG(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:z6(e)?`Event \`${Yxt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Yxt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function qxt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:ZC(r)}},a=Gxt(e);return UE(i,[a])}function Gxt(e){return[{type:"user_report"},e]}class Zxt extends A2t{constructor(t){const n=hi.SENTRY_SDK_SOURCE||eTt();XSe(t,"browser",["browser"],n),super(t),t.sendClientReports&&hi.document&&hi.document.addEventListener("visibilitychange",()=>{hi.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Vxt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Wxt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Zp&&Mt.warn("SDK not enabled, will not capture user feedback.");return}const n=qxt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Zp&&Mt.log("No outcomes to send");return}if(!this._dsn){Zp&&Mt.log("No dsn provided, will not send outcomes");return}Zp&&Mt.log("Sending outcomes:",t);const n=wTt(t,this._options.tunnel&&ZC(this._dsn));this._sendEnvelope(n)}}let n2;function Xxt(){if(n2)return n2;if(MB(hi.fetch))return n2=hi.fetch.bind(hi);const e=hi.document;let t=hi.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Zp&&Mt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return n2=t.bind(hi)}function Kxt(){n2=void 0}function Jxt(e,t=Xxt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Kxt(),n-=s,r--,tZ(l)}}return ZSe(e,i)}const ekt=4;function tkt(e){function t(n){return new ec((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===ekt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return ZSe(e,t)}const K6="?",nkt=30,rkt=40,ikt=50;function pZ(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const akt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,skt=/\((\S*)(?::(\d+))(?::(\d+))\)/,okt=e=>{const t=akt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=skt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=fEe(t[1]||K6,t[2]);return pZ(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},lkt=[nkt,okt],ukt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ckt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,dkt=e=>{const t=ukt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=ckt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||K6;return[i,r]=fEe(i,r),pZ(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},fkt=[ikt,dkt],hkt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pkt=e=>{const t=hkt.exec(e);return t?pZ(t[2],t[1]||K6,+t[3],t[4]?+t[4]:void 0):void 0},mkt=[rkt,pkt],gkt=[lkt,fkt,mkt],bkt=vSe(...gkt),fEe=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:K6,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},L3=1024,hEe="Breadcrumbs",ykt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:hEe,setupOnce(){},setup(n){t.console&&Lwt(Skt(n)),t.dom&&Bwt(Okt(n,t.dom)),t.xhr&&kSe(Ekt(n)),t.fetch&&wSe(wkt(n)),t.history&&eZ(Tkt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",vkt(n))}}},pEe=ykt;Kg(hEe,pEe);function vkt(e){return function(n){yo()===e&&ay({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:P0(n)},{event:n})}}function Okt(e,t){return function(r){if(yo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>L3&&(Zp&&Mt.warn(`\`dom.maxStringLength\` cannot exceed ${L3}, but a value of ${o} was configured. Sentry will use ${L3} instead.`),o=L3),typeof s=="string"&&(s=[s]);try{const c=r.event,d=xkt(c)?c.target:c;i=gk(d,{keyAttrs:s,maxStringLength:o}),a=pSe(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),ay(l,{event:r.event,name:r.name,global:r.global})}}function Skt(e){return function(n){if(yo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:lTt(n.level),message:gse(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${gse(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ay(r,{input:n.args,level:n.level})}}function Ekt(e){return function(n){if(yo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[wO];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:c}=a,d={method:s,url:o,status_code:l},h={xhr:n.xhr,input:c,startTimestamp:r,endTimestamp:i};ay({category:"xhr",data:d,type:"http"},h)}}function wkt(e){return function(n){if(yo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};ay({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};ay({category:"fetch",data:s,type:"http"},o)}}}function Tkt(e){return function(n){if(yo()!==e)return;let r=n.from,i=n.to;const a=$5(hi.location.href);let s=r?$5(r):void 0;const o=$5(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),ay({category:"navigation",data:{from:r,to:i}})}}function xkt(e){return!!e&&!!e.target}const mEe="Dedupe",kkt=()=>{let e;return{name:mEe,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Ckt(t,e))return Zp&&Mt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},gEe=kkt;Kg(mEe,gEe);function Ckt(e,t){return t?!!(_kt(e,t)||Akt(e,t)):!1}function _kt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!yEe(e,t)||!bEe(e,t))}function Akt(e,t){const n=Xse(t),r=Xse(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!yEe(e,t)||!bEe(e,t))}function bEe(e,t){let n=Kse(e),r=Kse(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:vEe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Ikt(n),Jse("onerror")),t.onunhandledrejection&&(Dkt(n),Jse("onunhandledrejection"))}}},OEe=Rkt;Kg(vEe,OEe);function Ikt(e){TSe(t=>{const{stackParser:n,attachStacktrace:r}=EEe();if(yo()!==e||cEe())return;const{msg:i,url:a,line:s,column:o,error:l}=t,c=l===void 0&&Gh(i)?Mkt(i,a,s,o):SEe(hZ(n,l||i,void 0,r,!1),a,s,o);c.level="error",LSe(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Dkt(e){xSe(t=>{const{stackParser:n,attachStacktrace:r}=EEe();if(yo()!==e||cEe())return;const i=Nkt(t),a=XG(i)?Pkt(i):hZ(n,i,void 0,r,!0);a.level="error",LSe(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Nkt(e){if(XG(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Pkt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Mkt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=GG(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),SEe({exception:{values:[{type:s,value:a}]}},t,n,r)}function SEe(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],c=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=Gh(t)&&t.length>0?t:Ewt();return l.length===0&&l.push({colno:c,filename:h,function:"?",in_app:!0,lineno:d}),e}function Jse(e){Zp&&Mt.log(`Global Handler attached: ${e}`)}function EEe(){const e=yo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const wEe="HttpContext",Lkt=()=>({name:wEe,setupOnce(){},preprocessEvent(e){if(!hi.navigator&&!hi.location&&!hi.document)return;const t=e.request&&e.request.url||hi.location&&hi.location.href,{referrer:n}=hi.document||{},{userAgent:r}=hi.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),TEe=Lkt;Kg(wEe,TEe);const $kt="cause",Fkt=5,xEe="LinkedErrors",Bkt=(e={})=>{const t=e.limit||Fkt,n=e.key||$kt;return{name:xEe,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();ywt(dEe,s.stackParser,s.maxValueLength,n,t,r,i)}}},kEe=Bkt;Kg(xEe,kEe);const Ukt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],CEe="TryCatch",zkt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:CEe,setupOnce(){t.setTimeout&&co(hi,"setTimeout",eoe),t.setInterval&&co(hi,"setInterval",eoe),t.requestAnimationFrame&&co(hi,"requestAnimationFrame",jkt),t.XMLHttpRequest&&"XMLHttpRequest"in hi&&co(XMLHttpRequest.prototype,"send",Hkt);const n=t.eventTarget;n&&(Array.isArray(n)?n:Ukt).forEach(Vkt)}}},_Ee=zkt;Kg(CEe,_Ee);function eoe(e){return function(...t){const n=t[0];return t[0]=KS(n,{mechanism:{data:{function:Em(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function jkt(e){return function(t){return e.apply(this,[KS(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Em(e)},handled:!1,type:"instrument"}})])}}function Hkt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&co(n,i,function(a){const s={mechanism:{data:{function:i,handler:Em(a)},handled:!1,type:"instrument"}},o=JG(a);return o&&(s.mechanism.data.handler=Em(o)),KS(a,s)})}),e.apply(this,t)}}function Vkt(e){const t=hi,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(co(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=KS(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Em(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,KS(a,{mechanism:{data:{function:"addEventListener",handler:Em(a),target:e},handled:!1,type:"instrument"}}),s])}}),co(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const Wkt=[JSe(),tEe(),_Ee(),pEe(),OEe(),kEe(),gEe(),TEe()];function Qkt(e){return[...Wkt]}function Ykt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Qkt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),hi.SENTRY_RELEASE&&hi.SENTRY_RELEASE.id&&(e.release=hi.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Pwt(e.stackParser||bkt),integrations:w2t(e),transport:e.transport||(ESe()?Jxt:tkt)};D2t(Zxt,t),e.autoSessionTracking&&qkt()}function qkt(){if(typeof hi.document>"u"){Zp&&Mt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Nse({ignoreDuration:!0}),Pse(),eZ(({from:e,to:t})=>{e!==void 0&&e!==t&&(Nse({ignoreDuration:!0}),Pse())})}function Gkt(e){const t={...e};XSe(t,"react"),Ykt(t)}const Zkt={"routing.instrumentation":"react-router-v6"};function Xkt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const c=hi&&hi.location&&hi.location.pathname;o&&c&&s({name:c,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:Zkt,metadata:{source:"url"}})}}Gkt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.0.0",integrations:[new $xt({routingInstrumentation:Xkt()})],tracesSampleRate:1});const Kkt=Q9e(owt);Ir.defaults.baseURL="https://codepair-api.yorkie.dev";function Jkt(){const e=Ki(Yz),t=lE("(prefers-color-scheme: dark)"),n=P.useMemo(()=>{const a=t?"dark":"light";return lz({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=fwt(),i=P.useMemo(()=>new jBe({queryCache:new Tfe({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return D.jsx(YBe,{client:i,children:D.jsx(dwt,{children:D.jsxs(NAe,{theme:n,children:[D.jsx(TDe,{}),D.jsx($s,{minHeight:"100vh",children:D.jsx(t$e,{router:Kkt})})]})})})}var mZ={},gZ={};gZ.__esModule=!0;gZ.default=nCt;function U5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?U5=function(n){return typeof n}:U5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},U5(e)}function NL(){}var eCt={getItem:NL,setItem:NL,removeItem:NL};function tCt(e){if((typeof self>"u"?"undefined":U5(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function nCt(e){var t="".concat(e,"Storage");return tCt(t)?self[t]:eCt}mZ.__esModule=!0;mZ.default=aCt;var rCt=iCt(gZ);function iCt(e){return e&&e.__esModule?e:{default:e}}function aCt(e){var t=(0,rCt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var AEe=void 0,sCt=oCt(mZ);function oCt(e){return e&&e.__esModule?e:{default:e}}var lCt=(0,sCt.default)("local");AEe=lCt;var bZ="persist:",REe="persist/FLUSH",yZ="persist/REHYDRATE",IEe="persist/PAUSE",DEe="persist/PERSIST",NEe="persist/PURGE",PEe="persist/REGISTER",uCt=-1;function z5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z5=function(n){return typeof n}:z5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},z5(e)}function toe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cCt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SCt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var ECt=5e3;function wCt(e,t){var n=e.version!==void 0?e.version:uCt;e.debug;var r=e.stateReconciler===void 0?fCt:e.stateReconciler,i=e.getStoredState||mCt,a=e.timeout!==void 0?e.timeout:ECt,s=null,o=!1,l=!0,c=function(h){return h._persist.rehydrated&&s&&!l&&s.update(h),h};return function(d,h){var p=d||{},b=p._persist,v=OCt(p,["_persist"]),S=v;if(h.type===DEe){var w=!1,T=function(U,F){w||(h.rehydrate(e.key,U,F),w=!0)};if(a&&setTimeout(function(){!w&&T(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=hCt(e)),b)return Mp({},t(S,h),{_persist:b});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(A){var U=e.migrate||function(F,M){return Promise.resolve(F)};U(A,n).then(function(F){T(F)},function(F){T(void 0,F)})},function(A){T(void 0,A)}),Mp({},t(S,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===NEe)return o=!0,h.result(bCt(e)),Mp({},t(S,h),{_persist:b});if(h.type===REe)return h.result(s&&s.flush()),Mp({},t(S,h),{_persist:b});if(h.type===IEe)l=!0;else if(h.type===yZ){if(o)return Mp({},S,{_persist:Mp({},b,{rehydrated:!0})});if(h.key===e.key){var x=t(S,h),k=h.payload,C=r!==!1&&k!==void 0?r(k,d,x,e):x,I=Mp({},C,{_persist:Mp({},b,{rehydrated:!0})});return c(I)}}}if(!b)return t(d,h);var _=t(S,h);return _===S?d:c(Mp({},_,{_persist:b}))}}function roe(e){return kCt(e)||xCt(e)||TCt()}function TCt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function xCt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function kCt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:MEe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case PEe:return YB({},t,{registry:[].concat(roe(t.registry),[n.key])});case yZ:var r=t.registry.indexOf(n.key),i=roe(t.registry);return i.splice(r,1),YB({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function ACt(e,t,n){var r=n||!1,i=jz(_Ct,MEe,t&&t.enhancer?t.enhancer:void 0),a=function(c){i.dispatch({type:PEe,key:c})},s=function(c,d,h){var p={type:yZ,payload:d,err:h,key:c};e.dispatch(p),i.dispatch(p),r&&o.getState().bootstrapped&&(r(),r=!1)},o=YB({},i,{purge:function(){var c=[];return e.dispatch({type:NEe,result:function(h){c.push(h)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:REe,result:function(h){c.push(h)}}),Promise.all(c)},pause:function(){e.dispatch({type:IEe})},persist:function(){e.dispatch({type:DEe,register:a,rehydrate:s})}});return t&&t.manualPersist||o.persist(),o}const RCt=Pde({auth:Oft,config:aFe,user:CBe,editor:xBe,workspace:hUe,document:sUe}),ICt={key:"root",storage:AEe,whitelist:["auth","config"]},DCt=wCt(ICt,RCt),LEe=F$e({reducer:DCt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function j5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?j5=function(n){return typeof n}:j5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},j5(e)}function NCt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aoe(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(UEe);var zEe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,c,d){return c>0&&c+l.length!==d.length&&l.search(t)>-1&&d.charAt(c-2)!==":"&&(d.charAt(c+l.length)!=="-"||d.charAt(c-1)==="-")&&d.charAt(c-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=o||"";return l&&(d=n(o)),c&&(d=a(d)),d}})(zEe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(UEe),n=s(zEe),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(Y){return Y&&Y.__esModule?Y:{default:Y}}function o(Y,W){if(Y==null)return{};var ee=l(Y,W),J,K;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(Y);for(K=0;K=0)&&Object.prototype.propertyIsEnumerable.call(Y,J)&&(ee[J]=Y[J])}return ee}function l(Y,W){if(Y==null)return{};var ee={},J=Object.keys(Y),K,ne;for(ne=0;ne=0)&&(ee[K]=Y[K]);return ee}function c(Y){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},c(Y)}function d(Y){return b(Y)||p(Y)||x(Y)||h()}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(Y){if(typeof Symbol<"u"&&Y[Symbol.iterator]!=null||Y["@@iterator"]!=null)return Array.from(Y)}function b(Y){if(Array.isArray(Y))return k(Y)}function v(Y,W){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);W&&(J=J.filter(function(K){return Object.getOwnPropertyDescriptor(Y,K).enumerable})),ee.push.apply(ee,J)}return ee}function S(Y){for(var W=1;WY.length)&&(W=Y.length);for(var ee=0,J=new Array(W);ee2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!W._hasLoadedGA){var ne=document.createElement("script");ne.async=!0,ne.src="".concat(K,"?id=").concat(ee),J&&ne.setAttribute("nonce",J),document.body.appendChild(ne),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},W._hasLoadedGA=!0}}),F(this,"_toGtagOptions",function(ee){if(ee){var J={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},K=Object.entries(ee).reduce(function(ne,j){var Ce=w(j,2),ye=Ce[0],te=Ce[1];return J[ye]?ne[J[ye]]=te:ne[ye]=te,ne},{});return K}}),F(this,"initialize",function(ee){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ee)throw new Error("Require GA_MEASUREMENT_ID");var K=typeof ee=="string"?[{trackingId:ee}]:ee;W._currentMeasurementId=K[0].trackingId;var ne=J.gaOptions,j=J.gtagOptions,Ce=J.nonce,ye=J.testMode,te=ye===void 0?!1:ye,ve=J.gtagUrl;if(W._testMode=te,te||W._loadGA(W._currentMeasurementId,Ce,ve),W.isInitialized||(W._gtag("js",new Date),K.forEach(function(Ne){var Pe=S(S(S({},W._toGtagOptions(S(S({},ne),Ne.gaOptions))),j),Ne.gtagOptions);Object.keys(Pe).length?W._gtag("config",Ne.trackingId,Pe):W._gtag("config",Ne.trackingId)})),W.isInitialized=!0,!te){var Se=d(W._queueGtag);for(W._queueGtag=[],W._isQueuing=!1;Se.length;){var he=Se.shift();W._gtag.apply(W,d(he)),he[0]==="get"&&(W._isQueuing=!0)}}}),F(this,"set",function(ee){if(!ee){console.warn("`fieldsObject` is required in .set()");return}if(c(ee)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(ee).length===0&&console.warn("empty `fieldsObject` given to .set()"),W._gaCommand("set",ee)}),F(this,"_gaCommandSendEvent",function(ee,J,K,ne,j){W._gtag("event",J,S(S({event_category:ee,event_label:K,value:ne},j&&{non_interaction:j.nonInteraction}),W._toGtagOptions(j)))}),F(this,"_gaCommandSendEventParameters",function(){for(var ee=arguments.length,J=new Array(ee),K=0;K1?J-1:0),ne=1;neY.length)&&(W=Y.length);for(var ee=0,J=new Array(W);ee2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!W._hasLoadedGA){var ne=document.createElement("script");ne.async=!0,ne.src="".concat(K,"?id=").concat(ee),J&&ne.setAttribute("nonce",J),document.body.appendChild(ne),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},W._hasLoadedGA=!0}}),F(this,"_toGtagOptions",function(ee){if(ee){var J={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},K=Object.entries(ee).reduce(function(ne,j){var Ce=w(j,2),ye=Ce[0],te=Ce[1];return J[ye]?ne[J[ye]]=te:ne[ye]=te,ne},{});return K}}),F(this,"initialize",function(ee){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ee)throw new Error("Require GA_MEASUREMENT_ID");var K=typeof ee=="string"?[{trackingId:ee}]:ee;W._currentMeasurementId=K[0].trackingId;var ne=J.gaOptions,j=J.gtagOptions,Ce=J.nonce,ye=J.testMode,te=ye===void 0?!1:ye,ve=J.gtagUrl;if(W._testMode=te,te||W._loadGA(W._currentMeasurementId,Ce,ve),W.isInitialized||(W._gtag("js",new Date),K.forEach(function(Pe){var Me=S(S(S({},W._toGtagOptions(S(S({},ne),Pe.gaOptions))),j),Pe.gtagOptions);Object.keys(Me).length?W._gtag("config",Pe.trackingId,Me):W._gtag("config",Pe.trackingId)})),W.isInitialized=!0,!te){var Se=d(W._queueGtag);for(W._queueGtag=[],W._isQueuing=!1;Se.length;){var he=Se.shift();W._gtag.apply(W,d(he)),he[0]==="get"&&(W._isQueuing=!0)}}}),F(this,"set",function(ee){if(!ee){console.warn("`fieldsObject` is required in .set()");return}if(c(ee)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(ee).length===0&&console.warn("empty `fieldsObject` given to .set()"),W._gaCommand("set",ee)}),F(this,"_gaCommandSendEvent",function(ee,J,K,ne,j){W._gtag("event",J,S(S({event_category:ee,event_label:K,value:ne},j&&{non_interaction:j.nonInteraction}),W._toGtagOptions(j)))}),F(this,"_gaCommandSendEventParameters",function(){for(var ee=arguments.length,J=new Array(ee),K=0;K1?J-1:0),ne=1;ne - +