From 65a81d1d62780253d5f56d873463dc8f6300d41c Mon Sep 17 00:00:00 2001 From: devleejb <52884648+devleejb@users.noreply.github.com> Date: Thu, 25 Jan 2024 06:47:03 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20yorkie-t?= =?UTF-8?q?eam/codepair-poc@58b43594f464d1aabc3e3b8fb738bba219fec3b6=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-ma-ykcVR.js => index-Zx2W4HLA.js} | 132 +++++++++--------- index.html | 2 +- 2 files changed, 67 insertions(+), 67 deletions(-) rename assets/{index-ma-ykcVR.js => index-Zx2W4HLA.js} (91%) diff --git a/assets/index-ma-ykcVR.js b/assets/index-Zx2W4HLA.js similarity index 91% rename from assets/index-ma-ykcVR.js rename to assets/index-Zx2W4HLA.js index fe5332ad..8e3229d5 100644 --- a/assets/index-ma-ykcVR.js +++ b/assets/index-Zx2W4HLA.js @@ -1,4 +1,4 @@ -var eae=Object.defineProperty;var tae=(e,t,n)=>t in e?eae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ko=(e,t,n)=>(tae(e,typeof t!="symbol"?t+"":t,n),n),mC=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ke=(e,t,n)=>(mC(e,t,"read from private field"),n?n.call(e):t.get(e)),Xt=(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)},Bt=(e,t,n,r)=>(mC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ov=(e,t,n,r)=>({set _(i){Bt(e,t,i,n)},get _(){return ke(e,t,r)}}),Tn=(e,t,n)=>(mC(e,t,"access private method"),n);var int=nae((bnt,_S)=>{function fH(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 o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var RS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rae(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 pH={exports:{}},kw={},hH={exports:{}},Wn={};/** +var eae=Object.defineProperty;var tae=(e,t,n)=>t in e?eae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ko=(e,t,n)=>(tae(e,typeof t!="symbol"?t+"":t,n),n),mC=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ke=(e,t,n)=>(mC(e,t,"read from private field"),n?n.call(e):t.get(e)),Xt=(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)},Bt=(e,t,n,r)=>(mC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ov=(e,t,n,r)=>({set _(i){Bt(e,t,i,n)},get _(){return ke(e,t,r)}}),Tn=(e,t,n)=>(mC(e,t,"access private method"),n);var nnt=nae((mnt,_S)=>{function fH(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 o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var RS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rae(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 pH={exports:{}},kw={},hH={exports:{}},Wn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var eae=Object.defineProperty;var tae=(e,t,n)=>t in e?eae(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 $1=Symbol.for("react.element"),iae=Symbol.for("react.portal"),oae=Symbol.for("react.fragment"),aae=Symbol.for("react.strict_mode"),sae=Symbol.for("react.profiler"),lae=Symbol.for("react.provider"),uae=Symbol.for("react.context"),cae=Symbol.for("react.forward_ref"),dae=Symbol.for("react.suspense"),fae=Symbol.for("react.memo"),pae=Symbol.for("react.lazy"),S6=Symbol.iterator;function hae(e){return e===null||typeof e!="object"?null:(e=S6&&e[S6]||e["@@iterator"],typeof e=="function"?e:null)}var mH={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gH=Object.assign,bH={};function Eg(e,t,n){this.props=e,this.context=t,this.refs=bH,this.updater=n||mH}Eg.prototype.isReactComponent={};Eg.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")};Eg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yH(){}yH.prototype=Eg.prototype;function TD(e,t,n){this.props=e,this.context=t,this.refs=bH,this.updater=n||mH}var wD=TD.prototype=new yH;wD.constructor=TD;gH(wD,Eg.prototype);wD.isPureReactComponent=!0;var T6=Array.isArray,OH=Object.prototype.hasOwnProperty,kD={current:null},vH={key:!0,ref:!0,__self:!0,__source:!0};function EH(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)OH.call(t,r)&&!vH.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?eae(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 Oae=I,vae=Symbol.for("react.element"),Eae=Symbol.for("react.fragment"),Sae=Object.prototype.hasOwnProperty,Tae=Oae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wae={key:!0,ref:!0,__self:!0,__source:!0};function SH(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Sae.call(t,r)&&!wae.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:vae,type:e,key:o,ref:a,props:i,_owner:Tae.current}}kw.Fragment=Eae;kw.jsx=SH;kw.jsxs=SH;pH.exports=kw;var D=pH.exports,V2={},TH={exports:{}},ys={},wH={exports:{}},kH={};/** + */var Oae=I,vae=Symbol.for("react.element"),Eae=Symbol.for("react.fragment"),Sae=Object.prototype.hasOwnProperty,Tae=Oae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wae={key:!0,ref:!0,__self:!0,__source:!0};function SH(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Sae.call(t,r)&&!wae.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:vae,type:e,key:o,ref:a,props:i,_owner:Tae.current}}kw.Fragment=Eae;kw.jsx=SH;kw.jsxs=SH;pH.exports=kw;var N=pH.exports,V2={},TH={exports:{}},ys={},wH={exports:{}},kH={};/** * @license React * scheduler.production.min.js * @@ -30,21 +30,21 @@ var eae=Object.defineProperty;var tae=(e,t,n)=>t in e?eae(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 xH=I,ps=kae;function St(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"),H2=Object.prototype.hasOwnProperty,xae=/^[: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]*$/,k6={},x6={};function Cae(e){return H2.call(x6,e)?!0:H2.call(k6,e)?!1:xae.test(e)?x6[e]=!0:(k6[e]=!0,!1)}function Aae(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 _ae(e,t,n,r){if(t===null||typeof t>"u"||Aae(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 ua(e,t,n,r,i,o,a){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=o,this.removeEmptyString=a}var Eo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Eo[e]=new ua(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Eo[t]=new ua(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Eo[e]=new ua(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Eo[e]=new ua(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){Eo[e]=new ua(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Eo[e]=new ua(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Eo[e]=new ua(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Eo[e]=new ua(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Eo[e]=new ua(e,5,!1,e.toLowerCase(),null,!1,!1)});var CD=/[\-:]([a-z])/g;function AD(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(CD,AD);Eo[t]=new ua(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(CD,AD);Eo[t]=new ua(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(CD,AD);Eo[t]=new ua(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Eo[e]=new ua(e,1,!1,e.toLowerCase(),null,!1,!1)});Eo.xlinkHref=new ua("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Eo[e]=new ua(e,1,!1,e.toLowerCase(),null,!0,!0)});function _D(e,t,n,r){var i=Eo.hasOwnProperty(t)?Eo[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),H2=Object.prototype.hasOwnProperty,xae=/^[: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]*$/,k6={},x6={};function Cae(e){return H2.call(x6,e)?!0:H2.call(k6,e)?!1:xae.test(e)?x6[e]=!0:(k6[e]=!0,!1)}function Aae(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 _ae(e,t,n,r){if(t===null||typeof t>"u"||Aae(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 ua(e,t,n,r,i,o,a){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=o,this.removeEmptyString=a}var Eo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Eo[e]=new ua(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Eo[t]=new ua(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Eo[e]=new ua(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Eo[e]=new ua(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){Eo[e]=new ua(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Eo[e]=new ua(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Eo[e]=new ua(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Eo[e]=new ua(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Eo[e]=new ua(e,5,!1,e.toLowerCase(),null,!1,!1)});var CN=/[\-:]([a-z])/g;function AN(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(CN,AN);Eo[t]=new ua(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(CN,AN);Eo[t]=new ua(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(CN,AN);Eo[t]=new ua(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Eo[e]=new ua(e,1,!1,e.toLowerCase(),null,!1,!1)});Eo.xlinkHref=new ua("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Eo[e]=new ua(e,1,!1,e.toLowerCase(),null,!0,!0)});function _N(e,t,n,r){var i=Eo.hasOwnProperty(t)?Eo[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{yC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?K0(e):""}function Rae(e){switch(e.tag){case 5:return K0(e.type);case 16:return K0("Lazy");case 13:return K0("Suspense");case 19:return K0("SuspenseList");case 0:case 2:case 15:return e=OC(e.type,!1),e;case 11:return e=OC(e.type.render,!1),e;case 1:return e=OC(e.type,!0),e;default:return""}}function G2(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 Fh:return"Fragment";case $h:return"Portal";case W2:return"Profiler";case RD:return"StrictMode";case Q2:return"Suspense";case Y2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _H:return(e.displayName||"Context")+".Consumer";case AH:return(e._context.displayName||"Context")+".Provider";case ID:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case DD:return t=e.displayName||null,t!==null?t:G2(e.type)||"Memo";case Jc:t=e._payload,e=e._init;try{return G2(e(t))}catch{}}return null}function Iae(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 G2(t);case 8:return t===RD?"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 jd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function IH(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dae(e){var t=IH(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lv(e){e._valueTracker||(e._valueTracker=Dae(e))}function DH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=IH(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function IS(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 q2(e,t){var n=t.checked;return Kr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function A6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jd(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 NH(e,t){t=t.checked,t!=null&&_D(e,"checked",t,!1)}function Z2(e,t){NH(e,t);var n=jd(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")?X2(e,t.type,n):t.hasOwnProperty("defaultValue")&&X2(e,t.type,jd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _6(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 X2(e,t,n){(t!=="number"||IS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J0=Array.isArray;function am(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=uv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sy(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gb={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},Nae=["Webkit","ms","Moz","O"];Object.keys(gb).forEach(function(e){Nae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gb[t]=gb[e]})});function $H(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gb.hasOwnProperty(e)&&gb[e]?(""+t).trim():t+"px"}function FH(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=$H(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Pae=Kr({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 e_(e,t){if(t){if(Pae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(St(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(St(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(St(61))}if(t.style!=null&&typeof t.style!="object")throw Error(St(62))}}function t_(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 n_=null;function ND(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var r_=null,sm=null,lm=null;function D6(e){if(e=U1(e)){if(typeof r_!="function")throw Error(St(280));var t=e.stateNode;t&&(t=Rw(t),r_(e.stateNode,e.type,t))}}function BH(e){sm?lm?lm.push(e):lm=[e]:sm=e}function UH(){if(sm){var e=sm,t=lm;if(lm=sm=null,D6(e),t)for(e=0;e>>=0,e===0?32:31-(Wae(e)/Qae|0)|0}var cv=64,dv=4194304;function eb(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 LS(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=eb(s):(o&=a,o!==0&&(r=eb(o)))}else a=n&~i,a!==0?r=eb(a):o!==0&&(r=eb(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 F1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Al(t),e[t]=n}function Zae(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=yb),j6=" ",z6=!1;function aW(e,t){switch(e){case"keyup":return wse.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sW(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bh=!1;function xse(e,t){switch(e){case"compositionend":return sW(t);case"keypress":return t.which!==32?null:(z6=!0,j6);case"textInput":return e=t.data,e===j6&&z6?null:e;default:return null}}function Cse(e,t){if(Bh)return e==="compositionend"||!jD&&aW(e,t)?(e=iW(),DE=FD=gd=null,Bh=!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=Q6(n)}}function dW(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dW(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fW(){for(var e=window,t=IS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=IS(e.document)}return t}function zD(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 Mse(e){var t=fW(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dW(n.ownerDocument.documentElement,n)){if(r!==null&&zD(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Y6(n,o);var a=Y6(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Uh=null,u_=null,vb=null,c_=!1;function G6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;c_||Uh==null||Uh!==IS(r)||(r=Uh,"selectionStart"in r&&zD(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}),vb&&py(vb,r)||(vb=r,r=FS(u_,"onSelect"),0Vh||(e.current=g_[Vh],g_[Vh]=null,Vh--)}function Cr(e,t){Vh++,g_[Vh]=e.current,e.current=t}var zd={},Uo=rf(zd),xa=rf(!1),pp=zd;function Gm(e,t){var n=e.type.contextTypes;if(!n)return zd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ca(e){return e=e.childContextTypes,e!=null}function US(){Mr(xa),Mr(Uo)}function tB(e,t,n){if(Uo.current!==zd)throw Error(St(168));Cr(Uo,t),Cr(xa,n)}function EW(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(St(108,Iae(e)||"Unknown",i));return Kr({},n,r)}function jS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zd,pp=Uo.current,Cr(Uo,e),Cr(xa,xa.current),!0}function nB(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=EW(e,t,pp),r.__reactInternalMemoizedMergedChildContext=e,Mr(xa),Mr(Uo),Cr(Uo,e)):Mr(xa),Cr(xa,n)}var ic=null,Iw=!1,NC=!1;function SW(e){ic===null?ic=[e]:ic.push(e)}function Gse(e){Iw=!0,SW(e)}function of(){if(!NC&&ic!==null){NC=!0;var e=0,t=pr;try{var n=ic;for(pr=1;e>=a,i-=a,uc=1<<32-Al(t)+i|n<$?(P=E,E=null):P=E.sibling;var _=p(y,E,S[$],k);if(_===null){E===null&&(E=P);break}e&&E&&_.alternate===null&&t(y,E),v=o(_,v,$),w===null?C=_:w.sibling=_,w=_,E=P}if($===S.length)return n(y,E),Qr&&Rf(y,$),C;if(E===null){for(;$$?(P=E,E=null):P=E.sibling;var B=p(y,E,_.value,k);if(B===null){E===null&&(E=P);break}e&&E&&B.alternate===null&&t(y,E),v=o(B,v,$),w===null?C=B:w.sibling=B,w=B,E=P}if(_.done)return n(y,E),Qr&&Rf(y,$),C;if(E===null){for(;!_.done;$++,_=S.next())_=d(y,_.value,k),_!==null&&(v=o(_,v,$),w===null?C=_:w.sibling=_,w=_);return Qr&&Rf(y,$),C}for(E=r(y,E);!_.done;$++,_=S.next())_=h(E,y,$,_.value,k),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?$:_.key),v=o(_,v,$),w===null?C=_:w.sibling=_,w=_);return e&&E.forEach(function(U){return t(y,U)}),Qr&&Rf(y,$),C}function O(y,v,S,k){if(typeof S=="object"&&S!==null&&S.type===Fh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case sv:e:{for(var C=S.key,w=v;w!==null;){if(w.key===C){if(C=S.type,C===Fh){if(w.tag===7){n(y,w.sibling),v=i(w,S.props.children),v.return=y,y=v;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Jc&&uB(C)===w.type){n(y,w.sibling),v=i(w,S.props),v.ref=m0(y,w,S),v.return=y,y=v;break e}n(y,w);break}else t(y,w);w=w.sibling}S.type===Fh?(v=lp(S.props.children,y.mode,k,S.key),v.return=y,y=v):(k=UE(S.type,S.key,S.props,null,y.mode,k),k.ref=m0(y,v,S),k.return=y,y=k)}return a(y);case $h:e:{for(w=S.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(y,v.sibling),v=i(v,S.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=jC(S,y.mode,k),v.return=y,y=v}return a(y);case Jc:return w=S._init,O(y,v,w(S._payload),k)}if(J0(S))return m(y,v,S,k);if(c0(S))return b(y,v,S,k);yv(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,S),v.return=y,y=v):(n(y,v),v=UC(S,y.mode,k),v.return=y,y=v),a(y)):n(y,v)}return O}var Zm=RW(!0),IW=RW(!1),j1={},ku=rf(j1),by=rf(j1),yy=rf(j1);function zf(e){if(e===j1)throw Error(St(174));return e}function XD(e,t){switch(Cr(yy,t),Cr(by,e),Cr(ku,j1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:J2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=J2(t,e)}Mr(ku),Cr(ku,t)}function Xm(){Mr(ku),Mr(by),Mr(yy)}function DW(e){zf(yy.current);var t=zf(ku.current),n=J2(t,e.type);t!==n&&(Cr(by,e),Cr(ku,n))}function KD(e){by.current===e&&(Mr(ku),Mr(by))}var Zr=rf(0);function YS(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 PC=[];function JD(){for(var e=0;en?n:4,e(!0);var r=LC.transition;LC.transition={};try{e(!1),t()}finally{pr=n,LC.transition=r}}function GW(){return Ks().memoizedState}function Kse(e,t,n){var r=Id(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qW(e))ZW(t,n);else if(n=xW(e,t,n,r),n!==null){var i=oa();_l(n,e,r,i),XW(n,t,r)}}function Jse(e,t,n){var r=Id(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qW(e))ZW(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Dl(s,a)){var l=t.interleaved;l===null?(i.next=i,qD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=xW(e,t,i,r),n!==null&&(i=oa(),_l(n,e,r,i),XW(n,t,r))}}function qW(e){var t=e.alternate;return e===Xr||t!==null&&t===Xr}function ZW(e,t){Eb=GS=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function XW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,LD(e,n)}}var qS={readContext:Xs,useCallback:Ao,useContext:Ao,useEffect:Ao,useImperativeHandle:Ao,useInsertionEffect:Ao,useLayoutEffect:Ao,useMemo:Ao,useReducer:Ao,useRef:Ao,useState:Ao,useDebugValue:Ao,useDeferredValue:Ao,useTransition:Ao,useMutableSource:Ao,useSyncExternalStore:Ao,useId:Ao,unstable_isNewReconciler:!1},ele={readContext:Xs,useCallback:function(e,t){return iu().memoizedState=[e,t===void 0?null:t],e},useContext:Xs,useEffect:dB,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ME(4194308,4,VW.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ME(4194308,4,e,t)},useInsertionEffect:function(e,t){return ME(4,2,e,t)},useMemo:function(e,t){var n=iu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=iu();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=Kse.bind(null,Xr,e),[r.memoizedState,e]},useRef:function(e){var t=iu();return e={current:e},t.memoizedState=e},useState:cB,useDebugValue:iN,useDeferredValue:function(e){return iu().memoizedState=e},useTransition:function(){var e=cB(!1),t=e[0];return e=Xse.bind(null,e[1]),iu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xr,i=iu();if(Qr){if(n===void 0)throw Error(St(407));n=n()}else{if(n=t(),Ki===null)throw Error(St(349));mp&30||LW(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,dB($W.bind(null,r,o,e),[e]),r.flags|=2048,Ey(9,MW.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=iu(),t=Ki.identifierPrefix;if(Qr){var n=cc,r=uc;n=(r&~(1<<32-Al(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Oy++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{yC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?K0(e):""}function Rae(e){switch(e.tag){case 5:return K0(e.type);case 16:return K0("Lazy");case 13:return K0("Suspense");case 19:return K0("SuspenseList");case 0:case 2:case 15:return e=OC(e.type,!1),e;case 11:return e=OC(e.type.render,!1),e;case 1:return e=OC(e.type,!0),e;default:return""}}function G2(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 Fh:return"Fragment";case $h:return"Portal";case W2:return"Profiler";case RN:return"StrictMode";case Q2:return"Suspense";case Y2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _H:return(e.displayName||"Context")+".Consumer";case AH:return(e._context.displayName||"Context")+".Provider";case IN:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case NN:return t=e.displayName||null,t!==null?t:G2(e.type)||"Memo";case Jc:t=e._payload,e=e._init;try{return G2(e(t))}catch{}}return null}function Iae(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 G2(t);case 8:return t===RN?"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 jd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function IH(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nae(e){var t=IH(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lv(e){e._valueTracker||(e._valueTracker=Nae(e))}function NH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=IH(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function IS(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 q2(e,t){var n=t.checked;return Kr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function A6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jd(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 DH(e,t){t=t.checked,t!=null&&_N(e,"checked",t,!1)}function Z2(e,t){DH(e,t);var n=jd(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")?X2(e,t.type,n):t.hasOwnProperty("defaultValue")&&X2(e,t.type,jd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _6(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 X2(e,t,n){(t!=="number"||IS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J0=Array.isArray;function am(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=uv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sy(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gb={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},Dae=["Webkit","ms","Moz","O"];Object.keys(gb).forEach(function(e){Dae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gb[t]=gb[e]})});function $H(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gb.hasOwnProperty(e)&&gb[e]?(""+t).trim():t+"px"}function FH(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=$H(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Pae=Kr({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 e_(e,t){if(t){if(Pae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(St(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(St(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(St(61))}if(t.style!=null&&typeof t.style!="object")throw Error(St(62))}}function t_(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 n_=null;function DN(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var r_=null,sm=null,lm=null;function N6(e){if(e=U1(e)){if(typeof r_!="function")throw Error(St(280));var t=e.stateNode;t&&(t=Rw(t),r_(e.stateNode,e.type,t))}}function BH(e){sm?lm?lm.push(e):lm=[e]:sm=e}function UH(){if(sm){var e=sm,t=lm;if(lm=sm=null,N6(e),t)for(e=0;e>>=0,e===0?32:31-(Wae(e)/Qae|0)|0}var cv=64,dv=4194304;function eb(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 LS(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=eb(s):(o&=a,o!==0&&(r=eb(o)))}else a=n&~i,a!==0?r=eb(a):o!==0&&(r=eb(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 F1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Al(t),e[t]=n}function Zae(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=yb),j6=" ",z6=!1;function aW(e,t){switch(e){case"keyup":return wse.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sW(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bh=!1;function xse(e,t){switch(e){case"compositionend":return sW(t);case"keypress":return t.which!==32?null:(z6=!0,j6);case"textInput":return e=t.data,e===j6&&z6?null:e;default:return null}}function Cse(e,t){if(Bh)return e==="compositionend"||!jN&&aW(e,t)?(e=iW(),NE=FN=gd=null,Bh=!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=Q6(n)}}function dW(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dW(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fW(){for(var e=window,t=IS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=IS(e.document)}return t}function zN(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 Mse(e){var t=fW(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dW(n.ownerDocument.documentElement,n)){if(r!==null&&zN(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Y6(n,o);var a=Y6(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Uh=null,u_=null,vb=null,c_=!1;function G6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;c_||Uh==null||Uh!==IS(r)||(r=Uh,"selectionStart"in r&&zN(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}),vb&&py(vb,r)||(vb=r,r=FS(u_,"onSelect"),0Vh||(e.current=g_[Vh],g_[Vh]=null,Vh--)}function Cr(e,t){Vh++,g_[Vh]=e.current,e.current=t}var zd={},Uo=rf(zd),xa=rf(!1),pp=zd;function Gm(e,t){var n=e.type.contextTypes;if(!n)return zd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ca(e){return e=e.childContextTypes,e!=null}function US(){Mr(xa),Mr(Uo)}function tB(e,t,n){if(Uo.current!==zd)throw Error(St(168));Cr(Uo,t),Cr(xa,n)}function EW(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(St(108,Iae(e)||"Unknown",i));return Kr({},n,r)}function jS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zd,pp=Uo.current,Cr(Uo,e),Cr(xa,xa.current),!0}function nB(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=EW(e,t,pp),r.__reactInternalMemoizedMergedChildContext=e,Mr(xa),Mr(Uo),Cr(Uo,e)):Mr(xa),Cr(xa,n)}var ic=null,Iw=!1,DC=!1;function SW(e){ic===null?ic=[e]:ic.push(e)}function Gse(e){Iw=!0,SW(e)}function of(){if(!DC&&ic!==null){DC=!0;var e=0,t=pr;try{var n=ic;for(pr=1;e>=a,i-=a,uc=1<<32-Al(t)+i|n<$?(P=E,E=null):P=E.sibling;var _=p(y,E,S[$],k);if(_===null){E===null&&(E=P);break}e&&E&&_.alternate===null&&t(y,E),v=o(_,v,$),w===null?C=_:w.sibling=_,w=_,E=P}if($===S.length)return n(y,E),Qr&&Rf(y,$),C;if(E===null){for(;$$?(P=E,E=null):P=E.sibling;var B=p(y,E,_.value,k);if(B===null){E===null&&(E=P);break}e&&E&&B.alternate===null&&t(y,E),v=o(B,v,$),w===null?C=B:w.sibling=B,w=B,E=P}if(_.done)return n(y,E),Qr&&Rf(y,$),C;if(E===null){for(;!_.done;$++,_=S.next())_=d(y,_.value,k),_!==null&&(v=o(_,v,$),w===null?C=_:w.sibling=_,w=_);return Qr&&Rf(y,$),C}for(E=r(y,E);!_.done;$++,_=S.next())_=h(E,y,$,_.value,k),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?$:_.key),v=o(_,v,$),w===null?C=_:w.sibling=_,w=_);return e&&E.forEach(function(U){return t(y,U)}),Qr&&Rf(y,$),C}function O(y,v,S,k){if(typeof S=="object"&&S!==null&&S.type===Fh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case sv:e:{for(var C=S.key,w=v;w!==null;){if(w.key===C){if(C=S.type,C===Fh){if(w.tag===7){n(y,w.sibling),v=i(w,S.props.children),v.return=y,y=v;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Jc&&uB(C)===w.type){n(y,w.sibling),v=i(w,S.props),v.ref=m0(y,w,S),v.return=y,y=v;break e}n(y,w);break}else t(y,w);w=w.sibling}S.type===Fh?(v=lp(S.props.children,y.mode,k,S.key),v.return=y,y=v):(k=UE(S.type,S.key,S.props,null,y.mode,k),k.ref=m0(y,v,S),k.return=y,y=k)}return a(y);case $h:e:{for(w=S.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(y,v.sibling),v=i(v,S.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=jC(S,y.mode,k),v.return=y,y=v}return a(y);case Jc:return w=S._init,O(y,v,w(S._payload),k)}if(J0(S))return m(y,v,S,k);if(c0(S))return b(y,v,S,k);yv(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,S),v.return=y,y=v):(n(y,v),v=UC(S,y.mode,k),v.return=y,y=v),a(y)):n(y,v)}return O}var Zm=RW(!0),IW=RW(!1),j1={},ku=rf(j1),by=rf(j1),yy=rf(j1);function zf(e){if(e===j1)throw Error(St(174));return e}function XN(e,t){switch(Cr(yy,t),Cr(by,e),Cr(ku,j1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:J2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=J2(t,e)}Mr(ku),Cr(ku,t)}function Xm(){Mr(ku),Mr(by),Mr(yy)}function NW(e){zf(yy.current);var t=zf(ku.current),n=J2(t,e.type);t!==n&&(Cr(by,e),Cr(ku,n))}function KN(e){by.current===e&&(Mr(ku),Mr(by))}var Zr=rf(0);function YS(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 PC=[];function JN(){for(var e=0;en?n:4,e(!0);var r=LC.transition;LC.transition={};try{e(!1),t()}finally{pr=n,LC.transition=r}}function GW(){return Ks().memoizedState}function Kse(e,t,n){var r=Id(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qW(e))ZW(t,n);else if(n=xW(e,t,n,r),n!==null){var i=oa();_l(n,e,r,i),XW(n,t,r)}}function Jse(e,t,n){var r=Id(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qW(e))ZW(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Nl(s,a)){var l=t.interleaved;l===null?(i.next=i,qN(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=xW(e,t,i,r),n!==null&&(i=oa(),_l(n,e,r,i),XW(n,t,r))}}function qW(e){var t=e.alternate;return e===Xr||t!==null&&t===Xr}function ZW(e,t){Eb=GS=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function XW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,LN(e,n)}}var qS={readContext:Xs,useCallback:Ao,useContext:Ao,useEffect:Ao,useImperativeHandle:Ao,useInsertionEffect:Ao,useLayoutEffect:Ao,useMemo:Ao,useReducer:Ao,useRef:Ao,useState:Ao,useDebugValue:Ao,useDeferredValue:Ao,useTransition:Ao,useMutableSource:Ao,useSyncExternalStore:Ao,useId:Ao,unstable_isNewReconciler:!1},ele={readContext:Xs,useCallback:function(e,t){return iu().memoizedState=[e,t===void 0?null:t],e},useContext:Xs,useEffect:dB,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ME(4194308,4,VW.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ME(4194308,4,e,t)},useInsertionEffect:function(e,t){return ME(4,2,e,t)},useMemo:function(e,t){var n=iu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=iu();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=Kse.bind(null,Xr,e),[r.memoizedState,e]},useRef:function(e){var t=iu();return e={current:e},t.memoizedState=e},useState:cB,useDebugValue:iD,useDeferredValue:function(e){return iu().memoizedState=e},useTransition:function(){var e=cB(!1),t=e[0];return e=Xse.bind(null,e[1]),iu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xr,i=iu();if(Qr){if(n===void 0)throw Error(St(407));n=n()}else{if(n=t(),Ki===null)throw Error(St(349));mp&30||LW(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,dB($W.bind(null,r,o,e),[e]),r.flags|=2048,Ey(9,MW.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=iu(),t=Ki.identifierPrefix;if(Qr){var n=cc,r=uc;n=(r&~(1<<32-Al(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Oy++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pu]=t,e[gy]=r,aQ(e,t,!1,!1),t.stateNode=e;e:{switch(a=t_(n,r),n){case"dialog":Ir("cancel",e),Ir("close",e),i=r;break;case"iframe":case"object":case"embed":Ir("load",e),i=r;break;case"video":case"audio":for(i=0;iJm&&(t.flags|=128,r=!0,g0(o,!1),t.lanes=4194304)}else{if(!r)if(e=YS(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),g0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Qr)return _o(t),null}else 2*bi()-o.renderingStartTime>Jm&&n!==1073741824&&(t.flags|=128,r=!0,g0(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=bi(),t.sibling=null,n=Zr.current,Cr(Zr,r?n&1|2:n&1),t):(_o(t),null);case 22:case 23:return cN(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Za&1073741824&&(_o(t),t.subtreeFlags&6&&(t.flags|=8192)):_o(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function lle(e,t){switch(HD(t),t.tag){case 1:return Ca(t.type)&&US(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xm(),Mr(xa),Mr(Uo),JD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return KD(t),null;case 13:if(Mr(Zr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));qm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mr(Zr),null;case 4:return Xm(),null;case 10:return GD(t.type._context),null;case 22:case 23:return cN(),null;case 24:return null;default:return null}}var vv=!1,No=!1,ule=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function Yh(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){si(e,t,r)}else n.current=null}function A_(e,t,n){try{n()}catch(r){si(e,t,r)}}var vB=!1;function cle(e,t){if(d_=MS,e=fW(),zD(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(f_={focusedElem:e,selectionRange:n},MS=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){t=Gt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var b=m.memoizedProps,O=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:dl(t.type,b),O);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(St(163))}}catch(k){si(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}return m=vB,vB=!1,m}function Sb(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 o=i.destroy;i.destroy=void 0,o!==void 0&&A_(t,n,o)}i=i.next}while(i!==r)}}function Pw(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 __(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 uQ(e){var t=e.alternate;t!==null&&(e.alternate=null,uQ(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pu],delete t[gy],delete t[m_],delete t[Qse],delete t[Yse])),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 cQ(e){return e.tag===5||e.tag===3||e.tag===4}function EB(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cQ(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 R_(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=BS));else if(r!==4&&(e=e.child,e!==null))for(R_(e,t,n),e=e.sibling;e!==null;)R_(e,t,n),e=e.sibling}function I_(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(I_(e,t,n),e=e.sibling;e!==null;)I_(e,t,n),e=e.sibling}var fo=null,pl=!1;function Vc(e,t,n){for(n=n.child;n!==null;)dQ(e,t,n),n=n.sibling}function dQ(e,t,n){if(wu&&typeof wu.onCommitFiberUnmount=="function")try{wu.onCommitFiberUnmount(xw,n)}catch{}switch(n.tag){case 5:No||Yh(n,t);case 6:var r=fo,i=pl;fo=null,Vc(e,t,n),fo=r,pl=i,fo!==null&&(pl?(e=fo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fo.removeChild(n.stateNode));break;case 18:fo!==null&&(pl?(e=fo,n=n.stateNode,e.nodeType===8?DC(e.parentNode,n):e.nodeType===1&&DC(e,n),dy(e)):DC(fo,n.stateNode));break;case 4:r=fo,i=pl,fo=n.stateNode.containerInfo,pl=!0,Vc(e,t,n),fo=r,pl=i;break;case 0:case 11:case 14:case 15:if(!No&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&A_(n,t,a),i=i.next}while(i!==r)}Vc(e,t,n);break;case 1:if(!No&&(Yh(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){si(n,t,s)}Vc(e,t,n);break;case 21:Vc(e,t,n);break;case 22:n.mode&1?(No=(r=No)||n.memoizedState!==null,Vc(e,t,n),No=r):Vc(e,t,n);break;default:Vc(e,t,n)}}function SB(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ule),t.forEach(function(r){var i=Ole.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=bi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fle(r/1960))-r,10e?16:e,bd===null)var r=!1;else{if(e=bd,bd=null,KS=0,tr&6)throw Error(St(331));var i=tr;for(tr|=4,Gt=e.current;Gt!==null;){var o=Gt,a=o.child;if(Gt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lbi()-lN?sp(e,0):sN|=n),Aa(e,t)}function OQ(e,t){t===0&&(e.mode&1?(t=dv,dv<<=1,!(dv&130023424)&&(dv=4194304)):t=1);var n=oa();e=Ec(e,t),e!==null&&(F1(e,t,n),Aa(e,n))}function yle(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),OQ(e,n)}function Ole(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(St(314))}r!==null&&r.delete(t),OQ(e,n)}var vQ;vQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xa.current)wa=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wa=!1,ale(e,t,n);wa=!!(e.flags&131072)}else wa=!1,Qr&&t.flags&1048576&&TW(t,VS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$E(e,t),e=t.pendingProps;var i=Gm(t,Uo.current);cm(t,n),i=tN(null,t,r,e,i,n);var o=nN();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,Ca(r)?(o=!0,jS(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ZD(t),i.updater=Dw,t.stateNode=i,i._reactInternals=t,E_(t,r,e,n),t=w_(null,t,r,!0,o,n)):(t.tag=0,Qr&&o&&VD(t),ta(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($E(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ele(r),e=dl(r,e),i){case 0:t=T_(null,t,r,e,n);break e;case 1:t=bB(null,t,r,e,n);break e;case 11:t=mB(null,t,r,e,n);break e;case 14:t=gB(null,t,r,dl(r.type,e),n);break e}throw Error(St(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),T_(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),bB(e,t,r,i,n);case 3:e:{if(rQ(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,CW(e,t),QS(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Km(Error(St(423)),t),t=yB(e,t,r,n,i);break e}else if(r!==i){i=Km(Error(St(424)),t),t=yB(e,t,r,n,i);break e}else for(as=Ad(t.stateNode.containerInfo.firstChild),cs=t,Qr=!0,gl=null,n=IW(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qm(),r===i){t=Sc(e,t,n);break e}ta(e,t,r,n)}t=t.child}return t;case 5:return DW(t),e===null&&y_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,p_(r,i)?a=null:o!==null&&p_(r,o)&&(t.flags|=32),nQ(e,t),ta(e,t,a,n),t.child;case 6:return e===null&&y_(t),null;case 13:return iQ(e,t,n);case 4:return XD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zm(t,null,r,n):ta(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),mB(e,t,r,i,n);case 7:return ta(e,t,t.pendingProps,n),t.child;case 8:return ta(e,t,t.pendingProps.children,n),t.child;case 12:return ta(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Cr(HS,r._currentValue),r._currentValue=a,o!==null)if(Dl(o.value,a)){if(o.children===i.children&&!xa.current){t=Sc(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=hc(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),O_(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(St(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),O_(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ta(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,cm(t,n),i=Xs(i),r=r(i),t.flags|=1,ta(e,t,r,n),t.child;case 14:return r=t.type,i=dl(r,t.pendingProps),i=dl(r.type,i),gB(e,t,r,i,n);case 15:return eQ(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),$E(e,t),t.tag=1,Ca(r)?(e=!0,jS(t)):e=!1,cm(t,n),_W(t,r,i),E_(t,r,i,n),w_(null,t,r,!0,e,n);case 19:return oQ(e,t,n);case 22:return tQ(e,t,n)}throw Error(St(156,t.tag))};function EQ(e,t){return YH(e,t)}function vle(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 Us(e,t,n,r){return new vle(e,t,n,r)}function fN(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ele(e){if(typeof e=="function")return fN(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ID)return 11;if(e===DD)return 14}return 2}function Dd(e,t){var n=e.alternate;return n===null?(n=Us(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 UE(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")fN(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Fh:return lp(n.children,i,o,t);case RD:a=8,i|=8;break;case W2:return e=Us(12,n,t,i|2),e.elementType=W2,e.lanes=o,e;case Q2:return e=Us(13,n,t,i),e.elementType=Q2,e.lanes=o,e;case Y2:return e=Us(19,n,t,i),e.elementType=Y2,e.lanes=o,e;case RH:return Mw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case AH:a=10;break e;case _H:a=9;break e;case ID:a=11;break e;case DD:a=14;break e;case Jc:a=16,r=null;break e}throw Error(St(130,e==null?e:typeof e,""))}return t=Us(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function lp(e,t,n,r){return e=Us(7,e,r,t),e.lanes=n,e}function Mw(e,t,n,r){return e=Us(22,e,r,t),e.elementType=RH,e.lanes=n,e.stateNode={isHidden:!1},e}function UC(e,t,n){return e=Us(6,e,null,t),e.lanes=n,e}function jC(e,t,n){return t=Us(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sle(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=EC(0),this.expirationTimes=EC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=EC(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pN(e,t,n,r,i,o,a,s,l){return e=new Sle(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Us(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ZD(o),e}function Tle(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kQ)}catch(e){console.error(e)}}kQ(),TH.exports=ys;var wg=TH.exports;const nb=tf(wg),Ale=fH({__proto__:null,default:nb},[wg]);var RB=wg;V2.createRoot=RB.createRoot,V2.hydrateRoot=RB.hydrateRoot;const _le={black:"#000",white:"#fff"},Ty=_le,Rle={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"},ch=Rle,Ile={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"},dh=Ile,Dle={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"},fh=Dle,Nle={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"},ph=Nle,Ple={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"},hh=Ple,Lle={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"},y0=Lle,Mle={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"},$le=Mle;function Vd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function xQ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fle=/^((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)-.*))$/,Ble=xQ(function(e){return Fle.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Ule(e){if(e.sheet)return e.sheet;for(var t=0;t0?ho(kg,--Ia):0,eg--,Si===10&&(eg=1,zw--),Si}function ds(){return Si=Ia2||ky(Si)>3?"":" "}function Jle(e,t){for(;--t&&ds()&&!(Si<48||Si>102||Si>57&&Si<65||Si>70&&Si<97););return z1(e,jE()+(t<6&&xu()==32&&ds()==32))}function $_(e){for(;ds();)switch(Si){case e:return Ia;case 34:case 39:e!==34&&e!==39&&$_(Si);break;case 40:e===41&&$_(e);break;case 92:ds();break}return Ia}function eue(e,t){for(;ds()&&e+Si!==57;)if(e+Si===84&&xu()===47)break;return"/*"+z1(t,Ia-1)+"*"+jw(e===47?e:ds())}function tue(e){for(;!ky(xu());)ds();return z1(e,Ia)}function nue(e){return DQ(VE("",null,null,null,[""],e=IQ(e),0,[0],e))}function VE(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,h=0,m=0,b=1,O=1,y=1,v=0,S="",k=i,C=o,w=r,E=S;O;)switch(m=v,v=ds()){case 40:if(m!=108&&ho(E,d-1)==58){M_(E+=ur(zE(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=zE(v);break;case 9:case 10:case 13:case 32:E+=Kle(m);break;case 92:E+=Jle(jE()-1,7);continue;case 47:switch(xu()){case 42:case 47:Tv(rue(eue(ds(),jE()),t,n),l);break;default:E+="/"}break;case 123*b:s[u++]=du(E)*y;case 125*b:case 59:case 0:switch(v){case 0:case 125:O=0;case 59+c:y==-1&&(E=ur(E,/\f/g,"")),h>0&&du(E)-d&&Tv(h>32?DB(E+";",r,n,d-1):DB(ur(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Tv(w=IB(E,t,n,u,c,i,s,S,k=[],C=[],d),o),v===123)if(c===0)VE(E,t,w,w,k,o,d,s,C);else switch(p===99&&ho(E,3)===110?100:p){case 100:case 108:case 109:case 115:VE(e,w,w,r&&Tv(IB(e,w,w,0,0,i,s,S,i,k=[],d),C),i,C,d,s,r?k:C);break;default:VE(E,w,w,w,[""],C,0,s,C)}}u=c=h=0,b=y=1,S=E="",d=a;break;case 58:d=1+du(E),h=m;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&Xle()==125)continue}switch(E+=jw(v),v*b){case 38:y=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(du(E)-1)*y,y=1;break;case 64:xu()===45&&(E+=zE(ds())),p=xu(),c=d=du(S=E+=tue(jE())),v++;break;case 45:m===45&&du(E)==2&&(b=0)}}return o}function IB(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=ON(p),m=0,b=0,O=0;m0?p[y]+" "+v:ur(v,/&\f/g,p[y])))&&(l[O++]=S);return Vw(e,t,n,i===0?bN:s,l,u,c)}function rue(e,t,n){return Vw(e,t,n,CQ,jw(Zle()),wy(e,2,-2),0)}function DB(e,t,n,r){return Vw(e,t,n,yN,wy(e,0,r),wy(e,r+1,-1),r)}function fm(e,t){for(var n="",r=ON(e),i=0;i6)switch(ho(e,t+1)){case 109:if(ho(e,t+4)!==45)break;case 102:return ur(e,/(.+:)(.+)-([^]+)/,"$1"+lr+"$2-$3$1"+tT+(ho(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~M_(e,"stretch")?NQ(ur(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ho(e,t+1)!==115)break;case 6444:switch(ho(e,du(e)-3-(~M_(e,"!important")&&10))){case 107:return ur(e,":",":"+lr)+e;case 101:return ur(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lr+(ho(e,14)===45?"inline-":"")+"box$3$1"+lr+"$2$3$1"+Io+"$2box$3")+e}break;case 5936:switch(ho(e,t+11)){case 114:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lr+e+Io+e+e}return e}var fue=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case yN:t.return=NQ(t.value,t.length);break;case AQ:return fm([O0(t,{value:ur(t.value,"@","@"+lr)})],i);case bN:if(t.length)return qle(t.props,function(o){switch(Gle(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fm([O0(t,{props:[ur(o,/:(read-\w+)/,":"+tT+"$1")]})],i);case"::placeholder":return fm([O0(t,{props:[ur(o,/:(plac\w+)/,":"+lr+"input-$1")]}),O0(t,{props:[ur(o,/:(plac\w+)/,":"+tT+"$1")]}),O0(t,{props:[ur(o,/:(plac\w+)/,Io+"input-$1")]})],i)}return""})}},pue=[fue],hue=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(b){var O=b.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||pue,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var O=b.getAttribute("data-emotion").split(" "),y=1;y<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pu]=t,e[gy]=r,aQ(e,t,!1,!1),t.stateNode=e;e:{switch(a=t_(n,r),n){case"dialog":Ir("cancel",e),Ir("close",e),i=r;break;case"iframe":case"object":case"embed":Ir("load",e),i=r;break;case"video":case"audio":for(i=0;iJm&&(t.flags|=128,r=!0,g0(o,!1),t.lanes=4194304)}else{if(!r)if(e=YS(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),g0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Qr)return _o(t),null}else 2*bi()-o.renderingStartTime>Jm&&n!==1073741824&&(t.flags|=128,r=!0,g0(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=bi(),t.sibling=null,n=Zr.current,Cr(Zr,r?n&1|2:n&1),t):(_o(t),null);case 22:case 23:return cD(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Za&1073741824&&(_o(t),t.subtreeFlags&6&&(t.flags|=8192)):_o(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function lle(e,t){switch(HN(t),t.tag){case 1:return Ca(t.type)&&US(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xm(),Mr(xa),Mr(Uo),JN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return KN(t),null;case 13:if(Mr(Zr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));qm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mr(Zr),null;case 4:return Xm(),null;case 10:return GN(t.type._context),null;case 22:case 23:return cD(),null;case 24:return null;default:return null}}var vv=!1,Do=!1,ule=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function Yh(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){si(e,t,r)}else n.current=null}function A_(e,t,n){try{n()}catch(r){si(e,t,r)}}var vB=!1;function cle(e,t){if(d_=MS,e=fW(),zN(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(f_={focusedElem:e,selectionRange:n},MS=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){t=Gt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var b=m.memoizedProps,O=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:dl(t.type,b),O);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(St(163))}}catch(k){si(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}return m=vB,vB=!1,m}function Sb(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 o=i.destroy;i.destroy=void 0,o!==void 0&&A_(t,n,o)}i=i.next}while(i!==r)}}function Pw(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 __(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 uQ(e){var t=e.alternate;t!==null&&(e.alternate=null,uQ(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pu],delete t[gy],delete t[m_],delete t[Qse],delete t[Yse])),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 cQ(e){return e.tag===5||e.tag===3||e.tag===4}function EB(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cQ(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 R_(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=BS));else if(r!==4&&(e=e.child,e!==null))for(R_(e,t,n),e=e.sibling;e!==null;)R_(e,t,n),e=e.sibling}function I_(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(I_(e,t,n),e=e.sibling;e!==null;)I_(e,t,n),e=e.sibling}var fo=null,pl=!1;function Vc(e,t,n){for(n=n.child;n!==null;)dQ(e,t,n),n=n.sibling}function dQ(e,t,n){if(wu&&typeof wu.onCommitFiberUnmount=="function")try{wu.onCommitFiberUnmount(xw,n)}catch{}switch(n.tag){case 5:Do||Yh(n,t);case 6:var r=fo,i=pl;fo=null,Vc(e,t,n),fo=r,pl=i,fo!==null&&(pl?(e=fo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fo.removeChild(n.stateNode));break;case 18:fo!==null&&(pl?(e=fo,n=n.stateNode,e.nodeType===8?NC(e.parentNode,n):e.nodeType===1&&NC(e,n),dy(e)):NC(fo,n.stateNode));break;case 4:r=fo,i=pl,fo=n.stateNode.containerInfo,pl=!0,Vc(e,t,n),fo=r,pl=i;break;case 0:case 11:case 14:case 15:if(!Do&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&A_(n,t,a),i=i.next}while(i!==r)}Vc(e,t,n);break;case 1:if(!Do&&(Yh(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){si(n,t,s)}Vc(e,t,n);break;case 21:Vc(e,t,n);break;case 22:n.mode&1?(Do=(r=Do)||n.memoizedState!==null,Vc(e,t,n),Do=r):Vc(e,t,n);break;default:Vc(e,t,n)}}function SB(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ule),t.forEach(function(r){var i=Ole.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=bi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fle(r/1960))-r,10e?16:e,bd===null)var r=!1;else{if(e=bd,bd=null,KS=0,tr&6)throw Error(St(331));var i=tr;for(tr|=4,Gt=e.current;Gt!==null;){var o=Gt,a=o.child;if(Gt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lbi()-lD?sp(e,0):sD|=n),Aa(e,t)}function OQ(e,t){t===0&&(e.mode&1?(t=dv,dv<<=1,!(dv&130023424)&&(dv=4194304)):t=1);var n=oa();e=Ec(e,t),e!==null&&(F1(e,t,n),Aa(e,n))}function yle(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),OQ(e,n)}function Ole(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(St(314))}r!==null&&r.delete(t),OQ(e,n)}var vQ;vQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xa.current)wa=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wa=!1,ale(e,t,n);wa=!!(e.flags&131072)}else wa=!1,Qr&&t.flags&1048576&&TW(t,VS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$E(e,t),e=t.pendingProps;var i=Gm(t,Uo.current);cm(t,n),i=tD(null,t,r,e,i,n);var o=nD();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,Ca(r)?(o=!0,jS(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ZN(t),i.updater=Nw,t.stateNode=i,i._reactInternals=t,E_(t,r,e,n),t=w_(null,t,r,!0,o,n)):(t.tag=0,Qr&&o&&VN(t),ta(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($E(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ele(r),e=dl(r,e),i){case 0:t=T_(null,t,r,e,n);break e;case 1:t=bB(null,t,r,e,n);break e;case 11:t=mB(null,t,r,e,n);break e;case 14:t=gB(null,t,r,dl(r.type,e),n);break e}throw Error(St(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),T_(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),bB(e,t,r,i,n);case 3:e:{if(rQ(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,CW(e,t),QS(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Km(Error(St(423)),t),t=yB(e,t,r,n,i);break e}else if(r!==i){i=Km(Error(St(424)),t),t=yB(e,t,r,n,i);break e}else for(as=Ad(t.stateNode.containerInfo.firstChild),cs=t,Qr=!0,gl=null,n=IW(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qm(),r===i){t=Sc(e,t,n);break e}ta(e,t,r,n)}t=t.child}return t;case 5:return NW(t),e===null&&y_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,p_(r,i)?a=null:o!==null&&p_(r,o)&&(t.flags|=32),nQ(e,t),ta(e,t,a,n),t.child;case 6:return e===null&&y_(t),null;case 13:return iQ(e,t,n);case 4:return XN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zm(t,null,r,n):ta(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),mB(e,t,r,i,n);case 7:return ta(e,t,t.pendingProps,n),t.child;case 8:return ta(e,t,t.pendingProps.children,n),t.child;case 12:return ta(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Cr(HS,r._currentValue),r._currentValue=a,o!==null)if(Nl(o.value,a)){if(o.children===i.children&&!xa.current){t=Sc(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=hc(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),O_(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(St(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),O_(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ta(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,cm(t,n),i=Xs(i),r=r(i),t.flags|=1,ta(e,t,r,n),t.child;case 14:return r=t.type,i=dl(r,t.pendingProps),i=dl(r.type,i),gB(e,t,r,i,n);case 15:return eQ(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),$E(e,t),t.tag=1,Ca(r)?(e=!0,jS(t)):e=!1,cm(t,n),_W(t,r,i),E_(t,r,i,n),w_(null,t,r,!0,e,n);case 19:return oQ(e,t,n);case 22:return tQ(e,t,n)}throw Error(St(156,t.tag))};function EQ(e,t){return YH(e,t)}function vle(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 Us(e,t,n,r){return new vle(e,t,n,r)}function fD(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ele(e){if(typeof e=="function")return fD(e)?1:0;if(e!=null){if(e=e.$$typeof,e===IN)return 11;if(e===NN)return 14}return 2}function Nd(e,t){var n=e.alternate;return n===null?(n=Us(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 UE(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")fD(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Fh:return lp(n.children,i,o,t);case RN:a=8,i|=8;break;case W2:return e=Us(12,n,t,i|2),e.elementType=W2,e.lanes=o,e;case Q2:return e=Us(13,n,t,i),e.elementType=Q2,e.lanes=o,e;case Y2:return e=Us(19,n,t,i),e.elementType=Y2,e.lanes=o,e;case RH:return Mw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case AH:a=10;break e;case _H:a=9;break e;case IN:a=11;break e;case NN:a=14;break e;case Jc:a=16,r=null;break e}throw Error(St(130,e==null?e:typeof e,""))}return t=Us(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function lp(e,t,n,r){return e=Us(7,e,r,t),e.lanes=n,e}function Mw(e,t,n,r){return e=Us(22,e,r,t),e.elementType=RH,e.lanes=n,e.stateNode={isHidden:!1},e}function UC(e,t,n){return e=Us(6,e,null,t),e.lanes=n,e}function jC(e,t,n){return t=Us(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sle(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=EC(0),this.expirationTimes=EC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=EC(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pD(e,t,n,r,i,o,a,s,l){return e=new Sle(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Us(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ZN(o),e}function Tle(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kQ)}catch(e){console.error(e)}}kQ(),TH.exports=ys;var wg=TH.exports;const nb=tf(wg),Ale=fH({__proto__:null,default:nb},[wg]);var RB=wg;V2.createRoot=RB.createRoot,V2.hydrateRoot=RB.hydrateRoot;const _le={black:"#000",white:"#fff"},Ty=_le,Rle={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"},ch=Rle,Ile={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"},dh=Ile,Nle={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"},fh=Nle,Dle={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"},ph=Dle,Ple={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"},hh=Ple,Lle={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"},y0=Lle,Mle={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"},$le=Mle;function Vd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function xQ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fle=/^((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)-.*))$/,Ble=xQ(function(e){return Fle.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Ule(e){if(e.sheet)return e.sheet;for(var t=0;t0?ho(kg,--Ia):0,eg--,Si===10&&(eg=1,zw--),Si}function ds(){return Si=Ia2||ky(Si)>3?"":" "}function Jle(e,t){for(;--t&&ds()&&!(Si<48||Si>102||Si>57&&Si<65||Si>70&&Si<97););return z1(e,jE()+(t<6&&xu()==32&&ds()==32))}function $_(e){for(;ds();)switch(Si){case e:return Ia;case 34:case 39:e!==34&&e!==39&&$_(Si);break;case 40:e===41&&$_(e);break;case 92:ds();break}return Ia}function eue(e,t){for(;ds()&&e+Si!==57;)if(e+Si===84&&xu()===47)break;return"/*"+z1(t,Ia-1)+"*"+jw(e===47?e:ds())}function tue(e){for(;!ky(xu());)ds();return z1(e,Ia)}function nue(e){return NQ(VE("",null,null,null,[""],e=IQ(e),0,[0],e))}function VE(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,h=0,m=0,b=1,O=1,y=1,v=0,S="",k=i,C=o,w=r,E=S;O;)switch(m=v,v=ds()){case 40:if(m!=108&&ho(E,d-1)==58){M_(E+=ur(zE(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=zE(v);break;case 9:case 10:case 13:case 32:E+=Kle(m);break;case 92:E+=Jle(jE()-1,7);continue;case 47:switch(xu()){case 42:case 47:Tv(rue(eue(ds(),jE()),t,n),l);break;default:E+="/"}break;case 123*b:s[u++]=du(E)*y;case 125*b:case 59:case 0:switch(v){case 0:case 125:O=0;case 59+c:y==-1&&(E=ur(E,/\f/g,"")),h>0&&du(E)-d&&Tv(h>32?NB(E+";",r,n,d-1):NB(ur(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Tv(w=IB(E,t,n,u,c,i,s,S,k=[],C=[],d),o),v===123)if(c===0)VE(E,t,w,w,k,o,d,s,C);else switch(p===99&&ho(E,3)===110?100:p){case 100:case 108:case 109:case 115:VE(e,w,w,r&&Tv(IB(e,w,w,0,0,i,s,S,i,k=[],d),C),i,C,d,s,r?k:C);break;default:VE(E,w,w,w,[""],C,0,s,C)}}u=c=h=0,b=y=1,S=E="",d=a;break;case 58:d=1+du(E),h=m;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&Xle()==125)continue}switch(E+=jw(v),v*b){case 38:y=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(du(E)-1)*y,y=1;break;case 64:xu()===45&&(E+=zE(ds())),p=xu(),c=d=du(S=E+=tue(jE())),v++;break;case 45:m===45&&du(E)==2&&(b=0)}}return o}function IB(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=OD(p),m=0,b=0,O=0;m0?p[y]+" "+v:ur(v,/&\f/g,p[y])))&&(l[O++]=S);return Vw(e,t,n,i===0?bD:s,l,u,c)}function rue(e,t,n){return Vw(e,t,n,CQ,jw(Zle()),wy(e,2,-2),0)}function NB(e,t,n,r){return Vw(e,t,n,yD,wy(e,0,r),wy(e,r+1,-1),r)}function fm(e,t){for(var n="",r=OD(e),i=0;i6)switch(ho(e,t+1)){case 109:if(ho(e,t+4)!==45)break;case 102:return ur(e,/(.+:)(.+)-([^]+)/,"$1"+lr+"$2-$3$1"+tT+(ho(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~M_(e,"stretch")?DQ(ur(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ho(e,t+1)!==115)break;case 6444:switch(ho(e,du(e)-3-(~M_(e,"!important")&&10))){case 107:return ur(e,":",":"+lr)+e;case 101:return ur(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lr+(ho(e,14)===45?"inline-":"")+"box$3$1"+lr+"$2$3$1"+Io+"$2box$3")+e}break;case 5936:switch(ho(e,t+11)){case 114:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lr+e+Io+e+e}return e}var fue=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case yD:t.return=DQ(t.value,t.length);break;case AQ:return fm([O0(t,{value:ur(t.value,"@","@"+lr)})],i);case bD:if(t.length)return qle(t.props,function(o){switch(Gle(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fm([O0(t,{props:[ur(o,/:(read-\w+)/,":"+tT+"$1")]})],i);case"::placeholder":return fm([O0(t,{props:[ur(o,/:(plac\w+)/,":"+lr+"input-$1")]}),O0(t,{props:[ur(o,/:(plac\w+)/,":"+tT+"$1")]}),O0(t,{props:[ur(o,/:(plac\w+)/,Io+"input-$1")]})],i)}return""})}},pue=[fue],hue=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(b){var O=b.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||pue,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var O=b.getAttribute("data-emotion").split(" "),y=1;y=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 xue={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},Cue=/[A-Z]|^ms/g,Aue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,UQ=function(t){return t.charCodeAt(1)===45},PB=function(t){return t!=null&&typeof t!="boolean"},zC=xQ(function(e){return UQ(e)?e:e.replace(Cue,"-$&").toLowerCase()}),LB=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Aue,function(r,i,o){return fu={name:i,styles:o,next:fu},i})}return xue[t]!==1&&!UQ(t)&&typeof n=="number"&&n!==0?n+"px":n};function xy(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 fu={name:n.name,styles:n.styles,next:fu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)fu={name:r.name,styles:r.styles,next:fu},r=r.next;var i=n.styles+";";return i}return _ue(e,t,n)}case"function":{if(e!==void 0){var o=fu,a=n(e);return fu=o,xy(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function _ue(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Nue:Pue},BB=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Lue=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return FQ(n,r,i),Iue(function(){return BQ(n,r,i)}),null},Mue=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=BB(t,n,r),l=s||FB(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht(Vue(i)?n:i):t;return D.jsx(Due,{styles:r})}function YQ(e,t){return F_(e,t)}const Wue=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function lc(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 GQ(e){if(!lc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=GQ(e[n])}),t}function Mo(e,t,n={clone:!0}){const r=n.clone?L({},e):e;return lc(e)&&lc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(lc(t[i])&&i in e&&lc(e[i])?r[i]=Mo(e[i],t[i],n):n.clone?r[i]=lc(t[i])?GQ(t[i]):t[i]:r[i]=t[i])}),r}var mr={};/** + */var to=typeof Symbol=="function"&&Symbol.for,vD=to?Symbol.for("react.element"):60103,ED=to?Symbol.for("react.portal"):60106,Hw=to?Symbol.for("react.fragment"):60107,Ww=to?Symbol.for("react.strict_mode"):60108,Qw=to?Symbol.for("react.profiler"):60114,Yw=to?Symbol.for("react.provider"):60109,Gw=to?Symbol.for("react.context"):60110,SD=to?Symbol.for("react.async_mode"):60111,qw=to?Symbol.for("react.concurrent_mode"):60111,Zw=to?Symbol.for("react.forward_ref"):60112,Xw=to?Symbol.for("react.suspense"):60113,mue=to?Symbol.for("react.suspense_list"):60120,Kw=to?Symbol.for("react.memo"):60115,Jw=to?Symbol.for("react.lazy"):60116,gue=to?Symbol.for("react.block"):60121,bue=to?Symbol.for("react.fundamental"):60117,yue=to?Symbol.for("react.responder"):60118,Oue=to?Symbol.for("react.scope"):60119;function vs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vD:switch(e=e.type,e){case SD:case qw:case Hw:case Qw:case Ww:case Xw:return e;default:switch(e=e&&e.$$typeof,e){case Gw:case Zw:case Jw:case Kw:case Yw:return e;default:return t}}case ED:return t}}}function LQ(e){return vs(e)===qw}hr.AsyncMode=SD;hr.ConcurrentMode=qw;hr.ContextConsumer=Gw;hr.ContextProvider=Yw;hr.Element=vD;hr.ForwardRef=Zw;hr.Fragment=Hw;hr.Lazy=Jw;hr.Memo=Kw;hr.Portal=ED;hr.Profiler=Qw;hr.StrictMode=Ww;hr.Suspense=Xw;hr.isAsyncMode=function(e){return LQ(e)||vs(e)===SD};hr.isConcurrentMode=LQ;hr.isContextConsumer=function(e){return vs(e)===Gw};hr.isContextProvider=function(e){return vs(e)===Yw};hr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vD};hr.isForwardRef=function(e){return vs(e)===Zw};hr.isFragment=function(e){return vs(e)===Hw};hr.isLazy=function(e){return vs(e)===Jw};hr.isMemo=function(e){return vs(e)===Kw};hr.isPortal=function(e){return vs(e)===ED};hr.isProfiler=function(e){return vs(e)===Qw};hr.isStrictMode=function(e){return vs(e)===Ww};hr.isSuspense=function(e){return vs(e)===Xw};hr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hw||e===qw||e===Qw||e===Ww||e===Xw||e===mue||typeof e=="object"&&e!==null&&(e.$$typeof===Jw||e.$$typeof===Kw||e.$$typeof===Yw||e.$$typeof===Gw||e.$$typeof===Zw||e.$$typeof===bue||e.$$typeof===yue||e.$$typeof===Oue||e.$$typeof===gue)};hr.typeOf=vs;PQ.exports=hr;var vue=PQ.exports,MQ=vue,Eue={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sue={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$Q={};$Q[MQ.ForwardRef]=Eue;$Q[MQ.Memo]=Sue;var Tue=!0;function wue(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var FQ=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Tue===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},BQ=function(t,n,r){FQ(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function kue(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 xue={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},Cue=/[A-Z]|^ms/g,Aue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,UQ=function(t){return t.charCodeAt(1)===45},PB=function(t){return t!=null&&typeof t!="boolean"},zC=xQ(function(e){return UQ(e)?e:e.replace(Cue,"-$&").toLowerCase()}),LB=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Aue,function(r,i,o){return fu={name:i,styles:o,next:fu},i})}return xue[t]!==1&&!UQ(t)&&typeof n=="number"&&n!==0?n+"px":n};function xy(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 fu={name:n.name,styles:n.styles,next:fu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)fu={name:r.name,styles:r.styles,next:fu},r=r.next;var i=n.styles+";";return i}return _ue(e,t,n)}case"function":{if(e!==void 0){var o=fu,a=n(e);return fu=o,xy(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function _ue(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Due:Pue},BB=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Lue=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return FQ(n,r,i),Iue(function(){return BQ(n,r,i)}),null},Mue=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=BB(t,n,r),l=s||FB(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht(Vue(i)?n:i):t;return N.jsx(Nue,{styles:r})}function YQ(e,t){return F_(e,t)}const Wue=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function lc(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 GQ(e){if(!lc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=GQ(e[n])}),t}function Mo(e,t,n={clone:!0}){const r=n.clone?L({},e):e;return lc(e)&&lc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(lc(t[i])&&i in e&&lc(e[i])?r[i]=Mo(e[i],t[i],n):n.clone?r[i]=lc(t[i])?GQ(t[i]):t[i]:r[i]=t[i])}),r}var mr={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kN=Symbol.for("react.element"),xN=Symbol.for("react.portal"),tk=Symbol.for("react.fragment"),nk=Symbol.for("react.strict_mode"),rk=Symbol.for("react.profiler"),ik=Symbol.for("react.provider"),ok=Symbol.for("react.context"),Que=Symbol.for("react.server_context"),ak=Symbol.for("react.forward_ref"),sk=Symbol.for("react.suspense"),lk=Symbol.for("react.suspense_list"),uk=Symbol.for("react.memo"),ck=Symbol.for("react.lazy"),Yue=Symbol.for("react.offscreen"),qQ;qQ=Symbol.for("react.module.reference");function nl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kN:switch(e=e.type,e){case tk:case rk:case nk:case sk:case lk:return e;default:switch(e=e&&e.$$typeof,e){case Que:case ok:case ak:case ck:case uk:case ik:return e;default:return t}}case xN:return t}}}mr.ContextConsumer=ok;mr.ContextProvider=ik;mr.Element=kN;mr.ForwardRef=ak;mr.Fragment=tk;mr.Lazy=ck;mr.Memo=uk;mr.Portal=xN;mr.Profiler=rk;mr.StrictMode=nk;mr.Suspense=sk;mr.SuspenseList=lk;mr.isAsyncMode=function(){return!1};mr.isConcurrentMode=function(){return!1};mr.isContextConsumer=function(e){return nl(e)===ok};mr.isContextProvider=function(e){return nl(e)===ik};mr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kN};mr.isForwardRef=function(e){return nl(e)===ak};mr.isFragment=function(e){return nl(e)===tk};mr.isLazy=function(e){return nl(e)===ck};mr.isMemo=function(e){return nl(e)===uk};mr.isPortal=function(e){return nl(e)===xN};mr.isProfiler=function(e){return nl(e)===rk};mr.isStrictMode=function(e){return nl(e)===nk};mr.isSuspense=function(e){return nl(e)===sk};mr.isSuspenseList=function(e){return nl(e)===lk};mr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tk||e===rk||e===nk||e===sk||e===lk||e===Yue||typeof e=="object"&&e!==null&&(e.$$typeof===ck||e.$$typeof===uk||e.$$typeof===ik||e.$$typeof===ok||e.$$typeof===ak||e.$$typeof===qQ||e.getModuleId!==void 0)};mr.typeOf=nl;const Gue=Q.oneOfType([Q.func,Q.object]),xg=Gue;function nt(e){if(typeof e!="string")throw new Error(Vd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nT(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Cg(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function que(e,t){return()=>null}function kb(e,t){var n,r;return I.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 Or(e){return e&&e.ownerDocument||document}function Js(e){return Or(e).defaultView||window}function Zue(e,t){return()=>null}function Cy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Jr=typeof window<"u"?I.useLayoutEffect:I.useEffect;let UB=0;function Xue(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(UB+=1,n(`mui-${UB}`))},[t]),r}const jB=Qm.useId;function Fl(e){if(jB!==void 0){const t=jB();return e??t}return Xue(e)}function Kue(e,t,n,r,i){return null}function Ji({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=I.useRef(e!==void 0),[o,a]=I.useState(t),s=i?e:o,l=I.useCallback(u=>{i||a(u)},[]);return[s,l]}function jt(e){const t=I.useRef(e);return Jr(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function yn(...e){return I.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cy(n,t)})},e)}let dk=!0,B_=!1,zB;const Jue={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 ece(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Jue[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tce(e){e.metaKey||e.altKey||e.ctrlKey||(dk=!0)}function VC(){dk=!1}function nce(){this.visibilityState==="hidden"&&B_&&(dk=!0)}function rce(e){e.addEventListener("keydown",tce,!0),e.addEventListener("mousedown",VC,!0),e.addEventListener("pointerdown",VC,!0),e.addEventListener("touchstart",VC,!0),e.addEventListener("visibilitychange",nce,!0)}function ice(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return dk||ece(t)}function fk(){const e=I.useCallback(i=>{i!=null&&rce(i.ownerDocument)},[]),t=I.useRef(!1);function n(){return t.current?(B_=!0,window.clearTimeout(zB),zB=window.setTimeout(()=>{B_=!1},100),t.current=!1,!0):!1}function r(i){return ice(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ZQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let mh;function XQ(){if(mh)return mh;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),mh="reverse",e.scrollLeft>0?mh="default":(e.scrollLeft=1,e.scrollLeft===0&&(mh="negative")),document.body.removeChild(e),mh}function oce(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(XQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const ace=e=>{const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current};function sce(e){return I.Children.toArray(e).filter(t=>I.isValidElement(t))}const lce={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},uce=lce;function pk(e,t){const n=L({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=L({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=L({},o),Object.keys(i).forEach(a=>{n[r][a]=pk(i[a],o[a])}))}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((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const VB=e=>e,cce=()=>{let e=VB;return{configure(t){e=t},generate(t){return e(t)},reset(){e=VB}}},CN=cce(),KQ={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 At(e,t,n="Mui"){const r=KQ[t];return r?`${n}-${r}`:`${CN.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}function wh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const dce=["values","unit","step"],fce=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)=>L({},n,{[r.key]:r.val}),{})};function pce(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ye(e,dce),o=fce(t),a=Object.keys(o);function s(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 u(p,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${AN[e]}px)`};function Da(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||HB;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||HB;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||AN).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function JQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function eY(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function gce(e,...t){const n=JQ(e),r=[n,...t].reduce((i,o)=>Mo(i,o),{});return eY(Object.keys(n),r)}function bce(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function up({values:e,breakpoints:t,base:n}){const r=n||bce(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function hk(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function rT(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=hk(e,n)||r,t&&(i=t(i,r,e)),i}function Oi(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=hk(l,r)||{};return Da(a,s,d=>{let p=rT(u,i,d);return d===p&&typeof d=="string"&&(p=rT(u,i,`${t}${d==="default"?"":nt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function yce(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Oce={m:"margin",p:"padding"},vce={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},WB={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ece=yce(e=>{if(e.length>2)if(WB[e])e=WB[e];else return[e];const[t,n]=e.split(""),r=Oce[t],i=vce[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),_N=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],RN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[..._N,...RN];function H1(e,t,n,r){var i;const o=(i=hk(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function IN(e){return H1(e,"spacing",8)}function Op(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 Sce(e,t){return n=>e.reduce((r,i)=>(r[i]=Op(t,n),r),{})}function Tce(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Ece(n),o=Sce(i,r),a=e[n];return Da(e,a,o)}function tY(e,t){const n=IN(e.theme);return Object.keys(e).map(r=>Tce(e,t,r,n)).reduce(xb,{})}function ii(e){return tY(e,_N)}ii.propTypes={};ii.filterProps=_N;function oi(e){return tY(e,RN)}oi.propTypes={};oi.filterProps=RN;function wce(e=8){if(e.mui)return e;const t=IN({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function mk(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?xb(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ms(e){return typeof e!="number"?e:`${e}px solid`}function rl(e,t){return Oi({prop:e,themeKey:"borders",transform:t})}const kce=rl("border",Ms),xce=rl("borderTop",Ms),Cce=rl("borderRight",Ms),Ace=rl("borderBottom",Ms),_ce=rl("borderLeft",Ms),Rce=rl("borderColor"),Ice=rl("borderTopColor"),Dce=rl("borderRightColor"),Nce=rl("borderBottomColor"),Pce=rl("borderLeftColor"),Lce=rl("outline",Ms),Mce=rl("outlineColor"),gk=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=H1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Op(t,r)});return Da(e,e.borderRadius,n)}return null};gk.propTypes={};gk.filterProps=["borderRadius"];mk(kce,xce,Cce,Ace,_ce,Rce,Ice,Dce,Nce,Pce,gk,Lce,Mce);const bk=e=>{if(e.gap!==void 0&&e.gap!==null){const t=H1(e.theme,"spacing",8),n=r=>({gap:Op(t,r)});return Da(e,e.gap,n)}return null};bk.propTypes={};bk.filterProps=["gap"];const yk=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=H1(e.theme,"spacing",8),n=r=>({columnGap:Op(t,r)});return Da(e,e.columnGap,n)}return null};yk.propTypes={};yk.filterProps=["columnGap"];const Ok=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=H1(e.theme,"spacing",8),n=r=>({rowGap:Op(t,r)});return Da(e,e.rowGap,n)}return null};Ok.propTypes={};Ok.filterProps=["rowGap"];const $ce=Oi({prop:"gridColumn"}),Fce=Oi({prop:"gridRow"}),Bce=Oi({prop:"gridAutoFlow"}),Uce=Oi({prop:"gridAutoColumns"}),jce=Oi({prop:"gridAutoRows"}),zce=Oi({prop:"gridTemplateColumns"}),Vce=Oi({prop:"gridTemplateRows"}),Hce=Oi({prop:"gridTemplateAreas"}),Wce=Oi({prop:"gridArea"});mk(bk,yk,Ok,$ce,Fce,Bce,Uce,jce,zce,Vce,Hce,Wce);function pm(e,t){return t==="grey"?t:e}const Qce=Oi({prop:"color",themeKey:"palette",transform:pm}),Yce=Oi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pm}),Gce=Oi({prop:"backgroundColor",themeKey:"palette",transform:pm});mk(Qce,Yce,Gce);function rs(e){return e<=1&&e!==0?`${e*100}%`:e}const qce=Oi({prop:"width",transform:rs}),DN=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||AN[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:rs(n)}};return Da(e,e.maxWidth,t)}return null};DN.filterProps=["maxWidth"];const Zce=Oi({prop:"minWidth",transform:rs}),Xce=Oi({prop:"height",transform:rs}),Kce=Oi({prop:"maxHeight",transform:rs}),Jce=Oi({prop:"minHeight",transform:rs});Oi({prop:"size",cssProperty:"width",transform:rs});Oi({prop:"size",cssProperty:"height",transform:rs});const ede=Oi({prop:"boxSizing"});mk(qce,DN,Zce,Xce,Kce,Jce,ede);const tde={border:{themeKey:"borders",transform:Ms},borderTop:{themeKey:"borders",transform:Ms},borderRight:{themeKey:"borders",transform:Ms},borderBottom:{themeKey:"borders",transform:Ms},borderLeft:{themeKey:"borders",transform:Ms},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ms},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gk},color:{themeKey:"palette",transform:pm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pm},backgroundColor:{themeKey:"palette",transform:pm},p:{style:oi},pt:{style:oi},pr:{style:oi},pb:{style:oi},pl:{style:oi},px:{style:oi},py:{style:oi},padding:{style:oi},paddingTop:{style:oi},paddingRight:{style:oi},paddingBottom:{style:oi},paddingLeft:{style:oi},paddingX:{style:oi},paddingY:{style:oi},paddingInline:{style:oi},paddingInlineStart:{style:oi},paddingInlineEnd:{style:oi},paddingBlock:{style:oi},paddingBlockStart:{style:oi},paddingBlockEnd:{style:oi},m:{style:ii},mt:{style:ii},mr:{style:ii},mb:{style:ii},ml:{style:ii},mx:{style:ii},my:{style:ii},margin:{style:ii},marginTop:{style:ii},marginRight:{style:ii},marginBottom:{style:ii},marginLeft:{style:ii},marginX:{style:ii},marginY:{style:ii},marginInline:{style:ii},marginInlineStart:{style:ii},marginInlineEnd:{style:ii},marginBlock:{style:ii},marginBlockStart:{style:ii},marginBlockEnd:{style:ii},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:bk},rowGap:{style:Ok},columnGap:{style:yk},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rs},maxWidth:{style:DN},minWidth:{transform:rs},height:{transform:rs},maxHeight:{transform:rs},minHeight:{transform:rs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},vk=tde;function nde(...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 rde(e,t){return typeof e=="function"?e(t):e}function ide(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=hk(i,u)||{};return d?d(a):Da(a,r,m=>{let b=rT(p,c,m);return m===b&&typeof m=="string"&&(b=rT(p,c,`${n}${m==="default"?"":nt(m)}`,m)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:vk;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=JQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=rde(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=xb(p,e(h,m,o,a));else{const b=Da({theme:o},m,O=>({[h]:O}));nde(b,m)?p[h]=t({sx:m,theme:o}):p=xb(p,b)}else p=xb(p,e(h,m,o,a))}),eY(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const W1=ide();W1.filterProps=["sx"];const ode=["breakpoints","palette","spacing","shape"];function Q1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ye(e,ode),s=pce(n),l=wce(i);let u=Mo({breakpoints:s,direction:"ltr",components:{},palette:L({mode:"light"},r),spacing:l,shape:L({},mce,o)},a);return u=t.reduce((c,d)=>Mo(c,d),u),u.unstable_sxConfig=L({},vk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return W1({sx:d,theme:this})},u}function ade(e){return Object.keys(e).length===0}function Ek(e=null){const t=I.useContext(ek);return!t||ade(t)?e:t}const sde=Q1();function Ag(e=sde){return Ek(e)}function lde({styles:e,themeId:t,defaultTheme:n={}}){const r=Ag(n),i=typeof e=="function"?e(t&&r[t]||r):e;return D.jsx(Hue,{styles:i})}const ude=["sx"],cde=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:vk;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Sk(e){const{sx:t}=e,n=Ye(e,ude),{systemProps:r,otherProps:i}=cde(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return lc(s)?L({},r,s):r}:o=L({},r,t),L({},i,{sx:o})}function nY(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;ts!=="theme"&&s!=="sx"&&s!=="as"})(W1);return I.forwardRef(function(l,u){const c=Ag(n),d=Sk(l),{className:p,component:h="div"}=d,m=Ye(d,dde);return D.jsx(o,L({as:h,ref:u,className:Ke(p,i?i(r):r),theme:t&&c[t]||c},m))})}const pde=["variant"];function QB(e){return e.length===0}function rY(e){const{variant:t}=e,n=Ye(e,pde);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=QB(r)?e[i]:nt(e[i]):r+=`${QB(r)?i:nt(i)}${nt(e[i].toString())}`}),r}const hde=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mde(e){return Object.keys(e).length===0}function gde(e){return typeof e=="string"&&e.charCodeAt(0)>96}const bde=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,iT=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=rY(r.props),n[i]=r.style}),n},yde=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),iT(n)},oT=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let o=0;return n&&n.forEach(a=>{let s=!0;if(typeof a.props=="function"){const l=L({},e,r);s=a.props(l)}else Object.keys(a.props).forEach(l=>{r[l]!==a.props[l]&&e[l]!==a.props[l]&&(s=!1)});s&&(typeof a.props=="function"?i.push(t[`callback${o}`]):i.push(t[rY(a.props)])),typeof a.props=="function"&&(o+=1)}),i},Ode=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return oT(e,t,o)};function Cb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vde=Q1(),Ede=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function HE({defaultTheme:e,theme:t,themeId:n}){return mde(t)?e:t[n]||t}function Sde(e){return e?(t,n)=>n[e]:null}const YB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(L({},t,{theme:HE(L({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=oT(t,iT(o),o);return[i,...a]}return i};function iY(e={}){const{themeId:t,defaultTheme:n=vde,rootShouldForwardProp:r=Cb,slotShouldForwardProp:i=Cb}=e,o=a=>W1(L({},a,{theme:HE(L({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Wue(a,k=>k.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=Sde(Ede(u))}=s,h=Ye(s,hde),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=d||!1;let O,y=Cb;u==="Root"||u==="root"?y=r:u?y=i:gde(a)&&(y=void 0);const v=YQ(a,L({shouldForwardProp:y,label:O},h)),S=(k,...C)=>{const w=C?C.map(_=>{if(typeof _=="function"&&_.__emotion_real!==_)return B=>YB({styledArg:_,props:B,defaultTheme:n,themeId:t});if(lc(_)){let B=_,U;return _&&_.variants&&(U=_.variants,delete B.variants,B=V=>{let z=_;return oT(V,iT(U),U).forEach(X=>{z=Mo(z,X)}),z}),B}return _}):[];let E=k;if(lc(k)){let _;k&&k.variants&&(_=k.variants,delete E.variants,E=B=>{let U=k;return oT(B,iT(_),_).forEach(z=>{U=Mo(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=_=>YB({styledArg:k,props:_,defaultTheme:n,themeId:t}));l&&p&&w.push(_=>{const B=HE(L({},_,{defaultTheme:n,themeId:t})),U=bde(l,B);if(U){const V={};return Object.entries(U).forEach(([z,W])=>{V[z]=typeof W=="function"?W(L({},_,{theme:B})):W}),p(_,V)}return null}),l&&!m&&w.push(_=>{const B=HE(L({},_,{defaultTheme:n,themeId:t}));return Ode(_,yde(l,B),B,l)}),b||w.push(o);const $=w.length-C.length;if(Array.isArray(k)&&$>0){const _=new Array($).fill("");E=[...k,..._],E.raw=[...k.raw,..._]}const P=v(E,...w);return a.muiName&&(P.muiName=a.muiName),P};return v.withConfig&&(S.withConfig=v.withConfig),S}}const oY=iY();function aY(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:pk(t.components[n].defaultProps,r)}function NN({props:e,name:t,defaultTheme:n,themeId:r}){let i=Ag(n);return r&&(i=i[r]||i),aY({theme:i,name:t,props:e})}function PN(e,t=0,n=1){return wh(e,t,n)}function Tde(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 vp(e){if(e.type)return e;if(e.charAt(0)==="#")return vp(Tde(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Vd(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(Vd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Tk(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<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 wde(e){e=vp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Tk({type:s,values:l})}function U_(e){e=vp(e);let t=e.type==="hsl"||e.type==="hsla"?vp(wde(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 kde(e,t){const n=U_(e),r=U_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(e,t){return e=vp(e),t=PN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tk(e)}function wk(e,t){if(e=vp(e),t=PN(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 Tk(e)}function kk(e,t){if(e=vp(e),t=PN(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 Tk(e)}function xde(e,t=.15){return U_(e)>.5?wk(e,t):kk(e,t)}const Cde=I.createContext(null),sY=Cde;function lY(){return I.useContext(sY)}const Ade=typeof Symbol=="function"&&Symbol.for,_de=Ade?Symbol.for("mui.nested"):"__THEME_NESTED__";function Rde(e,t){return typeof t=="function"?t(e):L({},e,t)}function Ide(e){const{children:t,theme:n}=e,r=lY(),i=I.useMemo(()=>{const o=r===null?n:Rde(r,n);return o!=null&&(o[_de]=r!==null),o},[n,r]);return D.jsx(sY.Provider,{value:i,children:t})}const GB={};function qB(e,t,n,r=!1){return I.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?L({},t,{[e]:o}):o;return r?()=>a:a}return e?L({},t,{[e]:n}):L({},t,n)},[e,t,n,r])}function Dde(e){const{children:t,theme:n,themeId:r}=e,i=Ek(GB),o=lY()||GB,a=qB(r,i,n),s=qB(r,o,n,!0);return D.jsx(Ide,{theme:s,children:D.jsx(ek.Provider,{value:a,children:t})})}const Nde=["className","component","disableGutters","fixed","maxWidth","classes"],Pde=Q1(),Lde=oY("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Mde=e=>NN({props:e,name:"MuiContainer",defaultTheme:Pde}),$de=(e,t)=>{const n=l=>At(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${nt(String(a))}`,i&&"fixed",o&&"disableGutters"]};return wt(s,n,r)};function Fde(e={}){const{createStyledComponent:t=Lde,useThemeProps:n=Mde,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>L({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(l[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>L({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return I.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:m="lg"}=u,b=Ye(u,Nde),O=L({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),y=$de(O,r);return D.jsx(i,L({as:d,ownerState:O,className:Ke(y.root,c),ref:l},b))})}const Bde=["component","direction","spacing","divider","children","className","useFlexGap"],Ude=Q1(),jde=oY("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function zde(e){return NN({props:e,name:"MuiStack",defaultTheme:Ude})}function Vde(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Wde=({ownerState:e,theme:t})=>{let n=L({display:"flex",flexDirection:"column"},Da({theme:t},up({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=IN(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=up({values:e.direction,base:i}),a=up({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const p=u>0?o[c[u-1]]:"column";o[l]=p}}),n=Mo(n,Da({theme:t},a,(l,u)=>e.useFlexGap?{gap:Op(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Hde(u?o[u]:e.direction)}`]:Op(r,l)}}))}return n=gce(t.breakpoints,n),n};function Qde(e={}){const{createStyledComponent:t=jde,useThemeProps:n=zde,componentName:r="MuiStack"}=e,i=()=>wt({root:["root"]},l=>At(r,l),{}),o=t(Wde);return I.forwardRef(function(l,u){const c=n(l),d=Sk(c),{component:p="div",direction:h="column",spacing:m=0,divider:b,children:O,className:y,useFlexGap:v=!1}=d,S=Ye(d,Bde),k={direction:h,spacing:m,useFlexGap:v},C=i();return D.jsx(o,L({as:p,ownerState:k,ref:u,className:Ke(C.root,y)},S,{children:b?Vde(O,b):O}))})}function Yde(e,t){return L({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Gde=["mode","contrastThreshold","tonalOffset"],ZB={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:Ty.white,default:Ty.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}},HC={text:{primary:Ty.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:Ty.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 XB(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kk(e.main,i):t==="dark"&&(e.dark=wk(e.main,o)))}function qde(e="light"){return e==="dark"?{main:fh[200],light:fh[50],dark:fh[400]}:{main:fh[700],light:fh[400],dark:fh[800]}}function Zde(e="light"){return e==="dark"?{main:dh[200],light:dh[50],dark:dh[400]}:{main:dh[500],light:dh[300],dark:dh[700]}}function Xde(e="light"){return e==="dark"?{main:ch[500],light:ch[300],dark:ch[700]}:{main:ch[700],light:ch[400],dark:ch[800]}}function Kde(e="light"){return e==="dark"?{main:ph[400],light:ph[300],dark:ph[700]}:{main:ph[700],light:ph[500],dark:ph[900]}}function Jde(e="light"){return e==="dark"?{main:hh[400],light:hh[300],dark:hh[700]}:{main:hh[800],light:hh[500],dark:hh[900]}}function efe(e="light"){return e==="dark"?{main:y0[400],light:y0[300],dark:y0[700]}:{main:"#ed6c02",light:y0[500],dark:y0[900]}}function tfe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ye(e,Gde),o=e.primary||qde(t),a=e.secondary||Zde(t),s=e.error||Xde(t),l=e.info||Kde(t),u=e.success||Jde(t),c=e.warning||efe(t);function d(b){return kde(b,HC.text.primary)>=n?HC.text.primary:ZB.text.primary}const p=({color:b,name:O,mainShade:y=500,lightShade:v=300,darkShade:S=700})=>{if(b=L({},b),!b.main&&b[y]&&(b.main=b[y]),!b.hasOwnProperty("main"))throw new Error(Vd(11,O?` (${O})`:"",y));if(typeof b.main!="string")throw new Error(Vd(12,O?` (${O})`:"",JSON.stringify(b.main)));return XB(b,"light",v,r),XB(b,"dark",S,r),b.contrastText||(b.contrastText=d(b.main)),b},h={dark:HC,light:ZB};return Mo(L({common:L({},Ty),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:$le,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const nfe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rfe(e){return Math.round(e*1e5)/1e5}const KB={textTransform:"uppercase"},JB='"Roboto", "Helvetica", "Arial", sans-serif';function ife(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=JB,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ye(n,nfe),h=i/14,m=d||(y=>`${y/u*h}rem`),b=(y,v,S,k,C)=>L({fontFamily:r,fontWeight:y,fontSize:m(v),lineHeight:S},r===JB?{letterSpacing:`${rfe(k/v)}em`}:{},C,c),O={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,KB),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,KB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mo(L({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},O),p,{clone:!1})}const ofe=.2,afe=.14,sfe=.12;function zr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ofe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${afe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sfe})`].join(",")}const lfe=["none",zr(0,2,1,-1,0,1,1,0,0,1,3,0),zr(0,3,1,-2,0,2,2,0,0,1,5,0),zr(0,3,3,-2,0,3,4,0,0,1,8,0),zr(0,2,4,-1,0,4,5,0,0,1,10,0),zr(0,3,5,-1,0,5,8,0,0,1,14,0),zr(0,3,5,-1,0,6,10,0,0,1,18,0),zr(0,4,5,-2,0,7,10,1,0,2,16,1),zr(0,5,5,-3,0,8,10,1,0,3,14,2),zr(0,5,6,-3,0,9,12,1,0,3,16,2),zr(0,6,6,-3,0,10,14,1,0,4,18,3),zr(0,6,7,-4,0,11,15,1,0,4,20,3),zr(0,7,8,-4,0,12,17,2,0,5,22,4),zr(0,7,8,-4,0,13,19,2,0,5,24,4),zr(0,7,9,-4,0,14,21,2,0,5,26,4),zr(0,8,9,-5,0,15,22,2,0,6,28,5),zr(0,8,10,-5,0,16,24,2,0,6,30,5),zr(0,8,11,-5,0,17,26,2,0,6,32,5),zr(0,9,11,-5,0,18,28,2,0,7,34,6),zr(0,9,12,-6,0,19,29,2,0,7,36,6),zr(0,10,13,-6,0,20,31,3,0,8,38,7),zr(0,10,13,-6,0,21,33,3,0,8,40,7),zr(0,10,14,-6,0,22,35,3,0,8,42,7),zr(0,11,14,-7,0,23,36,3,0,9,44,8),zr(0,11,15,-7,0,24,38,3,0,9,46,8)],ufe=["duration","easing","delay"],cfe={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)"},uY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function e8(e){return`${Math.round(e)}ms`}function dfe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ffe(e){const t=L({},cfe,e.easing),n=L({},uY,e.duration);return L({getAutoHeightDuration:dfe,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ye(o,ufe),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:e8(a)} ${s} ${typeof l=="string"?l:e8(l)}`).join(",")}},e,{easing:t,duration:n})}const pfe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hfe=pfe,mfe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function LN(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ye(e,mfe);if(e.vars)throw new Error(Vd(18));const s=tfe(r),l=Q1(e);let u=Mo(l,{mixins:Yde(l.breakpoints,n),palette:s,shadows:lfe.slice(),typography:ife(s,o),transitions:ffe(i),zIndex:L({},hfe)});return u=Mo(u,a),u=t.reduce((c,d)=>Mo(c,d),u),u.unstable_sxConfig=L({},vk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return W1({sx:d,theme:this})},u}const gfe=LN(),xk=gfe;function ci(){const e=Ag(xk);return e[yp]||e}function mt({props:e,name:t}){return NN({props:e,name:t,defaultTheme:xk,themeId:yp})}const no=e=>Cb(e)&&e!=="classes",MN=Cb,Ee=iY({themeId:yp,defaultTheme:xk,rootShouldForwardProp:no}),bfe=["theme"];function yfe(e){let{theme:t}=e,n=Ye(e,bfe);const r=t[yp];return D.jsx(Dde,L({},n,{themeId:r?yp:void 0,theme:r||t}))}const t8=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ofe(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vfe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Efe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${nt(t)}`,`fontSize${nt(n)}`]};return wt(i,Ofe,r)},Sfe=Ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${nt(n.color)}`],t[`fontSize${nt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,p,h,m;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:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),Hd=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=Ye(r,vfe),m=I.isValidElement(i)&&i.type==="svg",b=L({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),O={};c||(O.viewBox=p);const y=Efe(b);return D.jsxs(Sfe,L({as:s,className:Ke(y.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},O,h,m&&i.props,{ownerState:b,children:[m?i.props.children:i,d?D.jsx("title",{children:d}):null]}))});Hd.muiName="SvgIcon";function ki(e,t){function n(r,i){return D.jsx(Hd,L({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Hd.muiName,I.memo(I.forwardRef(n))}const Tfe={configure:e=>{CN.configure(e)}},wfe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:nT,createSvgIcon:ki,debounce:Cg,deprecatedPropType:que,isMuiElement:kb,ownerDocument:Or,ownerWindow:Js,requirePropFactory:Zue,setRef:Cy,unstable_ClassNameGenerator:Tfe,unstable_useEnhancedEffect:Jr,unstable_useId:Fl,unsupportedProp:Kue,useControlled:Ji,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:fk},Symbol.toStringTag,{value:"Module"}));function j_(e,t){return j_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},j_(e,t)}function $N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,j_(e,t)}function kfe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function xfe(e,t){e.classList?e.classList.add(t):kfe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function n8(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Cfe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=n8(e.className,t):e.setAttribute("class",n8(e.className&&e.className.baseVal||"",t))}const r8={disabled:!1},aT=Qt.createContext(null);var cY=function(t){return t.scrollTop},rb="unmounted",Df="exited",Nf="entering",kh="entered",z_="exiting",Ic=function(e){$N(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Df,o.appearStatus=Nf):l=kh:r.unmountOnExit||r.mountOnEnter?l=rb:l=Df,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===rb?{status:Df}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Nf&&a!==kh&&(o=Nf):(a===Nf||a===kh)&&(o=z_)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Nf){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:nb.findDOMNode(this);a&&cY(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Df&&this.setState({status:rb})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[nb.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||r8.disabled){this.safeSetState({status:kh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Nf},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:kh},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:nb.findDOMNode(this);if(!o||r8.disabled){this.safeSetState({status:Df},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:z_},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Df},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:nb.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===rb)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ye(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qt.createElement(aT.Provider,{value:null},typeof a=="function"?a(i,s):Qt.cloneElement(Qt.Children.only(a),s))},t}(Qt.Component);Ic.contextType=aT;Ic.propTypes={};function gh(){}Ic.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gh,onEntering:gh,onEntered:gh,onExit:gh,onExiting:gh,onExited:gh};Ic.UNMOUNTED=rb;Ic.EXITED=Df;Ic.ENTERING=Nf;Ic.ENTERED=kh;Ic.EXITING=z_;const Y1=Ic;var Afe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return xfe(t,r)})},WC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Cfe(t,r)})},FN=function(e){$N(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function Wd(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function Mfe(e){return At("MuiCollapse",e)}_t("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const $fe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Ffe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return wt(r,Mfe,n)},Bfe=Ee("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})=>L({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&L({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Ufe=Ee("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>L({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),jfe=Ee("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>L({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),dY=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:m,onExited:b,onExiting:O,orientation:y="vertical",style:v,timeout:S=uY.standard,TransitionComponent:k=Y1}=r,C=Ye(r,$fe),w=L({},r,{orientation:y,collapsedSize:s}),E=Ffe(w),$=ci(),P=I.useRef(),_=I.useRef(null),B=I.useRef(),U=typeof s=="number"?`${s}px`:s,V=y==="horizontal",z=V?"width":"height";I.useEffect(()=>()=>{clearTimeout(P.current)},[]);const W=I.useRef(null),X=yn(n,W),q=ue=>xe=>{if(ue){const Ne=W.current;xe===void 0?ue(Ne):ue(Ne,xe)}},Y=()=>_.current?_.current[V?"clientWidth":"clientHeight"]:0,Z=q((ue,xe)=>{_.current&&V&&(_.current.style.position="absolute"),ue.style[z]=U,d&&d(ue,xe)}),j=q((ue,xe)=>{const Ne=Y();_.current&&V&&(_.current.style.position="");const{duration:Ve,easing:Je}=Wd({style:v,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const Me=$.transitions.getAutoHeightDuration(Ne);ue.style.transitionDuration=`${Me}ms`,B.current=Me}else ue.style.transitionDuration=typeof Ve=="string"?Ve:`${Ve}ms`;ue.style[z]=`${Ne}px`,ue.style.transitionTimingFunction=Je,h&&h(ue,xe)}),se=q((ue,xe)=>{ue.style[z]="auto",p&&p(ue,xe)}),ve=q(ue=>{ue.style[z]=`${Y()}px`,m&&m(ue)}),G=q(b),ce=q(ue=>{const xe=Y(),{duration:Ne,easing:Ve}=Wd({style:v,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const Je=$.transitions.getAutoHeightDuration(xe);ue.style.transitionDuration=`${Je}ms`,B.current=Je}else ue.style.transitionDuration=typeof Ne=="string"?Ne:`${Ne}ms`;ue.style[z]=U,ue.style.transitionTimingFunction=Ve,O&&O(ue)}),ge=ue=>{S==="auto"&&(P.current=setTimeout(ue,B.current||0)),i&&i(W.current,ue)};return D.jsx(k,L({in:c,onEnter:Z,onEntered:se,onEntering:j,onExit:ve,onExited:G,onExiting:ce,addEndListener:ge,nodeRef:W,timeout:S==="auto"?null:S},C,{children:(ue,xe)=>D.jsx(Bfe,L({as:l,className:Ke(E.root,a,{entered:E.entered,exited:!c&&U==="0px"&&E.hidden}[ue]),style:L({[V?"minWidth":"minHeight"]:U},v),ownerState:L({},w,{state:ue}),ref:X},xe,{children:D.jsx(Ufe,{ownerState:L({},w,{state:ue}),className:E.wrapper,ref:_,children:D.jsx(jfe,{ownerState:L({},w,{state:ue}),className:E.wrapperInner,children:o})})}))}))});dY.muiSupportAuto=!0;const zfe=dY;function Vfe(e){return At("MuiPaper",e)}_t("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 Hfe=["className","component","elevation","square","variant"],Wfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return wt(o,Vfe,i)},Qfe=Ee("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 L({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"&&L({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${cn("#fff",t8(t.elevation))}, ${cn("#fff",t8(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Yfe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Ye(r,Hfe),c=L({},r,{component:o,elevation:a,square:s,variant:l}),d=Wfe(c);return D.jsx(Qfe,L({as:o,ownerState:c,className:Ke(d.root,i),ref:n},u))}),zo=Yfe;function Cu(e){return typeof e=="string"}function ib(e,t,n){return e===void 0||Cu(e)?t:L({},t,{ownerState:L({},t.ownerState,n)})}function Gfe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const qfe={disableDefaultClasses:!1},Zfe=I.createContext(qfe);function Xfe(e){const{disableDefaultClasses:t}=I.useContext(Zfe);return n=>t?"":e(n)}function Ab(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 af(e,t,n){return typeof e=="function"?e(t,n):e}function i8(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 Kfe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=Ke(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=L({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),b=L({},n,i,r);return h.length>0&&(b.className=h),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:void 0}}const a=Ab(L({},i,r)),s=i8(r),l=i8(i),u=t(a),c=Ke(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=L({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=L({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Jfe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ye(e,Jfe),s=o?{}:af(r,i),{props:l,internalRef:u}=Kfe(L({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return ib(n,L({},l,{ref:c}),i)}function epe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=I.useState(!1),p=Ke(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=Ke(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&d(!0),I.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),D.jsx("span",{className:p,style:h,children:D.jsx("span",{className:m})})}const Ns=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tpe=["center","classes","className"];let Ck=e=>e,o8,a8,s8,l8;const V_=550,npe=80,rpe=V1(o8||(o8=Ck` + */var kD=Symbol.for("react.element"),xD=Symbol.for("react.portal"),tk=Symbol.for("react.fragment"),nk=Symbol.for("react.strict_mode"),rk=Symbol.for("react.profiler"),ik=Symbol.for("react.provider"),ok=Symbol.for("react.context"),Que=Symbol.for("react.server_context"),ak=Symbol.for("react.forward_ref"),sk=Symbol.for("react.suspense"),lk=Symbol.for("react.suspense_list"),uk=Symbol.for("react.memo"),ck=Symbol.for("react.lazy"),Yue=Symbol.for("react.offscreen"),qQ;qQ=Symbol.for("react.module.reference");function nl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kD:switch(e=e.type,e){case tk:case rk:case nk:case sk:case lk:return e;default:switch(e=e&&e.$$typeof,e){case Que:case ok:case ak:case ck:case uk:case ik:return e;default:return t}}case xD:return t}}}mr.ContextConsumer=ok;mr.ContextProvider=ik;mr.Element=kD;mr.ForwardRef=ak;mr.Fragment=tk;mr.Lazy=ck;mr.Memo=uk;mr.Portal=xD;mr.Profiler=rk;mr.StrictMode=nk;mr.Suspense=sk;mr.SuspenseList=lk;mr.isAsyncMode=function(){return!1};mr.isConcurrentMode=function(){return!1};mr.isContextConsumer=function(e){return nl(e)===ok};mr.isContextProvider=function(e){return nl(e)===ik};mr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kD};mr.isForwardRef=function(e){return nl(e)===ak};mr.isFragment=function(e){return nl(e)===tk};mr.isLazy=function(e){return nl(e)===ck};mr.isMemo=function(e){return nl(e)===uk};mr.isPortal=function(e){return nl(e)===xD};mr.isProfiler=function(e){return nl(e)===rk};mr.isStrictMode=function(e){return nl(e)===nk};mr.isSuspense=function(e){return nl(e)===sk};mr.isSuspenseList=function(e){return nl(e)===lk};mr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tk||e===rk||e===nk||e===sk||e===lk||e===Yue||typeof e=="object"&&e!==null&&(e.$$typeof===ck||e.$$typeof===uk||e.$$typeof===ik||e.$$typeof===ok||e.$$typeof===ak||e.$$typeof===qQ||e.getModuleId!==void 0)};mr.typeOf=nl;const Gue=Q.oneOfType([Q.func,Q.object]),xg=Gue;function nt(e){if(typeof e!="string")throw new Error(Vd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nT(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Cg(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function que(e,t){return()=>null}function kb(e,t){var n,r;return I.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 Or(e){return e&&e.ownerDocument||document}function Js(e){return Or(e).defaultView||window}function Zue(e,t){return()=>null}function Cy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Jr=typeof window<"u"?I.useLayoutEffect:I.useEffect;let UB=0;function Xue(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(UB+=1,n(`mui-${UB}`))},[t]),r}const jB=Qm.useId;function Fl(e){if(jB!==void 0){const t=jB();return e??t}return Xue(e)}function Kue(e,t,n,r,i){return null}function Ji({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=I.useRef(e!==void 0),[o,a]=I.useState(t),s=i?e:o,l=I.useCallback(u=>{i||a(u)},[]);return[s,l]}function jt(e){const t=I.useRef(e);return Jr(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function yn(...e){return I.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cy(n,t)})},e)}let dk=!0,B_=!1,zB;const Jue={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 ece(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Jue[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tce(e){e.metaKey||e.altKey||e.ctrlKey||(dk=!0)}function VC(){dk=!1}function nce(){this.visibilityState==="hidden"&&B_&&(dk=!0)}function rce(e){e.addEventListener("keydown",tce,!0),e.addEventListener("mousedown",VC,!0),e.addEventListener("pointerdown",VC,!0),e.addEventListener("touchstart",VC,!0),e.addEventListener("visibilitychange",nce,!0)}function ice(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return dk||ece(t)}function fk(){const e=I.useCallback(i=>{i!=null&&rce(i.ownerDocument)},[]),t=I.useRef(!1);function n(){return t.current?(B_=!0,window.clearTimeout(zB),zB=window.setTimeout(()=>{B_=!1},100),t.current=!1,!0):!1}function r(i){return ice(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ZQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let mh;function XQ(){if(mh)return mh;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),mh="reverse",e.scrollLeft>0?mh="default":(e.scrollLeft=1,e.scrollLeft===0&&(mh="negative")),document.body.removeChild(e),mh}function oce(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(XQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const ace=e=>{const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current};function sce(e){return I.Children.toArray(e).filter(t=>I.isValidElement(t))}const lce={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},uce=lce;function pk(e,t){const n=L({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=L({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=L({},o),Object.keys(i).forEach(a=>{n[r][a]=pk(i[a],o[a])}))}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((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const VB=e=>e,cce=()=>{let e=VB;return{configure(t){e=t},generate(t){return e(t)},reset(){e=VB}}},CD=cce(),KQ={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 At(e,t,n="Mui"){const r=KQ[t];return r?`${n}-${r}`:`${CD.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}function wh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const dce=["values","unit","step"],fce=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)=>L({},n,{[r.key]:r.val}),{})};function pce(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ye(e,dce),o=fce(t),a=Object.keys(o);function s(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 u(p,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${AD[e]}px)`};function Na(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||HB;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||HB;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||AD).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function JQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function eY(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function gce(e,...t){const n=JQ(e),r=[n,...t].reduce((i,o)=>Mo(i,o),{});return eY(Object.keys(n),r)}function bce(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function up({values:e,breakpoints:t,base:n}){const r=n||bce(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function hk(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function rT(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=hk(e,n)||r,t&&(i=t(i,r,e)),i}function Oi(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=hk(l,r)||{};return Na(a,s,d=>{let p=rT(u,i,d);return d===p&&typeof d=="string"&&(p=rT(u,i,`${t}${d==="default"?"":nt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function yce(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Oce={m:"margin",p:"padding"},vce={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},WB={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ece=yce(e=>{if(e.length>2)if(WB[e])e=WB[e];else return[e];const[t,n]=e.split(""),r=Oce[t],i=vce[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),_D=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],RD=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[..._D,...RD];function H1(e,t,n,r){var i;const o=(i=hk(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function ID(e){return H1(e,"spacing",8)}function Op(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 Sce(e,t){return n=>e.reduce((r,i)=>(r[i]=Op(t,n),r),{})}function Tce(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Ece(n),o=Sce(i,r),a=e[n];return Na(e,a,o)}function tY(e,t){const n=ID(e.theme);return Object.keys(e).map(r=>Tce(e,t,r,n)).reduce(xb,{})}function ii(e){return tY(e,_D)}ii.propTypes={};ii.filterProps=_D;function oi(e){return tY(e,RD)}oi.propTypes={};oi.filterProps=RD;function wce(e=8){if(e.mui)return e;const t=ID({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function mk(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?xb(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ms(e){return typeof e!="number"?e:`${e}px solid`}function rl(e,t){return Oi({prop:e,themeKey:"borders",transform:t})}const kce=rl("border",Ms),xce=rl("borderTop",Ms),Cce=rl("borderRight",Ms),Ace=rl("borderBottom",Ms),_ce=rl("borderLeft",Ms),Rce=rl("borderColor"),Ice=rl("borderTopColor"),Nce=rl("borderRightColor"),Dce=rl("borderBottomColor"),Pce=rl("borderLeftColor"),Lce=rl("outline",Ms),Mce=rl("outlineColor"),gk=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=H1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Op(t,r)});return Na(e,e.borderRadius,n)}return null};gk.propTypes={};gk.filterProps=["borderRadius"];mk(kce,xce,Cce,Ace,_ce,Rce,Ice,Nce,Dce,Pce,gk,Lce,Mce);const bk=e=>{if(e.gap!==void 0&&e.gap!==null){const t=H1(e.theme,"spacing",8),n=r=>({gap:Op(t,r)});return Na(e,e.gap,n)}return null};bk.propTypes={};bk.filterProps=["gap"];const yk=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=H1(e.theme,"spacing",8),n=r=>({columnGap:Op(t,r)});return Na(e,e.columnGap,n)}return null};yk.propTypes={};yk.filterProps=["columnGap"];const Ok=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=H1(e.theme,"spacing",8),n=r=>({rowGap:Op(t,r)});return Na(e,e.rowGap,n)}return null};Ok.propTypes={};Ok.filterProps=["rowGap"];const $ce=Oi({prop:"gridColumn"}),Fce=Oi({prop:"gridRow"}),Bce=Oi({prop:"gridAutoFlow"}),Uce=Oi({prop:"gridAutoColumns"}),jce=Oi({prop:"gridAutoRows"}),zce=Oi({prop:"gridTemplateColumns"}),Vce=Oi({prop:"gridTemplateRows"}),Hce=Oi({prop:"gridTemplateAreas"}),Wce=Oi({prop:"gridArea"});mk(bk,yk,Ok,$ce,Fce,Bce,Uce,jce,zce,Vce,Hce,Wce);function pm(e,t){return t==="grey"?t:e}const Qce=Oi({prop:"color",themeKey:"palette",transform:pm}),Yce=Oi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pm}),Gce=Oi({prop:"backgroundColor",themeKey:"palette",transform:pm});mk(Qce,Yce,Gce);function rs(e){return e<=1&&e!==0?`${e*100}%`:e}const qce=Oi({prop:"width",transform:rs}),ND=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||AD[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:rs(n)}};return Na(e,e.maxWidth,t)}return null};ND.filterProps=["maxWidth"];const Zce=Oi({prop:"minWidth",transform:rs}),Xce=Oi({prop:"height",transform:rs}),Kce=Oi({prop:"maxHeight",transform:rs}),Jce=Oi({prop:"minHeight",transform:rs});Oi({prop:"size",cssProperty:"width",transform:rs});Oi({prop:"size",cssProperty:"height",transform:rs});const ede=Oi({prop:"boxSizing"});mk(qce,ND,Zce,Xce,Kce,Jce,ede);const tde={border:{themeKey:"borders",transform:Ms},borderTop:{themeKey:"borders",transform:Ms},borderRight:{themeKey:"borders",transform:Ms},borderBottom:{themeKey:"borders",transform:Ms},borderLeft:{themeKey:"borders",transform:Ms},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ms},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gk},color:{themeKey:"palette",transform:pm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pm},backgroundColor:{themeKey:"palette",transform:pm},p:{style:oi},pt:{style:oi},pr:{style:oi},pb:{style:oi},pl:{style:oi},px:{style:oi},py:{style:oi},padding:{style:oi},paddingTop:{style:oi},paddingRight:{style:oi},paddingBottom:{style:oi},paddingLeft:{style:oi},paddingX:{style:oi},paddingY:{style:oi},paddingInline:{style:oi},paddingInlineStart:{style:oi},paddingInlineEnd:{style:oi},paddingBlock:{style:oi},paddingBlockStart:{style:oi},paddingBlockEnd:{style:oi},m:{style:ii},mt:{style:ii},mr:{style:ii},mb:{style:ii},ml:{style:ii},mx:{style:ii},my:{style:ii},margin:{style:ii},marginTop:{style:ii},marginRight:{style:ii},marginBottom:{style:ii},marginLeft:{style:ii},marginX:{style:ii},marginY:{style:ii},marginInline:{style:ii},marginInlineStart:{style:ii},marginInlineEnd:{style:ii},marginBlock:{style:ii},marginBlockStart:{style:ii},marginBlockEnd:{style:ii},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:bk},rowGap:{style:Ok},columnGap:{style:yk},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rs},maxWidth:{style:ND},minWidth:{transform:rs},height:{transform:rs},maxHeight:{transform:rs},minHeight:{transform:rs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},vk=tde;function nde(...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 rde(e,t){return typeof e=="function"?e(t):e}function ide(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=hk(i,u)||{};return d?d(a):Na(a,r,m=>{let b=rT(p,c,m);return m===b&&typeof m=="string"&&(b=rT(p,c,`${n}${m==="default"?"":nt(m)}`,m)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:vk;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=JQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=rde(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=xb(p,e(h,m,o,a));else{const b=Na({theme:o},m,O=>({[h]:O}));nde(b,m)?p[h]=t({sx:m,theme:o}):p=xb(p,b)}else p=xb(p,e(h,m,o,a))}),eY(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const W1=ide();W1.filterProps=["sx"];const ode=["breakpoints","palette","spacing","shape"];function Q1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ye(e,ode),s=pce(n),l=wce(i);let u=Mo({breakpoints:s,direction:"ltr",components:{},palette:L({mode:"light"},r),spacing:l,shape:L({},mce,o)},a);return u=t.reduce((c,d)=>Mo(c,d),u),u.unstable_sxConfig=L({},vk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return W1({sx:d,theme:this})},u}function ade(e){return Object.keys(e).length===0}function Ek(e=null){const t=I.useContext(ek);return!t||ade(t)?e:t}const sde=Q1();function Ag(e=sde){return Ek(e)}function lde({styles:e,themeId:t,defaultTheme:n={}}){const r=Ag(n),i=typeof e=="function"?e(t&&r[t]||r):e;return N.jsx(Hue,{styles:i})}const ude=["sx"],cde=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:vk;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Sk(e){const{sx:t}=e,n=Ye(e,ude),{systemProps:r,otherProps:i}=cde(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return lc(s)?L({},r,s):r}:o=L({},r,t),L({},i,{sx:o})}function nY(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;ts!=="theme"&&s!=="sx"&&s!=="as"})(W1);return I.forwardRef(function(l,u){const c=Ag(n),d=Sk(l),{className:p,component:h="div"}=d,m=Ye(d,dde);return N.jsx(o,L({as:h,ref:u,className:Ke(p,i?i(r):r),theme:t&&c[t]||c},m))})}const pde=["variant"];function QB(e){return e.length===0}function rY(e){const{variant:t}=e,n=Ye(e,pde);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=QB(r)?e[i]:nt(e[i]):r+=`${QB(r)?i:nt(i)}${nt(e[i].toString())}`}),r}const hde=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mde(e){return Object.keys(e).length===0}function gde(e){return typeof e=="string"&&e.charCodeAt(0)>96}const bde=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,iT=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=rY(r.props),n[i]=r.style}),n},yde=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),iT(n)},oT=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let o=0;return n&&n.forEach(a=>{let s=!0;if(typeof a.props=="function"){const l=L({},e,r);s=a.props(l)}else Object.keys(a.props).forEach(l=>{r[l]!==a.props[l]&&e[l]!==a.props[l]&&(s=!1)});s&&(typeof a.props=="function"?i.push(t[`callback${o}`]):i.push(t[rY(a.props)])),typeof a.props=="function"&&(o+=1)}),i},Ode=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return oT(e,t,o)};function Cb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vde=Q1(),Ede=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function HE({defaultTheme:e,theme:t,themeId:n}){return mde(t)?e:t[n]||t}function Sde(e){return e?(t,n)=>n[e]:null}const YB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(L({},t,{theme:HE(L({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=oT(t,iT(o),o);return[i,...a]}return i};function iY(e={}){const{themeId:t,defaultTheme:n=vde,rootShouldForwardProp:r=Cb,slotShouldForwardProp:i=Cb}=e,o=a=>W1(L({},a,{theme:HE(L({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Wue(a,k=>k.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=Sde(Ede(u))}=s,h=Ye(s,hde),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=d||!1;let O,y=Cb;u==="Root"||u==="root"?y=r:u?y=i:gde(a)&&(y=void 0);const v=YQ(a,L({shouldForwardProp:y,label:O},h)),S=(k,...C)=>{const w=C?C.map(_=>{if(typeof _=="function"&&_.__emotion_real!==_)return B=>YB({styledArg:_,props:B,defaultTheme:n,themeId:t});if(lc(_)){let B=_,U;return _&&_.variants&&(U=_.variants,delete B.variants,B=V=>{let z=_;return oT(V,iT(U),U).forEach(X=>{z=Mo(z,X)}),z}),B}return _}):[];let E=k;if(lc(k)){let _;k&&k.variants&&(_=k.variants,delete E.variants,E=B=>{let U=k;return oT(B,iT(_),_).forEach(z=>{U=Mo(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=_=>YB({styledArg:k,props:_,defaultTheme:n,themeId:t}));l&&p&&w.push(_=>{const B=HE(L({},_,{defaultTheme:n,themeId:t})),U=bde(l,B);if(U){const V={};return Object.entries(U).forEach(([z,W])=>{V[z]=typeof W=="function"?W(L({},_,{theme:B})):W}),p(_,V)}return null}),l&&!m&&w.push(_=>{const B=HE(L({},_,{defaultTheme:n,themeId:t}));return Ode(_,yde(l,B),B,l)}),b||w.push(o);const $=w.length-C.length;if(Array.isArray(k)&&$>0){const _=new Array($).fill("");E=[...k,..._],E.raw=[...k.raw,..._]}const P=v(E,...w);return a.muiName&&(P.muiName=a.muiName),P};return v.withConfig&&(S.withConfig=v.withConfig),S}}const oY=iY();function aY(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:pk(t.components[n].defaultProps,r)}function DD({props:e,name:t,defaultTheme:n,themeId:r}){let i=Ag(n);return r&&(i=i[r]||i),aY({theme:i,name:t,props:e})}function PD(e,t=0,n=1){return wh(e,t,n)}function Tde(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 vp(e){if(e.type)return e;if(e.charAt(0)==="#")return vp(Tde(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Vd(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(Vd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Tk(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<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 wde(e){e=vp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Tk({type:s,values:l})}function U_(e){e=vp(e);let t=e.type==="hsl"||e.type==="hsla"?vp(wde(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 kde(e,t){const n=U_(e),r=U_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(e,t){return e=vp(e),t=PD(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tk(e)}function wk(e,t){if(e=vp(e),t=PD(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 Tk(e)}function kk(e,t){if(e=vp(e),t=PD(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 Tk(e)}function xde(e,t=.15){return U_(e)>.5?wk(e,t):kk(e,t)}const Cde=I.createContext(null),sY=Cde;function lY(){return I.useContext(sY)}const Ade=typeof Symbol=="function"&&Symbol.for,_de=Ade?Symbol.for("mui.nested"):"__THEME_NESTED__";function Rde(e,t){return typeof t=="function"?t(e):L({},e,t)}function Ide(e){const{children:t,theme:n}=e,r=lY(),i=I.useMemo(()=>{const o=r===null?n:Rde(r,n);return o!=null&&(o[_de]=r!==null),o},[n,r]);return N.jsx(sY.Provider,{value:i,children:t})}const GB={};function qB(e,t,n,r=!1){return I.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?L({},t,{[e]:o}):o;return r?()=>a:a}return e?L({},t,{[e]:n}):L({},t,n)},[e,t,n,r])}function Nde(e){const{children:t,theme:n,themeId:r}=e,i=Ek(GB),o=lY()||GB,a=qB(r,i,n),s=qB(r,o,n,!0);return N.jsx(Ide,{theme:s,children:N.jsx(ek.Provider,{value:a,children:t})})}const Dde=["className","component","disableGutters","fixed","maxWidth","classes"],Pde=Q1(),Lde=oY("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Mde=e=>DD({props:e,name:"MuiContainer",defaultTheme:Pde}),$de=(e,t)=>{const n=l=>At(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${nt(String(a))}`,i&&"fixed",o&&"disableGutters"]};return wt(s,n,r)};function Fde(e={}){const{createStyledComponent:t=Lde,useThemeProps:n=Mde,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>L({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(l[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>L({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return I.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:m="lg"}=u,b=Ye(u,Dde),O=L({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),y=$de(O,r);return N.jsx(i,L({as:d,ownerState:O,className:Ke(y.root,c),ref:l},b))})}const Bde=["component","direction","spacing","divider","children","className","useFlexGap"],Ude=Q1(),jde=oY("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function zde(e){return DD({props:e,name:"MuiStack",defaultTheme:Ude})}function Vde(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Wde=({ownerState:e,theme:t})=>{let n=L({display:"flex",flexDirection:"column"},Na({theme:t},up({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ID(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=up({values:e.direction,base:i}),a=up({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const p=u>0?o[c[u-1]]:"column";o[l]=p}}),n=Mo(n,Na({theme:t},a,(l,u)=>e.useFlexGap?{gap:Op(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Hde(u?o[u]:e.direction)}`]:Op(r,l)}}))}return n=gce(t.breakpoints,n),n};function Qde(e={}){const{createStyledComponent:t=jde,useThemeProps:n=zde,componentName:r="MuiStack"}=e,i=()=>wt({root:["root"]},l=>At(r,l),{}),o=t(Wde);return I.forwardRef(function(l,u){const c=n(l),d=Sk(c),{component:p="div",direction:h="column",spacing:m=0,divider:b,children:O,className:y,useFlexGap:v=!1}=d,S=Ye(d,Bde),k={direction:h,spacing:m,useFlexGap:v},C=i();return N.jsx(o,L({as:p,ownerState:k,ref:u,className:Ke(C.root,y)},S,{children:b?Vde(O,b):O}))})}function Yde(e,t){return L({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Gde=["mode","contrastThreshold","tonalOffset"],ZB={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:Ty.white,default:Ty.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}},HC={text:{primary:Ty.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:Ty.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 XB(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kk(e.main,i):t==="dark"&&(e.dark=wk(e.main,o)))}function qde(e="light"){return e==="dark"?{main:fh[200],light:fh[50],dark:fh[400]}:{main:fh[700],light:fh[400],dark:fh[800]}}function Zde(e="light"){return e==="dark"?{main:dh[200],light:dh[50],dark:dh[400]}:{main:dh[500],light:dh[300],dark:dh[700]}}function Xde(e="light"){return e==="dark"?{main:ch[500],light:ch[300],dark:ch[700]}:{main:ch[700],light:ch[400],dark:ch[800]}}function Kde(e="light"){return e==="dark"?{main:ph[400],light:ph[300],dark:ph[700]}:{main:ph[700],light:ph[500],dark:ph[900]}}function Jde(e="light"){return e==="dark"?{main:hh[400],light:hh[300],dark:hh[700]}:{main:hh[800],light:hh[500],dark:hh[900]}}function efe(e="light"){return e==="dark"?{main:y0[400],light:y0[300],dark:y0[700]}:{main:"#ed6c02",light:y0[500],dark:y0[900]}}function tfe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ye(e,Gde),o=e.primary||qde(t),a=e.secondary||Zde(t),s=e.error||Xde(t),l=e.info||Kde(t),u=e.success||Jde(t),c=e.warning||efe(t);function d(b){return kde(b,HC.text.primary)>=n?HC.text.primary:ZB.text.primary}const p=({color:b,name:O,mainShade:y=500,lightShade:v=300,darkShade:S=700})=>{if(b=L({},b),!b.main&&b[y]&&(b.main=b[y]),!b.hasOwnProperty("main"))throw new Error(Vd(11,O?` (${O})`:"",y));if(typeof b.main!="string")throw new Error(Vd(12,O?` (${O})`:"",JSON.stringify(b.main)));return XB(b,"light",v,r),XB(b,"dark",S,r),b.contrastText||(b.contrastText=d(b.main)),b},h={dark:HC,light:ZB};return Mo(L({common:L({},Ty),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:$le,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const nfe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rfe(e){return Math.round(e*1e5)/1e5}const KB={textTransform:"uppercase"},JB='"Roboto", "Helvetica", "Arial", sans-serif';function ife(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=JB,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ye(n,nfe),h=i/14,m=d||(y=>`${y/u*h}rem`),b=(y,v,S,k,C)=>L({fontFamily:r,fontWeight:y,fontSize:m(v),lineHeight:S},r===JB?{letterSpacing:`${rfe(k/v)}em`}:{},C,c),O={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,KB),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,KB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mo(L({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},O),p,{clone:!1})}const ofe=.2,afe=.14,sfe=.12;function zr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ofe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${afe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sfe})`].join(",")}const lfe=["none",zr(0,2,1,-1,0,1,1,0,0,1,3,0),zr(0,3,1,-2,0,2,2,0,0,1,5,0),zr(0,3,3,-2,0,3,4,0,0,1,8,0),zr(0,2,4,-1,0,4,5,0,0,1,10,0),zr(0,3,5,-1,0,5,8,0,0,1,14,0),zr(0,3,5,-1,0,6,10,0,0,1,18,0),zr(0,4,5,-2,0,7,10,1,0,2,16,1),zr(0,5,5,-3,0,8,10,1,0,3,14,2),zr(0,5,6,-3,0,9,12,1,0,3,16,2),zr(0,6,6,-3,0,10,14,1,0,4,18,3),zr(0,6,7,-4,0,11,15,1,0,4,20,3),zr(0,7,8,-4,0,12,17,2,0,5,22,4),zr(0,7,8,-4,0,13,19,2,0,5,24,4),zr(0,7,9,-4,0,14,21,2,0,5,26,4),zr(0,8,9,-5,0,15,22,2,0,6,28,5),zr(0,8,10,-5,0,16,24,2,0,6,30,5),zr(0,8,11,-5,0,17,26,2,0,6,32,5),zr(0,9,11,-5,0,18,28,2,0,7,34,6),zr(0,9,12,-6,0,19,29,2,0,7,36,6),zr(0,10,13,-6,0,20,31,3,0,8,38,7),zr(0,10,13,-6,0,21,33,3,0,8,40,7),zr(0,10,14,-6,0,22,35,3,0,8,42,7),zr(0,11,14,-7,0,23,36,3,0,9,44,8),zr(0,11,15,-7,0,24,38,3,0,9,46,8)],ufe=["duration","easing","delay"],cfe={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)"},uY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function e8(e){return`${Math.round(e)}ms`}function dfe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ffe(e){const t=L({},cfe,e.easing),n=L({},uY,e.duration);return L({getAutoHeightDuration:dfe,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ye(o,ufe),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:e8(a)} ${s} ${typeof l=="string"?l:e8(l)}`).join(",")}},e,{easing:t,duration:n})}const pfe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hfe=pfe,mfe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function LD(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ye(e,mfe);if(e.vars)throw new Error(Vd(18));const s=tfe(r),l=Q1(e);let u=Mo(l,{mixins:Yde(l.breakpoints,n),palette:s,shadows:lfe.slice(),typography:ife(s,o),transitions:ffe(i),zIndex:L({},hfe)});return u=Mo(u,a),u=t.reduce((c,d)=>Mo(c,d),u),u.unstable_sxConfig=L({},vk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return W1({sx:d,theme:this})},u}const gfe=LD(),xk=gfe;function ci(){const e=Ag(xk);return e[yp]||e}function mt({props:e,name:t}){return DD({props:e,name:t,defaultTheme:xk,themeId:yp})}const no=e=>Cb(e)&&e!=="classes",MD=Cb,Ee=iY({themeId:yp,defaultTheme:xk,rootShouldForwardProp:no}),bfe=["theme"];function yfe(e){let{theme:t}=e,n=Ye(e,bfe);const r=t[yp];return N.jsx(Nde,L({},n,{themeId:r?yp:void 0,theme:r||t}))}const t8=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ofe(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vfe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Efe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${nt(t)}`,`fontSize${nt(n)}`]};return wt(i,Ofe,r)},Sfe=Ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${nt(n.color)}`],t[`fontSize${nt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,p,h,m;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:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),Hd=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=Ye(r,vfe),m=I.isValidElement(i)&&i.type==="svg",b=L({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),O={};c||(O.viewBox=p);const y=Efe(b);return N.jsxs(Sfe,L({as:s,className:Ke(y.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},O,h,m&&i.props,{ownerState:b,children:[m?i.props.children:i,d?N.jsx("title",{children:d}):null]}))});Hd.muiName="SvgIcon";function ki(e,t){function n(r,i){return N.jsx(Hd,L({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Hd.muiName,I.memo(I.forwardRef(n))}const Tfe={configure:e=>{CD.configure(e)}},wfe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:nT,createSvgIcon:ki,debounce:Cg,deprecatedPropType:que,isMuiElement:kb,ownerDocument:Or,ownerWindow:Js,requirePropFactory:Zue,setRef:Cy,unstable_ClassNameGenerator:Tfe,unstable_useEnhancedEffect:Jr,unstable_useId:Fl,unsupportedProp:Kue,useControlled:Ji,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:fk},Symbol.toStringTag,{value:"Module"}));function j_(e,t){return j_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},j_(e,t)}function $D(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,j_(e,t)}function kfe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function xfe(e,t){e.classList?e.classList.add(t):kfe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function n8(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Cfe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=n8(e.className,t):e.setAttribute("class",n8(e.className&&e.className.baseVal||"",t))}const r8={disabled:!1},aT=Qt.createContext(null);var cY=function(t){return t.scrollTop},rb="unmounted",Nf="exited",Df="entering",kh="entered",z_="exiting",Ic=function(e){$D(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Nf,o.appearStatus=Df):l=kh:r.unmountOnExit||r.mountOnEnter?l=rb:l=Nf,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===rb?{status:Nf}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Df&&a!==kh&&(o=Df):(a===Df||a===kh)&&(o=z_)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Df){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:nb.findDOMNode(this);a&&cY(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nf&&this.setState({status:rb})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[nb.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||r8.disabled){this.safeSetState({status:kh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Df},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:kh},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:nb.findDOMNode(this);if(!o||r8.disabled){this.safeSetState({status:Nf},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:z_},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Nf},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:nb.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===rb)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ye(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qt.createElement(aT.Provider,{value:null},typeof a=="function"?a(i,s):Qt.cloneElement(Qt.Children.only(a),s))},t}(Qt.Component);Ic.contextType=aT;Ic.propTypes={};function gh(){}Ic.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gh,onEntering:gh,onEntered:gh,onExit:gh,onExiting:gh,onExited:gh};Ic.UNMOUNTED=rb;Ic.EXITED=Nf;Ic.ENTERING=Df;Ic.ENTERED=kh;Ic.EXITING=z_;const Y1=Ic;var Afe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return xfe(t,r)})},WC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Cfe(t,r)})},FD=function(e){$D(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function Wd(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function Mfe(e){return At("MuiCollapse",e)}_t("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const $fe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Ffe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return wt(r,Mfe,n)},Bfe=Ee("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})=>L({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&L({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Ufe=Ee("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>L({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),jfe=Ee("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>L({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),dY=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:m,onExited:b,onExiting:O,orientation:y="vertical",style:v,timeout:S=uY.standard,TransitionComponent:k=Y1}=r,C=Ye(r,$fe),w=L({},r,{orientation:y,collapsedSize:s}),E=Ffe(w),$=ci(),P=I.useRef(),_=I.useRef(null),B=I.useRef(),U=typeof s=="number"?`${s}px`:s,V=y==="horizontal",z=V?"width":"height";I.useEffect(()=>()=>{clearTimeout(P.current)},[]);const W=I.useRef(null),X=yn(n,W),q=ue=>xe=>{if(ue){const De=W.current;xe===void 0?ue(De):ue(De,xe)}},Y=()=>_.current?_.current[V?"clientWidth":"clientHeight"]:0,Z=q((ue,xe)=>{_.current&&V&&(_.current.style.position="absolute"),ue.style[z]=U,d&&d(ue,xe)}),j=q((ue,xe)=>{const De=Y();_.current&&V&&(_.current.style.position="");const{duration:Ve,easing:Je}=Wd({style:v,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const Me=$.transitions.getAutoHeightDuration(De);ue.style.transitionDuration=`${Me}ms`,B.current=Me}else ue.style.transitionDuration=typeof Ve=="string"?Ve:`${Ve}ms`;ue.style[z]=`${De}px`,ue.style.transitionTimingFunction=Je,h&&h(ue,xe)}),se=q((ue,xe)=>{ue.style[z]="auto",p&&p(ue,xe)}),ve=q(ue=>{ue.style[z]=`${Y()}px`,m&&m(ue)}),G=q(b),ce=q(ue=>{const xe=Y(),{duration:De,easing:Ve}=Wd({style:v,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const Je=$.transitions.getAutoHeightDuration(xe);ue.style.transitionDuration=`${Je}ms`,B.current=Je}else ue.style.transitionDuration=typeof De=="string"?De:`${De}ms`;ue.style[z]=U,ue.style.transitionTimingFunction=Ve,O&&O(ue)}),ge=ue=>{S==="auto"&&(P.current=setTimeout(ue,B.current||0)),i&&i(W.current,ue)};return N.jsx(k,L({in:c,onEnter:Z,onEntered:se,onEntering:j,onExit:ve,onExited:G,onExiting:ce,addEndListener:ge,nodeRef:W,timeout:S==="auto"?null:S},C,{children:(ue,xe)=>N.jsx(Bfe,L({as:l,className:Ke(E.root,a,{entered:E.entered,exited:!c&&U==="0px"&&E.hidden}[ue]),style:L({[V?"minWidth":"minHeight"]:U},v),ownerState:L({},w,{state:ue}),ref:X},xe,{children:N.jsx(Ufe,{ownerState:L({},w,{state:ue}),className:E.wrapper,ref:_,children:N.jsx(jfe,{ownerState:L({},w,{state:ue}),className:E.wrapperInner,children:o})})}))}))});dY.muiSupportAuto=!0;const zfe=dY;function Vfe(e){return At("MuiPaper",e)}_t("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 Hfe=["className","component","elevation","square","variant"],Wfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return wt(o,Vfe,i)},Qfe=Ee("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 L({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"&&L({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${cn("#fff",t8(t.elevation))}, ${cn("#fff",t8(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Yfe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Ye(r,Hfe),c=L({},r,{component:o,elevation:a,square:s,variant:l}),d=Wfe(c);return N.jsx(Qfe,L({as:o,ownerState:c,className:Ke(d.root,i),ref:n},u))}),zo=Yfe;function Cu(e){return typeof e=="string"}function ib(e,t,n){return e===void 0||Cu(e)?t:L({},t,{ownerState:L({},t.ownerState,n)})}function Gfe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const qfe={disableDefaultClasses:!1},Zfe=I.createContext(qfe);function Xfe(e){const{disableDefaultClasses:t}=I.useContext(Zfe);return n=>t?"":e(n)}function Ab(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 af(e,t,n){return typeof e=="function"?e(t,n):e}function i8(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 Kfe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=Ke(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=L({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),b=L({},n,i,r);return h.length>0&&(b.className=h),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:void 0}}const a=Ab(L({},i,r)),s=i8(r),l=i8(i),u=t(a),c=Ke(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=L({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=L({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Jfe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ye(e,Jfe),s=o?{}:af(r,i),{props:l,internalRef:u}=Kfe(L({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return ib(n,L({},l,{ref:c}),i)}function epe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=I.useState(!1),p=Ke(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=Ke(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&d(!0),I.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),N.jsx("span",{className:p,style:h,children:N.jsx("span",{className:m})})}const Ds=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tpe=["center","classes","className"];let Ck=e=>e,o8,a8,s8,l8;const V_=550,npe=80,rpe=V1(o8||(o8=Ck` 0% { transform: scale(0); opacity: 0.1; @@ -125,8 +125,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Ns.rippleVisible,rpe,V_,({theme:e})=>e.transitions.easing.easeInOut,Ns.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ns.child,Ns.childLeaving,ipe,V_,({theme:e})=>e.transitions.easing.easeInOut,Ns.childPulsate,ope,({theme:e})=>e.transitions.easing.easeInOut),lpe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ye(r,tpe),[l,u]=I.useState([]),c=I.useRef(0),d=I.useRef(null);I.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=I.useRef(!1),h=I.useRef(0),m=I.useRef(null),b=I.useRef(null);I.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const O=I.useCallback(k=>{const{pulsate:C,rippleX:w,rippleY:E,rippleSize:$,cb:P}=k;u(_=>[..._,D.jsx(spe,{classes:{ripple:Ke(o.ripple,Ns.ripple),rippleVisible:Ke(o.rippleVisible,Ns.rippleVisible),ripplePulsate:Ke(o.ripplePulsate,Ns.ripplePulsate),child:Ke(o.child,Ns.child),childLeaving:Ke(o.childLeaving,Ns.childLeaving),childPulsate:Ke(o.childPulsate,Ns.childPulsate)},timeout:V_,pulsate:C,rippleX:w,rippleY:E,rippleSize:$},c.current)]),c.current+=1,d.current=P},[o]),y=I.useCallback((k={},C={},w=()=>{})=>{const{pulsate:E=!1,center:$=i||C.pulsate,fakeElement:P=!1}=C;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const _=P?null:b.current,B=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,V,z;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)U=Math.round(B.width/2),V=Math.round(B.height/2);else{const{clientX:W,clientY:X}=k.touches&&k.touches.length>0?k.touches[0]:k;U=Math.round(W-B.left),V=Math.round(X-B.top)}if($)z=Math.sqrt((2*B.width**2+B.height**2)/3),z%2===0&&(z+=1);else{const W=Math.max(Math.abs((_?_.clientWidth:0)-U),U)*2+2,X=Math.max(Math.abs((_?_.clientHeight:0)-V),V)*2+2;z=Math.sqrt(W**2+X**2)}k!=null&&k.touches?m.current===null&&(m.current=()=>{O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},h.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},npe)):O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},[i,O]),v=I.useCallback(()=>{y({},{pulsate:!0})},[y]),S=I.useCallback((k,C)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&m.current){m.current(),m.current=null,h.current=setTimeout(()=>{S(k,C)});return}m.current=null,u(w=>w.length>0?w.slice(1):w),d.current=C},[]);return I.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:S}),[v,y,S]),D.jsx(ape,L({className:Ke(Ns.root,o.root,a),ref:b},s,{children:D.jsx(jN,{component:null,exit:!0,children:l})}))}),upe=lpe;function cpe(e){return At("MuiButtonBase",e)}const dpe=_t("MuiButtonBase",["root","disabled","focusVisible"]),fpe=["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"],ppe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=wt({root:["root",t&&"disabled",n&&"focusVisible"]},cpe,i);return n&&r&&(a.root+=` ${r}`),a},hpe=Ee("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"},[`&.${dpe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mpe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:b,onContextMenu:O,onDragLeave:y,onFocus:v,onFocusVisible:S,onKeyDown:k,onKeyUp:C,onMouseDown:w,onMouseLeave:E,onMouseUp:$,onTouchEnd:P,onTouchMove:_,onTouchStart:B,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:z,type:W}=r,X=Ye(r,fpe),q=I.useRef(null),Y=I.useRef(null),Z=yn(Y,z),{isFocusVisibleRef:j,onFocus:se,onBlur:ve,ref:G}=fk(),[ce,ge]=I.useState(!1);u&&ce&&ge(!1),I.useImperativeHandle(i,()=>({focusVisible:()=>{ge(!0),q.current.focus()}}),[]);const[ue,xe]=I.useState(!1);I.useEffect(()=>{xe(!0)},[]);const Ne=ue&&!c&&!u;I.useEffect(()=>{ce&&p&&!c&&ue&&Y.current.pulsate()},[c,p,ce,ue]);function Ve(Te,rt,pt=d){return jt(xt=>(rt&&rt(xt),!pt&&Y.current&&Y.current[Te](xt),!0))}const Je=Ve("start",w),Me=Ve("stop",O),Ge=Ve("stop",y),ye=Ve("stop",$),ze=Ve("stop",Te=>{ce&&Te.preventDefault(),E&&E(Te)}),$e=Ve("start",B),We=Ve("stop",P),dt=Ve("stop",_),Be=Ve("stop",Te=>{ve(Te),j.current===!1&&ge(!1),m&&m(Te)},!1),re=jt(Te=>{q.current||(q.current=Te.currentTarget),se(Te),j.current===!0&&(ge(!0),S&&S(Te)),v&&v(Te)}),ee=()=>{const Te=q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},J=I.useRef(!1),Re=jt(Te=>{p&&!J.current&&ce&&Y.current&&Te.key===" "&&(J.current=!0,Y.current.stop(Te,()=>{Y.current.start(Te)})),Te.target===Te.currentTarget&&ee()&&Te.key===" "&&Te.preventDefault(),k&&k(Te),Te.target===Te.currentTarget&&ee()&&Te.key==="Enter"&&!u&&(Te.preventDefault(),b&&b(Te))}),Le=jt(Te=>{p&&Te.key===" "&&Y.current&&ce&&!Te.defaultPrevented&&(J.current=!1,Y.current.stop(Te,()=>{Y.current.pulsate(Te)})),C&&C(Te),b&&Te.target===Te.currentTarget&&ee()&&Te.key===" "&&!Te.defaultPrevented&&b(Te)});let De=l;De==="button"&&(X.href||X.to)&&(De=h);const ie={};De==="button"?(ie.type=W===void 0?"button":W,ie.disabled=u):(!X.href&&!X.to&&(ie.role="button"),u&&(ie["aria-disabled"]=u));const fe=yn(n,G,q),de=L({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:ce}),Oe=ppe(de);return D.jsxs(hpe,L({as:De,className:Ke(Oe.root,s),ownerState:de,onBlur:Be,onClick:b,onContextMenu:Me,onFocus:re,onKeyDown:Re,onKeyUp:Le,onMouseDown:Je,onMouseLeave:ze,onMouseUp:ye,onDragLeave:Ge,onTouchEnd:We,onTouchMove:dt,onTouchStart:$e,ref:fe,tabIndex:u?-1:U,type:W},ie,X,{children:[a,Ne?D.jsx(upe,L({ref:Z,center:o},V)):null]}))}),hs=mpe;function gpe(e){return At("MuiIconButton",e)}const bpe=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ype=["edge","children","className","color","disabled","disableFocusRipple","size"],Ope=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${nt(r)}`,i&&`edge${nt(i)}`,`size${nt(o)}`]};return wt(a,gpe,t)},vpe=Ee(hs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(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 L({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&L({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":L({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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)},{[`&.${bpe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Epe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Ye(r,ype),p=L({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Ope(p);return D.jsx(vpe,L({className:Ke(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),eo=Epe,Spe=ki(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 Tpe(e){return At("MuiTypography",e)}_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wpe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],kpe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${nt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return wt(s,Tpe,a)},xpe=Ee("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${nt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>L({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})),u8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Cpe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ape=e=>Cpe[e]||e,_pe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTypography"}),i=Ape(r.color),o=Sk(L({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=u8}=o,m=Ye(o,wpe),b=L({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:h}),O=l||(d?"p":h[p]||u8[p])||"span",y=kpe(b);return D.jsx(xpe,L({as:O,ref:n,ownerState:b,className:Ke(y.root,s)},m))}),dr=_pe;function Rpe(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Ipe=["className","color","enableColorOnDark","position"],Dpe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${nt(t)}`,`position${nt(n)}`]};return wt(i,Rpe,r)},wv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Npe=Ee(zo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return L({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&&L({},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"&&L({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&L({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:wv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:wv(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:wv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:wv(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"}))}),Ppe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Ye(r,Ipe),u=L({},r,{color:o,position:s,enableColorOnDark:a}),c=Dpe(u);return D.jsx(Npe,L({square:!0,component:"header",ownerState:u,elevation:4,className:Ke(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),fY=Ppe,pY="base";function Lpe(e){return`${pY}--${e}`}function Mpe(e,t){return`${pY}-${e}-${t}`}function hY(e,t){const n=KQ[t];return n?Lpe(n):Mpe(e,t)}function $pe(e,t){const n={};return t.forEach(r=>{n[r]=hY(e,r)}),n}function c8(e){return e.substring(2).toLowerCase()}function Fpe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=yn(t.ref,s),d=jt(m=>{const b=u.current;u.current=!1;const O=Or(s.current);if(!l.current||!s.current||"clientX"in m&&Fpe(m,O))return;if(a.current){a.current=!1;return}let y;m.composedPath?y=m.composedPath().indexOf(s.current)>-1:y=!O.documentElement.contains(m.target)||s.current.contains(m.target),!y&&(n||!b)&&i(m)}),p=m=>b=>{u.current=!0;const O=t.props[m];O&&O(b)},h={ref:c};return o!==!1&&(h[o]=p(o)),I.useEffect(()=>{if(o!==!1){const m=c8(o),b=Or(s.current),O=()=>{a.current=!0};return b.addEventListener(m,d),b.addEventListener("touchmove",O),()=>{b.removeEventListener(m,d),b.removeEventListener("touchmove",O)}}},[d,o]),r!==!1&&(h[r]=p(r)),I.useEffect(()=>{if(r!==!1){const m=c8(r),b=Or(s.current);return b.addEventListener(m,d),()=>{b.removeEventListener(m,d)}}},[d,r]),D.jsx(I.Fragment,{children:I.cloneElement(t,h)})}const Upe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jpe(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 zpe(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 Vpe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||zpe(e))}function Hpe(e){const t=[],n=[];return Array.from(e.querySelectorAll(Upe)).forEach((r,i)=>{const o=jpe(r);o===-1||!Vpe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,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 Wpe(){return!0}function mY(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Hpe,isEnabled:a=Wpe,open:s}=e,l=I.useRef(!1),u=I.useRef(null),c=I.useRef(null),d=I.useRef(null),p=I.useRef(null),h=I.useRef(!1),m=I.useRef(null),b=yn(t.ref,m),O=I.useRef(null);I.useEffect(()=>{!s||!m.current||(h.current=!n)},[n,s]),I.useEffect(()=>{if(!s||!m.current)return;const S=Or(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),I.useEffect(()=>{if(!s||!m.current)return;const S=Or(m.current),k=E=>{O.current=E,!(r||!a()||E.key!=="Tab")&&S.activeElement===m.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},C=()=>{const E=m.current;if(E===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let $=[];if((S.activeElement===u.current||S.activeElement===c.current)&&($=o(m.current)),$.length>0){var P,_;const B=!!((P=O.current)!=null&&P.shiftKey&&((_=O.current)==null?void 0:_.key)==="Tab"),U=$[0],V=$[$.length-1];typeof U!="string"&&typeof V!="string"&&(B?V.focus():U.focus())}else E.focus()};S.addEventListener("focusin",C),S.addEventListener("keydown",k,!0);const w=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",C),S.removeEventListener("keydown",k,!0)}},[n,r,i,a,s,o]);const y=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0,p.current=S.target;const k=t.props.onFocus;k&&k(S)},v=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0};return D.jsxs(I.Fragment,{children:[D.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:b,onFocus:y}),D.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var _a="top",el="bottom",tl="right",Ra="left",VN="auto",G1=[_a,el,tl,Ra],tg="start",Ay="end",Qpe="clippingParents",gY="viewport",v0="popper",Ype="reference",d8=G1.reduce(function(e,t){return e.concat([t+"-"+tg,t+"-"+Ay])},[]),bY=[].concat(G1,[VN]).reduce(function(e,t){return e.concat([t,t+"-"+tg,t+"-"+Ay])},[]),Gpe="beforeRead",qpe="read",Zpe="afterRead",Xpe="beforeMain",Kpe="main",Jpe="afterMain",ehe="beforeWrite",the="write",nhe="afterWrite",rhe=[Gpe,qpe,Zpe,Xpe,Kpe,Jpe,ehe,the,nhe];function Du(e){return e?(e.nodeName||"").toLowerCase():null}function ms(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ep(e){var t=ms(e).Element;return e instanceof t||e instanceof Element}function Ws(e){var t=ms(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HN(e){if(typeof ShadowRoot>"u")return!1;var t=ms(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ihe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ws(o)||!Du(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function ohe(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],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Ws(i)||!Du(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const ahe={name:"applyStyles",enabled:!0,phase:"write",fn:ihe,effect:ohe,requires:["computeStyles"]};function Au(e){return e.split("-")[0]}var cp=Math.max,sT=Math.min,ng=Math.round;function H_(){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 yY(){return!/^((?!chrome|android).)*safari/i.test(H_())}function rg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ws(e)&&(i=e.offsetWidth>0&&ng(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ng(r.height)/e.offsetHeight||1);var a=Ep(e)?ms(e):window,s=a.visualViewport,l=!yY()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function WN(e){var t=rg(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 OY(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HN(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Tc(e){return ms(e).getComputedStyle(e)}function she(e){return["table","td","th"].indexOf(Du(e))>=0}function sf(e){return((Ep(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ak(e){return Du(e)==="html"?e:e.assignedSlot||e.parentNode||(HN(e)?e.host:null)||sf(e)}function f8(e){return!Ws(e)||Tc(e).position==="fixed"?null:e.offsetParent}function lhe(e){var t=/firefox/i.test(H_()),n=/Trident/i.test(H_());if(n&&Ws(e)){var r=Tc(e);if(r.position==="fixed")return null}var i=Ak(e);for(HN(i)&&(i=i.host);Ws(i)&&["html","body"].indexOf(Du(i))<0;){var o=Tc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function q1(e){for(var t=ms(e),n=f8(e);n&&she(n)&&Tc(n).position==="static";)n=f8(n);return n&&(Du(n)==="html"||Du(n)==="body"&&Tc(n).position==="static")?t:n||lhe(e)||t}function QN(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _b(e,t,n){return cp(e,sT(t,n))}function uhe(e,t,n){var r=_b(e,t,n);return r>n?n:r}function vY(){return{top:0,right:0,bottom:0,left:0}}function EY(e){return Object.assign({},vY(),e)}function SY(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var che=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,EY(typeof t!="number"?t:SY(t,G1))};function dhe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Au(n.placement),l=QN(s),u=[Ra,tl].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=che(i.padding,n),p=WN(o),h=l==="y"?_a:Ra,m=l==="y"?el:tl,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],O=a[l]-n.rects.reference[l],y=q1(o),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-O/2,k=d[h],C=v-p[c]-d[m],w=v/2-p[c]/2+S,E=_b(k,w,C),$=l;n.modifiersData[r]=(t={},t[$]=E,t.centerOffset=E-w,t)}}function fhe(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)||OY(t.elements.popper,i)&&(t.elements.arrow=i))}const phe={name:"arrow",enabled:!0,phase:"main",fn:dhe,effect:fhe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ig(e){return e.split("-")[1]}var hhe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mhe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ng(n*i)/i||0,y:ng(r*i)/i||0}}function p8(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,b=m===void 0?0:m,O=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=O.x,b=O.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=Ra,k=_a,C=window;if(u){var w=q1(n),E="clientHeight",$="clientWidth";if(w===ms(n)&&(w=sf(n),Tc(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",$="scrollWidth")),w=w,i===_a||(i===Ra||i===tl)&&o===Ay){k=el;var P=d&&w===C&&C.visualViewport?C.visualViewport.height:w[E];b-=P-r.height,b*=l?1:-1}if(i===Ra||(i===_a||i===el)&&o===Ay){S=tl;var _=d&&w===C&&C.visualViewport?C.visualViewport.width:w[$];h-=_-r.width,h*=l?1:-1}}var B=Object.assign({position:s},u&&hhe),U=c===!0?mhe({x:h,y:b},ms(n)):{x:h,y:b};if(h=U.x,b=U.y,l){var V;return Object.assign({},B,(V={},V[k]=v?"0":"",V[S]=y?"0":"",V.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",V))}return Object.assign({},B,(t={},t[k]=v?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function ghe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Au(t.placement),variation:ig(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,p8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bhe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ghe,data:{}};var kv={passive:!0};function yhe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ms(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,kv)}),s&&l.addEventListener("resize",n.update,kv),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,kv)}),s&&l.removeEventListener("resize",n.update,kv)}}const Ohe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yhe,data:{}};var vhe={left:"right",right:"left",bottom:"top",top:"bottom"};function WE(e){return e.replace(/left|right|bottom|top/g,function(t){return vhe[t]})}var Ehe={start:"end",end:"start"};function h8(e){return e.replace(/start|end/g,function(t){return Ehe[t]})}function YN(e){var t=ms(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function GN(e){return rg(sf(e)).left+YN(e).scrollLeft}function She(e,t){var n=ms(e),r=sf(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=yY();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+GN(e),y:l}}function The(e){var t,n=sf(e),r=YN(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=cp(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=cp(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+GN(e),l=-r.scrollTop;return Tc(i||n).direction==="rtl"&&(s+=cp(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function qN(e){var t=Tc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function TY(e){return["html","body","#document"].indexOf(Du(e))>=0?e.ownerDocument.body:Ws(e)&&qN(e)?e:TY(Ak(e))}function Rb(e,t){var n;t===void 0&&(t=[]);var r=TY(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ms(r),a=i?[o].concat(o.visualViewport||[],qN(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Rb(Ak(a)))}function W_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function whe(e,t){var n=rg(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 m8(e,t,n){return t===gY?W_(She(e,n)):Ep(t)?whe(t,n):W_(The(sf(e)))}function khe(e){var t=Rb(Ak(e)),n=["absolute","fixed"].indexOf(Tc(e).position)>=0,r=n&&Ws(e)?q1(e):e;return Ep(r)?t.filter(function(i){return Ep(i)&&OY(i,r)&&Du(i)!=="body"}):[]}function xhe(e,t,n,r){var i=t==="clippingParents"?khe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=m8(e,u,r);return l.top=cp(c.top,l.top),l.right=sT(c.right,l.right),l.bottom=sT(c.bottom,l.bottom),l.left=cp(c.left,l.left),l},m8(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wY(e){var t=e.reference,n=e.element,r=e.placement,i=r?Au(r):null,o=r?ig(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case _a:l={x:a,y:t.y-n.height};break;case el:l={x:a,y:t.y+t.height};break;case tl:l={x:t.x+t.width,y:s};break;case Ra:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?QN(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case tg:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Ay:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function _y(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Qpe:s,u=n.rootBoundary,c=u===void 0?gY:u,d=n.elementContext,p=d===void 0?v0:d,h=n.altBoundary,m=h===void 0?!1:h,b=n.padding,O=b===void 0?0:b,y=EY(typeof O!="number"?O:SY(O,G1)),v=p===v0?Ype:v0,S=e.rects.popper,k=e.elements[m?v:p],C=xhe(Ep(k)?k:k.contextElement||sf(e.elements.popper),l,c,a),w=rg(e.elements.reference),E=wY({reference:w,element:S,strategy:"absolute",placement:i}),$=W_(Object.assign({},S,E)),P=p===v0?$:w,_={top:C.top-P.top+y.top,bottom:P.bottom-C.bottom+y.bottom,left:C.left-P.left+y.left,right:P.right-C.right+y.right},B=e.modifiersData.offset;if(p===v0&&B){var U=B[i];Object.keys(_).forEach(function(V){var z=[tl,el].indexOf(V)>=0?1:-1,W=[_a,el].indexOf(V)>=0?"y":"x";_[V]+=U[W]*z})}return _}function Che(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?bY:l,c=ig(r),d=c?s?d8:d8.filter(function(m){return ig(m)===c}):G1,p=d.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,b){return m[b]=_y(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[Au(b)],m},{});return Object.keys(h).sort(function(m,b){return h[m]-h[b]})}function Ahe(e){if(Au(e)===VN)return[];var t=WE(e);return[h8(e),t,h8(t)]}function _he(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,b=n.allowedAutoPlacements,O=t.options.placement,y=Au(O),v=y===O,S=l||(v||!m?[WE(O)]:Ahe(O)),k=[O].concat(S).reduce(function(ce,ge){return ce.concat(Au(ge)===VN?Che(t,{placement:ge,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:b}):ge)},[]),C=t.rects.reference,w=t.rects.popper,E=new Map,$=!0,P=k[0],_=0;_=0,W=z?"width":"height",X=_y(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),q=z?V?tl:Ra:V?el:_a;C[W]>w[W]&&(q=WE(q));var Y=WE(q),Z=[];if(o&&Z.push(X[U]<=0),s&&Z.push(X[q]<=0,X[Y]<=0),Z.every(function(ce){return ce})){P=B,$=!1;break}E.set(B,Z)}if($)for(var j=m?3:1,se=function(ge){var ue=k.find(function(xe){var Ne=E.get(xe);if(Ne)return Ne.slice(0,ge).every(function(Ve){return Ve})});if(ue)return P=ue,"break"},ve=j;ve>0;ve--){var G=se(ve);if(G==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const Rhe={name:"flip",enabled:!0,phase:"main",fn:_he,requiresIfExists:["offset"],data:{_skip:!1}};function g8(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 b8(e){return[_a,tl,el,Ra].some(function(t){return e[t]>=0})}function Ihe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=_y(t,{elementContext:"reference"}),s=_y(t,{altBoundary:!0}),l=g8(a,r),u=g8(s,i,o),c=b8(l),d=b8(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Dhe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ihe};function Nhe(e,t,n){var r=Au(e),i=[Ra,_a].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ra,tl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Phe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=bY.reduce(function(c,d){return c[d]=Nhe(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Lhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Phe};function Mhe(e){var t=e.state,n=e.name;t.modifiersData[n]=wY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $he={name:"popperOffsets",enabled:!0,phase:"read",fn:Mhe,data:{}};function Fhe(e){return e==="x"?"y":"x"}function Bhe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,b=m===void 0?0:m,O=_y(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Au(t.placement),v=ig(t.placement),S=!v,k=QN(y),C=Fhe(k),w=t.modifiersData.popperOffsets,E=t.rects.reference,$=t.rects.popper,P=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,_=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(w){if(o){var V,z=k==="y"?_a:Ra,W=k==="y"?el:tl,X=k==="y"?"height":"width",q=w[k],Y=q+O[z],Z=q-O[W],j=h?-$[X]/2:0,se=v===tg?E[X]:$[X],ve=v===tg?-$[X]:-E[X],G=t.elements.arrow,ce=h&&G?WN(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vY(),ue=ge[z],xe=ge[W],Ne=_b(0,E[X],ce[X]),Ve=S?E[X]/2-j-Ne-ue-_.mainAxis:se-Ne-ue-_.mainAxis,Je=S?-E[X]/2+j+Ne+xe+_.mainAxis:ve+Ne+xe+_.mainAxis,Me=t.elements.arrow&&q1(t.elements.arrow),Ge=Me?k==="y"?Me.clientTop||0:Me.clientLeft||0:0,ye=(V=B==null?void 0:B[k])!=null?V:0,ze=q+Ve-ye-Ge,$e=q+Je-ye,We=_b(h?sT(Y,ze):Y,q,h?cp(Z,$e):Z);w[k]=We,U[k]=We-q}if(s){var dt,Be=k==="x"?_a:Ra,re=k==="x"?el:tl,ee=w[C],J=C==="y"?"height":"width",Re=ee+O[Be],Le=ee-O[re],De=[_a,Ra].indexOf(y)!==-1,ie=(dt=B==null?void 0:B[C])!=null?dt:0,fe=De?Re:ee-E[J]-$[J]-ie+_.altAxis,de=De?ee+E[J]+$[J]-ie-_.altAxis:Le,Oe=h&&De?uhe(fe,ee,de):_b(h?fe:Re,ee,h?de:Le);w[C]=Oe,U[C]=Oe-ee}t.modifiersData[r]=U}}const Uhe={name:"preventOverflow",enabled:!0,phase:"main",fn:Bhe,requiresIfExists:["offset"]};function jhe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zhe(e){return e===ms(e)||!Ws(e)?YN(e):jhe(e)}function Vhe(e){var t=e.getBoundingClientRect(),n=ng(t.width)/e.offsetWidth||1,r=ng(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hhe(e,t,n){n===void 0&&(n=!1);var r=Ws(t),i=Ws(t)&&Vhe(t),o=sf(t),a=rg(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Du(t)!=="body"||qN(o))&&(s=zhe(t)),Ws(t)?(l=rg(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=GN(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Whe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Qhe(e){var t=Whe(e);return rhe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Yhe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ghe(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 y8={placement:"bottom",modifiers:[],strategy:"absolute"};function O8(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(Khe(i)||document.body)},[i,o]),Jr(()=>{if(a&&!o)return Cy(n,a),()=>{Cy(n,null)}},[n,a,o]),o){if(I.isValidElement(r)){const u={ref:l};return I.cloneElement(r,u)}return D.jsx(I.Fragment,{children:r})}return D.jsx(I.Fragment,{children:a&&wg.createPortal(r,a)})}),xY="Popper";function Jhe(e){return hY(xY,e)}$pe(xY,["root"]);const eme=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tme=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nme(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 Q_(e){return typeof e=="function"?e():e}function rme(e){return e.nodeType!==void 0}const ime=()=>wt({root:["root"]},Xfe(Jhe)),ome={},ame=I.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:b}=t,O=Ye(t,eme),y=I.useRef(null),v=yn(y,n),S=I.useRef(null),k=yn(S,p),C=I.useRef(k);Jr(()=>{C.current=k},[k]),I.useImperativeHandle(p,()=>S.current,[]);const w=nme(c,a),[E,$]=I.useState(w),[P,_]=I.useState(Q_(i));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{i&&_(Q_(i))},[i]),Jr(()=>{if(!P||!u)return;const W=Y=>{$(Y.placement)};let X=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{W(Y)}}];l!=null&&(X=X.concat(l)),d&&d.modifiers!=null&&(X=X.concat(d.modifiers));const q=Xhe(P,y.current,L({placement:w},d,{modifiers:X}));return C.current(q),()=>{q.destroy(),C.current(null)}},[P,s,l,u,d,w]);const B={placement:E};b!==null&&(B.TransitionProps=b);const U=ime(),V=(r=m.root)!=null?r:"div",z=kn({elementType:V,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:U.root});return D.jsx(V,L({},z,{children:typeof o=="function"?o(B):o}))}),sme=I.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=ome,popperRef:h,style:m,transition:b=!1,slotProps:O={},slots:y={}}=t,v=Ye(t,tme),[S,k]=I.useState(!0),C=()=>{k(!1)},w=()=>{k(!0)};if(!l&&!c&&(!b||S))return null;let E;if(o)E=o;else if(r){const _=Q_(r);E=_&&rme(_)?Or(_).body:Or(null).body}const $=!c&&l&&(!b||S)?"none":void 0,P=b?{in:c,onEnter:C,onExited:w}:void 0;return D.jsx(kY,{disablePortal:s,container:E,children:D.jsx(ame,L({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:d,popperOptions:p,popperRef:h,slotProps:O,slots:y},v,{style:L({position:"fixed",top:0,left:0,display:$},m),TransitionProps:P,children:i}))})});function lme(e){const t=Or(e);return t.body===e?Js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ib(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function v8(e){return parseInt(Js(e).getComputedStyle(e).paddingRight,10)||0}function ume(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 E8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!ume(a);s&&l&&Ib(a,i)})}function QC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function cme(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lme(r)){const a=ZQ(Or(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${v8(r)+a}px`;const s=Or(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${v8(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Or(r).body;else{const a=r.parentElement,s=Js(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function dme(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fme{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&&Ib(t.modalRef,!1);const i=dme(n);E8(n,t.mount,t.modalRef,i,!0);const o=QC(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=QC(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=cme(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=QC(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Ib(t.modalRef,n),E8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&Ib(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function pme(e){return typeof e=="function"?e():e}function hme(e){return e?e.props.hasOwnProperty("in"):!1}const mme=new fme;function gme(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=mme,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=I.useRef({}),h=I.useRef(null),m=I.useRef(null),b=yn(m,d),[O,y]=I.useState(!c),v=hme(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>Or(h.current),C=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{i.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=jt(()=>{const X=pme(t)||k().body;i.add(C(),X),m.current&&w()}),$=I.useCallback(()=>i.isTopModal(C()),[i]),P=jt(X=>{h.current=X,X&&(c&&$()?w():m.current&&Ib(m.current,S))}),_=I.useCallback(()=>{i.remove(C(),S)},[S,i]);I.useEffect(()=>()=>{_()},[_]),I.useEffect(()=>{c?E():(!v||!o)&&_()},[c,_,v,o,E]);const B=X=>q=>{var Y;(Y=X.onKeyDown)==null||Y.call(X,q),!(q.key!=="Escape"||q.which===229||!$())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},U=X=>q=>{var Y;(Y=X.onClick)==null||Y.call(X,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(X={})=>{const q=Ab(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Y=L({},q,X);return L({role:"presentation"},Y,{onKeyDown:B(Y),ref:b})},getBackdropProps:(X={})=>{const q=X;return L({"aria-hidden":!0},q,{onClick:U(q),open:c})},getTransitionProps:()=>{const X=()=>{y(!1),a&&a()},q=()=>{y(!0),s&&s(),o&&_()};return{onEnter:nT(X,l==null?void 0:l.props.onEnter),onExited:nT(q,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:P,isTopModal:$,exited:O,hasTransition:v}}const bme=2;function CY(e,t){return e-t}function S8(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const s=Math.abs(t-o);return i===null||s({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}%`})}},Sme=e=>e;let _v;function w8(){return _v===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?_v=CSS.supports("touch-action","none"):_v=!0),_v}function Tme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:h,scale:m=Sme,step:b=1,tabIndex:O,value:y}=e,v=I.useRef(),[S,k]=I.useState(-1),[C,w]=I.useState(-1),[E,$]=I.useState(!1),P=I.useRef(0),[_,B]=Ji({controlled:y,default:n??l,name:"Slider"}),U=c&&((ie,fe,de)=>{const Oe=ie.nativeEvent||ie,Te=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Te,"target",{writable:!0,value:{value:fe,name:u}}),c(Te,fe,de)}),V=Array.isArray(_);let z=V?_.slice().sort(CY):[_];z=z.map(ie=>ie==null?l:wh(ie,l,s));const W=a===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((ie,fe)=>({value:l+b*fe})):a||[],X=W.map(ie=>ie.value),{isFocusVisibleRef:q,onBlur:Y,onFocus:Z,ref:j}=fk(),[se,ve]=I.useState(-1),G=I.useRef(),ce=yn(j,G),ge=yn(h,ce),ue=ie=>fe=>{var de;const Oe=Number(fe.currentTarget.getAttribute("data-index"));Z(fe),q.current===!0&&ve(Oe),w(Oe),ie==null||(de=ie.onFocus)==null||de.call(ie,fe)},xe=ie=>fe=>{var de;Y(fe),q.current===!1&&ve(-1),w(-1),ie==null||(de=ie.onBlur)==null||de.call(ie,fe)};Jr(()=>{if(r&&G.current.contains(document.activeElement)){var ie;(ie=document.activeElement)==null||ie.blur()}},[r]),r&&S!==-1&&k(-1),r&&se!==-1&&ve(-1);const Ne=ie=>fe=>{var de;(de=ie.onChange)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index")),Te=z[Oe],rt=X.indexOf(Te);let pt=fe.target.valueAsNumber;if(W&&b==null){const xt=X[X.length-1];pt>xt?pt=xt:pt{const{current:de}=G,{width:Oe,height:Te,bottom:rt,left:pt}=de.getBoundingClientRect();let xt;Je.indexOf("vertical")===0?xt=(rt-ie.y)/Te:xt=(ie.x-pt)/Oe,Je.indexOf("-reverse")!==-1&&(xt=1-xt);let et;if(et=yme(xt,l,s),b)et=vme(et,b,l);else{const qe=S8(X,et);et=X[qe]}et=wh(et,l,s);let vt=0;if(V){fe?vt=Ve.current:vt=S8(z,et),i&&(et=wh(et,z[vt-1]||-1/0,z[vt+1]||1/0));const qe=et;et=T8({values:z,newValue:et,index:vt}),i&&fe||(vt=et.indexOf(qe),Ve.current=vt)}return{newValue:et,activeIndex:vt}},Ge=jt(ie=>{const fe=xv(ie,v);if(!fe)return;if(P.current+=1,ie.type==="mousemove"&&ie.buttons===0){ye(ie);return}const{newValue:de,activeIndex:Oe}=Me({finger:fe,move:!0});Cv({sliderRef:G,activeIndex:Oe,setActive:k}),B(de),!E&&P.current>bme&&$(!0),U&&!Av(de,_)&&U(ie,de,Oe)}),ye=jt(ie=>{const fe=xv(ie,v);if($(!1),!fe)return;const{newValue:de}=Me({finger:fe,move:!0});k(-1),ie.type==="touchend"&&w(-1),d&&d(ie,de),v.current=void 0,$e()}),ze=jt(ie=>{if(r)return;w8()||ie.preventDefault();const fe=ie.changedTouches[0];fe!=null&&(v.current=fe.identifier);const de=xv(ie,v);if(de!==!1){const{newValue:Te,activeIndex:rt}=Me({finger:de});Cv({sliderRef:G,activeIndex:rt,setActive:k}),B(Te),U&&!Av(Te,_)&&U(ie,Te,rt)}P.current=0;const Oe=Or(G.current);Oe.addEventListener("touchmove",Ge,{passive:!0}),Oe.addEventListener("touchend",ye,{passive:!0})}),$e=I.useCallback(()=>{const ie=Or(G.current);ie.removeEventListener("mousemove",Ge),ie.removeEventListener("mouseup",ye),ie.removeEventListener("touchmove",Ge),ie.removeEventListener("touchend",ye)},[ye,Ge]);I.useEffect(()=>{const{current:ie}=G;return ie.addEventListener("touchstart",ze,{passive:w8()}),()=>{ie.removeEventListener("touchstart",ze),$e()}},[$e,ze]),I.useEffect(()=>{r&&$e()},[r,$e]);const We=ie=>fe=>{var de;if((de=ie.onMouseDown)==null||de.call(ie,fe),r||fe.defaultPrevented||fe.button!==0)return;fe.preventDefault();const Oe=xv(fe,v);if(Oe!==!1){const{newValue:rt,activeIndex:pt}=Me({finger:Oe});Cv({sliderRef:G,activeIndex:pt,setActive:k}),B(rt),U&&!Av(rt,_)&&U(fe,rt,pt)}P.current=0;const Te=Or(G.current);Te.addEventListener("mousemove",Ge,{passive:!0}),Te.addEventListener("mouseup",ye)},dt=lT(V?z[0]:l,l,s),Be=lT(z[z.length-1],l,s)-dt,re=(ie={})=>{const fe=Ab(ie),de={onMouseDown:We(fe||{})},Oe=L({},fe,de);return L({},ie,{ref:ge},Oe)},ee=ie=>fe=>{var de;(de=ie.onMouseOver)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index"));w(Oe)},J=ie=>fe=>{var de;(de=ie.onMouseLeave)==null||de.call(ie,fe),w(-1)};return{active:S,axis:Je,axisProps:Eme,dragging:E,focusedThumbIndex:se,getHiddenInputProps:(ie={})=>{var fe;const de=Ab(ie),Oe={onChange:Ne(de||{}),onFocus:ue(de||{}),onBlur:xe(de||{})},Te=L({},de,Oe);return L({tabIndex:O,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(fe=e.step)!=null?fe:void 0,disabled:r},ie,Te,{style:L({},uce,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const fe=Ab(ie),de={onMouseOver:ee(fe||{}),onMouseLeave:J(fe||{})};return L({},ie,fe,de)},marks:W,open:C,range:V,rootRef:ge,trackLeap:Be,trackOffset:dt,values:z,getThumbStyle:ie=>({pointerEvents:S!==-1&&S!==ie?"none":void 0})}}const wme=["onChange","maxRows","minRows","style","value"];function Rv(e){return parseInt(e,10)||0}const kme={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function k8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const AY=I.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ye(t,wme),{current:u}=I.useRef(s!=null),c=I.useRef(null),d=yn(n,c),p=I.useRef(null),h=I.useRef(0),[m,b]=I.useState({outerHeightStyle:0}),O=I.useCallback(()=>{const k=c.current,w=Js(k).getComputedStyle(k);if(w.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=w.width,E.value=k.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const $=w.boxSizing,P=Rv(w.paddingBottom)+Rv(w.paddingTop),_=Rv(w.borderBottomWidth)+Rv(w.borderTopWidth),B=E.scrollHeight;E.value="x";const U=E.scrollHeight;let V=B;o&&(V=Math.max(Number(o)*U,V)),i&&(V=Math.min(Number(i)*U,V)),V=Math.max(V,U);const z=V+($==="border-box"?P+_:0),W=Math.abs(V-B)<=1;return{outerHeightStyle:z,overflow:W}},[i,o,t.placeholder]),y=(k,C)=>{const{outerHeightStyle:w,overflow:E}=C;return h.current<20&&(w>0&&Math.abs((k.outerHeightStyle||0)-w)>1||k.overflow!==E)?(h.current+=1,{overflow:E,outerHeightStyle:w}):k},v=I.useCallback(()=>{const k=O();k8(k)||b(C=>y(C,k))},[O]);Jr(()=>{const k=()=>{const B=O();k8(B)||wg.flushSync(()=>{b(U=>y(U,B))})},C=()=>{h.current=0,k()};let w;const E=Cg(C),$=c.current,P=Js($);P.addEventListener("resize",E);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(C),_.observe($)),()=>{E.clear(),cancelAnimationFrame(w),P.removeEventListener("resize",E),_&&_.disconnect()}},[O]),Jr(()=>{v()}),I.useEffect(()=>{h.current=0},[s]);const S=k=>{h.current=0,u||v(),r&&r(k)};return D.jsxs(I.Fragment,{children:[D.jsx("textarea",L({value:s,onChange:S,ref:d,rows:o,style:L({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:L({},kme.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function x8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function xme(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=x8(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=x8(h)),i==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function YC(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 _me(e){const{unstable_isActiveElementInListbox:t=Ame,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:b=!1,filterOptions:O=Cme,filterSelectedOptions:y=!1,freeSolo:v=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:C=Ue=>{var Ce;return(Ce=Ue.label)!=null?Ce:Ue},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:$,includeInputInList:P=!1,inputValue:_,isOptionEqualToValue:B=(Ue,Ce)=>Ue===Ce,multiple:U=!1,onChange:V,onClose:z,onHighlightChange:W,onInputChange:X,onOpen:q,open:Y,openOnFocus:Z=!1,options:j,readOnly:se=!1,selectOnFocus:ve=!e.freeSolo,value:G}=e,ce=Fl($);let ge=C;ge=Ue=>{const Ce=C(Ue);return typeof Ce!="string"?String(Ce):Ce};const ue=I.useRef(!1),xe=I.useRef(!0),Ne=I.useRef(null),Ve=I.useRef(null),[Je,Me]=I.useState(null),[Ge,ye]=I.useState(-1),ze=i?0:-1,$e=I.useRef(ze),[We,dt]=Ji({controlled:G,default:c,name:u}),[Be,re]=Ji({controlled:_,default:"",name:u,state:"inputValue"}),[ee,J]=I.useState(!1),Re=I.useCallback((Ue,Ce)=>{if(!(U?We.length!(y&&(U?We:[We]).some(Ce=>Ce!==null&&B(Ue,Ce)))),{inputValue:de&&ie?"":Be,getOptionLabel:ge}):[],rt=ace({filteredOptions:Te,value:We,inputValue:Be});I.useEffect(()=>{const Ue=We!==rt.value;ee&&!Ue||v&&!Ue||Re(null,We)},[We,Re,ee,rt.value,v]);const pt=Le&&Te.length>0&&!se,xt=jt(Ue=>{Ue===-1?Ne.current.focus():Je.querySelector(`[data-tag-index="${Ue}"]`).focus()});I.useEffect(()=>{U&&Ge>We.length-1&&(ye(-1),xt(-1))},[We,U,Ge,xt]);function et(Ue,Ce){if(!Ve.current||Ue<0||Ue>=Te.length)return-1;let gt=Ue;for(;;){const Dt=Ve.current.querySelector(`[data-option-index="${gt}"]`),tn=m?!1:!Dt||Dt.disabled||Dt.getAttribute("aria-disabled")==="true";if(Dt&&Dt.hasAttribute("tabindex")&&!tn)return gt;if(Ce==="next"?gt=(gt+1)%Te.length:gt=(gt-1+Te.length)%Te.length,gt===Ue)return-1}}const vt=jt(({event:Ue,index:Ce,reason:gt="auto"})=>{if($e.current=Ce,Ce===-1?Ne.current.removeAttribute("aria-activedescendant"):Ne.current.setAttribute("aria-activedescendant",`${ce}-option-${Ce}`),W&&W(Ue,Ce===-1?null:Te[Ce],gt),!Ve.current)return;const Dt=Ve.current.querySelector(`[role="option"].${n}-focused`);Dt&&(Dt.classList.remove(`${n}-focused`),Dt.classList.remove(`${n}-focusVisible`));let tn=Ve.current;if(Ve.current.getAttribute("role")!=="listbox"&&(tn=Ve.current.parentElement.querySelector('[role="listbox"]')),!tn)return;if(Ce===-1){tn.scrollTop=0;return}const Mn=Ve.current.querySelector(`[data-option-index="${Ce}"]`);if(Mn&&(Mn.classList.add(`${n}-focused`),gt==="keyboard"&&Mn.classList.add(`${n}-focusVisible`),tn.scrollHeight>tn.clientHeight&>!=="mouse"&>!=="touch")){const Dn=Mn,Kt=tn.clientHeight+tn.scrollTop,bn=Dn.offsetTop+Dn.offsetHeight;bn>Kt?tn.scrollTop=bn-tn.clientHeight:Dn.offsetTop-Dn.offsetHeight*(w?1.3:0){if(!Oe)return;const Mn=et((()=>{const Dn=Te.length-1;if(Ce==="reset")return ze;if(Ce==="start")return 0;if(Ce==="end")return Dn;const Kt=$e.current+Ce;return Kt<0?Kt===-1&&P?-1:b&&$e.current!==-1||Math.abs(Ce)>1?0:Dn:Kt>Dn?Kt===Dn+1&&P?-1:b||Math.abs(Ce)>1?Dn:0:Kt})(),gt);if(vt({index:Mn,reason:Dt,event:Ue}),r&&Ce!=="reset")if(Mn===-1)Ne.current.value=Be;else{const Dn=ge(Te[Mn]);Ne.current.value=Dn,Dn.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&Ne.current.setSelectionRange(Be.length,Dn.length)}}),it=()=>{const Ue=(Ce,gt)=>{const Dt=Ce?ge(Ce):"",tn=gt?ge(gt):"";return Dt===tn};if($e.current!==-1&&rt.filteredOptions&&rt.filteredOptions.length!==Te.length&&rt.inputValue===Be&&(U?We.length===rt.value.length&&rt.value.every((Ce,gt)=>ge(We[gt])===ge(Ce)):Ue(rt.value,We))){const Ce=rt.filteredOptions[$e.current];if(Ce&&Te.some(Dt=>ge(Dt)===ge(Ce)))return!0}return!1},Et=I.useCallback(()=>{if(!Oe||it())return;const Ue=U?We[0]:We;if(Te.length===0||Ue==null){qe({diff:"reset"});return}if(Ve.current){if(Ue!=null){const Ce=Te[$e.current];if(U&&Ce&&YC(We,Dt=>B(Ce,Dt))!==-1)return;const gt=YC(Te,Dt=>B(Dt,Ue));gt===-1?qe({diff:"reset"}):vt({index:gt});return}if($e.current>=Te.length-1){vt({index:Te.length-1});return}vt({index:$e.current})}},[Te.length,U?!1:We,y,qe,vt,Oe,Be,U]),Nt=jt(Ue=>{Cy(Ve,Ue),Ue&&Et()});I.useEffect(()=>{Et()},[Et]);const on=Ue=>{Le||(De(!0),fe(!0),q&&q(Ue))},dn=(Ue,Ce)=>{Le&&(De(!1),z&&z(Ue,Ce))},pn=(Ue,Ce,gt,Dt)=>{if(U){if(We.length===Ce.length&&We.every((tn,Mn)=>tn===Ce[Mn]))return}else if(We===Ce)return;V&&V(Ue,Ce,gt,Dt),dt(Ce)},zn=I.useRef(!1),Se=(Ue,Ce,gt="selectOption",Dt="options")=>{let tn=gt,Mn=Ce;if(U){Mn=Array.isArray(We)?We.slice():[];const Dn=YC(Mn,Kt=>B(Ce,Kt));Dn===-1?Mn.push(Ce):Dt!=="freeSolo"&&(Mn.splice(Dn,1),tn="removeOption")}Re(Ue,Mn),pn(Ue,Mn,tn,{option:Ce}),!p&&(!Ue||!Ue.ctrlKey&&!Ue.metaKey)&&dn(Ue,tn),(a===!0||a==="touch"&&zn.current||a==="mouse"&&!zn.current)&&Ne.current.blur()};function _e(Ue,Ce){if(Ue===-1)return-1;let gt=Ue;for(;;){if(Ce==="next"&>===We.length||Ce==="previous"&>===-1)return-1;const Dt=Je.querySelector(`[data-tag-index="${gt}"]`);if(!Dt||!Dt.hasAttribute("tabindex")||Dt.disabled||Dt.getAttribute("aria-disabled")==="true")gt+=Ce==="next"?1:-1;else return gt}}const pe=(Ue,Ce)=>{if(!U)return;Be===""&&dn(Ue,"toggleInput");let gt=Ge;Ge===-1?Be===""&&Ce==="previous"&&(gt=We.length-1):(gt+=Ce==="next"?1:-1,gt<0&&(gt=0),gt===We.length&&(gt=-1)),gt=_e(gt,Ce),ye(gt),xt(gt)},lt=Ue=>{ue.current=!0,re(""),X&&X(Ue,"","clear"),pn(Ue,U?[]:null,"clear")},at=Ue=>Ce=>{if(Ue.onKeyDown&&Ue.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(Ge!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ce.key)===-1&&(ye(-1),xt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Oe&&E&&(Ce.preventDefault(),qe({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Oe&&E&&(Ce.preventDefault(),qe({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),qe({diff:-C8,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"PageDown":Ce.preventDefault(),qe({diff:C8,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowDown":Ce.preventDefault(),qe({diff:1,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowUp":Ce.preventDefault(),qe({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowLeft":pe(Ce,"previous");break;case"ArrowRight":pe(Ce,"next");break;case"Enter":if($e.current!==-1&&Oe){const gt=Te[$e.current],Dt=S?S(gt):!1;if(Ce.preventDefault(),Dt)return;Se(Ce,gt,"selectOption"),r&&Ne.current.setSelectionRange(Ne.current.value.length,Ne.current.value.length)}else v&&Be!==""&&de===!1&&(U&&Ce.preventDefault(),Se(Ce,Be,"createOption","freeSolo"));break;case"Escape":Oe?(Ce.preventDefault(),Ce.stopPropagation(),dn(Ce,"escape")):l&&(Be!==""||U&&We.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),lt(Ce));break;case"Backspace":if(U&&!se&&Be===""&&We.length>0){const gt=Ge===-1?We.length-1:Ge,Dt=We.slice();Dt.splice(gt,1),pn(Ce,Dt,"removeOption",{option:We[gt]})}break;case"Delete":if(U&&!se&&Be===""&&We.length>0&&Ge!==-1){const gt=Ge,Dt=We.slice();Dt.splice(gt,1),pn(Ce,Dt,"removeOption",{option:We[gt]})}break}},Mt=Ue=>{J(!0),Z&&!ue.current&&on(Ue)},$t=Ue=>{if(t(Ve)){Ne.current.focus();return}J(!1),xe.current=!0,ue.current=!1,o&&$e.current!==-1&&Oe?Se(Ue,Te[$e.current],"blur"):o&&v&&Be!==""?Se(Ue,Be,"blur","freeSolo"):s&&Re(Ue,We),dn(Ue,"blur")},It=Ue=>{const Ce=Ue.target.value;Be!==Ce&&(re(Ce),fe(!1),X&&X(Ue,Ce,"input")),Ce===""?!d&&!U&&pn(Ue,null,"clear"):on(Ue)},Ct=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));$e.current!==Ce&&vt({event:Ue,index:Ce,reason:"mouse"})},Zt=Ue=>{vt({event:Ue,index:Number(Ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},Ie=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));Se(Ue,Te[Ce],"selectOption"),zn.current=!1},we=Ue=>Ce=>{const gt=We.slice();gt.splice(Ue,1),pn(Ce,gt,"removeOption",{option:We[Ue]})},Qe=Ue=>{Le?dn(Ue,"toggleInput"):on(Ue)},ot=Ue=>{Ue.currentTarget.contains(Ue.target)&&Ue.target.getAttribute("id")!==ce&&Ue.preventDefault()},rn=Ue=>{Ue.currentTarget.contains(Ue.target)&&(Ne.current.focus(),ve&&xe.current&&Ne.current.selectionEnd-Ne.current.selectionStart===0&&Ne.current.select(),xe.current=!1)},Wt=Ue=>{!h&&(Be===""||!Le)&&Qe(Ue)};let mn=v&&Be.length>0;mn=mn||(U?We.length>0:We!==null);let nr=Te;return w&&(nr=Te.reduce((Ue,Ce,gt)=>{const Dt=w(Ce);return Ue.length>0&&Ue[Ue.length-1].group===Dt?Ue[Ue.length-1].options.push(Ce):Ue.push({key:gt,index:gt,group:Dt,options:[Ce]}),Ue},[])),h&&ee&&$t(),{getRootProps:(Ue={})=>L({"aria-owns":pt?`${ce}-listbox`:null},Ue,{onKeyDown:at(Ue),onMouseDown:ot,onClick:rn}),getInputLabelProps:()=>({id:`${ce}-label`,htmlFor:ce}),getInputProps:()=>({id:ce,value:Be,onBlur:$t,onFocus:Mt,onChange:It,onMouseDown:Wt,"aria-activedescendant":Oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pt?`${ce}-listbox`:void 0,"aria-expanded":pt,autoComplete:"off",ref:Ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Qe}),getTagProps:({index:Ue})=>L({key:Ue,"data-tag-index":Ue,tabIndex:-1},!se&&{onDelete:we(Ue)}),getListboxProps:()=>({role:"listbox",id:`${ce}-listbox`,"aria-labelledby":`${ce}-label`,ref:Nt,onMouseDown:Ue=>{Ue.preventDefault()}}),getOptionProps:({index:Ue,option:Ce})=>{var gt;const Dt=(U?We:[We]).some(Mn=>Mn!=null&&B(Ce,Mn)),tn=S?S(Ce):!1;return{key:(gt=k==null?void 0:k(Ce))!=null?gt:ge(Ce),tabIndex:-1,role:"option",id:`${ce}-option-${Ue}`,onMouseMove:Ct,onClick:Ie,onTouchStart:Zt,"data-option-index":Ue,"aria-disabled":tn,"aria-selected":Dt}},id:ce,inputValue:Be,value:We,dirty:mn,expanded:Oe&&Je,popupOpen:Oe,focused:ee||Ge!==-1,anchorEl:Je,setAnchorEl:Me,focusedTag:Ge,groupedOptions:nr}}const Rme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ime=Ee(sme,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dme=I.forwardRef(function(t,n){var r;const i=Ek(),o=mt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v,slots:S,slotProps:k}=o,C=Ye(o,Rme),w=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,E=L({anchorEl:a,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v},C);return D.jsx(Ime,L({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),Z1=Dme;function Nme(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Pme=["className","color","component","disableGutters","disableSticky","inset"],Lme=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${nt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return wt(a,Nme,t)},Mme=Ee("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>L({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})),_Y=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=Ye(r,Pme),d=L({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=Lme(d);return D.jsx(Mme,L({as:a,className:Ke(p.root,i),ref:n,ownerState:d},c))});_Y.muiSkipListHighlight=!0;const $me=_Y,Fme=ki(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 Bme(e){return At("MuiChip",e)}const Ume=_t("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"]),rr=Ume,jme=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],zme=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${nt(r)}`,`color${nt(i)}`,s&&"clickable",s&&`clickableColor${nt(i)}`,a&&"deletable",a&&`deletableColor${nt(i)}`,`${l}${nt(i)}`],label:["label",`label${nt(r)}`],avatar:["avatar",`avatar${nt(r)}`,`avatarColor${nt(i)}`],icon:["icon",`icon${nt(r)}`,`iconColor${nt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${nt(r)}`,`deleteIconColor${nt(i)}`,`deleteIcon${nt(l)}Color${nt(i)}`]};return wt(u,Bme,t)},Vme=Ee("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${rr.avatar}`]:t.avatar},{[`& .${rr.avatar}`]:t[`avatar${nt(s)}`]},{[`& .${rr.avatar}`]:t[`avatarColor${nt(r)}`]},{[`& .${rr.icon}`]:t.icon},{[`& .${rr.icon}`]:t[`icon${nt(s)}`]},{[`& .${rr.icon}`]:t[`iconColor${nt(i)}`]},{[`& .${rr.deleteIcon}`]:t.deleteIcon},{[`& .${rr.deleteIcon}`]:t[`deleteIcon${nt(s)}`]},{[`& .${rr.deleteIcon}`]:t[`deleteIconColor${nt(r)}`]},{[`& .${rr.deleteIcon}`]:t[`deleteIcon${nt(l)}Color${nt(r)}`]},t.root,t[`size${nt(s)}`],t[`color${nt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${nt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${nt(r)}`],t[l],t[`${l}${nt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return L({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",[`&.${rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${rr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${rr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${rr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${rr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${rr.icon}`]:L({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&L({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${rr.deleteIcon}`]:L({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:cn(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)`:cn(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)`:cn(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&&{[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>L({},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}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(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, &.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>L({},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]}`,[`&.${rr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${rr.avatar}`]:{marginLeft:4},[`& .${rr.avatarSmall}`]:{marginLeft:2},[`& .${rr.icon}`]:{marginLeft:4},[`& .${rr.iconSmall}`]:{marginLeft:2},[`& .${rr.deleteIcon}`]:{marginRight:5},[`& .${rr.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)`:cn(e.palette[t.color].main,.7)}`,[`&.${rr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${rr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:cn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Hme=Ee("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${nt(r)}`]]}})(({ownerState:e})=>L({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 A8(e){return e.key==="Backspace"||e.key==="Delete"}const Wme=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:b,onKeyUp:O,size:y="medium",variant:v="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,C=Ye(r,jme),w=I.useRef(null),E=yn(w,n),$=Z=>{Z.stopPropagation(),m&&m(Z)},P=Z=>{Z.currentTarget===Z.target&&A8(Z)&&Z.preventDefault(),b&&b(Z)},_=Z=>{Z.currentTarget===Z.target&&(m&&A8(Z)?m(Z):Z.key==="Escape"&&w.current&&w.current.blur()),O&&O(Z)},B=a!==!1&&h?!0:a,U=B||m?hs:l||"div",V=L({},r,{component:U,disabled:c,size:y,color:s,iconColor:I.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:B,variant:v}),z=zme(V),W=U===hs?L({component:l||"div",focusVisibleClassName:z.focusVisible},m&&{disableRipple:!0}):{};let X=null;m&&(X=u&&I.isValidElement(u)?I.cloneElement(u,{className:Ke(u.props.className,z.deleteIcon),onClick:$}):D.jsx(Fme,{className:Ke(z.deleteIcon),onClick:$}));let q=null;i&&I.isValidElement(i)&&(q=I.cloneElement(i,{className:Ke(z.avatar,i.props.className)}));let Y=null;return d&&I.isValidElement(d)&&(Y=I.cloneElement(d,{className:Ke(z.icon,d.props.className)})),D.jsxs(Vme,L({as:U,className:Ke(z.root,o),disabled:B&&c?!0:void 0,onClick:h,onKeyDown:P,onKeyUp:_,ref:E,tabIndex:k&&c?-1:S,ownerState:V},W,C,{children:[q||Y,D.jsx(Hme,{className:Ke(z.label),ownerState:V,children:p}),X]}))}),ZN=Wme;function lf({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 Qme=I.createContext(void 0),_k=Qme;function Pu(){return I.useContext(_k)}function RY(e){return D.jsx(lde,L({},e,{defaultTheme:xk,themeId:yp}))}function _8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function uT(e,t=!1){return e&&(_8(e.value)&&e.value!==""||t&&_8(e.defaultValue)&&e.defaultValue!=="")}function Yme(e){return e.startAdornment}function Gme(e){return At("MuiInputBase",e)}const qme=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ja=qme,Zme=["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"],Rk=(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${nt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ik=(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]},Xme=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,b={root:["root",`color${nt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${nt(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return wt(b,Gme,t)},Dk=Ee("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rk})(({theme:e,ownerState:t})=>L({},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",[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&L({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Nk=Ee("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ik})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=L({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"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return L({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] + .${Ja.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ja.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"})}),Kme=D.jsx(RY,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Jme=I.forwardRef(function(t,n){var r;const i=mt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:b=!1,id:O,inputComponent:y="input",inputProps:v={},inputRef:S,maxRows:k,minRows:C,multiline:w=!1,name:E,onBlur:$,onChange:P,onClick:_,onFocus:B,onKeyDown:U,onKeyUp:V,placeholder:z,readOnly:W,renderSuffix:X,rows:q,slotProps:Y={},slots:Z={},startAdornment:j,type:se="text",value:ve}=i,G=Ye(i,Zme),ce=v.value!=null?v.value:ve,{current:ge}=I.useRef(ce!=null),ue=I.useRef(),xe=I.useCallback(Oe=>{},[]),Ne=yn(ue,S,v.ref,xe),[Ve,Je]=I.useState(!1),Me=Pu(),Ge=lf({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ge.focused=Me?Me.focused:Ve,I.useEffect(()=>{!Me&&p&&Ve&&(Je(!1),$&&$())},[Me,p,Ve,$]);const ye=Me&&Me.onFilled,ze=Me&&Me.onEmpty,$e=I.useCallback(Oe=>{uT(Oe)?ye&&ye():ze&&ze()},[ye,ze]);Jr(()=>{ge&&$e({value:ce})},[ce,$e,ge]);const We=Oe=>{if(Ge.disabled){Oe.stopPropagation();return}B&&B(Oe),v.onFocus&&v.onFocus(Oe),Me&&Me.onFocus?Me.onFocus(Oe):Je(!0)},dt=Oe=>{$&&$(Oe),v.onBlur&&v.onBlur(Oe),Me&&Me.onBlur?Me.onBlur(Oe):Je(!1)},Be=(Oe,...Te)=>{if(!ge){const rt=Oe.target||ue.current;if(rt==null)throw new Error(Vd(1));$e({value:rt.value})}v.onChange&&v.onChange(Oe,...Te),P&&P(Oe,...Te)};I.useEffect(()=>{$e(ue.current)},[]);const re=Oe=>{ue.current&&Oe.currentTarget===Oe.target&&ue.current.focus(),_&&_(Oe)};let ee=y,J=v;w&&ee==="input"&&(q?J=L({type:void 0,minRows:q,maxRows:q},J):J=L({type:void 0,maxRows:k,minRows:C},J),ee=AY);const Re=Oe=>{$e(Oe.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};I.useEffect(()=>{Me&&Me.setAdornedStart(!!j)},[Me,j]);const Le=L({},i,{color:Ge.color||"primary",disabled:Ge.disabled,endAdornment:m,error:Ge.error,focused:Ge.focused,formControl:Me,fullWidth:b,hiddenLabel:Ge.hiddenLabel,multiline:w,size:Ge.size,startAdornment:j,type:se}),De=Xme(Le),ie=Z.root||u.Root||Dk,fe=Y.root||c.root||{},de=Z.input||u.Input||Nk;return J=L({},J,(r=Y.input)!=null?r:c.input),D.jsxs(I.Fragment,{children:[!h&&Kme,D.jsxs(ie,L({},fe,!Cu(ie)&&{ownerState:L({},Le,fe.ownerState)},{ref:n,onClick:re},G,{className:Ke(De.root,fe.className,l,W&&"MuiInputBase-readOnly"),children:[j,D.jsx(_k.Provider,{value:null,children:D.jsx(de,L({ownerState:Le,"aria-invalid":Ge.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Ge.disabled,id:O,onAnimationStart:Re,name:E,placeholder:z,readOnly:W,required:Ge.required,rows:q,value:ce,onKeyDown:U,onKeyUp:V,type:se},J,!Cu(de)&&{as:ee,ownerState:L({},Le,J.ownerState)},{ref:Ne,className:Ke(De.input,J.className,W&&"MuiInputBase-readOnly"),onBlur:dt,onChange:Be,onFocus:We}))}),m,X?X(L({},Ge,{startAdornment:j})):null]}))]})}),XN=Jme;function ege(e){return At("MuiInput",e)}const tge=L({},Ja,_t("MuiInput",["root","underline","input"])),od=tge;function nge(e){return At("MuiOutlinedInput",e)}const rge=L({},Ja,_t("MuiOutlinedInput",["root","notchedOutline","input"])),ou=rge;function ige(e){return At("MuiFilledInput",e)}const oge=L({},Ja,_t("MuiFilledInput",["root","underline","input"])),es=oge,IY=ki(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function age(e){return At("MuiAutocomplete",e)}const sge=_t("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"]),Fn=sge;var R8,I8;const lge=["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"],uge=["ref"],cge=["key"],dge=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${nt(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return wt(d,age,t)},fge=Ee("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${Fn.tag}`]:t.tag},{[`& .${Fn.tag}`]:t[`tagSize${nt(s)}`]},{[`& .${Fn.inputRoot}`]:t.inputRoot},{[`& .${Fn.input}`]:t.input},{[`& .${Fn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>L({[`&.${Fn.focused} .${Fn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Fn.tag}`]:L({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Fn.inputRoot}`]:{flexWrap:"wrap",[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:30},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:56},[`& .${Fn.input}`]:{width:0,minWidth:30}},[`& .${od.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${od.root}.${Ja.sizeSmall}`]:{[`& .${od.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ou.root}`]:{padding:9,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Fn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${ou.root}.${Ja.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${es.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${es.input}`]:{padding:"7px 4px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${es.root}.${Ja.sizeSmall}`]:{paddingBottom:1,[`& .${es.input}`]:{padding:"2.5px 4px"}},[`& .${Ja.hiddenLabel}`]:{paddingTop:8},[`& .${es.root}.${Ja.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${es.root}.${Ja.hiddenLabel}.${Ja.sizeSmall}`]:{[`& .${Fn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fn.input}`]:L({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),pge=Ee("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),hge=Ee(eo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),mge=Ee(eo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>L({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>L({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),gge=Ee(Z1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>L({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),bge=Ee(zo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>L({},e.typography.body1,{overflow:"auto"})),yge=Ee("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Oge=Ee("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vge=Ee("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",[`& .${Fn.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"},[`&.${Fn.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"},[`&.${Fn.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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Ege=Ee($me,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Sge=Ee("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),Tge=I.forwardRef(function(t,n){var r,i,o,a;const s=mt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:m=R8||(R8=D.jsx(Spe,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:O=!1,clearText:y="Clear",closeText:v="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:$=!1,disableListWrap:P=!1,disablePortal:_=!1,filterSelectedOptions:B=!1,forcePopupIcon:U="auto",freeSolo:V=!1,fullWidth:z=!1,getLimitTagsText:W=Ce=>`+${Ce}`,getOptionLabel:X,groupBy:q,handleHomeEndKeys:Y=!s.freeSolo,includeInputInList:Z=!1,limitTags:j=-1,ListboxComponent:se="ul",ListboxProps:ve,loading:G=!1,loadingText:ce="Loading…",multiple:ge=!1,noOptionsText:ue="No options",openOnFocus:xe=!1,openText:Ne="Open",PaperComponent:Ve=zo,PopperComponent:Je=Z1,popupIcon:Me=I8||(I8=D.jsx(IY,{})),readOnly:Ge=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:We,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ye(s,lge),{getRootProps:J,getInputProps:Re,getInputLabelProps:Le,getPopupIndicatorProps:De,getClearProps:ie,getTagProps:fe,getListboxProps:de,getOptionProps:Oe,value:Te,dirty:rt,expanded:pt,id:xt,popupOpen:et,focused:vt,focusedTag:qe,anchorEl:it,setAnchorEl:Et,inputValue:Nt,groupedOptions:on}=_me(L({},s,{componentName:"Autocomplete"})),dn=!C&&!E&&rt&&!Ge,pn=(!V||U===!0)&&U!==!1,{onMouseDown:zn}=Re(),{ref:Se}=ve??{},_e=de(),{ref:pe}=_e,lt=Ye(_e,uge),at=yn(pe,Se),$t=X||(Ce=>{var gt;return(gt=Ce.label)!=null?gt:Ce}),It=L({},s,{disablePortal:_,expanded:pt,focused:vt,fullWidth:z,getOptionLabel:$t,hasClearIcon:dn,hasPopupIcon:pn,inputFocused:qe===-1,popupOpen:et,size:Be}),Ct=dge(It);let Zt;if(ge&&Te.length>0){const Ce=gt=>L({className:Ct.tag,disabled:E},fe(gt));We?Zt=We(Te,Ce,It):Zt=Te.map((gt,Dt)=>D.jsx(ZN,L({label:$t(gt),size:Be},Ce({index:Dt}),p)))}if(j>-1&&Array.isArray(Zt)){const Ce=Zt.length-j;!vt&&Ce>0&&(Zt=Zt.splice(0,j),Zt.push(D.jsx("span",{className:Ct.tag,children:W(Ce)},Zt.length)))}const we=ye||(Ce=>D.jsxs("li",{children:[D.jsx(Ege,{className:Ct.groupLabel,ownerState:It,component:"div",children:Ce.group}),D.jsx(Sge,{className:Ct.groupUl,ownerState:It,children:Ce.children})]},Ce.key)),ot=$e||((Ce,gt)=>{const{key:Dt}=Ce,tn=Ye(Ce,cge);return D.jsx("li",L({},tn,{children:$t(gt)}),Dt)}),rn=(Ce,gt)=>{const Dt=Oe({option:Ce,index:gt});return ot(L({},Dt,{className:Ct.option}),Ce,{selected:Dt["aria-selected"],index:gt,inputValue:Nt},It)},Wt=(r=re.clearIndicator)!=null?r:S.clearIndicator,mn=(i=re.paper)!=null?i:S.paper,nr=(o=re.popper)!=null?o:S.popper,Ue=(a=re.popupIndicator)!=null?a:S.popupIndicator;return D.jsxs(I.Fragment,{children:[D.jsx(fge,L({ref:n,className:Ke(Ct.root,h),ownerState:It},J(ee),{children:ze({id:xt,disabled:E,fullWidth:!0,size:Be==="small"?"small":void 0,InputLabelProps:Le(),InputProps:L({ref:Et,className:Ct.inputRoot,startAdornment:Zt,onClick:Ce=>{Ce.target===Ce.currentTarget&&zn(Ce)}},(dn||pn)&&{endAdornment:D.jsxs(pge,{className:Ct.endAdornment,ownerState:It,children:[dn?D.jsx(hge,L({},ie(),{"aria-label":y,title:y,ownerState:It},Wt,{className:Ke(Ct.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,pn?D.jsx(mge,L({},De(),{disabled:E,"aria-label":et?v:Ne,title:et?v:Ne,ownerState:It},Ue,{className:Ke(Ct.popupIndicator,Ue==null?void 0:Ue.className),children:Me})):null]})}),inputProps:L({className:Ct.input,disabled:E,readOnly:Ge},Re())})})),it?D.jsx(gge,L({as:Je,disablePortal:_,style:{width:it?it.clientWidth:null},ownerState:It,role:"presentation",anchorEl:it,open:et},nr,{className:Ke(Ct.popper,nr==null?void 0:nr.className),children:D.jsxs(bge,L({ownerState:It,as:Ve},mn,{className:Ke(Ct.paper,mn==null?void 0:mn.className),children:[G&&on.length===0?D.jsx(yge,{className:Ct.loading,ownerState:It,children:ce}):null,on.length===0&&!V&&!G?D.jsx(Oge,{className:Ct.noOptions,ownerState:It,role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()},children:ue}):null,on.length>0?D.jsx(vge,L({as:se,className:Ct.listbox,ownerState:It},lt,ve,{ref:at,children:on.map((Ce,gt)=>q?we({key:Ce.key,group:Ce.group,children:Ce.options.map((Dt,tn)=>rn(Dt,Ce.index+tn))}):rn(Ce,gt))})):null]}))})):null]})}),wge=Tge,kge=ki(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 xge(e){return At("MuiAvatar",e)}const Cge=_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),Age=Cge,_ge=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Rge=e=>{const{classes:t,variant:n,colorDefault:r}=e;return wt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},xge,t)},Ige=Ee("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>L({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"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&L({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Dge=Ee("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Nge=Ee(kge,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Pge({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=I.useState(!1);return I.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Lge=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:p="circular"}=r,h=Ye(r,_ge);let m=null;const b=Pge(L({},l,{src:c,srcSet:d})),O=c||d,y=O&&b!=="error",v=L({},r,{colorDefault:!y,component:s,variant:p}),S=Rge(v);return y?m=D.jsx(Dge,L({alt:i,srcSet:d,src:c,sizes:u,ownerState:v,className:S.img},l)):o!=null?m=o:O&&i?m=i[0]:m=D.jsx(Nge,{ownerState:v,className:S.fallback}),D.jsx(Ige,L({as:s,ownerState:v,className:Ke(S.root,a),ref:n},h,{children:m}))}),Pk=Lge;function Mge(e){return At("MuiAvatarGroup",e)}const $ge=_t("MuiAvatarGroup",["root","avatar"]),Fge=$ge,Bge=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],D8={small:-16,medium:null},Uge=e=>{const{classes:t}=e;return wt({root:["root"],avatar:["avatar"]},Mge,t)},jge=Ee("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>L({[`& .${Fge.avatar}`]:t.avatar},t.root)})(({theme:e})=>({[`& .${Age.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"})),zge=Ee(Pk,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})(({theme:e})=>({border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}})),Vge=I.forwardRef(function(t,n){var r;const i=mt({props:t,name:"MuiAvatarGroup"}),{children:o,className:a,component:s="div",componentsProps:l={},max:u=5,renderSurplus:c,slotProps:d={},spacing:p="medium",total:h,variant:m="circular"}=i,b=Ye(i,Bge);let O=u<2?2:u;const y=L({},i,{max:u,spacing:p,component:s,variant:m}),v=Uge(y),S=I.Children.toArray(o).filter(_=>I.isValidElement(_)),k=h||S.length;k===O&&(O+=1),O=Math.min(k+1,O);const C=Math.min(S.length,O-1),w=Math.max(k-O,k-C,0),E=c?c(w):`+${w}`,$=p&&D8[p]!==void 0?D8[p]:-p,P=(r=d.additionalAvatar)!=null?r:l.additionalAvatar;return D.jsxs(jge,L({as:s,ownerState:y,className:Ke(v.root,a),ref:n},b,{children:[w?D.jsx(zge,L({ownerState:y,variant:m},P,{className:Ke(v.avatar,P==null?void 0:P.className),style:L({marginLeft:$},P==null?void 0:P.style),children:E})):null,S.slice(0,C).reverse().map((_,B)=>I.cloneElement(_,{className:Ke(_.props.className,v.avatar),style:L({marginLeft:B===C-1?void 0:$},_.props.style),variant:_.props.variant||m}))]}))}),Hge=Vge,Wge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qge={entering:{opacity:1},entered:{opacity:1}},Yge=I.forwardRef(function(t,n){const r=ci(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:b,style:O,timeout:y=i,TransitionComponent:v=Y1}=t,S=Ye(t,Wge),k=I.useRef(null),C=yn(k,s.ref,n),w=z=>W=>{if(z){const X=k.current;W===void 0?z(X):z(X,W)}},E=w(p),$=w((z,W)=>{zN(z);const X=Wd({style:O,timeout:y,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",X),z.style.transition=r.transitions.create("opacity",X),c&&c(z,W)}),P=w(d),_=w(b),B=w(z=>{const W=Wd({style:O,timeout:y,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",W),z.style.transition=r.transitions.create("opacity",W),h&&h(z)}),U=w(m),V=z=>{o&&o(k.current,z)};return D.jsx(v,L({appear:a,in:u,nodeRef:k,onEnter:$,onEntered:P,onEntering:E,onExit:B,onExited:U,onExiting:_,addEndListener:V,timeout:y},S,{children:(z,W)=>I.cloneElement(s,L({style:L({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},Qge[z],O,s.props.style),ref:C},W))}))}),_g=Yge;function Gge(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const qge=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zge=e=>{const{classes:t,invisible:n}=e;return wt({root:["root",n&&"invisible"]},Gge,t)},Xge=Ee("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>L({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"})),Kge=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:b={},TransitionComponent:O=_g,transitionDuration:y}=a,v=Ye(a,qge),S=L({},a,{component:u,invisible:p}),k=Zge(S),C=(r=m.root)!=null?r:d.root;return D.jsx(O,L({in:h,timeout:y},v,{children:D.jsx(Xge,L({"aria-hidden":!0},C,{as:(i=(o=b.root)!=null?o:c.Root)!=null?i:u,className:Ke(k.root,l,C==null?void 0:C.className),ownerState:L({},S,C==null?void 0:C.ownerState),classes:k,ref:n,children:s}))}))}),X1=Kge,Jge=_t("MuiBox",["root"]),e0e=Jge,t0e=LN(),n0e=fde({themeId:yp,defaultTheme:t0e,defaultClassName:e0e.root,generateClassName:CN.generate}),$o=n0e;function r0e(e){return At("MuiButton",e)}const i0e=_t("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"]),Iv=i0e,o0e=I.createContext({}),a0e=o0e,s0e=I.createContext(void 0),l0e=s0e,u0e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],c0e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${nt(t)}`,`size${nt(i)}`,`${o}Size${nt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nt(i)}`],endIcon:["endIcon",`iconSize${nt(i)}`]},l=wt(s,r0e,a);return L({},a,l)},DY=e=>L({},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}}),d0e=Ee(hs,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color)}`],t[`size${nt(n.size)}`],t[`${n.variant}Size${nt(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],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return L({},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":L({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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})`:cn(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})`:cn(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:o,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":L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Iv.focusVisible}`]:L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Iv.disabled}`]:L({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 ${cn(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"},[`&.${Iv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Iv.disabled}`]:{boxShadow:"none"}}),f0e=Ee("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},DY(e))),p0e=Ee("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},DY(e))),h0e=I.forwardRef(function(t,n){const r=I.useContext(a0e),i=I.useContext(l0e),o=pk(r,t),a=mt({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:b,fullWidth:O=!1,size:y="medium",startIcon:v,type:S,variant:k="text"}=a,C=Ye(a,u0e),w=L({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:O,size:y,type:S,variant:k}),E=c0e(w),$=v&&D.jsx(f0e,{className:E.startIcon,ownerState:w,children:v}),P=m&&D.jsx(p0e,{className:E.endIcon,ownerState:w,children:m}),_=i||"";return D.jsxs(d0e,L({ownerState:w,className:Ke(r.className,E.root,c,_),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:Ke(E.focusVisible,b),ref:n,type:S},C,{classes:E,children:[$,s,P]}))}),wl=h0e;function m0e(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const g0e=["className","raised"],b0e=e=>{const{classes:t}=e;return wt({root:["root"]},m0e,t)},y0e=Ee(zo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),O0e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ye(r,g0e),s=L({},r,{raised:o}),l=b0e(s);return D.jsx(y0e,L({className:Ke(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),v0e=O0e;function E0e(e){return At("MuiCardActionArea",e)}const S0e=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),GC=S0e,T0e=["children","className","focusVisibleClassName"],w0e=e=>{const{classes:t}=e;return wt({root:["root"],focusHighlight:["focusHighlight"]},E0e,t)},k0e=Ee(hs,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${GC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${GC.focusVisible} .${GC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),x0e=Ee("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})})),C0e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ye(r,T0e),l=r,u=w0e(l);return D.jsxs(k0e,L({className:Ke(u.root,o),focusVisibleClassName:Ke(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,D.jsx(x0e,{className:u.focusHighlight,ownerState:l})]}))}),A0e=C0e;function _0e(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const R0e=["className","component"],I0e=e=>{const{classes:t}=e;return wt({root:["root"]},_0e,t)},D0e=Ee("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),N0e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ye(r,R0e),s=L({},r,{component:o}),l=I0e(s);return D.jsx(D0e,L({as:o,className:Ke(l.root,i),ownerState:s,ref:n},a))}),P0e=N0e;function L0e(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const M0e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],$0e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${nt(i)}`],input:["input"]};return wt(o,L0e,t)},F0e=Ee(hs)(({ownerState:e})=>L({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),B0e=Ee("input",{shouldForwardProp:no})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),U0e=I.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:b,onBlur:O,onChange:y,onFocus:v,readOnly:S,required:k=!1,tabIndex:C,type:w,value:E}=t,$=Ye(t,M0e),[P,_]=Ji({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),B=Pu(),U=Z=>{v&&v(Z),B&&B.onFocus&&B.onFocus(Z)},V=Z=>{O&&O(Z),B&&B.onBlur&&B.onBlur(Z)},z=Z=>{if(Z.nativeEvent.defaultPrevented)return;const j=Z.target.checked;_(j),y&&y(Z,j)};let W=l;B&&typeof W>"u"&&(W=B.disabled);const X=w==="checkbox"||w==="radio",q=L({},t,{checked:P,disabled:W,disableFocusRipple:u,edge:c}),Y=$0e(q);return D.jsxs(F0e,L({component:"span",className:Ke(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:W,tabIndex:null,role:void 0,onFocus:U,onBlur:V,ownerState:q,ref:n},$,{children:[D.jsx(B0e,L({autoFocus:r,checked:i,defaultChecked:s,className:Y.input,disabled:W,id:X?p:void 0,name:b,onChange:z,readOnly:S,ref:m,required:k,ownerState:q,tabIndex:C,type:w},w==="checkbox"&&E===void 0?{}:{value:E},h)),P?o:d]}))}),KN=U0e,j0e=ki(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"),z0e=ki(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"),V0e=ki(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 H0e(e){return At("MuiCheckbox",e)}const W0e=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),qC=W0e,Q0e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Y0e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${nt(r)}`,`size${nt(i)}`]},a=wt(o,H0e,t);return L({},t,a)},G0e=Ee(KN,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${nt(n.size)}`],n.color!=="default"&&t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${qC.checked}, &.${qC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),q0e=D.jsx(z0e,{}),Z0e=D.jsx(j0e,{}),X0e=D.jsx(V0e,{}),K0e=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=q0e,color:s="primary",icon:l=Z0e,indeterminate:u=!1,indeterminateIcon:c=X0e,inputProps:d,size:p="medium",className:h}=o,m=Ye(o,Q0e),b=u?c:l,O=u?c:a,y=L({},o,{color:s,indeterminate:u,size:p}),v=Y0e(y);return D.jsx(G0e,L({type:"checkbox",inputProps:L({"data-indeterminate":u},d),icon:I.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(O,{fontSize:(i=O.props.fontSize)!=null?i:p}),ownerState:y,ref:n,className:Ke(v.root,h)},m,{classes:v}))}),Lk=K0e;function J0e(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ebe=["className","color","disableShrink","size","style","thickness","value","variant"];let Mk=e=>e,N8,P8,L8,M8;const Hc=44,tbe=V1(N8||(N8=Mk` +`),Ds.rippleVisible,rpe,V_,({theme:e})=>e.transitions.easing.easeInOut,Ds.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ds.child,Ds.childLeaving,ipe,V_,({theme:e})=>e.transitions.easing.easeInOut,Ds.childPulsate,ope,({theme:e})=>e.transitions.easing.easeInOut),lpe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ye(r,tpe),[l,u]=I.useState([]),c=I.useRef(0),d=I.useRef(null);I.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=I.useRef(!1),h=I.useRef(0),m=I.useRef(null),b=I.useRef(null);I.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const O=I.useCallback(k=>{const{pulsate:C,rippleX:w,rippleY:E,rippleSize:$,cb:P}=k;u(_=>[..._,N.jsx(spe,{classes:{ripple:Ke(o.ripple,Ds.ripple),rippleVisible:Ke(o.rippleVisible,Ds.rippleVisible),ripplePulsate:Ke(o.ripplePulsate,Ds.ripplePulsate),child:Ke(o.child,Ds.child),childLeaving:Ke(o.childLeaving,Ds.childLeaving),childPulsate:Ke(o.childPulsate,Ds.childPulsate)},timeout:V_,pulsate:C,rippleX:w,rippleY:E,rippleSize:$},c.current)]),c.current+=1,d.current=P},[o]),y=I.useCallback((k={},C={},w=()=>{})=>{const{pulsate:E=!1,center:$=i||C.pulsate,fakeElement:P=!1}=C;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const _=P?null:b.current,B=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,V,z;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)U=Math.round(B.width/2),V=Math.round(B.height/2);else{const{clientX:W,clientY:X}=k.touches&&k.touches.length>0?k.touches[0]:k;U=Math.round(W-B.left),V=Math.round(X-B.top)}if($)z=Math.sqrt((2*B.width**2+B.height**2)/3),z%2===0&&(z+=1);else{const W=Math.max(Math.abs((_?_.clientWidth:0)-U),U)*2+2,X=Math.max(Math.abs((_?_.clientHeight:0)-V),V)*2+2;z=Math.sqrt(W**2+X**2)}k!=null&&k.touches?m.current===null&&(m.current=()=>{O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},h.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},npe)):O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},[i,O]),v=I.useCallback(()=>{y({},{pulsate:!0})},[y]),S=I.useCallback((k,C)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&m.current){m.current(),m.current=null,h.current=setTimeout(()=>{S(k,C)});return}m.current=null,u(w=>w.length>0?w.slice(1):w),d.current=C},[]);return I.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:S}),[v,y,S]),N.jsx(ape,L({className:Ke(Ds.root,o.root,a),ref:b},s,{children:N.jsx(jD,{component:null,exit:!0,children:l})}))}),upe=lpe;function cpe(e){return At("MuiButtonBase",e)}const dpe=_t("MuiButtonBase",["root","disabled","focusVisible"]),fpe=["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"],ppe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=wt({root:["root",t&&"disabled",n&&"focusVisible"]},cpe,i);return n&&r&&(a.root+=` ${r}`),a},hpe=Ee("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"},[`&.${dpe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mpe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:b,onContextMenu:O,onDragLeave:y,onFocus:v,onFocusVisible:S,onKeyDown:k,onKeyUp:C,onMouseDown:w,onMouseLeave:E,onMouseUp:$,onTouchEnd:P,onTouchMove:_,onTouchStart:B,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:z,type:W}=r,X=Ye(r,fpe),q=I.useRef(null),Y=I.useRef(null),Z=yn(Y,z),{isFocusVisibleRef:j,onFocus:se,onBlur:ve,ref:G}=fk(),[ce,ge]=I.useState(!1);u&&ce&&ge(!1),I.useImperativeHandle(i,()=>({focusVisible:()=>{ge(!0),q.current.focus()}}),[]);const[ue,xe]=I.useState(!1);I.useEffect(()=>{xe(!0)},[]);const De=ue&&!c&&!u;I.useEffect(()=>{ce&&p&&!c&&ue&&Y.current.pulsate()},[c,p,ce,ue]);function Ve(Te,rt,pt=d){return jt(xt=>(rt&&rt(xt),!pt&&Y.current&&Y.current[Te](xt),!0))}const Je=Ve("start",w),Me=Ve("stop",O),Ge=Ve("stop",y),ye=Ve("stop",$),ze=Ve("stop",Te=>{ce&&Te.preventDefault(),E&&E(Te)}),$e=Ve("start",B),We=Ve("stop",P),dt=Ve("stop",_),Be=Ve("stop",Te=>{ve(Te),j.current===!1&&ge(!1),m&&m(Te)},!1),re=jt(Te=>{q.current||(q.current=Te.currentTarget),se(Te),j.current===!0&&(ge(!0),S&&S(Te)),v&&v(Te)}),ee=()=>{const Te=q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},J=I.useRef(!1),Re=jt(Te=>{p&&!J.current&&ce&&Y.current&&Te.key===" "&&(J.current=!0,Y.current.stop(Te,()=>{Y.current.start(Te)})),Te.target===Te.currentTarget&&ee()&&Te.key===" "&&Te.preventDefault(),k&&k(Te),Te.target===Te.currentTarget&&ee()&&Te.key==="Enter"&&!u&&(Te.preventDefault(),b&&b(Te))}),Le=jt(Te=>{p&&Te.key===" "&&Y.current&&ce&&!Te.defaultPrevented&&(J.current=!1,Y.current.stop(Te,()=>{Y.current.pulsate(Te)})),C&&C(Te),b&&Te.target===Te.currentTarget&&ee()&&Te.key===" "&&!Te.defaultPrevented&&b(Te)});let Ne=l;Ne==="button"&&(X.href||X.to)&&(Ne=h);const ie={};Ne==="button"?(ie.type=W===void 0?"button":W,ie.disabled=u):(!X.href&&!X.to&&(ie.role="button"),u&&(ie["aria-disabled"]=u));const fe=yn(n,G,q),de=L({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:ce}),Oe=ppe(de);return N.jsxs(hpe,L({as:Ne,className:Ke(Oe.root,s),ownerState:de,onBlur:Be,onClick:b,onContextMenu:Me,onFocus:re,onKeyDown:Re,onKeyUp:Le,onMouseDown:Je,onMouseLeave:ze,onMouseUp:ye,onDragLeave:Ge,onTouchEnd:We,onTouchMove:dt,onTouchStart:$e,ref:fe,tabIndex:u?-1:U,type:W},ie,X,{children:[a,De?N.jsx(upe,L({ref:Z,center:o},V)):null]}))}),hs=mpe;function gpe(e){return At("MuiIconButton",e)}const bpe=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ype=["edge","children","className","color","disabled","disableFocusRipple","size"],Ope=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${nt(r)}`,i&&`edge${nt(i)}`,`size${nt(o)}`]};return wt(a,gpe,t)},vpe=Ee(hs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(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 L({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&L({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":L({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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)},{[`&.${bpe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Epe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Ye(r,ype),p=L({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Ope(p);return N.jsx(vpe,L({className:Ke(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),eo=Epe,Spe=ki(N.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 Tpe(e){return At("MuiTypography",e)}_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wpe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],kpe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${nt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return wt(s,Tpe,a)},xpe=Ee("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${nt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>L({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})),u8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Cpe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ape=e=>Cpe[e]||e,_pe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTypography"}),i=Ape(r.color),o=Sk(L({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=u8}=o,m=Ye(o,wpe),b=L({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:h}),O=l||(d?"p":h[p]||u8[p])||"span",y=kpe(b);return N.jsx(xpe,L({as:O,ref:n,ownerState:b,className:Ke(y.root,s)},m))}),dr=_pe;function Rpe(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Ipe=["className","color","enableColorOnDark","position"],Npe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${nt(t)}`,`position${nt(n)}`]};return wt(i,Rpe,r)},wv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Dpe=Ee(zo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return L({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&&L({},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"&&L({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&L({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:wv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:wv(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:wv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:wv(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"}))}),Ppe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Ye(r,Ipe),u=L({},r,{color:o,position:s,enableColorOnDark:a}),c=Npe(u);return N.jsx(Dpe,L({square:!0,component:"header",ownerState:u,elevation:4,className:Ke(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),fY=Ppe,pY="base";function Lpe(e){return`${pY}--${e}`}function Mpe(e,t){return`${pY}-${e}-${t}`}function hY(e,t){const n=KQ[t];return n?Lpe(n):Mpe(e,t)}function $pe(e,t){const n={};return t.forEach(r=>{n[r]=hY(e,r)}),n}function c8(e){return e.substring(2).toLowerCase()}function Fpe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=yn(t.ref,s),d=jt(m=>{const b=u.current;u.current=!1;const O=Or(s.current);if(!l.current||!s.current||"clientX"in m&&Fpe(m,O))return;if(a.current){a.current=!1;return}let y;m.composedPath?y=m.composedPath().indexOf(s.current)>-1:y=!O.documentElement.contains(m.target)||s.current.contains(m.target),!y&&(n||!b)&&i(m)}),p=m=>b=>{u.current=!0;const O=t.props[m];O&&O(b)},h={ref:c};return o!==!1&&(h[o]=p(o)),I.useEffect(()=>{if(o!==!1){const m=c8(o),b=Or(s.current),O=()=>{a.current=!0};return b.addEventListener(m,d),b.addEventListener("touchmove",O),()=>{b.removeEventListener(m,d),b.removeEventListener("touchmove",O)}}},[d,o]),r!==!1&&(h[r]=p(r)),I.useEffect(()=>{if(r!==!1){const m=c8(r),b=Or(s.current);return b.addEventListener(m,d),()=>{b.removeEventListener(m,d)}}},[d,r]),N.jsx(I.Fragment,{children:I.cloneElement(t,h)})}const Upe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jpe(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 zpe(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 Vpe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||zpe(e))}function Hpe(e){const t=[],n=[];return Array.from(e.querySelectorAll(Upe)).forEach((r,i)=>{const o=jpe(r);o===-1||!Vpe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,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 Wpe(){return!0}function mY(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Hpe,isEnabled:a=Wpe,open:s}=e,l=I.useRef(!1),u=I.useRef(null),c=I.useRef(null),d=I.useRef(null),p=I.useRef(null),h=I.useRef(!1),m=I.useRef(null),b=yn(t.ref,m),O=I.useRef(null);I.useEffect(()=>{!s||!m.current||(h.current=!n)},[n,s]),I.useEffect(()=>{if(!s||!m.current)return;const S=Or(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),I.useEffect(()=>{if(!s||!m.current)return;const S=Or(m.current),k=E=>{O.current=E,!(r||!a()||E.key!=="Tab")&&S.activeElement===m.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},C=()=>{const E=m.current;if(E===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let $=[];if((S.activeElement===u.current||S.activeElement===c.current)&&($=o(m.current)),$.length>0){var P,_;const B=!!((P=O.current)!=null&&P.shiftKey&&((_=O.current)==null?void 0:_.key)==="Tab"),U=$[0],V=$[$.length-1];typeof U!="string"&&typeof V!="string"&&(B?V.focus():U.focus())}else E.focus()};S.addEventListener("focusin",C),S.addEventListener("keydown",k,!0);const w=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",C),S.removeEventListener("keydown",k,!0)}},[n,r,i,a,s,o]);const y=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0,p.current=S.target;const k=t.props.onFocus;k&&k(S)},v=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0};return N.jsxs(I.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:b,onFocus:y}),N.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var _a="top",el="bottom",tl="right",Ra="left",VD="auto",G1=[_a,el,tl,Ra],tg="start",Ay="end",Qpe="clippingParents",gY="viewport",v0="popper",Ype="reference",d8=G1.reduce(function(e,t){return e.concat([t+"-"+tg,t+"-"+Ay])},[]),bY=[].concat(G1,[VD]).reduce(function(e,t){return e.concat([t,t+"-"+tg,t+"-"+Ay])},[]),Gpe="beforeRead",qpe="read",Zpe="afterRead",Xpe="beforeMain",Kpe="main",Jpe="afterMain",ehe="beforeWrite",the="write",nhe="afterWrite",rhe=[Gpe,qpe,Zpe,Xpe,Kpe,Jpe,ehe,the,nhe];function Nu(e){return e?(e.nodeName||"").toLowerCase():null}function ms(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ep(e){var t=ms(e).Element;return e instanceof t||e instanceof Element}function Ws(e){var t=ms(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HD(e){if(typeof ShadowRoot>"u")return!1;var t=ms(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ihe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ws(o)||!Nu(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function ohe(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],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Ws(i)||!Nu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const ahe={name:"applyStyles",enabled:!0,phase:"write",fn:ihe,effect:ohe,requires:["computeStyles"]};function Au(e){return e.split("-")[0]}var cp=Math.max,sT=Math.min,ng=Math.round;function H_(){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 yY(){return!/^((?!chrome|android).)*safari/i.test(H_())}function rg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ws(e)&&(i=e.offsetWidth>0&&ng(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ng(r.height)/e.offsetHeight||1);var a=Ep(e)?ms(e):window,s=a.visualViewport,l=!yY()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function WD(e){var t=rg(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 OY(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HD(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Tc(e){return ms(e).getComputedStyle(e)}function she(e){return["table","td","th"].indexOf(Nu(e))>=0}function sf(e){return((Ep(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ak(e){return Nu(e)==="html"?e:e.assignedSlot||e.parentNode||(HD(e)?e.host:null)||sf(e)}function f8(e){return!Ws(e)||Tc(e).position==="fixed"?null:e.offsetParent}function lhe(e){var t=/firefox/i.test(H_()),n=/Trident/i.test(H_());if(n&&Ws(e)){var r=Tc(e);if(r.position==="fixed")return null}var i=Ak(e);for(HD(i)&&(i=i.host);Ws(i)&&["html","body"].indexOf(Nu(i))<0;){var o=Tc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function q1(e){for(var t=ms(e),n=f8(e);n&&she(n)&&Tc(n).position==="static";)n=f8(n);return n&&(Nu(n)==="html"||Nu(n)==="body"&&Tc(n).position==="static")?t:n||lhe(e)||t}function QD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _b(e,t,n){return cp(e,sT(t,n))}function uhe(e,t,n){var r=_b(e,t,n);return r>n?n:r}function vY(){return{top:0,right:0,bottom:0,left:0}}function EY(e){return Object.assign({},vY(),e)}function SY(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var che=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,EY(typeof t!="number"?t:SY(t,G1))};function dhe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Au(n.placement),l=QD(s),u=[Ra,tl].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=che(i.padding,n),p=WD(o),h=l==="y"?_a:Ra,m=l==="y"?el:tl,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],O=a[l]-n.rects.reference[l],y=q1(o),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-O/2,k=d[h],C=v-p[c]-d[m],w=v/2-p[c]/2+S,E=_b(k,w,C),$=l;n.modifiersData[r]=(t={},t[$]=E,t.centerOffset=E-w,t)}}function fhe(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)||OY(t.elements.popper,i)&&(t.elements.arrow=i))}const phe={name:"arrow",enabled:!0,phase:"main",fn:dhe,effect:fhe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ig(e){return e.split("-")[1]}var hhe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mhe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ng(n*i)/i||0,y:ng(r*i)/i||0}}function p8(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,b=m===void 0?0:m,O=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=O.x,b=O.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=Ra,k=_a,C=window;if(u){var w=q1(n),E="clientHeight",$="clientWidth";if(w===ms(n)&&(w=sf(n),Tc(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",$="scrollWidth")),w=w,i===_a||(i===Ra||i===tl)&&o===Ay){k=el;var P=d&&w===C&&C.visualViewport?C.visualViewport.height:w[E];b-=P-r.height,b*=l?1:-1}if(i===Ra||(i===_a||i===el)&&o===Ay){S=tl;var _=d&&w===C&&C.visualViewport?C.visualViewport.width:w[$];h-=_-r.width,h*=l?1:-1}}var B=Object.assign({position:s},u&&hhe),U=c===!0?mhe({x:h,y:b},ms(n)):{x:h,y:b};if(h=U.x,b=U.y,l){var V;return Object.assign({},B,(V={},V[k]=v?"0":"",V[S]=y?"0":"",V.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",V))}return Object.assign({},B,(t={},t[k]=v?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function ghe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Au(t.placement),variation:ig(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,p8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bhe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ghe,data:{}};var kv={passive:!0};function yhe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ms(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,kv)}),s&&l.addEventListener("resize",n.update,kv),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,kv)}),s&&l.removeEventListener("resize",n.update,kv)}}const Ohe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yhe,data:{}};var vhe={left:"right",right:"left",bottom:"top",top:"bottom"};function WE(e){return e.replace(/left|right|bottom|top/g,function(t){return vhe[t]})}var Ehe={start:"end",end:"start"};function h8(e){return e.replace(/start|end/g,function(t){return Ehe[t]})}function YD(e){var t=ms(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function GD(e){return rg(sf(e)).left+YD(e).scrollLeft}function She(e,t){var n=ms(e),r=sf(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=yY();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+GD(e),y:l}}function The(e){var t,n=sf(e),r=YD(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=cp(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=cp(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+GD(e),l=-r.scrollTop;return Tc(i||n).direction==="rtl"&&(s+=cp(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function qD(e){var t=Tc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function TY(e){return["html","body","#document"].indexOf(Nu(e))>=0?e.ownerDocument.body:Ws(e)&&qD(e)?e:TY(Ak(e))}function Rb(e,t){var n;t===void 0&&(t=[]);var r=TY(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ms(r),a=i?[o].concat(o.visualViewport||[],qD(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Rb(Ak(a)))}function W_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function whe(e,t){var n=rg(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 m8(e,t,n){return t===gY?W_(She(e,n)):Ep(t)?whe(t,n):W_(The(sf(e)))}function khe(e){var t=Rb(Ak(e)),n=["absolute","fixed"].indexOf(Tc(e).position)>=0,r=n&&Ws(e)?q1(e):e;return Ep(r)?t.filter(function(i){return Ep(i)&&OY(i,r)&&Nu(i)!=="body"}):[]}function xhe(e,t,n,r){var i=t==="clippingParents"?khe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=m8(e,u,r);return l.top=cp(c.top,l.top),l.right=sT(c.right,l.right),l.bottom=sT(c.bottom,l.bottom),l.left=cp(c.left,l.left),l},m8(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wY(e){var t=e.reference,n=e.element,r=e.placement,i=r?Au(r):null,o=r?ig(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case _a:l={x:a,y:t.y-n.height};break;case el:l={x:a,y:t.y+t.height};break;case tl:l={x:t.x+t.width,y:s};break;case Ra:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?QD(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case tg:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Ay:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function _y(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Qpe:s,u=n.rootBoundary,c=u===void 0?gY:u,d=n.elementContext,p=d===void 0?v0:d,h=n.altBoundary,m=h===void 0?!1:h,b=n.padding,O=b===void 0?0:b,y=EY(typeof O!="number"?O:SY(O,G1)),v=p===v0?Ype:v0,S=e.rects.popper,k=e.elements[m?v:p],C=xhe(Ep(k)?k:k.contextElement||sf(e.elements.popper),l,c,a),w=rg(e.elements.reference),E=wY({reference:w,element:S,strategy:"absolute",placement:i}),$=W_(Object.assign({},S,E)),P=p===v0?$:w,_={top:C.top-P.top+y.top,bottom:P.bottom-C.bottom+y.bottom,left:C.left-P.left+y.left,right:P.right-C.right+y.right},B=e.modifiersData.offset;if(p===v0&&B){var U=B[i];Object.keys(_).forEach(function(V){var z=[tl,el].indexOf(V)>=0?1:-1,W=[_a,el].indexOf(V)>=0?"y":"x";_[V]+=U[W]*z})}return _}function Che(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?bY:l,c=ig(r),d=c?s?d8:d8.filter(function(m){return ig(m)===c}):G1,p=d.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,b){return m[b]=_y(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[Au(b)],m},{});return Object.keys(h).sort(function(m,b){return h[m]-h[b]})}function Ahe(e){if(Au(e)===VD)return[];var t=WE(e);return[h8(e),t,h8(t)]}function _he(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,b=n.allowedAutoPlacements,O=t.options.placement,y=Au(O),v=y===O,S=l||(v||!m?[WE(O)]:Ahe(O)),k=[O].concat(S).reduce(function(ce,ge){return ce.concat(Au(ge)===VD?Che(t,{placement:ge,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:b}):ge)},[]),C=t.rects.reference,w=t.rects.popper,E=new Map,$=!0,P=k[0],_=0;_=0,W=z?"width":"height",X=_y(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),q=z?V?tl:Ra:V?el:_a;C[W]>w[W]&&(q=WE(q));var Y=WE(q),Z=[];if(o&&Z.push(X[U]<=0),s&&Z.push(X[q]<=0,X[Y]<=0),Z.every(function(ce){return ce})){P=B,$=!1;break}E.set(B,Z)}if($)for(var j=m?3:1,se=function(ge){var ue=k.find(function(xe){var De=E.get(xe);if(De)return De.slice(0,ge).every(function(Ve){return Ve})});if(ue)return P=ue,"break"},ve=j;ve>0;ve--){var G=se(ve);if(G==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const Rhe={name:"flip",enabled:!0,phase:"main",fn:_he,requiresIfExists:["offset"],data:{_skip:!1}};function g8(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 b8(e){return[_a,tl,el,Ra].some(function(t){return e[t]>=0})}function Ihe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=_y(t,{elementContext:"reference"}),s=_y(t,{altBoundary:!0}),l=g8(a,r),u=g8(s,i,o),c=b8(l),d=b8(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Nhe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ihe};function Dhe(e,t,n){var r=Au(e),i=[Ra,_a].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ra,tl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Phe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=bY.reduce(function(c,d){return c[d]=Dhe(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Lhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Phe};function Mhe(e){var t=e.state,n=e.name;t.modifiersData[n]=wY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $he={name:"popperOffsets",enabled:!0,phase:"read",fn:Mhe,data:{}};function Fhe(e){return e==="x"?"y":"x"}function Bhe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,b=m===void 0?0:m,O=_y(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Au(t.placement),v=ig(t.placement),S=!v,k=QD(y),C=Fhe(k),w=t.modifiersData.popperOffsets,E=t.rects.reference,$=t.rects.popper,P=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,_=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(w){if(o){var V,z=k==="y"?_a:Ra,W=k==="y"?el:tl,X=k==="y"?"height":"width",q=w[k],Y=q+O[z],Z=q-O[W],j=h?-$[X]/2:0,se=v===tg?E[X]:$[X],ve=v===tg?-$[X]:-E[X],G=t.elements.arrow,ce=h&&G?WD(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vY(),ue=ge[z],xe=ge[W],De=_b(0,E[X],ce[X]),Ve=S?E[X]/2-j-De-ue-_.mainAxis:se-De-ue-_.mainAxis,Je=S?-E[X]/2+j+De+xe+_.mainAxis:ve+De+xe+_.mainAxis,Me=t.elements.arrow&&q1(t.elements.arrow),Ge=Me?k==="y"?Me.clientTop||0:Me.clientLeft||0:0,ye=(V=B==null?void 0:B[k])!=null?V:0,ze=q+Ve-ye-Ge,$e=q+Je-ye,We=_b(h?sT(Y,ze):Y,q,h?cp(Z,$e):Z);w[k]=We,U[k]=We-q}if(s){var dt,Be=k==="x"?_a:Ra,re=k==="x"?el:tl,ee=w[C],J=C==="y"?"height":"width",Re=ee+O[Be],Le=ee-O[re],Ne=[_a,Ra].indexOf(y)!==-1,ie=(dt=B==null?void 0:B[C])!=null?dt:0,fe=Ne?Re:ee-E[J]-$[J]-ie+_.altAxis,de=Ne?ee+E[J]+$[J]-ie-_.altAxis:Le,Oe=h&&Ne?uhe(fe,ee,de):_b(h?fe:Re,ee,h?de:Le);w[C]=Oe,U[C]=Oe-ee}t.modifiersData[r]=U}}const Uhe={name:"preventOverflow",enabled:!0,phase:"main",fn:Bhe,requiresIfExists:["offset"]};function jhe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zhe(e){return e===ms(e)||!Ws(e)?YD(e):jhe(e)}function Vhe(e){var t=e.getBoundingClientRect(),n=ng(t.width)/e.offsetWidth||1,r=ng(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hhe(e,t,n){n===void 0&&(n=!1);var r=Ws(t),i=Ws(t)&&Vhe(t),o=sf(t),a=rg(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Nu(t)!=="body"||qD(o))&&(s=zhe(t)),Ws(t)?(l=rg(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=GD(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Whe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Qhe(e){var t=Whe(e);return rhe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Yhe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ghe(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 y8={placement:"bottom",modifiers:[],strategy:"absolute"};function O8(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(Khe(i)||document.body)},[i,o]),Jr(()=>{if(a&&!o)return Cy(n,a),()=>{Cy(n,null)}},[n,a,o]),o){if(I.isValidElement(r)){const u={ref:l};return I.cloneElement(r,u)}return N.jsx(I.Fragment,{children:r})}return N.jsx(I.Fragment,{children:a&&wg.createPortal(r,a)})}),xY="Popper";function Jhe(e){return hY(xY,e)}$pe(xY,["root"]);const eme=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tme=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nme(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 Q_(e){return typeof e=="function"?e():e}function rme(e){return e.nodeType!==void 0}const ime=()=>wt({root:["root"]},Xfe(Jhe)),ome={},ame=I.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:b}=t,O=Ye(t,eme),y=I.useRef(null),v=yn(y,n),S=I.useRef(null),k=yn(S,p),C=I.useRef(k);Jr(()=>{C.current=k},[k]),I.useImperativeHandle(p,()=>S.current,[]);const w=nme(c,a),[E,$]=I.useState(w),[P,_]=I.useState(Q_(i));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{i&&_(Q_(i))},[i]),Jr(()=>{if(!P||!u)return;const W=Y=>{$(Y.placement)};let X=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{W(Y)}}];l!=null&&(X=X.concat(l)),d&&d.modifiers!=null&&(X=X.concat(d.modifiers));const q=Xhe(P,y.current,L({placement:w},d,{modifiers:X}));return C.current(q),()=>{q.destroy(),C.current(null)}},[P,s,l,u,d,w]);const B={placement:E};b!==null&&(B.TransitionProps=b);const U=ime(),V=(r=m.root)!=null?r:"div",z=kn({elementType:V,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:U.root});return N.jsx(V,L({},z,{children:typeof o=="function"?o(B):o}))}),sme=I.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=ome,popperRef:h,style:m,transition:b=!1,slotProps:O={},slots:y={}}=t,v=Ye(t,tme),[S,k]=I.useState(!0),C=()=>{k(!1)},w=()=>{k(!0)};if(!l&&!c&&(!b||S))return null;let E;if(o)E=o;else if(r){const _=Q_(r);E=_&&rme(_)?Or(_).body:Or(null).body}const $=!c&&l&&(!b||S)?"none":void 0,P=b?{in:c,onEnter:C,onExited:w}:void 0;return N.jsx(kY,{disablePortal:s,container:E,children:N.jsx(ame,L({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:d,popperOptions:p,popperRef:h,slotProps:O,slots:y},v,{style:L({position:"fixed",top:0,left:0,display:$},m),TransitionProps:P,children:i}))})});function lme(e){const t=Or(e);return t.body===e?Js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ib(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function v8(e){return parseInt(Js(e).getComputedStyle(e).paddingRight,10)||0}function ume(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 E8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!ume(a);s&&l&&Ib(a,i)})}function QC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function cme(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lme(r)){const a=ZQ(Or(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${v8(r)+a}px`;const s=Or(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${v8(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Or(r).body;else{const a=r.parentElement,s=Js(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function dme(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fme{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&&Ib(t.modalRef,!1);const i=dme(n);E8(n,t.mount,t.modalRef,i,!0);const o=QC(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=QC(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=cme(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=QC(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Ib(t.modalRef,n),E8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&Ib(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function pme(e){return typeof e=="function"?e():e}function hme(e){return e?e.props.hasOwnProperty("in"):!1}const mme=new fme;function gme(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=mme,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=I.useRef({}),h=I.useRef(null),m=I.useRef(null),b=yn(m,d),[O,y]=I.useState(!c),v=hme(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>Or(h.current),C=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{i.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=jt(()=>{const X=pme(t)||k().body;i.add(C(),X),m.current&&w()}),$=I.useCallback(()=>i.isTopModal(C()),[i]),P=jt(X=>{h.current=X,X&&(c&&$()?w():m.current&&Ib(m.current,S))}),_=I.useCallback(()=>{i.remove(C(),S)},[S,i]);I.useEffect(()=>()=>{_()},[_]),I.useEffect(()=>{c?E():(!v||!o)&&_()},[c,_,v,o,E]);const B=X=>q=>{var Y;(Y=X.onKeyDown)==null||Y.call(X,q),!(q.key!=="Escape"||q.which===229||!$())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},U=X=>q=>{var Y;(Y=X.onClick)==null||Y.call(X,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(X={})=>{const q=Ab(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Y=L({},q,X);return L({role:"presentation"},Y,{onKeyDown:B(Y),ref:b})},getBackdropProps:(X={})=>{const q=X;return L({"aria-hidden":!0},q,{onClick:U(q),open:c})},getTransitionProps:()=>{const X=()=>{y(!1),a&&a()},q=()=>{y(!0),s&&s(),o&&_()};return{onEnter:nT(X,l==null?void 0:l.props.onEnter),onExited:nT(q,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:P,isTopModal:$,exited:O,hasTransition:v}}const bme=2;function CY(e,t){return e-t}function S8(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const s=Math.abs(t-o);return i===null||s({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}%`})}},Sme=e=>e;let _v;function w8(){return _v===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?_v=CSS.supports("touch-action","none"):_v=!0),_v}function Tme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:h,scale:m=Sme,step:b=1,tabIndex:O,value:y}=e,v=I.useRef(),[S,k]=I.useState(-1),[C,w]=I.useState(-1),[E,$]=I.useState(!1),P=I.useRef(0),[_,B]=Ji({controlled:y,default:n??l,name:"Slider"}),U=c&&((ie,fe,de)=>{const Oe=ie.nativeEvent||ie,Te=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Te,"target",{writable:!0,value:{value:fe,name:u}}),c(Te,fe,de)}),V=Array.isArray(_);let z=V?_.slice().sort(CY):[_];z=z.map(ie=>ie==null?l:wh(ie,l,s));const W=a===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((ie,fe)=>({value:l+b*fe})):a||[],X=W.map(ie=>ie.value),{isFocusVisibleRef:q,onBlur:Y,onFocus:Z,ref:j}=fk(),[se,ve]=I.useState(-1),G=I.useRef(),ce=yn(j,G),ge=yn(h,ce),ue=ie=>fe=>{var de;const Oe=Number(fe.currentTarget.getAttribute("data-index"));Z(fe),q.current===!0&&ve(Oe),w(Oe),ie==null||(de=ie.onFocus)==null||de.call(ie,fe)},xe=ie=>fe=>{var de;Y(fe),q.current===!1&&ve(-1),w(-1),ie==null||(de=ie.onBlur)==null||de.call(ie,fe)};Jr(()=>{if(r&&G.current.contains(document.activeElement)){var ie;(ie=document.activeElement)==null||ie.blur()}},[r]),r&&S!==-1&&k(-1),r&&se!==-1&&ve(-1);const De=ie=>fe=>{var de;(de=ie.onChange)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index")),Te=z[Oe],rt=X.indexOf(Te);let pt=fe.target.valueAsNumber;if(W&&b==null){const xt=X[X.length-1];pt>xt?pt=xt:pt{const{current:de}=G,{width:Oe,height:Te,bottom:rt,left:pt}=de.getBoundingClientRect();let xt;Je.indexOf("vertical")===0?xt=(rt-ie.y)/Te:xt=(ie.x-pt)/Oe,Je.indexOf("-reverse")!==-1&&(xt=1-xt);let et;if(et=yme(xt,l,s),b)et=vme(et,b,l);else{const qe=S8(X,et);et=X[qe]}et=wh(et,l,s);let vt=0;if(V){fe?vt=Ve.current:vt=S8(z,et),i&&(et=wh(et,z[vt-1]||-1/0,z[vt+1]||1/0));const qe=et;et=T8({values:z,newValue:et,index:vt}),i&&fe||(vt=et.indexOf(qe),Ve.current=vt)}return{newValue:et,activeIndex:vt}},Ge=jt(ie=>{const fe=xv(ie,v);if(!fe)return;if(P.current+=1,ie.type==="mousemove"&&ie.buttons===0){ye(ie);return}const{newValue:de,activeIndex:Oe}=Me({finger:fe,move:!0});Cv({sliderRef:G,activeIndex:Oe,setActive:k}),B(de),!E&&P.current>bme&&$(!0),U&&!Av(de,_)&&U(ie,de,Oe)}),ye=jt(ie=>{const fe=xv(ie,v);if($(!1),!fe)return;const{newValue:de}=Me({finger:fe,move:!0});k(-1),ie.type==="touchend"&&w(-1),d&&d(ie,de),v.current=void 0,$e()}),ze=jt(ie=>{if(r)return;w8()||ie.preventDefault();const fe=ie.changedTouches[0];fe!=null&&(v.current=fe.identifier);const de=xv(ie,v);if(de!==!1){const{newValue:Te,activeIndex:rt}=Me({finger:de});Cv({sliderRef:G,activeIndex:rt,setActive:k}),B(Te),U&&!Av(Te,_)&&U(ie,Te,rt)}P.current=0;const Oe=Or(G.current);Oe.addEventListener("touchmove",Ge,{passive:!0}),Oe.addEventListener("touchend",ye,{passive:!0})}),$e=I.useCallback(()=>{const ie=Or(G.current);ie.removeEventListener("mousemove",Ge),ie.removeEventListener("mouseup",ye),ie.removeEventListener("touchmove",Ge),ie.removeEventListener("touchend",ye)},[ye,Ge]);I.useEffect(()=>{const{current:ie}=G;return ie.addEventListener("touchstart",ze,{passive:w8()}),()=>{ie.removeEventListener("touchstart",ze),$e()}},[$e,ze]),I.useEffect(()=>{r&&$e()},[r,$e]);const We=ie=>fe=>{var de;if((de=ie.onMouseDown)==null||de.call(ie,fe),r||fe.defaultPrevented||fe.button!==0)return;fe.preventDefault();const Oe=xv(fe,v);if(Oe!==!1){const{newValue:rt,activeIndex:pt}=Me({finger:Oe});Cv({sliderRef:G,activeIndex:pt,setActive:k}),B(rt),U&&!Av(rt,_)&&U(fe,rt,pt)}P.current=0;const Te=Or(G.current);Te.addEventListener("mousemove",Ge,{passive:!0}),Te.addEventListener("mouseup",ye)},dt=lT(V?z[0]:l,l,s),Be=lT(z[z.length-1],l,s)-dt,re=(ie={})=>{const fe=Ab(ie),de={onMouseDown:We(fe||{})},Oe=L({},fe,de);return L({},ie,{ref:ge},Oe)},ee=ie=>fe=>{var de;(de=ie.onMouseOver)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index"));w(Oe)},J=ie=>fe=>{var de;(de=ie.onMouseLeave)==null||de.call(ie,fe),w(-1)};return{active:S,axis:Je,axisProps:Eme,dragging:E,focusedThumbIndex:se,getHiddenInputProps:(ie={})=>{var fe;const de=Ab(ie),Oe={onChange:De(de||{}),onFocus:ue(de||{}),onBlur:xe(de||{})},Te=L({},de,Oe);return L({tabIndex:O,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(fe=e.step)!=null?fe:void 0,disabled:r},ie,Te,{style:L({},uce,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const fe=Ab(ie),de={onMouseOver:ee(fe||{}),onMouseLeave:J(fe||{})};return L({},ie,fe,de)},marks:W,open:C,range:V,rootRef:ge,trackLeap:Be,trackOffset:dt,values:z,getThumbStyle:ie=>({pointerEvents:S!==-1&&S!==ie?"none":void 0})}}const wme=["onChange","maxRows","minRows","style","value"];function Rv(e){return parseInt(e,10)||0}const kme={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function k8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const AY=I.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ye(t,wme),{current:u}=I.useRef(s!=null),c=I.useRef(null),d=yn(n,c),p=I.useRef(null),h=I.useRef(0),[m,b]=I.useState({outerHeightStyle:0}),O=I.useCallback(()=>{const k=c.current,w=Js(k).getComputedStyle(k);if(w.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=w.width,E.value=k.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const $=w.boxSizing,P=Rv(w.paddingBottom)+Rv(w.paddingTop),_=Rv(w.borderBottomWidth)+Rv(w.borderTopWidth),B=E.scrollHeight;E.value="x";const U=E.scrollHeight;let V=B;o&&(V=Math.max(Number(o)*U,V)),i&&(V=Math.min(Number(i)*U,V)),V=Math.max(V,U);const z=V+($==="border-box"?P+_:0),W=Math.abs(V-B)<=1;return{outerHeightStyle:z,overflow:W}},[i,o,t.placeholder]),y=(k,C)=>{const{outerHeightStyle:w,overflow:E}=C;return h.current<20&&(w>0&&Math.abs((k.outerHeightStyle||0)-w)>1||k.overflow!==E)?(h.current+=1,{overflow:E,outerHeightStyle:w}):k},v=I.useCallback(()=>{const k=O();k8(k)||b(C=>y(C,k))},[O]);Jr(()=>{const k=()=>{const B=O();k8(B)||wg.flushSync(()=>{b(U=>y(U,B))})},C=()=>{h.current=0,k()};let w;const E=Cg(C),$=c.current,P=Js($);P.addEventListener("resize",E);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(C),_.observe($)),()=>{E.clear(),cancelAnimationFrame(w),P.removeEventListener("resize",E),_&&_.disconnect()}},[O]),Jr(()=>{v()}),I.useEffect(()=>{h.current=0},[s]);const S=k=>{h.current=0,u||v(),r&&r(k)};return N.jsxs(I.Fragment,{children:[N.jsx("textarea",L({value:s,onChange:S,ref:d,rows:o,style:L({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:L({},kme.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function x8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function xme(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=x8(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=x8(h)),i==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function YC(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 _me(e){const{unstable_isActiveElementInListbox:t=Ame,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:b=!1,filterOptions:O=Cme,filterSelectedOptions:y=!1,freeSolo:v=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:C=Ue=>{var Ce;return(Ce=Ue.label)!=null?Ce:Ue},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:$,includeInputInList:P=!1,inputValue:_,isOptionEqualToValue:B=(Ue,Ce)=>Ue===Ce,multiple:U=!1,onChange:V,onClose:z,onHighlightChange:W,onInputChange:X,onOpen:q,open:Y,openOnFocus:Z=!1,options:j,readOnly:se=!1,selectOnFocus:ve=!e.freeSolo,value:G}=e,ce=Fl($);let ge=C;ge=Ue=>{const Ce=C(Ue);return typeof Ce!="string"?String(Ce):Ce};const ue=I.useRef(!1),xe=I.useRef(!0),De=I.useRef(null),Ve=I.useRef(null),[Je,Me]=I.useState(null),[Ge,ye]=I.useState(-1),ze=i?0:-1,$e=I.useRef(ze),[We,dt]=Ji({controlled:G,default:c,name:u}),[Be,re]=Ji({controlled:_,default:"",name:u,state:"inputValue"}),[ee,J]=I.useState(!1),Re=I.useCallback((Ue,Ce)=>{if(!(U?We.length!(y&&(U?We:[We]).some(Ce=>Ce!==null&&B(Ue,Ce)))),{inputValue:de&&ie?"":Be,getOptionLabel:ge}):[],rt=ace({filteredOptions:Te,value:We,inputValue:Be});I.useEffect(()=>{const Ue=We!==rt.value;ee&&!Ue||v&&!Ue||Re(null,We)},[We,Re,ee,rt.value,v]);const pt=Le&&Te.length>0&&!se,xt=jt(Ue=>{Ue===-1?De.current.focus():Je.querySelector(`[data-tag-index="${Ue}"]`).focus()});I.useEffect(()=>{U&&Ge>We.length-1&&(ye(-1),xt(-1))},[We,U,Ge,xt]);function et(Ue,Ce){if(!Ve.current||Ue<0||Ue>=Te.length)return-1;let gt=Ue;for(;;){const Nt=Ve.current.querySelector(`[data-option-index="${gt}"]`),tn=m?!1:!Nt||Nt.disabled||Nt.getAttribute("aria-disabled")==="true";if(Nt&&Nt.hasAttribute("tabindex")&&!tn)return gt;if(Ce==="next"?gt=(gt+1)%Te.length:gt=(gt-1+Te.length)%Te.length,gt===Ue)return-1}}const vt=jt(({event:Ue,index:Ce,reason:gt="auto"})=>{if($e.current=Ce,Ce===-1?De.current.removeAttribute("aria-activedescendant"):De.current.setAttribute("aria-activedescendant",`${ce}-option-${Ce}`),W&&W(Ue,Ce===-1?null:Te[Ce],gt),!Ve.current)return;const Nt=Ve.current.querySelector(`[role="option"].${n}-focused`);Nt&&(Nt.classList.remove(`${n}-focused`),Nt.classList.remove(`${n}-focusVisible`));let tn=Ve.current;if(Ve.current.getAttribute("role")!=="listbox"&&(tn=Ve.current.parentElement.querySelector('[role="listbox"]')),!tn)return;if(Ce===-1){tn.scrollTop=0;return}const Mn=Ve.current.querySelector(`[data-option-index="${Ce}"]`);if(Mn&&(Mn.classList.add(`${n}-focused`),gt==="keyboard"&&Mn.classList.add(`${n}-focusVisible`),tn.scrollHeight>tn.clientHeight&>!=="mouse"&>!=="touch")){const Nn=Mn,Kt=tn.clientHeight+tn.scrollTop,bn=Nn.offsetTop+Nn.offsetHeight;bn>Kt?tn.scrollTop=bn-tn.clientHeight:Nn.offsetTop-Nn.offsetHeight*(w?1.3:0){if(!Oe)return;const Mn=et((()=>{const Nn=Te.length-1;if(Ce==="reset")return ze;if(Ce==="start")return 0;if(Ce==="end")return Nn;const Kt=$e.current+Ce;return Kt<0?Kt===-1&&P?-1:b&&$e.current!==-1||Math.abs(Ce)>1?0:Nn:Kt>Nn?Kt===Nn+1&&P?-1:b||Math.abs(Ce)>1?Nn:0:Kt})(),gt);if(vt({index:Mn,reason:Nt,event:Ue}),r&&Ce!=="reset")if(Mn===-1)De.current.value=Be;else{const Nn=ge(Te[Mn]);De.current.value=Nn,Nn.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&De.current.setSelectionRange(Be.length,Nn.length)}}),it=()=>{const Ue=(Ce,gt)=>{const Nt=Ce?ge(Ce):"",tn=gt?ge(gt):"";return Nt===tn};if($e.current!==-1&&rt.filteredOptions&&rt.filteredOptions.length!==Te.length&&rt.inputValue===Be&&(U?We.length===rt.value.length&&rt.value.every((Ce,gt)=>ge(We[gt])===ge(Ce)):Ue(rt.value,We))){const Ce=rt.filteredOptions[$e.current];if(Ce&&Te.some(Nt=>ge(Nt)===ge(Ce)))return!0}return!1},Et=I.useCallback(()=>{if(!Oe||it())return;const Ue=U?We[0]:We;if(Te.length===0||Ue==null){qe({diff:"reset"});return}if(Ve.current){if(Ue!=null){const Ce=Te[$e.current];if(U&&Ce&&YC(We,Nt=>B(Ce,Nt))!==-1)return;const gt=YC(Te,Nt=>B(Nt,Ue));gt===-1?qe({diff:"reset"}):vt({index:gt});return}if($e.current>=Te.length-1){vt({index:Te.length-1});return}vt({index:$e.current})}},[Te.length,U?!1:We,y,qe,vt,Oe,Be,U]),Dt=jt(Ue=>{Cy(Ve,Ue),Ue&&Et()});I.useEffect(()=>{Et()},[Et]);const on=Ue=>{Le||(Ne(!0),fe(!0),q&&q(Ue))},dn=(Ue,Ce)=>{Le&&(Ne(!1),z&&z(Ue,Ce))},pn=(Ue,Ce,gt,Nt)=>{if(U){if(We.length===Ce.length&&We.every((tn,Mn)=>tn===Ce[Mn]))return}else if(We===Ce)return;V&&V(Ue,Ce,gt,Nt),dt(Ce)},zn=I.useRef(!1),Se=(Ue,Ce,gt="selectOption",Nt="options")=>{let tn=gt,Mn=Ce;if(U){Mn=Array.isArray(We)?We.slice():[];const Nn=YC(Mn,Kt=>B(Ce,Kt));Nn===-1?Mn.push(Ce):Nt!=="freeSolo"&&(Mn.splice(Nn,1),tn="removeOption")}Re(Ue,Mn),pn(Ue,Mn,tn,{option:Ce}),!p&&(!Ue||!Ue.ctrlKey&&!Ue.metaKey)&&dn(Ue,tn),(a===!0||a==="touch"&&zn.current||a==="mouse"&&!zn.current)&&De.current.blur()};function _e(Ue,Ce){if(Ue===-1)return-1;let gt=Ue;for(;;){if(Ce==="next"&>===We.length||Ce==="previous"&>===-1)return-1;const Nt=Je.querySelector(`[data-tag-index="${gt}"]`);if(!Nt||!Nt.hasAttribute("tabindex")||Nt.disabled||Nt.getAttribute("aria-disabled")==="true")gt+=Ce==="next"?1:-1;else return gt}}const pe=(Ue,Ce)=>{if(!U)return;Be===""&&dn(Ue,"toggleInput");let gt=Ge;Ge===-1?Be===""&&Ce==="previous"&&(gt=We.length-1):(gt+=Ce==="next"?1:-1,gt<0&&(gt=0),gt===We.length&&(gt=-1)),gt=_e(gt,Ce),ye(gt),xt(gt)},lt=Ue=>{ue.current=!0,re(""),X&&X(Ue,"","clear"),pn(Ue,U?[]:null,"clear")},at=Ue=>Ce=>{if(Ue.onKeyDown&&Ue.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(Ge!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ce.key)===-1&&(ye(-1),xt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Oe&&E&&(Ce.preventDefault(),qe({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Oe&&E&&(Ce.preventDefault(),qe({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),qe({diff:-C8,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"PageDown":Ce.preventDefault(),qe({diff:C8,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowDown":Ce.preventDefault(),qe({diff:1,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowUp":Ce.preventDefault(),qe({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowLeft":pe(Ce,"previous");break;case"ArrowRight":pe(Ce,"next");break;case"Enter":if($e.current!==-1&&Oe){const gt=Te[$e.current],Nt=S?S(gt):!1;if(Ce.preventDefault(),Nt)return;Se(Ce,gt,"selectOption"),r&&De.current.setSelectionRange(De.current.value.length,De.current.value.length)}else v&&Be!==""&&de===!1&&(U&&Ce.preventDefault(),Se(Ce,Be,"createOption","freeSolo"));break;case"Escape":Oe?(Ce.preventDefault(),Ce.stopPropagation(),dn(Ce,"escape")):l&&(Be!==""||U&&We.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),lt(Ce));break;case"Backspace":if(U&&!se&&Be===""&&We.length>0){const gt=Ge===-1?We.length-1:Ge,Nt=We.slice();Nt.splice(gt,1),pn(Ce,Nt,"removeOption",{option:We[gt]})}break;case"Delete":if(U&&!se&&Be===""&&We.length>0&&Ge!==-1){const gt=Ge,Nt=We.slice();Nt.splice(gt,1),pn(Ce,Nt,"removeOption",{option:We[gt]})}break}},Mt=Ue=>{J(!0),Z&&!ue.current&&on(Ue)},$t=Ue=>{if(t(Ve)){De.current.focus();return}J(!1),xe.current=!0,ue.current=!1,o&&$e.current!==-1&&Oe?Se(Ue,Te[$e.current],"blur"):o&&v&&Be!==""?Se(Ue,Be,"blur","freeSolo"):s&&Re(Ue,We),dn(Ue,"blur")},It=Ue=>{const Ce=Ue.target.value;Be!==Ce&&(re(Ce),fe(!1),X&&X(Ue,Ce,"input")),Ce===""?!d&&!U&&pn(Ue,null,"clear"):on(Ue)},Ct=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));$e.current!==Ce&&vt({event:Ue,index:Ce,reason:"mouse"})},Zt=Ue=>{vt({event:Ue,index:Number(Ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},Ie=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));Se(Ue,Te[Ce],"selectOption"),zn.current=!1},we=Ue=>Ce=>{const gt=We.slice();gt.splice(Ue,1),pn(Ce,gt,"removeOption",{option:We[Ue]})},Qe=Ue=>{Le?dn(Ue,"toggleInput"):on(Ue)},ot=Ue=>{Ue.currentTarget.contains(Ue.target)&&Ue.target.getAttribute("id")!==ce&&Ue.preventDefault()},rn=Ue=>{Ue.currentTarget.contains(Ue.target)&&(De.current.focus(),ve&&xe.current&&De.current.selectionEnd-De.current.selectionStart===0&&De.current.select(),xe.current=!1)},Wt=Ue=>{!h&&(Be===""||!Le)&&Qe(Ue)};let mn=v&&Be.length>0;mn=mn||(U?We.length>0:We!==null);let nr=Te;return w&&(nr=Te.reduce((Ue,Ce,gt)=>{const Nt=w(Ce);return Ue.length>0&&Ue[Ue.length-1].group===Nt?Ue[Ue.length-1].options.push(Ce):Ue.push({key:gt,index:gt,group:Nt,options:[Ce]}),Ue},[])),h&&ee&&$t(),{getRootProps:(Ue={})=>L({"aria-owns":pt?`${ce}-listbox`:null},Ue,{onKeyDown:at(Ue),onMouseDown:ot,onClick:rn}),getInputLabelProps:()=>({id:`${ce}-label`,htmlFor:ce}),getInputProps:()=>({id:ce,value:Be,onBlur:$t,onFocus:Mt,onChange:It,onMouseDown:Wt,"aria-activedescendant":Oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pt?`${ce}-listbox`:void 0,"aria-expanded":pt,autoComplete:"off",ref:De,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Qe}),getTagProps:({index:Ue})=>L({key:Ue,"data-tag-index":Ue,tabIndex:-1},!se&&{onDelete:we(Ue)}),getListboxProps:()=>({role:"listbox",id:`${ce}-listbox`,"aria-labelledby":`${ce}-label`,ref:Dt,onMouseDown:Ue=>{Ue.preventDefault()}}),getOptionProps:({index:Ue,option:Ce})=>{var gt;const Nt=(U?We:[We]).some(Mn=>Mn!=null&&B(Ce,Mn)),tn=S?S(Ce):!1;return{key:(gt=k==null?void 0:k(Ce))!=null?gt:ge(Ce),tabIndex:-1,role:"option",id:`${ce}-option-${Ue}`,onMouseMove:Ct,onClick:Ie,onTouchStart:Zt,"data-option-index":Ue,"aria-disabled":tn,"aria-selected":Nt}},id:ce,inputValue:Be,value:We,dirty:mn,expanded:Oe&&Je,popupOpen:Oe,focused:ee||Ge!==-1,anchorEl:Je,setAnchorEl:Me,focusedTag:Ge,groupedOptions:nr}}const Rme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ime=Ee(sme,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nme=I.forwardRef(function(t,n){var r;const i=Ek(),o=mt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v,slots:S,slotProps:k}=o,C=Ye(o,Rme),w=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,E=L({anchorEl:a,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v},C);return N.jsx(Ime,L({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),Z1=Nme;function Dme(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Pme=["className","color","component","disableGutters","disableSticky","inset"],Lme=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${nt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return wt(a,Dme,t)},Mme=Ee("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>L({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})),_Y=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=Ye(r,Pme),d=L({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=Lme(d);return N.jsx(Mme,L({as:a,className:Ke(p.root,i),ref:n,ownerState:d},c))});_Y.muiSkipListHighlight=!0;const $me=_Y,Fme=ki(N.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 Bme(e){return At("MuiChip",e)}const Ume=_t("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"]),rr=Ume,jme=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],zme=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${nt(r)}`,`color${nt(i)}`,s&&"clickable",s&&`clickableColor${nt(i)}`,a&&"deletable",a&&`deletableColor${nt(i)}`,`${l}${nt(i)}`],label:["label",`label${nt(r)}`],avatar:["avatar",`avatar${nt(r)}`,`avatarColor${nt(i)}`],icon:["icon",`icon${nt(r)}`,`iconColor${nt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${nt(r)}`,`deleteIconColor${nt(i)}`,`deleteIcon${nt(l)}Color${nt(i)}`]};return wt(u,Bme,t)},Vme=Ee("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${rr.avatar}`]:t.avatar},{[`& .${rr.avatar}`]:t[`avatar${nt(s)}`]},{[`& .${rr.avatar}`]:t[`avatarColor${nt(r)}`]},{[`& .${rr.icon}`]:t.icon},{[`& .${rr.icon}`]:t[`icon${nt(s)}`]},{[`& .${rr.icon}`]:t[`iconColor${nt(i)}`]},{[`& .${rr.deleteIcon}`]:t.deleteIcon},{[`& .${rr.deleteIcon}`]:t[`deleteIcon${nt(s)}`]},{[`& .${rr.deleteIcon}`]:t[`deleteIconColor${nt(r)}`]},{[`& .${rr.deleteIcon}`]:t[`deleteIcon${nt(l)}Color${nt(r)}`]},t.root,t[`size${nt(s)}`],t[`color${nt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${nt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${nt(r)}`],t[l],t[`${l}${nt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return L({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",[`&.${rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${rr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${rr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${rr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${rr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${rr.icon}`]:L({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&L({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${rr.deleteIcon}`]:L({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:cn(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)`:cn(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)`:cn(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&&{[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>L({},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}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(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, &.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>L({},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]}`,[`&.${rr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${rr.avatar}`]:{marginLeft:4},[`& .${rr.avatarSmall}`]:{marginLeft:2},[`& .${rr.icon}`]:{marginLeft:4},[`& .${rr.iconSmall}`]:{marginLeft:2},[`& .${rr.deleteIcon}`]:{marginRight:5},[`& .${rr.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)`:cn(e.palette[t.color].main,.7)}`,[`&.${rr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${rr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:cn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Hme=Ee("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${nt(r)}`]]}})(({ownerState:e})=>L({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 A8(e){return e.key==="Backspace"||e.key==="Delete"}const Wme=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:b,onKeyUp:O,size:y="medium",variant:v="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,C=Ye(r,jme),w=I.useRef(null),E=yn(w,n),$=Z=>{Z.stopPropagation(),m&&m(Z)},P=Z=>{Z.currentTarget===Z.target&&A8(Z)&&Z.preventDefault(),b&&b(Z)},_=Z=>{Z.currentTarget===Z.target&&(m&&A8(Z)?m(Z):Z.key==="Escape"&&w.current&&w.current.blur()),O&&O(Z)},B=a!==!1&&h?!0:a,U=B||m?hs:l||"div",V=L({},r,{component:U,disabled:c,size:y,color:s,iconColor:I.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:B,variant:v}),z=zme(V),W=U===hs?L({component:l||"div",focusVisibleClassName:z.focusVisible},m&&{disableRipple:!0}):{};let X=null;m&&(X=u&&I.isValidElement(u)?I.cloneElement(u,{className:Ke(u.props.className,z.deleteIcon),onClick:$}):N.jsx(Fme,{className:Ke(z.deleteIcon),onClick:$}));let q=null;i&&I.isValidElement(i)&&(q=I.cloneElement(i,{className:Ke(z.avatar,i.props.className)}));let Y=null;return d&&I.isValidElement(d)&&(Y=I.cloneElement(d,{className:Ke(z.icon,d.props.className)})),N.jsxs(Vme,L({as:U,className:Ke(z.root,o),disabled:B&&c?!0:void 0,onClick:h,onKeyDown:P,onKeyUp:_,ref:E,tabIndex:k&&c?-1:S,ownerState:V},W,C,{children:[q||Y,N.jsx(Hme,{className:Ke(z.label),ownerState:V,children:p}),X]}))}),ZD=Wme;function lf({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 Qme=I.createContext(void 0),_k=Qme;function Pu(){return I.useContext(_k)}function RY(e){return N.jsx(lde,L({},e,{defaultTheme:xk,themeId:yp}))}function _8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function uT(e,t=!1){return e&&(_8(e.value)&&e.value!==""||t&&_8(e.defaultValue)&&e.defaultValue!=="")}function Yme(e){return e.startAdornment}function Gme(e){return At("MuiInputBase",e)}const qme=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ja=qme,Zme=["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"],Rk=(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${nt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ik=(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]},Xme=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,b={root:["root",`color${nt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${nt(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return wt(b,Gme,t)},Nk=Ee("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rk})(({theme:e,ownerState:t})=>L({},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",[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&L({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Dk=Ee("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ik})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=L({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"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return L({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] + .${Ja.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ja.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"})}),Kme=N.jsx(RY,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Jme=I.forwardRef(function(t,n){var r;const i=mt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:b=!1,id:O,inputComponent:y="input",inputProps:v={},inputRef:S,maxRows:k,minRows:C,multiline:w=!1,name:E,onBlur:$,onChange:P,onClick:_,onFocus:B,onKeyDown:U,onKeyUp:V,placeholder:z,readOnly:W,renderSuffix:X,rows:q,slotProps:Y={},slots:Z={},startAdornment:j,type:se="text",value:ve}=i,G=Ye(i,Zme),ce=v.value!=null?v.value:ve,{current:ge}=I.useRef(ce!=null),ue=I.useRef(),xe=I.useCallback(Oe=>{},[]),De=yn(ue,S,v.ref,xe),[Ve,Je]=I.useState(!1),Me=Pu(),Ge=lf({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ge.focused=Me?Me.focused:Ve,I.useEffect(()=>{!Me&&p&&Ve&&(Je(!1),$&&$())},[Me,p,Ve,$]);const ye=Me&&Me.onFilled,ze=Me&&Me.onEmpty,$e=I.useCallback(Oe=>{uT(Oe)?ye&&ye():ze&&ze()},[ye,ze]);Jr(()=>{ge&&$e({value:ce})},[ce,$e,ge]);const We=Oe=>{if(Ge.disabled){Oe.stopPropagation();return}B&&B(Oe),v.onFocus&&v.onFocus(Oe),Me&&Me.onFocus?Me.onFocus(Oe):Je(!0)},dt=Oe=>{$&&$(Oe),v.onBlur&&v.onBlur(Oe),Me&&Me.onBlur?Me.onBlur(Oe):Je(!1)},Be=(Oe,...Te)=>{if(!ge){const rt=Oe.target||ue.current;if(rt==null)throw new Error(Vd(1));$e({value:rt.value})}v.onChange&&v.onChange(Oe,...Te),P&&P(Oe,...Te)};I.useEffect(()=>{$e(ue.current)},[]);const re=Oe=>{ue.current&&Oe.currentTarget===Oe.target&&ue.current.focus(),_&&_(Oe)};let ee=y,J=v;w&&ee==="input"&&(q?J=L({type:void 0,minRows:q,maxRows:q},J):J=L({type:void 0,maxRows:k,minRows:C},J),ee=AY);const Re=Oe=>{$e(Oe.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};I.useEffect(()=>{Me&&Me.setAdornedStart(!!j)},[Me,j]);const Le=L({},i,{color:Ge.color||"primary",disabled:Ge.disabled,endAdornment:m,error:Ge.error,focused:Ge.focused,formControl:Me,fullWidth:b,hiddenLabel:Ge.hiddenLabel,multiline:w,size:Ge.size,startAdornment:j,type:se}),Ne=Xme(Le),ie=Z.root||u.Root||Nk,fe=Y.root||c.root||{},de=Z.input||u.Input||Dk;return J=L({},J,(r=Y.input)!=null?r:c.input),N.jsxs(I.Fragment,{children:[!h&&Kme,N.jsxs(ie,L({},fe,!Cu(ie)&&{ownerState:L({},Le,fe.ownerState)},{ref:n,onClick:re},G,{className:Ke(Ne.root,fe.className,l,W&&"MuiInputBase-readOnly"),children:[j,N.jsx(_k.Provider,{value:null,children:N.jsx(de,L({ownerState:Le,"aria-invalid":Ge.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Ge.disabled,id:O,onAnimationStart:Re,name:E,placeholder:z,readOnly:W,required:Ge.required,rows:q,value:ce,onKeyDown:U,onKeyUp:V,type:se},J,!Cu(de)&&{as:ee,ownerState:L({},Le,J.ownerState)},{ref:De,className:Ke(Ne.input,J.className,W&&"MuiInputBase-readOnly"),onBlur:dt,onChange:Be,onFocus:We}))}),m,X?X(L({},Ge,{startAdornment:j})):null]}))]})}),XD=Jme;function ege(e){return At("MuiInput",e)}const tge=L({},Ja,_t("MuiInput",["root","underline","input"])),od=tge;function nge(e){return At("MuiOutlinedInput",e)}const rge=L({},Ja,_t("MuiOutlinedInput",["root","notchedOutline","input"])),ou=rge;function ige(e){return At("MuiFilledInput",e)}const oge=L({},Ja,_t("MuiFilledInput",["root","underline","input"])),es=oge,IY=ki(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function age(e){return At("MuiAutocomplete",e)}const sge=_t("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"]),Fn=sge;var R8,I8;const lge=["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"],uge=["ref"],cge=["key"],dge=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${nt(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return wt(d,age,t)},fge=Ee("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${Fn.tag}`]:t.tag},{[`& .${Fn.tag}`]:t[`tagSize${nt(s)}`]},{[`& .${Fn.inputRoot}`]:t.inputRoot},{[`& .${Fn.input}`]:t.input},{[`& .${Fn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>L({[`&.${Fn.focused} .${Fn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Fn.tag}`]:L({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Fn.inputRoot}`]:{flexWrap:"wrap",[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:30},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:56},[`& .${Fn.input}`]:{width:0,minWidth:30}},[`& .${od.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${od.root}.${Ja.sizeSmall}`]:{[`& .${od.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ou.root}`]:{padding:9,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Fn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${ou.root}.${Ja.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${es.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${es.input}`]:{padding:"7px 4px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${es.root}.${Ja.sizeSmall}`]:{paddingBottom:1,[`& .${es.input}`]:{padding:"2.5px 4px"}},[`& .${Ja.hiddenLabel}`]:{paddingTop:8},[`& .${es.root}.${Ja.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${es.root}.${Ja.hiddenLabel}.${Ja.sizeSmall}`]:{[`& .${Fn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fn.input}`]:L({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),pge=Ee("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),hge=Ee(eo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),mge=Ee(eo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>L({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>L({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),gge=Ee(Z1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>L({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),bge=Ee(zo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>L({},e.typography.body1,{overflow:"auto"})),yge=Ee("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Oge=Ee("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vge=Ee("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",[`& .${Fn.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"},[`&.${Fn.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"},[`&.${Fn.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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Ege=Ee($me,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Sge=Ee("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),Tge=I.forwardRef(function(t,n){var r,i,o,a;const s=mt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:m=R8||(R8=N.jsx(Spe,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:O=!1,clearText:y="Clear",closeText:v="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:$=!1,disableListWrap:P=!1,disablePortal:_=!1,filterSelectedOptions:B=!1,forcePopupIcon:U="auto",freeSolo:V=!1,fullWidth:z=!1,getLimitTagsText:W=Ce=>`+${Ce}`,getOptionLabel:X,groupBy:q,handleHomeEndKeys:Y=!s.freeSolo,includeInputInList:Z=!1,limitTags:j=-1,ListboxComponent:se="ul",ListboxProps:ve,loading:G=!1,loadingText:ce="Loading…",multiple:ge=!1,noOptionsText:ue="No options",openOnFocus:xe=!1,openText:De="Open",PaperComponent:Ve=zo,PopperComponent:Je=Z1,popupIcon:Me=I8||(I8=N.jsx(IY,{})),readOnly:Ge=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:We,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ye(s,lge),{getRootProps:J,getInputProps:Re,getInputLabelProps:Le,getPopupIndicatorProps:Ne,getClearProps:ie,getTagProps:fe,getListboxProps:de,getOptionProps:Oe,value:Te,dirty:rt,expanded:pt,id:xt,popupOpen:et,focused:vt,focusedTag:qe,anchorEl:it,setAnchorEl:Et,inputValue:Dt,groupedOptions:on}=_me(L({},s,{componentName:"Autocomplete"})),dn=!C&&!E&&rt&&!Ge,pn=(!V||U===!0)&&U!==!1,{onMouseDown:zn}=Re(),{ref:Se}=ve??{},_e=de(),{ref:pe}=_e,lt=Ye(_e,uge),at=yn(pe,Se),$t=X||(Ce=>{var gt;return(gt=Ce.label)!=null?gt:Ce}),It=L({},s,{disablePortal:_,expanded:pt,focused:vt,fullWidth:z,getOptionLabel:$t,hasClearIcon:dn,hasPopupIcon:pn,inputFocused:qe===-1,popupOpen:et,size:Be}),Ct=dge(It);let Zt;if(ge&&Te.length>0){const Ce=gt=>L({className:Ct.tag,disabled:E},fe(gt));We?Zt=We(Te,Ce,It):Zt=Te.map((gt,Nt)=>N.jsx(ZD,L({label:$t(gt),size:Be},Ce({index:Nt}),p)))}if(j>-1&&Array.isArray(Zt)){const Ce=Zt.length-j;!vt&&Ce>0&&(Zt=Zt.splice(0,j),Zt.push(N.jsx("span",{className:Ct.tag,children:W(Ce)},Zt.length)))}const we=ye||(Ce=>N.jsxs("li",{children:[N.jsx(Ege,{className:Ct.groupLabel,ownerState:It,component:"div",children:Ce.group}),N.jsx(Sge,{className:Ct.groupUl,ownerState:It,children:Ce.children})]},Ce.key)),ot=$e||((Ce,gt)=>{const{key:Nt}=Ce,tn=Ye(Ce,cge);return N.jsx("li",L({},tn,{children:$t(gt)}),Nt)}),rn=(Ce,gt)=>{const Nt=Oe({option:Ce,index:gt});return ot(L({},Nt,{className:Ct.option}),Ce,{selected:Nt["aria-selected"],index:gt,inputValue:Dt},It)},Wt=(r=re.clearIndicator)!=null?r:S.clearIndicator,mn=(i=re.paper)!=null?i:S.paper,nr=(o=re.popper)!=null?o:S.popper,Ue=(a=re.popupIndicator)!=null?a:S.popupIndicator;return N.jsxs(I.Fragment,{children:[N.jsx(fge,L({ref:n,className:Ke(Ct.root,h),ownerState:It},J(ee),{children:ze({id:xt,disabled:E,fullWidth:!0,size:Be==="small"?"small":void 0,InputLabelProps:Le(),InputProps:L({ref:Et,className:Ct.inputRoot,startAdornment:Zt,onClick:Ce=>{Ce.target===Ce.currentTarget&&zn(Ce)}},(dn||pn)&&{endAdornment:N.jsxs(pge,{className:Ct.endAdornment,ownerState:It,children:[dn?N.jsx(hge,L({},ie(),{"aria-label":y,title:y,ownerState:It},Wt,{className:Ke(Ct.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,pn?N.jsx(mge,L({},Ne(),{disabled:E,"aria-label":et?v:De,title:et?v:De,ownerState:It},Ue,{className:Ke(Ct.popupIndicator,Ue==null?void 0:Ue.className),children:Me})):null]})}),inputProps:L({className:Ct.input,disabled:E,readOnly:Ge},Re())})})),it?N.jsx(gge,L({as:Je,disablePortal:_,style:{width:it?it.clientWidth:null},ownerState:It,role:"presentation",anchorEl:it,open:et},nr,{className:Ke(Ct.popper,nr==null?void 0:nr.className),children:N.jsxs(bge,L({ownerState:It,as:Ve},mn,{className:Ke(Ct.paper,mn==null?void 0:mn.className),children:[G&&on.length===0?N.jsx(yge,{className:Ct.loading,ownerState:It,children:ce}):null,on.length===0&&!V&&!G?N.jsx(Oge,{className:Ct.noOptions,ownerState:It,role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()},children:ue}):null,on.length>0?N.jsx(vge,L({as:se,className:Ct.listbox,ownerState:It},lt,ve,{ref:at,children:on.map((Ce,gt)=>q?we({key:Ce.key,group:Ce.group,children:Ce.options.map((Nt,tn)=>rn(Nt,Ce.index+tn))}):rn(Ce,gt))})):null]}))})):null]})}),wge=Tge,kge=ki(N.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 xge(e){return At("MuiAvatar",e)}const Cge=_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),Age=Cge,_ge=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Rge=e=>{const{classes:t,variant:n,colorDefault:r}=e;return wt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},xge,t)},Ige=Ee("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>L({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"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&L({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Nge=Ee("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Dge=Ee(kge,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Pge({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=I.useState(!1);return I.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Lge=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:p="circular"}=r,h=Ye(r,_ge);let m=null;const b=Pge(L({},l,{src:c,srcSet:d})),O=c||d,y=O&&b!=="error",v=L({},r,{colorDefault:!y,component:s,variant:p}),S=Rge(v);return y?m=N.jsx(Nge,L({alt:i,srcSet:d,src:c,sizes:u,ownerState:v,className:S.img},l)):o!=null?m=o:O&&i?m=i[0]:m=N.jsx(Dge,{ownerState:v,className:S.fallback}),N.jsx(Ige,L({as:s,ownerState:v,className:Ke(S.root,a),ref:n},h,{children:m}))}),Pk=Lge;function Mge(e){return At("MuiAvatarGroup",e)}const $ge=_t("MuiAvatarGroup",["root","avatar"]),Fge=$ge,Bge=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],N8={small:-16,medium:null},Uge=e=>{const{classes:t}=e;return wt({root:["root"],avatar:["avatar"]},Mge,t)},jge=Ee("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>L({[`& .${Fge.avatar}`]:t.avatar},t.root)})(({theme:e})=>({[`& .${Age.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"})),zge=Ee(Pk,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})(({theme:e})=>({border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}})),Vge=I.forwardRef(function(t,n){var r;const i=mt({props:t,name:"MuiAvatarGroup"}),{children:o,className:a,component:s="div",componentsProps:l={},max:u=5,renderSurplus:c,slotProps:d={},spacing:p="medium",total:h,variant:m="circular"}=i,b=Ye(i,Bge);let O=u<2?2:u;const y=L({},i,{max:u,spacing:p,component:s,variant:m}),v=Uge(y),S=I.Children.toArray(o).filter(_=>I.isValidElement(_)),k=h||S.length;k===O&&(O+=1),O=Math.min(k+1,O);const C=Math.min(S.length,O-1),w=Math.max(k-O,k-C,0),E=c?c(w):`+${w}`,$=p&&N8[p]!==void 0?N8[p]:-p,P=(r=d.additionalAvatar)!=null?r:l.additionalAvatar;return N.jsxs(jge,L({as:s,ownerState:y,className:Ke(v.root,a),ref:n},b,{children:[w?N.jsx(zge,L({ownerState:y,variant:m},P,{className:Ke(v.avatar,P==null?void 0:P.className),style:L({marginLeft:$},P==null?void 0:P.style),children:E})):null,S.slice(0,C).reverse().map((_,B)=>I.cloneElement(_,{className:Ke(_.props.className,v.avatar),style:L({marginLeft:B===C-1?void 0:$},_.props.style),variant:_.props.variant||m}))]}))}),Hge=Vge,Wge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qge={entering:{opacity:1},entered:{opacity:1}},Yge=I.forwardRef(function(t,n){const r=ci(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:b,style:O,timeout:y=i,TransitionComponent:v=Y1}=t,S=Ye(t,Wge),k=I.useRef(null),C=yn(k,s.ref,n),w=z=>W=>{if(z){const X=k.current;W===void 0?z(X):z(X,W)}},E=w(p),$=w((z,W)=>{zD(z);const X=Wd({style:O,timeout:y,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",X),z.style.transition=r.transitions.create("opacity",X),c&&c(z,W)}),P=w(d),_=w(b),B=w(z=>{const W=Wd({style:O,timeout:y,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",W),z.style.transition=r.transitions.create("opacity",W),h&&h(z)}),U=w(m),V=z=>{o&&o(k.current,z)};return N.jsx(v,L({appear:a,in:u,nodeRef:k,onEnter:$,onEntered:P,onEntering:E,onExit:B,onExited:U,onExiting:_,addEndListener:V,timeout:y},S,{children:(z,W)=>I.cloneElement(s,L({style:L({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},Qge[z],O,s.props.style),ref:C},W))}))}),_g=Yge;function Gge(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const qge=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zge=e=>{const{classes:t,invisible:n}=e;return wt({root:["root",n&&"invisible"]},Gge,t)},Xge=Ee("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>L({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"})),Kge=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:b={},TransitionComponent:O=_g,transitionDuration:y}=a,v=Ye(a,qge),S=L({},a,{component:u,invisible:p}),k=Zge(S),C=(r=m.root)!=null?r:d.root;return N.jsx(O,L({in:h,timeout:y},v,{children:N.jsx(Xge,L({"aria-hidden":!0},C,{as:(i=(o=b.root)!=null?o:c.Root)!=null?i:u,className:Ke(k.root,l,C==null?void 0:C.className),ownerState:L({},S,C==null?void 0:C.ownerState),classes:k,ref:n,children:s}))}))}),X1=Kge,Jge=_t("MuiBox",["root"]),e0e=Jge,t0e=LD(),n0e=fde({themeId:yp,defaultTheme:t0e,defaultClassName:e0e.root,generateClassName:CD.generate}),$o=n0e;function r0e(e){return At("MuiButton",e)}const i0e=_t("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"]),Iv=i0e,o0e=I.createContext({}),a0e=o0e,s0e=I.createContext(void 0),l0e=s0e,u0e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],c0e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${nt(t)}`,`size${nt(i)}`,`${o}Size${nt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nt(i)}`],endIcon:["endIcon",`iconSize${nt(i)}`]},l=wt(s,r0e,a);return L({},a,l)},NY=e=>L({},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}}),d0e=Ee(hs,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color)}`],t[`size${nt(n.size)}`],t[`${n.variant}Size${nt(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],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return L({},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":L({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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})`:cn(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})`:cn(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:o,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":L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Iv.focusVisible}`]:L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Iv.disabled}`]:L({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 ${cn(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"},[`&.${Iv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Iv.disabled}`]:{boxShadow:"none"}}),f0e=Ee("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},NY(e))),p0e=Ee("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},NY(e))),h0e=I.forwardRef(function(t,n){const r=I.useContext(a0e),i=I.useContext(l0e),o=pk(r,t),a=mt({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:b,fullWidth:O=!1,size:y="medium",startIcon:v,type:S,variant:k="text"}=a,C=Ye(a,u0e),w=L({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:O,size:y,type:S,variant:k}),E=c0e(w),$=v&&N.jsx(f0e,{className:E.startIcon,ownerState:w,children:v}),P=m&&N.jsx(p0e,{className:E.endIcon,ownerState:w,children:m}),_=i||"";return N.jsxs(d0e,L({ownerState:w,className:Ke(r.className,E.root,c,_),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:Ke(E.focusVisible,b),ref:n,type:S},C,{classes:E,children:[$,s,P]}))}),wl=h0e;function m0e(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const g0e=["className","raised"],b0e=e=>{const{classes:t}=e;return wt({root:["root"]},m0e,t)},y0e=Ee(zo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),O0e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ye(r,g0e),s=L({},r,{raised:o}),l=b0e(s);return N.jsx(y0e,L({className:Ke(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),v0e=O0e;function E0e(e){return At("MuiCardActionArea",e)}const S0e=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),GC=S0e,T0e=["children","className","focusVisibleClassName"],w0e=e=>{const{classes:t}=e;return wt({root:["root"],focusHighlight:["focusHighlight"]},E0e,t)},k0e=Ee(hs,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${GC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${GC.focusVisible} .${GC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),x0e=Ee("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})})),C0e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ye(r,T0e),l=r,u=w0e(l);return N.jsxs(k0e,L({className:Ke(u.root,o),focusVisibleClassName:Ke(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,N.jsx(x0e,{className:u.focusHighlight,ownerState:l})]}))}),A0e=C0e;function _0e(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const R0e=["className","component"],I0e=e=>{const{classes:t}=e;return wt({root:["root"]},_0e,t)},N0e=Ee("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),D0e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ye(r,R0e),s=L({},r,{component:o}),l=I0e(s);return N.jsx(N0e,L({as:o,className:Ke(l.root,i),ownerState:s,ref:n},a))}),P0e=D0e;function L0e(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const M0e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],$0e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${nt(i)}`],input:["input"]};return wt(o,L0e,t)},F0e=Ee(hs)(({ownerState:e})=>L({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),B0e=Ee("input",{shouldForwardProp:no})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),U0e=I.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:b,onBlur:O,onChange:y,onFocus:v,readOnly:S,required:k=!1,tabIndex:C,type:w,value:E}=t,$=Ye(t,M0e),[P,_]=Ji({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),B=Pu(),U=Z=>{v&&v(Z),B&&B.onFocus&&B.onFocus(Z)},V=Z=>{O&&O(Z),B&&B.onBlur&&B.onBlur(Z)},z=Z=>{if(Z.nativeEvent.defaultPrevented)return;const j=Z.target.checked;_(j),y&&y(Z,j)};let W=l;B&&typeof W>"u"&&(W=B.disabled);const X=w==="checkbox"||w==="radio",q=L({},t,{checked:P,disabled:W,disableFocusRipple:u,edge:c}),Y=$0e(q);return N.jsxs(F0e,L({component:"span",className:Ke(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:W,tabIndex:null,role:void 0,onFocus:U,onBlur:V,ownerState:q,ref:n},$,{children:[N.jsx(B0e,L({autoFocus:r,checked:i,defaultChecked:s,className:Y.input,disabled:W,id:X?p:void 0,name:b,onChange:z,readOnly:S,ref:m,required:k,ownerState:q,tabIndex:C,type:w},w==="checkbox"&&E===void 0?{}:{value:E},h)),P?o:d]}))}),KD=U0e,j0e=ki(N.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"),z0e=ki(N.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"),V0e=ki(N.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 H0e(e){return At("MuiCheckbox",e)}const W0e=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),qC=W0e,Q0e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Y0e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${nt(r)}`,`size${nt(i)}`]},a=wt(o,H0e,t);return L({},t,a)},G0e=Ee(KD,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${nt(n.size)}`],n.color!=="default"&&t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${qC.checked}, &.${qC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),q0e=N.jsx(z0e,{}),Z0e=N.jsx(j0e,{}),X0e=N.jsx(V0e,{}),K0e=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=q0e,color:s="primary",icon:l=Z0e,indeterminate:u=!1,indeterminateIcon:c=X0e,inputProps:d,size:p="medium",className:h}=o,m=Ye(o,Q0e),b=u?c:l,O=u?c:a,y=L({},o,{color:s,indeterminate:u,size:p}),v=Y0e(y);return N.jsx(G0e,L({type:"checkbox",inputProps:L({"data-indeterminate":u},d),icon:I.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(O,{fontSize:(i=O.props.fontSize)!=null?i:p}),ownerState:y,ref:n,className:Ke(v.root,h)},m,{classes:v}))}),Lk=K0e;function J0e(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ebe=["className","color","disableShrink","size","style","thickness","value","variant"];let Mk=e=>e,D8,P8,L8,M8;const Hc=44,tbe=V1(D8||(D8=Mk` 0% { transform: rotate(0deg); } @@ -149,11 +149,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),rbe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${nt(r)}`],svg:["svg"],circle:["circle",`circle${nt(n)}`,i&&"circleDisableShrink"]};return wt(o,J0e,t)},ibe=Ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${nt(n.color)}`]]}})(({ownerState:e,theme:t})=>L({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"&&wN(L8||(L8=Mk` +`)),rbe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${nt(r)}`],svg:["svg"],circle:["circle",`circle${nt(n)}`,i&&"circleDisableShrink"]};return wt(o,J0e,t)},ibe=Ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${nt(n.color)}`]]}})(({ownerState:e,theme:t})=>L({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"&&wD(L8||(L8=Mk` animation: ${0} 1.4s linear infinite; - `),tbe)),obe=Ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),abe=Ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${nt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>L({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&&wN(M8||(M8=Mk` + `),tbe)),obe=Ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),abe=Ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${nt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>L({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&&wD(M8||(M8=Mk` animation: ${0} 1.4s ease-in-out infinite; - `),nbe)),sbe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=Ye(r,ebe),h=L({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=rbe(h),b={},O={},y={};if(d==="determinate"){const v=2*Math.PI*((Hc-u)/2);b.strokeDasharray=v.toFixed(3),y["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*v).toFixed(3)}px`,O.transform="rotate(-90deg)"}return D.jsx(ibe,L({className:Ke(m.root,i),style:L({width:s,height:s},O,l),ownerState:h,ref:n,role:"progressbar"},y,p,{children:D.jsx(obe,{className:m.svg,ownerState:h,viewBox:`${Hc/2} ${Hc/2} ${Hc} ${Hc}`,children:D.jsx(abe,{className:m.circle,style:b,ownerState:h,cx:Hc,cy:Hc,r:(Hc-u)/2,fill:"none",strokeWidth:u})})}))}),uf=sbe,lbe=Fde({createStyledComponent:Ee("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>mt({props:e,name:"MuiContainer"})}),ube=lbe,cbe=(e,t)=>L({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),dbe=e=>L({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}}),fbe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=L({html:cbe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:L({margin:0},dbe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function pbe(e){const t=mt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return D.jsxs(I.Fragment,{children:[D.jsx(RY,{styles:i=>fbe(i,r)}),n]})}function hbe(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const mbe=["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"],gbe=e=>{const{open:t,exited:n,classes:r}=e;return wt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},hbe,r)},bbe=Ee("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})=>L({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ybe=Ee(X1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Obe=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=mt({name:"MuiModal",props:t}),{BackdropComponent:c=ybe,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:b,component:O,components:y={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:$=!1,hideBackdrop:P=!1,keepMounted:_=!1,onBackdropClick:B,open:U,slotProps:V,slots:z}=u,W=Ye(u,mbe),X=L({},u,{closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:E,disableScrollLock:$,hideBackdrop:P,keepMounted:_}),{getRootProps:q,getBackdropProps:Y,getTransitionProps:Z,portalRef:j,isTopModal:se,exited:ve,hasTransition:G}=gme(L({},X,{rootRef:n})),ce=L({},X,{exited:ve}),ge=gbe(ce),ue={};if(m.props.tabIndex===void 0&&(ue.tabIndex="-1"),G){const{onEnter:ye,onExited:ze}=Z();ue.onEnter=ye,ue.onExited=ze}const xe=(r=(i=z==null?void 0:z.root)!=null?i:y.Root)!=null?r:bbe,Ne=(o=(a=z==null?void 0:z.backdrop)!=null?a:y.Backdrop)!=null?o:c,Ve=(s=V==null?void 0:V.root)!=null?s:v.root,Je=(l=V==null?void 0:V.backdrop)!=null?l:v.backdrop,Me=kn({elementType:xe,externalSlotProps:Ve,externalForwardedProps:W,getSlotProps:q,additionalProps:{ref:n,as:O},ownerState:ce,className:Ke(p,Ve==null?void 0:Ve.className,ge==null?void 0:ge.root,!ce.open&&ce.exited&&(ge==null?void 0:ge.hidden))}),Ge=kn({elementType:Ne,externalSlotProps:Je,additionalProps:d,getSlotProps:ye=>Y(L({},ye,{onClick:ze=>{B&&B(ze),ye!=null&&ye.onClick&&ye.onClick(ze)}})),className:Ke(Je==null?void 0:Je.className,d==null?void 0:d.className,ge==null?void 0:ge.backdrop),ownerState:ce});return!_&&!U&&(!G||ve)?null:D.jsx(kY,{ref:j,container:b,disablePortal:w,children:D.jsxs(xe,L({},Me,{children:[!P&&c?D.jsx(Ne,L({},Ge)):null,D.jsx(mY,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:se,open:U,children:I.cloneElement(m,ue)})]}))})}),Mp=Obe;function vbe(e){return At("MuiDialog",e)}const Db=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ebe=I.createContext({}),Sbe=Ebe,Tbe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],wbe=Ee(X1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),kbe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${nt(n)}`],paper:["paper",`paperScroll${nt(n)}`,`paperWidth${nt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return wt(a,vbe,t)},xbe=Ee(Mp,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Cbe=Ee("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${nt(n.scroll)}`]]}})(({ownerState:e})=>L({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"}})),Abe=Ee(zo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${nt(n.scroll)}`],t[`paperWidth${nt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>L({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)`,[`&.${Db.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}`,[`&.${Db.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,[`&.${Db.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),_be=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDialog"}),i=ci(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:b="sm",onBackdropClick:O,onClose:y,open:v,PaperComponent:S=zo,PaperProps:k={},scroll:C="paper",TransitionComponent:w=_g,transitionDuration:E=o,TransitionProps:$}=r,P=Ye(r,Tbe),_=L({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:b,scroll:C}),B=kbe(_),U=I.useRef(),V=q=>{U.current=q.target===q.currentTarget},z=q=>{U.current&&(U.current=null,O&&O(q),y&&y(q,"backdropClick"))},W=Fl(s),X=I.useMemo(()=>({titleId:W}),[W]);return D.jsx(xbe,L({className:Ke(B.root,d),closeAfterTransition:!0,components:{Backdrop:wbe},componentsProps:{backdrop:L({transitionDuration:E,as:l},u)},disableEscapeKeyDown:p,onClose:y,open:v,ref:n,onClick:z,ownerState:_},P,{children:D.jsx(w,L({appear:!0,in:v,timeout:E,role:"presentation"},$,{children:D.jsx(Cbe,{className:Ke(B.container),onMouseDown:V,ownerState:_,children:D.jsx(Abe,L({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W},k,{className:Ke(B.paper,k.className),ownerState:_,children:D.jsx(Sbe.Provider,{value:X,children:c})}))})}))}))}),Rbe=_be;function Ibe(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const Dbe=["className","disableSpacing"],Nbe=e=>{const{classes:t,disableSpacing:n}=e;return wt({root:["root",!n&&"spacing"]},Ibe,t)},Pbe=Ee("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>L({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Lbe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ye(r,Dbe),s=L({},r,{disableSpacing:o}),l=Nbe(s);return D.jsx(Pbe,L({className:Ke(l.root,i),ownerState:s,ref:n},a))}),Mbe=Lbe;function $be(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const Fbe=_t("MuiDialogTitle",["root"]),Bbe=Fbe,Ube=["className","dividers"],jbe=e=>{const{classes:t,dividers:n}=e;return wt({root:["root",n&&"dividers"]},$be,t)},zbe=Ee("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>L({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}`}:{[`.${Bbe.root} + &`]:{paddingTop:0}})),Vbe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ye(r,Ube),s=L({},r,{dividers:o}),l=jbe(s);return D.jsx(zbe,L({className:Ke(l.root,i),ownerState:s,ref:n},a))}),Hbe=Vbe;function Wbe(e){return At("MuiDivider",e)}const Qbe=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$8=Qbe,Ybe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Gbe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return wt({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Wbe,r)},qbe=Ee("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})=>L({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)`:cn(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})=>L({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>L({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Zbe=Ee("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>L({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)`})),NY=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth"}=r,m=Ye(r,Ybe),b=L({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),O=Gbe(b);return D.jsx(qbe,L({as:s,className:Ke(O.root,a),role:d,ref:n,ownerState:b},m,{children:o?D.jsx(Zbe,{className:O.wrapper,ownerState:b,children:o}):null}))});NY.muiSkipListHighlight=!0;const dc=NY,Xbe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Kbe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Js(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Jbe(e){return typeof e=="function"?e():e}function Dv(e,t,n){const r=Jbe(n),i=Kbe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const eye=I.forwardRef(function(t,n){const r=ci(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:c="down",easing:d=i,in:p,onEnter:h,onEntered:m,onEntering:b,onExit:O,onExited:y,onExiting:v,style:S,timeout:k=o,TransitionComponent:C=Y1}=t,w=Ye(t,Xbe),E=I.useRef(null),$=yn(l.ref,E,n),P=Y=>Z=>{Y&&(Z===void 0?Y(E.current):Y(E.current,Z))},_=P((Y,Z)=>{Dv(c,Y,u),zN(Y),h&&h(Y,Z)}),B=P((Y,Z)=>{const j=Wd({timeout:k,style:S,easing:d},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",L({},j)),Y.style.transition=r.transitions.create("transform",L({},j)),Y.style.webkitTransform="none",Y.style.transform="none",b&&b(Y,Z)}),U=P(m),V=P(v),z=P(Y=>{const Z=Wd({timeout:k,style:S,easing:d},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",Z),Y.style.transition=r.transitions.create("transform",Z),Dv(c,Y,u),O&&O(Y)}),W=P(Y=>{Y.style.webkitTransition="",Y.style.transition="",y&&y(Y)}),X=Y=>{a&&a(E.current,Y)},q=I.useCallback(()=>{E.current&&Dv(c,E.current,u)},[c,u]);return I.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=Cg(()=>{E.current&&Dv(c,E.current,u)}),Z=Js(E.current);return Z.addEventListener("resize",Y),()=>{Y.clear(),Z.removeEventListener("resize",Y)}},[c,p,u]),I.useEffect(()=>{p||q()},[p,q]),D.jsx(C,L({nodeRef:E,onEnter:_,onEntered:U,onEntering:B,onExit:z,onExited:W,onExiting:V,addEndListener:X,appear:s,in:p,timeout:k},w,{children:(Y,Z)=>I.cloneElement(l,L({ref:$,style:L({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},Z))}))}),PY=eye;function tye(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const nye=["BackdropProps"],rye=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],LY=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},iye=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${nt(n)}`,r!=="temporary"&&`paperAnchorDocked${nt(n)}`]};return wt(i,tye,t)},oye=Ee(Mp,{name:"MuiDrawer",slot:"Root",overridesResolver:LY})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),F8=Ee("div",{shouldForwardProp:no,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:LY})({flex:"0 0 auto"}),aye=Ee(zo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${nt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${nt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>L({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}`})),MY={left:"right",right:"left",top:"down",bottom:"up"};function sye(e){return["left","right"].indexOf(e)!==-1}function lye(e,t){return e.direction==="rtl"&&sye(t)?MY[t]:t}const uye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDrawer"}),i=ci(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:b={},SlideProps:O,TransitionComponent:y=PY,transitionDuration:v=o,variant:S="temporary"}=r,k=Ye(r.ModalProps,nye),C=Ye(r,rye),w=I.useRef(!1);I.useEffect(()=>{w.current=!0},[]);const E=lye(i,a),P=L({},r,{anchor:a,elevation:c,open:m,variant:S},C),_=iye(P),B=D.jsx(aye,L({elevation:S==="temporary"?c:0,square:!0},b,{className:Ke(_.paper,b.className),ownerState:P,children:l}));if(S==="permanent")return D.jsx(F8,L({className:Ke(_.root,_.docked,u),ownerState:P,ref:n},C,{children:B}));const U=D.jsx(y,L({in:m,direction:MY[E],timeout:v,appear:w.current},O,{children:B}));return S==="persistent"?D.jsx(F8,L({className:Ke(_.root,_.docked,u),ownerState:P,ref:n},C,{children:U})):D.jsx(oye,L({BackdropProps:L({},s,p,{transitionDuration:v}),className:Ke(_.root,_.modal,u),open:m,ownerState:P,onClose:h,hideBackdrop:d,ref:n},C,k,{children:U}))}),cye=uye,dye=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],fye=e=>{const{classes:t,disableUnderline:n}=e,i=wt({root:["root",!n&&"underline"],input:["input"]},ige,t);return L({},t,i)},pye=Ee(Dk,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rk(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)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return L({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.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(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&L({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}))}),hye=Ee(Nk,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ik})(({theme:e,ownerState:t})=>L({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})),$Y=I.forwardRef(function(t,n){var r,i,o,a;const s=mt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:b="text"}=s,O=Ye(s,dye),y=L({},s,{fullWidth:c,inputComponent:d,multiline:p,type:b}),v=fye(s),S={root:{ownerState:y},input:{ownerState:y}},k=h??u?Mo(S,h??u):S,C=(r=(i=m.root)!=null?i:l.Root)!=null?r:pye,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:hye;return D.jsx(XN,L({slots:{root:C,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},O,{classes:v}))});$Y.muiName="Input";const FY=$Y;function mye(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const gye=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],bye=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${nt(n)}`,r&&"fullWidth"]};return wt(i,mye,t)},yye=Ee("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,t[`margin${nt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>L({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%"})),Oye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:b="medium",variant:O="outlined"}=r,y=Ye(r,gye),v=L({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:b,variant:O}),S=bye(v),[k,C]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{if(!kb(z,["Input","Select"]))return;const W=kb(z,["Select"])?z.props.input:z;W&&Yme(W.props)&&(V=!0)}),V}),[w,E]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{kb(z,["Input","Select"])&&(uT(z.props,!0)||uT(z.props.inputProps,!0))&&(V=!0)}),V}),[$,P]=I.useState(!1);l&&$&&P(!1);const _=c!==void 0&&!l?c:$;let B;const U=I.useMemo(()=>({adornedStart:k,setAdornedStart:C,color:a,disabled:l,error:u,filled:w,focused:_,fullWidth:d,hiddenLabel:p,size:b,onBlur:()=>{P(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{P(!0)},registerEffect:B,required:m,variant:O}),[k,a,l,u,w,_,d,p,B,m,b,O]);return D.jsx(_k.Provider,{value:U,children:D.jsx(yye,L({as:s,ownerState:v,className:Ke(S.root,o),ref:n},y,{children:i}))})}),Lu=Oye,vye=Qde({createStyledComponent:Ee("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>mt({props:e,name:"MuiStack"})}),cr=vye;function Eye(e){return At("MuiFormControlLabel",e)}const Sye=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ob=Sye,Tye=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],wye=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${nt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return wt(a,Eye,t)},kye=Ee("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ob.label}`]:t.label},t.root,t[`labelPlacement${nt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>L({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ob.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},{[`& .${ob.label}`]:{[`&.${ob.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),xye=Ee("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ob.error}`]:{color:(e.vars||e).palette.error.main}})),Cye=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:h,slotProps:m={}}=o,b=Ye(o,Tye),O=Pu(),y=(r=u??l.props.disabled)!=null?r:O==null?void 0:O.disabled,v=h??l.props.required,S={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(P=>{typeof l.props[P]>"u"&&typeof o[P]<"u"&&(S[P]=o[P])});const k=lf({props:o,muiFormControl:O,states:["error"]}),C=L({},o,{disabled:y,labelPlacement:p,required:v,error:k.error}),w=wye(C),E=(i=m.typography)!=null?i:s.typography;let $=d;return $!=null&&$.type!==dr&&!c&&($=D.jsx(dr,L({component:"span"},E,{className:Ke(w.label,E==null?void 0:E.className),children:$}))),D.jsxs(kye,L({className:Ke(w.root,a),ownerState:C,ref:n},b,{children:[I.cloneElement(l,S),v?D.jsxs(cr,{display:"block",children:[$,D.jsxs(xye,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):$]}))}),Ry=Cye;function Aye(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const _ye=["className","row"],Rye=e=>{const{classes:t,row:n,error:r}=e;return wt({root:["root",n&&"row",r&&"error"]},Aye,t)},Iye=Ee("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>L({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Dye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ye(r,_ye),s=Pu(),l=lf({props:r,muiFormControl:s,states:["error"]}),u=L({},r,{row:o,error:l.error}),c=Rye(u);return D.jsx(Iye,L({className:Ke(c.root,i),ownerState:u,ref:n},a))}),JN=Dye;function Nye(e){return At("MuiFormHelperText",e)}const Pye=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),B8=Pye;var U8;const Lye=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Mye=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${nt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return wt(u,Nye,t)},$ye=Ee("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${nt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${B8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${B8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Fye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ye(r,Lye),l=Pu(),u=lf({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=L({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Mye(c);return D.jsx($ye,L({as:a,ownerState:c,className:Ke(d.root,o),ref:n},s,{children:i===" "?U8||(U8=D.jsx("span",{className:"notranslate",children:"​"})):i}))}),Rg=Fye;function Bye(e){return At("MuiFormLabel",e)}const Nb=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Uye=["children","className","color","component","disabled","error","filled","focused","required"],jye=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${nt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return wt(l,Bye,t)},zye=Ee("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Nb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Nb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nb.error}`]:{color:(e.vars||e).palette.error.main}})),Vye=Ee("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Nb.error}`]:{color:(e.vars||e).palette.error.main}})),Hye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ye(r,Uye),l=Pu(),u=lf({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=L({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=jye(c);return D.jsxs(zye,L({as:a,ownerState:c,className:Ke(d.root,o),ref:n},s,{children:[i,u.required&&D.jsxs(Vye,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),$k=Hye,Wye=I.createContext(),j8=Wye;function Qye(e){return At("MuiGrid",e)}const Yye=[0,1,2,3,4,5,6,7,8,9,10],Gye=["column-reverse","column","row-reverse","row"],qye=["nowrap","wrap-reverse","wrap"],E0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Iy=_t("MuiGrid",["root","container","item","zeroMinWidth",...Yye.map(e=>`spacing-xs-${e}`),...Gye.map(e=>`direction-xs-${e}`),...qye.map(e=>`wrap-xs-${e}`),...E0.map(e=>`grid-xs-${e}`),...E0.map(e=>`grid-sm-${e}`),...E0.map(e=>`grid-md-${e}`),...E0.map(e=>`grid-lg-${e}`),...E0.map(e=>`grid-xl-${e}`)]),Zye=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function hm(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Xye({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=up({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${hm(c)})`;u={flexBasis:d,maxWidth:d}}}o=L({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function Kye({theme:e,ownerState:t}){const n=up({values:t.direction,breakpoints:e.breakpoints.values});return Da({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Iy.item}`]={maxWidth:"none"}),i})}function BY({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function Jye({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=up({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=BY({breakpoints:e.breakpoints.values,values:o})),i=Da({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${hm(c)}`,[`& > .${Iy.item}`]:{paddingTop:hm(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Iy.item}`]:{paddingTop:0}}})}return i}function e1e({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=up({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=BY({breakpoints:e.breakpoints.values,values:o})),i=Da({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${hm(c)})`,marginLeft:`-${hm(c)}`,[`& > .${Iy.item}`]:{paddingLeft:hm(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Iy.item}`]:{paddingLeft:0}}})}return i}function t1e(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 o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const n1e=Ee("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=t1e(a,u,t));const d=[];return u.forEach(p=>{const h=n[p];h&&d.push(t[`grid-${p}-${String(h)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>L({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}),Kye,Jye,e1e,Xye);function r1e(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 o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const i1e=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=r1e(o,l));const c=[];l.forEach(p=>{const h=e[p];h&&c.push(`grid-${p}-${String(h)}`)});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return wt(d,Qye,t)},o1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiGrid"}),{breakpoints:i}=ci(),o=Sk(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:m=0,wrap:b="wrap",zeroMinWidth:O=!1}=o,y=Ye(o,Zye),v=h||m,S=l||m,k=I.useContext(j8),C=c?s||12:k,w={},E=L({},y);i.keys.forEach(_=>{y[_]!=null&&(w[_]=y[_],delete E[_])});const $=L({},o,{columns:C,container:c,direction:d,item:p,rowSpacing:v,columnSpacing:S,wrap:b,zeroMinWidth:O,spacing:m},w,{breakpoints:i.keys}),P=i1e($);return D.jsx(j8.Provider,{value:C,children:D.jsx(n1e,L({ownerState:$,className:Ke(P.root,a),as:u,ref:n},E))})}),qh=o1e,a1e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Y_(e){return`scale(${e}, ${e**2})`}const s1e={entering:{opacity:1,transform:Y_(1)},entered:{opacity:1,transform:"none"}},ZC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),UY=I.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:b="auto",TransitionComponent:O=Y1}=t,y=Ye(t,a1e),v=I.useRef(),S=I.useRef(),k=ci(),C=I.useRef(null),w=yn(C,o.ref,n),E=W=>X=>{if(W){const q=C.current;X===void 0?W(q):W(q,X)}},$=E(c),P=E((W,X)=>{zN(W);const{duration:q,delay:Y,easing:Z}=Wd({style:m,timeout:b,easing:a},{mode:"enter"});let j;b==="auto"?(j=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=j):j=q,W.style.transition=[k.transitions.create("opacity",{duration:j,delay:Y}),k.transitions.create("transform",{duration:ZC?j:j*.666,delay:Y,easing:Z})].join(","),l&&l(W,X)}),_=E(u),B=E(h),U=E(W=>{const{duration:X,delay:q,easing:Y}=Wd({style:m,timeout:b,easing:a},{mode:"exit"});let Z;b==="auto"?(Z=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=Z):Z=X,W.style.transition=[k.transitions.create("opacity",{duration:Z,delay:q}),k.transitions.create("transform",{duration:ZC?Z:Z*.666,delay:ZC?q:q||Z*.333,easing:Y})].join(","),W.style.opacity=0,W.style.transform=Y_(.75),d&&d(W)}),V=E(p),z=W=>{b==="auto"&&(v.current=setTimeout(W,S.current||0)),r&&r(C.current,W)};return I.useEffect(()=>()=>{clearTimeout(v.current)},[]),D.jsx(O,L({appear:i,in:s,nodeRef:C,onEnter:P,onEntered:_,onEntering:$,onExit:U,onExited:V,onExiting:B,addEndListener:z,timeout:b==="auto"?null:b},y,{children:(W,X)=>I.cloneElement(o,L({style:L({opacity:0,transform:Y_(.75),visibility:W==="exited"&&!s?"hidden":void 0},s1e[W],m,o.props.style),ref:w},X))}))});UY.muiSupportAuto=!0;const cT=UY;function l1e(e,t,n,r,i){const[o,a]=I.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Jr(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const jY=I.useSyncExternalStore;function u1e(e,t,n,r,i){const o=I.useCallback(()=>t,[t]),a=I.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[s,l]=I.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return jY(l,s,a)}function Ig(e,t={}){const n=Ek(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=aY({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(jY!==void 0?u1e:l1e)(l,i,o,a,s)}const c1e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],d1e=e=>{const{classes:t,disableUnderline:n}=e,i=wt({root:["root",!n&&"underline"],input:["input"]},ege,t);return L({},t,i)},f1e=Ee(Dk,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rk(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})`),L({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"},[`&.${od.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${od.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(.${od.disabled}, .${od.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${od.disabled}:before`]:{borderBottomStyle:"dotted"}})}),p1e=Ee(Nk,{name:"MuiInput",slot:"Input",overridesResolver:Ik})({}),zY=I.forwardRef(function(t,n){var r,i,o,a;const s=mt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:b={},type:O="text"}=s,y=Ye(s,c1e),v=d1e(s),k={root:{ownerState:{disableUnderline:l}}},C=m??c?Mo(m??c,k):k,w=(r=(i=b.root)!=null?i:u.Root)!=null?r:f1e,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:p1e;return D.jsx(XN,L({slots:{root:w,input:E},slotProps:C,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:O},y,{classes:v}))});zY.muiName="Input";const VY=zY;function h1e(e){return At("MuiInputAdornment",e)}const m1e=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),z8=m1e;var V8;const g1e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],b1e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},y1e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${nt(i)}`,a,r&&"hiddenLabel",o&&`size${nt(o)}`]};return wt(s,h1e,t)},O1e=Ee("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:b1e})(({theme:e,ownerState:t})=>L({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${z8.positionStart}&:not(.${z8.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),v1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Ye(r,g1e),p=Pu()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=L({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:h}),b=y1e(m);return D.jsx(_k.Provider,{value:null,children:D.jsx(O1e,L({as:a,ownerState:m,className:Ke(b.root,o),ref:n},d,{children:typeof i=="string"&&!l?D.jsx(dr,{color:"text.secondary",children:i}):D.jsxs(I.Fragment,{children:[u==="start"?V8||(V8=D.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),eP=v1e;function E1e(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const S1e=["disableAnimation","margin","shrink","variant","className"],T1e=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${nt(r)}`,a],asterisk:[s&&"asterisk"]},u=wt(l,E1e,t);return L({},t,u)},w1e=Ee($k,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nb.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})=>L({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"&&L({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&&L({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"&&L({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)"}))),k1e=I.forwardRef(function(t,n){const r=mt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ye(r,S1e),l=Pu();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=lf({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=L({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=T1e(d);return D.jsx(w1e,L({"data-shrink":u,ownerState:d,ref:n,className:Ke(p.root,a)},s,{classes:p}))}),HY=k1e,x1e=I.createContext({}),Qs=x1e;function C1e(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const A1e=["children","className","component","dense","disablePadding","subheader"],_1e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return wt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},C1e,t)},R1e=Ee("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})=>L({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),I1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Ye(r,A1e),d=I.useMemo(()=>({dense:s}),[s]),p=L({},r,{component:a,dense:s,disablePadding:l}),h=_1e(p);return D.jsx(Qs.Provider,{value:d,children:D.jsxs(R1e,L({as:a,className:Ke(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),WY=I1e;function D1e(e){return At("MuiListItem",e)}const N1e=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),xh=N1e;function P1e(e){return At("MuiListItemButton",e)}const L1e=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ch=L1e,M1e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],$1e=(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]},F1e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=wt({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},P1e,n);return L({},n,u)},B1e=Ee(hs,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:$1e})(({theme:e,ownerState:t})=>L({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"}},[`&.${Ch.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ch.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ch.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ch.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ch.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})),U1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:p=!1,className:h}=r,m=Ye(r,M1e),b=I.useContext(Qs),O=I.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:u}),[i,b.dense,l,u]),y=I.useRef(null);Jr(()=>{o&&y.current&&y.current.focus()},[o]);const v=L({},r,{alignItems:i,dense:O.dense,disableGutters:u,divider:c,selected:p}),S=F1e(v),k=yn(y,n);return D.jsx(Qs.Provider,{value:O,children:D.jsx(B1e,L({ref:k,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:Ke(S.focusVisible,d),ownerState:v,className:Ke(S.root,h)},m,{classes:S,children:s}))})}),XC=U1e;function j1e(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const z1e=["className"],V1e=e=>{const{disableGutters:t,classes:n}=e;return wt({root:["root",t&&"disableGutters"]},j1e,n)},H1e=Ee("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>L({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),QY=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ye(r,z1e),a=I.useContext(Qs),s=L({},r,{disableGutters:a.disableGutters}),l=V1e(s);return D.jsx(H1e,L({className:Ke(l.root,i),ownerState:s,ref:n},o))});QY.muiName="ListItemSecondaryAction";const dT=QY,W1e=["className"],Q1e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Y1e=(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]},G1e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return wt({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},D1e,r)},q1e=Ee("div",{name:"MuiListItem",slot:"Root",overridesResolver:Y1e})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&L({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ch.root}`]:{paddingRight:48}},{[`&.${xh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xh.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"}},[`&.${xh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Z1e=Ee("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),X1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:m=!1,disabled:b=!1,disableGutters:O=!1,disablePadding:y=!1,divider:v=!1,focusVisibleClassName:S,secondaryAction:k,selected:C=!1,slotProps:w={},slots:E={}}=r,$=Ye(r.ContainerProps,W1e),P=Ye(r,Q1e),_=I.useContext(Qs),B=I.useMemo(()=>({dense:m||_.dense||!1,alignItems:i,disableGutters:O}),[i,_.dense,m,O]),U=I.useRef(null);Jr(()=>{o&&U.current&&U.current.focus()},[o]);const V=I.Children.toArray(s),z=V.length&&kb(V[V.length-1],["ListItemSecondaryAction"]),W=L({},r,{alignItems:i,autoFocus:o,button:a,dense:B.dense,disabled:b,disableGutters:O,disablePadding:y,divider:v,hasSecondaryAction:z,selected:C}),X=G1e(W),q=yn(U,n),Y=E.root||c.Root||q1e,Z=w.root||d.root||{},j=L({className:Ke(X.root,Z.className,l),disabled:b},P);let se=u||"li";return a&&(j.component=u||"div",j.focusVisibleClassName=Ke(xh.focusVisible,S),se=hs),z?(se=!j.component&&!u?"div":se,p==="li"&&(se==="li"?se="div":j.component==="li"&&(j.component="div")),D.jsx(Qs.Provider,{value:B,children:D.jsxs(Z1e,L({as:p,className:Ke(X.container,h),ref:q,ownerState:W},$,{children:[D.jsx(Y,L({},Z,!Cu(Y)&&{as:se,ownerState:L({},W,Z.ownerState)},j,{children:V})),V.pop()]}))})):D.jsx(Qs.Provider,{value:B,children:D.jsxs(Y,L({},Z,{as:se,ref:q},!Cu(Y)&&{ownerState:L({},W,Z.ownerState)},j,{children:[V,k&&D.jsx(dT,{children:k})]}))})}),Ah=X1e;function K1e(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const J1e=["className"],eOe=e=>{const{alignItems:t,classes:n}=e;return wt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},K1e,n)},tOe=Ee("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>L({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),nOe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ye(r,J1e),a=I.useContext(Qs),s=L({},r,{alignItems:a.alignItems}),l=eOe(s);return D.jsx(tOe,L({className:Ke(l.root,i),ownerState:s,ref:n},o))}),rOe=nOe;function iOe(e){return At("MuiListItemIcon",e)}const oOe=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),H8=oOe,aOe=["className"],sOe=e=>{const{alignItems:t,classes:n}=e;return wt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},iOe,n)},lOe=Ee("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})=>L({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),uOe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ye(r,aOe),a=I.useContext(Qs),s=L({},r,{alignItems:a.alignItems}),l=sOe(s);return D.jsx(lOe,L({className:Ke(l.root,i),ownerState:s,ref:n},o))}),tP=uOe;function cOe(e){return At("MuiListItemText",e)}const dOe=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),fT=dOe,fOe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],pOe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return wt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},cOe,t)},hOe=Ee("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fT.primary}`]:t.primary},{[`& .${fT.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>L({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),mOe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,p=Ye(r,fOe),{dense:h}=I.useContext(Qs);let m=l??i,b=c;const O=L({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!b,dense:h}),y=pOe(O);return m!=null&&m.type!==dr&&!a&&(m=D.jsx(dr,L({variant:h?"body2":"body1",className:y.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),b!=null&&b.type!==dr&&!a&&(b=D.jsx(dr,L({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:b}))),D.jsxs(hOe,L({className:Ke(y.root,o),ownerState:O,ref:n},p,{children:[m,b]}))}),dp=mOe,gOe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function KC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function W8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function YY(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 S0(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!YY(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const bOe=I.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Ye(t,gOe),h=I.useRef(null),m=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jr(()=>{i&&h.current.focus()},[i]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const C=!h.current.style.width;if(S.clientHeight{const k=h.current,C=S.key,w=Or(k).activeElement;if(C==="ArrowDown")S.preventDefault(),S0(k,w,u,l,KC);else if(C==="ArrowUp")S.preventDefault(),S0(k,w,u,l,W8);else if(C==="Home")S.preventDefault(),S0(k,null,u,l,KC);else if(C==="End")S.preventDefault(),S0(k,null,u,l,W8);else if(C.length===1){const E=m.current,$=C.toLowerCase(),P=performance.now();E.keys.length>0&&(P-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=P,E.keys.push($);const _=w&&!E.repeating&&YY(w,E);E.previousKeyMatched&&(_||S0(k,w,!1,l,KC,E))?S.preventDefault():E.previousKeyMatched=!1}c&&c(S)},O=yn(h,n);let y=-1;I.Children.forEach(a,(S,k)=>{if(!I.isValidElement(S)){y===k&&(y+=1,y>=a.length&&(y=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||y===-1)&&(y=k),y===k&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const v=I.Children.map(a,(S,k)=>{if(k===y){const C={};return o&&(C.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),I.cloneElement(S,C)}return S});return D.jsx(WY,L({role:"menu",ref:O,className:s,onKeyDown:b,tabIndex:i?0:-1},p,{children:v}))}),K1=bOe;function yOe(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const OOe=["onEntering"],vOe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],EOe=["slotProps"];function Q8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Y8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function G8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function JC(e){return typeof e=="function"?e():e}const SOe=e=>{const{classes:t}=e;return wt({root:["root"],paper:["paper"]},yOe,t)},TOe=Ee(Mp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GY=Ee(zo,{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}),wOe=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:b=8,marginThreshold:O=16,open:y,PaperProps:v={},slots:S,slotProps:k,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=cT,transitionDuration:E="auto",TransitionProps:{onEntering:$}={},disableScrollLock:P=!1}=a,_=Ye(a.TransitionProps,OOe),B=Ye(a,vOe),U=(r=k==null?void 0:k.paper)!=null?r:v,V=I.useRef(),z=yn(V,U.ref),W=L({},a,{anchorOrigin:u,anchorReference:d,elevation:b,marginThreshold:O,externalPaperSlotProps:U,transformOrigin:C,TransitionComponent:w,transitionDuration:E,TransitionProps:_}),X=SOe(W),q=I.useCallback(()=>{if(d==="anchorPosition")return c;const ye=JC(l),$e=(ye&&ye.nodeType===1?ye:Or(V.current).body).getBoundingClientRect();return{top:$e.top+Q8($e,u.vertical),left:$e.left+Y8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=I.useCallback(ye=>({vertical:Q8(ye,C.vertical),horizontal:Y8(ye,C.horizontal)}),[C.horizontal,C.vertical]),Z=I.useCallback(ye=>{const ze={width:ye.offsetWidth,height:ye.offsetHeight},$e=Y(ze);if(d==="none")return{top:null,left:null,transformOrigin:G8($e)};const We=q();let dt=We.top-$e.vertical,Be=We.left-$e.horizontal;const re=dt+ze.height,ee=Be+ze.width,J=Js(JC(l)),Re=J.innerHeight-O,Le=J.innerWidth-O;if(O!==null&&dtRe){const De=re-Re;dt-=De,$e.vertical+=De}if(O!==null&&BeLe){const De=ee-Le;Be-=De,$e.horizontal+=De}return{top:`${Math.round(dt)}px`,left:`${Math.round(Be)}px`,transformOrigin:G8($e)}},[l,d,q,Y,O]),[j,se]=I.useState(y),ve=I.useCallback(()=>{const ye=V.current;if(!ye)return;const ze=Z(ye);ze.top!==null&&(ye.style.top=ze.top),ze.left!==null&&(ye.style.left=ze.left),ye.style.transformOrigin=ze.transformOrigin,se(!0)},[Z]);I.useEffect(()=>(P&&window.addEventListener("scroll",ve),()=>window.removeEventListener("scroll",ve)),[l,P,ve]);const G=(ye,ze)=>{$&&$(ye,ze),ve()},ce=()=>{se(!1)};I.useEffect(()=>{y&&ve()}),I.useImperativeHandle(s,()=>y?{updatePosition:()=>{ve()}}:null,[y,ve]),I.useEffect(()=>{if(!y)return;const ye=Cg(()=>{ve()}),ze=Js(l);return ze.addEventListener("resize",ye),()=>{ye.clear(),ze.removeEventListener("resize",ye)}},[l,y,ve]);let ge=E;E==="auto"&&!w.muiSupportAuto&&(ge=void 0);const ue=m||(l?Or(JC(l)).body:void 0),xe=(i=S==null?void 0:S.root)!=null?i:TOe,Ne=(o=S==null?void 0:S.paper)!=null?o:GY,Ve=kn({elementType:Ne,externalSlotProps:L({},U,{style:j?U.style:L({},U.style,{opacity:0})}),additionalProps:{elevation:b,ref:z},ownerState:W,className:Ke(X.paper,U==null?void 0:U.className)}),Je=kn({elementType:xe,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:y},ownerState:W,className:Ke(X.root,h)}),{slotProps:Me}=Je,Ge=Ye(Je,EOe);return D.jsx(xe,L({},Ge,!Cu(xe)&&{slotProps:Me,disableScrollLock:P},{children:D.jsx(w,L({appear:!0,in:y,onEntering:G,onExited:ce,timeout:ge},_,{children:D.jsx(Ne,L({},Ve,{children:p}))}))}))}),nP=wOe;function kOe(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const xOe=["onEntering"],COe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],AOe={vertical:"top",horizontal:"right"},_Oe={vertical:"top",horizontal:"left"},ROe=e=>{const{classes:t}=e;return wt({root:["root"],paper:["paper"],list:["list"]},kOe,t)},IOe=Ee(nP,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DOe=Ee(GY,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),NOe=Ee(K1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),POe=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:b="auto",TransitionProps:{onEntering:O}={},variant:y="selectedMenu",slots:v={},slotProps:S={}}=o,k=Ye(o.TransitionProps,xOe),C=Ye(o,COe),w=ci(),E=w.direction==="rtl",$=L({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:O,PaperProps:h,transitionDuration:b,TransitionProps:k,variant:y}),P=ROe($),_=a&&!u&&p,B=I.useRef(null),U=(Z,j)=>{B.current&&B.current.adjustStyleForScrollbar(Z,w),O&&O(Z,j)},V=Z=>{Z.key==="Tab"&&(Z.preventDefault(),d&&d(Z,"tabKeyDown"))};let z=-1;I.Children.map(s,(Z,j)=>{I.isValidElement(Z)&&(Z.props.disabled||(y==="selectedMenu"&&Z.props.selected||z===-1)&&(z=j))});const W=(r=v.paper)!=null?r:DOe,X=(i=S.paper)!=null?i:h,q=kn({elementType:v.root,externalSlotProps:S.root,ownerState:$,className:[P.root,l]}),Y=kn({elementType:W,externalSlotProps:X,ownerState:$,className:P.paper});return D.jsx(IOe,L({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?AOe:_Oe,slots:{paper:W,root:v.root},slotProps:{root:q,paper:Y},open:p,ref:n,transitionDuration:b,TransitionProps:L({onEntering:U},k),ownerState:$},C,{classes:m,children:D.jsx(NOe,L({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:_,variant:y},c,{className:Ke(P.list,c.className),children:s}))}))}),LOe=POe;function MOe(e){return At("MuiMenuItem",e)}const $Oe=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),T0=$Oe,FOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],BOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},UOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=wt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},MOe,a);return L({},a,l)},jOe=Ee(hs,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:BOe})(({theme:e,ownerState:t})=>L({},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"}},[`&.${T0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${T0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${T0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${T0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${T0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${$8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${$8.inset}`]:{marginLeft:52},[`& .${fT.root}`]:{marginTop:0,marginBottom:0},[`& .${fT.inset}`]:{paddingLeft:36},[`& .${H8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&L({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${H8.root} svg`]:{fontSize:"1.25rem"}}))),zOe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,h=Ye(r,FOe),m=I.useContext(Qs),b=I.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),O=I.useRef(null);Jr(()=>{i&&O.current&&O.current.focus()},[i]);const y=L({},r,{dense:b.dense,divider:s,disableGutters:l}),v=UOe(r),S=yn(O,n);let k;return r.disabled||(k=d!==void 0?d:-1),D.jsx(Qs.Provider,{value:b,children:D.jsx(jOe,L({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:Ke(v.focusVisible,u),className:Ke(v.root,p)},h,{ownerState:y,classes:v}))})}),Sp=zOe;function VOe(e){return At("MuiNativeSelect",e)}const HOe=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rP=HOe,WOe=["className","disabled","error","IconComponent","inputRef","variant"],QOe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"]};return wt(s,VOe,t)},qY=({ownerState:e,theme:t})=>L({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":L({},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"},[`&.${rP.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}}),YOe=Ee("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:no,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${rP.multiple}`]:t.multiple}]}})(qY),ZY=({ownerState:e,theme:t})=>L({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${rP.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),GOe=Ee("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(ZY),qOe=I.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ye(t,WOe),c=L({},t,{disabled:i,variant:l,error:o}),d=QOe(c);return D.jsxs(I.Fragment,{children:[D.jsx(YOe,L({ownerState:c,className:Ke(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:D.jsx(GOe,{as:a,ownerState:c,className:d.icon})]})}),ZOe=qOe;var q8;const XOe=["children","classes","className","label","notched"],KOe=Ee("fieldset",{shouldForwardProp:no})({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%"}),JOe=Ee("legend",{shouldForwardProp:no})(({ownerState:e,theme:t})=>L({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&&L({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 eve(e){const{className:t,label:n,notched:r}=e,i=Ye(e,XOe),o=n!=null&&n!=="",a=L({},e,{notched:r,withLabel:o});return D.jsx(KOe,L({"aria-hidden":!0,className:t,ownerState:a},i,{children:D.jsx(JOe,{ownerState:a,children:o?D.jsx("span",{children:n}):q8||(q8=D.jsx("span",{className:"notranslate",children:"​"}))})}))}const tve=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nve=e=>{const{classes:t}=e,r=wt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nge,t);return L({},t,r)},rve=Ee(Dk,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return L({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ou.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ou.focused} .${ou.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ou.error} .${ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ou.disabled} .${ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&L({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),ive=Ee(eve,{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}}),ove=Ee(Nk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ik})(({theme:e,ownerState:t})=>L({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})),XY=I.forwardRef(function(t,n){var r,i,o,a,s;const l=mt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:b={},type:O="text"}=l,y=Ye(l,tve),v=nve(l),S=Pu(),k=lf({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=L({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:c,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:O}),w=(r=(i=b.root)!=null?i:u.Root)!=null?r:rve,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:ove;return D.jsx(XN,L({slots:{root:w,input:E},renderSuffix:$=>D.jsx(ive,{ownerState:C,className:v.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=D.jsxs(I.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:O},y,{classes:L({},v,{notchedOutline:null})}))});XY.muiName="Input";const KY=XY,ave=ki(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"),sve=ki(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"),lve=Ee("span",{shouldForwardProp:no})({position:"relative",display:"flex"}),uve=Ee(ave)({transform:"scale(1)"}),cve=Ee(sve)(({theme:e,ownerState:t})=>L({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 JY(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=L({},e,{checked:t});return D.jsxs(lve,{className:n.root,ownerState:i,children:[D.jsx(uve,{fontSize:r,className:n.background,ownerState:i}),D.jsx(cve,{fontSize:r,className:n.dot,ownerState:i})]})}const dve=I.createContext(void 0),eG=dve;function fve(){return I.useContext(eG)}function pve(e){return At("MuiRadio",e)}const Z8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),hve=["checked","checkedIcon","color","icon","name","onChange","size","className"],mve=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${nt(n)}`,r!=="medium"&&`size${nt(r)}`]};return L({},t,wt(i,pve,t))},gve=Ee(KN,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${nt(n.size)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Z8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Z8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function bve(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const X8=D.jsx(JY,{checked:!0}),K8=D.jsx(JY,{}),yve=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=X8,color:l="primary",icon:u=K8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ye(o,hve),b=L({},o,{color:l,size:p}),O=mve(b),y=fve();let v=a;const S=nT(d,y&&y.onChange);let k=c;return y&&(typeof v>"u"&&(v=bve(y.value,o.value)),typeof k>"u"&&(k=y.name)),D.jsx(gve,L({type:"radio",icon:I.cloneElement(u,{fontSize:(r=K8.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(s,{fontSize:(i=X8.props.fontSize)!=null?i:p}),ownerState:b,classes:O,name:k,checked:v,onChange:S,ref:n,className:Ke(O.root,h)},m))}),J8=yve,Ove=["actions","children","defaultValue","name","onChange","value"],vve=I.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ye(t,Ove),c=I.useRef(null),[d,p]=Ji({controlled:l,default:o,name:"RadioGroup"});I.useImperativeHandle(r,()=>({focus:()=>{let O=c.current.querySelector("input:not(:disabled):checked");O||(O=c.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const h=yn(n,c),m=Fl(a),b=I.useMemo(()=>({name:m,onChange(O){p(O.target.value),s&&s(O,O.target.value)},value:d}),[m,s,p,d]);return D.jsx(eG.Provider,{value:b,children:D.jsx(JN,L({role:"radiogroup",ref:h},u,{children:i}))})}),Eve=vve;function Sve(e){return At("MuiSelect",e)}const w0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var e7;const Tve=["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"],wve=Ee("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${w0.select}`]:t.select},{[`&.${w0.select}`]:t[n.variant]},{[`&.${w0.error}`]:t.error},{[`&.${w0.multiple}`]:t.multiple}]}})(qY,{[`&.${w0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kve=Ee("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(ZY),xve=Ee("input",{shouldForwardProp:e=>MN(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 t7(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Cve(e){return e==null||typeof e=="string"&&!e.trim()}const Ave=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return wt(s,Sve,t)},_ve=I.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:b,inputRef:O,labelId:y,MenuProps:v={},multiple:S,name:k,onBlur:C,onChange:w,onClose:E,onFocus:$,onOpen:P,open:_,readOnly:B,renderValue:U,SelectDisplayProps:V={},tabIndex:z,value:W,variant:X="standard"}=t,q=Ye(t,Tve),[Y,Z]=Ji({controlled:W,default:d,name:"Select"}),[j,se]=Ji({controlled:_,default:c,name:"Select"}),ve=I.useRef(null),G=I.useRef(null),[ce,ge]=I.useState(null),{current:ue}=I.useRef(_!=null),[xe,Ne]=I.useState(),Ve=yn(n,O),Je=I.useCallback(et=>{G.current=et,et&&ge(et)},[]),Me=ce==null?void 0:ce.parentNode;I.useImperativeHandle(Ve,()=>({focus:()=>{G.current.focus()},node:ve.current,value:Y}),[Y]),I.useEffect(()=>{c&&j&&ce&&!ue&&(Ne(s?null:Me.clientWidth),G.current.focus())},[ce,s]),I.useEffect(()=>{a&&G.current.focus()},[a]),I.useEffect(()=>{if(!y)return;const et=Or(G.current).getElementById(y);if(et){const vt=()=>{getSelection().isCollapsed&&G.current.focus()};return et.addEventListener("click",vt),()=>{et.removeEventListener("click",vt)}}},[y]);const Ge=(et,vt)=>{et?P&&P(vt):E&&E(vt),ue||(Ne(s?null:Me.clientWidth),se(et))},ye=et=>{et.button===0&&(et.preventDefault(),G.current.focus(),Ge(!0,et))},ze=et=>{Ge(!1,et)},$e=I.Children.toArray(l),We=et=>{const vt=$e.find(qe=>qe.props.value===et.target.value);vt!==void 0&&(Z(vt.props.value),w&&w(et,vt))},dt=et=>vt=>{let qe;if(vt.currentTarget.hasAttribute("tabindex")){if(S){qe=Array.isArray(Y)?Y.slice():[];const it=Y.indexOf(et.props.value);it===-1?qe.push(et.props.value):qe.splice(it,1)}else qe=et.props.value;if(et.props.onClick&&et.props.onClick(vt),Y!==qe&&(Z(qe),w)){const it=vt.nativeEvent||vt,Et=new it.constructor(it.type,it);Object.defineProperty(Et,"target",{writable:!0,value:{value:qe,name:k}}),w(Et,et)}S||Ge(!1,vt)}},Be=et=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(et.key)!==-1&&(et.preventDefault(),Ge(!0,et))},re=ce!==null&&j,ee=et=>{!re&&C&&(Object.defineProperty(et,"target",{writable:!0,value:{value:Y,name:k}}),C(et))};delete q["aria-invalid"];let J,Re;const Le=[];let De=!1;(uT({value:Y})||h)&&(U?J=U(Y):De=!0);const ie=$e.map(et=>{if(!I.isValidElement(et))return null;let vt;if(S){if(!Array.isArray(Y))throw new Error(Vd(2));vt=Y.some(qe=>t7(qe,et.props.value)),vt&&De&&Le.push(et.props.children)}else vt=t7(Y,et.props.value),vt&&De&&(Re=et.props.children);return I.cloneElement(et,{"aria-selected":vt?"true":"false",onClick:dt(et),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(qe)},role:"option",selected:vt,value:void 0,"data-value":et.props.value})});De&&(S?Le.length===0?J=null:J=Le.reduce((et,vt,qe)=>(et.push(vt),qe{const{classes:t}=e;return t},iP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>no(e)&&e!=="variant",slot:"Root"},Pve=Ee(VY,iP)(""),Lve=Ee(KY,iP)(""),Mve=Ee(FY,iP)(""),tG=I.forwardRef(function(t,n){const r=mt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=IY,id:d,input:p,inputProps:h,label:m,labelId:b,MenuProps:O,multiple:y=!1,native:v=!1,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:E,variant:$="outlined"}=r,P=Ye(r,Ive),_=v?ZOe:Rve,B=Pu(),U=lf({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||$,z=L({},r,{variant:V,classes:a}),W=Nve(z),X=Ye(W,Dve),q=p||{standard:D.jsx(Pve,{ownerState:z}),outlined:D.jsx(Lve,{label:m,ownerState:z}),filled:D.jsx(Mve,{ownerState:z})}[V],Y=yn(n,q.ref);return D.jsx(I.Fragment,{children:I.cloneElement(q,L({inputComponent:_,inputProps:L({children:o,error:U.error,IconComponent:c,variant:V,type:void 0,multiple:y},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:O,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:L({id:d},E)},h,{classes:h?Mo(X,h.classes):X},p?p.props.inputProps:{})},y&&v&&V==="outlined"?{notched:!0}:{},{ref:Y,className:Ke(q.props.className,s,W.root)},!p&&{variant:V},P))})});tG.muiName="Select";const nG=tG,$ve=e=>!e||!Cu(e);function Fve(e){return At("MuiSlider",e)}const kl=_t("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"]),Bve=e=>{const{open:t}=e;return{offset:Ke(t&&kl.valueLabelOpen),circle:kl.valueLabelCircle,label:kl.valueLabelLabel}};function Uve(e){const{children:t,className:n,value:r}=e,i=Bve(e);return t?I.cloneElement(t,{className:Ke(t.props.className)},D.jsxs(I.Fragment,{children:[t.props.children,D.jsx("span",{className:Ke(i.offset,n),"aria-hidden":!0,children:D.jsx("span",{className:i.circle,children:D.jsx("span",{className:i.label,children:r})})})]})):null}const jve=["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 n7(e){return e}const zve=Ee("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],n.size!=="medium"&&t[`size${nt(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})=>L({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"&&L({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"&&L({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"},[`&.${kl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${kl.dragging}`]:{[`& .${kl.thumb}, & .${kl.track}`]:{transition:"none"}}})),Vve=Ee("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>L({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})),Hve=Ee("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?kk(e.palette[t.color].main,.62):wk(e.palette[t.color].main,.5);return L({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})}),Wve=Ee("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nt(n.color)}`],n.size!=="medium"&&t[`thumbSize${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({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":L({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, &.${kl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${kl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`},[`&.${kl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Qve=Ee(Uve,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>L({[`&.${kl.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"})),Yve=Ee("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>MN(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>L({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})),Gve=Ee("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>MN(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>L({},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})),qve=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${nt(s)}`,l&&`size${nt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${nt(l)}`,s&&`thumbColor${nt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return wt(u,Fve,a)},Zve=({children:e})=>e,Xve=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E,$,P,_;const B=mt({props:t,name:"MuiSlider"}),V=ci().direction==="rtl",{"aria-label":z,"aria-valuetext":W,"aria-labelledby":X,component:q="span",components:Y={},componentsProps:Z={},color:j="primary",classes:se,className:ve,disableSwap:G=!1,disabled:ce=!1,getAriaLabel:ge,getAriaValueText:ue,marks:xe=!1,max:Ne=100,min:Ve=0,orientation:Je="horizontal",size:Me="medium",step:Ge=1,scale:ye=n7,slotProps:ze,slots:$e,track:We="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=n7}=B,re=Ye(B,jve),ee=L({},B,{isRtl:V,max:Ne,min:Ve,classes:se,disabled:ce,disableSwap:G,orientation:Je,marks:xe,color:j,size:Me,step:Ge,scale:ye,track:We,valueLabelDisplay:dt,valueLabelFormat:Be}),{axisProps:J,getRootProps:Re,getHiddenInputProps:Le,getThumbProps:De,open:ie,active:fe,axis:de,focusedThumbIndex:Oe,range:Te,dragging:rt,marks:pt,values:xt,trackOffset:et,trackLeap:vt,getThumbStyle:qe}=Tme(L({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=rt,ee.focusedThumbIndex=Oe;const it=qve(ee),Et=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:zve,Nt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:Vve,on=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:Hve,dn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:Wve,pn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:Qve,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:Yve,Se=(b=(O=$e==null?void 0:$e.markLabel)!=null?O:Y.MarkLabel)!=null?b:Gve,_e=(y=(v=$e==null?void 0:$e.input)!=null?v:Y.Input)!=null?y:"input",pe=(S=ze==null?void 0:ze.root)!=null?S:Z.root,lt=(k=ze==null?void 0:ze.rail)!=null?k:Z.rail,at=(C=ze==null?void 0:ze.track)!=null?C:Z.track,Mt=(w=ze==null?void 0:ze.thumb)!=null?w:Z.thumb,$t=(E=ze==null?void 0:ze.valueLabel)!=null?E:Z.valueLabel,It=($=ze==null?void 0:ze.mark)!=null?$:Z.mark,Ct=(P=ze==null?void 0:ze.markLabel)!=null?P:Z.markLabel,Zt=(_=ze==null?void 0:ze.input)!=null?_:Z.input,Ie=kn({elementType:Et,getSlotProps:Re,externalSlotProps:pe,externalForwardedProps:re,additionalProps:L({},$ve(Et)&&{as:q}),ownerState:L({},ee,pe==null?void 0:pe.ownerState),className:[it.root,ve]}),we=kn({elementType:Nt,externalSlotProps:lt,ownerState:ee,className:it.rail}),Qe=kn({elementType:on,externalSlotProps:at,additionalProps:{style:L({},J[de].offset(et),J[de].leap(vt))},ownerState:L({},ee,at==null?void 0:at.ownerState),className:it.track}),ot=kn({elementType:dn,getSlotProps:De,externalSlotProps:Mt,ownerState:L({},ee,Mt==null?void 0:Mt.ownerState),className:it.thumb}),rn=kn({elementType:pn,externalSlotProps:$t,ownerState:L({},ee,$t==null?void 0:$t.ownerState),className:it.valueLabel}),Wt=kn({elementType:zn,externalSlotProps:It,ownerState:ee,className:it.mark}),mn=kn({elementType:Se,externalSlotProps:Ct,ownerState:ee,className:it.markLabel}),nr=kn({elementType:_e,getSlotProps:Le,externalSlotProps:Zt,ownerState:ee});return D.jsxs(Et,L({},Ie,{children:[D.jsx(Nt,L({},we)),D.jsx(on,L({},Qe)),pt.filter(Ue=>Ue.value>=Ve&&Ue.value<=Ne).map((Ue,Ce)=>{const gt=lT(Ue.value,Ve,Ne),Dt=J[de].offset(gt);let tn;return We===!1?tn=xt.indexOf(Ue.value)!==-1:tn=We==="normal"&&(Te?Ue.value>=xt[0]&&Ue.value<=xt[xt.length-1]:Ue.value<=xt[0])||We==="inverted"&&(Te?Ue.value<=xt[0]||Ue.value>=xt[xt.length-1]:Ue.value>=xt[0]),D.jsxs(I.Fragment,{children:[D.jsx(zn,L({"data-index":Ce},Wt,!Cu(zn)&&{markActive:tn},{style:L({},Dt,Wt.style),className:Ke(Wt.className,tn&&it.markActive)})),Ue.label!=null?D.jsx(Se,L({"aria-hidden":!0,"data-index":Ce},mn,!Cu(Se)&&{markLabelActive:tn},{style:L({},Dt,mn.style),className:Ke(it.markLabel,mn.className,tn&&it.markLabelActive),children:Ue.label})):null]},Ce)}),xt.map((Ue,Ce)=>{const gt=lT(Ue,Ve,Ne),Dt=J[de].offset(gt),tn=dt==="off"?Zve:pn;return D.jsx(tn,L({},!Cu(tn)&&{valueLabelFormat:Be,valueLabelDisplay:dt,value:typeof Be=="function"?Be(ye(Ue),Ce):Be,index:Ce,open:ie===Ce||fe===Ce||dt==="on",disabled:ce},rn,{children:D.jsx(dn,L({"data-index":Ce},ot,{className:Ke(it.thumb,ot.className,fe===Ce&&it.active,Oe===Ce&&it.focusVisible),style:L({},Dt,qe(Ce),ot.style),children:D.jsx(_e,L({"data-index":Ce,"aria-label":ge?ge(Ce):z,"aria-valuenow":ye(Ue),"aria-labelledby":X,"aria-valuetext":ue?ue(ye(Ue),Ce):W,value:xt[Ce]},nr))}))}),Ce)})]}))}),Kve=Xve;function Jve(e){return At("MuiTooltip",e)}const eEe=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),yd=eEe,tEe=["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 nEe(e){return Math.round(e*1e5)/1e5}const rEe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${nt(o.split("-")[0])}`],arrow:["arrow"]};return wt(a,Jve,t)},iEe=Ee(Z1,{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})=>L({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${yd.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${yd.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${yd.arrow}`]:L({},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"] .${yd.arrow}`]:L({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),oEe=Ee("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${nt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>L({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:cn(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:`${nEe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${yd.popper}[data-popper-placement*="left"] &`]:L({transformOrigin:"right center"},t.isRtl?L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):L({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${yd.popper}[data-popper-placement*="right"] &`]:L({transformOrigin:"left center"},t.isRtl?L({marginRight:"14px"},t.touch&&{marginRight:"24px"}):L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${yd.popper}[data-popper-placement*="top"] &`]:L({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${yd.popper}[data-popper-placement*="bottom"] &`]:L({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),aEe=Ee("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:cn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Nv=!1,eA=null,k0={x:0,y:0};function Pv(e,t){return n=>{t&&t(n),e(n)}}const sEe=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C;const w=mt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:$,components:P={},componentsProps:_={},describeChild:B=!1,disableFocusListener:U=!1,disableHoverListener:V=!1,disableInteractive:z=!1,disableTouchListener:W=!1,enterDelay:X=100,enterNextDelay:q=0,enterTouchDelay:Y=700,followCursor:Z=!1,id:j,leaveDelay:se=0,leaveTouchDelay:ve=1500,onClose:G,onOpen:ce,open:ge,placement:ue="bottom",PopperComponent:xe,PopperProps:Ne={},slotProps:Ve={},slots:Je={},title:Me,TransitionComponent:Ge=cT,TransitionProps:ye}=w,ze=Ye(w,tEe),$e=I.isValidElement($)?$:D.jsx("span",{children:$}),We=ci(),dt=We.direction==="rtl",[Be,re]=I.useState(),[ee,J]=I.useState(null),Re=I.useRef(!1),Le=z||Z,De=I.useRef(),ie=I.useRef(),fe=I.useRef(),de=I.useRef(),[Oe,Te]=Ji({controlled:ge,default:!1,name:"Tooltip",state:"open"});let rt=Oe;const pt=Fl(j),xt=I.useRef(),et=I.useCallback(()=>{xt.current!==void 0&&(document.body.style.WebkitUserSelect=xt.current,xt.current=void 0),clearTimeout(de.current)},[]);I.useEffect(()=>()=>{clearTimeout(De.current),clearTimeout(ie.current),clearTimeout(fe.current),et()},[et]);const vt=Kt=>{clearTimeout(eA),Nv=!0,Te(!0),ce&&!rt&&ce(Kt)},qe=jt(Kt=>{clearTimeout(eA),eA=setTimeout(()=>{Nv=!1},800+se),Te(!1),G&&rt&&G(Kt),clearTimeout(De.current),De.current=setTimeout(()=>{Re.current=!1},We.transitions.duration.shortest)}),it=Kt=>{Re.current&&Kt.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(fe.current),X||Nv&&q?ie.current=setTimeout(()=>{vt(Kt)},Nv?q:X):vt(Kt))},Et=Kt=>{clearTimeout(ie.current),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},se)},{isFocusVisibleRef:Nt,onBlur:on,onFocus:dn,ref:pn}=fk(),[,zn]=I.useState(!1),Se=Kt=>{on(Kt),Nt.current===!1&&(zn(!1),Et(Kt))},_e=Kt=>{Be||re(Kt.currentTarget),dn(Kt),Nt.current===!0&&(zn(!0),it(Kt))},pe=Kt=>{Re.current=!0;const bn=$e.props;bn.onTouchStart&&bn.onTouchStart(Kt)},lt=it,at=Et,Mt=Kt=>{pe(Kt),clearTimeout(fe.current),clearTimeout(De.current),et(),xt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.current=setTimeout(()=>{document.body.style.WebkitUserSelect=xt.current,it(Kt)},Y)},$t=Kt=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(Kt),et(),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},ve)};I.useEffect(()=>{if(!rt)return;function Kt(bn){(bn.key==="Escape"||bn.key==="Esc")&&qe(bn)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[qe,rt]);const It=yn($e.ref,pn,re,n);!Me&&Me!==0&&(rt=!1);const Ct=I.useRef(),Zt=Kt=>{const bn=$e.props;bn.onMouseMove&&bn.onMouseMove(Kt),k0={x:Kt.clientX,y:Kt.clientY},Ct.current&&Ct.current.update()},Ie={},we=typeof Me=="string";B?(Ie.title=!rt&&we&&!V?Me:null,Ie["aria-describedby"]=rt?pt:null):(Ie["aria-label"]=we?Me:null,Ie["aria-labelledby"]=rt&&!we?pt:null);const Qe=L({},Ie,ze,$e.props,{className:Ke(ze.className,$e.props.className),onTouchStart:pe,ref:It},Z?{onMouseMove:Zt}:{}),ot={};W||(Qe.onTouchStart=Mt,Qe.onTouchEnd=$t),V||(Qe.onMouseOver=Pv(lt,Qe.onMouseOver),Qe.onMouseLeave=Pv(at,Qe.onMouseLeave),Le||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(Qe.onFocus=Pv(_e,Qe.onFocus),Qe.onBlur=Pv(Se,Qe.onBlur),Le||(ot.onFocus=_e,ot.onBlur=Se));const rn=I.useMemo(()=>{var Kt;let bn=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Kt=Ne.popperOptions)!=null&&Kt.modifiers&&(bn=bn.concat(Ne.popperOptions.modifiers)),L({},Ne.popperOptions,{modifiers:bn})},[ee,Ne]),Wt=L({},w,{isRtl:dt,arrow:E,disableInteractive:Le,placement:ue,PopperComponentProp:xe,touch:Re.current}),mn=rEe(Wt),nr=(r=(i=Je.popper)!=null?i:P.Popper)!=null?r:iEe,Ue=(o=(a=(s=Je.transition)!=null?s:P.Transition)!=null?a:Ge)!=null?o:cT,Ce=(l=(u=Je.tooltip)!=null?u:P.Tooltip)!=null?l:oEe,gt=(c=(d=Je.arrow)!=null?d:P.Arrow)!=null?c:aEe,Dt=ib(nr,L({},Ne,(p=Ve.popper)!=null?p:_.popper,{className:Ke(mn.popper,Ne==null?void 0:Ne.className,(h=(m=Ve.popper)!=null?m:_.popper)==null?void 0:h.className)}),Wt),tn=ib(Ue,L({},ye,(b=Ve.transition)!=null?b:_.transition),Wt),Mn=ib(Ce,L({},(O=Ve.tooltip)!=null?O:_.tooltip,{className:Ke(mn.tooltip,(y=(v=Ve.tooltip)!=null?v:_.tooltip)==null?void 0:y.className)}),Wt),Dn=ib(gt,L({},(S=Ve.arrow)!=null?S:_.arrow,{className:Ke(mn.arrow,(k=(C=Ve.arrow)!=null?C:_.arrow)==null?void 0:k.className)}),Wt);return D.jsxs(I.Fragment,{children:[I.cloneElement($e,Qe),D.jsx(nr,L({as:xe??Z1,placement:ue,anchorEl:Z?{getBoundingClientRect:()=>({top:k0.y,left:k0.x,right:k0.x,bottom:k0.y,width:0,height:0})}:Be,popperRef:Ct,open:Be?rt:!1,id:pt,transition:!0},ot,Dt,{popperOptions:rn,children:({TransitionProps:Kt})=>D.jsx(Ue,L({timeout:We.transitions.duration.shorter},Kt,tn,{children:D.jsxs(Ce,L({},Mn,{children:[Me,E?D.jsx(gt,L({},Dn,{ref:J})):null]}))}))}))]})}),Lf=sEe;function lEe(e){return At("MuiSwitch",e)}const uEe=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Jo=uEe,cEe=["className","color","edge","size","sx"],dEe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${nt(n)}`,`size${nt(r)}`],switchBase:["switchBase",`color${nt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=wt(s,lEe,t);return L({},t,l)},fEe=Ee("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({ownerState:e})=>L({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,[`& .${Jo.thumb}`]:{width:16,height:16},[`& .${Jo.switchBase}`]:{padding:4,[`&.${Jo.checked}`]:{transform:"translateX(16px)"}}})),pEe=Ee(KN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Jo.input}`]:t.input},n.color!=="default"&&t[`color${nt(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}),[`&.${Jo.checked}`]:{transform:"translateX(20px)"},[`&.${Jo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Jo.checked} + .${Jo.track}`]:{opacity:.5},[`&.${Jo.disabled} + .${Jo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Jo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>L({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Jo.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})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?kk(e.palette[t.color].main,.62):wk(e.palette[t.color].main,.55)}`}},[`&.${Jo.checked} + .${Jo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),hEe=Ee("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}`})),mEe=Ee("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%"})),gEe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Ye(r,cEe),c=L({},r,{color:o,edge:a,size:s}),d=dEe(c),p=D.jsx(mEe,{className:d.thumb,ownerState:c});return D.jsxs(fEe,{className:Ke(d.root,i),sx:l,ownerState:c,children:[D.jsx(pEe,L({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:L({},d,{root:d.switchBase})})),D.jsx(hEe,{className:d.track,ownerState:c})]})}),bEe=gEe;function yEe(e){return At("MuiTab",e)}const OEe=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Sf=OEe,vEe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],EEe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,u={root:["root",o&&a&&"labelIcon",`textColor${nt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return wt(u,yEe,t)},SEe=Ee(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${nt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>L({},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,[`& > .${Sf.iconWrapper}`]:L({},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,[`&.${Sf.selected}`]:{opacity:1},[`&.${Sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Sf.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Sf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Sf.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Sf.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)})),TEe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:d,onChange:p,onClick:h,onFocus:m,selected:b,selectionFollowsFocus:O,textColor:y="inherit",value:v,wrapped:S=!1}=r,k=Ye(r,vEe),C=L({},r,{disabled:o,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:y,wrapped:S}),w=EEe(C),E=l&&d&&I.isValidElement(l)?I.cloneElement(l,{className:Ke(w.iconWrapper,l.props.className)}):l,$=_=>{!b&&p&&p(_,v),h&&h(_)},P=_=>{O&&!b&&p&&p(_,v),m&&m(_)};return D.jsxs(SEe,L({focusRipple:!a,className:Ke(w.root,i),ref:n,role:"tab","aria-selected":b,disabled:o,onClick:$,onFocus:P,ownerState:C,tabIndex:b?0:-1},k,{children:[u==="top"||u==="start"?D.jsxs(I.Fragment,{children:[E,d]}):D.jsxs(I.Fragment,{children:[d,E]}),c]}))}),r7=TEe;function wEe(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const kEe=["className","component","disableGutters","variant"],xEe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return wt({root:["root",!n&&"gutters",r]},wEe,t)},CEe=Ee("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})=>L({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),AEe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=Ye(r,kEe),u=L({},r,{component:o,disableGutters:a,variant:s}),c=xEe(u);return D.jsx(CEe,L({as:o,className:Ke(c.root,i),ref:n,ownerState:u},l))}),rG=AEe,_Ee=ki(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),REe=ki(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function IEe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function DEe(e,t,n,r={},i=()=>{}){const{ease:o=IEe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=p=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/a);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const NEe=["onChange"],PEe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function LEe(e){const{onChange:t}=e,n=Ye(e,NEe),r=I.useRef(),i=I.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Jr(()=>{const a=Cg(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Js(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{o(),t(r.current)},[t]),D.jsx("div",L({style:PEe,ref:i},n))}function MEe(e){return At("MuiTabScrollButton",e)}const $Ee=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FEe=$Ee,BEe=["className","slots","slotProps","direction","orientation","disabled"],UEe=e=>{const{classes:t,orientation:n,disabled:r}=e;return wt({root:["root",n,r&&"disabled"]},MEe,t)},jEe=Ee(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>L({width:40,flexShrink:0,opacity:.8,[`&.${FEe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),zEe=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=o,c=Ye(o,BEe),p=ci().direction==="rtl",h=L({isRtl:p},o),m=UEe(h),b=(r=s.StartScrollButtonIcon)!=null?r:_Ee,O=(i=s.EndScrollButtonIcon)!=null?i:REe,y=kn({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=kn({elementType:O,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return D.jsx(jEe,L({component:"div",className:Ke(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?D.jsx(b,L({},y)):D.jsx(O,L({},v))}))}),VEe=zEe;function HEe(e){return At("MuiTabs",e)}const WEe=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),QE=WEe,QEe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],i7=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,o7=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Lv=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},YEe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return wt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},HEe,l)},GEe=Ee("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${QE.scrollButtons}`]:t.scrollButtons},{[`& .${QE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>L({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${QE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),qEe=Ee("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})=>L({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"})),ZEe=Ee("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})=>L({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),XEe=Ee("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>L({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})),KEe=Ee(LEe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),a7={},JEe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTabs"}),i=ci(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:b,orientation:O="horizontal",ScrollButtonComponent:y=VEe,scrollButtons:v="auto",selectionFollowsFocus:S,slots:k={},slotProps:C={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:$="primary",value:P,variant:_="standard",visibleScrollbar:B=!1}=r,U=Ye(r,QEe),V=_==="scrollable",z=O==="vertical",W=z?"scrollTop":"scrollLeft",X=z?"top":"left",q=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",Z=z?"height":"width",j=L({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:m,orientation:O,vertical:z,scrollButtons:v,textColor:$,variant:_,visibleScrollbar:B,fixed:!V,hideScrollbar:V&&!B,scrollableX:V&&!z,scrollableY:V&&z,centered:u&&!V,scrollButtonsHideMobile:!h}),se=YEe(j),ve=kn({elementType:k.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:j}),G=kn({elementType:k.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:j}),[ce,ge]=I.useState(!1),[ue,xe]=I.useState(a7),[Ne,Ve]=I.useState(!1),[Je,Me]=I.useState(!1),[Ge,ye]=I.useState(!1),[ze,$e]=I.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,dt=I.useRef(null),Be=I.useRef(null),re=()=>{const qe=dt.current;let it;if(qe){const Nt=qe.getBoundingClientRect();it={clientWidth:qe.clientWidth,scrollLeft:qe.scrollLeft,scrollTop:qe.scrollTop,scrollLeftNormalized:oce(qe,i.direction),scrollWidth:qe.scrollWidth,top:Nt.top,bottom:Nt.bottom,left:Nt.left,right:Nt.right}}let Et;if(qe&&P!==!1){const Nt=Be.current.children;if(Nt.length>0){const on=Nt[We.get(P)];Et=on?on.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:Et}},ee=jt(()=>{const{tabsMeta:qe,tabMeta:it}=re();let Et=0,Nt;if(z)Nt="top",it&&qe&&(Et=it.top-qe.top+qe.scrollTop);else if(Nt=o?"right":"left",it&&qe){const dn=o?qe.scrollLeftNormalized+qe.clientWidth-qe.scrollWidth:qe.scrollLeft;Et=(o?-1:1)*(it[Nt]-qe[Nt]+dn)}const on={[Nt]:Et,[Z]:it?it[Z]:0};if(isNaN(ue[Nt])||isNaN(ue[Z]))xe(on);else{const dn=Math.abs(ue[Nt]-on[Nt]),pn=Math.abs(ue[Z]-on[Z]);(dn>=1||pn>=1)&&xe(on)}}),J=(qe,{animation:it=!0}={})=>{it?DEe(W,dt.current,qe,{duration:i.transitions.duration.standard}):dt.current[W]=qe},Re=qe=>{let it=dt.current[W];z?it+=qe:(it+=qe*(o?-1:1),it*=o&&XQ()==="reverse"?-1:1),J(it)},Le=()=>{const qe=dt.current[Y];let it=0;const Et=Array.from(Be.current.children);for(let Nt=0;Ntqe){Nt===0&&(it=qe);break}it+=on[Y]}return it},De=()=>{Re(-1*Le())},ie=()=>{Re(Le())},fe=I.useCallback(qe=>{$e({overflow:null,scrollbarWidth:qe})},[]),de=()=>{const qe={};qe.scrollbarSizeListener=V?D.jsx(KEe,{onChange:fe,className:Ke(se.scrollableX,se.hideScrollbar)}):null;const Et=V&&(v==="auto"&&(Ne||Je)||v===!0);return qe.scrollButtonStart=Et?D.jsx(y,L({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ve},orientation:O,direction:o?"right":"left",onClick:De,disabled:!Ne},E,{className:Ke(se.scrollButtons,E.className)})):null,qe.scrollButtonEnd=Et?D.jsx(y,L({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:G},orientation:O,direction:o?"left":"right",onClick:ie,disabled:!Je},E,{className:Ke(se.scrollButtons,E.className)})):null,qe},Oe=jt(qe=>{const{tabsMeta:it,tabMeta:Et}=re();if(!(!Et||!it)){if(Et[X]it[q]){const Nt=it[W]+(Et[q]-it[q]);J(Nt,{animation:qe})}}}),Te=jt(()=>{V&&v!==!1&&ye(!Ge)});I.useEffect(()=>{const qe=Cg(()=>{dt.current&&ee()});let it;const Et=dn=>{dn.forEach(pn=>{pn.removedNodes.forEach(zn=>{var Se;(Se=it)==null||Se.unobserve(zn)}),pn.addedNodes.forEach(zn=>{var Se;(Se=it)==null||Se.observe(zn)})}),qe(),Te()},Nt=Js(dt.current);Nt.addEventListener("resize",qe);let on;return typeof ResizeObserver<"u"&&(it=new ResizeObserver(qe),Array.from(Be.current.children).forEach(dn=>{it.observe(dn)})),typeof MutationObserver<"u"&&(on=new MutationObserver(Et),on.observe(Be.current,{childList:!0})),()=>{var dn,pn;qe.clear(),Nt.removeEventListener("resize",qe),(dn=on)==null||dn.disconnect(),(pn=it)==null||pn.disconnect()}},[ee,Te]),I.useEffect(()=>{const qe=Array.from(Be.current.children),it=qe.length;if(typeof IntersectionObserver<"u"&&it>0&&V&&v!==!1){const Et=qe[0],Nt=qe[it-1],on={root:dt.current,threshold:.99},dn=_e=>{Ve(!_e[0].isIntersecting)},pn=new IntersectionObserver(dn,on);pn.observe(Et);const zn=_e=>{Me(!_e[0].isIntersecting)},Se=new IntersectionObserver(zn,on);return Se.observe(Nt),()=>{pn.disconnect(),Se.disconnect()}}},[V,v,Ge,c==null?void 0:c.length]),I.useEffect(()=>{ge(!0)},[]),I.useEffect(()=>{ee()}),I.useEffect(()=>{Oe(a7!==ue)},[Oe,ue]),I.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Te}),[ee,Te]);const rt=D.jsx(XEe,L({},w,{className:Ke(se.indicator,w.className),ownerState:j,style:L({},ue,w.style)}));let pt=0;const xt=I.Children.map(c,qe=>{if(!I.isValidElement(qe))return null;const it=qe.props.value===void 0?pt:qe.props.value;We.set(it,pt);const Et=it===P;return pt+=1,I.cloneElement(qe,L({fullWidth:_==="fullWidth",indicator:Et&&!ce&&rt,selected:Et,selectionFollowsFocus:S,onChange:b,textColor:$,value:it},pt===1&&P===!1&&!qe.props.tabIndex?{tabIndex:0}:{}))}),et=qe=>{const it=Be.current,Et=Or(it).activeElement;if(Et.getAttribute("role")!=="tab")return;let on=O==="horizontal"?"ArrowLeft":"ArrowUp",dn=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(on="ArrowRight",dn="ArrowLeft"),qe.key){case on:qe.preventDefault(),Lv(it,Et,o7);break;case dn:qe.preventDefault(),Lv(it,Et,i7);break;case"Home":qe.preventDefault(),Lv(it,null,i7);break;case"End":qe.preventDefault(),Lv(it,null,o7);break}},vt=de();return D.jsxs(GEe,L({className:Ke(se.root,d),ownerState:j,ref:n,as:p},U,{children:[vt.scrollButtonStart,vt.scrollbarSizeListener,D.jsxs(qEe,{className:se.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[D.jsx(ZEe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:se.flexContainer,ownerState:j,onKeyDown:et,ref:Be,role:"tablist",children:xt}),ce&&rt]}),vt.scrollButtonEnd]}))}),eSe=JEe;function tSe(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const nSe=["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"],rSe={standard:VY,filled:FY,outlined:KY},iSe=e=>{const{classes:t}=e;return wt({root:["root"]},tSe,t)},oSe=Ee(Lu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aSe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:b,InputLabelProps:O,inputProps:y,InputProps:v,inputRef:S,label:k,maxRows:C,minRows:w,multiline:E=!1,name:$,onBlur:P,onChange:_,onFocus:B,placeholder:U,required:V=!1,rows:z,select:W=!1,SelectProps:X,type:q,value:Y,variant:Z="outlined"}=r,j=Ye(r,nSe),se=L({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:W,variant:Z}),ve=iSe(se),G={};Z==="outlined"&&(O&&typeof O.shrink<"u"&&(G.notched=O.shrink),G.label=k),W&&((!X||!X.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const ce=Fl(b),ge=m&&ce?`${ce}-helper-text`:void 0,ue=k&&ce?`${ce}-label`:void 0,xe=rSe[Z],Ne=D.jsx(xe,L({"aria-describedby":ge,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:h,multiline:E,name:$,rows:z,maxRows:C,minRows:w,type:q,value:Y,id:ce,inputRef:S,onBlur:P,onChange:_,onFocus:B,placeholder:U,inputProps:y},G,v));return D.jsxs(oSe,L({className:Ke(ve.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:V,color:l,variant:Z,ownerState:se},j,{children:[k!=null&&k!==""&&D.jsx(HY,L({htmlFor:ce,id:ue},O,{children:k})),W?D.jsx(nG,L({"aria-describedby":ge,id:ce,labelId:ue,value:Y,input:Ne},X,{children:a})):Ne,m&&D.jsx(Rg,L({id:ge},p,{children:m}))]}))}),$p=aSe;function sSe(e){return At("MuiToggleButton",e)}const lSe=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Zh=lSe,uSe=I.createContext({}),iG=uSe,cSe=I.createContext(void 0),oG=cSe;function dSe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const fSe=["value"],pSe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],hSe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${nt(o)}`,a]};return wt(s,sSe,t)},mSe=Ee(hs,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${nt(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),L({},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%"},{[`&.${Zh.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})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zh.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(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)})}),gSe=I.forwardRef(function(t,n){const r=I.useContext(iG),{value:i}=r,o=Ye(r,fSe),a=I.useContext(oG),s=pk(L({},o,{selected:dSe(t.value,i)}),t),l=mt({props:s,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:b,onClick:O,selected:y,size:v="medium",value:S}=l,k=Ye(l,pSe),C=L({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:v}),w=hSe(C),E=P=>{O&&(O(P,S),P.defaultPrevented)||b&&b(P,S)},$=a||"";return D.jsx(mSe,L({className:Ke(o.className,w.root,c,$),disabled:p,focusRipple:!h,ref:n,onClick:E,onChange:b,value:S,ownerState:C,"aria-pressed":y},k,{children:u}))}),tA=gSe;function bSe(e){return At("MuiToggleButtonGroup",e)}const ySe=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Vr=ySe,OSe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],vSe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${nt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return wt(o,bSe,t)},ESe=Ee("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vr.grouped}`]:t.grouped},{[`& .${Vr.grouped}`]:t[`grouped${nt(n.orientation)}`]},{[`& .${Vr.firstButton}`]:t.firstButton},{[`& .${Vr.lastButton}`]:t.lastButton},{[`& .${Vr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>L({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Vr.grouped}`]:L({},e.orientation==="horizontal"?{[`&.${Vr.selected} + .${Vr.grouped}.${Vr.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Vr.selected} + .${Vr.grouped}.${Vr.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Vr.firstButton},& .${Vr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Vr.lastButton},& .${Vr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Vr.firstButton},& .${Vr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Vr.lastButton},& .${Vr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Vr.lastButton}.${Zh.disabled},& .${Vr.middleButton}.${Zh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Vr.lastButton}.${Zh.disabled},& .${Vr.middleButton}.${Zh.disabled}`]:{borderTop:"1px solid transparent"}})),SSe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:d="horizontal",size:p="medium",value:h}=r,m=Ye(r,OSe),b=L({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),O=vSe(b),y=I.useCallback((E,$)=>{if(!c)return;const P=h&&h.indexOf($);let _;h&&P>=0?(_=h.slice(),_.splice(P,1)):_=h?h.concat($):[$],c(E,_)},[c,h]),v=I.useCallback((E,$)=>{c&&c(E,h===$?null:$)},[c,h]),S=I.useMemo(()=>({className:O.grouped,onChange:l?v:y,value:h,size:p,fullWidth:u,color:a,disabled:s}),[O.grouped,l,v,y,h,p,u,a,s]),k=sce(i),C=k.length,w=E=>{const $=E===0,P=E===C-1;return $&&P?"":$?O.firstButton:P?O.lastButton:O.middleButton};return D.jsx(ESe,L({role:"group",className:Ke(O.root,o),ref:n,ownerState:b},m,{children:D.jsx(iG.Provider,{value:S,children:k.map((E,$)=>D.jsx(oG.Provider,{value:w($),children:E},$))})}))}),TSe=SSe;var aG={exports:{}},sG={};/** + `),nbe)),sbe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=Ye(r,ebe),h=L({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=rbe(h),b={},O={},y={};if(d==="determinate"){const v=2*Math.PI*((Hc-u)/2);b.strokeDasharray=v.toFixed(3),y["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*v).toFixed(3)}px`,O.transform="rotate(-90deg)"}return N.jsx(ibe,L({className:Ke(m.root,i),style:L({width:s,height:s},O,l),ownerState:h,ref:n,role:"progressbar"},y,p,{children:N.jsx(obe,{className:m.svg,ownerState:h,viewBox:`${Hc/2} ${Hc/2} ${Hc} ${Hc}`,children:N.jsx(abe,{className:m.circle,style:b,ownerState:h,cx:Hc,cy:Hc,r:(Hc-u)/2,fill:"none",strokeWidth:u})})}))}),uf=sbe,lbe=Fde({createStyledComponent:Ee("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>mt({props:e,name:"MuiContainer"})}),ube=lbe,cbe=(e,t)=>L({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),dbe=e=>L({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}}),fbe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=L({html:cbe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:L({margin:0},dbe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function pbe(e){const t=mt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return N.jsxs(I.Fragment,{children:[N.jsx(RY,{styles:i=>fbe(i,r)}),n]})}function hbe(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const mbe=["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"],gbe=e=>{const{open:t,exited:n,classes:r}=e;return wt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},hbe,r)},bbe=Ee("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})=>L({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ybe=Ee(X1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Obe=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=mt({name:"MuiModal",props:t}),{BackdropComponent:c=ybe,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:b,component:O,components:y={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:$=!1,hideBackdrop:P=!1,keepMounted:_=!1,onBackdropClick:B,open:U,slotProps:V,slots:z}=u,W=Ye(u,mbe),X=L({},u,{closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:E,disableScrollLock:$,hideBackdrop:P,keepMounted:_}),{getRootProps:q,getBackdropProps:Y,getTransitionProps:Z,portalRef:j,isTopModal:se,exited:ve,hasTransition:G}=gme(L({},X,{rootRef:n})),ce=L({},X,{exited:ve}),ge=gbe(ce),ue={};if(m.props.tabIndex===void 0&&(ue.tabIndex="-1"),G){const{onEnter:ye,onExited:ze}=Z();ue.onEnter=ye,ue.onExited=ze}const xe=(r=(i=z==null?void 0:z.root)!=null?i:y.Root)!=null?r:bbe,De=(o=(a=z==null?void 0:z.backdrop)!=null?a:y.Backdrop)!=null?o:c,Ve=(s=V==null?void 0:V.root)!=null?s:v.root,Je=(l=V==null?void 0:V.backdrop)!=null?l:v.backdrop,Me=kn({elementType:xe,externalSlotProps:Ve,externalForwardedProps:W,getSlotProps:q,additionalProps:{ref:n,as:O},ownerState:ce,className:Ke(p,Ve==null?void 0:Ve.className,ge==null?void 0:ge.root,!ce.open&&ce.exited&&(ge==null?void 0:ge.hidden))}),Ge=kn({elementType:De,externalSlotProps:Je,additionalProps:d,getSlotProps:ye=>Y(L({},ye,{onClick:ze=>{B&&B(ze),ye!=null&&ye.onClick&&ye.onClick(ze)}})),className:Ke(Je==null?void 0:Je.className,d==null?void 0:d.className,ge==null?void 0:ge.backdrop),ownerState:ce});return!_&&!U&&(!G||ve)?null:N.jsx(kY,{ref:j,container:b,disablePortal:w,children:N.jsxs(xe,L({},Me,{children:[!P&&c?N.jsx(De,L({},Ge)):null,N.jsx(mY,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:se,open:U,children:I.cloneElement(m,ue)})]}))})}),Mp=Obe;function vbe(e){return At("MuiDialog",e)}const Nb=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ebe=I.createContext({}),Sbe=Ebe,Tbe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],wbe=Ee(X1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),kbe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${nt(n)}`],paper:["paper",`paperScroll${nt(n)}`,`paperWidth${nt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return wt(a,vbe,t)},xbe=Ee(Mp,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Cbe=Ee("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${nt(n.scroll)}`]]}})(({ownerState:e})=>L({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"}})),Abe=Ee(zo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${nt(n.scroll)}`],t[`paperWidth${nt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>L({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)`,[`&.${Nb.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}`,[`&.${Nb.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,[`&.${Nb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),_be=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDialog"}),i=ci(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:b="sm",onBackdropClick:O,onClose:y,open:v,PaperComponent:S=zo,PaperProps:k={},scroll:C="paper",TransitionComponent:w=_g,transitionDuration:E=o,TransitionProps:$}=r,P=Ye(r,Tbe),_=L({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:b,scroll:C}),B=kbe(_),U=I.useRef(),V=q=>{U.current=q.target===q.currentTarget},z=q=>{U.current&&(U.current=null,O&&O(q),y&&y(q,"backdropClick"))},W=Fl(s),X=I.useMemo(()=>({titleId:W}),[W]);return N.jsx(xbe,L({className:Ke(B.root,d),closeAfterTransition:!0,components:{Backdrop:wbe},componentsProps:{backdrop:L({transitionDuration:E,as:l},u)},disableEscapeKeyDown:p,onClose:y,open:v,ref:n,onClick:z,ownerState:_},P,{children:N.jsx(w,L({appear:!0,in:v,timeout:E,role:"presentation"},$,{children:N.jsx(Cbe,{className:Ke(B.container),onMouseDown:V,ownerState:_,children:N.jsx(Abe,L({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W},k,{className:Ke(B.paper,k.className),ownerState:_,children:N.jsx(Sbe.Provider,{value:X,children:c})}))})}))}))}),Rbe=_be;function Ibe(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const Nbe=["className","disableSpacing"],Dbe=e=>{const{classes:t,disableSpacing:n}=e;return wt({root:["root",!n&&"spacing"]},Ibe,t)},Pbe=Ee("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>L({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Lbe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ye(r,Nbe),s=L({},r,{disableSpacing:o}),l=Dbe(s);return N.jsx(Pbe,L({className:Ke(l.root,i),ownerState:s,ref:n},a))}),Mbe=Lbe;function $be(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const Fbe=_t("MuiDialogTitle",["root"]),Bbe=Fbe,Ube=["className","dividers"],jbe=e=>{const{classes:t,dividers:n}=e;return wt({root:["root",n&&"dividers"]},$be,t)},zbe=Ee("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>L({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}`}:{[`.${Bbe.root} + &`]:{paddingTop:0}})),Vbe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ye(r,Ube),s=L({},r,{dividers:o}),l=jbe(s);return N.jsx(zbe,L({className:Ke(l.root,i),ownerState:s,ref:n},a))}),Hbe=Vbe;function Wbe(e){return At("MuiDivider",e)}const Qbe=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$8=Qbe,Ybe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Gbe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return wt({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Wbe,r)},qbe=Ee("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})=>L({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)`:cn(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})=>L({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>L({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Zbe=Ee("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>L({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)`})),DY=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth"}=r,m=Ye(r,Ybe),b=L({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),O=Gbe(b);return N.jsx(qbe,L({as:s,className:Ke(O.root,a),role:d,ref:n,ownerState:b},m,{children:o?N.jsx(Zbe,{className:O.wrapper,ownerState:b,children:o}):null}))});DY.muiSkipListHighlight=!0;const dc=DY,Xbe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Kbe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Js(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Jbe(e){return typeof e=="function"?e():e}function Nv(e,t,n){const r=Jbe(n),i=Kbe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const eye=I.forwardRef(function(t,n){const r=ci(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:c="down",easing:d=i,in:p,onEnter:h,onEntered:m,onEntering:b,onExit:O,onExited:y,onExiting:v,style:S,timeout:k=o,TransitionComponent:C=Y1}=t,w=Ye(t,Xbe),E=I.useRef(null),$=yn(l.ref,E,n),P=Y=>Z=>{Y&&(Z===void 0?Y(E.current):Y(E.current,Z))},_=P((Y,Z)=>{Nv(c,Y,u),zD(Y),h&&h(Y,Z)}),B=P((Y,Z)=>{const j=Wd({timeout:k,style:S,easing:d},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",L({},j)),Y.style.transition=r.transitions.create("transform",L({},j)),Y.style.webkitTransform="none",Y.style.transform="none",b&&b(Y,Z)}),U=P(m),V=P(v),z=P(Y=>{const Z=Wd({timeout:k,style:S,easing:d},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",Z),Y.style.transition=r.transitions.create("transform",Z),Nv(c,Y,u),O&&O(Y)}),W=P(Y=>{Y.style.webkitTransition="",Y.style.transition="",y&&y(Y)}),X=Y=>{a&&a(E.current,Y)},q=I.useCallback(()=>{E.current&&Nv(c,E.current,u)},[c,u]);return I.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=Cg(()=>{E.current&&Nv(c,E.current,u)}),Z=Js(E.current);return Z.addEventListener("resize",Y),()=>{Y.clear(),Z.removeEventListener("resize",Y)}},[c,p,u]),I.useEffect(()=>{p||q()},[p,q]),N.jsx(C,L({nodeRef:E,onEnter:_,onEntered:U,onEntering:B,onExit:z,onExited:W,onExiting:V,addEndListener:X,appear:s,in:p,timeout:k},w,{children:(Y,Z)=>I.cloneElement(l,L({ref:$,style:L({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},Z))}))}),PY=eye;function tye(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const nye=["BackdropProps"],rye=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],LY=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},iye=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${nt(n)}`,r!=="temporary"&&`paperAnchorDocked${nt(n)}`]};return wt(i,tye,t)},oye=Ee(Mp,{name:"MuiDrawer",slot:"Root",overridesResolver:LY})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),F8=Ee("div",{shouldForwardProp:no,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:LY})({flex:"0 0 auto"}),aye=Ee(zo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${nt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${nt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>L({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}`})),MY={left:"right",right:"left",top:"down",bottom:"up"};function sye(e){return["left","right"].indexOf(e)!==-1}function lye(e,t){return e.direction==="rtl"&&sye(t)?MY[t]:t}const uye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDrawer"}),i=ci(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:b={},SlideProps:O,TransitionComponent:y=PY,transitionDuration:v=o,variant:S="temporary"}=r,k=Ye(r.ModalProps,nye),C=Ye(r,rye),w=I.useRef(!1);I.useEffect(()=>{w.current=!0},[]);const E=lye(i,a),P=L({},r,{anchor:a,elevation:c,open:m,variant:S},C),_=iye(P),B=N.jsx(aye,L({elevation:S==="temporary"?c:0,square:!0},b,{className:Ke(_.paper,b.className),ownerState:P,children:l}));if(S==="permanent")return N.jsx(F8,L({className:Ke(_.root,_.docked,u),ownerState:P,ref:n},C,{children:B}));const U=N.jsx(y,L({in:m,direction:MY[E],timeout:v,appear:w.current},O,{children:B}));return S==="persistent"?N.jsx(F8,L({className:Ke(_.root,_.docked,u),ownerState:P,ref:n},C,{children:U})):N.jsx(oye,L({BackdropProps:L({},s,p,{transitionDuration:v}),className:Ke(_.root,_.modal,u),open:m,ownerState:P,onClose:h,hideBackdrop:d,ref:n},C,k,{children:U}))}),cye=uye,dye=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],fye=e=>{const{classes:t,disableUnderline:n}=e,i=wt({root:["root",!n&&"underline"],input:["input"]},ige,t);return L({},t,i)},pye=Ee(Nk,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rk(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)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return L({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.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(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&L({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}))}),hye=Ee(Dk,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ik})(({theme:e,ownerState:t})=>L({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})),$Y=I.forwardRef(function(t,n){var r,i,o,a;const s=mt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:b="text"}=s,O=Ye(s,dye),y=L({},s,{fullWidth:c,inputComponent:d,multiline:p,type:b}),v=fye(s),S={root:{ownerState:y},input:{ownerState:y}},k=h??u?Mo(S,h??u):S,C=(r=(i=m.root)!=null?i:l.Root)!=null?r:pye,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:hye;return N.jsx(XD,L({slots:{root:C,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},O,{classes:v}))});$Y.muiName="Input";const FY=$Y;function mye(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const gye=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],bye=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${nt(n)}`,r&&"fullWidth"]};return wt(i,mye,t)},yye=Ee("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,t[`margin${nt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>L({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%"})),Oye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:b="medium",variant:O="outlined"}=r,y=Ye(r,gye),v=L({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:b,variant:O}),S=bye(v),[k,C]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{if(!kb(z,["Input","Select"]))return;const W=kb(z,["Select"])?z.props.input:z;W&&Yme(W.props)&&(V=!0)}),V}),[w,E]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{kb(z,["Input","Select"])&&(uT(z.props,!0)||uT(z.props.inputProps,!0))&&(V=!0)}),V}),[$,P]=I.useState(!1);l&&$&&P(!1);const _=c!==void 0&&!l?c:$;let B;const U=I.useMemo(()=>({adornedStart:k,setAdornedStart:C,color:a,disabled:l,error:u,filled:w,focused:_,fullWidth:d,hiddenLabel:p,size:b,onBlur:()=>{P(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{P(!0)},registerEffect:B,required:m,variant:O}),[k,a,l,u,w,_,d,p,B,m,b,O]);return N.jsx(_k.Provider,{value:U,children:N.jsx(yye,L({as:s,ownerState:v,className:Ke(S.root,o),ref:n},y,{children:i}))})}),Lu=Oye,vye=Qde({createStyledComponent:Ee("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>mt({props:e,name:"MuiStack"})}),cr=vye;function Eye(e){return At("MuiFormControlLabel",e)}const Sye=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ob=Sye,Tye=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],wye=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${nt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return wt(a,Eye,t)},kye=Ee("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ob.label}`]:t.label},t.root,t[`labelPlacement${nt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>L({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ob.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},{[`& .${ob.label}`]:{[`&.${ob.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),xye=Ee("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ob.error}`]:{color:(e.vars||e).palette.error.main}})),Cye=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:h,slotProps:m={}}=o,b=Ye(o,Tye),O=Pu(),y=(r=u??l.props.disabled)!=null?r:O==null?void 0:O.disabled,v=h??l.props.required,S={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(P=>{typeof l.props[P]>"u"&&typeof o[P]<"u"&&(S[P]=o[P])});const k=lf({props:o,muiFormControl:O,states:["error"]}),C=L({},o,{disabled:y,labelPlacement:p,required:v,error:k.error}),w=wye(C),E=(i=m.typography)!=null?i:s.typography;let $=d;return $!=null&&$.type!==dr&&!c&&($=N.jsx(dr,L({component:"span"},E,{className:Ke(w.label,E==null?void 0:E.className),children:$}))),N.jsxs(kye,L({className:Ke(w.root,a),ownerState:C,ref:n},b,{children:[I.cloneElement(l,S),v?N.jsxs(cr,{display:"block",children:[$,N.jsxs(xye,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):$]}))}),Ry=Cye;function Aye(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const _ye=["className","row"],Rye=e=>{const{classes:t,row:n,error:r}=e;return wt({root:["root",n&&"row",r&&"error"]},Aye,t)},Iye=Ee("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>L({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Nye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ye(r,_ye),s=Pu(),l=lf({props:r,muiFormControl:s,states:["error"]}),u=L({},r,{row:o,error:l.error}),c=Rye(u);return N.jsx(Iye,L({className:Ke(c.root,i),ownerState:u,ref:n},a))}),JD=Nye;function Dye(e){return At("MuiFormHelperText",e)}const Pye=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),B8=Pye;var U8;const Lye=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Mye=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${nt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return wt(u,Dye,t)},$ye=Ee("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${nt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${B8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${B8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Fye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ye(r,Lye),l=Pu(),u=lf({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=L({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Mye(c);return N.jsx($ye,L({as:a,ownerState:c,className:Ke(d.root,o),ref:n},s,{children:i===" "?U8||(U8=N.jsx("span",{className:"notranslate",children:"​"})):i}))}),Rg=Fye;function Bye(e){return At("MuiFormLabel",e)}const Db=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Uye=["children","className","color","component","disabled","error","filled","focused","required"],jye=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${nt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return wt(l,Bye,t)},zye=Ee("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Db.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Db.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Db.error}`]:{color:(e.vars||e).palette.error.main}})),Vye=Ee("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Db.error}`]:{color:(e.vars||e).palette.error.main}})),Hye=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ye(r,Uye),l=Pu(),u=lf({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=L({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=jye(c);return N.jsxs(zye,L({as:a,ownerState:c,className:Ke(d.root,o),ref:n},s,{children:[i,u.required&&N.jsxs(Vye,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),$k=Hye,Wye=I.createContext(),j8=Wye;function Qye(e){return At("MuiGrid",e)}const Yye=[0,1,2,3,4,5,6,7,8,9,10],Gye=["column-reverse","column","row-reverse","row"],qye=["nowrap","wrap-reverse","wrap"],E0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Iy=_t("MuiGrid",["root","container","item","zeroMinWidth",...Yye.map(e=>`spacing-xs-${e}`),...Gye.map(e=>`direction-xs-${e}`),...qye.map(e=>`wrap-xs-${e}`),...E0.map(e=>`grid-xs-${e}`),...E0.map(e=>`grid-sm-${e}`),...E0.map(e=>`grid-md-${e}`),...E0.map(e=>`grid-lg-${e}`),...E0.map(e=>`grid-xl-${e}`)]),Zye=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function hm(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Xye({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=up({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${hm(c)})`;u={flexBasis:d,maxWidth:d}}}o=L({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function Kye({theme:e,ownerState:t}){const n=up({values:t.direction,breakpoints:e.breakpoints.values});return Na({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Iy.item}`]={maxWidth:"none"}),i})}function BY({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function Jye({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=up({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=BY({breakpoints:e.breakpoints.values,values:o})),i=Na({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${hm(c)}`,[`& > .${Iy.item}`]:{paddingTop:hm(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Iy.item}`]:{paddingTop:0}}})}return i}function e1e({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=up({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=BY({breakpoints:e.breakpoints.values,values:o})),i=Na({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${hm(c)})`,marginLeft:`-${hm(c)}`,[`& > .${Iy.item}`]:{paddingLeft:hm(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Iy.item}`]:{paddingLeft:0}}})}return i}function t1e(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 o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const n1e=Ee("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=t1e(a,u,t));const d=[];return u.forEach(p=>{const h=n[p];h&&d.push(t[`grid-${p}-${String(h)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>L({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}),Kye,Jye,e1e,Xye);function r1e(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 o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const i1e=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=r1e(o,l));const c=[];l.forEach(p=>{const h=e[p];h&&c.push(`grid-${p}-${String(h)}`)});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return wt(d,Qye,t)},o1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiGrid"}),{breakpoints:i}=ci(),o=Sk(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:m=0,wrap:b="wrap",zeroMinWidth:O=!1}=o,y=Ye(o,Zye),v=h||m,S=l||m,k=I.useContext(j8),C=c?s||12:k,w={},E=L({},y);i.keys.forEach(_=>{y[_]!=null&&(w[_]=y[_],delete E[_])});const $=L({},o,{columns:C,container:c,direction:d,item:p,rowSpacing:v,columnSpacing:S,wrap:b,zeroMinWidth:O,spacing:m},w,{breakpoints:i.keys}),P=i1e($);return N.jsx(j8.Provider,{value:C,children:N.jsx(n1e,L({ownerState:$,className:Ke(P.root,a),as:u,ref:n},E))})}),qh=o1e,a1e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Y_(e){return`scale(${e}, ${e**2})`}const s1e={entering:{opacity:1,transform:Y_(1)},entered:{opacity:1,transform:"none"}},ZC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),UY=I.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:b="auto",TransitionComponent:O=Y1}=t,y=Ye(t,a1e),v=I.useRef(),S=I.useRef(),k=ci(),C=I.useRef(null),w=yn(C,o.ref,n),E=W=>X=>{if(W){const q=C.current;X===void 0?W(q):W(q,X)}},$=E(c),P=E((W,X)=>{zD(W);const{duration:q,delay:Y,easing:Z}=Wd({style:m,timeout:b,easing:a},{mode:"enter"});let j;b==="auto"?(j=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=j):j=q,W.style.transition=[k.transitions.create("opacity",{duration:j,delay:Y}),k.transitions.create("transform",{duration:ZC?j:j*.666,delay:Y,easing:Z})].join(","),l&&l(W,X)}),_=E(u),B=E(h),U=E(W=>{const{duration:X,delay:q,easing:Y}=Wd({style:m,timeout:b,easing:a},{mode:"exit"});let Z;b==="auto"?(Z=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=Z):Z=X,W.style.transition=[k.transitions.create("opacity",{duration:Z,delay:q}),k.transitions.create("transform",{duration:ZC?Z:Z*.666,delay:ZC?q:q||Z*.333,easing:Y})].join(","),W.style.opacity=0,W.style.transform=Y_(.75),d&&d(W)}),V=E(p),z=W=>{b==="auto"&&(v.current=setTimeout(W,S.current||0)),r&&r(C.current,W)};return I.useEffect(()=>()=>{clearTimeout(v.current)},[]),N.jsx(O,L({appear:i,in:s,nodeRef:C,onEnter:P,onEntered:_,onEntering:$,onExit:U,onExited:V,onExiting:B,addEndListener:z,timeout:b==="auto"?null:b},y,{children:(W,X)=>I.cloneElement(o,L({style:L({opacity:0,transform:Y_(.75),visibility:W==="exited"&&!s?"hidden":void 0},s1e[W],m,o.props.style),ref:w},X))}))});UY.muiSupportAuto=!0;const cT=UY;function l1e(e,t,n,r,i){const[o,a]=I.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Jr(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const jY=I.useSyncExternalStore;function u1e(e,t,n,r,i){const o=I.useCallback(()=>t,[t]),a=I.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[s,l]=I.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return jY(l,s,a)}function Ig(e,t={}){const n=Ek(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=aY({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(jY!==void 0?u1e:l1e)(l,i,o,a,s)}const c1e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],d1e=e=>{const{classes:t,disableUnderline:n}=e,i=wt({root:["root",!n&&"underline"],input:["input"]},ege,t);return L({},t,i)},f1e=Ee(Nk,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rk(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})`),L({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"},[`&.${od.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${od.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(.${od.disabled}, .${od.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${od.disabled}:before`]:{borderBottomStyle:"dotted"}})}),p1e=Ee(Dk,{name:"MuiInput",slot:"Input",overridesResolver:Ik})({}),zY=I.forwardRef(function(t,n){var r,i,o,a;const s=mt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:b={},type:O="text"}=s,y=Ye(s,c1e),v=d1e(s),k={root:{ownerState:{disableUnderline:l}}},C=m??c?Mo(m??c,k):k,w=(r=(i=b.root)!=null?i:u.Root)!=null?r:f1e,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:p1e;return N.jsx(XD,L({slots:{root:w,input:E},slotProps:C,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:O},y,{classes:v}))});zY.muiName="Input";const VY=zY;function h1e(e){return At("MuiInputAdornment",e)}const m1e=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),z8=m1e;var V8;const g1e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],b1e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},y1e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${nt(i)}`,a,r&&"hiddenLabel",o&&`size${nt(o)}`]};return wt(s,h1e,t)},O1e=Ee("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:b1e})(({theme:e,ownerState:t})=>L({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${z8.positionStart}&:not(.${z8.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),v1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Ye(r,g1e),p=Pu()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=L({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:h}),b=y1e(m);return N.jsx(_k.Provider,{value:null,children:N.jsx(O1e,L({as:a,ownerState:m,className:Ke(b.root,o),ref:n},d,{children:typeof i=="string"&&!l?N.jsx(dr,{color:"text.secondary",children:i}):N.jsxs(I.Fragment,{children:[u==="start"?V8||(V8=N.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),eP=v1e;function E1e(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const S1e=["disableAnimation","margin","shrink","variant","className"],T1e=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${nt(r)}`,a],asterisk:[s&&"asterisk"]},u=wt(l,E1e,t);return L({},t,u)},w1e=Ee($k,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Db.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})=>L({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"&&L({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&&L({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"&&L({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)"}))),k1e=I.forwardRef(function(t,n){const r=mt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ye(r,S1e),l=Pu();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=lf({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=L({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=T1e(d);return N.jsx(w1e,L({"data-shrink":u,ownerState:d,ref:n,className:Ke(p.root,a)},s,{classes:p}))}),HY=k1e,x1e=I.createContext({}),Qs=x1e;function C1e(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const A1e=["children","className","component","dense","disablePadding","subheader"],_1e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return wt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},C1e,t)},R1e=Ee("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})=>L({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),I1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Ye(r,A1e),d=I.useMemo(()=>({dense:s}),[s]),p=L({},r,{component:a,dense:s,disablePadding:l}),h=_1e(p);return N.jsx(Qs.Provider,{value:d,children:N.jsxs(R1e,L({as:a,className:Ke(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),WY=I1e;function N1e(e){return At("MuiListItem",e)}const D1e=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),xh=D1e;function P1e(e){return At("MuiListItemButton",e)}const L1e=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ch=L1e,M1e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],$1e=(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]},F1e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=wt({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},P1e,n);return L({},n,u)},B1e=Ee(hs,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:$1e})(({theme:e,ownerState:t})=>L({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"}},[`&.${Ch.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ch.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ch.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ch.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ch.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})),U1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:p=!1,className:h}=r,m=Ye(r,M1e),b=I.useContext(Qs),O=I.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:u}),[i,b.dense,l,u]),y=I.useRef(null);Jr(()=>{o&&y.current&&y.current.focus()},[o]);const v=L({},r,{alignItems:i,dense:O.dense,disableGutters:u,divider:c,selected:p}),S=F1e(v),k=yn(y,n);return N.jsx(Qs.Provider,{value:O,children:N.jsx(B1e,L({ref:k,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:Ke(S.focusVisible,d),ownerState:v,className:Ke(S.root,h)},m,{classes:S,children:s}))})}),XC=U1e;function j1e(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const z1e=["className"],V1e=e=>{const{disableGutters:t,classes:n}=e;return wt({root:["root",t&&"disableGutters"]},j1e,n)},H1e=Ee("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>L({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),QY=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ye(r,z1e),a=I.useContext(Qs),s=L({},r,{disableGutters:a.disableGutters}),l=V1e(s);return N.jsx(H1e,L({className:Ke(l.root,i),ownerState:s,ref:n},o))});QY.muiName="ListItemSecondaryAction";const dT=QY,W1e=["className"],Q1e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Y1e=(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]},G1e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return wt({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},N1e,r)},q1e=Ee("div",{name:"MuiListItem",slot:"Root",overridesResolver:Y1e})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&L({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ch.root}`]:{paddingRight:48}},{[`&.${xh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xh.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"}},[`&.${xh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Z1e=Ee("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),X1e=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:m=!1,disabled:b=!1,disableGutters:O=!1,disablePadding:y=!1,divider:v=!1,focusVisibleClassName:S,secondaryAction:k,selected:C=!1,slotProps:w={},slots:E={}}=r,$=Ye(r.ContainerProps,W1e),P=Ye(r,Q1e),_=I.useContext(Qs),B=I.useMemo(()=>({dense:m||_.dense||!1,alignItems:i,disableGutters:O}),[i,_.dense,m,O]),U=I.useRef(null);Jr(()=>{o&&U.current&&U.current.focus()},[o]);const V=I.Children.toArray(s),z=V.length&&kb(V[V.length-1],["ListItemSecondaryAction"]),W=L({},r,{alignItems:i,autoFocus:o,button:a,dense:B.dense,disabled:b,disableGutters:O,disablePadding:y,divider:v,hasSecondaryAction:z,selected:C}),X=G1e(W),q=yn(U,n),Y=E.root||c.Root||q1e,Z=w.root||d.root||{},j=L({className:Ke(X.root,Z.className,l),disabled:b},P);let se=u||"li";return a&&(j.component=u||"div",j.focusVisibleClassName=Ke(xh.focusVisible,S),se=hs),z?(se=!j.component&&!u?"div":se,p==="li"&&(se==="li"?se="div":j.component==="li"&&(j.component="div")),N.jsx(Qs.Provider,{value:B,children:N.jsxs(Z1e,L({as:p,className:Ke(X.container,h),ref:q,ownerState:W},$,{children:[N.jsx(Y,L({},Z,!Cu(Y)&&{as:se,ownerState:L({},W,Z.ownerState)},j,{children:V})),V.pop()]}))})):N.jsx(Qs.Provider,{value:B,children:N.jsxs(Y,L({},Z,{as:se,ref:q},!Cu(Y)&&{ownerState:L({},W,Z.ownerState)},j,{children:[V,k&&N.jsx(dT,{children:k})]}))})}),Ah=X1e;function K1e(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const J1e=["className"],eOe=e=>{const{alignItems:t,classes:n}=e;return wt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},K1e,n)},tOe=Ee("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>L({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),nOe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ye(r,J1e),a=I.useContext(Qs),s=L({},r,{alignItems:a.alignItems}),l=eOe(s);return N.jsx(tOe,L({className:Ke(l.root,i),ownerState:s,ref:n},o))}),rOe=nOe;function iOe(e){return At("MuiListItemIcon",e)}const oOe=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),H8=oOe,aOe=["className"],sOe=e=>{const{alignItems:t,classes:n}=e;return wt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},iOe,n)},lOe=Ee("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})=>L({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),uOe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ye(r,aOe),a=I.useContext(Qs),s=L({},r,{alignItems:a.alignItems}),l=sOe(s);return N.jsx(lOe,L({className:Ke(l.root,i),ownerState:s,ref:n},o))}),tP=uOe;function cOe(e){return At("MuiListItemText",e)}const dOe=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),fT=dOe,fOe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],pOe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return wt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},cOe,t)},hOe=Ee("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fT.primary}`]:t.primary},{[`& .${fT.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>L({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),mOe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,p=Ye(r,fOe),{dense:h}=I.useContext(Qs);let m=l??i,b=c;const O=L({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!b,dense:h}),y=pOe(O);return m!=null&&m.type!==dr&&!a&&(m=N.jsx(dr,L({variant:h?"body2":"body1",className:y.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),b!=null&&b.type!==dr&&!a&&(b=N.jsx(dr,L({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:b}))),N.jsxs(hOe,L({className:Ke(y.root,o),ownerState:O,ref:n},p,{children:[m,b]}))}),dp=mOe,gOe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function KC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function W8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function YY(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 S0(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!YY(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const bOe=I.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Ye(t,gOe),h=I.useRef(null),m=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jr(()=>{i&&h.current.focus()},[i]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const C=!h.current.style.width;if(S.clientHeight{const k=h.current,C=S.key,w=Or(k).activeElement;if(C==="ArrowDown")S.preventDefault(),S0(k,w,u,l,KC);else if(C==="ArrowUp")S.preventDefault(),S0(k,w,u,l,W8);else if(C==="Home")S.preventDefault(),S0(k,null,u,l,KC);else if(C==="End")S.preventDefault(),S0(k,null,u,l,W8);else if(C.length===1){const E=m.current,$=C.toLowerCase(),P=performance.now();E.keys.length>0&&(P-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=P,E.keys.push($);const _=w&&!E.repeating&&YY(w,E);E.previousKeyMatched&&(_||S0(k,w,!1,l,KC,E))?S.preventDefault():E.previousKeyMatched=!1}c&&c(S)},O=yn(h,n);let y=-1;I.Children.forEach(a,(S,k)=>{if(!I.isValidElement(S)){y===k&&(y+=1,y>=a.length&&(y=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||y===-1)&&(y=k),y===k&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const v=I.Children.map(a,(S,k)=>{if(k===y){const C={};return o&&(C.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),I.cloneElement(S,C)}return S});return N.jsx(WY,L({role:"menu",ref:O,className:s,onKeyDown:b,tabIndex:i?0:-1},p,{children:v}))}),K1=bOe;function yOe(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const OOe=["onEntering"],vOe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],EOe=["slotProps"];function Q8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Y8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function G8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function JC(e){return typeof e=="function"?e():e}const SOe=e=>{const{classes:t}=e;return wt({root:["root"],paper:["paper"]},yOe,t)},TOe=Ee(Mp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GY=Ee(zo,{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}),wOe=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:b=8,marginThreshold:O=16,open:y,PaperProps:v={},slots:S,slotProps:k,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=cT,transitionDuration:E="auto",TransitionProps:{onEntering:$}={},disableScrollLock:P=!1}=a,_=Ye(a.TransitionProps,OOe),B=Ye(a,vOe),U=(r=k==null?void 0:k.paper)!=null?r:v,V=I.useRef(),z=yn(V,U.ref),W=L({},a,{anchorOrigin:u,anchorReference:d,elevation:b,marginThreshold:O,externalPaperSlotProps:U,transformOrigin:C,TransitionComponent:w,transitionDuration:E,TransitionProps:_}),X=SOe(W),q=I.useCallback(()=>{if(d==="anchorPosition")return c;const ye=JC(l),$e=(ye&&ye.nodeType===1?ye:Or(V.current).body).getBoundingClientRect();return{top:$e.top+Q8($e,u.vertical),left:$e.left+Y8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=I.useCallback(ye=>({vertical:Q8(ye,C.vertical),horizontal:Y8(ye,C.horizontal)}),[C.horizontal,C.vertical]),Z=I.useCallback(ye=>{const ze={width:ye.offsetWidth,height:ye.offsetHeight},$e=Y(ze);if(d==="none")return{top:null,left:null,transformOrigin:G8($e)};const We=q();let dt=We.top-$e.vertical,Be=We.left-$e.horizontal;const re=dt+ze.height,ee=Be+ze.width,J=Js(JC(l)),Re=J.innerHeight-O,Le=J.innerWidth-O;if(O!==null&&dtRe){const Ne=re-Re;dt-=Ne,$e.vertical+=Ne}if(O!==null&&BeLe){const Ne=ee-Le;Be-=Ne,$e.horizontal+=Ne}return{top:`${Math.round(dt)}px`,left:`${Math.round(Be)}px`,transformOrigin:G8($e)}},[l,d,q,Y,O]),[j,se]=I.useState(y),ve=I.useCallback(()=>{const ye=V.current;if(!ye)return;const ze=Z(ye);ze.top!==null&&(ye.style.top=ze.top),ze.left!==null&&(ye.style.left=ze.left),ye.style.transformOrigin=ze.transformOrigin,se(!0)},[Z]);I.useEffect(()=>(P&&window.addEventListener("scroll",ve),()=>window.removeEventListener("scroll",ve)),[l,P,ve]);const G=(ye,ze)=>{$&&$(ye,ze),ve()},ce=()=>{se(!1)};I.useEffect(()=>{y&&ve()}),I.useImperativeHandle(s,()=>y?{updatePosition:()=>{ve()}}:null,[y,ve]),I.useEffect(()=>{if(!y)return;const ye=Cg(()=>{ve()}),ze=Js(l);return ze.addEventListener("resize",ye),()=>{ye.clear(),ze.removeEventListener("resize",ye)}},[l,y,ve]);let ge=E;E==="auto"&&!w.muiSupportAuto&&(ge=void 0);const ue=m||(l?Or(JC(l)).body:void 0),xe=(i=S==null?void 0:S.root)!=null?i:TOe,De=(o=S==null?void 0:S.paper)!=null?o:GY,Ve=kn({elementType:De,externalSlotProps:L({},U,{style:j?U.style:L({},U.style,{opacity:0})}),additionalProps:{elevation:b,ref:z},ownerState:W,className:Ke(X.paper,U==null?void 0:U.className)}),Je=kn({elementType:xe,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:y},ownerState:W,className:Ke(X.root,h)}),{slotProps:Me}=Je,Ge=Ye(Je,EOe);return N.jsx(xe,L({},Ge,!Cu(xe)&&{slotProps:Me,disableScrollLock:P},{children:N.jsx(w,L({appear:!0,in:y,onEntering:G,onExited:ce,timeout:ge},_,{children:N.jsx(De,L({},Ve,{children:p}))}))}))}),nP=wOe;function kOe(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const xOe=["onEntering"],COe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],AOe={vertical:"top",horizontal:"right"},_Oe={vertical:"top",horizontal:"left"},ROe=e=>{const{classes:t}=e;return wt({root:["root"],paper:["paper"],list:["list"]},kOe,t)},IOe=Ee(nP,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NOe=Ee(GY,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),DOe=Ee(K1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),POe=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:b="auto",TransitionProps:{onEntering:O}={},variant:y="selectedMenu",slots:v={},slotProps:S={}}=o,k=Ye(o.TransitionProps,xOe),C=Ye(o,COe),w=ci(),E=w.direction==="rtl",$=L({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:O,PaperProps:h,transitionDuration:b,TransitionProps:k,variant:y}),P=ROe($),_=a&&!u&&p,B=I.useRef(null),U=(Z,j)=>{B.current&&B.current.adjustStyleForScrollbar(Z,w),O&&O(Z,j)},V=Z=>{Z.key==="Tab"&&(Z.preventDefault(),d&&d(Z,"tabKeyDown"))};let z=-1;I.Children.map(s,(Z,j)=>{I.isValidElement(Z)&&(Z.props.disabled||(y==="selectedMenu"&&Z.props.selected||z===-1)&&(z=j))});const W=(r=v.paper)!=null?r:NOe,X=(i=S.paper)!=null?i:h,q=kn({elementType:v.root,externalSlotProps:S.root,ownerState:$,className:[P.root,l]}),Y=kn({elementType:W,externalSlotProps:X,ownerState:$,className:P.paper});return N.jsx(IOe,L({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?AOe:_Oe,slots:{paper:W,root:v.root},slotProps:{root:q,paper:Y},open:p,ref:n,transitionDuration:b,TransitionProps:L({onEntering:U},k),ownerState:$},C,{classes:m,children:N.jsx(DOe,L({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:_,variant:y},c,{className:Ke(P.list,c.className),children:s}))}))}),LOe=POe;function MOe(e){return At("MuiMenuItem",e)}const $Oe=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),T0=$Oe,FOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],BOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},UOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=wt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},MOe,a);return L({},a,l)},jOe=Ee(hs,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:BOe})(({theme:e,ownerState:t})=>L({},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"}},[`&.${T0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${T0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${T0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${T0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${T0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${$8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${$8.inset}`]:{marginLeft:52},[`& .${fT.root}`]:{marginTop:0,marginBottom:0},[`& .${fT.inset}`]:{paddingLeft:36},[`& .${H8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&L({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${H8.root} svg`]:{fontSize:"1.25rem"}}))),zOe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,h=Ye(r,FOe),m=I.useContext(Qs),b=I.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),O=I.useRef(null);Jr(()=>{i&&O.current&&O.current.focus()},[i]);const y=L({},r,{dense:b.dense,divider:s,disableGutters:l}),v=UOe(r),S=yn(O,n);let k;return r.disabled||(k=d!==void 0?d:-1),N.jsx(Qs.Provider,{value:b,children:N.jsx(jOe,L({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:Ke(v.focusVisible,u),className:Ke(v.root,p)},h,{ownerState:y,classes:v}))})}),Sp=zOe;function VOe(e){return At("MuiNativeSelect",e)}const HOe=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rP=HOe,WOe=["className","disabled","error","IconComponent","inputRef","variant"],QOe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"]};return wt(s,VOe,t)},qY=({ownerState:e,theme:t})=>L({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":L({},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"},[`&.${rP.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}}),YOe=Ee("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:no,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${rP.multiple}`]:t.multiple}]}})(qY),ZY=({ownerState:e,theme:t})=>L({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${rP.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),GOe=Ee("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(ZY),qOe=I.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ye(t,WOe),c=L({},t,{disabled:i,variant:l,error:o}),d=QOe(c);return N.jsxs(I.Fragment,{children:[N.jsx(YOe,L({ownerState:c,className:Ke(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:N.jsx(GOe,{as:a,ownerState:c,className:d.icon})]})}),ZOe=qOe;var q8;const XOe=["children","classes","className","label","notched"],KOe=Ee("fieldset",{shouldForwardProp:no})({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%"}),JOe=Ee("legend",{shouldForwardProp:no})(({ownerState:e,theme:t})=>L({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&&L({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 eve(e){const{className:t,label:n,notched:r}=e,i=Ye(e,XOe),o=n!=null&&n!=="",a=L({},e,{notched:r,withLabel:o});return N.jsx(KOe,L({"aria-hidden":!0,className:t,ownerState:a},i,{children:N.jsx(JOe,{ownerState:a,children:o?N.jsx("span",{children:n}):q8||(q8=N.jsx("span",{className:"notranslate",children:"​"}))})}))}const tve=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nve=e=>{const{classes:t}=e,r=wt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nge,t);return L({},t,r)},rve=Ee(Nk,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return L({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ou.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ou.focused} .${ou.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ou.error} .${ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ou.disabled} .${ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&L({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),ive=Ee(eve,{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}}),ove=Ee(Dk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ik})(({theme:e,ownerState:t})=>L({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})),XY=I.forwardRef(function(t,n){var r,i,o,a,s;const l=mt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:b={},type:O="text"}=l,y=Ye(l,tve),v=nve(l),S=Pu(),k=lf({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=L({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:c,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:O}),w=(r=(i=b.root)!=null?i:u.Root)!=null?r:rve,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:ove;return N.jsx(XD,L({slots:{root:w,input:E},renderSuffix:$=>N.jsx(ive,{ownerState:C,className:v.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=N.jsxs(I.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:O},y,{classes:L({},v,{notchedOutline:null})}))});XY.muiName="Input";const KY=XY,ave=ki(N.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"),sve=ki(N.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"),lve=Ee("span",{shouldForwardProp:no})({position:"relative",display:"flex"}),uve=Ee(ave)({transform:"scale(1)"}),cve=Ee(sve)(({theme:e,ownerState:t})=>L({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 JY(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=L({},e,{checked:t});return N.jsxs(lve,{className:n.root,ownerState:i,children:[N.jsx(uve,{fontSize:r,className:n.background,ownerState:i}),N.jsx(cve,{fontSize:r,className:n.dot,ownerState:i})]})}const dve=I.createContext(void 0),eG=dve;function fve(){return I.useContext(eG)}function pve(e){return At("MuiRadio",e)}const Z8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),hve=["checked","checkedIcon","color","icon","name","onChange","size","className"],mve=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${nt(n)}`,r!=="medium"&&`size${nt(r)}`]};return L({},t,wt(i,pve,t))},gve=Ee(KD,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${nt(n.size)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Z8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Z8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function bve(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const X8=N.jsx(JY,{checked:!0}),K8=N.jsx(JY,{}),yve=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=X8,color:l="primary",icon:u=K8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ye(o,hve),b=L({},o,{color:l,size:p}),O=mve(b),y=fve();let v=a;const S=nT(d,y&&y.onChange);let k=c;return y&&(typeof v>"u"&&(v=bve(y.value,o.value)),typeof k>"u"&&(k=y.name)),N.jsx(gve,L({type:"radio",icon:I.cloneElement(u,{fontSize:(r=K8.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(s,{fontSize:(i=X8.props.fontSize)!=null?i:p}),ownerState:b,classes:O,name:k,checked:v,onChange:S,ref:n,className:Ke(O.root,h)},m))}),J8=yve,Ove=["actions","children","defaultValue","name","onChange","value"],vve=I.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ye(t,Ove),c=I.useRef(null),[d,p]=Ji({controlled:l,default:o,name:"RadioGroup"});I.useImperativeHandle(r,()=>({focus:()=>{let O=c.current.querySelector("input:not(:disabled):checked");O||(O=c.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const h=yn(n,c),m=Fl(a),b=I.useMemo(()=>({name:m,onChange(O){p(O.target.value),s&&s(O,O.target.value)},value:d}),[m,s,p,d]);return N.jsx(eG.Provider,{value:b,children:N.jsx(JD,L({role:"radiogroup",ref:h},u,{children:i}))})}),Eve=vve;function Sve(e){return At("MuiSelect",e)}const w0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var e7;const Tve=["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"],wve=Ee("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${w0.select}`]:t.select},{[`&.${w0.select}`]:t[n.variant]},{[`&.${w0.error}`]:t.error},{[`&.${w0.multiple}`]:t.multiple}]}})(qY,{[`&.${w0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kve=Ee("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(ZY),xve=Ee("input",{shouldForwardProp:e=>MD(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 t7(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Cve(e){return e==null||typeof e=="string"&&!e.trim()}const Ave=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return wt(s,Sve,t)},_ve=I.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:b,inputRef:O,labelId:y,MenuProps:v={},multiple:S,name:k,onBlur:C,onChange:w,onClose:E,onFocus:$,onOpen:P,open:_,readOnly:B,renderValue:U,SelectDisplayProps:V={},tabIndex:z,value:W,variant:X="standard"}=t,q=Ye(t,Tve),[Y,Z]=Ji({controlled:W,default:d,name:"Select"}),[j,se]=Ji({controlled:_,default:c,name:"Select"}),ve=I.useRef(null),G=I.useRef(null),[ce,ge]=I.useState(null),{current:ue}=I.useRef(_!=null),[xe,De]=I.useState(),Ve=yn(n,O),Je=I.useCallback(et=>{G.current=et,et&&ge(et)},[]),Me=ce==null?void 0:ce.parentNode;I.useImperativeHandle(Ve,()=>({focus:()=>{G.current.focus()},node:ve.current,value:Y}),[Y]),I.useEffect(()=>{c&&j&&ce&&!ue&&(De(s?null:Me.clientWidth),G.current.focus())},[ce,s]),I.useEffect(()=>{a&&G.current.focus()},[a]),I.useEffect(()=>{if(!y)return;const et=Or(G.current).getElementById(y);if(et){const vt=()=>{getSelection().isCollapsed&&G.current.focus()};return et.addEventListener("click",vt),()=>{et.removeEventListener("click",vt)}}},[y]);const Ge=(et,vt)=>{et?P&&P(vt):E&&E(vt),ue||(De(s?null:Me.clientWidth),se(et))},ye=et=>{et.button===0&&(et.preventDefault(),G.current.focus(),Ge(!0,et))},ze=et=>{Ge(!1,et)},$e=I.Children.toArray(l),We=et=>{const vt=$e.find(qe=>qe.props.value===et.target.value);vt!==void 0&&(Z(vt.props.value),w&&w(et,vt))},dt=et=>vt=>{let qe;if(vt.currentTarget.hasAttribute("tabindex")){if(S){qe=Array.isArray(Y)?Y.slice():[];const it=Y.indexOf(et.props.value);it===-1?qe.push(et.props.value):qe.splice(it,1)}else qe=et.props.value;if(et.props.onClick&&et.props.onClick(vt),Y!==qe&&(Z(qe),w)){const it=vt.nativeEvent||vt,Et=new it.constructor(it.type,it);Object.defineProperty(Et,"target",{writable:!0,value:{value:qe,name:k}}),w(Et,et)}S||Ge(!1,vt)}},Be=et=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(et.key)!==-1&&(et.preventDefault(),Ge(!0,et))},re=ce!==null&&j,ee=et=>{!re&&C&&(Object.defineProperty(et,"target",{writable:!0,value:{value:Y,name:k}}),C(et))};delete q["aria-invalid"];let J,Re;const Le=[];let Ne=!1;(uT({value:Y})||h)&&(U?J=U(Y):Ne=!0);const ie=$e.map(et=>{if(!I.isValidElement(et))return null;let vt;if(S){if(!Array.isArray(Y))throw new Error(Vd(2));vt=Y.some(qe=>t7(qe,et.props.value)),vt&&Ne&&Le.push(et.props.children)}else vt=t7(Y,et.props.value),vt&&Ne&&(Re=et.props.children);return I.cloneElement(et,{"aria-selected":vt?"true":"false",onClick:dt(et),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(qe)},role:"option",selected:vt,value:void 0,"data-value":et.props.value})});Ne&&(S?Le.length===0?J=null:J=Le.reduce((et,vt,qe)=>(et.push(vt),qe{const{classes:t}=e;return t},iP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>no(e)&&e!=="variant",slot:"Root"},Pve=Ee(VY,iP)(""),Lve=Ee(KY,iP)(""),Mve=Ee(FY,iP)(""),tG=I.forwardRef(function(t,n){const r=mt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=IY,id:d,input:p,inputProps:h,label:m,labelId:b,MenuProps:O,multiple:y=!1,native:v=!1,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:E,variant:$="outlined"}=r,P=Ye(r,Ive),_=v?ZOe:Rve,B=Pu(),U=lf({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||$,z=L({},r,{variant:V,classes:a}),W=Dve(z),X=Ye(W,Nve),q=p||{standard:N.jsx(Pve,{ownerState:z}),outlined:N.jsx(Lve,{label:m,ownerState:z}),filled:N.jsx(Mve,{ownerState:z})}[V],Y=yn(n,q.ref);return N.jsx(I.Fragment,{children:I.cloneElement(q,L({inputComponent:_,inputProps:L({children:o,error:U.error,IconComponent:c,variant:V,type:void 0,multiple:y},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:O,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:L({id:d},E)},h,{classes:h?Mo(X,h.classes):X},p?p.props.inputProps:{})},y&&v&&V==="outlined"?{notched:!0}:{},{ref:Y,className:Ke(q.props.className,s,W.root)},!p&&{variant:V},P))})});tG.muiName="Select";const nG=tG,$ve=e=>!e||!Cu(e);function Fve(e){return At("MuiSlider",e)}const kl=_t("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"]),Bve=e=>{const{open:t}=e;return{offset:Ke(t&&kl.valueLabelOpen),circle:kl.valueLabelCircle,label:kl.valueLabelLabel}};function Uve(e){const{children:t,className:n,value:r}=e,i=Bve(e);return t?I.cloneElement(t,{className:Ke(t.props.className)},N.jsxs(I.Fragment,{children:[t.props.children,N.jsx("span",{className:Ke(i.offset,n),"aria-hidden":!0,children:N.jsx("span",{className:i.circle,children:N.jsx("span",{className:i.label,children:r})})})]})):null}const jve=["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 n7(e){return e}const zve=Ee("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],n.size!=="medium"&&t[`size${nt(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})=>L({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"&&L({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"&&L({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"},[`&.${kl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${kl.dragging}`]:{[`& .${kl.thumb}, & .${kl.track}`]:{transition:"none"}}})),Vve=Ee("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>L({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})),Hve=Ee("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?kk(e.palette[t.color].main,.62):wk(e.palette[t.color].main,.5);return L({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})}),Wve=Ee("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nt(n.color)}`],n.size!=="medium"&&t[`thumbSize${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({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":L({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, &.${kl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${kl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`},[`&.${kl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Qve=Ee(Uve,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>L({[`&.${kl.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"})),Yve=Ee("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>MD(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>L({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})),Gve=Ee("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>MD(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>L({},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})),qve=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${nt(s)}`,l&&`size${nt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${nt(l)}`,s&&`thumbColor${nt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return wt(u,Fve,a)},Zve=({children:e})=>e,Xve=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E,$,P,_;const B=mt({props:t,name:"MuiSlider"}),V=ci().direction==="rtl",{"aria-label":z,"aria-valuetext":W,"aria-labelledby":X,component:q="span",components:Y={},componentsProps:Z={},color:j="primary",classes:se,className:ve,disableSwap:G=!1,disabled:ce=!1,getAriaLabel:ge,getAriaValueText:ue,marks:xe=!1,max:De=100,min:Ve=0,orientation:Je="horizontal",size:Me="medium",step:Ge=1,scale:ye=n7,slotProps:ze,slots:$e,track:We="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=n7}=B,re=Ye(B,jve),ee=L({},B,{isRtl:V,max:De,min:Ve,classes:se,disabled:ce,disableSwap:G,orientation:Je,marks:xe,color:j,size:Me,step:Ge,scale:ye,track:We,valueLabelDisplay:dt,valueLabelFormat:Be}),{axisProps:J,getRootProps:Re,getHiddenInputProps:Le,getThumbProps:Ne,open:ie,active:fe,axis:de,focusedThumbIndex:Oe,range:Te,dragging:rt,marks:pt,values:xt,trackOffset:et,trackLeap:vt,getThumbStyle:qe}=Tme(L({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=rt,ee.focusedThumbIndex=Oe;const it=qve(ee),Et=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:zve,Dt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:Vve,on=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:Hve,dn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:Wve,pn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:Qve,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:Yve,Se=(b=(O=$e==null?void 0:$e.markLabel)!=null?O:Y.MarkLabel)!=null?b:Gve,_e=(y=(v=$e==null?void 0:$e.input)!=null?v:Y.Input)!=null?y:"input",pe=(S=ze==null?void 0:ze.root)!=null?S:Z.root,lt=(k=ze==null?void 0:ze.rail)!=null?k:Z.rail,at=(C=ze==null?void 0:ze.track)!=null?C:Z.track,Mt=(w=ze==null?void 0:ze.thumb)!=null?w:Z.thumb,$t=(E=ze==null?void 0:ze.valueLabel)!=null?E:Z.valueLabel,It=($=ze==null?void 0:ze.mark)!=null?$:Z.mark,Ct=(P=ze==null?void 0:ze.markLabel)!=null?P:Z.markLabel,Zt=(_=ze==null?void 0:ze.input)!=null?_:Z.input,Ie=kn({elementType:Et,getSlotProps:Re,externalSlotProps:pe,externalForwardedProps:re,additionalProps:L({},$ve(Et)&&{as:q}),ownerState:L({},ee,pe==null?void 0:pe.ownerState),className:[it.root,ve]}),we=kn({elementType:Dt,externalSlotProps:lt,ownerState:ee,className:it.rail}),Qe=kn({elementType:on,externalSlotProps:at,additionalProps:{style:L({},J[de].offset(et),J[de].leap(vt))},ownerState:L({},ee,at==null?void 0:at.ownerState),className:it.track}),ot=kn({elementType:dn,getSlotProps:Ne,externalSlotProps:Mt,ownerState:L({},ee,Mt==null?void 0:Mt.ownerState),className:it.thumb}),rn=kn({elementType:pn,externalSlotProps:$t,ownerState:L({},ee,$t==null?void 0:$t.ownerState),className:it.valueLabel}),Wt=kn({elementType:zn,externalSlotProps:It,ownerState:ee,className:it.mark}),mn=kn({elementType:Se,externalSlotProps:Ct,ownerState:ee,className:it.markLabel}),nr=kn({elementType:_e,getSlotProps:Le,externalSlotProps:Zt,ownerState:ee});return N.jsxs(Et,L({},Ie,{children:[N.jsx(Dt,L({},we)),N.jsx(on,L({},Qe)),pt.filter(Ue=>Ue.value>=Ve&&Ue.value<=De).map((Ue,Ce)=>{const gt=lT(Ue.value,Ve,De),Nt=J[de].offset(gt);let tn;return We===!1?tn=xt.indexOf(Ue.value)!==-1:tn=We==="normal"&&(Te?Ue.value>=xt[0]&&Ue.value<=xt[xt.length-1]:Ue.value<=xt[0])||We==="inverted"&&(Te?Ue.value<=xt[0]||Ue.value>=xt[xt.length-1]:Ue.value>=xt[0]),N.jsxs(I.Fragment,{children:[N.jsx(zn,L({"data-index":Ce},Wt,!Cu(zn)&&{markActive:tn},{style:L({},Nt,Wt.style),className:Ke(Wt.className,tn&&it.markActive)})),Ue.label!=null?N.jsx(Se,L({"aria-hidden":!0,"data-index":Ce},mn,!Cu(Se)&&{markLabelActive:tn},{style:L({},Nt,mn.style),className:Ke(it.markLabel,mn.className,tn&&it.markLabelActive),children:Ue.label})):null]},Ce)}),xt.map((Ue,Ce)=>{const gt=lT(Ue,Ve,De),Nt=J[de].offset(gt),tn=dt==="off"?Zve:pn;return N.jsx(tn,L({},!Cu(tn)&&{valueLabelFormat:Be,valueLabelDisplay:dt,value:typeof Be=="function"?Be(ye(Ue),Ce):Be,index:Ce,open:ie===Ce||fe===Ce||dt==="on",disabled:ce},rn,{children:N.jsx(dn,L({"data-index":Ce},ot,{className:Ke(it.thumb,ot.className,fe===Ce&&it.active,Oe===Ce&&it.focusVisible),style:L({},Nt,qe(Ce),ot.style),children:N.jsx(_e,L({"data-index":Ce,"aria-label":ge?ge(Ce):z,"aria-valuenow":ye(Ue),"aria-labelledby":X,"aria-valuetext":ue?ue(ye(Ue),Ce):W,value:xt[Ce]},nr))}))}),Ce)})]}))}),Kve=Xve;function Jve(e){return At("MuiTooltip",e)}const eEe=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),yd=eEe,tEe=["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 nEe(e){return Math.round(e*1e5)/1e5}const rEe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${nt(o.split("-")[0])}`],arrow:["arrow"]};return wt(a,Jve,t)},iEe=Ee(Z1,{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})=>L({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${yd.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${yd.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${yd.arrow}`]:L({},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"] .${yd.arrow}`]:L({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),oEe=Ee("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${nt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>L({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:cn(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:`${nEe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${yd.popper}[data-popper-placement*="left"] &`]:L({transformOrigin:"right center"},t.isRtl?L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):L({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${yd.popper}[data-popper-placement*="right"] &`]:L({transformOrigin:"left center"},t.isRtl?L({marginRight:"14px"},t.touch&&{marginRight:"24px"}):L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${yd.popper}[data-popper-placement*="top"] &`]:L({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${yd.popper}[data-popper-placement*="bottom"] &`]:L({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),aEe=Ee("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:cn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Dv=!1,eA=null,k0={x:0,y:0};function Pv(e,t){return n=>{t&&t(n),e(n)}}const sEe=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C;const w=mt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:$,components:P={},componentsProps:_={},describeChild:B=!1,disableFocusListener:U=!1,disableHoverListener:V=!1,disableInteractive:z=!1,disableTouchListener:W=!1,enterDelay:X=100,enterNextDelay:q=0,enterTouchDelay:Y=700,followCursor:Z=!1,id:j,leaveDelay:se=0,leaveTouchDelay:ve=1500,onClose:G,onOpen:ce,open:ge,placement:ue="bottom",PopperComponent:xe,PopperProps:De={},slotProps:Ve={},slots:Je={},title:Me,TransitionComponent:Ge=cT,TransitionProps:ye}=w,ze=Ye(w,tEe),$e=I.isValidElement($)?$:N.jsx("span",{children:$}),We=ci(),dt=We.direction==="rtl",[Be,re]=I.useState(),[ee,J]=I.useState(null),Re=I.useRef(!1),Le=z||Z,Ne=I.useRef(),ie=I.useRef(),fe=I.useRef(),de=I.useRef(),[Oe,Te]=Ji({controlled:ge,default:!1,name:"Tooltip",state:"open"});let rt=Oe;const pt=Fl(j),xt=I.useRef(),et=I.useCallback(()=>{xt.current!==void 0&&(document.body.style.WebkitUserSelect=xt.current,xt.current=void 0),clearTimeout(de.current)},[]);I.useEffect(()=>()=>{clearTimeout(Ne.current),clearTimeout(ie.current),clearTimeout(fe.current),et()},[et]);const vt=Kt=>{clearTimeout(eA),Dv=!0,Te(!0),ce&&!rt&&ce(Kt)},qe=jt(Kt=>{clearTimeout(eA),eA=setTimeout(()=>{Dv=!1},800+se),Te(!1),G&&rt&&G(Kt),clearTimeout(Ne.current),Ne.current=setTimeout(()=>{Re.current=!1},We.transitions.duration.shortest)}),it=Kt=>{Re.current&&Kt.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(fe.current),X||Dv&&q?ie.current=setTimeout(()=>{vt(Kt)},Dv?q:X):vt(Kt))},Et=Kt=>{clearTimeout(ie.current),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},se)},{isFocusVisibleRef:Dt,onBlur:on,onFocus:dn,ref:pn}=fk(),[,zn]=I.useState(!1),Se=Kt=>{on(Kt),Dt.current===!1&&(zn(!1),Et(Kt))},_e=Kt=>{Be||re(Kt.currentTarget),dn(Kt),Dt.current===!0&&(zn(!0),it(Kt))},pe=Kt=>{Re.current=!0;const bn=$e.props;bn.onTouchStart&&bn.onTouchStart(Kt)},lt=it,at=Et,Mt=Kt=>{pe(Kt),clearTimeout(fe.current),clearTimeout(Ne.current),et(),xt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.current=setTimeout(()=>{document.body.style.WebkitUserSelect=xt.current,it(Kt)},Y)},$t=Kt=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(Kt),et(),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},ve)};I.useEffect(()=>{if(!rt)return;function Kt(bn){(bn.key==="Escape"||bn.key==="Esc")&&qe(bn)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[qe,rt]);const It=yn($e.ref,pn,re,n);!Me&&Me!==0&&(rt=!1);const Ct=I.useRef(),Zt=Kt=>{const bn=$e.props;bn.onMouseMove&&bn.onMouseMove(Kt),k0={x:Kt.clientX,y:Kt.clientY},Ct.current&&Ct.current.update()},Ie={},we=typeof Me=="string";B?(Ie.title=!rt&&we&&!V?Me:null,Ie["aria-describedby"]=rt?pt:null):(Ie["aria-label"]=we?Me:null,Ie["aria-labelledby"]=rt&&!we?pt:null);const Qe=L({},Ie,ze,$e.props,{className:Ke(ze.className,$e.props.className),onTouchStart:pe,ref:It},Z?{onMouseMove:Zt}:{}),ot={};W||(Qe.onTouchStart=Mt,Qe.onTouchEnd=$t),V||(Qe.onMouseOver=Pv(lt,Qe.onMouseOver),Qe.onMouseLeave=Pv(at,Qe.onMouseLeave),Le||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(Qe.onFocus=Pv(_e,Qe.onFocus),Qe.onBlur=Pv(Se,Qe.onBlur),Le||(ot.onFocus=_e,ot.onBlur=Se));const rn=I.useMemo(()=>{var Kt;let bn=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Kt=De.popperOptions)!=null&&Kt.modifiers&&(bn=bn.concat(De.popperOptions.modifiers)),L({},De.popperOptions,{modifiers:bn})},[ee,De]),Wt=L({},w,{isRtl:dt,arrow:E,disableInteractive:Le,placement:ue,PopperComponentProp:xe,touch:Re.current}),mn=rEe(Wt),nr=(r=(i=Je.popper)!=null?i:P.Popper)!=null?r:iEe,Ue=(o=(a=(s=Je.transition)!=null?s:P.Transition)!=null?a:Ge)!=null?o:cT,Ce=(l=(u=Je.tooltip)!=null?u:P.Tooltip)!=null?l:oEe,gt=(c=(d=Je.arrow)!=null?d:P.Arrow)!=null?c:aEe,Nt=ib(nr,L({},De,(p=Ve.popper)!=null?p:_.popper,{className:Ke(mn.popper,De==null?void 0:De.className,(h=(m=Ve.popper)!=null?m:_.popper)==null?void 0:h.className)}),Wt),tn=ib(Ue,L({},ye,(b=Ve.transition)!=null?b:_.transition),Wt),Mn=ib(Ce,L({},(O=Ve.tooltip)!=null?O:_.tooltip,{className:Ke(mn.tooltip,(y=(v=Ve.tooltip)!=null?v:_.tooltip)==null?void 0:y.className)}),Wt),Nn=ib(gt,L({},(S=Ve.arrow)!=null?S:_.arrow,{className:Ke(mn.arrow,(k=(C=Ve.arrow)!=null?C:_.arrow)==null?void 0:k.className)}),Wt);return N.jsxs(I.Fragment,{children:[I.cloneElement($e,Qe),N.jsx(nr,L({as:xe??Z1,placement:ue,anchorEl:Z?{getBoundingClientRect:()=>({top:k0.y,left:k0.x,right:k0.x,bottom:k0.y,width:0,height:0})}:Be,popperRef:Ct,open:Be?rt:!1,id:pt,transition:!0},ot,Nt,{popperOptions:rn,children:({TransitionProps:Kt})=>N.jsx(Ue,L({timeout:We.transitions.duration.shorter},Kt,tn,{children:N.jsxs(Ce,L({},Mn,{children:[Me,E?N.jsx(gt,L({},Nn,{ref:J})):null]}))}))}))]})}),Lf=sEe;function lEe(e){return At("MuiSwitch",e)}const uEe=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Jo=uEe,cEe=["className","color","edge","size","sx"],dEe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${nt(n)}`,`size${nt(r)}`],switchBase:["switchBase",`color${nt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=wt(s,lEe,t);return L({},t,l)},fEe=Ee("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({ownerState:e})=>L({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,[`& .${Jo.thumb}`]:{width:16,height:16},[`& .${Jo.switchBase}`]:{padding:4,[`&.${Jo.checked}`]:{transform:"translateX(16px)"}}})),pEe=Ee(KD,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Jo.input}`]:t.input},n.color!=="default"&&t[`color${nt(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}),[`&.${Jo.checked}`]:{transform:"translateX(20px)"},[`&.${Jo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Jo.checked} + .${Jo.track}`]:{opacity:.5},[`&.${Jo.disabled} + .${Jo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Jo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>L({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Jo.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})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?kk(e.palette[t.color].main,.62):wk(e.palette[t.color].main,.55)}`}},[`&.${Jo.checked} + .${Jo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),hEe=Ee("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}`})),mEe=Ee("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%"})),gEe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Ye(r,cEe),c=L({},r,{color:o,edge:a,size:s}),d=dEe(c),p=N.jsx(mEe,{className:d.thumb,ownerState:c});return N.jsxs(fEe,{className:Ke(d.root,i),sx:l,ownerState:c,children:[N.jsx(pEe,L({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:L({},d,{root:d.switchBase})})),N.jsx(hEe,{className:d.track,ownerState:c})]})}),bEe=gEe;function yEe(e){return At("MuiTab",e)}const OEe=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Sf=OEe,vEe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],EEe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,u={root:["root",o&&a&&"labelIcon",`textColor${nt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return wt(u,yEe,t)},SEe=Ee(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${nt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>L({},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,[`& > .${Sf.iconWrapper}`]:L({},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,[`&.${Sf.selected}`]:{opacity:1},[`&.${Sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Sf.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Sf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Sf.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Sf.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)})),TEe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:d,onChange:p,onClick:h,onFocus:m,selected:b,selectionFollowsFocus:O,textColor:y="inherit",value:v,wrapped:S=!1}=r,k=Ye(r,vEe),C=L({},r,{disabled:o,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:y,wrapped:S}),w=EEe(C),E=l&&d&&I.isValidElement(l)?I.cloneElement(l,{className:Ke(w.iconWrapper,l.props.className)}):l,$=_=>{!b&&p&&p(_,v),h&&h(_)},P=_=>{O&&!b&&p&&p(_,v),m&&m(_)};return N.jsxs(SEe,L({focusRipple:!a,className:Ke(w.root,i),ref:n,role:"tab","aria-selected":b,disabled:o,onClick:$,onFocus:P,ownerState:C,tabIndex:b?0:-1},k,{children:[u==="top"||u==="start"?N.jsxs(I.Fragment,{children:[E,d]}):N.jsxs(I.Fragment,{children:[d,E]}),c]}))}),r7=TEe;function wEe(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const kEe=["className","component","disableGutters","variant"],xEe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return wt({root:["root",!n&&"gutters",r]},wEe,t)},CEe=Ee("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})=>L({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),AEe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=Ye(r,kEe),u=L({},r,{component:o,disableGutters:a,variant:s}),c=xEe(u);return N.jsx(CEe,L({as:o,className:Ke(c.root,i),ref:n,ownerState:u},l))}),rG=AEe,_Ee=ki(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),REe=ki(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function IEe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function NEe(e,t,n,r={},i=()=>{}){const{ease:o=IEe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=p=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/a);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const DEe=["onChange"],PEe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function LEe(e){const{onChange:t}=e,n=Ye(e,DEe),r=I.useRef(),i=I.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Jr(()=>{const a=Cg(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Js(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{o(),t(r.current)},[t]),N.jsx("div",L({style:PEe,ref:i},n))}function MEe(e){return At("MuiTabScrollButton",e)}const $Ee=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FEe=$Ee,BEe=["className","slots","slotProps","direction","orientation","disabled"],UEe=e=>{const{classes:t,orientation:n,disabled:r}=e;return wt({root:["root",n,r&&"disabled"]},MEe,t)},jEe=Ee(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>L({width:40,flexShrink:0,opacity:.8,[`&.${FEe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),zEe=I.forwardRef(function(t,n){var r,i;const o=mt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=o,c=Ye(o,BEe),p=ci().direction==="rtl",h=L({isRtl:p},o),m=UEe(h),b=(r=s.StartScrollButtonIcon)!=null?r:_Ee,O=(i=s.EndScrollButtonIcon)!=null?i:REe,y=kn({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=kn({elementType:O,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return N.jsx(jEe,L({component:"div",className:Ke(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?N.jsx(b,L({},y)):N.jsx(O,L({},v))}))}),VEe=zEe;function HEe(e){return At("MuiTabs",e)}const WEe=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),QE=WEe,QEe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],i7=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,o7=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Lv=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},YEe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return wt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},HEe,l)},GEe=Ee("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${QE.scrollButtons}`]:t.scrollButtons},{[`& .${QE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>L({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${QE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),qEe=Ee("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})=>L({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"})),ZEe=Ee("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})=>L({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),XEe=Ee("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>L({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})),KEe=Ee(LEe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),a7={},JEe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTabs"}),i=ci(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:b,orientation:O="horizontal",ScrollButtonComponent:y=VEe,scrollButtons:v="auto",selectionFollowsFocus:S,slots:k={},slotProps:C={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:$="primary",value:P,variant:_="standard",visibleScrollbar:B=!1}=r,U=Ye(r,QEe),V=_==="scrollable",z=O==="vertical",W=z?"scrollTop":"scrollLeft",X=z?"top":"left",q=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",Z=z?"height":"width",j=L({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:m,orientation:O,vertical:z,scrollButtons:v,textColor:$,variant:_,visibleScrollbar:B,fixed:!V,hideScrollbar:V&&!B,scrollableX:V&&!z,scrollableY:V&&z,centered:u&&!V,scrollButtonsHideMobile:!h}),se=YEe(j),ve=kn({elementType:k.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:j}),G=kn({elementType:k.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:j}),[ce,ge]=I.useState(!1),[ue,xe]=I.useState(a7),[De,Ve]=I.useState(!1),[Je,Me]=I.useState(!1),[Ge,ye]=I.useState(!1),[ze,$e]=I.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,dt=I.useRef(null),Be=I.useRef(null),re=()=>{const qe=dt.current;let it;if(qe){const Dt=qe.getBoundingClientRect();it={clientWidth:qe.clientWidth,scrollLeft:qe.scrollLeft,scrollTop:qe.scrollTop,scrollLeftNormalized:oce(qe,i.direction),scrollWidth:qe.scrollWidth,top:Dt.top,bottom:Dt.bottom,left:Dt.left,right:Dt.right}}let Et;if(qe&&P!==!1){const Dt=Be.current.children;if(Dt.length>0){const on=Dt[We.get(P)];Et=on?on.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:Et}},ee=jt(()=>{const{tabsMeta:qe,tabMeta:it}=re();let Et=0,Dt;if(z)Dt="top",it&&qe&&(Et=it.top-qe.top+qe.scrollTop);else if(Dt=o?"right":"left",it&&qe){const dn=o?qe.scrollLeftNormalized+qe.clientWidth-qe.scrollWidth:qe.scrollLeft;Et=(o?-1:1)*(it[Dt]-qe[Dt]+dn)}const on={[Dt]:Et,[Z]:it?it[Z]:0};if(isNaN(ue[Dt])||isNaN(ue[Z]))xe(on);else{const dn=Math.abs(ue[Dt]-on[Dt]),pn=Math.abs(ue[Z]-on[Z]);(dn>=1||pn>=1)&&xe(on)}}),J=(qe,{animation:it=!0}={})=>{it?NEe(W,dt.current,qe,{duration:i.transitions.duration.standard}):dt.current[W]=qe},Re=qe=>{let it=dt.current[W];z?it+=qe:(it+=qe*(o?-1:1),it*=o&&XQ()==="reverse"?-1:1),J(it)},Le=()=>{const qe=dt.current[Y];let it=0;const Et=Array.from(Be.current.children);for(let Dt=0;Dtqe){Dt===0&&(it=qe);break}it+=on[Y]}return it},Ne=()=>{Re(-1*Le())},ie=()=>{Re(Le())},fe=I.useCallback(qe=>{$e({overflow:null,scrollbarWidth:qe})},[]),de=()=>{const qe={};qe.scrollbarSizeListener=V?N.jsx(KEe,{onChange:fe,className:Ke(se.scrollableX,se.hideScrollbar)}):null;const Et=V&&(v==="auto"&&(De||Je)||v===!0);return qe.scrollButtonStart=Et?N.jsx(y,L({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ve},orientation:O,direction:o?"right":"left",onClick:Ne,disabled:!De},E,{className:Ke(se.scrollButtons,E.className)})):null,qe.scrollButtonEnd=Et?N.jsx(y,L({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:G},orientation:O,direction:o?"left":"right",onClick:ie,disabled:!Je},E,{className:Ke(se.scrollButtons,E.className)})):null,qe},Oe=jt(qe=>{const{tabsMeta:it,tabMeta:Et}=re();if(!(!Et||!it)){if(Et[X]it[q]){const Dt=it[W]+(Et[q]-it[q]);J(Dt,{animation:qe})}}}),Te=jt(()=>{V&&v!==!1&&ye(!Ge)});I.useEffect(()=>{const qe=Cg(()=>{dt.current&&ee()});let it;const Et=dn=>{dn.forEach(pn=>{pn.removedNodes.forEach(zn=>{var Se;(Se=it)==null||Se.unobserve(zn)}),pn.addedNodes.forEach(zn=>{var Se;(Se=it)==null||Se.observe(zn)})}),qe(),Te()},Dt=Js(dt.current);Dt.addEventListener("resize",qe);let on;return typeof ResizeObserver<"u"&&(it=new ResizeObserver(qe),Array.from(Be.current.children).forEach(dn=>{it.observe(dn)})),typeof MutationObserver<"u"&&(on=new MutationObserver(Et),on.observe(Be.current,{childList:!0})),()=>{var dn,pn;qe.clear(),Dt.removeEventListener("resize",qe),(dn=on)==null||dn.disconnect(),(pn=it)==null||pn.disconnect()}},[ee,Te]),I.useEffect(()=>{const qe=Array.from(Be.current.children),it=qe.length;if(typeof IntersectionObserver<"u"&&it>0&&V&&v!==!1){const Et=qe[0],Dt=qe[it-1],on={root:dt.current,threshold:.99},dn=_e=>{Ve(!_e[0].isIntersecting)},pn=new IntersectionObserver(dn,on);pn.observe(Et);const zn=_e=>{Me(!_e[0].isIntersecting)},Se=new IntersectionObserver(zn,on);return Se.observe(Dt),()=>{pn.disconnect(),Se.disconnect()}}},[V,v,Ge,c==null?void 0:c.length]),I.useEffect(()=>{ge(!0)},[]),I.useEffect(()=>{ee()}),I.useEffect(()=>{Oe(a7!==ue)},[Oe,ue]),I.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Te}),[ee,Te]);const rt=N.jsx(XEe,L({},w,{className:Ke(se.indicator,w.className),ownerState:j,style:L({},ue,w.style)}));let pt=0;const xt=I.Children.map(c,qe=>{if(!I.isValidElement(qe))return null;const it=qe.props.value===void 0?pt:qe.props.value;We.set(it,pt);const Et=it===P;return pt+=1,I.cloneElement(qe,L({fullWidth:_==="fullWidth",indicator:Et&&!ce&&rt,selected:Et,selectionFollowsFocus:S,onChange:b,textColor:$,value:it},pt===1&&P===!1&&!qe.props.tabIndex?{tabIndex:0}:{}))}),et=qe=>{const it=Be.current,Et=Or(it).activeElement;if(Et.getAttribute("role")!=="tab")return;let on=O==="horizontal"?"ArrowLeft":"ArrowUp",dn=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(on="ArrowRight",dn="ArrowLeft"),qe.key){case on:qe.preventDefault(),Lv(it,Et,o7);break;case dn:qe.preventDefault(),Lv(it,Et,i7);break;case"Home":qe.preventDefault(),Lv(it,null,i7);break;case"End":qe.preventDefault(),Lv(it,null,o7);break}},vt=de();return N.jsxs(GEe,L({className:Ke(se.root,d),ownerState:j,ref:n,as:p},U,{children:[vt.scrollButtonStart,vt.scrollbarSizeListener,N.jsxs(qEe,{className:se.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[N.jsx(ZEe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:se.flexContainer,ownerState:j,onKeyDown:et,ref:Be,role:"tablist",children:xt}),ce&&rt]}),vt.scrollButtonEnd]}))}),eSe=JEe;function tSe(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const nSe=["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"],rSe={standard:VY,filled:FY,outlined:KY},iSe=e=>{const{classes:t}=e;return wt({root:["root"]},tSe,t)},oSe=Ee(Lu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aSe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:b,InputLabelProps:O,inputProps:y,InputProps:v,inputRef:S,label:k,maxRows:C,minRows:w,multiline:E=!1,name:$,onBlur:P,onChange:_,onFocus:B,placeholder:U,required:V=!1,rows:z,select:W=!1,SelectProps:X,type:q,value:Y,variant:Z="outlined"}=r,j=Ye(r,nSe),se=L({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:W,variant:Z}),ve=iSe(se),G={};Z==="outlined"&&(O&&typeof O.shrink<"u"&&(G.notched=O.shrink),G.label=k),W&&((!X||!X.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const ce=Fl(b),ge=m&&ce?`${ce}-helper-text`:void 0,ue=k&&ce?`${ce}-label`:void 0,xe=rSe[Z],De=N.jsx(xe,L({"aria-describedby":ge,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:h,multiline:E,name:$,rows:z,maxRows:C,minRows:w,type:q,value:Y,id:ce,inputRef:S,onBlur:P,onChange:_,onFocus:B,placeholder:U,inputProps:y},G,v));return N.jsxs(oSe,L({className:Ke(ve.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:V,color:l,variant:Z,ownerState:se},j,{children:[k!=null&&k!==""&&N.jsx(HY,L({htmlFor:ce,id:ue},O,{children:k})),W?N.jsx(nG,L({"aria-describedby":ge,id:ce,labelId:ue,value:Y,input:De},X,{children:a})):De,m&&N.jsx(Rg,L({id:ge},p,{children:m}))]}))}),$p=aSe;function sSe(e){return At("MuiToggleButton",e)}const lSe=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Zh=lSe,uSe=I.createContext({}),iG=uSe,cSe=I.createContext(void 0),oG=cSe;function dSe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const fSe=["value"],pSe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],hSe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${nt(o)}`,a]};return wt(s,sSe,t)},mSe=Ee(hs,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${nt(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),L({},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%"},{[`&.${Zh.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})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zh.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(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)})}),gSe=I.forwardRef(function(t,n){const r=I.useContext(iG),{value:i}=r,o=Ye(r,fSe),a=I.useContext(oG),s=pk(L({},o,{selected:dSe(t.value,i)}),t),l=mt({props:s,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:b,onClick:O,selected:y,size:v="medium",value:S}=l,k=Ye(l,pSe),C=L({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:v}),w=hSe(C),E=P=>{O&&(O(P,S),P.defaultPrevented)||b&&b(P,S)},$=a||"";return N.jsx(mSe,L({className:Ke(o.className,w.root,c,$),disabled:p,focusRipple:!h,ref:n,onClick:E,onChange:b,value:S,ownerState:C,"aria-pressed":y},k,{children:u}))}),tA=gSe;function bSe(e){return At("MuiToggleButtonGroup",e)}const ySe=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Vr=ySe,OSe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],vSe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${nt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return wt(o,bSe,t)},ESe=Ee("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vr.grouped}`]:t.grouped},{[`& .${Vr.grouped}`]:t[`grouped${nt(n.orientation)}`]},{[`& .${Vr.firstButton}`]:t.firstButton},{[`& .${Vr.lastButton}`]:t.lastButton},{[`& .${Vr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>L({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Vr.grouped}`]:L({},e.orientation==="horizontal"?{[`&.${Vr.selected} + .${Vr.grouped}.${Vr.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Vr.selected} + .${Vr.grouped}.${Vr.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Vr.firstButton},& .${Vr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Vr.lastButton},& .${Vr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Vr.firstButton},& .${Vr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Vr.lastButton},& .${Vr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Vr.lastButton}.${Zh.disabled},& .${Vr.middleButton}.${Zh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Vr.lastButton}.${Zh.disabled},& .${Vr.middleButton}.${Zh.disabled}`]:{borderTop:"1px solid transparent"}})),SSe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:d="horizontal",size:p="medium",value:h}=r,m=Ye(r,OSe),b=L({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),O=vSe(b),y=I.useCallback((E,$)=>{if(!c)return;const P=h&&h.indexOf($);let _;h&&P>=0?(_=h.slice(),_.splice(P,1)):_=h?h.concat($):[$],c(E,_)},[c,h]),v=I.useCallback((E,$)=>{c&&c(E,h===$?null:$)},[c,h]),S=I.useMemo(()=>({className:O.grouped,onChange:l?v:y,value:h,size:p,fullWidth:u,color:a,disabled:s}),[O.grouped,l,v,y,h,p,u,a,s]),k=sce(i),C=k.length,w=E=>{const $=E===0,P=E===C-1;return $&&P?"":$?O.firstButton:P?O.lastButton:O.middleButton};return N.jsx(ESe,L({role:"group",className:Ke(O.root,o),ref:n,ownerState:b},m,{children:N.jsx(iG.Provider,{value:S,children:k.map((E,$)=>N.jsx(oG.Provider,{value:w($),children:E},$))})}))}),TSe=SSe;var aG={exports:{}},sG={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -161,7 +161,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var J1=I;function wSe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kSe=typeof Object.is=="function"?Object.is:wSe,xSe=J1.useSyncExternalStore,CSe=J1.useRef,ASe=J1.useEffect,_Se=J1.useMemo,RSe=J1.useDebugValue;sG.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=CSe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=_Se(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return d=m}return d=h}if(m=d,kSe(c,h))return m;var b=r(h);return i!==void 0&&i(m,b)?m:(c=h,d=b)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=xSe(e,o[0],o[1]);return ASe(function(){a.hasValue=!0,a.value=s},[s]),RSe(s),s};aG.exports=sG;var ISe=aG.exports,ss="default"in Qm?Qt:Qm,s7=Symbol.for("react-redux-context"),l7=typeof globalThis<"u"?globalThis:{};function DSe(){if(!ss.createContext)return{};const e=l7[s7]??(l7[s7]=new Map);let t=e.get(ss.createContext);return t||(t=ss.createContext(null),e.set(ss.createContext,t)),t}var Qd=DSe(),NSe=()=>{throw new Error("uSES not initialized!")};function oP(e=Qd){return function(){return ss.useContext(e)}}var lG=oP(),uG=NSe,PSe=e=>{uG=e},LSe=(e,t)=>e===t;function MSe(e=Qd){const t=e===Qd?lG:oP(e),n=(r,i={})=>{const{equalityFn:o=LSe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();ss.useRef(!0);const p=ss.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,a.stabilityCheck]),h=uG(l.addNestedSub,s.getState,u||s.getState,p,o);return ss.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var Bl=MSe();function $Se(e){e()}function FSe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){$Se(()=>{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 u7={notify(){},get:()=>[]};function BSe(e,t){let n,r=u7,i=0,o=!1;function a(b){c();const O=r.subscribe(b);let y=!1;return()=>{y||(y=!0,O(),d())}}function s(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=FSe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=u7)}function p(){o||(o=!0,c())}function h(){o&&(o=!1,d())}const m={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return m}var USe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jSe=USe?ss.useLayoutEffect:ss.useEffect;function zSe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ss.useMemo(()=>{const u=BSe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ss.useMemo(()=>e.getState(),[e]);jSe(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||Qd;return ss.createElement(l.Provider,{value:a},n)}var VSe=zSe;function cG(e=Qd){const t=e===Qd?lG:oP(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var HSe=cG();function WSe(e=Qd){const t=e===Qd?HSe:cG(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Fp=WSe();PSe(ISe.useSyncExternalStoreWithSelector);/** + */var J1=I;function wSe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kSe=typeof Object.is=="function"?Object.is:wSe,xSe=J1.useSyncExternalStore,CSe=J1.useRef,ASe=J1.useEffect,_Se=J1.useMemo,RSe=J1.useDebugValue;sG.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=CSe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=_Se(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return d=m}return d=h}if(m=d,kSe(c,h))return m;var b=r(h);return i!==void 0&&i(m,b)?m:(c=h,d=b)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=xSe(e,o[0],o[1]);return ASe(function(){a.hasValue=!0,a.value=s},[s]),RSe(s),s};aG.exports=sG;var ISe=aG.exports,ss="default"in Qm?Qt:Qm,s7=Symbol.for("react-redux-context"),l7=typeof globalThis<"u"?globalThis:{};function NSe(){if(!ss.createContext)return{};const e=l7[s7]??(l7[s7]=new Map);let t=e.get(ss.createContext);return t||(t=ss.createContext(null),e.set(ss.createContext,t)),t}var Qd=NSe(),DSe=()=>{throw new Error("uSES not initialized!")};function oP(e=Qd){return function(){return ss.useContext(e)}}var lG=oP(),uG=DSe,PSe=e=>{uG=e},LSe=(e,t)=>e===t;function MSe(e=Qd){const t=e===Qd?lG:oP(e),n=(r,i={})=>{const{equalityFn:o=LSe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();ss.useRef(!0);const p=ss.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,a.stabilityCheck]),h=uG(l.addNestedSub,s.getState,u||s.getState,p,o);return ss.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var Bl=MSe();function $Se(e){e()}function FSe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){$Se(()=>{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 u7={notify(){},get:()=>[]};function BSe(e,t){let n,r=u7,i=0,o=!1;function a(b){c();const O=r.subscribe(b);let y=!1;return()=>{y||(y=!0,O(),d())}}function s(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=FSe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=u7)}function p(){o||(o=!0,c())}function h(){o&&(o=!1,d())}const m={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return m}var USe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jSe=USe?ss.useLayoutEffect:ss.useEffect;function zSe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ss.useMemo(()=>{const u=BSe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ss.useMemo(()=>e.getState(),[e]);jSe(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||Qd;return ss.createElement(l.Provider,{value:a},n)}var VSe=zSe;function cG(e=Qd){const t=e===Qd?lG:oP(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var HSe=cG();function WSe(e=Qd){const t=e===Qd?HSe:cG(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Fp=WSe();PSe(ISe.useSyncExternalStoreWithSelector);/** * @remix-run/router v1.14.2 * * Copyright (c) Remix Software Inc. @@ -170,8 +170,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function YSe(){return Math.random().toString(36).substr(2,8)}function d7(e,t){return{usr:e.state,key:e.key,idx:t}}function Dy(e,t,n,r){return n===void 0&&(n=null),li({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dc(t):t,{state:n,key:t&&t.key||r||YSe()})}function eO(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 Dc(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 GSe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=hi.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(li({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=hi.Pop;let O=c(),y=O==null?null:O-u;u=O,l&&l({action:s,location:b.location,delta:y})}function p(O,y){s=hi.Push;let v=Dy(b.location,O,y);n&&n(v,O),u=c()+1;let S=d7(v,u),k=b.createHref(v);try{a.pushState(S,"",k)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(k)}o&&l&&l({action:s,location:b.location,delta:1})}function h(O,y){s=hi.Replace;let v=Dy(b.location,O,y);n&&n(v,O),u=c();let S=d7(v,u),k=b.createHref(v);a.replaceState(S,"",k),o&&l&&l({action:s,location:b.location,delta:0})}function m(O){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof O=="string"?O:eO(O);return Bn(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let b={get action(){return s},get location(){return e(i,a)},listen(O){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(c7,d),l=O,()=>{i.removeEventListener(c7,d),l=null}},createHref(O){return t(i,O)},createURL:m,encodeLocation(O){let y=m(O);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(O){return a.go(O)}};return b}var ai;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ai||(ai={}));const qSe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ZSe(e){return e.index===!0}function G_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,o],s=typeof i.id=="string"?i.id:a.join("-");if(Bn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Bn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ZSe(i)){let l=li({},i,t(i),{id:s});return r[s]=l,l}else{let l=li({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=G_(i.children,t,a,r)),l}})}function Xh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Dc(t):t,i=tO(r.pathname||"/",n);if(i==null)return null;let o=dG(e);KSe(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Bn(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 u=Nd([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Bn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),dG(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:oTe(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of fG(o.path))i(o,a,l)}),t}function fG(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=fG(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function KSe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aTe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const JSe=/^:[\w-]+$/,eTe=3,tTe=2,nTe=1,rTe=10,iTe=-2,f7=e=>e==="*";function oTe(e,t){let n=e.split("/"),r=n.length;return n.some(f7)&&(r+=iTe),t&&(r+=tTe),n.filter(i=>!f7(i)).reduce((i,o)=>i+(JSe.test(o)?eTe:o===""?nTe:rTe),r)}function aTe(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 sTe(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:h}=c;if(p==="*"){let b=s[d]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?u[p]=void 0:u[p]=dTe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function uTe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tp(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,(a,s,l)=>(r.push({paramName:s,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 cTe(e){try{return decodeURI(e)}catch(t){return Tp(!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 dTe(e,t){try{return decodeURIComponent(e)}catch(n){return Tp(!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 tO(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 fTe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Dc(e):e;return{pathname:n?n.startsWith("/")?n:pTe(n,t):t,search:mTe(r),hash:gTe(i)}}function pTe(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 nA(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 pG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aP(e,t){let n=pG(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Dc(e):(i=li({},e),Bn(!i.pathname||!i.pathname.includes("?"),nA("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),nA("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),nA("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=fTe(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Nd=e=>e.join("/").replace(/\/\/+/g,"/"),hTe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mTe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gTe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class lP{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 uP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hG=["post","put","patch","delete"],bTe=new Set(hG),yTe=["get",...hG],OTe=new Set(yTe),vTe=new Set([301,302,303,307,308]),ETe=new Set([307,308]),rA={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},STe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},x0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},mG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TTe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),gG="remix-router-transitions";function wTe(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;Bn(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 Se=e.detectErrorBoundary;i=_e=>({hasErrorBoundary:Se(_e)})}else i=TTe;let o={},a=G_(e.routes,i,void 0,o),s,l=e.basename||"/",u=li({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,p=null,h=null,m=null,b=e.hydrationData!=null,O=Xh(a,e.history.location,l),y=null;if(O==null){let Se=Rs(404,{pathname:e.history.location.pathname}),{matches:_e,route:pe}=v7(a);O=_e,y={[pe.id]:Se}}let v,S=O.some(Se=>Se.route.lazy),k=O.some(Se=>Se.route.loader);if(S)v=!1;else if(!k)v=!0;else if(u.v7_partialHydration){let Se=e.hydrationData?e.hydrationData.loaderData:null,_e=e.hydrationData?e.hydrationData.errors:null;v=O.every(pe=>pe.route.loader&&pe.route.loader.hydrate!==!0&&(Se&&Se[pe.route.id]!==void 0||_e&&_e[pe.route.id]!==void 0))}else v=e.hydrationData!=null;let C,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:v,navigation:rA,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||y,fetchers:new Map,blockers:new Map},E=hi.Pop,$=!1,P,_=!1,B=new Map,U=null,V=!1,z=!1,W=[],X=[],q=new Map,Y=0,Z=-1,j=new Map,se=new Set,ve=new Map,G=new Map,ce=new Set,ge=new Map,ue=new Map,xe=!1;function Ne(){if(c=e.history.listen(Se=>{let{action:_e,location:pe,delta:lt}=Se;if(xe){xe=!1;return}Tp(ue.size===0||lt!=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 at=it({currentLocation:w.location,nextLocation:pe,historyAction:_e});if(at&<!=null){xe=!0,e.history.go(lt*-1),qe(at,{state:"blocked",location:pe,proceed(){qe(at,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),e.history.go(lt)},reset(){let Mt=new Map(w.blockers);Mt.set(at,x0),Me({blockers:Mt})}});return}return $e(_e,pe)}),n){LTe(t,B);let Se=()=>MTe(t,B);t.addEventListener("pagehide",Se),U=()=>t.removeEventListener("pagehide",Se)}return w.initialized||$e(hi.Pop,w.location,{initialHydration:!0}),C}function Ve(){c&&c(),U&&U(),d.clear(),P&&P.abort(),w.fetchers.forEach((Se,_e)=>de(_e)),w.blockers.forEach((Se,_e)=>vt(_e))}function Je(Se){return d.add(Se),()=>d.delete(Se)}function Me(Se,_e){_e===void 0&&(_e={}),w=li({},w,Se);let pe=[],lt=[];u.v7_fetcherPersist&&w.fetchers.forEach((at,Mt)=>{at.state==="idle"&&(ce.has(Mt)?lt.push(Mt):pe.push(Mt))}),[...d].forEach(at=>at(w,{deletedFetchers:lt,unstable_viewTransitionOpts:_e.viewTransitionOpts,unstable_flushSync:_e.flushSync===!0})),u.v7_fetcherPersist&&(pe.forEach(at=>w.fetchers.delete(at)),lt.forEach(at=>de(at)))}function Ge(Se,_e,pe){var lt,at;let{flushSync:Mt}=pe===void 0?{}:pe,$t=w.actionData!=null&&w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&w.navigation.state==="loading"&&((lt=Se.state)==null?void 0:lt._isRedirect)!==!0,It;_e.actionData?Object.keys(_e.actionData).length>0?It=_e.actionData:It=null:$t?It=w.actionData:It=null;let Ct=_e.loaderData?O7(w.loaderData,_e.loaderData,_e.matches||[],_e.errors):w.loaderData,Zt=w.blockers;Zt.size>0&&(Zt=new Map(Zt),Zt.forEach((Qe,ot)=>Zt.set(ot,x0)));let Ie=$===!0||w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&((at=Se.state)==null?void 0:at._isRedirect)!==!0;s&&(a=s,s=void 0),V||E===hi.Pop||(E===hi.Push?e.history.push(Se,Se.state):E===hi.Replace&&e.history.replace(Se,Se.state));let we;if(E===hi.Pop){let Qe=B.get(w.location.pathname);Qe&&Qe.has(Se.pathname)?we={currentLocation:w.location,nextLocation:Se}:B.has(Se.pathname)&&(we={currentLocation:Se,nextLocation:w.location})}else if(_){let Qe=B.get(w.location.pathname);Qe?Qe.add(Se.pathname):(Qe=new Set([Se.pathname]),B.set(w.location.pathname,Qe)),we={currentLocation:w.location,nextLocation:Se}}Me(li({},_e,{actionData:It,loaderData:Ct,historyAction:E,location:Se,initialized:!0,navigation:rA,revalidation:"idle",restoreScrollPosition:pn(Se,_e.matches||w.matches),preventScrollReset:Ie,blockers:Zt}),{viewTransitionOpts:we,flushSync:Mt===!0}),E=hi.Pop,$=!1,_=!1,V=!1,z=!1,W=[],X=[]}async function ye(Se,_e){if(typeof Se=="number"){e.history.go(Se);return}let pe=q_(w.location,w.matches,l,u.v7_prependBasename,Se,u.v7_relativeSplatPath,_e==null?void 0:_e.fromRouteId,_e==null?void 0:_e.relative),{path:lt,submission:at,error:Mt}=p7(u.v7_normalizeFormMethod,!1,pe,_e),$t=w.location,It=Dy(w.location,lt,_e&&_e.state);It=li({},It,e.history.encodeLocation(It));let Ct=_e&&_e.replace!=null?_e.replace:void 0,Zt=hi.Push;Ct===!0?Zt=hi.Replace:Ct===!1||at!=null&&hl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(Zt=hi.Replace);let Ie=_e&&"preventScrollReset"in _e?_e.preventScrollReset===!0:void 0,we=(_e&&_e.unstable_flushSync)===!0,Qe=it({currentLocation:$t,nextLocation:It,historyAction:Zt});if(Qe){qe(Qe,{state:"blocked",location:It,proceed(){qe(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:It}),ye(Se,_e)},reset(){let ot=new Map(w.blockers);ot.set(Qe,x0),Me({blockers:ot})}});return}return await $e(Zt,It,{submission:at,pendingError:Mt,preventScrollReset:Ie,replace:_e&&_e.replace,enableViewTransition:_e&&_e.unstable_viewTransition,flushSync:we})}function ze(){if(Le(),Me({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){$e(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}$e(E||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function $e(Se,_e,pe){P&&P.abort(),P=null,E=Se,V=(pe&&pe.startUninterruptedRevalidation)===!0,dn(w.location,w.matches),$=(pe&&pe.preventScrollReset)===!0,_=(pe&&pe.enableViewTransition)===!0;let lt=s||a,at=pe&&pe.overrideNavigation,Mt=Xh(lt,_e,l),$t=(pe&&pe.flushSync)===!0;if(!Mt){let ot=Rs(404,{pathname:_e.pathname}),{matches:rn,route:Wt}=v7(lt);Et(),Ge(_e,{matches:rn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&_Te(w.location,_e)&&!(pe&&pe.submission&&hl(pe.submission.formMethod))){Ge(_e,{matches:Mt},{flushSync:$t});return}P=new AbortController;let It=A0(e.history,_e,P.signal,pe&&pe.submission),Ct,Zt;if(pe&&pe.pendingError)Zt={[Pb(Mt).route.id]:pe.pendingError};else if(pe&&pe.submission&&hl(pe.submission.formMethod)){let ot=await We(It,_e,pe.submission,Mt,{replace:pe.replace,flushSync:$t});if(ot.shortCircuited)return;Ct=ot.pendingActionData,Zt=ot.pendingActionError,at=iA(_e,pe.submission),$t=!1,It=new Request(It.url,{signal:It.signal})}let{shortCircuited:Ie,loaderData:we,errors:Qe}=await dt(It,_e,Mt,at,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,$t,Ct,Zt);Ie||(P=null,Ge(_e,li({matches:Mt},Ct?{actionData:Ct}:{},{loaderData:we,errors:Qe})))}async function We(Se,_e,pe,lt,at){at===void 0&&(at={}),Le();let Mt=NTe(_e,pe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=X_(lt,_e);if(!It.route.action&&!It.route.lazy)$t={type:ai.error,error:Rs(405,{method:Se.method,pathname:_e.pathname,routeId:It.route.id})};else if($t=await C0("action",Se,It,lt,o,i,l,u.v7_relativeSplatPath),Se.signal.aborted)return{shortCircuited:!0};if(Wf($t)){let Ct;return at&&at.replace!=null?Ct=at.replace:Ct=$t.location===w.location.pathname+w.location.search,await J(w,$t,{submission:pe,replace:Ct}),{shortCircuited:!0}}if(Kh($t)){let Ct=Pb(lt,It.route.id);return(at&&at.replace)!==!0&&(E=hi.Push),{pendingActionData:{},pendingActionError:{[Ct.route.id]:$t.error}}}if(Hf($t))throw Rs(400,{type:"defer-action"});return{pendingActionData:{[It.route.id]:$t.data}}}async function dt(Se,_e,pe,lt,at,Mt,$t,It,Ct,Zt,Ie){let we=lt||iA(_e,at),Qe=at||Mt||T7(we),ot=s||a,[rn,Wt]=h7(e.history,w,pe,Qe,_e,u.v7_partialHydration&&It===!0,z,W,X,ce,ve,se,ot,l,Zt,Ie);if(Et(bn=>!(pe&&pe.some(Qn=>Qn.route.id===bn))||rn&&rn.some(Qn=>Qn.route.id===bn)),Z=++Y,rn.length===0&&Wt.length===0){let bn=pt();return Ge(_e,li({matches:pe,loaderData:{},errors:Ie||null},Zt?{actionData:Zt}:{},bn?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct}),{shortCircuited:!0}}if(!V&&(!u.v7_partialHydration||!It)){Wt.forEach(Qn=>{let Yn=w.fetchers.get(Qn.key),ht=_0(void 0,Yn?Yn.data:void 0);w.fetchers.set(Qn.key,ht)});let bn=Zt||w.actionData;Me(li({navigation:we},bn?Object.keys(bn).length===0?{actionData:null}:{actionData:bn}:{},Wt.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct})}Wt.forEach(bn=>{q.has(bn.key)&&Te(bn.key),bn.controller&&q.set(bn.key,bn.controller)});let mn=()=>Wt.forEach(bn=>Te(bn.key));P&&P.signal.addEventListener("abort",mn);let{results:nr,loaderResults:Ue,fetcherResults:Ce}=await Re(w.matches,pe,rn,Wt,Se);if(Se.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",mn),Wt.forEach(bn=>q.delete(bn.key));let gt=E7(nr);if(gt){if(gt.idx>=rn.length){let bn=Wt[gt.idx-rn.length].key;se.add(bn)}return await J(w,gt.result,{replace:$t}),{shortCircuited:!0}}let{loaderData:Dt,errors:tn}=y7(w,pe,rn,Ue,Ie,Wt,Ce,ge);ge.forEach((bn,Qn)=>{bn.subscribe(Yn=>{(Yn||bn.done)&&ge.delete(Qn)})});let Mn=pt(),Dn=xt(Z),Kt=Mn||Dn||Wt.length>0;return li({loaderData:Dt,errors:tn},Kt?{fetchers:new Map(w.fetchers)}:{})}function Be(Se,_e,pe,lt){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.");q.has(Se)&&Te(Se);let at=(lt&<.unstable_flushSync)===!0,Mt=s||a,$t=q_(w.location,w.matches,l,u.v7_prependBasename,pe,u.v7_relativeSplatPath,_e,lt==null?void 0:lt.relative),It=Xh(Mt,$t,l);if(!It){ie(Se,_e,Rs(404,{pathname:$t}),{flushSync:at});return}let{path:Ct,submission:Zt,error:Ie}=p7(u.v7_normalizeFormMethod,!0,$t,lt);if(Ie){ie(Se,_e,Ie,{flushSync:at});return}let we=X_(It,Ct);if($=(lt&<.preventScrollReset)===!0,Zt&&hl(Zt.formMethod)){re(Se,_e,Ct,we,It,at,Zt);return}ve.set(Se,{routeId:_e,path:Ct}),ee(Se,_e,Ct,we,It,at,Zt)}async function re(Se,_e,pe,lt,at,Mt,$t){if(Le(),ve.delete(Se),!lt.route.action&&!lt.route.lazy){let Qn=Rs(405,{method:$t.formMethod,pathname:pe,routeId:_e});ie(Se,_e,Qn,{flushSync:Mt});return}let It=w.fetchers.get(Se);De(Se,PTe($t,It),{flushSync:Mt});let Ct=new AbortController,Zt=A0(e.history,pe,Ct.signal,$t);q.set(Se,Ct);let Ie=Y,we=await C0("action",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Zt.signal.aborted){q.get(Se)===Ct&&q.delete(Se);return}if(u.v7_fetcherPersist&&ce.has(Se)){if(Wf(we)||Kh(we)){De(Se,Gc(void 0));return}}else{if(Wf(we))if(q.delete(Se),Z>Ie){De(Se,Gc(void 0));return}else return se.add(Se),De(Se,_0($t)),J(w,we,{fetcherSubmission:$t});if(Kh(we)){ie(Se,_e,we.error);return}}if(Hf(we))throw Rs(400,{type:"defer-action"});let Qe=w.navigation.location||w.location,ot=A0(e.history,Qe,Ct.signal),rn=s||a,Wt=w.navigation.state!=="idle"?Xh(rn,w.navigation.location,l):w.matches;Bn(Wt,"Didn't find any matches after fetcher action");let mn=++Y;j.set(Se,mn);let nr=_0($t,we.data);w.fetchers.set(Se,nr);let[Ue,Ce]=h7(e.history,w,Wt,$t,Qe,!1,z,W,X,ce,ve,se,rn,l,{[lt.route.id]:we.data},void 0);Ce.filter(Qn=>Qn.key!==Se).forEach(Qn=>{let Yn=Qn.key,ht=w.fetchers.get(Yn),Gr=_0(void 0,ht?ht.data:void 0);w.fetchers.set(Yn,Gr),q.has(Yn)&&Te(Yn),Qn.controller&&q.set(Yn,Qn.controller)}),Me({fetchers:new Map(w.fetchers)});let gt=()=>Ce.forEach(Qn=>Te(Qn.key));Ct.signal.addEventListener("abort",gt);let{results:Dt,loaderResults:tn,fetcherResults:Mn}=await Re(w.matches,Wt,Ue,Ce,ot);if(Ct.signal.aborted)return;Ct.signal.removeEventListener("abort",gt),j.delete(Se),q.delete(Se),Ce.forEach(Qn=>q.delete(Qn.key));let Dn=E7(Dt);if(Dn){if(Dn.idx>=Ue.length){let Qn=Ce[Dn.idx-Ue.length].key;se.add(Qn)}return J(w,Dn.result)}let{loaderData:Kt,errors:bn}=y7(w,w.matches,Ue,tn,void 0,Ce,Mn,ge);if(w.fetchers.has(Se)){let Qn=Gc(we.data);w.fetchers.set(Se,Qn)}xt(mn),w.navigation.state==="loading"&&mn>Z?(Bn(E,"Expected pending action"),P&&P.abort(),Ge(w.navigation.location,{matches:Wt,loaderData:Kt,errors:bn,fetchers:new Map(w.fetchers)})):(Me({errors:bn,loaderData:O7(w.loaderData,Kt,Wt,bn),fetchers:new Map(w.fetchers)}),z=!1)}async function ee(Se,_e,pe,lt,at,Mt,$t){let It=w.fetchers.get(Se);De(Se,_0($t,It?It.data:void 0),{flushSync:Mt});let Ct=new AbortController,Zt=A0(e.history,pe,Ct.signal);q.set(Se,Ct);let Ie=Y,we=await C0("loader",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Hf(we)&&(we=await OG(we,Zt.signal,!0)||we),q.get(Se)===Ct&&q.delete(Se),!Zt.signal.aborted){if(ce.has(Se)){De(Se,Gc(void 0));return}if(Wf(we))if(Z>Ie){De(Se,Gc(void 0));return}else{se.add(Se),await J(w,we);return}if(Kh(we)){ie(Se,_e,we.error);return}Bn(!Hf(we),"Unhandled fetcher deferred data"),De(Se,Gc(we.data))}}async function J(Se,_e,pe){let{submission:lt,fetcherSubmission:at,replace:Mt}=pe===void 0?{}:pe;_e.revalidate&&(z=!0);let $t=Dy(Se.location,_e.location,{_isRedirect:!0});if(Bn($t,"Expected a location on the redirect navigation"),n){let Qe=!1;if(_e.reloadDocument)Qe=!0;else if(mG.test(_e.location)){const ot=e.history.createURL(_e.location);Qe=ot.origin!==t.location.origin||tO(ot.pathname,l)==null}if(Qe){Mt?t.location.replace(_e.location):t.location.assign(_e.location);return}}P=null;let It=Mt===!0?hi.Replace:hi.Push,{formMethod:Ct,formAction:Zt,formEncType:Ie}=Se.navigation;!lt&&!at&&Ct&&Zt&&Ie&&(lt=T7(Se.navigation));let we=lt||at;if(ETe.has(_e.status)&&we&&hl(we.formMethod))await $e(It,$t,{submission:li({},we,{formAction:_e.location}),preventScrollReset:$});else{let Qe=iA($t,lt);await $e(It,$t,{overrideNavigation:Qe,fetcherSubmission:at,preventScrollReset:$})}}async function Re(Se,_e,pe,lt,at){let Mt=await Promise.all([...pe.map(Ct=>C0("loader",at,Ct,_e,o,i,l,u.v7_relativeSplatPath)),...lt.map(Ct=>Ct.matches&&Ct.match&&Ct.controller?C0("loader",A0(e.history,Ct.path,Ct.controller.signal),Ct.match,Ct.matches,o,i,l,u.v7_relativeSplatPath):{type:ai.error,error:Rs(404,{pathname:Ct.path})})]),$t=Mt.slice(0,pe.length),It=Mt.slice(pe.length);return await Promise.all([S7(Se,pe,$t,$t.map(()=>at.signal),!1,w.loaderData),S7(Se,lt.map(Ct=>Ct.match),It,lt.map(Ct=>Ct.controller?Ct.controller.signal:null),!0)]),{results:Mt,loaderResults:$t,fetcherResults:It}}function Le(){z=!0,W.push(...Et()),ve.forEach((Se,_e)=>{q.has(_e)&&(X.push(_e),Te(_e))})}function De(Se,_e,pe){pe===void 0&&(pe={}),w.fetchers.set(Se,_e),Me({fetchers:new Map(w.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function ie(Se,_e,pe,lt){lt===void 0&&(lt={});let at=Pb(w.matches,_e);de(Se),Me({errors:{[at.route.id]:pe},fetchers:new Map(w.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function fe(Se){return u.v7_fetcherPersist&&(G.set(Se,(G.get(Se)||0)+1),ce.has(Se)&&ce.delete(Se)),w.fetchers.get(Se)||STe}function de(Se){let _e=w.fetchers.get(Se);q.has(Se)&&!(_e&&_e.state==="loading"&&j.has(Se))&&Te(Se),ve.delete(Se),j.delete(Se),se.delete(Se),ce.delete(Se),w.fetchers.delete(Se)}function Oe(Se){if(u.v7_fetcherPersist){let _e=(G.get(Se)||0)-1;_e<=0?(G.delete(Se),ce.add(Se)):G.set(Se,_e)}else de(Se);Me({fetchers:new Map(w.fetchers)})}function Te(Se){let _e=q.get(Se);Bn(_e,"Expected fetch controller: "+Se),_e.abort(),q.delete(Se)}function rt(Se){for(let _e of Se){let pe=fe(_e),lt=Gc(pe.data);w.fetchers.set(_e,lt)}}function pt(){let Se=[],_e=!1;for(let pe of se){let lt=w.fetchers.get(pe);Bn(lt,"Expected fetcher: "+pe),lt.state==="loading"&&(se.delete(pe),Se.push(pe),_e=!0)}return rt(Se),_e}function xt(Se){let _e=[];for(let[pe,lt]of j)if(lt0}function et(Se,_e){let pe=w.blockers.get(Se)||x0;return ue.get(Se)!==_e&&ue.set(Se,_e),pe}function vt(Se){w.blockers.delete(Se),ue.delete(Se)}function qe(Se,_e){let pe=w.blockers.get(Se)||x0;Bn(pe.state==="unblocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="proceeding"||pe.state==="blocked"&&_e.state==="unblocked"||pe.state==="proceeding"&&_e.state==="unblocked","Invalid blocker state transition: "+pe.state+" -> "+_e.state);let lt=new Map(w.blockers);lt.set(Se,_e),Me({blockers:lt})}function it(Se){let{currentLocation:_e,nextLocation:pe,historyAction:lt}=Se;if(ue.size===0)return;ue.size>1&&Tp(!1,"A router only supports one blocker at a time");let at=Array.from(ue.entries()),[Mt,$t]=at[at.length-1],It=w.blockers.get(Mt);if(!(It&&It.state==="proceeding")&&$t({currentLocation:_e,nextLocation:pe,historyAction:lt}))return Mt}function Et(Se){let _e=[];return ge.forEach((pe,lt)=>{(!Se||Se(lt))&&(pe.cancel(),_e.push(lt),ge.delete(lt))}),_e}function Nt(Se,_e,pe){if(p=Se,m=_e,h=pe||null,!b&&w.navigation===rA){b=!0;let lt=pn(w.location,w.matches);lt!=null&&Me({restoreScrollPosition:lt})}return()=>{p=null,m=null,h=null}}function on(Se,_e){return h&&h(Se,_e.map(lt=>XSe(lt,w.loaderData)))||Se.key}function dn(Se,_e){if(p&&m){let pe=on(Se,_e);p[pe]=m()}}function pn(Se,_e){if(p){let pe=on(Se,_e),lt=p[pe];if(typeof lt=="number")return lt}return null}function zn(Se){o={},s=G_(Se,i,void 0,o)}return C={get basename(){return l},get future(){return u},get state(){return w},get routes(){return a},get window(){return t},initialize:Ne,subscribe:Je,enableScrollRestoration:Nt,navigate:ye,fetch:Be,revalidate:ze,createHref:Se=>e.history.createHref(Se),encodeLocation:Se=>e.history.encodeLocation(Se),getFetcher:fe,deleteFetcher:Oe,dispose:Ve,getBlocker:et,deleteBlocker:vt,_internalFetchControllers:q,_internalActiveDeferreds:ge,_internalSetRoutes:zn},C}function kTe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function q_(e,t,n,r,i,o,a,s){let l,u;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){u=d;break}}else l=t,u=t[t.length-1];let c=sP(i||".",aP(l,o),tO(e.pathname,n)||e.pathname,s==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!cP(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Nd([n,c.pathname])),eO(c)}function p7(e,t,n,r){if(!r||!kTe(r))return{path:n};if(r.formMethod&&!DTe(r.formMethod))return{path:n,error:Rs(405,{method:r.formMethod})};let i=()=>({path:n,error:Rs(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=yG(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!hl(a))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[b,O]=m;return""+h+b+"="+O+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!hl(a))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Bn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=Z_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Z_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=b7(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=b7(l)}catch{return i()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(hl(c.formMethod))return{path:n,submission:c};let d=Dc(n);return t&&d.search&&cP(d.search)&&l.append("index",""),d.search="?"+l,{path:eO(d),submission:c}}function xTe(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 h7(e,t,n,r,i,o,a,s,l,u,c,d,p,h,m,b){let O=b?Object.values(b)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),v=e.createURL(i),S=b?Object.keys(b)[0]:void 0,C=xTe(n,S).filter((E,$)=>{let{route:P}=E;if(P.lazy)return!0;if(P.loader==null)return!1;if(o)return P.loader.hydrate?!0:t.loaderData[P.id]===void 0&&(!t.errors||t.errors[P.id]===void 0);if(CTe(t.loaderData,t.matches[$],E)||s.some(U=>U===E.route.id))return!0;let _=t.matches[$],B=E;return m7(E,li({currentUrl:y,currentParams:_.params,nextUrl:v,nextParams:B.params},r,{actionResult:O,defaultShouldRevalidate:a||y.pathname+y.search===v.pathname+v.search||y.search!==v.search||bG(_,B)}))}),w=[];return c.forEach((E,$)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has($))return;let P=Xh(p,E.path,h);if(!P){w.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let _=t.fetchers.get($),B=X_(P,E.path),U=!1;d.has($)?U=!1:l.includes($)?U=!0:_&&_.state!=="idle"&&_.data===void 0?U=a:U=m7(B,li({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:O,defaultShouldRevalidate:a})),U&&w.push({key:$,routeId:E.routeId,path:E.path,matches:P,match:B,controller:new AbortController})}),[C,w]}function CTe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function bG(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function m7(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function g7(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Bn(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";Tp(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!qSe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,li({},t(i),{lazy:void 0}))}async function C0(e,t,n,r,i,o,a,s,l){l===void 0&&(l={});let u,c,d,p=b=>{let O,y=new Promise((v,S)=>O=S);return d=()=>O(),t.signal.addEventListener("abort",d),Promise.race([b({request:t,params:n.params,context:l.requestContext}),y])};try{let b=n.route[e];if(n.route.lazy)if(b){let O,y=await Promise.all([p(b).catch(v=>{O=v}),g7(n.route,o,i)]);if(O)throw O;c=y[0]}else if(await g7(n.route,o,i),b=n.route[e],b)c=await p(b);else if(e==="action"){let O=new URL(t.url),y=O.pathname+O.search;throw Rs(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:ai.data,data:void 0};else if(b)c=await p(b);else{let O=new URL(t.url),y=O.pathname+O.search;throw Rs(404,{pathname:y})}Bn(c!==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(b){u=ai.error,c=b}finally{d&&t.signal.removeEventListener("abort",d)}if(ITe(c)){let b=c.status;if(vTe.has(b)){let y=c.headers.get("Location");if(Bn(y,"Redirects returned/thrown from loaders/actions must have a Location header"),!mG.test(y))y=q_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,y,s);else if(!l.isStaticRequest){let v=new URL(t.url),S=y.startsWith("//")?new URL(v.protocol+y):new URL(y),k=tO(S.pathname,a)!=null;S.origin===v.origin&&k&&(y=S.pathname+S.search+S.hash)}if(l.isStaticRequest)throw c.headers.set("Location",y),c;return{type:ai.redirect,status:b,location:y,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===ai.error?ai.error:ai.data,response:c};let O;try{let y=c.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?c.body==null?O=null:O=await c.json():O=await c.text()}catch(y){return{type:ai.error,error:y}}return u===ai.error?{type:u,error:new lP(b,c.statusText,O),headers:c.headers}:{type:ai.data,data:O,statusCode:c.status,headers:c.headers}}if(u===ai.error)return{type:u,error:c};if(RTe(c)){var h,m;return{type:ai.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((m=c.init)==null?void 0:m.headers)&&new Headers(c.init.headers)}}return{type:ai.data,data:c}}function A0(e,t,n,r){let i=e.createURL(yG(t)).toString(),o={signal:n};if(r&&hl(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=Z_(r.formData):o.body=r.formData}return new Request(i,o)}function Z_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function b7(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ATe(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(Bn(!Wf(c),"Cannot handle redirect results in processLoaderData"),Kh(c)){let h=Pb(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[h.route.id]==null&&(a[h.route.id]=m),o[p]=void 0,l||(l=!0,s=uP(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else Hf(c)?(i.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function y7(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=ATe(t,n,r,i,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function v7(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 Rs(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?s="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.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="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&&(s='Invalid request method "'+i.toUpperCase()+'"')),new lP(e||500,a,new Error(s),!0)}function E7(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Wf(n))return{result:n,idx:t}}}function yG(e){let t=typeof e=="string"?Dc(e):e;return eO(li({},t,{hash:""}))}function _Te(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Hf(e){return e.type===ai.deferred}function Kh(e){return e.type===ai.error}function Wf(e){return(e&&e.type)===ai.redirect}function RTe(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 ITe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function DTe(e){return OTe.has(e.toLowerCase())}function hl(e){return bTe.has(e.toLowerCase())}async function S7(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!bG(u,l)&&(o&&o[l.route.id])!==void 0;if(Hf(s)&&(i||c)){let d=r[a];Bn(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await OG(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function OG(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ai.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ai.error,error:i}}return{type:ai.data,data:e.deferredData.data}}}function cP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function X_(e,t){let n=typeof t=="string"?Dc(t).search:t.search;if(e[e.length-1].route.index&&cP(n||""))return e[e.length-1];let r=pG(e);return r[r.length-1]}function T7(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function iA(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 NTe(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 _0(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 PTe(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 Gc(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 LTe(e,t){try{let n=e.sessionStorage.getItem(gG);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function MTe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(gG,JSON.stringify(n))}catch(r){Tp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function YSe(){return Math.random().toString(36).substr(2,8)}function d7(e,t){return{usr:e.state,key:e.key,idx:t}}function Ny(e,t,n,r){return n===void 0&&(n=null),li({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nc(t):t,{state:n,key:t&&t.key||r||YSe()})}function eO(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 Nc(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 GSe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=hi.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(li({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=hi.Pop;let O=c(),y=O==null?null:O-u;u=O,l&&l({action:s,location:b.location,delta:y})}function p(O,y){s=hi.Push;let v=Ny(b.location,O,y);n&&n(v,O),u=c()+1;let S=d7(v,u),k=b.createHref(v);try{a.pushState(S,"",k)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(k)}o&&l&&l({action:s,location:b.location,delta:1})}function h(O,y){s=hi.Replace;let v=Ny(b.location,O,y);n&&n(v,O),u=c();let S=d7(v,u),k=b.createHref(v);a.replaceState(S,"",k),o&&l&&l({action:s,location:b.location,delta:0})}function m(O){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof O=="string"?O:eO(O);return Bn(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let b={get action(){return s},get location(){return e(i,a)},listen(O){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(c7,d),l=O,()=>{i.removeEventListener(c7,d),l=null}},createHref(O){return t(i,O)},createURL:m,encodeLocation(O){let y=m(O);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(O){return a.go(O)}};return b}var ai;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ai||(ai={}));const qSe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ZSe(e){return e.index===!0}function G_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,o],s=typeof i.id=="string"?i.id:a.join("-");if(Bn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Bn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ZSe(i)){let l=li({},i,t(i),{id:s});return r[s]=l,l}else{let l=li({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=G_(i.children,t,a,r)),l}})}function Xh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Nc(t):t,i=tO(r.pathname||"/",n);if(i==null)return null;let o=dG(e);KSe(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Bn(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 u=Dd([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Bn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),dG(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:oTe(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of fG(o.path))i(o,a,l)}),t}function fG(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=fG(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function KSe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aTe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const JSe=/^:[\w-]+$/,eTe=3,tTe=2,nTe=1,rTe=10,iTe=-2,f7=e=>e==="*";function oTe(e,t){let n=e.split("/"),r=n.length;return n.some(f7)&&(r+=iTe),t&&(r+=tTe),n.filter(i=>!f7(i)).reduce((i,o)=>i+(JSe.test(o)?eTe:o===""?nTe:rTe),r)}function aTe(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 sTe(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:h}=c;if(p==="*"){let b=s[d]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?u[p]=void 0:u[p]=dTe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function uTe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tp(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,(a,s,l)=>(r.push({paramName:s,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 cTe(e){try{return decodeURI(e)}catch(t){return Tp(!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 dTe(e,t){try{return decodeURIComponent(e)}catch(n){return Tp(!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 tO(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 fTe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Nc(e):e;return{pathname:n?n.startsWith("/")?n:pTe(n,t):t,search:mTe(r),hash:gTe(i)}}function pTe(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 nA(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 pG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aP(e,t){let n=pG(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Nc(e):(i=li({},e),Bn(!i.pathname||!i.pathname.includes("?"),nA("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),nA("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),nA("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=fTe(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Dd=e=>e.join("/").replace(/\/\/+/g,"/"),hTe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mTe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gTe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class lP{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 uP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hG=["post","put","patch","delete"],bTe=new Set(hG),yTe=["get",...hG],OTe=new Set(yTe),vTe=new Set([301,302,303,307,308]),ETe=new Set([307,308]),rA={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},STe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},x0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},mG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TTe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),gG="remix-router-transitions";function wTe(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;Bn(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 Se=e.detectErrorBoundary;i=_e=>({hasErrorBoundary:Se(_e)})}else i=TTe;let o={},a=G_(e.routes,i,void 0,o),s,l=e.basename||"/",u=li({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,p=null,h=null,m=null,b=e.hydrationData!=null,O=Xh(a,e.history.location,l),y=null;if(O==null){let Se=Rs(404,{pathname:e.history.location.pathname}),{matches:_e,route:pe}=v7(a);O=_e,y={[pe.id]:Se}}let v,S=O.some(Se=>Se.route.lazy),k=O.some(Se=>Se.route.loader);if(S)v=!1;else if(!k)v=!0;else if(u.v7_partialHydration){let Se=e.hydrationData?e.hydrationData.loaderData:null,_e=e.hydrationData?e.hydrationData.errors:null;v=O.every(pe=>pe.route.loader&&pe.route.loader.hydrate!==!0&&(Se&&Se[pe.route.id]!==void 0||_e&&_e[pe.route.id]!==void 0))}else v=e.hydrationData!=null;let C,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:v,navigation:rA,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||y,fetchers:new Map,blockers:new Map},E=hi.Pop,$=!1,P,_=!1,B=new Map,U=null,V=!1,z=!1,W=[],X=[],q=new Map,Y=0,Z=-1,j=new Map,se=new Set,ve=new Map,G=new Map,ce=new Set,ge=new Map,ue=new Map,xe=!1;function De(){if(c=e.history.listen(Se=>{let{action:_e,location:pe,delta:lt}=Se;if(xe){xe=!1;return}Tp(ue.size===0||lt!=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 at=it({currentLocation:w.location,nextLocation:pe,historyAction:_e});if(at&<!=null){xe=!0,e.history.go(lt*-1),qe(at,{state:"blocked",location:pe,proceed(){qe(at,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),e.history.go(lt)},reset(){let Mt=new Map(w.blockers);Mt.set(at,x0),Me({blockers:Mt})}});return}return $e(_e,pe)}),n){LTe(t,B);let Se=()=>MTe(t,B);t.addEventListener("pagehide",Se),U=()=>t.removeEventListener("pagehide",Se)}return w.initialized||$e(hi.Pop,w.location,{initialHydration:!0}),C}function Ve(){c&&c(),U&&U(),d.clear(),P&&P.abort(),w.fetchers.forEach((Se,_e)=>de(_e)),w.blockers.forEach((Se,_e)=>vt(_e))}function Je(Se){return d.add(Se),()=>d.delete(Se)}function Me(Se,_e){_e===void 0&&(_e={}),w=li({},w,Se);let pe=[],lt=[];u.v7_fetcherPersist&&w.fetchers.forEach((at,Mt)=>{at.state==="idle"&&(ce.has(Mt)?lt.push(Mt):pe.push(Mt))}),[...d].forEach(at=>at(w,{deletedFetchers:lt,unstable_viewTransitionOpts:_e.viewTransitionOpts,unstable_flushSync:_e.flushSync===!0})),u.v7_fetcherPersist&&(pe.forEach(at=>w.fetchers.delete(at)),lt.forEach(at=>de(at)))}function Ge(Se,_e,pe){var lt,at;let{flushSync:Mt}=pe===void 0?{}:pe,$t=w.actionData!=null&&w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&w.navigation.state==="loading"&&((lt=Se.state)==null?void 0:lt._isRedirect)!==!0,It;_e.actionData?Object.keys(_e.actionData).length>0?It=_e.actionData:It=null:$t?It=w.actionData:It=null;let Ct=_e.loaderData?O7(w.loaderData,_e.loaderData,_e.matches||[],_e.errors):w.loaderData,Zt=w.blockers;Zt.size>0&&(Zt=new Map(Zt),Zt.forEach((Qe,ot)=>Zt.set(ot,x0)));let Ie=$===!0||w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&((at=Se.state)==null?void 0:at._isRedirect)!==!0;s&&(a=s,s=void 0),V||E===hi.Pop||(E===hi.Push?e.history.push(Se,Se.state):E===hi.Replace&&e.history.replace(Se,Se.state));let we;if(E===hi.Pop){let Qe=B.get(w.location.pathname);Qe&&Qe.has(Se.pathname)?we={currentLocation:w.location,nextLocation:Se}:B.has(Se.pathname)&&(we={currentLocation:Se,nextLocation:w.location})}else if(_){let Qe=B.get(w.location.pathname);Qe?Qe.add(Se.pathname):(Qe=new Set([Se.pathname]),B.set(w.location.pathname,Qe)),we={currentLocation:w.location,nextLocation:Se}}Me(li({},_e,{actionData:It,loaderData:Ct,historyAction:E,location:Se,initialized:!0,navigation:rA,revalidation:"idle",restoreScrollPosition:pn(Se,_e.matches||w.matches),preventScrollReset:Ie,blockers:Zt}),{viewTransitionOpts:we,flushSync:Mt===!0}),E=hi.Pop,$=!1,_=!1,V=!1,z=!1,W=[],X=[]}async function ye(Se,_e){if(typeof Se=="number"){e.history.go(Se);return}let pe=q_(w.location,w.matches,l,u.v7_prependBasename,Se,u.v7_relativeSplatPath,_e==null?void 0:_e.fromRouteId,_e==null?void 0:_e.relative),{path:lt,submission:at,error:Mt}=p7(u.v7_normalizeFormMethod,!1,pe,_e),$t=w.location,It=Ny(w.location,lt,_e&&_e.state);It=li({},It,e.history.encodeLocation(It));let Ct=_e&&_e.replace!=null?_e.replace:void 0,Zt=hi.Push;Ct===!0?Zt=hi.Replace:Ct===!1||at!=null&&hl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(Zt=hi.Replace);let Ie=_e&&"preventScrollReset"in _e?_e.preventScrollReset===!0:void 0,we=(_e&&_e.unstable_flushSync)===!0,Qe=it({currentLocation:$t,nextLocation:It,historyAction:Zt});if(Qe){qe(Qe,{state:"blocked",location:It,proceed(){qe(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:It}),ye(Se,_e)},reset(){let ot=new Map(w.blockers);ot.set(Qe,x0),Me({blockers:ot})}});return}return await $e(Zt,It,{submission:at,pendingError:Mt,preventScrollReset:Ie,replace:_e&&_e.replace,enableViewTransition:_e&&_e.unstable_viewTransition,flushSync:we})}function ze(){if(Le(),Me({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){$e(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}$e(E||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function $e(Se,_e,pe){P&&P.abort(),P=null,E=Se,V=(pe&&pe.startUninterruptedRevalidation)===!0,dn(w.location,w.matches),$=(pe&&pe.preventScrollReset)===!0,_=(pe&&pe.enableViewTransition)===!0;let lt=s||a,at=pe&&pe.overrideNavigation,Mt=Xh(lt,_e,l),$t=(pe&&pe.flushSync)===!0;if(!Mt){let ot=Rs(404,{pathname:_e.pathname}),{matches:rn,route:Wt}=v7(lt);Et(),Ge(_e,{matches:rn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&_Te(w.location,_e)&&!(pe&&pe.submission&&hl(pe.submission.formMethod))){Ge(_e,{matches:Mt},{flushSync:$t});return}P=new AbortController;let It=A0(e.history,_e,P.signal,pe&&pe.submission),Ct,Zt;if(pe&&pe.pendingError)Zt={[Pb(Mt).route.id]:pe.pendingError};else if(pe&&pe.submission&&hl(pe.submission.formMethod)){let ot=await We(It,_e,pe.submission,Mt,{replace:pe.replace,flushSync:$t});if(ot.shortCircuited)return;Ct=ot.pendingActionData,Zt=ot.pendingActionError,at=iA(_e,pe.submission),$t=!1,It=new Request(It.url,{signal:It.signal})}let{shortCircuited:Ie,loaderData:we,errors:Qe}=await dt(It,_e,Mt,at,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,$t,Ct,Zt);Ie||(P=null,Ge(_e,li({matches:Mt},Ct?{actionData:Ct}:{},{loaderData:we,errors:Qe})))}async function We(Se,_e,pe,lt,at){at===void 0&&(at={}),Le();let Mt=DTe(_e,pe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=X_(lt,_e);if(!It.route.action&&!It.route.lazy)$t={type:ai.error,error:Rs(405,{method:Se.method,pathname:_e.pathname,routeId:It.route.id})};else if($t=await C0("action",Se,It,lt,o,i,l,u.v7_relativeSplatPath),Se.signal.aborted)return{shortCircuited:!0};if(Wf($t)){let Ct;return at&&at.replace!=null?Ct=at.replace:Ct=$t.location===w.location.pathname+w.location.search,await J(w,$t,{submission:pe,replace:Ct}),{shortCircuited:!0}}if(Kh($t)){let Ct=Pb(lt,It.route.id);return(at&&at.replace)!==!0&&(E=hi.Push),{pendingActionData:{},pendingActionError:{[Ct.route.id]:$t.error}}}if(Hf($t))throw Rs(400,{type:"defer-action"});return{pendingActionData:{[It.route.id]:$t.data}}}async function dt(Se,_e,pe,lt,at,Mt,$t,It,Ct,Zt,Ie){let we=lt||iA(_e,at),Qe=at||Mt||T7(we),ot=s||a,[rn,Wt]=h7(e.history,w,pe,Qe,_e,u.v7_partialHydration&&It===!0,z,W,X,ce,ve,se,ot,l,Zt,Ie);if(Et(bn=>!(pe&&pe.some(Qn=>Qn.route.id===bn))||rn&&rn.some(Qn=>Qn.route.id===bn)),Z=++Y,rn.length===0&&Wt.length===0){let bn=pt();return Ge(_e,li({matches:pe,loaderData:{},errors:Ie||null},Zt?{actionData:Zt}:{},bn?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct}),{shortCircuited:!0}}if(!V&&(!u.v7_partialHydration||!It)){Wt.forEach(Qn=>{let Yn=w.fetchers.get(Qn.key),ht=_0(void 0,Yn?Yn.data:void 0);w.fetchers.set(Qn.key,ht)});let bn=Zt||w.actionData;Me(li({navigation:we},bn?Object.keys(bn).length===0?{actionData:null}:{actionData:bn}:{},Wt.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct})}Wt.forEach(bn=>{q.has(bn.key)&&Te(bn.key),bn.controller&&q.set(bn.key,bn.controller)});let mn=()=>Wt.forEach(bn=>Te(bn.key));P&&P.signal.addEventListener("abort",mn);let{results:nr,loaderResults:Ue,fetcherResults:Ce}=await Re(w.matches,pe,rn,Wt,Se);if(Se.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",mn),Wt.forEach(bn=>q.delete(bn.key));let gt=E7(nr);if(gt){if(gt.idx>=rn.length){let bn=Wt[gt.idx-rn.length].key;se.add(bn)}return await J(w,gt.result,{replace:$t}),{shortCircuited:!0}}let{loaderData:Nt,errors:tn}=y7(w,pe,rn,Ue,Ie,Wt,Ce,ge);ge.forEach((bn,Qn)=>{bn.subscribe(Yn=>{(Yn||bn.done)&&ge.delete(Qn)})});let Mn=pt(),Nn=xt(Z),Kt=Mn||Nn||Wt.length>0;return li({loaderData:Nt,errors:tn},Kt?{fetchers:new Map(w.fetchers)}:{})}function Be(Se,_e,pe,lt){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.");q.has(Se)&&Te(Se);let at=(lt&<.unstable_flushSync)===!0,Mt=s||a,$t=q_(w.location,w.matches,l,u.v7_prependBasename,pe,u.v7_relativeSplatPath,_e,lt==null?void 0:lt.relative),It=Xh(Mt,$t,l);if(!It){ie(Se,_e,Rs(404,{pathname:$t}),{flushSync:at});return}let{path:Ct,submission:Zt,error:Ie}=p7(u.v7_normalizeFormMethod,!0,$t,lt);if(Ie){ie(Se,_e,Ie,{flushSync:at});return}let we=X_(It,Ct);if($=(lt&<.preventScrollReset)===!0,Zt&&hl(Zt.formMethod)){re(Se,_e,Ct,we,It,at,Zt);return}ve.set(Se,{routeId:_e,path:Ct}),ee(Se,_e,Ct,we,It,at,Zt)}async function re(Se,_e,pe,lt,at,Mt,$t){if(Le(),ve.delete(Se),!lt.route.action&&!lt.route.lazy){let Qn=Rs(405,{method:$t.formMethod,pathname:pe,routeId:_e});ie(Se,_e,Qn,{flushSync:Mt});return}let It=w.fetchers.get(Se);Ne(Se,PTe($t,It),{flushSync:Mt});let Ct=new AbortController,Zt=A0(e.history,pe,Ct.signal,$t);q.set(Se,Ct);let Ie=Y,we=await C0("action",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Zt.signal.aborted){q.get(Se)===Ct&&q.delete(Se);return}if(u.v7_fetcherPersist&&ce.has(Se)){if(Wf(we)||Kh(we)){Ne(Se,Gc(void 0));return}}else{if(Wf(we))if(q.delete(Se),Z>Ie){Ne(Se,Gc(void 0));return}else return se.add(Se),Ne(Se,_0($t)),J(w,we,{fetcherSubmission:$t});if(Kh(we)){ie(Se,_e,we.error);return}}if(Hf(we))throw Rs(400,{type:"defer-action"});let Qe=w.navigation.location||w.location,ot=A0(e.history,Qe,Ct.signal),rn=s||a,Wt=w.navigation.state!=="idle"?Xh(rn,w.navigation.location,l):w.matches;Bn(Wt,"Didn't find any matches after fetcher action");let mn=++Y;j.set(Se,mn);let nr=_0($t,we.data);w.fetchers.set(Se,nr);let[Ue,Ce]=h7(e.history,w,Wt,$t,Qe,!1,z,W,X,ce,ve,se,rn,l,{[lt.route.id]:we.data},void 0);Ce.filter(Qn=>Qn.key!==Se).forEach(Qn=>{let Yn=Qn.key,ht=w.fetchers.get(Yn),Gr=_0(void 0,ht?ht.data:void 0);w.fetchers.set(Yn,Gr),q.has(Yn)&&Te(Yn),Qn.controller&&q.set(Yn,Qn.controller)}),Me({fetchers:new Map(w.fetchers)});let gt=()=>Ce.forEach(Qn=>Te(Qn.key));Ct.signal.addEventListener("abort",gt);let{results:Nt,loaderResults:tn,fetcherResults:Mn}=await Re(w.matches,Wt,Ue,Ce,ot);if(Ct.signal.aborted)return;Ct.signal.removeEventListener("abort",gt),j.delete(Se),q.delete(Se),Ce.forEach(Qn=>q.delete(Qn.key));let Nn=E7(Nt);if(Nn){if(Nn.idx>=Ue.length){let Qn=Ce[Nn.idx-Ue.length].key;se.add(Qn)}return J(w,Nn.result)}let{loaderData:Kt,errors:bn}=y7(w,w.matches,Ue,tn,void 0,Ce,Mn,ge);if(w.fetchers.has(Se)){let Qn=Gc(we.data);w.fetchers.set(Se,Qn)}xt(mn),w.navigation.state==="loading"&&mn>Z?(Bn(E,"Expected pending action"),P&&P.abort(),Ge(w.navigation.location,{matches:Wt,loaderData:Kt,errors:bn,fetchers:new Map(w.fetchers)})):(Me({errors:bn,loaderData:O7(w.loaderData,Kt,Wt,bn),fetchers:new Map(w.fetchers)}),z=!1)}async function ee(Se,_e,pe,lt,at,Mt,$t){let It=w.fetchers.get(Se);Ne(Se,_0($t,It?It.data:void 0),{flushSync:Mt});let Ct=new AbortController,Zt=A0(e.history,pe,Ct.signal);q.set(Se,Ct);let Ie=Y,we=await C0("loader",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Hf(we)&&(we=await OG(we,Zt.signal,!0)||we),q.get(Se)===Ct&&q.delete(Se),!Zt.signal.aborted){if(ce.has(Se)){Ne(Se,Gc(void 0));return}if(Wf(we))if(Z>Ie){Ne(Se,Gc(void 0));return}else{se.add(Se),await J(w,we);return}if(Kh(we)){ie(Se,_e,we.error);return}Bn(!Hf(we),"Unhandled fetcher deferred data"),Ne(Se,Gc(we.data))}}async function J(Se,_e,pe){let{submission:lt,fetcherSubmission:at,replace:Mt}=pe===void 0?{}:pe;_e.revalidate&&(z=!0);let $t=Ny(Se.location,_e.location,{_isRedirect:!0});if(Bn($t,"Expected a location on the redirect navigation"),n){let Qe=!1;if(_e.reloadDocument)Qe=!0;else if(mG.test(_e.location)){const ot=e.history.createURL(_e.location);Qe=ot.origin!==t.location.origin||tO(ot.pathname,l)==null}if(Qe){Mt?t.location.replace(_e.location):t.location.assign(_e.location);return}}P=null;let It=Mt===!0?hi.Replace:hi.Push,{formMethod:Ct,formAction:Zt,formEncType:Ie}=Se.navigation;!lt&&!at&&Ct&&Zt&&Ie&&(lt=T7(Se.navigation));let we=lt||at;if(ETe.has(_e.status)&&we&&hl(we.formMethod))await $e(It,$t,{submission:li({},we,{formAction:_e.location}),preventScrollReset:$});else{let Qe=iA($t,lt);await $e(It,$t,{overrideNavigation:Qe,fetcherSubmission:at,preventScrollReset:$})}}async function Re(Se,_e,pe,lt,at){let Mt=await Promise.all([...pe.map(Ct=>C0("loader",at,Ct,_e,o,i,l,u.v7_relativeSplatPath)),...lt.map(Ct=>Ct.matches&&Ct.match&&Ct.controller?C0("loader",A0(e.history,Ct.path,Ct.controller.signal),Ct.match,Ct.matches,o,i,l,u.v7_relativeSplatPath):{type:ai.error,error:Rs(404,{pathname:Ct.path})})]),$t=Mt.slice(0,pe.length),It=Mt.slice(pe.length);return await Promise.all([S7(Se,pe,$t,$t.map(()=>at.signal),!1,w.loaderData),S7(Se,lt.map(Ct=>Ct.match),It,lt.map(Ct=>Ct.controller?Ct.controller.signal:null),!0)]),{results:Mt,loaderResults:$t,fetcherResults:It}}function Le(){z=!0,W.push(...Et()),ve.forEach((Se,_e)=>{q.has(_e)&&(X.push(_e),Te(_e))})}function Ne(Se,_e,pe){pe===void 0&&(pe={}),w.fetchers.set(Se,_e),Me({fetchers:new Map(w.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function ie(Se,_e,pe,lt){lt===void 0&&(lt={});let at=Pb(w.matches,_e);de(Se),Me({errors:{[at.route.id]:pe},fetchers:new Map(w.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function fe(Se){return u.v7_fetcherPersist&&(G.set(Se,(G.get(Se)||0)+1),ce.has(Se)&&ce.delete(Se)),w.fetchers.get(Se)||STe}function de(Se){let _e=w.fetchers.get(Se);q.has(Se)&&!(_e&&_e.state==="loading"&&j.has(Se))&&Te(Se),ve.delete(Se),j.delete(Se),se.delete(Se),ce.delete(Se),w.fetchers.delete(Se)}function Oe(Se){if(u.v7_fetcherPersist){let _e=(G.get(Se)||0)-1;_e<=0?(G.delete(Se),ce.add(Se)):G.set(Se,_e)}else de(Se);Me({fetchers:new Map(w.fetchers)})}function Te(Se){let _e=q.get(Se);Bn(_e,"Expected fetch controller: "+Se),_e.abort(),q.delete(Se)}function rt(Se){for(let _e of Se){let pe=fe(_e),lt=Gc(pe.data);w.fetchers.set(_e,lt)}}function pt(){let Se=[],_e=!1;for(let pe of se){let lt=w.fetchers.get(pe);Bn(lt,"Expected fetcher: "+pe),lt.state==="loading"&&(se.delete(pe),Se.push(pe),_e=!0)}return rt(Se),_e}function xt(Se){let _e=[];for(let[pe,lt]of j)if(lt0}function et(Se,_e){let pe=w.blockers.get(Se)||x0;return ue.get(Se)!==_e&&ue.set(Se,_e),pe}function vt(Se){w.blockers.delete(Se),ue.delete(Se)}function qe(Se,_e){let pe=w.blockers.get(Se)||x0;Bn(pe.state==="unblocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="proceeding"||pe.state==="blocked"&&_e.state==="unblocked"||pe.state==="proceeding"&&_e.state==="unblocked","Invalid blocker state transition: "+pe.state+" -> "+_e.state);let lt=new Map(w.blockers);lt.set(Se,_e),Me({blockers:lt})}function it(Se){let{currentLocation:_e,nextLocation:pe,historyAction:lt}=Se;if(ue.size===0)return;ue.size>1&&Tp(!1,"A router only supports one blocker at a time");let at=Array.from(ue.entries()),[Mt,$t]=at[at.length-1],It=w.blockers.get(Mt);if(!(It&&It.state==="proceeding")&&$t({currentLocation:_e,nextLocation:pe,historyAction:lt}))return Mt}function Et(Se){let _e=[];return ge.forEach((pe,lt)=>{(!Se||Se(lt))&&(pe.cancel(),_e.push(lt),ge.delete(lt))}),_e}function Dt(Se,_e,pe){if(p=Se,m=_e,h=pe||null,!b&&w.navigation===rA){b=!0;let lt=pn(w.location,w.matches);lt!=null&&Me({restoreScrollPosition:lt})}return()=>{p=null,m=null,h=null}}function on(Se,_e){return h&&h(Se,_e.map(lt=>XSe(lt,w.loaderData)))||Se.key}function dn(Se,_e){if(p&&m){let pe=on(Se,_e);p[pe]=m()}}function pn(Se,_e){if(p){let pe=on(Se,_e),lt=p[pe];if(typeof lt=="number")return lt}return null}function zn(Se){o={},s=G_(Se,i,void 0,o)}return C={get basename(){return l},get future(){return u},get state(){return w},get routes(){return a},get window(){return t},initialize:De,subscribe:Je,enableScrollRestoration:Dt,navigate:ye,fetch:Be,revalidate:ze,createHref:Se=>e.history.createHref(Se),encodeLocation:Se=>e.history.encodeLocation(Se),getFetcher:fe,deleteFetcher:Oe,dispose:Ve,getBlocker:et,deleteBlocker:vt,_internalFetchControllers:q,_internalActiveDeferreds:ge,_internalSetRoutes:zn},C}function kTe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function q_(e,t,n,r,i,o,a,s){let l,u;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){u=d;break}}else l=t,u=t[t.length-1];let c=sP(i||".",aP(l,o),tO(e.pathname,n)||e.pathname,s==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!cP(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Dd([n,c.pathname])),eO(c)}function p7(e,t,n,r){if(!r||!kTe(r))return{path:n};if(r.formMethod&&!NTe(r.formMethod))return{path:n,error:Rs(405,{method:r.formMethod})};let i=()=>({path:n,error:Rs(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=yG(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!hl(a))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[b,O]=m;return""+h+b+"="+O+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!hl(a))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Bn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=Z_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Z_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=b7(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=b7(l)}catch{return i()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(hl(c.formMethod))return{path:n,submission:c};let d=Nc(n);return t&&d.search&&cP(d.search)&&l.append("index",""),d.search="?"+l,{path:eO(d),submission:c}}function xTe(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 h7(e,t,n,r,i,o,a,s,l,u,c,d,p,h,m,b){let O=b?Object.values(b)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),v=e.createURL(i),S=b?Object.keys(b)[0]:void 0,C=xTe(n,S).filter((E,$)=>{let{route:P}=E;if(P.lazy)return!0;if(P.loader==null)return!1;if(o)return P.loader.hydrate?!0:t.loaderData[P.id]===void 0&&(!t.errors||t.errors[P.id]===void 0);if(CTe(t.loaderData,t.matches[$],E)||s.some(U=>U===E.route.id))return!0;let _=t.matches[$],B=E;return m7(E,li({currentUrl:y,currentParams:_.params,nextUrl:v,nextParams:B.params},r,{actionResult:O,defaultShouldRevalidate:a||y.pathname+y.search===v.pathname+v.search||y.search!==v.search||bG(_,B)}))}),w=[];return c.forEach((E,$)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has($))return;let P=Xh(p,E.path,h);if(!P){w.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let _=t.fetchers.get($),B=X_(P,E.path),U=!1;d.has($)?U=!1:l.includes($)?U=!0:_&&_.state!=="idle"&&_.data===void 0?U=a:U=m7(B,li({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:O,defaultShouldRevalidate:a})),U&&w.push({key:$,routeId:E.routeId,path:E.path,matches:P,match:B,controller:new AbortController})}),[C,w]}function CTe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function bG(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function m7(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function g7(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Bn(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";Tp(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!qSe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,li({},t(i),{lazy:void 0}))}async function C0(e,t,n,r,i,o,a,s,l){l===void 0&&(l={});let u,c,d,p=b=>{let O,y=new Promise((v,S)=>O=S);return d=()=>O(),t.signal.addEventListener("abort",d),Promise.race([b({request:t,params:n.params,context:l.requestContext}),y])};try{let b=n.route[e];if(n.route.lazy)if(b){let O,y=await Promise.all([p(b).catch(v=>{O=v}),g7(n.route,o,i)]);if(O)throw O;c=y[0]}else if(await g7(n.route,o,i),b=n.route[e],b)c=await p(b);else if(e==="action"){let O=new URL(t.url),y=O.pathname+O.search;throw Rs(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:ai.data,data:void 0};else if(b)c=await p(b);else{let O=new URL(t.url),y=O.pathname+O.search;throw Rs(404,{pathname:y})}Bn(c!==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(b){u=ai.error,c=b}finally{d&&t.signal.removeEventListener("abort",d)}if(ITe(c)){let b=c.status;if(vTe.has(b)){let y=c.headers.get("Location");if(Bn(y,"Redirects returned/thrown from loaders/actions must have a Location header"),!mG.test(y))y=q_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,y,s);else if(!l.isStaticRequest){let v=new URL(t.url),S=y.startsWith("//")?new URL(v.protocol+y):new URL(y),k=tO(S.pathname,a)!=null;S.origin===v.origin&&k&&(y=S.pathname+S.search+S.hash)}if(l.isStaticRequest)throw c.headers.set("Location",y),c;return{type:ai.redirect,status:b,location:y,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===ai.error?ai.error:ai.data,response:c};let O;try{let y=c.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?c.body==null?O=null:O=await c.json():O=await c.text()}catch(y){return{type:ai.error,error:y}}return u===ai.error?{type:u,error:new lP(b,c.statusText,O),headers:c.headers}:{type:ai.data,data:O,statusCode:c.status,headers:c.headers}}if(u===ai.error)return{type:u,error:c};if(RTe(c)){var h,m;return{type:ai.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((m=c.init)==null?void 0:m.headers)&&new Headers(c.init.headers)}}return{type:ai.data,data:c}}function A0(e,t,n,r){let i=e.createURL(yG(t)).toString(),o={signal:n};if(r&&hl(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=Z_(r.formData):o.body=r.formData}return new Request(i,o)}function Z_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function b7(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ATe(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(Bn(!Wf(c),"Cannot handle redirect results in processLoaderData"),Kh(c)){let h=Pb(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[h.route.id]==null&&(a[h.route.id]=m),o[p]=void 0,l||(l=!0,s=uP(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else Hf(c)?(i.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function y7(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=ATe(t,n,r,i,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function v7(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 Rs(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?s="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.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="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&&(s='Invalid request method "'+i.toUpperCase()+'"')),new lP(e||500,a,new Error(s),!0)}function E7(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Wf(n))return{result:n,idx:t}}}function yG(e){let t=typeof e=="string"?Nc(e):e;return eO(li({},t,{hash:""}))}function _Te(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Hf(e){return e.type===ai.deferred}function Kh(e){return e.type===ai.error}function Wf(e){return(e&&e.type)===ai.redirect}function RTe(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 ITe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function NTe(e){return OTe.has(e.toLowerCase())}function hl(e){return bTe.has(e.toLowerCase())}async function S7(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!bG(u,l)&&(o&&o[l.route.id])!==void 0;if(Hf(s)&&(i||c)){let d=r[a];Bn(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await OG(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function OG(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ai.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ai.error,error:i}}return{type:ai.data,data:e.deferredData.data}}}function cP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function X_(e,t){let n=typeof t=="string"?Nc(t).search:t.search;if(e[e.length-1].route.index&&cP(n||""))return e[e.length-1];let r=pG(e);return r[r.length-1]}function T7(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function iA(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 DTe(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 _0(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 PTe(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 Gc(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 LTe(e,t){try{let n=e.sessionStorage.getItem(gG);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function MTe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(gG,JSON.stringify(n))}catch(r){Tp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.3 * * Copyright (c) Remix Software Inc. @@ -180,7 +180,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),I.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=sP(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Nd([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}const FTe=I.createContext(null);function BTe(e){let t=I.useContext(Nc).outlet;return t&&I.createElement(FTe.Provider,{value:e},t)}function cf(){let{matches:e}=I.useContext(Nc),t=e[e.length-1];return t?t.params:{}}function UTe(e,t,n,r){rO()||Bn(!1);let{navigator:i}=I.useContext(nO),{matches:o}=I.useContext(Nc),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Bp(),c;if(t){var d;let O=typeof t=="string"?Dc(t):t;l==="/"||(d=O.pathname)!=null&&d.startsWith(l)||Bn(!1),c=O}else c=u;let p=c.pathname||"/",h=l==="/"?p:p.slice(l.length)||"/",m=Xh(e,{pathname:h}),b=WTe(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:Nd([l,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?l:Nd([l,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,n,r);return t&&b?I.createElement(Bk.Provider,{value:{location:Ny({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:hi.Pop}},b):b}function jTe(){let e=kG(),t=uP(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 I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,null)}const zTe=I.createElement(jTe,null);class VTe extends I.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?I.createElement(Nc.Provider,{value:this.props.routeContext},I.createElement(EG.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HTe(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(Fk);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(Nc.Provider,{value:t},r)}function WTe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));c>=0||Bn(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,p)=>{let h,m=!1,b=null,O=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||zTe,l&&(u<0&&p===0?(ZTe("route-fallback",!1),m=!0,O=null):u===p&&(m=!0,O=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=b:m?S=O:d.route.Component?S=I.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=c,I.createElement(HTe,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?I.createElement(VTe,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var TG=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(TG||{}),pT=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}(pT||{});function QTe(e){let t=I.useContext(Fk);return t||Bn(!1),t}function YTe(e){let t=I.useContext(vG);return t||Bn(!1),t}function GTe(e){let t=I.useContext(Nc);return t||Bn(!1),t}function wG(e){let t=GTe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function kG(){var e;let t=I.useContext(EG),n=YTe(pT.UseRouteError),r=wG(pT.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qTe(){let{router:e}=QTe(TG.UseNavigateStable),t=wG(pT.UseNavigateStable),n=I.useRef(!1);return SG(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ny({fromRouteId:t},o)))},[e,t])}const w7={};function ZTe(e,t,n){!t&&!w7[e]&&(w7[e]=!0)}function dP(e){let{to:t,replace:n,state:r,relative:i}=e;rO()||Bn(!1);let{future:o,static:a}=I.useContext(nO),{matches:s}=I.useContext(Nc),{pathname:l}=Bp(),u=Pc(),c=sP(t,aP(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return I.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function fP(e){return BTe(e.context)}function XTe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=hi.Pop,navigator:o,static:a=!1,future:s}=e;rO()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:l,navigator:o,static:a,future:Ny({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Dc(r));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=r,b=I.useMemo(()=>{let O=tO(c,l);return O==null?null:{location:{pathname:O,search:d,hash:p,state:h,key:m},navigationType:i}},[l,c,d,p,h,m,i]);return b==null?null:I.createElement(nO.Provider,{value:u},I.createElement(Bk.Provider,{children:n,value:b}))}new Promise(()=>{});function KTe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:I.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:I.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:I.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),I.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=sP(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Dd([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}const FTe=I.createContext(null);function BTe(e){let t=I.useContext(Dc).outlet;return t&&I.createElement(FTe.Provider,{value:e},t)}function cf(){let{matches:e}=I.useContext(Dc),t=e[e.length-1];return t?t.params:{}}function UTe(e,t,n,r){rO()||Bn(!1);let{navigator:i}=I.useContext(nO),{matches:o}=I.useContext(Dc),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Bp(),c;if(t){var d;let O=typeof t=="string"?Nc(t):t;l==="/"||(d=O.pathname)!=null&&d.startsWith(l)||Bn(!1),c=O}else c=u;let p=c.pathname||"/",h=l==="/"?p:p.slice(l.length)||"/",m=Xh(e,{pathname:h}),b=WTe(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:Dd([l,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?l:Dd([l,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,n,r);return t&&b?I.createElement(Bk.Provider,{value:{location:Dy({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:hi.Pop}},b):b}function jTe(){let e=kG(),t=uP(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 I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,null)}const zTe=I.createElement(jTe,null);class VTe extends I.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?I.createElement(Dc.Provider,{value:this.props.routeContext},I.createElement(EG.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HTe(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(Fk);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(Dc.Provider,{value:t},r)}function WTe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));c>=0||Bn(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,p)=>{let h,m=!1,b=null,O=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||zTe,l&&(u<0&&p===0?(ZTe("route-fallback",!1),m=!0,O=null):u===p&&(m=!0,O=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=b:m?S=O:d.route.Component?S=I.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=c,I.createElement(HTe,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?I.createElement(VTe,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var TG=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(TG||{}),pT=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}(pT||{});function QTe(e){let t=I.useContext(Fk);return t||Bn(!1),t}function YTe(e){let t=I.useContext(vG);return t||Bn(!1),t}function GTe(e){let t=I.useContext(Dc);return t||Bn(!1),t}function wG(e){let t=GTe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function kG(){var e;let t=I.useContext(EG),n=YTe(pT.UseRouteError),r=wG(pT.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qTe(){let{router:e}=QTe(TG.UseNavigateStable),t=wG(pT.UseNavigateStable),n=I.useRef(!1);return SG(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Dy({fromRouteId:t},o)))},[e,t])}const w7={};function ZTe(e,t,n){!t&&!w7[e]&&(w7[e]=!0)}function dP(e){let{to:t,replace:n,state:r,relative:i}=e;rO()||Bn(!1);let{future:o,static:a}=I.useContext(nO),{matches:s}=I.useContext(Dc),{pathname:l}=Bp(),u=Pc(),c=sP(t,aP(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return I.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function fP(e){return BTe(e.context)}function XTe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=hi.Pop,navigator:o,static:a=!1,future:s}=e;rO()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:l,navigator:o,static:a,future:Dy({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Nc(r));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=r,b=I.useMemo(()=>{let O=tO(c,l);return O==null?null:{location:{pathname:O,search:d,hash:p,state:h,key:m},navigationType:i}},[l,c,d,p,h,m,i]);return b==null?null:I.createElement(nO.Provider,{value:u},I.createElement(Bk.Provider,{children:n,value:b}))}new Promise(()=>{});function KTe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:I.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:I.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:I.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.3 * * Copyright (c) Remix Software Inc. @@ -189,26 +189,26 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function hT(){return hT=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 JTe(e,t){let n=K_(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}function ewe(e,t){return wTe({basename:t==null?void 0:t.basename,future:hT({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:QSe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||twe(),routes:e,mapRouteProperties:KTe,window:t==null?void 0:t.window}).initialize()}function twe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=hT({},t,{errors:nwe(t.errors)})),t}function nwe(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 lP(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const rwe=I.createContext({isTransitioning:!1}),iwe=I.createContext(new Map),owe="startTransition",k7=Qm[owe],awe="flushSync",x7=Ale[awe];function swe(e){k7?k7(e):e()}function R0(e){x7?x7(e):e()}class lwe{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 uwe(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=I.useState(n.state),[a,s]=I.useState(),[l,u]=I.useState({isTransitioning:!1}),[c,d]=I.useState(),[p,h]=I.useState(),[m,b]=I.useState(),O=I.useRef(new Map),{v7_startTransition:y}=r||{},v=I.useCallback(E=>{y?swe(E):E()},[y]),S=I.useCallback((E,$)=>{let{deletedFetchers:P,unstable_flushSync:_,unstable_viewTransitionOpts:B}=$;P.forEach(V=>O.current.delete(V)),E.fetchers.forEach((V,z)=>{V.data!==void 0&&O.current.set(z,V.data)});let U=n.window==null||typeof n.window.document.startViewTransition!="function";if(!B||U){_?R0(()=>o(E)):v(()=>o(E));return}if(_){R0(()=>{p&&(c&&c.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=n.window.document.startViewTransition(()=>{R0(()=>o(E))});V.finished.finally(()=>{R0(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})}),R0(()=>h(V));return}p?(c&&c.resolve(),p.skipTransition(),b({state:E,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(E),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,p,c,O,v]);I.useLayoutEffect(()=>n.subscribe(S),[n,S]),I.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new lwe)},[l]),I.useEffect(()=>{if(c&&a&&n.window){let E=a,$=c.promise,P=n.window.document.startViewTransition(async()=>{v(()=>o(E)),await $});P.finished.finally(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})}),h(P)}},[v,a,c,n.window]),I.useEffect(()=>{c&&a&&i.location.key===a.location.key&&c.resolve()},[c,p,i.location,a]),I.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),b(void 0))},[l.isTransitioning,m]),I.useEffect(()=>{},[]);let k=I.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,P)=>n.navigate(E,{state:$,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(E,$,P)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),C=n.basename||"/",w=I.useMemo(()=>({router:n,navigator:k,static:!1,basename:C}),[n,k,C]);return I.createElement(I.Fragment,null,I.createElement(Fk.Provider,{value:w},I.createElement(vG.Provider,{value:i},I.createElement(iwe.Provider,{value:O.current},I.createElement(rwe.Provider,{value:l},I.createElement(XTe,{basename:C,location:i.location,navigationType:i.historyAction,navigator:k,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?I.createElement(cwe,{routes:n.routes,future:n.future,state:i}):t))))),null)}function cwe(e){let{routes:t,future:n,state:r}=e;return UTe(t,void 0,r,n)}var C7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(C7||(C7={}));var A7;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A7||(A7={}));function xG(e){let t=I.useRef(K_(e)),n=I.useRef(!1),r=Bp(),i=I.useMemo(()=>JTe(r.search,n.current?null:t.current),[r.search]),o=Pc(),a=I.useCallback((s,l)=>{const u=K_(typeof s=="function"?s(i):s);n.current=!0,o("?"+u,l)},[o,i]);return[i,a]}function co(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 dwe=typeof Symbol=="function"&&Symbol.observable||"@@observable",_7=dwe,oA=()=>Math.random().toString(36).substring(7).split("").join("."),fwe={INIT:`@@redux/INIT${oA()}`,REPLACE:`@@redux/REPLACE${oA()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${oA()}`},mT=fwe;function pP(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 hP(e,t,n){if(typeof e!="function")throw new Error(co(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(co(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(co(1));return n(hP)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((O,y)=>{a.set(y,O)}))}function c(){if(l)throw new Error(co(3));return i}function d(O){if(typeof O!="function")throw new Error(co(4));if(l)throw new Error(co(5));let y=!0;u();const v=s++;return a.set(v,O),function(){if(y){if(l)throw new Error(co(6));y=!1,u(),a.delete(v),o=null}}}function p(O){if(!pP(O))throw new Error(co(7));if(typeof O.type>"u")throw new Error(co(8));if(typeof O.type!="string")throw new Error(co(17));if(l)throw new Error(co(9));try{l=!0,i=r(i,O)}finally{l=!1}return(o=a).forEach(v=>{v()}),O}function h(O){if(typeof O!="function")throw new Error(co(10));r=O,p({type:mT.REPLACE})}function m(){const O=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(co(11));function v(){const k=y;k.next&&k.next(c())}return v(),{unsubscribe:O(v)}},[_7](){return this}}}return p({type:mT.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:h,[_7]:m}}function pwe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:mT.INIT})>"u")throw new Error(co(12));if(typeof n(void 0,{type:mT.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(co(13))})}function CG(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw s&&s.type,new Error(co(14));u[d]=m,l=l||m!==h}return l=l||r.length!==Object.keys(a).length,l?u:a}}function gT(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function hwe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(co(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=gT(...s)(i.dispatch),{...i,dispatch:o}}}function mwe(e){return pP(e)&&"type"in e&&typeof e.type=="string"}var AG=Symbol.for("immer-nothing"),R7=Symbol.for("immer-draftable"),gs=Symbol.for("immer-state");function Sl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var og=Object.getPrototypeOf;function Yd(e){return!!e&&!!e[gs]}function wc(e){var t;return e?_G(e)||Array.isArray(e)||!!e[R7]||!!((t=e.constructor)!=null&&t[R7])||jk(e)||zk(e):!1}var gwe=Object.prototype.constructor.toString();function _G(e){if(!e||typeof e!="object")return!1;const t=og(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)===gwe}function Py(e,t){Uk(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Uk(e){const t=e[gs];return t?t.type_:Array.isArray(e)?1:jk(e)?2:zk(e)?3:0}function J_(e,t){return Uk(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function RG(e,t,n){const r=Uk(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function bwe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function jk(e){return e instanceof Map}function zk(e){return e instanceof Set}function Pf(e){return e.copy_||e.base_}function eR(e,t){if(jk(e))return new Map(e);if(zk(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&_G(e))return og(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[gs];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=ywe),Object.freeze(e),t&&Py(e,(n,r)=>mP(r,!0))),e}function ywe(){Sl(2)}function Vk(e){return Object.isFrozen(e)}var Owe={};function wp(e){const t=Owe[e];return t||Sl(0,e),t}var Ly;function IG(){return Ly}function vwe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function I7(e,t){t&&(wp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tR(e){nR(e),e.drafts_.forEach(Ewe),e.drafts_=null}function nR(e){e===Ly&&(Ly=e.parent_)}function D7(e){return Ly=vwe(Ly,e)}function Ewe(e){const t=e[gs];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function N7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[gs].modified_&&(tR(t),Sl(4)),wc(e)&&(e=bT(t,e),t.parent_||yT(t,e)),t.patches_&&wp("Patches").generateReplacementPatches_(n[gs].base_,e,t.patches_,t.inversePatches_)):e=bT(t,n,[]),tR(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AG?e:void 0}function bT(e,t,n){if(Vk(t))return t;const r=t[gs];if(!r)return Py(t,(i,o)=>P7(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return yT(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),Py(o,(s,l)=>P7(e,r,i,s,l,n,a)),yT(e,i,!1),n&&e.patches_&&wp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function P7(e,t,n,r,i,o,a){if(Yd(i)){const s=o&&t&&t.type_!==3&&!J_(t.assigned_,r)?o.concat(r):void 0,l=bT(e,i,s);if(RG(n,r,l),Yd(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(wc(i)&&!Vk(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;bT(e,i),(!t||!t.scope_.parent_)&&yT(e,i)}}function yT(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&mP(t,n)}function Swe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:IG(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=gP;n&&(i=[r],o=My);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var gP={get(e,t){if(t===gs)return e;const n=Pf(e);if(!J_(n,t))return Twe(e,n,t);const r=n[t];return e.finalized_||!wc(r)?r:r===aA(e.base_,t)?(sA(e),e.copy_[t]=iR(r,e)):r},has(e,t){return t in Pf(e)},ownKeys(e){return Reflect.ownKeys(Pf(e))},set(e,t,n){const r=DG(Pf(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=aA(Pf(e),t),o=i==null?void 0:i[gs];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(bwe(n,i)&&(n!==void 0||J_(e.base_,t)))return!0;sA(e),rR(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 aA(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,sA(e),rR(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Pf(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Sl(11)},getPrototypeOf(e){return og(e.base_)},setPrototypeOf(){Sl(12)}},My={};Py(gP,(e,t)=>{My[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});My.deleteProperty=function(e,t){return My.set.call(this,e,t,void 0)};My.set=function(e,t,n){return gP.set.call(this,e[0],t,n,e[0])};function aA(e,t){const n=e[gs];return(n?Pf(n):e)[t]}function Twe(e,t,n){var i;const r=DG(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function DG(e,t){if(!(t in e))return;let n=og(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=og(n)}}function rR(e){e.modified_||(e.modified_=!0,e.parent_&&rR(e.parent_))}function sA(e){e.copy_||(e.copy_=eR(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wwe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...u){return a.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&Sl(6),r!==void 0&&typeof r!="function"&&Sl(7);let i;if(wc(t)){const o=D7(this),a=iR(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?tR(o):nR(o)}return I7(o,r),N7(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===AG&&(i=void 0),this.autoFreeze_&&mP(i,!0),r){const o=[],a=[];wp("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Sl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),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){wc(e)||Sl(8),Yd(e)&&(e=NG(e));const t=D7(this),n=iR(e,void 0);return n[gs].isManual_=!0,nR(t),n}finishDraft(e,t){const n=e&&e[gs];(!n||!n.isManual_)&&Sl(9);const{scope_:r}=n;return I7(r,t),N7(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=wp("Patches").applyPatches_;return Yd(e)?r(e,t):this.produce(e,i=>r(i,t))}};function iR(e,t){const n=jk(e)?wp("MapSet").proxyMap_(e,t):zk(e)?wp("MapSet").proxySet_(e,t):Swe(e,t);return(t?t.scope_:IG()).drafts_.push(n),n}function NG(e){return Yd(e)||Sl(10,e),PG(e)}function PG(e){if(!wc(e)||Vk(e))return e;const t=e[gs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=eR(e,t.scope_.immer_.useStrictShallowCopy_)}else n=eR(e,!0);return Py(n,(r,i)=>{RG(n,r,PG(i))}),t&&(t.finalized_=!1),n}var bs=new wwe,LG=bs.produce;bs.produceWithPatches.bind(bs);bs.setAutoFreeze.bind(bs);bs.setUseStrictShallowCopy.bind(bs);bs.applyPatches.bind(bs);bs.createDraft.bind(bs);bs.finishDraft.bind(bs);function kwe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function xwe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Cwe(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 L7=e=>Array.isArray(e)?e:[e];function Awe(e){const t=Array.isArray(e[0])?e[0]:e;return Cwe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function _we(e,t){const n=[],{length:r}=e;for(let i=0;i{n=Mv(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function MG(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),kwe(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=bP,argsMemoizeOptions:m=[],devModeChecks:b={}}=c,O=L7(p),y=L7(m),v=Awe(i),S=d(function(){return o++,u.apply(null,arguments)},...O),k=h(function(){a++;const w=_we(v,arguments);return s=S.apply(null,w),s},...y);return Object.assign(k,{resultFunc:u,memoizedResultFunc:S,dependencies:v,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var Nwe=MG(bP),Pwe=Object.assign((e,t=Nwe)=>{xwe(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(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>Pwe});function $G(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Lwe=$G(),Mwe=$G,$we=(...e)=>{const t=MG(...e);return(...n)=>{const r=t(...n),i=(o,...a)=>r(Yd(o)?NG(o):o,...a);return Object.assign(i,r),i}};$we(bP);var Fwe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gT:gT.apply(null,arguments)};function $y(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Rl(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=>mwe(r)&&r.type===e,n}var FG=class ab extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ab.prototype)}static get[Symbol.species](){return ab}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ab(...t[0].concat(this)):new ab(...t.concat(this))}};function $7(e){return wc(e)?LG(e,()=>{}):e}function F7(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(Rl(10));const r=n.insert(t,e);return e.set(t,r),r}function Bwe(e){return typeof e=="boolean"}var Uwe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new FG;return n&&(Bwe(n)?a.push(Lwe):a.push(Mwe(n.extraArgument))),a},jwe="RTK_autoBatch",BG=e=>t=>{setTimeout(t,e)},zwe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:BG(10),Vwe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?zwe:e.type==="callback"?e.queueNotification:BG(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>i&&c(),p=r.subscribe(d);return s.add(c),()=>{p(),s.delete(c)}},dispatch(c){var d;try{return i=!((d=c==null?void 0:c.meta)!=null&&d[jwe]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},Hwe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new FG(e);return r&&i.push(Vwe(typeof r=="object"?r:void 0)),i},Wwe=!0;function Qwe(e){const t=Uwe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(pP(n))s=CG(n);else throw new Error(Rl(1));let l;typeof r=="function"?l=r(t):l=t();let u=gT;i&&(u=Fwe({trace:!Wwe,...typeof i=="object"&&i}));const c=hwe(...l),d=Hwe(c);let p=typeof a=="function"?a(d):d();const h=u(...p);return hP(s,o,h)}function UG(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(Rl(28));if(s in t)throw new Error(Rl(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Ywe(e){return typeof e=="function"}function Gwe(e,t){let[n,r,i]=UG(t),o;if(Ywe(e))o=()=>$7(e());else{const s=$7(e);o=()=>s}function a(s=o(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,d)=>{if(d)if(Yd(c)){const h=d(c,l);return h===void 0?c:h}else{if(wc(c))return LG(c,p=>d(p,l));{const p=d(c,l);if(p===void 0){if(c===null)return c;throw new Error(Rl(9))}return p}}return c},s)}return a.getInitialState=o,a}var qwe=Symbol.for("rtk-slice-createasyncthunk");function Zwe(e,t){return`${e}/${t}`}function Xwe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[qwe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Rl(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Jwe()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(O,y){const v=typeof O=="string"?O:O.type;if(!v)throw new Error(Rl(12));if(v in u.sliceCaseReducersByType)throw new Error(Rl(13));return u.sliceCaseReducersByType[v]=y,c},addMatcher(O,y){return u.sliceMatchers.push({matcher:O,reducer:y}),c},exposeAction(O,y){return u.actionCreators[O]=y,c},exposeCaseReducer(O,y){return u.sliceCaseReducersByName[O]=y,c}};l.forEach(O=>{const y=s[O],v={reducerName:O,type:Zwe(o,O),createNotation:typeof i.reducers=="function"};tke(y)?rke(v,y,c,t):eke(v,y,c)});function d(){const[O={},y=[],v=void 0]=typeof i.extraReducers=="function"?UG(i.extraReducers):[i.extraReducers],S={...O,...u.sliceCaseReducersByType};return Gwe(i.initialState,k=>{for(let C in S)k.addCase(C,S[C]);for(let C of u.sliceMatchers)k.addMatcher(C.matcher,C.reducer);for(let C of y)k.addMatcher(C.matcher,C.reducer);v&&k.addDefaultCase(v)})}const p=O=>O,h=new WeakMap;let m;const b={name:o,reducerPath:a,reducer(O,y){return m||(m=d()),m(O,y)},actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState(){return m||(m=d()),m.getInitialState()},getSelectors(O=p){const y=F7(h,this,{insert:()=>new WeakMap});return F7(y,O,{insert:()=>{const v={};for(const[S,k]of Object.entries(i.selectors??{}))v[S]=Kwe(this,k,O,this!==b);return v}})},selectSlice(O){let y=O[this.reducerPath];return typeof y>"u"&&this!==b&&(y=this.getInitialState()),y},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(O,{reducerPath:y,...v}={}){const S=y??this.reducerPath;return O.inject({reducerPath:S,reducer:this.reducer},v),{...this,reducerPath:S}}};return b}}function Kwe(e,t,n,r){function i(o,...a){let s=n.call(e,o);return typeof s>"u"&&r&&(s=e.getInitialState()),t(s,...a)}return i.unwrapped=t,i}var Hk=Xwe();function Jwe(){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 eke({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!nke(r))throw new Error(Rl(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?$y(e,a):$y(e))}function tke(e){return e._reducerDefinitionType==="asyncThunk"}function nke(e){return e._reducerDefinitionType==="reducerWithPrepare"}function rke({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Rl(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:c}=n,d=i(e,o,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||$v,pending:s||$v,rejected:l||$v,settled:u||$v})}function $v(){}var yP="listenerMiddleware";$y(`${yP}/add`);$y(`${yP}/removeAll`);$y(`${yP}/remove`);function Rl(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 ike={theme:"default"},jG=Hk({name:"editor",initialState:ike,reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:oke}=jG.actions,zG=e=>e.config,ake=jG.reducer;function VG(e,t){return function(){return e.apply(t,arguments)}}const{toString:ske}=Object.prototype,{getPrototypeOf:OP}=Object,Wk=(e=>t=>{const n=ske.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mu=e=>(e=e.toLowerCase(),t=>Wk(t)===e),Qk=e=>t=>typeof t===e,{isArray:Dg}=Array,Fy=Qk("undefined");function lke(e){return e!==null&&!Fy(e)&&e.constructor!==null&&!Fy(e.constructor)&&Ys(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const HG=Mu("ArrayBuffer");function uke(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&HG(e.buffer),t}const cke=Qk("string"),Ys=Qk("function"),WG=Qk("number"),Yk=e=>e!==null&&typeof e=="object",dke=e=>e===!0||e===!1,YE=e=>{if(Wk(e)!=="object")return!1;const t=OP(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fke=Mu("Date"),pke=Mu("File"),hke=Mu("Blob"),mke=Mu("FileList"),gke=e=>Yk(e)&&Ys(e.pipe),bke=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ys(e.append)&&((t=Wk(e))==="formdata"||t==="object"&&Ys(e.toString)&&e.toString()==="[object FormData]"))},yke=Mu("URLSearchParams"),Oke=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function iO(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Dg(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const YG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,GG=e=>!Fy(e)&&e!==YG;function oR(){const{caseless:e}=GG(this)&&this||{},t={},n=(r,i)=>{const o=e&&QG(t,i)||i;YE(t[o])&&YE(r)?t[o]=oR(t[o],r):YE(r)?t[o]=oR({},r):Dg(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(iO(t,(i,o)=>{n&&Ys(i)?e[o]=VG(i,n):e[o]=i},{allOwnKeys:r}),e),Eke=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ske=(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)},Tke=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&OP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},wke=(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},kke=e=>{if(!e)return null;if(Dg(e))return e;let t=e.length;if(!WG(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},xke=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&OP(Uint8Array)),Cke=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Ake=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_ke=Mu("HTMLFormElement"),Rke=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),B7=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ike=Mu("RegExp"),qG=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};iO(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Dke=e=>{qG(e,(t,n)=>{if(Ys(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ys(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+"'")})}})},Nke=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Dg(e)?r(e):r(String(e).split(t)),n},Pke=()=>{},Lke=(e,t)=>(e=+e,Number.isFinite(e)?e:t),lA="abcdefghijklmnopqrstuvwxyz",U7="0123456789",ZG={DIGIT:U7,ALPHA:lA,ALPHA_DIGIT:lA+lA.toUpperCase()+U7},Mke=(e=16,t=ZG.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function $ke(e){return!!(e&&Ys(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Fke=e=>{const t=new Array(10),n=(r,i)=>{if(Yk(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Dg(r)?[]:{};return iO(r,(a,s)=>{const l=n(a,i+1);!Fy(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Bke=Mu("AsyncFunction"),Uke=e=>e&&(Yk(e)||Ys(e))&&Ys(e.then)&&Ys(e.catch),ut={isArray:Dg,isArrayBuffer:HG,isBuffer:lke,isFormData:bke,isArrayBufferView:uke,isString:cke,isNumber:WG,isBoolean:dke,isObject:Yk,isPlainObject:YE,isUndefined:Fy,isDate:fke,isFile:pke,isBlob:hke,isRegExp:Ike,isFunction:Ys,isStream:gke,isURLSearchParams:yke,isTypedArray:xke,isFileList:mke,forEach:iO,merge:oR,extend:vke,trim:Oke,stripBOM:Eke,inherits:Ske,toFlatObject:Tke,kindOf:Wk,kindOfTest:Mu,endsWith:wke,toArray:kke,forEachEntry:Cke,matchAll:Ake,isHTMLForm:_ke,hasOwnProperty:B7,hasOwnProp:B7,reduceDescriptors:qG,freezeMethods:Dke,toObjectSet:Nke,toCamelCase:Rke,noop:Pke,toFiniteNumber:Lke,findKey:QG,global:YG,isContextDefined:GG,ALPHABET:ZG,generateString:Mke,isSpecCompliantForm:$ke,toJSONObject:Fke,isAsyncFn:Bke,isThenable:Uke};function Xn(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)}ut.inherits(Xn,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:ut.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const XG=Xn.prototype,KG={};["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=>{KG[e]={value:e}});Object.defineProperties(Xn,KG);Object.defineProperty(XG,"isAxiosError",{value:!0});Xn.from=(e,t,n,r,i,o)=>{const a=Object.create(XG);return ut.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Xn.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const jke=null;function aR(e){return ut.isPlainObject(e)||ut.isArray(e)}function JG(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function j7(e,t,n){return e?e.concat(t).map(function(i,o){return i=JG(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function zke(e){return ut.isArray(e)&&!e.some(aR)}const Vke=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function Gk(e,t,n){if(!ut.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,O){return!ut.isUndefined(O[b])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ut.isSpecCompliantForm(t);if(!ut.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(ut.isDate(m))return m.toISOString();if(!l&&ut.isBlob(m))throw new Xn("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(m)||ut.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,b,O){let y=m;if(m&&!O&&typeof m=="object"){if(ut.endsWith(b,"{}"))b=r?b:b.slice(0,-2),m=JSON.stringify(m);else if(ut.isArray(m)&&zke(m)||(ut.isFileList(m)||ut.endsWith(b,"[]"))&&(y=ut.toArray(m)))return b=JG(b),y.forEach(function(S,k){!(ut.isUndefined(S)||S===null)&&t.append(a===!0?j7([b],k,o):a===null?b:b+"[]",u(S))}),!1}return aR(m)?!0:(t.append(j7(O,b,o),u(m)),!1)}const d=[],p=Object.assign(Vke,{defaultVisitor:c,convertValue:u,isVisitable:aR});function h(m,b){if(!ut.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(m),ut.forEach(m,function(y,v){(!(ut.isUndefined(y)||y===null)&&i.call(t,y,ut.isString(v)?v.trim():v,b,p))===!0&&h(y,b?b.concat(v):[v])}),d.pop()}}if(!ut.isObject(e))throw new TypeError("data must be an object");return h(e),t}function z7(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vP(e,t){this._pairs=[],e&&Gk(e,this,t)}const eq=vP.prototype;eq.append=function(t,n){this._pairs.push([t,n])};eq.toString=function(t){const n=t?function(r){return t.call(this,r,z7)}:z7;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Hke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tq(e,t,n){if(!t)return e;const r=n&&n.encode||Hke,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ut.isURLSearchParams(t)?t.toString():new vP(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class V7{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){ut.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nq={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wke=typeof URLSearchParams<"u"?URLSearchParams:vP,Qke=typeof FormData<"u"?FormData:null,Yke=typeof Blob<"u"?Blob:null,Gke={isBrowser:!0,classes:{URLSearchParams:Wke,FormData:Qke,Blob:Yke},protocols:["http","https","file","blob","url","data"]},rq=typeof window<"u"&&typeof document<"u",qke=(e=>rq&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Zke=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xke=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rq,hasStandardBrowserEnv:qke,hasStandardBrowserWebWorkerEnv:Zke},Symbol.toStringTag,{value:"Module"})),yu={...Xke,...Gke};function Kke(e,t){return Gk(e,new yu.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return yu.isNode&&ut.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Jke(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function exe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&ut.isArray(i)?i.length:a,l?(ut.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ut.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ut.isArray(i[a])&&(i[a]=exe(i[a])),!s)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(r,i)=>{t(Jke(r),i,n,0)}),n}return null}function txe(e,t,n){if(ut.isString(e))try{return(t||JSON.parse)(e),ut.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const EP={transitional:nq,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ut.isObject(t);if(o&&ut.isHTMLForm(t)&&(t=new FormData(t)),ut.isFormData(t))return i&&i?JSON.stringify(iq(t)):t;if(ut.isArrayBuffer(t)||ut.isBuffer(t)||ut.isStream(t)||ut.isFile(t)||ut.isBlob(t))return t;if(ut.isArrayBufferView(t))return t.buffer;if(ut.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kke(t,this.formSerializer).toString();if((s=ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Gk(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),txe(t)):t}],transformResponse:[function(t){const n=this.transitional||EP.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ut.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Xn.from(s,Xn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yu.classes.FormData,Blob:yu.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ut.forEach(["delete","get","head","post","put","patch"],e=>{EP.headers[e]={}});const SP=EP,nxe=ut.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"]),rxe=e=>{const t={};let n,r,i;return e&&e.split(` + */function hT(){return hT=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 JTe(e,t){let n=K_(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}function ewe(e,t){return wTe({basename:t==null?void 0:t.basename,future:hT({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:QSe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||twe(),routes:e,mapRouteProperties:KTe,window:t==null?void 0:t.window}).initialize()}function twe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=hT({},t,{errors:nwe(t.errors)})),t}function nwe(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 lP(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const rwe=I.createContext({isTransitioning:!1}),iwe=I.createContext(new Map),owe="startTransition",k7=Qm[owe],awe="flushSync",x7=Ale[awe];function swe(e){k7?k7(e):e()}function R0(e){x7?x7(e):e()}class lwe{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 uwe(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=I.useState(n.state),[a,s]=I.useState(),[l,u]=I.useState({isTransitioning:!1}),[c,d]=I.useState(),[p,h]=I.useState(),[m,b]=I.useState(),O=I.useRef(new Map),{v7_startTransition:y}=r||{},v=I.useCallback(E=>{y?swe(E):E()},[y]),S=I.useCallback((E,$)=>{let{deletedFetchers:P,unstable_flushSync:_,unstable_viewTransitionOpts:B}=$;P.forEach(V=>O.current.delete(V)),E.fetchers.forEach((V,z)=>{V.data!==void 0&&O.current.set(z,V.data)});let U=n.window==null||typeof n.window.document.startViewTransition!="function";if(!B||U){_?R0(()=>o(E)):v(()=>o(E));return}if(_){R0(()=>{p&&(c&&c.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=n.window.document.startViewTransition(()=>{R0(()=>o(E))});V.finished.finally(()=>{R0(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})}),R0(()=>h(V));return}p?(c&&c.resolve(),p.skipTransition(),b({state:E,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(E),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,p,c,O,v]);I.useLayoutEffect(()=>n.subscribe(S),[n,S]),I.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new lwe)},[l]),I.useEffect(()=>{if(c&&a&&n.window){let E=a,$=c.promise,P=n.window.document.startViewTransition(async()=>{v(()=>o(E)),await $});P.finished.finally(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})}),h(P)}},[v,a,c,n.window]),I.useEffect(()=>{c&&a&&i.location.key===a.location.key&&c.resolve()},[c,p,i.location,a]),I.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),b(void 0))},[l.isTransitioning,m]),I.useEffect(()=>{},[]);let k=I.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,P)=>n.navigate(E,{state:$,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(E,$,P)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),C=n.basename||"/",w=I.useMemo(()=>({router:n,navigator:k,static:!1,basename:C}),[n,k,C]);return I.createElement(I.Fragment,null,I.createElement(Fk.Provider,{value:w},I.createElement(vG.Provider,{value:i},I.createElement(iwe.Provider,{value:O.current},I.createElement(rwe.Provider,{value:l},I.createElement(XTe,{basename:C,location:i.location,navigationType:i.historyAction,navigator:k,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?I.createElement(cwe,{routes:n.routes,future:n.future,state:i}):t))))),null)}function cwe(e){let{routes:t,future:n,state:r}=e;return UTe(t,void 0,r,n)}var C7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(C7||(C7={}));var A7;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A7||(A7={}));function xG(e){let t=I.useRef(K_(e)),n=I.useRef(!1),r=Bp(),i=I.useMemo(()=>JTe(r.search,n.current?null:t.current),[r.search]),o=Pc(),a=I.useCallback((s,l)=>{const u=K_(typeof s=="function"?s(i):s);n.current=!0,o("?"+u,l)},[o,i]);return[i,a]}function co(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 dwe=typeof Symbol=="function"&&Symbol.observable||"@@observable",_7=dwe,oA=()=>Math.random().toString(36).substring(7).split("").join("."),fwe={INIT:`@@redux/INIT${oA()}`,REPLACE:`@@redux/REPLACE${oA()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${oA()}`},mT=fwe;function pP(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 hP(e,t,n){if(typeof e!="function")throw new Error(co(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(co(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(co(1));return n(hP)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((O,y)=>{a.set(y,O)}))}function c(){if(l)throw new Error(co(3));return i}function d(O){if(typeof O!="function")throw new Error(co(4));if(l)throw new Error(co(5));let y=!0;u();const v=s++;return a.set(v,O),function(){if(y){if(l)throw new Error(co(6));y=!1,u(),a.delete(v),o=null}}}function p(O){if(!pP(O))throw new Error(co(7));if(typeof O.type>"u")throw new Error(co(8));if(typeof O.type!="string")throw new Error(co(17));if(l)throw new Error(co(9));try{l=!0,i=r(i,O)}finally{l=!1}return(o=a).forEach(v=>{v()}),O}function h(O){if(typeof O!="function")throw new Error(co(10));r=O,p({type:mT.REPLACE})}function m(){const O=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(co(11));function v(){const k=y;k.next&&k.next(c())}return v(),{unsubscribe:O(v)}},[_7](){return this}}}return p({type:mT.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:h,[_7]:m}}function pwe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:mT.INIT})>"u")throw new Error(co(12));if(typeof n(void 0,{type:mT.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(co(13))})}function CG(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw s&&s.type,new Error(co(14));u[d]=m,l=l||m!==h}return l=l||r.length!==Object.keys(a).length,l?u:a}}function gT(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function hwe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(co(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=gT(...s)(i.dispatch),{...i,dispatch:o}}}function mwe(e){return pP(e)&&"type"in e&&typeof e.type=="string"}var AG=Symbol.for("immer-nothing"),R7=Symbol.for("immer-draftable"),gs=Symbol.for("immer-state");function Sl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var og=Object.getPrototypeOf;function Yd(e){return!!e&&!!e[gs]}function wc(e){var t;return e?_G(e)||Array.isArray(e)||!!e[R7]||!!((t=e.constructor)!=null&&t[R7])||jk(e)||zk(e):!1}var gwe=Object.prototype.constructor.toString();function _G(e){if(!e||typeof e!="object")return!1;const t=og(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)===gwe}function Py(e,t){Uk(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Uk(e){const t=e[gs];return t?t.type_:Array.isArray(e)?1:jk(e)?2:zk(e)?3:0}function J_(e,t){return Uk(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function RG(e,t,n){const r=Uk(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function bwe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function jk(e){return e instanceof Map}function zk(e){return e instanceof Set}function Pf(e){return e.copy_||e.base_}function eR(e,t){if(jk(e))return new Map(e);if(zk(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&_G(e))return og(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[gs];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=ywe),Object.freeze(e),t&&Py(e,(n,r)=>mP(r,!0))),e}function ywe(){Sl(2)}function Vk(e){return Object.isFrozen(e)}var Owe={};function wp(e){const t=Owe[e];return t||Sl(0,e),t}var Ly;function IG(){return Ly}function vwe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function I7(e,t){t&&(wp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tR(e){nR(e),e.drafts_.forEach(Ewe),e.drafts_=null}function nR(e){e===Ly&&(Ly=e.parent_)}function N7(e){return Ly=vwe(Ly,e)}function Ewe(e){const t=e[gs];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function D7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[gs].modified_&&(tR(t),Sl(4)),wc(e)&&(e=bT(t,e),t.parent_||yT(t,e)),t.patches_&&wp("Patches").generateReplacementPatches_(n[gs].base_,e,t.patches_,t.inversePatches_)):e=bT(t,n,[]),tR(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AG?e:void 0}function bT(e,t,n){if(Vk(t))return t;const r=t[gs];if(!r)return Py(t,(i,o)=>P7(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return yT(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),Py(o,(s,l)=>P7(e,r,i,s,l,n,a)),yT(e,i,!1),n&&e.patches_&&wp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function P7(e,t,n,r,i,o,a){if(Yd(i)){const s=o&&t&&t.type_!==3&&!J_(t.assigned_,r)?o.concat(r):void 0,l=bT(e,i,s);if(RG(n,r,l),Yd(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(wc(i)&&!Vk(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;bT(e,i),(!t||!t.scope_.parent_)&&yT(e,i)}}function yT(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&mP(t,n)}function Swe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:IG(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=gP;n&&(i=[r],o=My);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var gP={get(e,t){if(t===gs)return e;const n=Pf(e);if(!J_(n,t))return Twe(e,n,t);const r=n[t];return e.finalized_||!wc(r)?r:r===aA(e.base_,t)?(sA(e),e.copy_[t]=iR(r,e)):r},has(e,t){return t in Pf(e)},ownKeys(e){return Reflect.ownKeys(Pf(e))},set(e,t,n){const r=NG(Pf(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=aA(Pf(e),t),o=i==null?void 0:i[gs];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(bwe(n,i)&&(n!==void 0||J_(e.base_,t)))return!0;sA(e),rR(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 aA(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,sA(e),rR(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Pf(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Sl(11)},getPrototypeOf(e){return og(e.base_)},setPrototypeOf(){Sl(12)}},My={};Py(gP,(e,t)=>{My[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});My.deleteProperty=function(e,t){return My.set.call(this,e,t,void 0)};My.set=function(e,t,n){return gP.set.call(this,e[0],t,n,e[0])};function aA(e,t){const n=e[gs];return(n?Pf(n):e)[t]}function Twe(e,t,n){var i;const r=NG(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function NG(e,t){if(!(t in e))return;let n=og(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=og(n)}}function rR(e){e.modified_||(e.modified_=!0,e.parent_&&rR(e.parent_))}function sA(e){e.copy_||(e.copy_=eR(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wwe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...u){return a.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&Sl(6),r!==void 0&&typeof r!="function"&&Sl(7);let i;if(wc(t)){const o=N7(this),a=iR(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?tR(o):nR(o)}return I7(o,r),D7(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===AG&&(i=void 0),this.autoFreeze_&&mP(i,!0),r){const o=[],a=[];wp("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Sl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),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){wc(e)||Sl(8),Yd(e)&&(e=DG(e));const t=N7(this),n=iR(e,void 0);return n[gs].isManual_=!0,nR(t),n}finishDraft(e,t){const n=e&&e[gs];(!n||!n.isManual_)&&Sl(9);const{scope_:r}=n;return I7(r,t),D7(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=wp("Patches").applyPatches_;return Yd(e)?r(e,t):this.produce(e,i=>r(i,t))}};function iR(e,t){const n=jk(e)?wp("MapSet").proxyMap_(e,t):zk(e)?wp("MapSet").proxySet_(e,t):Swe(e,t);return(t?t.scope_:IG()).drafts_.push(n),n}function DG(e){return Yd(e)||Sl(10,e),PG(e)}function PG(e){if(!wc(e)||Vk(e))return e;const t=e[gs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=eR(e,t.scope_.immer_.useStrictShallowCopy_)}else n=eR(e,!0);return Py(n,(r,i)=>{RG(n,r,PG(i))}),t&&(t.finalized_=!1),n}var bs=new wwe,LG=bs.produce;bs.produceWithPatches.bind(bs);bs.setAutoFreeze.bind(bs);bs.setUseStrictShallowCopy.bind(bs);bs.applyPatches.bind(bs);bs.createDraft.bind(bs);bs.finishDraft.bind(bs);function kwe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function xwe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Cwe(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 L7=e=>Array.isArray(e)?e:[e];function Awe(e){const t=Array.isArray(e[0])?e[0]:e;return Cwe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function _we(e,t){const n=[],{length:r}=e;for(let i=0;i{n=Mv(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function MG(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),kwe(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=bP,argsMemoizeOptions:m=[],devModeChecks:b={}}=c,O=L7(p),y=L7(m),v=Awe(i),S=d(function(){return o++,u.apply(null,arguments)},...O),k=h(function(){a++;const w=_we(v,arguments);return s=S.apply(null,w),s},...y);return Object.assign(k,{resultFunc:u,memoizedResultFunc:S,dependencies:v,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var Dwe=MG(bP),Pwe=Object.assign((e,t=Dwe)=>{xwe(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(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>Pwe});function $G(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Lwe=$G(),Mwe=$G,$we=(...e)=>{const t=MG(...e);return(...n)=>{const r=t(...n),i=(o,...a)=>r(Yd(o)?DG(o):o,...a);return Object.assign(i,r),i}};$we(bP);var Fwe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gT:gT.apply(null,arguments)};function $y(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Rl(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=>mwe(r)&&r.type===e,n}var FG=class ab extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ab.prototype)}static get[Symbol.species](){return ab}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ab(...t[0].concat(this)):new ab(...t.concat(this))}};function $7(e){return wc(e)?LG(e,()=>{}):e}function F7(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(Rl(10));const r=n.insert(t,e);return e.set(t,r),r}function Bwe(e){return typeof e=="boolean"}var Uwe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new FG;return n&&(Bwe(n)?a.push(Lwe):a.push(Mwe(n.extraArgument))),a},jwe="RTK_autoBatch",BG=e=>t=>{setTimeout(t,e)},zwe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:BG(10),Vwe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?zwe:e.type==="callback"?e.queueNotification:BG(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>i&&c(),p=r.subscribe(d);return s.add(c),()=>{p(),s.delete(c)}},dispatch(c){var d;try{return i=!((d=c==null?void 0:c.meta)!=null&&d[jwe]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},Hwe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new FG(e);return r&&i.push(Vwe(typeof r=="object"?r:void 0)),i},Wwe=!0;function Qwe(e){const t=Uwe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(pP(n))s=CG(n);else throw new Error(Rl(1));let l;typeof r=="function"?l=r(t):l=t();let u=gT;i&&(u=Fwe({trace:!Wwe,...typeof i=="object"&&i}));const c=hwe(...l),d=Hwe(c);let p=typeof a=="function"?a(d):d();const h=u(...p);return hP(s,o,h)}function UG(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(Rl(28));if(s in t)throw new Error(Rl(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Ywe(e){return typeof e=="function"}function Gwe(e,t){let[n,r,i]=UG(t),o;if(Ywe(e))o=()=>$7(e());else{const s=$7(e);o=()=>s}function a(s=o(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,d)=>{if(d)if(Yd(c)){const h=d(c,l);return h===void 0?c:h}else{if(wc(c))return LG(c,p=>d(p,l));{const p=d(c,l);if(p===void 0){if(c===null)return c;throw new Error(Rl(9))}return p}}return c},s)}return a.getInitialState=o,a}var qwe=Symbol.for("rtk-slice-createasyncthunk");function Zwe(e,t){return`${e}/${t}`}function Xwe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[qwe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Rl(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Jwe()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(O,y){const v=typeof O=="string"?O:O.type;if(!v)throw new Error(Rl(12));if(v in u.sliceCaseReducersByType)throw new Error(Rl(13));return u.sliceCaseReducersByType[v]=y,c},addMatcher(O,y){return u.sliceMatchers.push({matcher:O,reducer:y}),c},exposeAction(O,y){return u.actionCreators[O]=y,c},exposeCaseReducer(O,y){return u.sliceCaseReducersByName[O]=y,c}};l.forEach(O=>{const y=s[O],v={reducerName:O,type:Zwe(o,O),createNotation:typeof i.reducers=="function"};tke(y)?rke(v,y,c,t):eke(v,y,c)});function d(){const[O={},y=[],v=void 0]=typeof i.extraReducers=="function"?UG(i.extraReducers):[i.extraReducers],S={...O,...u.sliceCaseReducersByType};return Gwe(i.initialState,k=>{for(let C in S)k.addCase(C,S[C]);for(let C of u.sliceMatchers)k.addMatcher(C.matcher,C.reducer);for(let C of y)k.addMatcher(C.matcher,C.reducer);v&&k.addDefaultCase(v)})}const p=O=>O,h=new WeakMap;let m;const b={name:o,reducerPath:a,reducer(O,y){return m||(m=d()),m(O,y)},actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState(){return m||(m=d()),m.getInitialState()},getSelectors(O=p){const y=F7(h,this,{insert:()=>new WeakMap});return F7(y,O,{insert:()=>{const v={};for(const[S,k]of Object.entries(i.selectors??{}))v[S]=Kwe(this,k,O,this!==b);return v}})},selectSlice(O){let y=O[this.reducerPath];return typeof y>"u"&&this!==b&&(y=this.getInitialState()),y},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(O,{reducerPath:y,...v}={}){const S=y??this.reducerPath;return O.inject({reducerPath:S,reducer:this.reducer},v),{...this,reducerPath:S}}};return b}}function Kwe(e,t,n,r){function i(o,...a){let s=n.call(e,o);return typeof s>"u"&&r&&(s=e.getInitialState()),t(s,...a)}return i.unwrapped=t,i}var Hk=Xwe();function Jwe(){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 eke({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!nke(r))throw new Error(Rl(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?$y(e,a):$y(e))}function tke(e){return e._reducerDefinitionType==="asyncThunk"}function nke(e){return e._reducerDefinitionType==="reducerWithPrepare"}function rke({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Rl(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:c}=n,d=i(e,o,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||$v,pending:s||$v,rejected:l||$v,settled:u||$v})}function $v(){}var yP="listenerMiddleware";$y(`${yP}/add`);$y(`${yP}/removeAll`);$y(`${yP}/remove`);function Rl(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 ike={theme:"default"},jG=Hk({name:"editor",initialState:ike,reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:oke}=jG.actions,zG=e=>e.config,ake=jG.reducer;function VG(e,t){return function(){return e.apply(t,arguments)}}const{toString:ske}=Object.prototype,{getPrototypeOf:OP}=Object,Wk=(e=>t=>{const n=ske.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mu=e=>(e=e.toLowerCase(),t=>Wk(t)===e),Qk=e=>t=>typeof t===e,{isArray:Ng}=Array,Fy=Qk("undefined");function lke(e){return e!==null&&!Fy(e)&&e.constructor!==null&&!Fy(e.constructor)&&Ys(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const HG=Mu("ArrayBuffer");function uke(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&HG(e.buffer),t}const cke=Qk("string"),Ys=Qk("function"),WG=Qk("number"),Yk=e=>e!==null&&typeof e=="object",dke=e=>e===!0||e===!1,YE=e=>{if(Wk(e)!=="object")return!1;const t=OP(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fke=Mu("Date"),pke=Mu("File"),hke=Mu("Blob"),mke=Mu("FileList"),gke=e=>Yk(e)&&Ys(e.pipe),bke=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ys(e.append)&&((t=Wk(e))==="formdata"||t==="object"&&Ys(e.toString)&&e.toString()==="[object FormData]"))},yke=Mu("URLSearchParams"),Oke=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function iO(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ng(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const YG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,GG=e=>!Fy(e)&&e!==YG;function oR(){const{caseless:e}=GG(this)&&this||{},t={},n=(r,i)=>{const o=e&&QG(t,i)||i;YE(t[o])&&YE(r)?t[o]=oR(t[o],r):YE(r)?t[o]=oR({},r):Ng(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(iO(t,(i,o)=>{n&&Ys(i)?e[o]=VG(i,n):e[o]=i},{allOwnKeys:r}),e),Eke=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ske=(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)},Tke=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&OP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},wke=(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},kke=e=>{if(!e)return null;if(Ng(e))return e;let t=e.length;if(!WG(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},xke=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&OP(Uint8Array)),Cke=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Ake=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_ke=Mu("HTMLFormElement"),Rke=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),B7=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ike=Mu("RegExp"),qG=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};iO(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Nke=e=>{qG(e,(t,n)=>{if(Ys(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ys(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+"'")})}})},Dke=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ng(e)?r(e):r(String(e).split(t)),n},Pke=()=>{},Lke=(e,t)=>(e=+e,Number.isFinite(e)?e:t),lA="abcdefghijklmnopqrstuvwxyz",U7="0123456789",ZG={DIGIT:U7,ALPHA:lA,ALPHA_DIGIT:lA+lA.toUpperCase()+U7},Mke=(e=16,t=ZG.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function $ke(e){return!!(e&&Ys(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Fke=e=>{const t=new Array(10),n=(r,i)=>{if(Yk(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Ng(r)?[]:{};return iO(r,(a,s)=>{const l=n(a,i+1);!Fy(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Bke=Mu("AsyncFunction"),Uke=e=>e&&(Yk(e)||Ys(e))&&Ys(e.then)&&Ys(e.catch),ut={isArray:Ng,isArrayBuffer:HG,isBuffer:lke,isFormData:bke,isArrayBufferView:uke,isString:cke,isNumber:WG,isBoolean:dke,isObject:Yk,isPlainObject:YE,isUndefined:Fy,isDate:fke,isFile:pke,isBlob:hke,isRegExp:Ike,isFunction:Ys,isStream:gke,isURLSearchParams:yke,isTypedArray:xke,isFileList:mke,forEach:iO,merge:oR,extend:vke,trim:Oke,stripBOM:Eke,inherits:Ske,toFlatObject:Tke,kindOf:Wk,kindOfTest:Mu,endsWith:wke,toArray:kke,forEachEntry:Cke,matchAll:Ake,isHTMLForm:_ke,hasOwnProperty:B7,hasOwnProp:B7,reduceDescriptors:qG,freezeMethods:Nke,toObjectSet:Dke,toCamelCase:Rke,noop:Pke,toFiniteNumber:Lke,findKey:QG,global:YG,isContextDefined:GG,ALPHABET:ZG,generateString:Mke,isSpecCompliantForm:$ke,toJSONObject:Fke,isAsyncFn:Bke,isThenable:Uke};function Xn(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)}ut.inherits(Xn,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:ut.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const XG=Xn.prototype,KG={};["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=>{KG[e]={value:e}});Object.defineProperties(Xn,KG);Object.defineProperty(XG,"isAxiosError",{value:!0});Xn.from=(e,t,n,r,i,o)=>{const a=Object.create(XG);return ut.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Xn.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const jke=null;function aR(e){return ut.isPlainObject(e)||ut.isArray(e)}function JG(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function j7(e,t,n){return e?e.concat(t).map(function(i,o){return i=JG(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function zke(e){return ut.isArray(e)&&!e.some(aR)}const Vke=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function Gk(e,t,n){if(!ut.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,O){return!ut.isUndefined(O[b])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ut.isSpecCompliantForm(t);if(!ut.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(ut.isDate(m))return m.toISOString();if(!l&&ut.isBlob(m))throw new Xn("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(m)||ut.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,b,O){let y=m;if(m&&!O&&typeof m=="object"){if(ut.endsWith(b,"{}"))b=r?b:b.slice(0,-2),m=JSON.stringify(m);else if(ut.isArray(m)&&zke(m)||(ut.isFileList(m)||ut.endsWith(b,"[]"))&&(y=ut.toArray(m)))return b=JG(b),y.forEach(function(S,k){!(ut.isUndefined(S)||S===null)&&t.append(a===!0?j7([b],k,o):a===null?b:b+"[]",u(S))}),!1}return aR(m)?!0:(t.append(j7(O,b,o),u(m)),!1)}const d=[],p=Object.assign(Vke,{defaultVisitor:c,convertValue:u,isVisitable:aR});function h(m,b){if(!ut.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(m),ut.forEach(m,function(y,v){(!(ut.isUndefined(y)||y===null)&&i.call(t,y,ut.isString(v)?v.trim():v,b,p))===!0&&h(y,b?b.concat(v):[v])}),d.pop()}}if(!ut.isObject(e))throw new TypeError("data must be an object");return h(e),t}function z7(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vP(e,t){this._pairs=[],e&&Gk(e,this,t)}const eq=vP.prototype;eq.append=function(t,n){this._pairs.push([t,n])};eq.toString=function(t){const n=t?function(r){return t.call(this,r,z7)}:z7;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Hke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tq(e,t,n){if(!t)return e;const r=n&&n.encode||Hke,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ut.isURLSearchParams(t)?t.toString():new vP(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class V7{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){ut.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nq={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wke=typeof URLSearchParams<"u"?URLSearchParams:vP,Qke=typeof FormData<"u"?FormData:null,Yke=typeof Blob<"u"?Blob:null,Gke={isBrowser:!0,classes:{URLSearchParams:Wke,FormData:Qke,Blob:Yke},protocols:["http","https","file","blob","url","data"]},rq=typeof window<"u"&&typeof document<"u",qke=(e=>rq&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Zke=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xke=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rq,hasStandardBrowserEnv:qke,hasStandardBrowserWebWorkerEnv:Zke},Symbol.toStringTag,{value:"Module"})),yu={...Xke,...Gke};function Kke(e,t){return Gk(e,new yu.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return yu.isNode&&ut.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Jke(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function exe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&ut.isArray(i)?i.length:a,l?(ut.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ut.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ut.isArray(i[a])&&(i[a]=exe(i[a])),!s)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(r,i)=>{t(Jke(r),i,n,0)}),n}return null}function txe(e,t,n){if(ut.isString(e))try{return(t||JSON.parse)(e),ut.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const EP={transitional:nq,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ut.isObject(t);if(o&&ut.isHTMLForm(t)&&(t=new FormData(t)),ut.isFormData(t))return i&&i?JSON.stringify(iq(t)):t;if(ut.isArrayBuffer(t)||ut.isBuffer(t)||ut.isStream(t)||ut.isFile(t)||ut.isBlob(t))return t;if(ut.isArrayBufferView(t))return t.buffer;if(ut.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kke(t,this.formSerializer).toString();if((s=ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Gk(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),txe(t)):t}],transformResponse:[function(t){const n=this.transitional||EP.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ut.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Xn.from(s,Xn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yu.classes.FormData,Blob:yu.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ut.forEach(["delete","get","head","post","put","patch"],e=>{EP.headers[e]={}});const SP=EP,nxe=ut.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"]),rxe=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&nxe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},H7=Symbol("internals");function I0(e){return e&&String(e).trim().toLowerCase()}function GE(e){return e===!1||e==null?e:ut.isArray(e)?e.map(GE):String(e)}function ixe(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 oxe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uA(e,t,n,r,i){if(ut.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ut.isString(t)){if(ut.isString(r))return t.indexOf(r)!==-1;if(ut.isRegExp(r))return r.test(t)}}function axe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sxe(e,t){const n=ut.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class qk{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=I0(l);if(!c)throw new Error("header name must be a non-empty string");const d=ut.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=GE(s))}const a=(s,l)=>ut.forEach(s,(u,c)=>o(u,c,l));return ut.isPlainObject(t)||t instanceof this.constructor?a(t,n):ut.isString(t)&&(t=t.trim())&&!oxe(t)?a(rxe(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=I0(t),t){const r=ut.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return ixe(i);if(ut.isFunction(n))return n.call(this,i,r);if(ut.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=I0(t),t){const r=ut.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||uA(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=I0(a),a){const s=ut.findKey(r,a);s&&(!n||uA(r,r[s],s,n))&&(delete r[s],i=!0)}}return ut.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||uA(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ut.forEach(this,(i,o)=>{const a=ut.findKey(r,o);if(a){n[a]=GE(i),delete n[o];return}const s=t?axe(o):String(o).trim();s!==o&&delete n[o],n[s]=GE(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ut.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ut.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[H7]=this[H7]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=I0(a);r[s]||(sxe(i,a),r[s]=!0)}return ut.isArray(t)?t.forEach(o):o(t),this}}qk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ut.reduceDescriptors(qk.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ut.freezeMethods(qk);const mc=qk;function cA(e,t){const n=this||SP,r=t||n,i=mc.from(r.headers);let o=r.data;return ut.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function oq(e){return!!(e&&e.__CANCEL__)}function oO(e,t,n){Xn.call(this,e??"canceled",Xn.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits(oO,Xn,{__CANCEL__:!0});function lxe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Xn("Request failed with status code "+n.status,[Xn.ERR_BAD_REQUEST,Xn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const uxe=yu.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];ut.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ut.isString(r)&&a.push("path="+r),ut.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 cxe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dxe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function aq(e,t){return e&&!cxe(t)?dxe(e,t):t}const fxe=yu.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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(a){const s=ut.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function pxe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hxe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let d=o,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),u=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const mxe=typeof XMLHttpRequest<"u",gxe=mxe&&function(e){return new Promise(function(n,r){let i=e.data;const o=mc.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(ut.isFormData(i)){if(yu.hasStandardBrowserEnv||yu.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[b,...O]=c?c.split(";").map(y=>y.trim()).filter(Boolean):[];o.setContentType([b||"multipart/form-data",...O].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",O=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(b+":"+O))}const p=aq(e.baseURL,e.url);d.open(e.method.toUpperCase(),tq(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const b=mc.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:b,config:e,request:d};lxe(function(S){n(S),u()},function(S){r(S),u()},y),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(r(new Xn("Request aborted",Xn.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Xn("Network Error",Xn.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let O=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||nq;e.timeoutErrorMessage&&(O=e.timeoutErrorMessage),r(new Xn(O,y.clarifyTimeoutError?Xn.ETIMEDOUT:Xn.ECONNABORTED,e,d)),d=null},yu.hasStandardBrowserEnv&&(s&&ut.isFunction(s)&&(s=s(e)),s||s!==!1&&fxe(p))){const b=e.xsrfHeaderName&&e.xsrfCookieName&&uxe.read(e.xsrfCookieName);b&&o.set(e.xsrfHeaderName,b)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&ut.forEach(o.toJSON(),function(O,y){d.setRequestHeader(y,O)}),ut.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&a!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",W7(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",W7(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=b=>{d&&(r(!b||b.type?new oO(null,e,d):b),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=pxe(p);if(m&&yu.protocols.indexOf(m)===-1){r(new Xn("Unsupported protocol "+m+":",Xn.ERR_BAD_REQUEST,e));return}d.send(i||null)})},sR={http:jke,xhr:gxe};ut.forEach(sR,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Q7=e=>`- ${e}`,bxe=e=>ut.isFunction(e)||e===null||e===!1,sq={getAdapter:e=>{e=ut.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : `+o.map(Q7).join(` -`):" "+Q7(o[0]):"as no adapter specified";throw new Xn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:sR};function dA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oO(null,e)}function Y7(e){return dA(e),e.headers=mc.from(e.headers),e.data=cA.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sq.getAdapter(e.adapter||SP.adapter)(e).then(function(r){return dA(e),r.data=cA.call(e,e.transformResponse,r),r.headers=mc.from(r.headers),r},function(r){return oq(r)||(dA(e),r&&r.response&&(r.response.data=cA.call(e,e.transformResponse,r.response),r.response.headers=mc.from(r.response.headers))),Promise.reject(r)})}const G7=e=>e instanceof mc?e.toJSON():e;function ag(e,t){t=t||{};const n={};function r(u,c,d){return ut.isPlainObject(u)&&ut.isPlainObject(c)?ut.merge.call({caseless:d},u,c):ut.isPlainObject(c)?ut.merge({},c):ut.isArray(c)?c.slice():c}function i(u,c,d){if(ut.isUndefined(c)){if(!ut.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!ut.isUndefined(c))return r(void 0,c)}function a(u,c){if(ut.isUndefined(c)){if(!ut.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(G7(u),G7(c),!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,p=d(e[c],t[c],c);ut.isUndefined(p)&&d!==s||(n[c]=p)}),n}const lq="1.6.5",TP={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{TP[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const q7={};TP.transitional=function(t,n,r){function i(o,a){return"[Axios v"+lq+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Xn(i(a," has been removed"+(n?" in "+n:"")),Xn.ERR_DEPRECATED);return n&&!q7[a]&&(q7[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function yxe(e,t,n){if(typeof e!="object")throw new Xn("options must be an object",Xn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Xn("option "+o+" must be "+l,Xn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Xn("Unknown option "+o,Xn.ERR_BAD_OPTION)}}const lR={assertOptions:yxe,validators:TP},Wc=lR.validators;class OT{constructor(t){this.defaults=t,this.interceptors={request:new V7,response:new V7}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ag(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&lR.assertOptions(r,{silentJSONParsing:Wc.transitional(Wc.boolean),forcedJSONParsing:Wc.transitional(Wc.boolean),clarifyTimeoutError:Wc.transitional(Wc.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:lR.assertOptions(i,{encode:Wc.function,serialize:Wc.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ut.merge(o.common,o[n.method]);o&&ut.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=mc.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,s.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let c,d=0,p;if(!l){const m=[Y7.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new oO(o,a,s),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 wP(function(i){t=i}),cancel:t}}}const Oxe=wP;function vxe(e){return function(n){return e.apply(null,n)}}function Exe(e){return ut.isObject(e)&&e.isAxiosError===!0}const uR={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(uR).forEach(([e,t])=>{uR[t]=e});const Sxe=uR;function uq(e){const t=new qE(e),n=VG(qE.prototype.request,t);return ut.extend(n,qE.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return uq(ag(e,i))},n}const Hn=uq(SP);Hn.Axios=qE;Hn.CanceledError=oO;Hn.CancelToken=Oxe;Hn.isCancel=oq;Hn.VERSION=lq;Hn.toFormData=Gk;Hn.AxiosError=Xn;Hn.Cancel=Hn.CanceledError;Hn.all=function(t){return Promise.all(t)};Hn.spread=vxe;Hn.isAxiosError=Exe;Hn.mergeConfig=ag;Hn.AxiosHeaders=mc;Hn.formToJSON=e=>iq(ut.isHTMLForm(e)?new FormData(e):e);Hn.getAdapter=sq.getAdapter;Hn.HttpStatusCode=Sxe;Hn.default=Hn;const Txe={mode:"both",shareRole:null,doc:null,client:null},cq=Hk({name:"editor",initialState:Txe,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}}}),{setMode:cR,setDoc:vT,setClient:ET,setShareRole:wxe}=cq.actions,Zk=e=>e.editor,kxe=cq.reducer,xxe={data:null},dq=Hk({name:"user",initialState:xxe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:dR}=dq.actions,kP=e=>e.user,Cxe=dq.reducer;var Ng=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(){}},sg=typeof window>"u"||"Deno"in window;function Is(){}function Axe(e,t){return typeof e=="function"?e(t):e}function fR(e){return typeof e=="number"&&e>=0&&e!==1/0}function fq(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Z7(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==xP(a,t.options))return!1}else if(!By(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function X7(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(kp(t.options.mutationKey)!==kp(o))return!1}else if(!By(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function xP(e,t){return((t==null?void 0:t.queryKeyHashFn)||kp)(e)}function kp(e){return JSON.stringify(e,(t,n)=>pR(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function By(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!By(e[n],t[n])):!1}function pq(e,t){if(e===t)return e;const n=K7(e)&&K7(t);if(n||pR(e)&&pR(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!J7(n)||!n.hasOwnProperty("isPrototypeOf"))}function J7(e){return Object.prototype.toString.call(e)==="[object Object]"}function _xe(e){return new Promise(t=>{setTimeout(t,e)})}function hR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pq(e,t):t}function Rxe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ixe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Jf,ld,Rm,nH,Dxe=(nH=class extends Ng{constructor(){super();Xt(this,Jf,void 0);Xt(this,ld,void 0);Xt(this,Rm,void 0);Bt(this,Rm,t=>{if(!sg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ke(this,ld)||this.setEventListener(ke(this,Rm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,ld))==null||t.call(this),Bt(this,ld,void 0))}setEventListener(t){var n;Bt(this,Rm,t),(n=ke(this,ld))==null||n.call(this),Bt(this,ld,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ke(this,Jf)!==t&&(Bt(this,Jf,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof ke(this,Jf)=="boolean"?ke(this,Jf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jf=new WeakMap,ld=new WeakMap,Rm=new WeakMap,nH),TT=new Dxe,Im,ud,Dm,rH,Nxe=(rH=class extends Ng{constructor(){super();Xt(this,Im,!0);Xt(this,ud,void 0);Xt(this,Dm,void 0);Bt(this,Dm,t=>{if(!sg&&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(){ke(this,ud)||this.setEventListener(ke(this,Dm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,ud))==null||t.call(this),Bt(this,ud,void 0))}setEventListener(t){var n;Bt(this,Dm,t),(n=ke(this,ud))==null||n.call(this),Bt(this,ud,t(this.setOnline.bind(this)))}setOnline(t){ke(this,Im)!==t&&(Bt(this,Im,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ke(this,Im)}},Im=new WeakMap,ud=new WeakMap,Dm=new WeakMap,rH),wT=new Nxe;function Pxe(e){return Math.min(1e3*2**e,3e4)}function Xk(e){return(e??"online")==="online"?wT.isOnline():!0}var hq=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fA(e){return e instanceof hq}function mq(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((O,y)=>{o=O,a=y}),l=O=>{var y;r||(h(new hq(O)),(y=e.abort)==null||y.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!TT.isFocused()||e.networkMode!=="always"&&!wT.isOnline(),p=O=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,O),i==null||i(),o(O))},h=O=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,O),i==null||i(),a(O))},m=()=>new Promise(O=>{var y;i=v=>{const S=r||!d();return S&&O(v),S},(y=e.onPause)==null||y.call(e)}).then(()=>{var O;i=void 0,r||(O=e.onContinue)==null||O.call(e)}),b=()=>{if(r)return;let O;try{O=e.fn()}catch(y){O=Promise.reject(y)}Promise.resolve(O).then(p).catch(y=>{var w;if(r)return;const v=e.retry??(sg?0:3),S=e.retryDelay??Pxe,k=typeof S=="function"?S(n,y):S,C=v===!0||typeof v=="number"&&n{if(d())return m()}).then(()=>{t?h(y):b()})})};return Xk(e.networkMode)?b():m().then(b),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function Lxe(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const o=p=>{i=p},a=p=>{let h;t++;try{h=p()}finally{t--,t||u()}return h},s=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...h)=>{s(()=>{p(...h)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(h=>{n(h)})})})};return{batch:a,batchCalls:l,schedule:s,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:o}}var Pi=Lxe(),ep,iH,gq=(iH=class{constructor(){Xt(this,ep,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fR(this.gcTime)&&Bt(this,ep,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(sg?1/0:5*60*1e3))}clearGcTimeout(){ke(this,ep)&&(clearTimeout(ke(this,ep)),Bt(this,ep,void 0))}},ep=new WeakMap,iH),Nm,Pm,Cs,cd,As,Gi,w1,tp,Lm,ZE,fl,tc,oH,Mxe=(oH=class extends gq{constructor(t){super();Xt(this,Lm);Xt(this,fl);Xt(this,Nm,void 0);Xt(this,Pm,void 0);Xt(this,Cs,void 0);Xt(this,cd,void 0);Xt(this,As,void 0);Xt(this,Gi,void 0);Xt(this,w1,void 0);Xt(this,tp,void 0);Bt(this,tp,!1),Bt(this,w1,t.defaultOptions),Tn(this,Lm,ZE).call(this,t.options),Bt(this,Gi,[]),Bt(this,Cs,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bt(this,Nm,t.state||$xe(this.options)),this.state=ke(this,Nm),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!ke(this,Gi).length&&this.state.fetchStatus==="idle"&&ke(this,Cs).remove(this)}setData(t,n){const r=hR(this.state.data,t,this.options);return Tn(this,fl,tc).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Tn(this,fl,tc).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=ke(this,cd);return(r=ke(this,As))==null||r.cancel(t),n?n.then(Is).catch(Is):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ke(this,Nm))}isActive(){return ke(this,Gi).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||ke(this,Gi).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!fq(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=ke(this,Gi).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,As))==null||n.continue()}onOnline(){var n;const t=ke(this,Gi).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,As))==null||n.continue()}addObserver(t){ke(this,Gi).includes(t)||(ke(this,Gi).push(t),this.clearGcTimeout(),ke(this,Cs).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){ke(this,Gi).includes(t)&&(Bt(this,Gi,ke(this,Gi).filter(n=>n!==t)),ke(this,Gi).length||(ke(this,As)&&(ke(this,tp)?ke(this,As).cancel({revert:!0}):ke(this,As).cancelRetry()),this.scheduleGc()),ke(this,Cs).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return ke(this,Gi).length}invalidate(){this.state.isInvalidated||Tn(this,fl,tc).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ke(this,cd))return(u=ke(this,As))==null||u.continueRetry(),ke(this,cd)}if(t&&Tn(this,Lm,ZE).call(this,t),!this.options.queryFn){const h=ke(this,Gi).find(m=>m.options.queryFn);h&&Tn(this,Lm,ZE).call(this,h.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Bt(this,tp,!0),r.signal)})};o(i);const a=()=>this.options.queryFn?(Bt(this,tp,!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}'`)),s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),Bt(this,Pm,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Tn(this,fl,tc).call(this,{type:"fetch",meta:(p=s.fetchOptions)==null?void 0:p.meta});const l=h=>{var m,b,O,y;fA(h)&&h.silent||Tn(this,fl,tc).call(this,{type:"error",error:h}),fA(h)||((b=(m=ke(this,Cs).config).onError)==null||b.call(m,h,this),(y=(O=ke(this,Cs).config).onSettled)==null||y.call(O,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Bt(this,As,mq({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,b,O,y;if(typeof h>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(b=(m=ke(this,Cs).config).onSuccess)==null||b.call(m,h,this),(y=(O=ke(this,Cs).config).onSettled)==null||y.call(O,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,m)=>{Tn(this,fl,tc).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{Tn(this,fl,tc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,fl,tc).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),Bt(this,cd,ke(this,As).promise),ke(this,cd)}},Nm=new WeakMap,Pm=new WeakMap,Cs=new WeakMap,cd=new WeakMap,As=new WeakMap,Gi=new WeakMap,w1=new WeakMap,tp=new WeakMap,Lm=new WeakSet,ZE=function(t){this.options={...ke(this,w1),...t},this.updateGcTime(this.options.gcTime)},fl=new WeakSet,tc=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:Xk(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 fA(i)&&i.revert&&ke(this,Pm)?{...ke(this,Pm),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),Pi.batch(()=>{ke(this,Gi).forEach(r=>{r.onQueryUpdate()}),ke(this,Cs).notify({query:this,type:"updated",action:t})})},oH);function $xe(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 su,aH,bq=(aH=class extends Ng{constructor(t={}){super();Xt(this,su,void 0);this.config=t,Bt(this,su,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??xP(i,n);let a=this.get(o);return a||(a=new Mxe({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){ke(this,su).has(t.queryHash)||(ke(this,su).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ke(this,su).get(t.queryHash);n&&(t.destroy(),n===t&&ke(this,su).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Pi.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ke(this,su).get(t)}getAll(){return[...ke(this,su).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Z7(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Z7(t,r)):n}notify(t){Pi.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Pi.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Pi.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},su=new WeakMap,aH),lu,k1,Ga,Mm,uu,qc,sH,Fxe=(sH=class extends gq{constructor(t){super();Xt(this,uu);Xt(this,lu,void 0);Xt(this,k1,void 0);Xt(this,Ga,void 0);Xt(this,Mm,void 0);this.mutationId=t.mutationId,Bt(this,k1,t.defaultOptions),Bt(this,Ga,t.mutationCache),Bt(this,lu,[]),this.state=t.state||yq(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...ke(this,k1),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ke(this,lu).includes(t)||(ke(this,lu).push(t),this.clearGcTimeout(),ke(this,Ga).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Bt(this,lu,ke(this,lu).filter(n=>n!==t)),this.scheduleGc(),ke(this,Ga).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ke(this,lu).length||(this.state.status==="pending"?this.scheduleGc():ke(this,Ga).remove(this))}continue(){var t;return((t=ke(this,Mm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E;const n=()=>(Bt(this,Mm,mq({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,P)=>{Tn(this,uu,qc).call(this,{type:"failed",failureCount:$,error:P})},onPause:()=>{Tn(this,uu,qc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,uu,qc).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),ke(this,Mm).promise),r=this.state.status==="pending";try{if(!r){Tn(this,uu,qc).call(this,{type:"pending",variables:t}),await((o=(i=ke(this,Ga).config).onMutate)==null?void 0:o.call(i,t,this));const P=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));P!==this.state.context&&Tn(this,uu,qc).call(this,{type:"pending",context:P,variables:t})}const $=await n();return await((u=(l=ke(this,Ga).config).onSuccess)==null?void 0:u.call(l,$,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,$,t,this.state.context)),await((h=(p=ke(this,Ga).config).onSettled)==null?void 0:h.call(p,$,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,$,null,t,this.state.context)),Tn(this,uu,qc).call(this,{type:"success",data:$}),$}catch($){try{throw await((y=(O=ke(this,Ga).config).onError)==null?void 0:y.call(O,$,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,$,t,this.state.context)),await((C=(k=ke(this,Ga).config).onSettled)==null?void 0:C.call(k,void 0,$,this.state.variables,this.state.context,this)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,void 0,$,t,this.state.context)),$}finally{Tn(this,uu,qc).call(this,{type:"error",error:$})}}}},lu=new WeakMap,k1=new WeakMap,Ga=new WeakMap,Mm=new WeakMap,uu=new WeakSet,qc=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:!Xk(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),Pi.batch(()=>{ke(this,lu).forEach(r=>{r.onMutationUpdate(t)}),ke(this,Ga).notify({mutation:this,type:"updated",action:t})})},sH);function yq(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _s,x1,np,lH,Bxe=(lH=class extends Ng{constructor(t={}){super();Xt(this,_s,void 0);Xt(this,x1,void 0);Xt(this,np,void 0);this.config=t,Bt(this,_s,[]),Bt(this,x1,0)}build(t,n,r){const i=new Fxe({mutationCache:this,mutationId:++ov(this,x1)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ke(this,_s).push(t),this.notify({type:"added",mutation:t})}remove(t){Bt(this,_s,ke(this,_s).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Pi.batch(()=>{ke(this,_s).forEach(t=>{this.remove(t)})})}getAll(){return ke(this,_s)}find(t){const n={exact:!0,...t};return ke(this,_s).find(r=>X7(n,r))}findAll(t={}){return ke(this,_s).filter(n=>X7(t,n))}notify(t){Pi.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Bt(this,np,(ke(this,np)??Promise.resolve()).then(()=>{const t=ke(this,_s).filter(n=>n.state.isPaused);return Pi.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Is)),Promise.resolve()))}).then(()=>{Bt(this,np,void 0)})),ke(this,np)}},_s=new WeakMap,x1=new WeakMap,np=new WeakMap,lH);function mR(e){return{onFetch:(t,n)=>{const r=async()=>{var m,b,O,y,v;const i=t.options,o=(O=(b=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:b.fetchMore)==null?void 0:O.direction,a=((y=t.state.data)==null?void 0:y.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(S,k,C)=>{if(u)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const w={queryKey:t.queryKey,pageParam:k,direction:C?"backward":"forward",meta:t.options.meta};c(w);const E=await d(w),{maxPages:$}=t.options,P=C?Ixe:Rxe;return{pages:P(S.pages,E,$),pageParams:P(S.pageParams,k,$)}};let h;if(o&&a.length){const S=o==="backward",k=S?Oq:gR,C={pages:a,pageParams:s},w=k(i,C);h=await p(C,w,S)}else{h=await p(l,s[0]??i.initialPageParam);const S=e??a.length;for(let k=1;k{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function gR(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function Oq(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function Uxe(e,t){return t?gR(e,t)!=null:!1}function jxe(e,t){return!t||!e.getPreviousPageParam?!1:Oq(e,t)!=null}var Ri,dd,fd,$m,Fm,pd,Bm,Um,uH,zxe=(uH=class{constructor(e={}){Xt(this,Ri,void 0);Xt(this,dd,void 0);Xt(this,fd,void 0);Xt(this,$m,void 0);Xt(this,Fm,void 0);Xt(this,pd,void 0);Xt(this,Bm,void 0);Xt(this,Um,void 0);Bt(this,Ri,e.queryCache||new bq),Bt(this,dd,e.mutationCache||new Bxe),Bt(this,fd,e.defaultOptions||{}),Bt(this,$m,new Map),Bt(this,Fm,new Map),Bt(this,pd,0)}mount(){ov(this,pd)._++,ke(this,pd)===1&&(Bt(this,Bm,TT.subscribe(()=>{TT.isFocused()&&(this.resumePausedMutations(),ke(this,Ri).onFocus())})),Bt(this,Um,wT.subscribe(()=>{wT.isOnline()&&(this.resumePausedMutations(),ke(this,Ri).onOnline())})))}unmount(){var e,t;ov(this,pd)._--,ke(this,pd)===0&&((e=ke(this,Bm))==null||e.call(this),Bt(this,Bm,void 0),(t=ke(this,Um))==null||t.call(this),Bt(this,Um,void 0))}isFetching(e){return ke(this,Ri).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ke(this,dd).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=ke(this,Ri).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=ke(this,Ri).find({queryKey:e}),i=r==null?void 0:r.state.data,o=Axe(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return ke(this,Ri).build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Pi.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=ke(this,Ri).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=ke(this,Ri);Pi.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ke(this,Ri),r={type:"active",...e};return Pi.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Pi.batch(()=>ke(this,Ri).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Is).catch(Is)}invalidateQueries(e={},t={}){return Pi.batch(()=>{if(ke(this,Ri).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=Pi.batch(()=>ke(this,Ri).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Is)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Is)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=ke(this,Ri).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Is).catch(Is)}fetchInfiniteQuery(e){return e.behavior=mR(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Is).catch(Is)}resumePausedMutations(){return ke(this,dd).resumePausedMutations()}getQueryCache(){return ke(this,Ri)}getMutationCache(){return ke(this,dd)}getDefaultOptions(){return ke(this,fd)}setDefaultOptions(e){Bt(this,fd,e)}setQueryDefaults(e,t){ke(this,$m).set(kp(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ke(this,$m).values()];let n={};return t.forEach(r=>{By(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ke(this,Fm).set(kp(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ke(this,Fm).values()];let n={};return t.forEach(r=>{By(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...ke(this,fd).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xP(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:{...ke(this,fd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ke(this,Ri).clear(),ke(this,dd).clear()}},Ri=new WeakMap,dd=new WeakMap,fd=new WeakMap,$m=new WeakMap,Fm=new WeakMap,pd=new WeakMap,Bm=new WeakMap,Um=new WeakMap,uH),va,Dr,C1,ea,rp,jm,cu,A1,zm,Vm,ip,op,hd,Hm,ap,sb,_1,bR,R1,yR,I1,OR,D1,vR,N1,ER,P1,SR,L1,TR,ww,Eq,cH,vq=(cH=class extends Ng{constructor(t,n){super();Xt(this,ap);Xt(this,_1);Xt(this,R1);Xt(this,I1);Xt(this,D1);Xt(this,N1);Xt(this,P1);Xt(this,L1);Xt(this,ww);Xt(this,va,void 0);Xt(this,Dr,void 0);Xt(this,C1,void 0);Xt(this,ea,void 0);Xt(this,rp,void 0);Xt(this,jm,void 0);Xt(this,cu,void 0);Xt(this,A1,void 0);Xt(this,zm,void 0);Xt(this,Vm,void 0);Xt(this,ip,void 0);Xt(this,op,void 0);Xt(this,hd,void 0);Xt(this,Hm,new Set);this.options=n,Bt(this,va,t),Bt(this,cu,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ke(this,Dr).addObserver(this),eU(ke(this,Dr),this.options)?Tn(this,ap,sb).call(this):this.updateResult(),Tn(this,D1,vR).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wR(ke(this,Dr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wR(ke(this,Dr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Tn(this,N1,ER).call(this),Tn(this,P1,SR).call(this),ke(this,Dr).removeObserver(this)}setOptions(t,n){const r=this.options,i=ke(this,Dr);if(this.options=ke(this,va).defaultQueryOptions(t),ST(r,this.options)||ke(this,va).getQueryCache().notify({type:"observerOptionsUpdated",query:ke(this,Dr),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),Tn(this,L1,TR).call(this);const o=this.hasListeners();o&&tU(ke(this,Dr),i,this.options,r)&&Tn(this,ap,sb).call(this),this.updateResult(n),o&&(ke(this,Dr)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Tn(this,_1,bR).call(this);const a=Tn(this,R1,yR).call(this);o&&(ke(this,Dr)!==i||this.options.enabled!==r.enabled||a!==ke(this,hd))&&Tn(this,I1,OR).call(this,a)}getOptimisticResult(t){const n=ke(this,va).getQueryCache().build(ke(this,va),t),r=this.createResult(n,t);return Hxe(this,r)&&(Bt(this,ea,r),Bt(this,jm,this.options),Bt(this,rp,ke(this,Dr).state)),r}getCurrentResult(){return ke(this,ea)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(ke(this,Hm).add(r),t[r])})}),n}getCurrentQuery(){return ke(this,Dr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ke(this,va).defaultQueryOptions(t),r=ke(this,va).getQueryCache().build(ke(this,va),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Tn(this,ap,sb).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ke(this,ea)))}createResult(t,n){var w;const r=ke(this,Dr),i=this.options,o=ke(this,ea),a=ke(this,rp),s=ke(this,jm),u=t!==r?t.state:ke(this,C1),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:h,status:m}=c,b=!1,O;if(n._optimisticResults){const E=this.hasListeners(),$=!E&&eU(t,n),P=E&&tU(t,r,n,i);($||P)&&(h=Xk(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(m="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(o&&c.data===(a==null?void 0:a.data)&&n.select===ke(this,A1))O=ke(this,zm);else try{Bt(this,A1,n.select),O=n.select(c.data),O=hR(o==null?void 0:o.data,O,n),Bt(this,zm,O),Bt(this,cu,null)}catch(E){Bt(this,cu,E)}else O=c.data;if(typeof n.placeholderData<"u"&&typeof O>"u"&&m==="pending"){let E;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))E=o.data;else if(E=typeof n.placeholderData=="function"?n.placeholderData((w=ke(this,Vm))==null?void 0:w.state.data,ke(this,Vm)):n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),Bt(this,cu,null)}catch($){Bt(this,cu,$)}typeof E<"u"&&(m="success",O=hR(o==null?void 0:o.data,E,n),b=!0)}ke(this,cu)&&(d=ke(this,cu),O=ke(this,zm),p=Date.now(),m="error");const y=h==="fetching",v=m==="pending",S=m==="error",k=v&&y;return{status:m,fetchStatus:h,isPending:v,isSuccess:m==="success",isError:S,isInitialLoading:k,isLoading:k,data:O,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!v,isLoadingError:S&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:b,isRefetchError:S&&c.dataUpdatedAt!==0,isStale:CP(t,n),refetch:this.refetch}}updateResult(t){const n=ke(this,ea),r=this.createResult(ke(this,Dr),this.options);if(Bt(this,rp,ke(this,Dr).state),Bt(this,jm,this.options),ke(this,rp).data!==void 0&&Bt(this,Vm,ke(this,Dr)),ST(r,n))return;Bt(this,ea,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!ke(this,Hm).size)return!0;const l=new Set(s??ke(this,Hm));return this.options.throwOnError&&l.add("error"),Object.keys(ke(this,ea)).some(u=>{const c=u;return ke(this,ea)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Tn(this,ww,Eq).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tn(this,D1,vR).call(this)}},va=new WeakMap,Dr=new WeakMap,C1=new WeakMap,ea=new WeakMap,rp=new WeakMap,jm=new WeakMap,cu=new WeakMap,A1=new WeakMap,zm=new WeakMap,Vm=new WeakMap,ip=new WeakMap,op=new WeakMap,hd=new WeakMap,Hm=new WeakMap,ap=new WeakSet,sb=function(t){Tn(this,L1,TR).call(this);let n=ke(this,Dr).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Is)),n},_1=new WeakSet,bR=function(){if(Tn(this,N1,ER).call(this),sg||ke(this,ea).isStale||!fR(this.options.staleTime))return;const n=fq(ke(this,ea).dataUpdatedAt,this.options.staleTime)+1;Bt(this,ip,setTimeout(()=>{ke(this,ea).isStale||this.updateResult()},n))},R1=new WeakSet,yR=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ke(this,Dr)):this.options.refetchInterval)??!1},I1=new WeakSet,OR=function(t){Tn(this,P1,SR).call(this),Bt(this,hd,t),!(sg||this.options.enabled===!1||!fR(ke(this,hd))||ke(this,hd)===0)&&Bt(this,op,setInterval(()=>{(this.options.refetchIntervalInBackground||TT.isFocused())&&Tn(this,ap,sb).call(this)},ke(this,hd)))},D1=new WeakSet,vR=function(){Tn(this,_1,bR).call(this),Tn(this,I1,OR).call(this,Tn(this,R1,yR).call(this))},N1=new WeakSet,ER=function(){ke(this,ip)&&(clearTimeout(ke(this,ip)),Bt(this,ip,void 0))},P1=new WeakSet,SR=function(){ke(this,op)&&(clearInterval(ke(this,op)),Bt(this,op,void 0))},L1=new WeakSet,TR=function(){const t=ke(this,va).getQueryCache().build(ke(this,va),this.options);if(t===ke(this,Dr))return;const n=ke(this,Dr);Bt(this,Dr,t),Bt(this,C1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ww=new WeakSet,Eq=function(t){Pi.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ke(this,ea))}),ke(this,va).getQueryCache().notify({query:ke(this,Dr),type:"observerResultsUpdated"})})},cH);function Vxe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function eU(e,t){return Vxe(e,t)||e.state.dataUpdatedAt>0&&wR(e,t,t.refetchOnMount)}function wR(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&CP(e,t)}return!1}function tU(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&CP(e,n)}function CP(e,t){return e.isStaleByTime(t.staleTime)}function Hxe(e,t){return!ST(e.getCurrentResult(),t)}var Wxe=class extends vq{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:mR()},t)}getOptimisticResult(e){return e.behavior=mR(),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,u,c,d;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o}=r,a=i&&((u=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:u.direction)==="forward",s=i&&((d=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:d.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Uxe(t,n.data),hasPreviousPage:jxe(t,n.data),isFetchingNextPage:a,isFetchingPreviousPage:s,isRefetching:o&&!a&&!s}}},md,ac,qa,sc,Wm,XE,M1,kR,dH,Qxe=(dH=class extends Ng{constructor(n,r){super();Xt(this,Wm);Xt(this,M1);Xt(this,md,void 0);Xt(this,ac,void 0);Xt(this,qa,void 0);Xt(this,sc,void 0);Bt(this,ac,void 0),Bt(this,md,n),this.setOptions(r),this.bindMethods(),Tn(this,Wm,XE).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=ke(this,md).defaultMutationOptions(n),ST(r,this.options)||ke(this,md).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ke(this,qa),observer:this}),(i=ke(this,qa))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&kp(r.mutationKey)!==kp(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=ke(this,qa))==null||n.removeObserver(this)}onMutationUpdate(n){Tn(this,Wm,XE).call(this),Tn(this,M1,kR).call(this,n)}getCurrentResult(){return ke(this,ac)}reset(){var n;(n=ke(this,qa))==null||n.removeObserver(this),Bt(this,qa,void 0),Tn(this,Wm,XE).call(this),Tn(this,M1,kR).call(this)}mutate(n,r){var i;return Bt(this,sc,r),(i=ke(this,qa))==null||i.removeObserver(this),Bt(this,qa,ke(this,md).getMutationCache().build(ke(this,md),this.options)),ke(this,qa).addObserver(this),ke(this,qa).execute(n)}},md=new WeakMap,ac=new WeakMap,qa=new WeakMap,sc=new WeakMap,Wm=new WeakSet,XE=function(){var r;const n=((r=ke(this,qa))==null?void 0:r.state)??yq();Bt(this,ac,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},M1=new WeakSet,kR=function(n){Pi.batch(()=>{var r,i,o,a,s,l,u,c;if(ke(this,sc)&&this.hasListeners()){const d=ke(this,ac).variables,p=ke(this,ac).context;(n==null?void 0:n.type)==="success"?((i=(r=ke(this,sc)).onSuccess)==null||i.call(r,n.data,d,p),(a=(o=ke(this,sc)).onSettled)==null||a.call(o,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(s=ke(this,sc)).onError)==null||l.call(s,n.error,d,p),(c=(u=ke(this,sc)).onSettled)==null||c.call(u,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(ke(this,ac))})})},dH),Sq=I.createContext(void 0),aO=e=>{const t=I.useContext(Sq);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Yxe=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.createElement(Sq.Provider,{value:e},t)),Tq=I.createContext(!1),Gxe=()=>I.useContext(Tq);Tq.Provider;function qxe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Zxe=I.createContext(qxe()),Xxe=()=>I.useContext(Zxe);function wq(e,t){return typeof e=="function"?e(...t):!!e}var Kxe=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Jxe=e=>{I.useEffect(()=>{e.clearReset()},[e])},eCe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&wq(n,[e.error,r]),tCe=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},nCe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,rCe=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function kq(e,t,n){const r=aO(n),i=Gxe(),o=Xxe(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",tCe(a),Kxe(a,o),Jxe(o);const[s]=I.useState(()=>new t(r,a)),l=s.getOptimisticResult(a);if(I.useSyncExternalStore(I.useCallback(u=>{const c=i?()=>{}:s.subscribe(Pi.batchCalls(u));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),I.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),nCe(a,l))throw rCe(a,s,o);if(eCe({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function sO(e,t){return kq(e,vq,t)}function Pg(e,t){const n=aO(t),[r]=I.useState(()=>new Qxe(n,e));I.useEffect(()=>{r.setOptions(e)},[r,e]);const i=I.useSyncExternalStore(I.useCallback(a=>r.subscribe(Pi.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=I.useCallback((a,s)=>{r.mutate(a,s).catch(iCe)},[r]);if(i.error&&wq(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function iCe(){}function AP(e,t){return kq(e,Wxe,t)}const xq=e=>["workspaces",e,"documents"],oCe=(e,t)=>["workpsaces",e,"documents",t],aCe=e=>AP({queryKey:xq(e||""),queryFn:async({pageParam:n})=>(await Hn.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:20}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),Cq=(e,t)=>sO({queryKey:oCe(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await Hn.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}}),sCe=e=>{const t=aO();return Pg({mutationFn:async n=>(await Hn.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:xq(e)})}})},lCe=(e,t)=>Pg({mutationFn:async n=>(await Hn.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data}),uCe=e=>["workspaces",e],Aq=()=>["workspaces"],lO=e=>sO({queryKey:uCe(e||""),enabled:!!e,queryFn:async()=>(await Hn.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),cCe=()=>AP({queryKey:Aq(),queryFn:async({pageParam:t})=>(await Hn.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),dCe=()=>{const e=aO();return Pg({mutationFn:async t=>(await Hn.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:Aq()})}})},fCe=e=>Pg({mutationFn:async t=>(await Hn.post(`/workspaces/${e}/invite-token`,t)).data}),pCe=()=>Pg({mutationFn:async e=>(await Hn.post("/workspaces/join",e)).data});function kT(){return kT=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(P(u),_.current=u):(P(ce),_.current=ce),O&&O({position:_.current})}}},[r,t,b,m,p,c,$,s,u,O,o]),Z=I.useCallback(function(){r||(P(o),_.current=o)},[r,o]);return{position:$,endPosition:U,isDragging:C,separatorProps:kT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z}),setPosition:P,splitterProps:kT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z})}},yCe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(bCe({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 OCe=e=>{const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),t},vCe=(e,t=100,n=!1)=>{const r=OCe(e),i=I.useRef(),o=[t,n,r];function a(){i.current&&clearTimeout(i.current),i.current=void 0}I.useEffect(()=>a,o);function s(){i.current=void 0}return I.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(s,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},o)},ECe=(e,t,n)=>{const r=I.useState(e);return[r[0],vCe(r[1],t,n)]};function pA(e,t,n,r){const i=I.useRef(n),o=I.useRef(r);I.useEffect(()=>{i.current=n,o.current=r}),I.useEffect(()=>{const a=e&&"current"in e?e.current:e;if(!a)return;let s=0;function l(...c){s||i.current.apply(this,c)}a.addEventListener(t,l);const u=o.current;return()=>{s=1,a.removeEventListener(t,l),u&&u()}},[e,t])}const SCe={},Lb=typeof window>"u"?null:window,TCe=Lb&&typeof Lb.visualViewport<"u"?Lb.visualViewport:null,nU=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],wCe=function(e){e===void 0&&(e=SCe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=ECe(typeof document>"u"?[r,i]:nU,t,n),s=()=>a(nU);return pA(Lb,"resize",s),pA(TCe,"resize",s),pA(Lb,"orientationchange",s),o},kCe=e=>wCe(e)[0];class ir{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]=lg(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),hu.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]=lg(this,t,n);let r=[];return this.decompose(t,n,r,0),hu.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 Mb(this),o=new Mb(t);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(t=1){return new Mb(this,t)}iterRange(t,n=this.length){return new Iq(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 Dq(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]?ir.empty:t.length<=32?new gi(t):hu.from(gi.split(t,[]))}}class gi extends ir{constructor(t,n=xCe(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 o=0;;o++){let a=this.text[o],s=i+a.length;if((n?r:s)>=t)return new CCe(i,s,r,a);i=s+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new gi(rU(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let a=r.pop(),s=KE(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new gi(s,a.length+o.length));else{let l=s.length>>1;r.push(new gi(s.slice(0,l)),new gi(s.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof gi))return super.replace(t,n,r);[t,n]=lg(this,t,n);let i=KE(this.text,KE(r.text,rU(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new gi(i,o):hu.from(gi.split(i,[]),o)}sliceString(t,n=this.length,r=` +`):" "+Q7(o[0]):"as no adapter specified";throw new Xn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:sR};function dA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oO(null,e)}function Y7(e){return dA(e),e.headers=mc.from(e.headers),e.data=cA.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sq.getAdapter(e.adapter||SP.adapter)(e).then(function(r){return dA(e),r.data=cA.call(e,e.transformResponse,r),r.headers=mc.from(r.headers),r},function(r){return oq(r)||(dA(e),r&&r.response&&(r.response.data=cA.call(e,e.transformResponse,r.response),r.response.headers=mc.from(r.response.headers))),Promise.reject(r)})}const G7=e=>e instanceof mc?e.toJSON():e;function ag(e,t){t=t||{};const n={};function r(u,c,d){return ut.isPlainObject(u)&&ut.isPlainObject(c)?ut.merge.call({caseless:d},u,c):ut.isPlainObject(c)?ut.merge({},c):ut.isArray(c)?c.slice():c}function i(u,c,d){if(ut.isUndefined(c)){if(!ut.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!ut.isUndefined(c))return r(void 0,c)}function a(u,c){if(ut.isUndefined(c)){if(!ut.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(G7(u),G7(c),!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,p=d(e[c],t[c],c);ut.isUndefined(p)&&d!==s||(n[c]=p)}),n}const lq="1.6.5",TP={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{TP[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const q7={};TP.transitional=function(t,n,r){function i(o,a){return"[Axios v"+lq+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Xn(i(a," has been removed"+(n?" in "+n:"")),Xn.ERR_DEPRECATED);return n&&!q7[a]&&(q7[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function yxe(e,t,n){if(typeof e!="object")throw new Xn("options must be an object",Xn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Xn("option "+o+" must be "+l,Xn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Xn("Unknown option "+o,Xn.ERR_BAD_OPTION)}}const lR={assertOptions:yxe,validators:TP},Wc=lR.validators;class OT{constructor(t){this.defaults=t,this.interceptors={request:new V7,response:new V7}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ag(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&lR.assertOptions(r,{silentJSONParsing:Wc.transitional(Wc.boolean),forcedJSONParsing:Wc.transitional(Wc.boolean),clarifyTimeoutError:Wc.transitional(Wc.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:lR.assertOptions(i,{encode:Wc.function,serialize:Wc.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ut.merge(o.common,o[n.method]);o&&ut.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=mc.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,s.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let c,d=0,p;if(!l){const m=[Y7.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new oO(o,a,s),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 wP(function(i){t=i}),cancel:t}}}const Oxe=wP;function vxe(e){return function(n){return e.apply(null,n)}}function Exe(e){return ut.isObject(e)&&e.isAxiosError===!0}const uR={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(uR).forEach(([e,t])=>{uR[t]=e});const Sxe=uR;function uq(e){const t=new qE(e),n=VG(qE.prototype.request,t);return ut.extend(n,qE.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return uq(ag(e,i))},n}const Hn=uq(SP);Hn.Axios=qE;Hn.CanceledError=oO;Hn.CancelToken=Oxe;Hn.isCancel=oq;Hn.VERSION=lq;Hn.toFormData=Gk;Hn.AxiosError=Xn;Hn.Cancel=Hn.CanceledError;Hn.all=function(t){return Promise.all(t)};Hn.spread=vxe;Hn.isAxiosError=Exe;Hn.mergeConfig=ag;Hn.AxiosHeaders=mc;Hn.formToJSON=e=>iq(ut.isHTMLForm(e)?new FormData(e):e);Hn.getAdapter=sq.getAdapter;Hn.HttpStatusCode=Sxe;Hn.default=Hn;const Txe={mode:"both",shareRole:null,doc:null,client:null},cq=Hk({name:"editor",initialState:Txe,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}}}),{setMode:cR,setDoc:vT,setClient:ET,setShareRole:wxe}=cq.actions,Zk=e=>e.editor,kxe=cq.reducer,xxe={data:null},dq=Hk({name:"user",initialState:xxe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:dR}=dq.actions,kP=e=>e.user,Cxe=dq.reducer;var Dg=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(){}},sg=typeof window>"u"||"Deno"in window;function Is(){}function Axe(e,t){return typeof e=="function"?e(t):e}function fR(e){return typeof e=="number"&&e>=0&&e!==1/0}function fq(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Z7(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==xP(a,t.options))return!1}else if(!By(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function X7(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(kp(t.options.mutationKey)!==kp(o))return!1}else if(!By(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function xP(e,t){return((t==null?void 0:t.queryKeyHashFn)||kp)(e)}function kp(e){return JSON.stringify(e,(t,n)=>pR(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function By(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!By(e[n],t[n])):!1}function pq(e,t){if(e===t)return e;const n=K7(e)&&K7(t);if(n||pR(e)&&pR(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!J7(n)||!n.hasOwnProperty("isPrototypeOf"))}function J7(e){return Object.prototype.toString.call(e)==="[object Object]"}function _xe(e){return new Promise(t=>{setTimeout(t,e)})}function hR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pq(e,t):t}function Rxe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ixe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Jf,ld,Rm,nH,Nxe=(nH=class extends Dg{constructor(){super();Xt(this,Jf,void 0);Xt(this,ld,void 0);Xt(this,Rm,void 0);Bt(this,Rm,t=>{if(!sg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ke(this,ld)||this.setEventListener(ke(this,Rm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,ld))==null||t.call(this),Bt(this,ld,void 0))}setEventListener(t){var n;Bt(this,Rm,t),(n=ke(this,ld))==null||n.call(this),Bt(this,ld,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ke(this,Jf)!==t&&(Bt(this,Jf,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof ke(this,Jf)=="boolean"?ke(this,Jf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jf=new WeakMap,ld=new WeakMap,Rm=new WeakMap,nH),TT=new Nxe,Im,ud,Nm,rH,Dxe=(rH=class extends Dg{constructor(){super();Xt(this,Im,!0);Xt(this,ud,void 0);Xt(this,Nm,void 0);Bt(this,Nm,t=>{if(!sg&&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(){ke(this,ud)||this.setEventListener(ke(this,Nm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,ud))==null||t.call(this),Bt(this,ud,void 0))}setEventListener(t){var n;Bt(this,Nm,t),(n=ke(this,ud))==null||n.call(this),Bt(this,ud,t(this.setOnline.bind(this)))}setOnline(t){ke(this,Im)!==t&&(Bt(this,Im,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ke(this,Im)}},Im=new WeakMap,ud=new WeakMap,Nm=new WeakMap,rH),wT=new Dxe;function Pxe(e){return Math.min(1e3*2**e,3e4)}function Xk(e){return(e??"online")==="online"?wT.isOnline():!0}var hq=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fA(e){return e instanceof hq}function mq(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((O,y)=>{o=O,a=y}),l=O=>{var y;r||(h(new hq(O)),(y=e.abort)==null||y.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!TT.isFocused()||e.networkMode!=="always"&&!wT.isOnline(),p=O=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,O),i==null||i(),o(O))},h=O=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,O),i==null||i(),a(O))},m=()=>new Promise(O=>{var y;i=v=>{const S=r||!d();return S&&O(v),S},(y=e.onPause)==null||y.call(e)}).then(()=>{var O;i=void 0,r||(O=e.onContinue)==null||O.call(e)}),b=()=>{if(r)return;let O;try{O=e.fn()}catch(y){O=Promise.reject(y)}Promise.resolve(O).then(p).catch(y=>{var w;if(r)return;const v=e.retry??(sg?0:3),S=e.retryDelay??Pxe,k=typeof S=="function"?S(n,y):S,C=v===!0||typeof v=="number"&&n{if(d())return m()}).then(()=>{t?h(y):b()})})};return Xk(e.networkMode)?b():m().then(b),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function Lxe(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const o=p=>{i=p},a=p=>{let h;t++;try{h=p()}finally{t--,t||u()}return h},s=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...h)=>{s(()=>{p(...h)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(h=>{n(h)})})})};return{batch:a,batchCalls:l,schedule:s,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:o}}var Pi=Lxe(),ep,iH,gq=(iH=class{constructor(){Xt(this,ep,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fR(this.gcTime)&&Bt(this,ep,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(sg?1/0:5*60*1e3))}clearGcTimeout(){ke(this,ep)&&(clearTimeout(ke(this,ep)),Bt(this,ep,void 0))}},ep=new WeakMap,iH),Dm,Pm,Cs,cd,As,Gi,w1,tp,Lm,ZE,fl,tc,oH,Mxe=(oH=class extends gq{constructor(t){super();Xt(this,Lm);Xt(this,fl);Xt(this,Dm,void 0);Xt(this,Pm,void 0);Xt(this,Cs,void 0);Xt(this,cd,void 0);Xt(this,As,void 0);Xt(this,Gi,void 0);Xt(this,w1,void 0);Xt(this,tp,void 0);Bt(this,tp,!1),Bt(this,w1,t.defaultOptions),Tn(this,Lm,ZE).call(this,t.options),Bt(this,Gi,[]),Bt(this,Cs,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bt(this,Dm,t.state||$xe(this.options)),this.state=ke(this,Dm),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!ke(this,Gi).length&&this.state.fetchStatus==="idle"&&ke(this,Cs).remove(this)}setData(t,n){const r=hR(this.state.data,t,this.options);return Tn(this,fl,tc).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Tn(this,fl,tc).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=ke(this,cd);return(r=ke(this,As))==null||r.cancel(t),n?n.then(Is).catch(Is):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ke(this,Dm))}isActive(){return ke(this,Gi).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||ke(this,Gi).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!fq(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=ke(this,Gi).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,As))==null||n.continue()}onOnline(){var n;const t=ke(this,Gi).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,As))==null||n.continue()}addObserver(t){ke(this,Gi).includes(t)||(ke(this,Gi).push(t),this.clearGcTimeout(),ke(this,Cs).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){ke(this,Gi).includes(t)&&(Bt(this,Gi,ke(this,Gi).filter(n=>n!==t)),ke(this,Gi).length||(ke(this,As)&&(ke(this,tp)?ke(this,As).cancel({revert:!0}):ke(this,As).cancelRetry()),this.scheduleGc()),ke(this,Cs).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return ke(this,Gi).length}invalidate(){this.state.isInvalidated||Tn(this,fl,tc).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ke(this,cd))return(u=ke(this,As))==null||u.continueRetry(),ke(this,cd)}if(t&&Tn(this,Lm,ZE).call(this,t),!this.options.queryFn){const h=ke(this,Gi).find(m=>m.options.queryFn);h&&Tn(this,Lm,ZE).call(this,h.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Bt(this,tp,!0),r.signal)})};o(i);const a=()=>this.options.queryFn?(Bt(this,tp,!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}'`)),s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),Bt(this,Pm,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Tn(this,fl,tc).call(this,{type:"fetch",meta:(p=s.fetchOptions)==null?void 0:p.meta});const l=h=>{var m,b,O,y;fA(h)&&h.silent||Tn(this,fl,tc).call(this,{type:"error",error:h}),fA(h)||((b=(m=ke(this,Cs).config).onError)==null||b.call(m,h,this),(y=(O=ke(this,Cs).config).onSettled)==null||y.call(O,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Bt(this,As,mq({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,b,O,y;if(typeof h>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(b=(m=ke(this,Cs).config).onSuccess)==null||b.call(m,h,this),(y=(O=ke(this,Cs).config).onSettled)==null||y.call(O,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,m)=>{Tn(this,fl,tc).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{Tn(this,fl,tc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,fl,tc).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),Bt(this,cd,ke(this,As).promise),ke(this,cd)}},Dm=new WeakMap,Pm=new WeakMap,Cs=new WeakMap,cd=new WeakMap,As=new WeakMap,Gi=new WeakMap,w1=new WeakMap,tp=new WeakMap,Lm=new WeakSet,ZE=function(t){this.options={...ke(this,w1),...t},this.updateGcTime(this.options.gcTime)},fl=new WeakSet,tc=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:Xk(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 fA(i)&&i.revert&&ke(this,Pm)?{...ke(this,Pm),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),Pi.batch(()=>{ke(this,Gi).forEach(r=>{r.onQueryUpdate()}),ke(this,Cs).notify({query:this,type:"updated",action:t})})},oH);function $xe(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 su,aH,bq=(aH=class extends Dg{constructor(t={}){super();Xt(this,su,void 0);this.config=t,Bt(this,su,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??xP(i,n);let a=this.get(o);return a||(a=new Mxe({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){ke(this,su).has(t.queryHash)||(ke(this,su).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ke(this,su).get(t.queryHash);n&&(t.destroy(),n===t&&ke(this,su).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Pi.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ke(this,su).get(t)}getAll(){return[...ke(this,su).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Z7(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Z7(t,r)):n}notify(t){Pi.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Pi.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Pi.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},su=new WeakMap,aH),lu,k1,Ga,Mm,uu,qc,sH,Fxe=(sH=class extends gq{constructor(t){super();Xt(this,uu);Xt(this,lu,void 0);Xt(this,k1,void 0);Xt(this,Ga,void 0);Xt(this,Mm,void 0);this.mutationId=t.mutationId,Bt(this,k1,t.defaultOptions),Bt(this,Ga,t.mutationCache),Bt(this,lu,[]),this.state=t.state||yq(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...ke(this,k1),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ke(this,lu).includes(t)||(ke(this,lu).push(t),this.clearGcTimeout(),ke(this,Ga).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Bt(this,lu,ke(this,lu).filter(n=>n!==t)),this.scheduleGc(),ke(this,Ga).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ke(this,lu).length||(this.state.status==="pending"?this.scheduleGc():ke(this,Ga).remove(this))}continue(){var t;return((t=ke(this,Mm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E;const n=()=>(Bt(this,Mm,mq({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,P)=>{Tn(this,uu,qc).call(this,{type:"failed",failureCount:$,error:P})},onPause:()=>{Tn(this,uu,qc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,uu,qc).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),ke(this,Mm).promise),r=this.state.status==="pending";try{if(!r){Tn(this,uu,qc).call(this,{type:"pending",variables:t}),await((o=(i=ke(this,Ga).config).onMutate)==null?void 0:o.call(i,t,this));const P=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));P!==this.state.context&&Tn(this,uu,qc).call(this,{type:"pending",context:P,variables:t})}const $=await n();return await((u=(l=ke(this,Ga).config).onSuccess)==null?void 0:u.call(l,$,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,$,t,this.state.context)),await((h=(p=ke(this,Ga).config).onSettled)==null?void 0:h.call(p,$,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,$,null,t,this.state.context)),Tn(this,uu,qc).call(this,{type:"success",data:$}),$}catch($){try{throw await((y=(O=ke(this,Ga).config).onError)==null?void 0:y.call(O,$,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,$,t,this.state.context)),await((C=(k=ke(this,Ga).config).onSettled)==null?void 0:C.call(k,void 0,$,this.state.variables,this.state.context,this)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,void 0,$,t,this.state.context)),$}finally{Tn(this,uu,qc).call(this,{type:"error",error:$})}}}},lu=new WeakMap,k1=new WeakMap,Ga=new WeakMap,Mm=new WeakMap,uu=new WeakSet,qc=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:!Xk(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),Pi.batch(()=>{ke(this,lu).forEach(r=>{r.onMutationUpdate(t)}),ke(this,Ga).notify({mutation:this,type:"updated",action:t})})},sH);function yq(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _s,x1,np,lH,Bxe=(lH=class extends Dg{constructor(t={}){super();Xt(this,_s,void 0);Xt(this,x1,void 0);Xt(this,np,void 0);this.config=t,Bt(this,_s,[]),Bt(this,x1,0)}build(t,n,r){const i=new Fxe({mutationCache:this,mutationId:++ov(this,x1)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ke(this,_s).push(t),this.notify({type:"added",mutation:t})}remove(t){Bt(this,_s,ke(this,_s).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Pi.batch(()=>{ke(this,_s).forEach(t=>{this.remove(t)})})}getAll(){return ke(this,_s)}find(t){const n={exact:!0,...t};return ke(this,_s).find(r=>X7(n,r))}findAll(t={}){return ke(this,_s).filter(n=>X7(t,n))}notify(t){Pi.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Bt(this,np,(ke(this,np)??Promise.resolve()).then(()=>{const t=ke(this,_s).filter(n=>n.state.isPaused);return Pi.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Is)),Promise.resolve()))}).then(()=>{Bt(this,np,void 0)})),ke(this,np)}},_s=new WeakMap,x1=new WeakMap,np=new WeakMap,lH);function mR(e){return{onFetch:(t,n)=>{const r=async()=>{var m,b,O,y,v;const i=t.options,o=(O=(b=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:b.fetchMore)==null?void 0:O.direction,a=((y=t.state.data)==null?void 0:y.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(S,k,C)=>{if(u)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const w={queryKey:t.queryKey,pageParam:k,direction:C?"backward":"forward",meta:t.options.meta};c(w);const E=await d(w),{maxPages:$}=t.options,P=C?Ixe:Rxe;return{pages:P(S.pages,E,$),pageParams:P(S.pageParams,k,$)}};let h;if(o&&a.length){const S=o==="backward",k=S?Oq:gR,C={pages:a,pageParams:s},w=k(i,C);h=await p(C,w,S)}else{h=await p(l,s[0]??i.initialPageParam);const S=e??a.length;for(let k=1;k{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function gR(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function Oq(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function Uxe(e,t){return t?gR(e,t)!=null:!1}function jxe(e,t){return!t||!e.getPreviousPageParam?!1:Oq(e,t)!=null}var Ri,dd,fd,$m,Fm,pd,Bm,Um,uH,zxe=(uH=class{constructor(e={}){Xt(this,Ri,void 0);Xt(this,dd,void 0);Xt(this,fd,void 0);Xt(this,$m,void 0);Xt(this,Fm,void 0);Xt(this,pd,void 0);Xt(this,Bm,void 0);Xt(this,Um,void 0);Bt(this,Ri,e.queryCache||new bq),Bt(this,dd,e.mutationCache||new Bxe),Bt(this,fd,e.defaultOptions||{}),Bt(this,$m,new Map),Bt(this,Fm,new Map),Bt(this,pd,0)}mount(){ov(this,pd)._++,ke(this,pd)===1&&(Bt(this,Bm,TT.subscribe(()=>{TT.isFocused()&&(this.resumePausedMutations(),ke(this,Ri).onFocus())})),Bt(this,Um,wT.subscribe(()=>{wT.isOnline()&&(this.resumePausedMutations(),ke(this,Ri).onOnline())})))}unmount(){var e,t;ov(this,pd)._--,ke(this,pd)===0&&((e=ke(this,Bm))==null||e.call(this),Bt(this,Bm,void 0),(t=ke(this,Um))==null||t.call(this),Bt(this,Um,void 0))}isFetching(e){return ke(this,Ri).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ke(this,dd).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=ke(this,Ri).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=ke(this,Ri).find({queryKey:e}),i=r==null?void 0:r.state.data,o=Axe(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return ke(this,Ri).build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Pi.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=ke(this,Ri).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=ke(this,Ri);Pi.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ke(this,Ri),r={type:"active",...e};return Pi.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Pi.batch(()=>ke(this,Ri).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Is).catch(Is)}invalidateQueries(e={},t={}){return Pi.batch(()=>{if(ke(this,Ri).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=Pi.batch(()=>ke(this,Ri).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Is)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Is)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=ke(this,Ri).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Is).catch(Is)}fetchInfiniteQuery(e){return e.behavior=mR(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Is).catch(Is)}resumePausedMutations(){return ke(this,dd).resumePausedMutations()}getQueryCache(){return ke(this,Ri)}getMutationCache(){return ke(this,dd)}getDefaultOptions(){return ke(this,fd)}setDefaultOptions(e){Bt(this,fd,e)}setQueryDefaults(e,t){ke(this,$m).set(kp(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ke(this,$m).values()];let n={};return t.forEach(r=>{By(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ke(this,Fm).set(kp(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ke(this,Fm).values()];let n={};return t.forEach(r=>{By(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...ke(this,fd).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xP(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:{...ke(this,fd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ke(this,Ri).clear(),ke(this,dd).clear()}},Ri=new WeakMap,dd=new WeakMap,fd=new WeakMap,$m=new WeakMap,Fm=new WeakMap,pd=new WeakMap,Bm=new WeakMap,Um=new WeakMap,uH),va,Nr,C1,ea,rp,jm,cu,A1,zm,Vm,ip,op,hd,Hm,ap,sb,_1,bR,R1,yR,I1,OR,N1,vR,D1,ER,P1,SR,L1,TR,ww,Eq,cH,vq=(cH=class extends Dg{constructor(t,n){super();Xt(this,ap);Xt(this,_1);Xt(this,R1);Xt(this,I1);Xt(this,N1);Xt(this,D1);Xt(this,P1);Xt(this,L1);Xt(this,ww);Xt(this,va,void 0);Xt(this,Nr,void 0);Xt(this,C1,void 0);Xt(this,ea,void 0);Xt(this,rp,void 0);Xt(this,jm,void 0);Xt(this,cu,void 0);Xt(this,A1,void 0);Xt(this,zm,void 0);Xt(this,Vm,void 0);Xt(this,ip,void 0);Xt(this,op,void 0);Xt(this,hd,void 0);Xt(this,Hm,new Set);this.options=n,Bt(this,va,t),Bt(this,cu,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ke(this,Nr).addObserver(this),eU(ke(this,Nr),this.options)?Tn(this,ap,sb).call(this):this.updateResult(),Tn(this,N1,vR).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wR(ke(this,Nr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wR(ke(this,Nr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Tn(this,D1,ER).call(this),Tn(this,P1,SR).call(this),ke(this,Nr).removeObserver(this)}setOptions(t,n){const r=this.options,i=ke(this,Nr);if(this.options=ke(this,va).defaultQueryOptions(t),ST(r,this.options)||ke(this,va).getQueryCache().notify({type:"observerOptionsUpdated",query:ke(this,Nr),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),Tn(this,L1,TR).call(this);const o=this.hasListeners();o&&tU(ke(this,Nr),i,this.options,r)&&Tn(this,ap,sb).call(this),this.updateResult(n),o&&(ke(this,Nr)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Tn(this,_1,bR).call(this);const a=Tn(this,R1,yR).call(this);o&&(ke(this,Nr)!==i||this.options.enabled!==r.enabled||a!==ke(this,hd))&&Tn(this,I1,OR).call(this,a)}getOptimisticResult(t){const n=ke(this,va).getQueryCache().build(ke(this,va),t),r=this.createResult(n,t);return Hxe(this,r)&&(Bt(this,ea,r),Bt(this,jm,this.options),Bt(this,rp,ke(this,Nr).state)),r}getCurrentResult(){return ke(this,ea)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(ke(this,Hm).add(r),t[r])})}),n}getCurrentQuery(){return ke(this,Nr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ke(this,va).defaultQueryOptions(t),r=ke(this,va).getQueryCache().build(ke(this,va),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Tn(this,ap,sb).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ke(this,ea)))}createResult(t,n){var w;const r=ke(this,Nr),i=this.options,o=ke(this,ea),a=ke(this,rp),s=ke(this,jm),u=t!==r?t.state:ke(this,C1),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:h,status:m}=c,b=!1,O;if(n._optimisticResults){const E=this.hasListeners(),$=!E&&eU(t,n),P=E&&tU(t,r,n,i);($||P)&&(h=Xk(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(m="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(o&&c.data===(a==null?void 0:a.data)&&n.select===ke(this,A1))O=ke(this,zm);else try{Bt(this,A1,n.select),O=n.select(c.data),O=hR(o==null?void 0:o.data,O,n),Bt(this,zm,O),Bt(this,cu,null)}catch(E){Bt(this,cu,E)}else O=c.data;if(typeof n.placeholderData<"u"&&typeof O>"u"&&m==="pending"){let E;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))E=o.data;else if(E=typeof n.placeholderData=="function"?n.placeholderData((w=ke(this,Vm))==null?void 0:w.state.data,ke(this,Vm)):n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),Bt(this,cu,null)}catch($){Bt(this,cu,$)}typeof E<"u"&&(m="success",O=hR(o==null?void 0:o.data,E,n),b=!0)}ke(this,cu)&&(d=ke(this,cu),O=ke(this,zm),p=Date.now(),m="error");const y=h==="fetching",v=m==="pending",S=m==="error",k=v&&y;return{status:m,fetchStatus:h,isPending:v,isSuccess:m==="success",isError:S,isInitialLoading:k,isLoading:k,data:O,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!v,isLoadingError:S&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:b,isRefetchError:S&&c.dataUpdatedAt!==0,isStale:CP(t,n),refetch:this.refetch}}updateResult(t){const n=ke(this,ea),r=this.createResult(ke(this,Nr),this.options);if(Bt(this,rp,ke(this,Nr).state),Bt(this,jm,this.options),ke(this,rp).data!==void 0&&Bt(this,Vm,ke(this,Nr)),ST(r,n))return;Bt(this,ea,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!ke(this,Hm).size)return!0;const l=new Set(s??ke(this,Hm));return this.options.throwOnError&&l.add("error"),Object.keys(ke(this,ea)).some(u=>{const c=u;return ke(this,ea)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Tn(this,ww,Eq).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tn(this,N1,vR).call(this)}},va=new WeakMap,Nr=new WeakMap,C1=new WeakMap,ea=new WeakMap,rp=new WeakMap,jm=new WeakMap,cu=new WeakMap,A1=new WeakMap,zm=new WeakMap,Vm=new WeakMap,ip=new WeakMap,op=new WeakMap,hd=new WeakMap,Hm=new WeakMap,ap=new WeakSet,sb=function(t){Tn(this,L1,TR).call(this);let n=ke(this,Nr).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Is)),n},_1=new WeakSet,bR=function(){if(Tn(this,D1,ER).call(this),sg||ke(this,ea).isStale||!fR(this.options.staleTime))return;const n=fq(ke(this,ea).dataUpdatedAt,this.options.staleTime)+1;Bt(this,ip,setTimeout(()=>{ke(this,ea).isStale||this.updateResult()},n))},R1=new WeakSet,yR=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ke(this,Nr)):this.options.refetchInterval)??!1},I1=new WeakSet,OR=function(t){Tn(this,P1,SR).call(this),Bt(this,hd,t),!(sg||this.options.enabled===!1||!fR(ke(this,hd))||ke(this,hd)===0)&&Bt(this,op,setInterval(()=>{(this.options.refetchIntervalInBackground||TT.isFocused())&&Tn(this,ap,sb).call(this)},ke(this,hd)))},N1=new WeakSet,vR=function(){Tn(this,_1,bR).call(this),Tn(this,I1,OR).call(this,Tn(this,R1,yR).call(this))},D1=new WeakSet,ER=function(){ke(this,ip)&&(clearTimeout(ke(this,ip)),Bt(this,ip,void 0))},P1=new WeakSet,SR=function(){ke(this,op)&&(clearInterval(ke(this,op)),Bt(this,op,void 0))},L1=new WeakSet,TR=function(){const t=ke(this,va).getQueryCache().build(ke(this,va),this.options);if(t===ke(this,Nr))return;const n=ke(this,Nr);Bt(this,Nr,t),Bt(this,C1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ww=new WeakSet,Eq=function(t){Pi.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ke(this,ea))}),ke(this,va).getQueryCache().notify({query:ke(this,Nr),type:"observerResultsUpdated"})})},cH);function Vxe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function eU(e,t){return Vxe(e,t)||e.state.dataUpdatedAt>0&&wR(e,t,t.refetchOnMount)}function wR(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&CP(e,t)}return!1}function tU(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&CP(e,n)}function CP(e,t){return e.isStaleByTime(t.staleTime)}function Hxe(e,t){return!ST(e.getCurrentResult(),t)}var Wxe=class extends vq{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:mR()},t)}getOptimisticResult(e){return e.behavior=mR(),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,u,c,d;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o}=r,a=i&&((u=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:u.direction)==="forward",s=i&&((d=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:d.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Uxe(t,n.data),hasPreviousPage:jxe(t,n.data),isFetchingNextPage:a,isFetchingPreviousPage:s,isRefetching:o&&!a&&!s}}},md,ac,qa,sc,Wm,XE,M1,kR,dH,Qxe=(dH=class extends Dg{constructor(n,r){super();Xt(this,Wm);Xt(this,M1);Xt(this,md,void 0);Xt(this,ac,void 0);Xt(this,qa,void 0);Xt(this,sc,void 0);Bt(this,ac,void 0),Bt(this,md,n),this.setOptions(r),this.bindMethods(),Tn(this,Wm,XE).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=ke(this,md).defaultMutationOptions(n),ST(r,this.options)||ke(this,md).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ke(this,qa),observer:this}),(i=ke(this,qa))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&kp(r.mutationKey)!==kp(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=ke(this,qa))==null||n.removeObserver(this)}onMutationUpdate(n){Tn(this,Wm,XE).call(this),Tn(this,M1,kR).call(this,n)}getCurrentResult(){return ke(this,ac)}reset(){var n;(n=ke(this,qa))==null||n.removeObserver(this),Bt(this,qa,void 0),Tn(this,Wm,XE).call(this),Tn(this,M1,kR).call(this)}mutate(n,r){var i;return Bt(this,sc,r),(i=ke(this,qa))==null||i.removeObserver(this),Bt(this,qa,ke(this,md).getMutationCache().build(ke(this,md),this.options)),ke(this,qa).addObserver(this),ke(this,qa).execute(n)}},md=new WeakMap,ac=new WeakMap,qa=new WeakMap,sc=new WeakMap,Wm=new WeakSet,XE=function(){var r;const n=((r=ke(this,qa))==null?void 0:r.state)??yq();Bt(this,ac,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},M1=new WeakSet,kR=function(n){Pi.batch(()=>{var r,i,o,a,s,l,u,c;if(ke(this,sc)&&this.hasListeners()){const d=ke(this,ac).variables,p=ke(this,ac).context;(n==null?void 0:n.type)==="success"?((i=(r=ke(this,sc)).onSuccess)==null||i.call(r,n.data,d,p),(a=(o=ke(this,sc)).onSettled)==null||a.call(o,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(s=ke(this,sc)).onError)==null||l.call(s,n.error,d,p),(c=(u=ke(this,sc)).onSettled)==null||c.call(u,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(ke(this,ac))})})},dH),Sq=I.createContext(void 0),aO=e=>{const t=I.useContext(Sq);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Yxe=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.createElement(Sq.Provider,{value:e},t)),Tq=I.createContext(!1),Gxe=()=>I.useContext(Tq);Tq.Provider;function qxe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Zxe=I.createContext(qxe()),Xxe=()=>I.useContext(Zxe);function wq(e,t){return typeof e=="function"?e(...t):!!e}var Kxe=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Jxe=e=>{I.useEffect(()=>{e.clearReset()},[e])},eCe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&wq(n,[e.error,r]),tCe=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},nCe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,rCe=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function kq(e,t,n){const r=aO(n),i=Gxe(),o=Xxe(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",tCe(a),Kxe(a,o),Jxe(o);const[s]=I.useState(()=>new t(r,a)),l=s.getOptimisticResult(a);if(I.useSyncExternalStore(I.useCallback(u=>{const c=i?()=>{}:s.subscribe(Pi.batchCalls(u));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),I.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),nCe(a,l))throw rCe(a,s,o);if(eCe({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function sO(e,t){return kq(e,vq,t)}function Pg(e,t){const n=aO(t),[r]=I.useState(()=>new Qxe(n,e));I.useEffect(()=>{r.setOptions(e)},[r,e]);const i=I.useSyncExternalStore(I.useCallback(a=>r.subscribe(Pi.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=I.useCallback((a,s)=>{r.mutate(a,s).catch(iCe)},[r]);if(i.error&&wq(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function iCe(){}function AP(e,t){return kq(e,Wxe,t)}const xq=e=>["workspaces",e,"documents"],oCe=(e,t)=>["workpsaces",e,"documents",t],aCe=e=>AP({queryKey:xq(e||""),queryFn:async({pageParam:n})=>(await Hn.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:20}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),Cq=(e,t)=>sO({queryKey:oCe(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await Hn.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}}),sCe=e=>{const t=aO();return Pg({mutationFn:async n=>(await Hn.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:xq(e)})}})},lCe=(e,t)=>Pg({mutationFn:async n=>(await Hn.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data}),uCe=e=>["workspaces",e],Aq=()=>["workspaces"],lO=e=>sO({queryKey:uCe(e||""),enabled:!!e,queryFn:async()=>(await Hn.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),cCe=()=>AP({queryKey:Aq(),queryFn:async({pageParam:t})=>(await Hn.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),dCe=()=>{const e=aO();return Pg({mutationFn:async t=>(await Hn.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:Aq()})}})},fCe=e=>Pg({mutationFn:async t=>(await Hn.post(`/workspaces/${e}/invite-token`,t)).data}),pCe=()=>Pg({mutationFn:async e=>(await Hn.post("/workspaces/join",e)).data});function kT(){return kT=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(P(u),_.current=u):(P(ce),_.current=ce),O&&O({position:_.current})}}},[r,t,b,m,p,c,$,s,u,O,o]),Z=I.useCallback(function(){r||(P(o),_.current=o)},[r,o]);return{position:$,endPosition:U,isDragging:C,separatorProps:kT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z}),setPosition:P,splitterProps:kT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z})}},yCe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(bCe({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 OCe=e=>{const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),t},vCe=(e,t=100,n=!1)=>{const r=OCe(e),i=I.useRef(),o=[t,n,r];function a(){i.current&&clearTimeout(i.current),i.current=void 0}I.useEffect(()=>a,o);function s(){i.current=void 0}return I.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(s,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},o)},ECe=(e,t,n)=>{const r=I.useState(e);return[r[0],vCe(r[1],t,n)]};function pA(e,t,n,r){const i=I.useRef(n),o=I.useRef(r);I.useEffect(()=>{i.current=n,o.current=r}),I.useEffect(()=>{const a=e&&"current"in e?e.current:e;if(!a)return;let s=0;function l(...c){s||i.current.apply(this,c)}a.addEventListener(t,l);const u=o.current;return()=>{s=1,a.removeEventListener(t,l),u&&u()}},[e,t])}const SCe={},Lb=typeof window>"u"?null:window,TCe=Lb&&typeof Lb.visualViewport<"u"?Lb.visualViewport:null,nU=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],wCe=function(e){e===void 0&&(e=SCe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=ECe(typeof document>"u"?[r,i]:nU,t,n),s=()=>a(nU);return pA(Lb,"resize",s),pA(TCe,"resize",s),pA(Lb,"orientationchange",s),o},kCe=e=>wCe(e)[0];class ir{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]=lg(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),hu.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]=lg(this,t,n);let r=[];return this.decompose(t,n,r,0),hu.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 Mb(this),o=new Mb(t);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(t=1){return new Mb(this,t)}iterRange(t,n=this.length){return new Iq(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 Nq(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]?ir.empty:t.length<=32?new gi(t):hu.from(gi.split(t,[]))}}class gi extends ir{constructor(t,n=xCe(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 o=0;;o++){let a=this.text[o],s=i+a.length;if((n?r:s)>=t)return new CCe(i,s,r,a);i=s+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new gi(rU(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let a=r.pop(),s=KE(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new gi(s,a.length+o.length));else{let l=s.length>>1;r.push(new gi(s.slice(0,l)),new gi(s.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof gi))return super.replace(t,n,r);[t,n]=lg(this,t,n);let i=KE(this.text,KE(r.text,rU(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new gi(i,o):hu.from(gi.split(i,[]),o)}sliceString(t,n=this.length,r=` `){[t,n]=lg(this,t,n);let i="";for(let o=0,a=0;o<=n&&at&&a&&(i+=r),to&&(i+=s.slice(Math.max(0,t-o),n-o)),o=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 o of t)r.push(o),i+=o.length+1,r.length==32&&(n.push(new gi(r,i)),r=[],i=-1);return i>-1&&n.push(new gi(r,i)),n}}class hu extends ir{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 o=0;;o++){let a=this.children[o],s=i+a.length,l=r+a.lines-1;if((n?l:s)>=t)return a.lineInner(t,n,r,i);i=s+1,r=l+1}}decompose(t,n,r,i){for(let o=0,a=0;a<=n&&o=a){let u=i&((a<=t?1:0)|(l>=n?2:0));a>=t&&l<=n&&!u?r.push(s):s.decompose(t-a,n-a,r,u)}a=l+1}}replace(t,n,r){if([t,n]=lg(this,t,n),r.lines=o&&n<=s){let l=a.replace(t-o,n-o,r),u=this.lines-a.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new hu(c,this.length-(n-t)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` `){[t,n]=lg(this,t,n);let i="";for(let o=0,a=0;ot&&o&&(i+=r),ta&&(i+=s.sliceString(t-a,n-a,r)),a=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof hu))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let l=this.children[i],u=t.children[o];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let h of t)r+=h.lines;if(r<32){let h=[];for(let m of t)m.flatten(h);return new gi(h,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,u=-1,c=[];function d(h){let m;if(h.lines>o&&h instanceof hu)for(let b of h.children)d(b);else h.lines>a&&(l>a||!l)?(p(),s.push(h)):h instanceof gi&&l&&(m=c[c.length-1])instanceof gi&&h.lines+m.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new gi(m.text.concat(h.text),m.length+1+h.length)):(l+h.lines>i&&p(),l+=h.lines,u+=h.length+1,c.push(h))}function p(){l!=0&&(s.push(c.length==1?c[0]:hu.from(c,u)),u=-1,l=c.length=0)}for(let h of t)d(h);return p(),s.length==1?s[0]:new hu(s,n)}}ir.empty=new gi([""],0);function xCe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function KE(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(t instanceof gi?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],o=this.offsets[r],a=o>>1,s=i instanceof gi?i.text.length:i.children.length;if(a==(n>0?s: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((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(i instanceof gi){let l=i.text[a+(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[a+(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 gi?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 Iq{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new Mb(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 Dq{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"&&(ir.prototype[Symbol.iterator]=function(){return this.iter()},Mb.prototype[Symbol.iterator]=Iq.prototype[Symbol.iterator]=Dq.prototype[Symbol.iterator]=function(){return this});let CCe=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 lg(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let mm="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 mm[t-1]<=e;return!1}function iU(e){return e>=127462&&e<=127487}const oU=8205;function Oo(e,t,n=!0,r=!0){return(n?Nq:_Ce)(e,t,r)}function Nq(e,t,n){if(t==e.length)return t;t&&Pq(e.charCodeAt(t))&&Lq(e.charCodeAt(t-1))&&t--;let r=mo(e,t);for(t+=Bs(r);t=0&&iU(mo(e,a));)o++,a-=2;if(o%2==0)break;t+=2}else break}return t}function _Ce(e,t,n){for(;t>0;){let r=Nq(e,t-2,n);if(r=56320&&e<57344}function Lq(e){return e>=55296&&e<56320}function mo(e,t){let n=e.charCodeAt(t);if(!Lq(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Pq(r)?(n-55296<<10)+(r-56320)+65536:n}function _P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Bs(e){return e<65536?1:2}const xR=/\r\n?|\n/;var bo=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(bo||(bo={}));class _u{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return o+(t-i);o+=s}else{if(r!=bo.Simple&&u>=t&&(r==bo.TrackDel&&it||r==bo.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!s)return t==i||n<0?o:o+l;o+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return o}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&s>=t)return in?"cover":!0;i=s}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 _u(t)}static create(t){return new _u(t)}}class Ni extends _u{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 CR(this,(n,r,i,o,a)=>t=t.replace(i,i+(r-n),a),!1),t}mapDesc(t,n=!1){return AR(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,o=0;i=0){n[i]=s,n[i+1]=a;let l=i>>1;for(;r.length0&&Od(r,n,o.text),o.forward(c),s+=c}let u=t[a++];for(;s>1].toJSON()))}return t}static of(t,n,r){let i=[],o=[],a=0,s=null;function l(c=!1){if(!c&&!i.length)return;ap||d<0||p>n)throw new RangeError(`Invalid change range ${d} to ${p} (in doc of length ${n})`);let m=h?typeof h=="string"?ir.of(h.split(r||xR)):h:ir.empty,b=m.length;if(d==p&&b==0)return;da&&Do(i,d-a,-1),Do(i,p-d,b),Od(o,i,m),a=p}}return u(t),l(!s),s}static empty(t){return new Ni(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;is&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[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 Od(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,u,o,c,d),i=u,o=c}}}function AR(e,t,n,r=!1){let i=[],o=r?[]:null,a=new Uy(e),s=new Uy(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);Do(i,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len=0&&l=0){let u=0,c=a.len;for(;c;)if(s.ins==-1){let d=Math.min(c,s.len);u+=d,c-=d,s.forward(d)}else if(s.ins==0&&s.lenl||a.ins>=0&&a.len>l)&&(s||r.length>u),o.forward2(l),a.forward(l)}}}}class Uy{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?ir.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?ir.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 Qf{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 Qf(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return tt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return tt.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 tt.range(t.anchor,t.head)}static create(t,n,r){return new Qf(t,n,r)}}class tt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:tt.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 tt(t.ranges.map(n=>Qf.fromJSON(n)),t.main)}static single(t,n=t){return new tt([tt.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)|o)}static normalized(t,n=0){let r=t[n];t.sort((i,o)=>i.from-o.from),n=t.indexOf(r);for(let i=1;io.head?tt.range(l,s):tt.range(s,l))}}return new tt(t,n)}}function $q(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let RP=0;class qt{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=RP++,this.default=t([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(t={}){return new qt(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:IP),!!t.static,t.enables)}of(t){return new JE([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new JE(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new JE(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function IP(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class JE{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=RP++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,o=this.id,a=t[o]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?u=!0:((n=t[d.id])!==null&&n!==void 0?n:1)&1||c.push(t[d.id]);return{create(d){return d.values[a]=r(d),1},update(d,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||_R(d,c)){let h=r(d);if(s?!aU(h,d.values[a],i):!i(h,d.values[a]))return d.values[a]=h,1}return 0},reconfigure:(d,p)=>{let h,m=p.config.address[o];if(m!=null){let b=CT(p,m);if(this.dependencies.every(O=>O instanceof qt?p.facet(O)===d.facet(O):O instanceof ro?p.field(O,!1)==d.field(O,!1):!0)||(s?aU(h=r(d),b,i):i(h=r(d),b)))return d.values[a]=b,0}else h=r(d);return d.values[a]=h,1}}}}function aU(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),a=e[t.id]>>1;function s(l){let u=[];for(let c=0;cr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(sU).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 o=r.values[n],a=this.updateF(o,i);return this.compareF(o,a)?0:(r.values[n]=a,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,sU.of({field:this,create:t})]}get extension(){return this}}const Mf={lowest:4,low:3,default:2,high:1,highest:0};function D0(e){return t=>new Fq(t,e)}const df={highest:D0(Mf.highest),high:D0(Mf.high),default:D0(Mf.default),low:D0(Mf.low),lowest:D0(Mf.lowest)};class Fq{constructor(t,n){this.inner=t,this.prec=n}}class Kk{of(t){return new RR(this,t)}reconfigure(t){return Kk.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class RR{constructor(t,n){this.compartment=t,this.inner=n}}class xT{constructor(t,n,r,i,o,a){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],o=Object.create(null),a=new Map;for(let p of ICe(t,n,a))p instanceof ro?i.push(p):(o[p.facet.id]||(o[p.facet.id]=[])).push(p);let s=Object.create(null),l=[],u=[];for(let p of i)s[p.id]=u.length<<1,u.push(h=>p.slot(h));let c=r==null?void 0:r.config.facets;for(let p in o){let h=o[p],m=h[0].facet,b=c&&c[p]||[];if(h.every(O=>O.type==0))if(s[m.id]=l.length<<1|1,IP(b,h))l.push(r.facet(m));else{let O=m.combine(h.map(y=>y.value));l.push(r&&m.compare(O,r.facet(m))?r.facet(m):O)}else{for(let O of h)O.type==0?(s[O.id]=l.length<<1|1,l.push(O.value)):(s[O.id]=u.length<<1,u.push(y=>O.dynamicSlot(y)));s[m.id]=u.length<<1,u.push(O=>RCe(O,m,h))}}let d=u.map(p=>p(s));return new xT(t,a,d,s,l,o)}}function ICe(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(a,s){let l=i.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof RR&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof RR){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(a.compartment)||a.inner;n.set(a.compartment,u),o(u,s)}else if(a instanceof Fq)o(a.inner,a.prec);else if(a instanceof ro)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof JE)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,Mf.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,s)}}return o(e,Mf.default),r.reduce((a,s)=>a.concat(s))}function $b(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 CT(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Bq=qt.define(),IR=qt.define({combine:e=>e.some(t=>t),static:!0}),Uq=qt.define({combine:e=>e.length?e[0]:void 0,static:!0}),jq=qt.define(),zq=qt.define(),Vq=qt.define(),Hq=qt.define({combine:e=>e.length?e[0]:!1});class Ul{constructor(t,n){this.type=t,this.value=n}static define(){return new DCe}}class DCe{of(t){return new Ul(this,t)}}class NCe{constructor(t){this.map=t}of(t){return new xn(this,t)}}class xn{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 xn(this.type,n)}is(t){return this.type==t}static define(t={}){return new NCe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let o=i.map(n);o&&r.push(o)}return r}}xn.reconfigure=xn.define();xn.appendConfig=xn.define();class wi{constructor(t,n,r,i,o,a){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&$q(r,n.newLength),o.some(s=>s.type==wi.time)||(this.annotations=o.concat(wi.time.of(Date.now())))}static create(t,n,r,i,o,a){return new wi(t,n,r,i,o,a)}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(wi.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}wi.time=Ul.define();wi.userEvent=Ul.define();wi.addToHistory=Ul.define();wi.remote=Ul.define();function PCe(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else if(i=0;i--){let o=r[i](e);o instanceof wi?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof wi?e=o[0]:e=Qq(t,gm(o),!1)}return e}function MCe(e){let t=e.startState,n=t.facet(Vq),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=Wq(r,DR(t,o,e.changes.newLength),!0))}return r==e?e:wi.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const $Ce=[];function gm(e){return e==null?$Ce:Array.isArray(e)?e:[e]}var Yr=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Yr||(Yr={}));const FCe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let NR;try{NR=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function BCe(e){if(NR)return NR.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||FCe.test(n)))return!0}return!1}function UCe(e){return t=>{if(!/\S/.test(t))return Yr.Space;if(BCe(t))return Yr.Word;for(let n=0;n-1)return Yr.Word;return Yr.Other}}class Zn{constructor(t,n,r,i,o,a){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let s=0;si.set(u,l)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(xn.reconfigure)?(n=null,r=s.value):s.is(xn.appendConfig)&&(n=null,r=gm(r).concat(s.value));let o;n?o=t.startState.values.slice():(n=xT.resolve(r,i,this),o=new Zn(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let a=t.startState.facet(IR)?t.newSelection:t.newSelection.asSingle();new Zn(n,t.newDoc,a,o,(s,l)=>l.update(s,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:tt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),o=[r.range],a=gm(r.effects);for(let s=1;sa.spec.fromJSON(s,l)))}}return Zn.create({doc:t.doc,selection:tt.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=xT.resolve(t.extensions||[],new Map),r=t.doc instanceof ir?t.doc:ir.of((t.doc||"").split(n.staticFacet(Zn.lineSeparator)||xR)),i=t.selection?t.selection instanceof tt?t.selection:tt.single(t.selection.anchor,t.selection.head):tt.single(0);return $q(i,r.length),n.staticFacet(IR)||(i=i.asSingle()),new Zn(n,r,i,n.dynamicSlots.map(()=>null),(o,a)=>a.create(o),null)}get tabSize(){return this.facet(Zn.tabSize)}get lineBreak(){return this.facet(Zn.lineSeparator)||` -`}get readOnly(){return this.facet(Hq)}phrase(t,...n){for(let r of this.facet(Zn.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 o=+(i||1);return!o||o>n.length?r:n[o-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let o of this.facet(Bq))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&i.push(a[t]);return i}charCategorizer(t){return UCe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),o=this.charCategorizer(t),a=t-r,s=t-r;for(;a>0;){let l=Oo(n,a,!1);if(o(n.slice(l,a))!=Yr.Word)break;a=l}for(;se.length?e[0]:4});Zn.lineSeparator=Uq;Zn.readOnly=Hq;Zn.phrases=qt.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])}});Zn.languageData=Bq;Zn.changeFilter=jq;Zn.transactionFilter=zq;Zn.transactionExtender=Vq;Kk.reconfigure=xn.define();function $u(e,t,n={}){let r={};for(let i of e)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class xp{eq(t){return this==t}range(t,n=t){return PR.create(t,n,this)}}xp.prototype.startSide=xp.prototype.endSide=0;xp.prototype.point=!1;xp.prototype.mapMode=bo.TrackDel;let PR=class Yq{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Yq(t,n,r)}};function LR(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class DP{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 o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(t,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);oh||p==h&&u.startSide>0&&u.endSide<=0)continue;(h-p||u.endSide-u.startSide)<0||(a<0&&(a=p),u.point&&(s=Math.max(s,h-p)),r.push(u),i.push(p-a),o.push(h-a))}return{mapped:r.length?new DP(i,o,r,s):null,pos:a}}}class Kn{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 Kn(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:o=this.length}=t,a=t.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(LR)),this.isEmpty)return n.length?Kn.of(n):this;let s=new Gq(this,null,-1).goto(0),l=0,u=[],c=new Gd;for(;s.value||l=0){let d=n[l++];c.addInner(d.from,d.to,d.value)||u.push(d)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||os.to||o=o&&t<=o+a.length&&a.between(o,t-o,n-o,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return jy.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return jy.from(t).goto(n)}static compare(t,n,r,i,o=-1){let a=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),s=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),l=lU(a,s,r),u=new N0(a,l,o),c=new N0(s,l,o);r.iterGaps((d,p,h)=>uU(u,d,c,p,h,i)),r.empty&&r.length==0&&uU(u,0,c,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let o=t.filter(c=>!c.isEmpty&&n.indexOf(c)<0),a=n.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(o.length!=a.length)return!1;if(!o.length)return!0;let s=lU(o,a),l=new N0(o,s,0).goto(r),u=new N0(a,s,0).goto(r);for(;;){if(l.to!=u.to||!MR(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,o=-1){let a=new N0(t,null,o).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let c=a.activeForPoint(a.to),d=a.pointFroms&&(i.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(t,n=!1){let r=new Gd;for(let i of t instanceof PR?[t]:n?jCe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Kn.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Kn.empty;i=i.nextLayer)n=new Kn(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Kn.empty=new Kn([],[],null,-1);function jCe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(LR);t=r}return e}Kn.empty.nextLayer=Kn.empty;class Gd{finishChunk(t){this.chunks.push(new DP(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 Gd)).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(Kn.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Kn.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function lU(e,t,n){let r=new Map;for(let o of e)for(let a=0;a=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 Gq(a,n,r,o));return i.length==1?i[0]:new jy(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--)hA(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--)hA(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(),hA(this.heap,0)}}}function hA(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 N0{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=jy.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){Fv(this.active,t),Fv(this.activeTo,t),Fv(this.activeRank,t),this.minActive=cU(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n0;)n++;Bv(this.active,n,r),Bv(this.activeTo,n,i),Bv(this.activeRank,n,o),t&&Bv(t,n,this.cursor.from),this.minActive=cU(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&&Fv(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 o=this.cursor.value;if(!o.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 uU(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,c=u<0?e.to+l:n.to,d=Math.min(c,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&MR(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,d,e.point,n.point):d>s&&!MR(e.active,n.active)&&o.compareRange(s,d,e.active,n.active),c>a)break;s=c,u<=0&&e.next(),u>=0&&n.next()}}function MR(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 cU(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;o+=e.charCodeAt(i)==9?n-o%n:1,i=Oo(e,i)}return r===!0?-1:e.length}const FR="ͼ",dU=typeof Symbol>"u"?"__"+FR:Symbol.for(FR),BR=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),fU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class qd{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,s,l,u){let c=[],d=/^@(\w+)\b/.exec(a[0]),p=d&&d[1]=="keyframes";if(d&&s==null)return l.push(a[0]+";");for(let h in s){let m=s[h];if(/&/.test(h))o(h.split(/,\s*/).map(b=>a.map(O=>b.replace(/&/,O))).reduce((b,O)=>b.concat(O)),m,l);else if(m&&typeof m=="object"){if(!d)throw new RangeError("The value of a property ("+h+") should be a primitive value.");o(i(h),m,c,p)}else m!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+m+";")}(c.length||p)&&l.push((r&&!d&&!u?a.map(r):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in t)o(i(a),t[a],this.rules)}getRules(){return this.rules.join(` +`,this;t--}else if(i instanceof gi){let l=i.text[a+(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[a+(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 gi?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 Iq{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new Mb(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 Nq{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"&&(ir.prototype[Symbol.iterator]=function(){return this.iter()},Mb.prototype[Symbol.iterator]=Iq.prototype[Symbol.iterator]=Nq.prototype[Symbol.iterator]=function(){return this});let CCe=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 lg(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let mm="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 mm[t-1]<=e;return!1}function iU(e){return e>=127462&&e<=127487}const oU=8205;function Oo(e,t,n=!0,r=!0){return(n?Dq:_Ce)(e,t,r)}function Dq(e,t,n){if(t==e.length)return t;t&&Pq(e.charCodeAt(t))&&Lq(e.charCodeAt(t-1))&&t--;let r=mo(e,t);for(t+=Bs(r);t=0&&iU(mo(e,a));)o++,a-=2;if(o%2==0)break;t+=2}else break}return t}function _Ce(e,t,n){for(;t>0;){let r=Dq(e,t-2,n);if(r=56320&&e<57344}function Lq(e){return e>=55296&&e<56320}function mo(e,t){let n=e.charCodeAt(t);if(!Lq(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Pq(r)?(n-55296<<10)+(r-56320)+65536:n}function _P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Bs(e){return e<65536?1:2}const xR=/\r\n?|\n/;var bo=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(bo||(bo={}));class _u{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return o+(t-i);o+=s}else{if(r!=bo.Simple&&u>=t&&(r==bo.TrackDel&&it||r==bo.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!s)return t==i||n<0?o:o+l;o+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return o}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&s>=t)return in?"cover":!0;i=s}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 _u(t)}static create(t){return new _u(t)}}class Di extends _u{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 CR(this,(n,r,i,o,a)=>t=t.replace(i,i+(r-n),a),!1),t}mapDesc(t,n=!1){return AR(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,o=0;i=0){n[i]=s,n[i+1]=a;let l=i>>1;for(;r.length0&&Od(r,n,o.text),o.forward(c),s+=c}let u=t[a++];for(;s>1].toJSON()))}return t}static of(t,n,r){let i=[],o=[],a=0,s=null;function l(c=!1){if(!c&&!i.length)return;ap||d<0||p>n)throw new RangeError(`Invalid change range ${d} to ${p} (in doc of length ${n})`);let m=h?typeof h=="string"?ir.of(h.split(r||xR)):h:ir.empty,b=m.length;if(d==p&&b==0)return;da&&No(i,d-a,-1),No(i,p-d,b),Od(o,i,m),a=p}}return u(t),l(!s),s}static empty(t){return new Di(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;is&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[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 Od(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,u,o,c,d),i=u,o=c}}}function AR(e,t,n,r=!1){let i=[],o=r?[]:null,a=new Uy(e),s=new Uy(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);No(i,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len=0&&l=0){let u=0,c=a.len;for(;c;)if(s.ins==-1){let d=Math.min(c,s.len);u+=d,c-=d,s.forward(d)}else if(s.ins==0&&s.lenl||a.ins>=0&&a.len>l)&&(s||r.length>u),o.forward2(l),a.forward(l)}}}}class Uy{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?ir.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?ir.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 Qf{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 Qf(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return tt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return tt.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 tt.range(t.anchor,t.head)}static create(t,n,r){return new Qf(t,n,r)}}class tt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:tt.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 tt(t.ranges.map(n=>Qf.fromJSON(n)),t.main)}static single(t,n=t){return new tt([tt.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)|o)}static normalized(t,n=0){let r=t[n];t.sort((i,o)=>i.from-o.from),n=t.indexOf(r);for(let i=1;io.head?tt.range(l,s):tt.range(s,l))}}return new tt(t,n)}}function $q(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let RP=0;class qt{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=RP++,this.default=t([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(t={}){return new qt(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:IP),!!t.static,t.enables)}of(t){return new JE([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new JE(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new JE(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function IP(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class JE{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=RP++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,o=this.id,a=t[o]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?u=!0:((n=t[d.id])!==null&&n!==void 0?n:1)&1||c.push(t[d.id]);return{create(d){return d.values[a]=r(d),1},update(d,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||_R(d,c)){let h=r(d);if(s?!aU(h,d.values[a],i):!i(h,d.values[a]))return d.values[a]=h,1}return 0},reconfigure:(d,p)=>{let h,m=p.config.address[o];if(m!=null){let b=CT(p,m);if(this.dependencies.every(O=>O instanceof qt?p.facet(O)===d.facet(O):O instanceof ro?p.field(O,!1)==d.field(O,!1):!0)||(s?aU(h=r(d),b,i):i(h=r(d),b)))return d.values[a]=b,0}else h=r(d);return d.values[a]=h,1}}}}function aU(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),a=e[t.id]>>1;function s(l){let u=[];for(let c=0;cr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(sU).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 o=r.values[n],a=this.updateF(o,i);return this.compareF(o,a)?0:(r.values[n]=a,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,sU.of({field:this,create:t})]}get extension(){return this}}const Mf={lowest:4,low:3,default:2,high:1,highest:0};function N0(e){return t=>new Fq(t,e)}const df={highest:N0(Mf.highest),high:N0(Mf.high),default:N0(Mf.default),low:N0(Mf.low),lowest:N0(Mf.lowest)};class Fq{constructor(t,n){this.inner=t,this.prec=n}}class Kk{of(t){return new RR(this,t)}reconfigure(t){return Kk.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class RR{constructor(t,n){this.compartment=t,this.inner=n}}class xT{constructor(t,n,r,i,o,a){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],o=Object.create(null),a=new Map;for(let p of ICe(t,n,a))p instanceof ro?i.push(p):(o[p.facet.id]||(o[p.facet.id]=[])).push(p);let s=Object.create(null),l=[],u=[];for(let p of i)s[p.id]=u.length<<1,u.push(h=>p.slot(h));let c=r==null?void 0:r.config.facets;for(let p in o){let h=o[p],m=h[0].facet,b=c&&c[p]||[];if(h.every(O=>O.type==0))if(s[m.id]=l.length<<1|1,IP(b,h))l.push(r.facet(m));else{let O=m.combine(h.map(y=>y.value));l.push(r&&m.compare(O,r.facet(m))?r.facet(m):O)}else{for(let O of h)O.type==0?(s[O.id]=l.length<<1|1,l.push(O.value)):(s[O.id]=u.length<<1,u.push(y=>O.dynamicSlot(y)));s[m.id]=u.length<<1,u.push(O=>RCe(O,m,h))}}let d=u.map(p=>p(s));return new xT(t,a,d,s,l,o)}}function ICe(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(a,s){let l=i.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof RR&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof RR){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(a.compartment)||a.inner;n.set(a.compartment,u),o(u,s)}else if(a instanceof Fq)o(a.inner,a.prec);else if(a instanceof ro)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof JE)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,Mf.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,s)}}return o(e,Mf.default),r.reduce((a,s)=>a.concat(s))}function $b(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 CT(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Bq=qt.define(),IR=qt.define({combine:e=>e.some(t=>t),static:!0}),Uq=qt.define({combine:e=>e.length?e[0]:void 0,static:!0}),jq=qt.define(),zq=qt.define(),Vq=qt.define(),Hq=qt.define({combine:e=>e.length?e[0]:!1});class Ul{constructor(t,n){this.type=t,this.value=n}static define(){return new NCe}}class NCe{of(t){return new Ul(this,t)}}class DCe{constructor(t){this.map=t}of(t){return new xn(this,t)}}class xn{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 xn(this.type,n)}is(t){return this.type==t}static define(t={}){return new DCe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let o=i.map(n);o&&r.push(o)}return r}}xn.reconfigure=xn.define();xn.appendConfig=xn.define();class wi{constructor(t,n,r,i,o,a){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&$q(r,n.newLength),o.some(s=>s.type==wi.time)||(this.annotations=o.concat(wi.time.of(Date.now())))}static create(t,n,r,i,o,a){return new wi(t,n,r,i,o,a)}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(wi.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}wi.time=Ul.define();wi.userEvent=Ul.define();wi.addToHistory=Ul.define();wi.remote=Ul.define();function PCe(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else if(i=0;i--){let o=r[i](e);o instanceof wi?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof wi?e=o[0]:e=Qq(t,gm(o),!1)}return e}function MCe(e){let t=e.startState,n=t.facet(Vq),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=Wq(r,NR(t,o,e.changes.newLength),!0))}return r==e?e:wi.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const $Ce=[];function gm(e){return e==null?$Ce:Array.isArray(e)?e:[e]}var Yr=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Yr||(Yr={}));const FCe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let DR;try{DR=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function BCe(e){if(DR)return DR.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||FCe.test(n)))return!0}return!1}function UCe(e){return t=>{if(!/\S/.test(t))return Yr.Space;if(BCe(t))return Yr.Word;for(let n=0;n-1)return Yr.Word;return Yr.Other}}class Zn{constructor(t,n,r,i,o,a){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let s=0;si.set(u,l)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(xn.reconfigure)?(n=null,r=s.value):s.is(xn.appendConfig)&&(n=null,r=gm(r).concat(s.value));let o;n?o=t.startState.values.slice():(n=xT.resolve(r,i,this),o=new Zn(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let a=t.startState.facet(IR)?t.newSelection:t.newSelection.asSingle();new Zn(n,t.newDoc,a,o,(s,l)=>l.update(s,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:tt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),o=[r.range],a=gm(r.effects);for(let s=1;sa.spec.fromJSON(s,l)))}}return Zn.create({doc:t.doc,selection:tt.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=xT.resolve(t.extensions||[],new Map),r=t.doc instanceof ir?t.doc:ir.of((t.doc||"").split(n.staticFacet(Zn.lineSeparator)||xR)),i=t.selection?t.selection instanceof tt?t.selection:tt.single(t.selection.anchor,t.selection.head):tt.single(0);return $q(i,r.length),n.staticFacet(IR)||(i=i.asSingle()),new Zn(n,r,i,n.dynamicSlots.map(()=>null),(o,a)=>a.create(o),null)}get tabSize(){return this.facet(Zn.tabSize)}get lineBreak(){return this.facet(Zn.lineSeparator)||` +`}get readOnly(){return this.facet(Hq)}phrase(t,...n){for(let r of this.facet(Zn.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 o=+(i||1);return!o||o>n.length?r:n[o-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let o of this.facet(Bq))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&i.push(a[t]);return i}charCategorizer(t){return UCe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),o=this.charCategorizer(t),a=t-r,s=t-r;for(;a>0;){let l=Oo(n,a,!1);if(o(n.slice(l,a))!=Yr.Word)break;a=l}for(;se.length?e[0]:4});Zn.lineSeparator=Uq;Zn.readOnly=Hq;Zn.phrases=qt.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])}});Zn.languageData=Bq;Zn.changeFilter=jq;Zn.transactionFilter=zq;Zn.transactionExtender=Vq;Kk.reconfigure=xn.define();function $u(e,t,n={}){let r={};for(let i of e)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class xp{eq(t){return this==t}range(t,n=t){return PR.create(t,n,this)}}xp.prototype.startSide=xp.prototype.endSide=0;xp.prototype.point=!1;xp.prototype.mapMode=bo.TrackDel;let PR=class Yq{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Yq(t,n,r)}};function LR(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class NP{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 o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(t,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);oh||p==h&&u.startSide>0&&u.endSide<=0)continue;(h-p||u.endSide-u.startSide)<0||(a<0&&(a=p),u.point&&(s=Math.max(s,h-p)),r.push(u),i.push(p-a),o.push(h-a))}return{mapped:r.length?new NP(i,o,r,s):null,pos:a}}}class Kn{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 Kn(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:o=this.length}=t,a=t.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(LR)),this.isEmpty)return n.length?Kn.of(n):this;let s=new Gq(this,null,-1).goto(0),l=0,u=[],c=new Gd;for(;s.value||l=0){let d=n[l++];c.addInner(d.from,d.to,d.value)||u.push(d)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||os.to||o=o&&t<=o+a.length&&a.between(o,t-o,n-o,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return jy.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return jy.from(t).goto(n)}static compare(t,n,r,i,o=-1){let a=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),s=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),l=lU(a,s,r),u=new D0(a,l,o),c=new D0(s,l,o);r.iterGaps((d,p,h)=>uU(u,d,c,p,h,i)),r.empty&&r.length==0&&uU(u,0,c,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let o=t.filter(c=>!c.isEmpty&&n.indexOf(c)<0),a=n.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(o.length!=a.length)return!1;if(!o.length)return!0;let s=lU(o,a),l=new D0(o,s,0).goto(r),u=new D0(a,s,0).goto(r);for(;;){if(l.to!=u.to||!MR(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,o=-1){let a=new D0(t,null,o).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let c=a.activeForPoint(a.to),d=a.pointFroms&&(i.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(t,n=!1){let r=new Gd;for(let i of t instanceof PR?[t]:n?jCe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Kn.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Kn.empty;i=i.nextLayer)n=new Kn(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Kn.empty=new Kn([],[],null,-1);function jCe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(LR);t=r}return e}Kn.empty.nextLayer=Kn.empty;class Gd{finishChunk(t){this.chunks.push(new NP(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 Gd)).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(Kn.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Kn.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function lU(e,t,n){let r=new Map;for(let o of e)for(let a=0;a=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 Gq(a,n,r,o));return i.length==1?i[0]:new jy(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--)hA(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--)hA(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(),hA(this.heap,0)}}}function hA(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 D0{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=jy.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){Fv(this.active,t),Fv(this.activeTo,t),Fv(this.activeRank,t),this.minActive=cU(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n0;)n++;Bv(this.active,n,r),Bv(this.activeTo,n,i),Bv(this.activeRank,n,o),t&&Bv(t,n,this.cursor.from),this.minActive=cU(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&&Fv(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 o=this.cursor.value;if(!o.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 uU(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,c=u<0?e.to+l:n.to,d=Math.min(c,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&MR(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,d,e.point,n.point):d>s&&!MR(e.active,n.active)&&o.compareRange(s,d,e.active,n.active),c>a)break;s=c,u<=0&&e.next(),u>=0&&n.next()}}function MR(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 cU(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;o+=e.charCodeAt(i)==9?n-o%n:1,i=Oo(e,i)}return r===!0?-1:e.length}const FR="ͼ",dU=typeof Symbol>"u"?"__"+FR:Symbol.for(FR),BR=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),fU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class qd{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,s,l,u){let c=[],d=/^@(\w+)\b/.exec(a[0]),p=d&&d[1]=="keyframes";if(d&&s==null)return l.push(a[0]+";");for(let h in s){let m=s[h];if(/&/.test(h))o(h.split(/,\s*/).map(b=>a.map(O=>b.replace(/&/,O))).reduce((b,O)=>b.concat(O)),m,l);else if(m&&typeof m=="object"){if(!d)throw new RangeError("The value of a property ("+h+") should be a primitive value.");o(i(h),m,c,p)}else m!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+m+";")}(c.length||p)&&l.push((r&&!d&&!u?a.map(r):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in t)o(i(a),t[a],this.rules)}getRules(){return this.rules.join(` `)}static newName(){let t=fU[dU]||1;return fU[dU]=t+1,FR+t.toString(36)}static mount(t,n,r){let i=t[BR],o=r&&r.nonce;i?o&&i.setNonce(o):i=new zCe(t,o),i.mount(Array.isArray(n)?n:[n])}}let pU=new Map;class zCe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let o=pU.get(r);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[BR]=o;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],pU.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let o=t.head||t;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],t[BR]=this}mount(t){let n=this.sheet,r=0,i=0;for(let o=0;o-1&&(this.modules.splice(s,1),i--,s=-1),s==-1){if(this.modules.splice(i++,0,a),n)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},VCe=typeof navigator<"u"&&/Mac/.test(navigator.platform),HCe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var go=0;go<10;go++)Zd[48+go]=Zd[96+go]=String(go);for(var go=1;go<=24;go++)Zd[go+111]="F"+go;for(var go=65;go<=90;go++)Zd[go]=String.fromCharCode(go+32),zy[go]=String.fromCharCode(go);for(var mA in Zd)zy.hasOwnProperty(mA)||(zy[mA]=Zd[mA]);function WCe(e){var t=VCe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||HCe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?zy:Zd)[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 AT(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function UR(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function QCe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function eS(e,t){if(!t.anchorNode)return!1;try{return UR(e,t.anchorNode)}catch{return!1}}function Vy(e){return e.nodeType==3?Cp(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function Fb(e,t,n,r){return n?hU(e,t,n,r,-1)||hU(e,t,n,r,1):!1}function Hy(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function hU(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:kc(e))){if(e.nodeName=="DIV")return!1;let o=e.parentNode;if(!o||o.nodeType!=1)return!1;t=Hy(e)+(i<0?0:1),e=o}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?kc(e):0}else return!1}}function kc(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function NP(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function YCe(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function qq(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 GCe(e,t,n,r,i,o,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(c.nodeType==1){let p,h=c==l.body,m=1,b=1;if(h)p=YCe(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let v=c.getBoundingClientRect();({scaleX:m,scaleY:b}=qq(c,v)),p={left:v.left,right:v.left+c.clientWidth*m,top:v.top,bottom:v.top+c.clientHeight*b}}let O=0,y=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+y&&(y=t.bottom-p.bottom+y+a)):t.bottom>p.bottom&&(y=t.bottom-p.bottom+a,n<0&&t.top-y0&&t.right>p.right+O&&(O=t.right-p.right+O+o)):t.right>p.right&&(O=t.right-p.right+o,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 ZCe{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?kc(n):0),r,Math.min(t.focusOffset,r?kc(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let bh=null;function Zq(e){if(e.setActive)return e.setActive();if(bh)return e.focus(bh);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(bh==null?{get preventScroll(){return bh={preventScroll:!0},!0}}:void 0),!bh){bh=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class Po{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new Po(t.parentNode,Hy(t),n)}static after(t,n){return new Po(t.parentNode,Hy(t)+1,n)}}const PP=[];class Lr{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,o;for(let a of this.children){if(a.flags&7){if(!a.dom&&(o=i?i.nextSibling:r.firstChild)){let s=Lr.get(o);(!s||!s.parent&&s.canReuseDOM(a))&&a.reuseDOM(o)}a.sync(t,n),a.flags&=-8}if(o=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&o!=a.dom&&(n.written=!0),a.dom.parentNode==r)for(;o&&o!=a.dom;)o=gU(o);else r.insertBefore(a.dom,o);i=a.dom}for(o=i?i.nextSibling:r.firstChild,o&&n&&n.node==r&&(n.written=!0);o;)o=gU(o)}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=kc(t)==0?0:n==0?-1:1;for(;;){let o=t.parentNode;if(o==this.dom)break;i==0&&o.firstChild!=o.lastChild&&(t==o.firstChild?i=-1:i=1),t=o}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Lr.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,o=0;;i++){let a=this.children[i];if(a.dom==r)return o;o+=a.length+a.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,o=-1,a=-1,s=-1;for(let l=0,u=r,c=r;ln)return d.domBoundsAround(t,n,u);if(p>=t&&i==-1&&(i=l,o=u),u>n&&d.dom.parentNode==this.dom){a=l,s=c;break}c=p,u=p+d.breakAfter}return{from:o,to:s<0?r+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].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=PP){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 eZ(e,t,n,r,i,o,a,s,l){let{children:u}=e,c=u.length?u[t]:null,d=o.length?o[o.length-1]:null,p=d?d.breakAfter:a;if(!(t==r&&c&&!a&&!p&&o.length<2&&c.merge(n,i,o.length?d:null,n==0,s,l))){if(r0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n2);var en={mac:OU||/Mac/.test(is.platform),windows:/Win/.test(is.platform),linux:/Linux|X11/.test(is.platform),ie:Jk,ie_version:nZ?jR.documentMode||6:VR?+VR[1]:zR?+zR[1]:0,gecko:bU,gecko_version:bU?+(/Firefox\/(\d+)/.exec(is.userAgent)||[0,0])[1]:0,chrome:!!gA,chrome_version:gA?+gA[1]:0,ios:OU,android:/Android\b/.test(is.userAgent),webkit:yU,safari:rZ,webkit_version:yU?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:jR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const JCe=256;class xc extends Lr{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 xc)||this.length-(n-t)+r.length>JCe||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 xc(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 Po(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 eAe(this.dom,t,n)}}class Cc extends Lr{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(Xq(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,o,a){return r&&(!(r instanceof Cc&&r.mark.eq(this.mark))||t&&o<=0||nt&&n.push(r=t&&(i=o),r=l,o++}let a=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new Cc(this.mark,n,a)}domAtPos(t){return iZ(this,t)}coordsAt(t,n){return aZ(this,t,n)}}function eAe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;t==0&&n<0||t==r&&n>=0?en.chrome||en.gecko||(t?(i--,a=1):o=0)?0:s.length-1];return en.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?NP(l,a<0):l||null}class vd extends Lr{static create(t,n,r){return new vd(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=vd.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,o,a){return r&&(!(r instanceof vd)||!this.widget.compare(r.widget)||t>0&&o<=0||n0)?Po.before(this.dom):Po.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(),o=null;if(!i.length)return null;let a=this.side?this.side<0:t>0;for(let s=a?i.length-1:0;o=i[s],!(t>0?s==0:s==i.length-1||o.top0?Po.before(this.dom):Po.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ir.empty}get isHidden(){return!0}}xc.prototype.children=vd.prototype.children=ug.prototype.children=PP;function iZ(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;io&&t0;o--){let a=r[o-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let o=i;o0&&t instanceof Cc&&i.length&&(r=i[i.length-1])instanceof Cc&&r.mark.eq(t.mark)?oZ(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function aZ(e,t,n){let r=null,i=-1,o=null,a=-1;function s(u,c){for(let d=0,p=0;d=c&&(h.children.length?s(h,c-p):(!o||o.isHidden&&n>0)&&(m>c||p==m&&h.getSide()>0)?(o=h,a=c-p):(p-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(i.indexOf(o)==-1||e[o]!==t[o]))return!1;return!0}function WR(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 nAe(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){LP(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){oZ(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=HR(n,this.attrs||{})),r&&(this.attrs=HR({class:r},this.attrs||{}))}domAtPos(t){return iZ(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(Xq(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&&(WR(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&&Lr.get(i)instanceof Cc;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Lr.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!en.ios||!this.children.some(o=>o instanceof xc))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof xc)||/[^ -~]/.test(r.text))return null;let i=Vy(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=aZ(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=r.bottom-r.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight=n){if(o instanceof Ii)return o;if(a>n)break}i=a+o.breakAfter}return null}}class Pd extends Lr{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,o,a){return r&&(!(r instanceof Pd)||!this.widget.compare(r.widget)||t>0&&o<=0||n0}}class Fu{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 aa=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(aa||(aa={}));class ln extends xp{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 uO(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 Xd(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:o,end:a}=sZ(t,n);r=(o?n?-3e8:-1:5e8)-1,i=(a?n?2e8:1:-6e8)+1}return new Xd(t,r,i,n,t.widget||null,!0)}static line(t){return new cO(t)}static set(t,n=!1){return Kn.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ln.none=Kn.empty;class uO extends ln{constructor(t){let{start:n,end:r}=sZ(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 uO&&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))&&LP(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)}}uO.prototype.point=!1;class cO extends ln{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof cO&&this.spec.class==t.spec.class&&LP(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)}}cO.prototype.mapMode=bo.TrackBefore;cO.prototype.point=!0;class Xd extends ln{constructor(t,n,r,i,o,a){super(n,r,o,t),this.block=i,this.isReplace=a,this.mapMode=i?n<=0?bo.TrackBefore:bo.TrackAfter:bo.TrackDel}get type(){return this.startSide!=this.endSide?aa.WidgetRange:this.startSide<=0?aa.WidgetBefore:aa.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Xd&&rAe(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)}}Xd.prototype.point=!0;function sZ(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 rAe(e,t){return e==t||!!(e&&t&&e.compare(t))}function QR(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 Bb{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 Pd&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Ii),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Uv(new ug(-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 Pd)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){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=o,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(Uv(new xc(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,o,a){if(this.disallowBlockEffectsFor[a]&&r instanceof Xd){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 s=n-t;if(r instanceof Xd)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Pd(r.widget||new EU("div"),s,r));else{let l=vd.create(r.widget||new EU("span"),s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&o<=i.length&&(t0),c=!l.isEditable&&(ti.length||r.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(d.append(Uv(new ug(1),i),o),o=i.length+Math.max(0,o-i.length)),d.append(Uv(l,i),o),this.atCursorPos=c,this.pendingBuffer=c?ti.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(t,n,r,i,o){let a=new Bb(t,n,r,o);return a.openEnd=Kn.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function Uv(e,t){for(let n of t)e=new Cc(n,[e],e.length);return e}class EU extends Fu{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 $r=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}($r||($r={}));const Ap=$r.LTR,MP=$r.RTL;function lZ(e){let t=[];for(let n=0;n=n){if(s.level==r)return a;(o<0||(i!=0?i<0?s.fromn:t[o].level>s.level))&&(o=a)}}if(o<0)throw new RangeError("Index out of range");return o}}function cZ(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;b-=3)if(eu[b+1]==-h){let O=eu[b+2],y=O&2?i:O&4?O&1?o:i:0;y&&(yr[d]=yr[eu[b]]=y),s=b;break}}else{if(eu.length==189)break;eu[s++]=d,eu[s++]=p,eu[s++]=l}else if((m=yr[d])==2||m==1){let b=m==i;l=b?0:1;for(let O=s-3;O>=0;O-=3){let y=eu[O+2];if(y&2)break;if(b)eu[O+2]|=2;else{if(y&4)break;eu[O+2]|=4}}}}}function uAe(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=il;)m==O&&(m=n[--b].from,O=b?n[b-1].to:e),yr[--m]=h;l=c}else o=u,l++}}}function GR(e,t,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&a.push(new Ed(l,b.from,h));let O=b.direction==Ap!=!(h%2);qR(e,O?r+1:r,i,b.inner,b.from,b.to,a),l=b.to}m=b.to}else{if(m==n||(c?yr[m]!=s:yr[m]==s))break;m++}p?GR(e,l,m,r+1,i,p,a):lt;){let c=!0,d=!1;if(!u||l>o[u-1].to){let b=yr[l-1];b!=s&&(c=!1,d=b==16)}let p=!c&&s==1?[]:null,h=c?r:r+1,m=l;e:for(;;)if(u&&m==o[u-1].to){if(d)break e;let b=o[--u];if(!c)for(let O=b.from,y=u;;){if(O==t)break e;if(y&&o[y-1].to==O)O=o[--y].from;else{if(yr[O-1]==s)break e;break}}if(p)p.push(b);else{b.toyr.length;)yr[yr.length]=256;let r=[],i=t==Ap?0:1;return qR(e,i,i,n,0,e.length,r),r}function dZ(e){return[new Ed(0,e,0)]}let fZ="";function dAe(e,t,n,r,i){var o;let a=r.head-e.from,s=Ed.find(t,a,(o=r.bidiLevel)!==null&&o!==void 0?o:-1,r.assoc),l=t[s],u=l.side(i,n);if(a==u){let p=s+=i?1:-1;if(p<0||p>=t.length)return null;l=t[s=p],a=l.side(!i,n),u=l.side(i,n)}let c=Oo(e.text,a,l.forward(i,n));(cl.to)&&(c=u),fZ=e.text.slice(Math.min(a,c),Math.max(a,c));let d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d&&c==u&&d.level+(i?0:1)e.some(t=>t)}),vZ=qt.define({combine:e=>e.some(t=>t)});class ym{constructor(t,n="nearest",r="nearest",i=5,o=5,a=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o,this.isSnapshot=a}map(t){return t.empty?this:new ym(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 ym(tt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const jv=xn.define({map:(e,t)=>e.map(t)});function Gs(e,t,n){let r=e.facet(gZ);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 ex=qt.define({combine:e=>e.length?e[0]:!0});let pAe=0;const lb=qt.define();class ei{constructor(t,n,r,i,o){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=o(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:o,decorations:a}=n||{};return new ei(pAe++,t,r,i,s=>{let l=[lb.of(s)];return a&&l.push(Wy.of(u=>{let c=u.plugin(s);return c?a(c):ln.none})),o&&l.push(o(s)),l})}static fromClass(t,n){return ei.define(r=>new t(r),n)}}class bA{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(Gs(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){Gs(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){Gs(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const EZ=qt.define(),$P=qt.define(),Wy=qt.define(),SZ=qt.define(),FP=qt.define(),TZ=qt.define();function SU(e,t){let n=e.state.facet(TZ);if(!n.length)return n;let r=n.map(o=>o instanceof Function?o(e):o),i=[];return Kn.spans(r,t.from,t.to,{point(){},span(o,a,s,l){let u=o-t.from,c=a-t.from,d=i;for(let p=s.length-1;p>=0;p--,l--){let h=s[p].spec.bidiIsolate,m;if(h==null&&(h=fAe(t.text,u,c)),l>0&&d.length&&(m=d[d.length-1]).to==u&&m.direction==h)m.to=c,d=m.inner;else{let b={from:u,to:c,direction:h,inner:[]};d.push(b),d=b.inner}}}}),i}const wZ=qt.define();function kZ(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(wZ)){let a=o(e);a&&(a.left!=null&&(t=Math.max(t,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const ub=qt.define();class qs{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new qs(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.toAc)break;o+=2}if(!l)return r;new qs(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class _T{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Ni.empty(this.startState.doc.length);for(let o of r)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges((o,a,s,l)=>i.push(new qs(o,a,s,l))),this.changedRanges=i}static create(t,n,r){return new _T(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 TU extends Lr{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 Ii],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new qs(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:u,toA:c})=>cthis.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:!vAe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let o=i>-1?mAe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new qs(u,c,t.changes.mapPos(u,-1),t.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(en.ie||en.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=yAe(a,s,t.changes);return r=qs.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,o),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 a=en.chrome||en.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||i.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?i[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:c,toB:d}=s,p,h,m,b;if(r&&r.range.fromBc){let k=Bb.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),C=Bb.build(this.view.state.doc,r.range.toB,d,this.decorations,this.dynamicDecorationMap);h=k.breakAtStart,m=k.openStart,b=C.openEnd;let w=this.compositionView(r);C.breakAtStart?w.breakAfter=1:C.content.length&&w.merge(w.length,w.length,C.content[0],!1,C.openStart,0)&&(w.breakAfter=C.content[0].breakAfter,C.content.shift()),k.content.length&&w.merge(0,0,k.content[k.content.length-1],!0,0,k.openEnd)&&k.content.pop(),p=k.content.concat(w).concat(C.content)}else({content:p,breakAtStart:h,openStart:m,openEnd:b}=Bb.build(this.view.state.doc,c,d,this.decorations,this.dynamicDecorationMap));let{i:O,off:y}=o.findPos(u,1),{i:v,off:S}=o.findPos(l,-1);eZ(this,v,S,O,y,p,h,m,b)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new xc(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new Cc(i,[n],n.length);let r=new Ii;return r.append(n,0),r}fixCompositionDOM(t){let n=(o,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=Lr.get(o);s&&s!=a&&(s.dom=null),a.setDOM(o)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let o=t.marks.length-1;o>=-1;o--)r=i.childPos(r.off,1),i=i.children[r.i],n(o>=0?t.marks[o].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,o=!i&&eS(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||o))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(en.gecko&&s.empty&&!this.hasComposition&&hAe(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=u=new Po(d,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!Fb(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Fb(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,s))&&(this.view.observer.ignore(()=>{en.android&&en.chrome&&this.dom.contains(c.focusNode)&&OAe(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=AT(this.view.root);if(d)if(s.empty){if(en.gecko){let p=gAe(l.node,l.offset);if(p&&p!=3){let h=CZ(l.node,l.offset,p==1?1:-1);h&&(l=new Po(h.node,h.offset))}}d.collapse(l.node,l.offset),s.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=s.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(u.node,u.offset)}catch{}}else{let p=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),p.setEnd(u.node,u.offset),p.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(p)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new Po(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new Po(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&Fb(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=AT(t.root),{anchorNode:i,anchorOffset:o}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=Ii.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&r.collapse(i,o)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let o=Lr.get(n.childNodes[i]);o instanceof Ii&&(r=o.domAtPos(o.length))}return r?new Po(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Lr.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;a--){let s=this.children[a],l=o-s.breakAfter,u=l-s.length;if(lt||s.covers(1))&&(!r||s instanceof Ii&&!(r instanceof Ii&&n>=0))&&(r=s,i=u),o=u}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 Ii))return null;for(;i.children.length;){let{i:s,off:l}=i.childPos(r,1);for(;;s++){if(s==i.children.length)return null;if((i=i.children[s]).length)break}r=l}if(!(i instanceof xc))return null;let o=Oo(i.text,r);if(o==r)return null;let a=Cp(i.dom,r,o).getClientRects();for(let s=0;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==$r.LTR;for(let u=0,c=0;ci)break;if(u>=r){let h=d.dom.getBoundingClientRect();if(n.push(h.height),a){let m=d.dom.lastChild,b=m?Vy(m):[];if(b.length){let O=b[b.length-1],y=l?O.right-h.left:h.right-O.left;y>s&&(s=y,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=p)}}}u=p+d.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?$r.RTL:$r.LTR}measureTextSize(){for(let o of this.children)if(o instanceof Ii){let a=o.measureTextSize();if(a)return a}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 o=Vy(t.firstChild)[0];n=t.getBoundingClientRect().height,r=o?o.width/27:7,i=o?o.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 Jq(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let o=i==n.viewports.length?null:n.viewports[i],a=o?o.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(ln.replace({widget:new wU(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!o)break;r=o.to+1}return ln.set(t)}updateDeco(){let t=this.view.state.facet(Wy).map((i,o)=>(this.dynamicDecorationMap[o]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(SZ).map((i,o)=>{let a=typeof i=="function";return a&&(n=!0),a?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Kn.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 o=kZ(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;GCe(this.view.scrollDOM,a,n.head0)r=r.childNodes[i-1],i=kc(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 gAe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function EAe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(i.length==0)return tt.cursor(t);o==0?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=Oo(i.text,o,!1):s=Oo(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let u=Oo(i.text,a,!1);if(r(i.text.slice(u,a))!=l)break;a=u}for(;se?t.left-e:Math.max(0,e-t.right)}function TAe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function yA(e,t){return e.topt.top+1}function kU(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function XR(e,t,n){let r,i,o,a,s=!1,l,u,c,d;for(let m=e.firstChild;m;m=m.nextSibling){let b=Vy(m);for(let O=0;OS||a==S&&o>v){r=m,i=y,o=v,a=S;let k=S?n0?O0)}v==0?n>y.bottom&&(!c||c.bottomy.top)&&(u=m,d=y):c&&yA(c,y)?c=xU(c,y.bottom):d&&yA(d,y)&&(d=kU(d,y.top))}}if(c&&c.bottom>=n?(r=l,i=c):d&&d.top<=n&&(r=u,i=d),!r)return{node:e,offset:0};let p=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return CU(r,p,n);if(s&&r.contentEditable!="false")return XR(r,p,n);let h=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:h}}function CU(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&d=(c.left+c.right)/2,h=p;if((en.chrome||en.gecko)&&Cp(e,s).getBoundingClientRect().left==c.right&&(h=!p),d<=0)return{node:e,offset:s+(h?1:0)};i=s+(h?1:0),o=d}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function AZ(e,t,n,r=-1){var i,o;let a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:d}=t,p=d-s;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let k=e.viewState.heightOracle.textHeight/2,C=!1;l=e.elementAtHeight(p),l.type!=aa.Text;)for(;p=r>0?l.bottom+k:l.top-k,!(p>=0&&p<=u);){if(C)return n?null:0;C=!0,r=-r}d=s+p;let h=l.from;if(he.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:AU(e,a,l,c,d);let m=e.dom.ownerDocument,b=e.root.elementFromPoint?e.root:m,O=b.elementFromPoint(c,d);O&&!e.contentDOM.contains(O)&&(O=null),O||(c=Math.max(a.left+1,Math.min(a.right-1,c)),O=b.elementFromPoint(c,d),O&&!e.contentDOM.contains(O)&&(O=null));let y,v=-1;if(O&&((i=e.docView.nearest(O))===null||i===void 0?void 0:i.isEditable)!=!1){if(m.caretPositionFromPoint){let k=m.caretPositionFromPoint(c,d);k&&({offsetNode:y,offset:v}=k)}else if(m.caretRangeFromPoint){let k=m.caretRangeFromPoint(c,d);k&&({startContainer:y,startOffset:v}=k,(!e.contentDOM.contains(y)||en.safari&&wAe(y,v,c)||en.chrome&&kAe(y,v,c))&&(y=void 0))}}if(!y||!e.docView.dom.contains(y)){let k=Ii.find(e.docView,h);if(!k)return p>l.top+l.height/2?l.to:l.from;({node:y,offset:v}=XR(k.dom,c,d))}let S=e.docView.nearest(y);if(!S)return null;if(S.isWidget&&((o=S.dom)===null||o===void 0?void 0:o.nodeType)==1){let k=S.dom.getBoundingClientRect();return t.ye.defaultLineHeight*1.5){let s=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-s)*.5)/s);o+=l*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+$R(a,o,e.state.tabSize)}function wAe(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 Cp(e,r-1,r).getBoundingClientRect().left>n}function kAe(e,t,n){if(t!=0)return!1;for(let i=e;;){let o=i.parentNode;if(!o||o.nodeType!=1||o.firstChild!=i)return!1;if(o.classList.contains("cm-line"))break;i=o}let r=e.nodeType==1?e.getBoundingClientRect():Cp(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function KR(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==aa.Text))return r}return n}function xAe(e,t,n,r){let i=KR(e,t.head),o=!r||i.type!=aa.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(o){let a=e.dom.getBoundingClientRect(),s=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(s==$r.LTR)?a.right-1:a.left+1,y:(o.top+o.bottom)/2});if(l!=null)return tt.cursor(l,n?-1:1)}return tt.cursor(n?i.to:i.from,n?-1:1)}function _U(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let u=dAe(i,o,a,s,n),c=fZ;if(!u){if(i.number==(n?e.state.doc.lines:1))return s;c=` -`,i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function CAe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return o=>{let a=r(o);return i==Yr.Space&&(i=a),i==a}}function AAe(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return tt.cursor(i,t.assoc);let a=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)a==null&&(a=u.left-l.left),s=o<0?u.top:u.bottom;else{let h=e.viewState.lineBlockAt(i);a==null&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-h.from))),s=(o<0?h.top:h.bottom)+c}let d=l.left+a,p=r??e.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let m=s+(p+h)*o,b=AZ(e,{x:d,y:m},!1,o);if(ml.bottom||(o<0?bi)){let O=e.docView.coordsForChar(b),y=!O||m{if(t>o&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:tt.cursor(r,rnull),en.gecko&&WAe(t.contentDOM.ownerDocument)}handleEvent(t){!$Ae(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=RAe(t),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let a=!n[o].handlers.length,s=r[o];s&&a!=!s.handlers.length&&(i.removeEventListener(o,this.handleEvent),s=null),s||i.addEventListener(o,this.handleEvent,{passive:a})}for(let o in r)o!="scroll"&&!n[o]&&i.removeEventListener(o,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||IAe.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,bm(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:en.safari&&!en.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 RU(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Gs(n.state,i)}}}function RAe(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 o in i.domEventHandlers){let a=i.domEventHandlers[o];a&&n(o).handlers.push(RU(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(RU(r.value,a))}}for(let r in Pl)n(r).handlers.push(Pl[r]);for(let r in Ll)n(r).observers.push(Ll[r]);return t}const _Z=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],IAe="dthko",RZ=[16,17,18,20,91,92,224,225],zv=6;function Vv(e){return Math.max(0,e)*.7+8}function DAe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class NAe{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=qCe(t.contentDOM),this.atoms=t.state.facet(FP).map(a=>a(t));let o=t.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Zn.allowMultipleSelections)&&PAe(t,n),this.dragging=MAe(t,n)&&PZ(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&&DAe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,o=((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},a=kZ(this.view);t.clientX-a.left<=o.left+zv?r=-Vv(o.left-t.clientX):t.clientX+a.right>=o.right-zv&&(r=Vv(t.clientX-o.right)),t.clientY-a.top<=o.top+zv?i=-Vv(o.top-t.clientY):t.clientY+a.bottom>=o.bottom-zv&&(i=Vv(t.clientY-o.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 PAe(e,t){let n=e.state.facet(pZ);return n.length?n[0](t):en.mac?t.metaKey:t.ctrlKey}function LAe(e,t){let n=e.state.facet(hZ);return n.length?n[0](t):en.mac?!t.altKey:!t.ctrlKey}function MAe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=AT(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}function $Ae(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=Lr.get(n))&&r.ignoreEvent(t))return!1;return!0}const Pl=Object.create(null),Ll=Object.create(null),IZ=en.ie&&en.ie_version<15||en.ios&&en.webkit_version<604;function FAe(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(),DZ(e,n.value)},50)}function DZ(e,t){let{state:n}=e,r,i=1,o=n.toText(t),a=o.lines==n.selection.ranges.length;if(JR!=null&&n.selection.ranges.every(l=>l.empty)&&JR==o.toString()){let l=-1;r=n.changeByRange(u=>{let c=n.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let d=n.toText((a?o.line(i++).text:t)+n.lineBreak);return{changes:{from:c.from,insert:d},range:tt.cursor(u.from+d.length)}})}else a?r=n.changeByRange(l=>{let u=o.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:tt.cursor(l.from+u.length)}}):r=n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Ll.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Pl.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Ll.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Ll.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Pl.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(mZ))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=jAe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new NAe(e,t,n,r)),r&&e.observer.ignore(()=>Zq(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function IU(e,t,n,r){if(r==1)return tt.cursor(t,n);if(r==2)return EAe(e.state,t,n);{let i=Ii.find(e.docView,t),o=e.state.doc.lineAt(i?i.posAtEnd:t),a=i?i.posAtStart:o.from,s=i?i.posAtEnd:o.to;return se>=t.top&&e<=t.bottom,DU=(e,t,n)=>NZ(t,n)&&e>=n.left&&e<=n.right;function BAe(e,t,n,r){let i=Ii.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(o==0)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&DU(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&DU(n,r,s)?1:a&&NZ(r,a)?-1:1}function NU(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:BAe(e,n,t.clientX,t.clientY)}}const UAe=en.ie&&en.ie_version<=11;let PU=null,LU=0,MU=0;function PZ(e){if(!UAe)return e.detail;let t=PU,n=MU;return PU=e,MU=Date.now(),LU=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(LU+1)%3:1}function jAe(e,t){let n=NU(e,t),r=PZ(t),i=e.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),i=i.map(o.changes))},get(o,a,s){let l=NU(e,o),u,c=IU(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let d=IU(e,n.pos,n.bias,r),p=Math.min(d.from,c.from),h=Math.max(d.to,c.to);c=p1&&(u=zAe(i,l.pos))?u:s?i.addRange(c):tt.create([c])}}}function zAe(e,t){for(let n=0;n=t)return tt.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}Pl.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 o=i.posAtStart,a=o+i.length;(o>=n.to||a<=n.from)&&(n=tt.range(o,a))}}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};Pl.dragend=e=>(e.inputState.draggedContent=null,!1);function $U(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,a=r&&o&&LAe(e,t)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Pl.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,o=()=>{++i==n.length&&$U(e,t,r.filter(a=>a!=null).join(e.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),o()},s.readAsText(n[a])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return $U(e,t,r,!0),!0}return!1};Pl.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=IZ?null:t.clipboardData;return n?(DZ(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(FAe(e),!1)};function VAe(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 HAe(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:o}of e.selection.ranges){let a=e.doc.lineAt(o);a.number>i&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),i=a.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let JR=null;Pl.copy=Pl.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=HAe(e.state);if(!n&&!i)return!1;JR=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=IZ?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(VAe(e,n),!1)};const LZ=Ul.define();function MZ(e,t){let n=[];for(let r of e.facet(yZ)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:LZ.of(!0)}):null}function $Z(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=MZ(e.state,t);n?e.dispatch(n):e.update([])}},10)}Ll.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),$Z(e)};Ll.blur=e=>{e.observer.clearSelectionRange(),$Z(e)};Ll.compositionstart=Ll.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Ll.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,en.chrome&&en.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Ll.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Pl.beforeinput=(e,t)=>{var n;let r;if(en.chrome&&en.android&&(r=_Z.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 o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const FU=new Set;function WAe(e){FU.has(e)||(FU.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const BU=["pre-wrap","normal","pre-line","break-spaces"];class QAe{constructor(t){this.lineWrapping=t,this.doc=ir.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 BU.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!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=o,l){this.heightSamples={};for(let u=0;u0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>nS&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return sa.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let o=this,a=r.doc;for(let s=i.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:d}=i[s],p=o.lineAt(l,Pr.ByPosNoHeight,r.setDoc(n),0,0),h=p.to>=u?p:o.lineAt(u,Pr.ByPosNoHeight,r,0,0);for(d+=h.to-u,u=h.to;s>0&&p.from<=i[s-1].toA;)l=i[s-1].fromA,c=i[s-1].fromB,s--,lo*2){let s=t[n-1];s.break?t.splice(--n,1,s.left,null,s.right):t.splice(--n,1,s.left,s.right),r+=1+s.break,i-=s.size}else if(o>i*2){let s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else break;else if(i=o&&a(this.blockAt(0,r,i,o))}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 Xa extends FZ{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new mu(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof Xa||i instanceof po&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof po?i=new Xa(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):sa.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 po extends sa{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,o=i-r+1,a,s=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*o);a=l/o,this.length>o+1&&(s=(this.height-l)/(this.length-o-1))}else a=this.height/o;return{firstLine:r,lastLine:i,perLine:a,perChar:s}}blockAt(t,n,r,i){let{firstLine:o,lastLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),c=n.doc.lineAt(u),d=s+c.length*l,p=Math.max(r,t-d/2);return new mu(c.from,c.length,p,d,0)}else{let u=Math.max(0,Math.min(a-o,Math.floor((t-r)/s))),{from:c,length:d}=n.doc.line(o+u);return new mu(c,d,r+s*u,s,0)}}lineAt(t,n,r,i,o){if(n==Pr.ByHeight)return this.blockAt(t,r,i,o);if(n==Pr.ByPosNoHeight){let{from:h,to:m}=r.doc.lineAt(t);return new mu(h,m-h,0,0,0)}let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(r,o),u=r.doc.lineAt(t),c=s+u.length*l,d=u.number-a,p=i+s*d+l*(u.from-o-d);return new mu(u.from,u.length,Math.max(i,Math.min(p,i+this.height-c)),c,0)}forEachLine(t,n,r,i,o,a){t=Math.max(t,o),n=Math.min(n,o+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,o);for(let c=t,d=i;c<=n;){let p=r.doc.lineAt(c);if(c==t){let m=p.number-s;d+=l*m+u*(t-o-m)}let h=l+u*p.length;a(new mu(p.from,p.length,d,h,0)),d+=h,c=p.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let o=r[r.length-1];o instanceof po?r[r.length-1]=new po(o.length+i):r.push(null,new po(i-1))}if(t>0){let o=r[0];o instanceof po?r[0]=new po(t+o.length):r.unshift(new po(t-1),null)}return sa.of(r)}decomposeLeft(t,n){n.push(new po(t-1),null)}decomposeRight(t,n){n.push(null,new po(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let o=n+this.length;if(i&&i.from<=n+this.length&&i.more){let a=[],s=Math.max(n,i.from),l=-1;for(i.from>n&&a.push(new po(i.from-n-1).updateHeight(t,n));s<=o&&i.more;){let c=t.doc.lineAt(s).length;a.length&&a.push(null);let d=i.heights[i.index++];l==-1?l=d:Math.abs(d-l)>=nS&&(l=-2);let p=new Xa(c,d);p.outdated=!1,a.push(p),s+=c+1}s<=o&&a.push(null,new po(o-s).updateHeight(t,s));let u=sa.of(a);return(l<0||Math.abs(u.height-this.height)>=nS||Math.abs(l-this.heightMetrics(t,n).perLine)>=nS)&&(t.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class GAe extends sa{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 o=r+this.left.height;return ts))return u;let c=n==Pr.ByPosNoHeight?Pr.ByPosNoHeight:Pr.ByPos;return l?u.join(this.right.lineAt(s,c,r,a,s)):this.left.lineAt(s,c,r,i,o).join(u)}forEachLine(t,n,r,i,o,a){let s=i+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,s,l,a);else{let u=this.lineAt(l,Pr.ByPos,r,i,o);t=t&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}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 o=[];t>0&&this.decomposeLeft(t,o);let a=o.length;for(let s of r)o.push(s);if(t>0&&UU(o,a-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?sa.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:o,right:a}=this,s=n+o.length+this.break,l=null;return i&&i.from<=n+o.length&&i.more?l=o=o.updateHeight(t,n,r,i):o.updateHeight(t,n,r),i&&i.from<=s+a.length&&i.more?l=a=a.updateHeight(t,s,r,i):a.updateHeight(t,s,r),l?this.balanced(o,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function UU(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof po&&(r=e[t+1])instanceof po&&e.splice(t-1,3,new po(n.length+1+r.length))}const qAe=5;class BP{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 Xa?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Xa(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=qAe)&&this.addLineDeco(i,o,a)}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 Xa(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new po(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 Xa)return t;let n=new Xa(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 Xa)&&!this.isCovered?this.nodes.push(new Xa(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&d.overflow!="visible"){let p=c.getBoundingClientRect();o=Math.max(o,p.left),a=Math.min(a,p.right),s=Math.max(s,p.top),l=u==e.parentNode?p.bottom:Math.min(l,p.bottom)}u=d.position=="absolute"||d.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function JAe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class vA{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 QAe(n),this.stateDeco=t.facet(Wy).filter(r=>typeof r!="function"),this.heightMap=sa.empty().applyChanges(this.stateDeco,ir.empty,this.heightOracle.setDoc(t.doc),[new qs(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ln.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:o,to:a})=>i>=o&&i<=a)){let{from:o,to:a}=this.lineBlockAt(i);t.push(new Hv(o,a))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?zU:new r2e(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:cb(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Wy).filter(c=>typeof c!="function");let i=t.changedRanges,o=qs.extendWithRanges(i,ZAe(r,this.stateDeco,t?t.changes:Ni.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&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(vZ)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,o=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?$r.RTL:$r.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:k,scaleY:C}=qq(n,s);(this.scaleX!=k||this.scaleY!=C)&&(this.scaleX=k,this.scaleY=C,u|=8,a=l=!0)}let d=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=p)&&(this.paddingTop=d,this.paddingBottom=p,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let h=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=Kq(t.scrollDOM);let m=(this.printing?JAe:KAe)(n,this.paddingTop),b=m.top-this.pixelViewport.top,O=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=s.width;if((this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let k=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(k)&&(a=!0),a||i.lineWrapping&&Math.abs(v-this.contentDOMWidth)>i.charWidth){let{lineHeight:C,charWidth:w,textHeight:E}=t.docView.measureTextSize();a=C>0&&i.refresh(o,C,w,E,v/w,k),a&&(t.docView.minWidth=0,u|=8)}b>0&&O>0?c=Math.max(b,O):b<0&&O<0&&(c=Math.min(b,O)),i.heightChanged=!1;for(let C of this.viewports){let w=C.from==this.viewport.from?k:t.docView.measureVisibleLineHeights(C);this.heightMap=(a?sa.empty().applyChanges(this.stateDeco,ir.empty,this.heightOracle,[new qs(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new YAe(C.from,w))}i.heightChanged&&(u|=2)}let S=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}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,o=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new Hv(i.lineAt(a-r*1e3,Pr.ByHeight,o,0,0).from,i.lineAt(s+(1-r)*1e3,Pr.ByHeight,o,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=i.lineAt(u,Pr.ByPos,o,0,0),p;n.y=="center"?p=(d.top+d.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u=s+Math.max(10,Math.min(r,250)))&&i>a-2*1e3&&o>1,a=i<<1;if(this.defaultTextDirection!=$r.LTR&&!r)return[];let s=[],l=(u,c,d,p)=>{if(c-uu&&OO.from>=d.from&&O.to<=d.to&&Math.abs(O.from-u)O.fromy));if(!b){if(cO.from<=c&&O.to>=c)){let O=n.moveToLineBoundary(tt.cursor(c),!1,!0).head;O>u&&(c=O)}b=new vA(u,c,this.gapSize(d,u,c,p))}s.push(b)};for(let u of this.viewportLines){if(u.lengthu.from&&l(u.from,p,u,c),hn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Kn.spans(t,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,o)=>i.from!=n[o].from||i.to!=n[o].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)||cb(this.heightMap.lineAt(t,Pr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return cb(this.heightMap.lineAt(this.scaler.fromDOM(t),Pr.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 cb(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 Hv{constructor(t,n){this.from=t,this.to=n}}function t2e(e,t,n){let r=[],i=e,o=0;return Kn.spans(n,e,t,{span(){},point(a,s){a>i&&(r.push({from:i,to:a}),o+=a-i),i=s}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:o,to:a}=t[i],s=a-o;if(r<=s)return o+r;r-=s}}function Qv(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 n2e(e,t){for(let n of e)if(t(n))return n}const zU={toDOM(e){return e},fromDOM(e){return e},scale:1};class r2e{constructor(t,n,r){let i=0,o=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Pr.ByPos,t,0,0).top,c=n.lineAt(l,Pr.ByPos,t,0,0).bottom;return i+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let s of this.viewports)s.domTop=a+(s.top-o)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let o=ncb(i,t)):e._content)}const Yv=qt.define({combine:e=>e.join(" ")}),eI=qt.define({combine:e=>e.indexOf(!0)>-1}),tI=qd.newName(),BZ=qd.newName(),UZ=qd.newName(),jZ={"&light":"."+BZ,"&dark":"."+UZ};function nI(e,t,n){return new qd(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 i2e=nI("."+tI,{"&":{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"}},jZ),db="￿";class o2e{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Zn.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=db}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let o=this.text.length;this.readNode(i);let a=i.nextSibling;if(a==n)break;let s=Lr.get(i),l=Lr.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:VU(i))||VU(a)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>o)&&this.lineBreak(),i=a}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 o=-1,a=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=i.exec(n))&&(o=s.index,a=s[0].length),this.append(n.slice(r,o<0?n.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=a-1);r=o+a}}readNode(t){if(t.cmIgnore)return;let n=Lr.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+(a2e(t,r.node,r.offset)?n:0))}}function a2e(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let s=o||a?[]:c2e(t),l=new o2e(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=d2e(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!UR(t.contentDOM,s.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!UR(t.contentDOM,s.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(s.anchorNode,s.anchorOffset),c=t.viewport;if(en.ios&&t.state.selection.main.empty&&l!=u&&(c.from>0||c.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:a,to:s}=t.bounds,l=i.from,u=null;(o===8||en.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))}:(en.mac||en.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=tt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:ir.of([" "])}):en.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=tt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:ir.of([" "])}),n){if(en.ios&&e.inputState.flushIOSKey()||en.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&bm(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||o==8&&n.insert.lengthi.head)&&bm(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&bm(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=l2e(e,n,r));return e.state.facet(bZ).some(u=>u(e,n.from,n.to,a,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let a=!1,s="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(a=!0),s=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function l2e(e,t,n){let r,i=e.state,o=i.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let s=o.fromt.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(s+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let s=i.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let u=e.state.sliceDoc(t.from,t.to),c,d=n&&xZ(e,n.main.head);if(d){let m=t.insert.length-(t.to-t.from);c={from:d.from,to:d.to-m}}else c=e.state.doc.lineAt(o.head);let p=o.to-t.to,h=o.to-o.from;r=i.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:s,range:l||m.map(s)};let b=m.to-p,O=b-u.length;if(m.to-m.from!=h||e.state.sliceDoc(O,b)!=u||m.to>=c.from&&m.from<=c.to)return{range:m};let y=i.changes({from:O,to:b,insert:t.insert}),v=m.to-o.to;return{changes:y,range:l?tt.range(Math.max(0,l.anchor+v),Math.max(0,l.head+v)):m.map(y)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function u2e(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,o-Math.min(a,s));n-=a+l-o}if(a=a?o-n:0;o-=l,s=o+(s-a),a=o}else if(s=s?o-n:0;o-=l,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function c2e(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new HU(n,r)),(i!=n||o!=r)&&t.push(new HU(i,o))),t}function d2e(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?tt.single(n+t,r+t):null}const f2e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},EA=en.ie&&en.ie_version<=11;class p2e{constructor(t){this.view=t,this.active=!1,this.selectionRange=new ZCe,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);(en.ie&&en.ie_version<=11||en.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()}),EA&&(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(ex)?r.root.activeElement!=this.dom:!eS(r.dom,i))return;let o=i.anchorNode&&r.docView.nearest(i.anchorNode);if(o&&o.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(en.ie&&en.ie_version<=11||en.android&&en.chrome)&&!r.state.selection.main.empty&&i.focusNode&&Fb(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=en.safari&&t.root.nodeType==11&&QCe(this.dom.ownerDocument)==this.dom&&h2e(this.view)||AT(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=eS(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&bm(this.dom,o.key,o.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 o of t){let a=this.readMutation(o);a&&(a.typeOver&&(i=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&eS(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 o=new s2e(this.view,t,n,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}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=zZ(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=WU(n,t.previousSibling||t.target.previousSibling,-1),i=WU(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 WU(e,t,n){for(;t;){let r=Lr.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 h2e(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,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return Fb(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}class Ht{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||XCe(t.parent)||document,this.viewState=new jU(t.state||Zn.create(t)),t.scrollTo&&t.scrollTo.is(jv)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(lb).map(r=>new bA(r));for(let r of this.plugins)r.update(this);this.observer=new p2e(this),this.inputState=new _Ae(this),this.inputState.ensureHandlers(this.plugins),this.docView=new TU(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof wi?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,o=this.state;for(let p of t){if(p.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=p.state}if(this.destroyed){this.viewState.state=o;return}let a=this.hasFocus,s=0,l=null;t.some(p=>p.annotation(LZ))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=MZ(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(Zn.phrases)!=this.state.facet(Zn.phrases))return this.setState(o);i=_T.create(this,o,t),i.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let p of t){if(d&&(d=d.map(p.changes)),p.scrollIntoView){let{main:h}=p.state.selection;d=new ym(h.empty?h:tt.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of p.effects)h.is(jv)&&(d=h.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=RT.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(ub)!=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(Yv)!=i.state.facet(Yv)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(ZR))try{p(i)}catch(h){Gs(this.state,h,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!zZ(this,c)&&u.force&&bm(this.contentDOM,u.key,u.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 jU(t),this.plugins=t.facet(lb).map(r=>new bA(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new TU(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(lb),r=t.state.facet(lb);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new bA(o));else{let s=this.plugins[a];s.mustUpdate=t,i.push(s)}}for(let o of this.plugins)o.mustUpdate!=t&&o.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:o,scrollAnchorHeight:a}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(Kq(r))o=-1,a=this.viewState.heightMap.height;else{let h=this.viewState.scrollAnchorAt(i);o=h.from,a=h.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(h=>{try{return h.read(this)}catch(m){return Gs(this.state,m),QU}}),d=_T.create(this,this.state,[]),p=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),p=this.docView.update(d));for(let h=0;h1||m<-1){i=i+m,r.scrollTop=i/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(ZR))s(n)}get themeClasses(){return tI+" "+(this.state.facet(eI)?UZ:BZ)+" "+this.state.facet(Yv)}updateAttrs(){let t=YU(this,EZ,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(ex)?"true":"false",class:"cm-content",style:`${en.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),YU(this,$P,n);let r=this.observer.ignore(()=>{let i=WR(this.contentDOM,this.contentAttrs,n),o=WR(this.dom,this.editorAttrs,t);return i||o});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(Ht.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(ub);let t=this.state.facet(Ht.cspNonce);qd.mount(this.root,this.styleModules.concat(i2e).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 OA(this,t,_U(this,t,n,r))}moveByGroup(t,n){return OA(this,t,_U(this,t,n,r=>CAe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),o=r[n?r.length-1:0];return tt.cursor(o.side(n,i)+t.from,o.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return xAe(this,t,n,r)}moveVertically(t,n,r){return OA(this,t,AAe(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(),AZ(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),o=this.bidiSpans(i),a=o[Ed.find(o,t-i.from,-1,n)];return NP(r,a.dir==$r.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(OZ)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>m2e)return dZ(t.length);let n=this.textDirectionAt(t.from),r;for(let o of this.bidiCache)if(o.from==t.from&&o.dir==n&&(o.fresh||cZ(o.isolates,r=SU(this,t))))return o.order;r||(r=SU(this,t));let i=cAe(t.text,n,r);return this.bidiCache.push(new RT(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||en.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Zq(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 jv.of(new ym(typeof t=="number"?tt.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 jv.of(new ym(tt.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return ei.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return ei.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=qd.newName(),i=[Yv.of(r),ub.of(nI(`.${r}`,t))];return n&&n.dark&&i.push(eI.of(!0)),i}static baseTheme(t){return df.lowest(ub.of(nI("."+tI,t,jZ)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&Lr.get(r)||Lr.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}Ht.styleModule=ub;Ht.inputHandler=bZ;Ht.focusChangeEffect=yZ;Ht.perLineTextDirection=OZ;Ht.exceptionSink=gZ;Ht.updateListener=ZR;Ht.editable=ex;Ht.mouseSelectionStyle=mZ;Ht.dragMovesSelection=hZ;Ht.clickAddsSelectionRange=pZ;Ht.decorations=Wy;Ht.outerDecorations=SZ;Ht.atomicRanges=FP;Ht.bidiIsolatedRanges=TZ;Ht.scrollMargins=wZ;Ht.darkTheme=eI;Ht.cspNonce=qt.define({combine:e=>e.length?e[0]:""});Ht.contentAttributes=$P;Ht.editorAttributes=EZ;Ht.lineWrapping=Ht.contentAttributes.of({class:"cm-lineWrapping"});Ht.announce=xn.define();const m2e=4096,QU={};class RT{constructor(t,n,r,i,o,a){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=o,this.order=a}static update(t,n){if(n.empty&&!t.some(o=>o.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:$r.LTR;for(let o=Math.max(0,t.length-10);o=0;i--){let o=r[i],a=typeof o=="function"?o(e):o;a&&HR(a,n)}return n}const g2e=en.mac?"mac":en.windows?"win":en.linux?"linux":"key";function b2e(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,o,a,s;for(let l=0;lr.concat(i),[]))),n}function O2e(e,t,n){return HZ(VZ(e.state),t,e,n)}let ad=null;const v2e=4e3;function E2e(e,t=g2e){let n=Object.create(null),r=Object.create(null),i=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},o=(a,s,l,u,c)=>{var d,p;let h=n[a]||(n[a]=Object.create(null)),m=s.split(/ (?!$)/).map(y=>b2e(y,t));for(let y=1;y{let k=ad={view:S,prefix:v,scope:a};return setTimeout(()=>{ad==k&&(ad=null)},v2e),!0}]})}let b=m.join(" ");i(b,!1);let O=h[b]||(h[b]={preventDefault:!1,stopPropagation:!1,run:((p=(d=h._any)===null||d===void 0?void 0:d.run)===null||p===void 0?void 0:p.slice())||[]});l&&O.run.push(l),u&&(O.preventDefault=!0),c&&(O.stopPropagation=!0)};for(let a of e){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in c)c[d].run.push(a.any)}let l=a[t]||a.key;if(l)for(let u of s)o(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}function HZ(e,t,n,r){let i=WCe(t),o=mo(i,0),a=Bs(o)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;ad&&ad.view==n&&ad.scope==r&&(s=ad.prefix+" ",RZ.indexOf(t.keyCode)<0&&(u=!0,ad=null));let d=new Set,p=O=>{if(O){for(let y of O.run)if(!d.has(y)&&(d.add(y),y(n,t)))return O.stopPropagation&&(c=!0),!0;O.preventDefault&&(O.stopPropagation&&(c=!0),u=!0)}return!1},h=e[r],m,b;return h&&(p(h[s+Gv(i,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(en.windows&&t.ctrlKey&&t.altKey)&&(m=Zd[t.keyCode])&&m!=i?(p(h[s+Gv(m,t,!0)])||t.shiftKey&&(b=zy[t.keyCode])!=i&&b!=m&&p(h[s+Gv(b,t,!1)]))&&(l=!0):a&&t.shiftKey&&p(h[s+Gv(i,t,!0)])&&(l=!0),!l&&p(h._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class dO{constructor(t,n,r,i,o){this.className=t,this.left=n,this.top=r,this.width=i,this.height=o}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 o=WZ(t);return[new dO(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return S2e(t,n,r)}}function WZ(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==$r.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function qU(e,t,n){let r=tt.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:aa.Text}}function S2e(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),o=e.textDirection==$r.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=WZ(e),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),p=s.right-(c?parseInt(c.paddingRight):0),h=KR(e,r),m=KR(e,i),b=h.type==aa.Text?h:null,O=m.type==aa.Text?m:null;if(b&&(e.lineWrapping||h.widgetLineBreaks)&&(b=qU(e,r,b)),O&&(e.lineWrapping||m.widgetLineBreaks)&&(O=qU(e,i,O)),b&&O&&b.from==O.from)return v(S(n.from,n.to,b));{let C=b?S(n.from,null,b):k(h,!1),w=O?S(null,n.to,O):k(m,!0),E=[];return(b||h).to<(O||m).from-(b&&O?1:0)||h.widgetLineBreaks>1&&C.bottom+e.defaultLineHeight/2U&&z.from=X)break;j>W&&B(Math.max(Z,W),C==null&&Z<=U,Math.min(j,X),w==null&&j>=V,Y.dir)}if(W=q.to+1,W>=X)break}return _.length==0&&B(U,C==null,V,w==null,e.textDirection),{top:$,bottom:P,horizontal:_}}function k(C,w){let E=s.top+(w?C.top:C.bottom);return{top:E,bottom:E,horizontal:[]}}}function T2e(e,t){return e.constructor==t.constructor&&e.eq(t)}class w2e{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(rS)!=t.state.facet(rS)&&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(rS);for(;n!T2e(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 rS=qt.define();function QZ(e){return[ei.define(t=>new w2e(t,e)),rS.of(e)]}const YZ=!en.ios,Qy=qt.define({combine(e){return $u(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function k2e(e={}){return[Qy.of(e),x2e,C2e,A2e,vZ.of(!0)]}function GZ(e){return e.startState.facet(Qy)!=e.state.facet(Qy)}const x2e=QZ({above:!0,markers(e){let{state:t}=e,n=t.facet(Qy),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty?!o||YZ:n.drawRangeCursor){let a=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=i.empty?i:tt.cursor(i.head,i.head>i.anchor?-1:1);for(let l of dO.forRange(e,a,s))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=GZ(e);return n&&ZU(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){ZU(t.state,e)},class:"cm-cursorLayer"});function ZU(e,t){t.style.animationDuration=e.facet(Qy).cursorBlinkRate+"ms"}const C2e=QZ({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:dO.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||GZ(e)},class:"cm-selectionLayer"}),rI={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};YZ&&(rI[".cm-line"].caretColor="transparent !important",rI[".cm-content"]={caretColor:"transparent !important"});const A2e=df.highest(Ht.theme(rI)),qZ=xn.define({map(e,t){return e==null?null:t.mapPos(e)}}),fb=ro.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(qZ)?r.value:n,e)}}),_2e=ei.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(fb);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(fb)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(fb),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(fb)!=e&&this.view.dispatch({effects:qZ.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 R2e(){return[fb,_2e]}function XU(e,t,n,r,i){t.lastIndex=0;for(let o=e.iterRange(n,r),a=n,s;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=t.exec(o.value);)i(a+s.index,s)}function I2e(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:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}class D2e{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:o,maxLength:a=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=(s,l,u,c)=>i(c,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,c)=>{let d=r(s,l,u);d&&c(u,u+s[0].length,d)};else if(r)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=a}createDeco(t){let n=new Gd,r=n.add.bind(n);for(let{from:i,to:o}of I2e(t,this.maxLength))XU(t.state.doc,this.regexp,i,o,(a,s)=>this.addMatch(s,t,a,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((o,a,s,l)=>{l>t.view.viewport.from&&s1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let o of t.visibleRanges){let a=Math.max(o.from,r),s=Math.min(o.to,i);if(s>a){let l=t.state.doc.lineAt(a),u=l.tol.from;a--)if(this.boundary.test(l.text[a-1-l.from])){c=a;break}for(;sp.push(y.range(b,O));if(l==u)for(this.regexp.lastIndex=c-l.from;(h=this.regexp.exec(l.text))&&h.indexthis.addMatch(O,t,b,m));n=n.update({filterFrom:c,filterTo:d,filter:(b,O)=>bd,add:p})}}return n}}const iI=/x/.unicode!=null?"gu":"g",N2e=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,iI),P2e={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 SA=null;function L2e(){var e;if(SA==null&&typeof document<"u"&&document.body){let t=document.body.style;SA=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return SA||!1}const iS=qt.define({combine(e){let t=$u(e,{render:null,specialChars:N2e,addSpecialChars:null});return(t.replaceTabs=!L2e())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,iI)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,iI)),t}});function M2e(e={}){return[iS.of(e),$2e()]}let KU=null;function $2e(){return KU||(KU=ei.fromClass(class{constructor(e){this.view=e,this.decorations=ln.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(iS)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new D2e({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=mo(t[0],0);if(o==9){let a=i.lineAt(r),s=n.state.tabSize,l=Nl(a.text,s,r-a.from);return ln.replace({widget:new j2e((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=ln.replace({widget:new U2e(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(iS);e.startState.facet(iS)!=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 F2e="•";function B2e(e){return e>=32?F2e:e==10?"␤":String.fromCharCode(9216+e)}class U2e extends Fu{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=B2e(this.code),r=t.state.phrase("Control character")+" "+(P2e[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class j2e extends Fu{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 z2e(){return H2e}const V2e=ln.line({class:"cm-activeLine"}),H2e=ei.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(V2e.range(i.from)),t=i.from)}return ln.set(n)}},{decorations:e=>e.decorations}),oI=2e3;function W2e(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>oI||n.off>oI||t.col<0||n.col<0){let a=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=s&&o.push(tt.range(u.from+a,u.to+s))}}else{let a=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),c=$R(u.text,a,e.tabSize,!0);if(c<0)o.push(tt.cursor(u.to));else{let d=$R(u.text,s,e.tabSize);o.push(tt.range(u.from+c,u.from+d))}}}return o}function Q2e(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function JU(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,o=i>oI?-1:i==r.length?Q2e(e,t.clientX):Nl(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function Y2e(e,t){let n=JU(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let o=i.changes.mapPos(i.startState.doc.line(n.line).from),a=i.state.doc.lineAt(o);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(i.changes)}},get(i,o,a){let s=JU(e,i);if(!s)return r;let l=W2e(e.state,n,s);return l.length?a?tt.create(l.concat(r.ranges)):tt.create(l):r}}:null}function G2e(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return Ht.mouseSelectionStyle.of((n,r)=>t(r)?Y2e(n,r):null)}const q2e={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Z2e={style:"cursor: crosshair"};function X2e(e={}){let[t,n]=q2e[e.key||"Alt"],r=ei.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,Ht.contentAttributes.of(i=>{var o;return!((o=i.plugin(r))===null||o===void 0)&&o.isDown?Z2e:null})]}const P0="-10000px";class ZZ{constructor(t,n,r){this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),o=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let a=[],s=n?[]:null;for(let l=0;ln[u]=l),n.length=s.length),this.input=i,this.tooltips=o,this.tooltipViews=a,!0}}function K2e(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const TA=qt.define({combine:e=>{var t,n,r;return{position:en.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)||K2e}}}),e9=new WeakMap,UP=ei.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(TA);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.manager=new ZZ(e,jP,n=>this.createTooltip(n)),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(TA);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=P0,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(e=n.destroy)===null||e===void 0||e.call(n);this.parent&&this.container.remove(),(t=this.intersectionObserver)===null||t===void 0||t.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(en.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==P0&&i.style.left=="0px"){let o=i.getBoundingClientRect();r=Math.abs(o.top+1e4)>1||Math.abs(o.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,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(TA).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1){c.style.top=P0;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,m=h?7:0,b=p.right-p.left,O=(t=e9.get(u))!==null&&t!==void 0?t:p.bottom-p.top,y=u.offset||e_e,v=this.view.textDirection==$r.LTR,S=p.width>r.right-r.left?v?r.left:r.right-p.width:v?Math.min(d.left-(h?14:0)+y.x,r.right-b):Math.max(r.left,d.left-b+(h?14:0)-y.x),k=this.above[s];!l.strictSide&&(k?d.top-(p.bottom-p.top)-y.yr.bottom)&&k==r.bottom-d.bottom>d.top-r.top&&(k=this.above[s]=!k);let C=(k?d.top-r.top:r.bottom-d.bottom)-m;if(CS&&$.topw&&(w=k?$.top-O-2-m:$.bottom+m+2);if(this.position=="absolute"?(c.style.top=(w-e.parent.top)/o+"px",c.style.left=(S-e.parent.left)/i+"px"):(c.style.top=w/o+"px",c.style.left=S/i+"px"),h){let $=d.left+(v?y.x:-y.x)-(S+14-7);h.style.left=$/i+"px"}u.overlap!==!0&&a.push({left:S,top:w,right:E,bottom:w+O}),c.classList.toggle("cm-tooltip-above",k),c.classList.toggle("cm-tooltip-below",!k),u.positioned&&u.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=P0}},{eventObservers:{scroll(){this.maybeMeasure()}}}),J2e=Ht.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"}}}),e_e={x:0,y:0},jP=qt.define({enables:[UP,J2e]}),IT=qt.define();class tx{static create(t){return new tx(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ZZ(t,IT,n=>this.createHostedView(n))}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 t_e=jP.compute([IT],e=>{let t=e.facet(IT).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:tx.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class n_e{constructor(t,n,r,i,o){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=o,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;ts.bottom||n.xs.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==$r.RTL?-1:1;o=n.x{this.pending==s&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Gs(t.state,l,"hover tooltip"))}else a&&t.dispatch({effects:this.setHover.of(a)})}get tooltip(){let t=this.view.plugin(UP),n=t?t.manager.tooltips.findIndex(r=>r.create==tx.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&&!r_e(i.dom,t)||this.pending){let{pos:o}=r||this.pending,a=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:o;(o==a?this.view.posAtCoords(this.lastMove)!=o:!i_e(this.view,o,a,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 qv=4;function r_e(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-qv&&t.clientX<=n.right+qv&&t.clientY>=n.top-qv&&t.clientY<=n.bottom+qv}function i_e(e,t,n,r,i,o){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.righti||Math.min(a.bottom,s)=t&&l<=n}function o_e(e,t={}){let n=xn.define(),r=ro.define({create(){return null},update(i,o){if(i&&(t.hideOnChange&&(o.docChanged||o.selection)||t.hideOn&&t.hideOn(o,i)))return null;if(i&&o.docChanged){let a=o.changes.mapPos(i.pos,-1,bo.TrackDel);if(a==null)return null;let s=Object.assign(Object.create(null),i);s.pos=a,i.end!=null&&(s.end=o.changes.mapPos(i.end)),i=s}for(let a of o.effects)a.is(n)&&(i=a.value),a.is(a_e)&&(i=null);return i},provide:i=>IT.from(i)});return[r,ei.define(i=>new n_e(i,e,r,n,t.hoverTime||300)),t_e]}function XZ(e,t){let n=e.plugin(UP);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const a_e=xn.define(),t9=qt.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 Yy(e,t){let n=e.plugin(KZ),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const KZ=ei.fromClass(class{constructor(e){this.input=e.state.facet(Gy),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(t9);this.top=new Zv(e,!0,t.topContainer),this.bottom=new Zv(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(t9);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Zv(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Zv(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Gy);if(n!=this.input){let r=n.filter(l=>l),i=[],o=[],a=[],s=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(e.view),s.push(c)):(c=this.panels[u],c.update&&c.update(e)),i.push(c),(c.top?o:a).push(c)}this.specs=r,this.panels=i,this.top.sync(o),this.bottom.sync(a);for(let l of s)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=>Ht.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Zv{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=n9(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=n9(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 n9(e){let t=e.nextSibling;return e.remove(),t}const Gy=qt.define({enables:KZ});class Ac extends xp{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Ac.prototype.elementClass="";Ac.prototype.toDOM=void 0;Ac.prototype.mapMode=bo.TrackBefore;Ac.prototype.startSide=Ac.prototype.endSide=-1;Ac.prototype.point=!0;const oS=qt.define(),s_e={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Kn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Ub=qt.define();function l_e(e){return[JZ(),Ub.of(Object.assign(Object.assign({},s_e),e))]}const aI=qt.define({combine:e=>e.some(t=>t)});function JZ(e){let t=[u_e];return e&&e.fixed===!1&&t.push(aI.of(!0)),t}const u_e=ei.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(Ub).map(t=>new i9(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(aI),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(aI)!=!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=Kn.iter(this.view.state.facet(oS),this.view.viewport.from),r=[],i=this.gutters.map(o=>new c_e(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let a=!0;for(let s of o.type)if(s.type==aa.Text&&a){sI(n,r,s.from);for(let l of i)l.line(this.view,s,r);a=!1}else if(s.widget)for(let l of i)l.widget(this.view,s)}else if(o.type==aa.Text){sI(n,r,o.from);for(let a of i)a.line(this.view,o,r)}else if(o.widget)for(let a of i)a.widget(this.view,o);for(let o of i)o.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Ub),n=e.state.facet(Ub),r=e.docChanged||e.heightChanged||e.viewportChanged||!Kn.eq(e.startState.facet(oS),e.state.facet(oS),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 o of n){let a=t.indexOf(o);a<0?i.push(new i9(this.view,o)):(this.gutters[a].update(e),i.push(this.gutters[a]))}for(let o of this.gutters)o.dom.remove(),i.indexOf(o)<0&&o.destroy();for(let o of i)this.dom.appendChild(o.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Ht.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==$r.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function r9(e){return Array.isArray(e)?e:[e]}function sI(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class c_e{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Kn.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,o=(n.top-this.height)/t.scaleY,a=n.height/t.scaleY;if(this.i==i.elements.length){let s=new eX(t,a,o,r);i.elements.push(s),i.dom.appendChild(s.dom)}else i.elements[this.i].update(t,a,o,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];sI(this.cursor,i,n.from),r.length&&(i=i.concat(r));let o=this.gutter.config.lineMarker(t,n,i);o&&i.unshift(o);let a=this.gutter;i.length==0&&!a.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 i9{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 o=i.target,a;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=i.clientY;let s=t.lineBlockAtHeight(a-t.documentTop);n.domEventHandlers[r](t,s,i)&&i.preventDefault()});this.markers=r9(n.markers(t)),n.initialSpacer&&(this.spacer=new eX(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=r9(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!Kn.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 eX{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":""),d_e(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let o=0,a=0;;){let s=a,l=oo(s,l,u)||a(s,l,u):a}return r}})}});class wA extends Ac{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function kA(e,t){return e.state.facet(Jh).formatNumber(t,e.state)}const p_e=Ub.compute([Jh],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(f_e)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new wA(kA(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Jh)!=t.state.facet(Jh),initialSpacer(t){return new wA(kA(t,o9(t.state.doc.lines)))},updateSpacer(t,n){let r=kA(n.view,o9(n.view.state.doc.lines));return r==t.number?t:new wA(r)},domEventHandlers:e.facet(Jh).domEventHandlers}));function h_e(e={}){return[Jh.of(e),JZ(),p_e]}function o9(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(m_e.range(i)))}return Kn.of(t)});function b_e(){return g_e}const tX=1024;let y_e=0;class js{constructor(t,n){this.from=t,this.to=n}}class vn{constructor(t={}){this.id=y_e++,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=$i.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}vn.closedBy=new vn({deserialize:e=>e.split(" ")});vn.openedBy=new vn({deserialize:e=>e.split(" ")});vn.group=new vn({deserialize:e=>e.split(" ")});vn.isolate=new vn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});vn.contextHash=new vn({perNode:!0});vn.lookAhead=new vn({perNode:!0});vn.mounted=new vn({perNode:!0});class qy{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[vn.mounted.id]}}const O_e=Object.create(null);class $i{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):O_e,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new $i(t.name||"",n,t.id,r);if(t.props){for(let o of t.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[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(vn.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(vn.group),o=-1;o<(i?i.length:0);o++){let a=n[o<0?r.name:i[o]];if(a)return a}}}}$i.none=new $i("",Object.create(null),0,8);class fO{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(a|xr.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!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:HP($i.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new fr(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new fr($i.none,n,r,i)))}static build(t){return T_e(t)}}fr.empty=new fr($i.none,[],[],0);class zP{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 zP(this.buffer,this.index)}}class Kd{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return $i.none}toString(){let t=[];for(let n=0;n0));l=a[l+3]);return s}slice(t,n,r){let i=this.buffer,o=new Uint16Array(n-t),a=0;for(let s=t,l=0;s=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Zy(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?s.length:-1;t!=u;t+=n){let c=s[t],d=l[t]+a.from;if(nX(i,r,d,d+c.length)){if(c instanceof Kd){if(o&xr.ExcludeBuffers)continue;let p=c.findChild(0,c.buffer.length,n,r-d,i);if(p>-1)return new Ou(new v_e(a,c,t,d),null,p)}else if(o&xr.IncludeAnonymous||!c.type.isAnonymous||VP(c)){let p;if(!(o&xr.IgnoreMounts)&&(p=qy.get(c))&&!p.overlay)return new Fo(p.tree,d,t,a);let h=new Fo(c,d,t,a);return o&xr.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&xr.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?t=a.index+n:t=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))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&xr.IgnoreOverlays)&&(i=qy.get(this._tree))&&i.overlay){let o=t-this.from;for(let{from:a,to:s}of i.overlay)if((n>0?a<=o:a=o:s>o))return new Fo(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 s9(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let a=!1;!a;)if(a=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function lI(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 v_e{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Ou extends rX{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,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return o<0?null:new Ou(this.context,this,o)}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&xr.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return o<0?null:new Ou(this.context,this,o)}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 Ou(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 Ou(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,o=r.buffer[this.index+3];if(o>i){let a=r.buffer[this.index+1];t.push(r.slice(i,o,a)),n.push(0)}return new fr(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function iX(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;on.from||a.to=t){let s=new Fo(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(Zy(s,t,n,!1))}}return i?iX(i):r}class DT{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 Fo)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 Fo?(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,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}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&xr.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&xr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&xr.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 o=n+t,a=t<0?-1:r._tree.children.length;o!=a;o+=t){let s=r._tree.children[o];if(this.mode&xr.IncludeAnonymous||s instanceof Kd||!s.type.isAnonymous||VP(s))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 a=t;a;a=a._parent)if(a.index==i){if(i==this.index)return a;n=a,r=o+1;break e}i=this.stack[--o]}for(let i=r;i=0;o--){if(o<0)return lI(this.node,t,i);let a=r[n.buffer[this.stack[o]]];if(!a.isAnonymous){if(t[i]&&t[i]!=a.name)return!1;i--}}return!0}}function VP(e){return e.children.some(t=>t instanceof Kd||!t.type.isAnonymous||VP(t))}function T_e(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=tX,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new zP(n,n.length):n,l=r.types,u=0,c=0;function d(C,w,E,$,P,_){let{id:B,start:U,end:V,size:z}=s,W=c;for(;z<0;)if(s.next(),z==-1){let j=o[B];E.push(j),$.push(U-C);return}else if(z==-3){u=B;return}else if(z==-4){c=B;return}else throw new RangeError(`Unrecognized record size: ${z}`);let X=l[B],q,Y,Z=U-C;if(V-U<=i&&(Y=O(s.pos-w,P))){let j=new Uint16Array(Y.size-Y.skip),se=s.pos-Y.size,ve=j.length;for(;s.pos>se;)ve=y(Y.start,j,ve);q=new Kd(j,V-Y.start,r),Z=Y.start-C}else{let j=s.pos-z;s.next();let se=[],ve=[],G=B>=a?B:-1,ce=0,ge=V;for(;s.pos>j;)G>=0&&s.id==G&&s.size>=0?(s.end<=ge-i&&(m(se,ve,U,ce,s.end,ge,G,W),ce=se.length,ge=s.end),s.next()):_>2500?p(U,j,se,ve):d(U,j,se,ve,G,_+1);if(G>=0&&ce>0&&ce-1&&ce>0){let ue=h(X);q=HP(X,se,ve,0,se.length,0,V-U,ue,ue)}else q=b(X,se,ve,V-U,W-V)}E.push(q),$.push(Z)}function p(C,w,E,$){let P=[],_=0,B=-1;for(;s.pos>w;){let{id:U,start:V,end:z,size:W}=s;if(W>4)s.next();else{if(B>-1&&V=0;z-=3)U[W++]=P[z],U[W++]=P[z+1]-V,U[W++]=P[z+2]-V,U[W++]=W;E.push(new Kd(U,P[2]-V,r)),$.push(V-C)}}function h(C){return(w,E,$)=>{let P=0,_=w.length-1,B,U;if(_>=0&&(B=w[_])instanceof fr){if(!_&&B.type==C&&B.length==$)return B;(U=B.prop(vn.lookAhead))&&(P=E[_]+B.length+U)}return b(C,w,E,$,P)}}function m(C,w,E,$,P,_,B,U){let V=[],z=[];for(;C.length>$;)V.push(C.pop()),z.push(w.pop()+E-P);C.push(b(r.types[B],V,z,_-P,U-_)),w.push(P-E)}function b(C,w,E,$,P=0,_){if(u){let B=[vn.contextHash,u];_=_?[B].concat(_):[B]}if(P>25){let B=[vn.lookAhead,P];_=_?[B].concat(_):[B]}return new fr(C,w,E,$,_)}function O(C,w){let E=s.fork(),$=0,P=0,_=0,B=E.end-i,U={size:0,start:0,skip:0};e:for(let V=E.pos-C;E.pos>V;){let z=E.size;if(E.id==w&&z>=0){U.size=$,U.start=P,U.skip=_,_+=4,$+=4,E.next();continue}let W=E.pos-z;if(z<0||W=a?4:0,q=E.start;for(E.next();E.pos>W;){if(E.size<0)if(E.size==-3)X+=4;else break e;else E.id>=a&&(X+=4);E.next()}P=q,$+=z,_+=X}return(w<0||$==C)&&(U.size=$,U.start=P,U.skip=_),U.size>4?U:void 0}function y(C,w,E){let{id:$,start:P,end:_,size:B}=s;if(s.next(),B>=0&&$4){let V=s.pos-(B-4);for(;s.pos>V;)E=y(C,w,E)}w[--E]=U,w[--E]=_-C,w[--E]=P-C,w[--E]=$}else B==-3?u=$:B==-4&&(c=$);return E}let v=[],S=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,v,S,-1,0);let k=(t=e.length)!==null&&t!==void 0?t:v.length?S[0]+v[0].length:0;return new fr(l[e.topID],v.reverse(),S.reverse(),k)}const l9=new WeakMap;function aS(e,t){if(!e.isAnonymous||t instanceof Kd||t.type!=e)return 1;let n=l9.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof fr)){n=1;break}n+=aS(e,r)}l9.set(t,n)}return n}function HP(e,t,n,r,i,o,a,s,l){let u=0;for(let m=r;m=c)break;w+=E}if(S==k+1){if(w>c){let E=m[k];h(E.children,E.positions,0,E.children.length,b[k]+v);continue}d.push(m[k])}else{let E=b[S-1]+m[S-1].length-C;d.push(HP(e,m,b,k,S,C,E,null,l))}p.push(C+v-o)}}return h(t,n,r,i,0),(s||l)(d,p,a)}class oX{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 Ou?this.setBuffer(t.context.buffer,t.index,n):t instanceof Fo&&this.map.set(t.tree,n)}get(t){return t instanceof Ou?this.getBuffer(t.context.buffer,t.index):t instanceof Fo?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 gc{constructor(t,n,r,i,o=!1,a=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(a?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 gc(0,t.length,t,0,!1,r)];for(let o of n)o.to>t.length&&i.push(o);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],o=1,a=t.length?t[0]:null;for(let s=0,l=0,u=0;;s++){let c=s=r)for(;a&&a.from=p.from||d<=p.to||u){let h=Math.max(p.from,l)-u,m=Math.min(p.to,d)-u;p=h>=m?null:new gc(h,m,p.tree,p.offset+u,s>0,!!c)}if(p&&i.push(p),a.to>d)break;a=onew js(i.from,i.to)):[new js(0,0)]:[new js(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let o=i.advance();if(o)return o}}};class w_e{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 aX(e){return(t,n,r,i)=>new x_e(t,e,n,r,i)}class u9{constructor(t,n,r,i,o){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=o}}function c9(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class k_e{constructor(t,n,r,i,o,a,s){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=o,this.target=a,this.prev=s,this.depth=0,this.ranges=[]}}const uI=new vn({perNode:!0});class x_e{constructor(t,n,r,i,o){this.nest=n,this.input=r,this.fragments=i,this.ranges=o,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 fr(r.type,r.children,r.positions,r.length,r.propValues.concat([[uI,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[vn.mounted.id]=new qy(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)s=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(c=>c.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let d=c.from+u.pos,p=c.to+u.pos;d>=i.from&&p<=i.to&&!n.ranges.some(h=>h.fromd)&&n.ranges.push({from:d,to:p})}}s=!1}else if(r&&(a=C_e(r.ranges,i.from,i.to)))s=a!=2;else if(!i.type.isAnonymous&&(o=this.nest(i,this.input))&&(i.fromnew js(d.from-i.from,d.to-i.from)):null,i.tree,c.length?c[0].from:i.from)),o.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):s=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new js(i.from,i.to)),l.fromnew js(c.from-n.start,c.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function C_e(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 d9(e,t,n,r,i,o){if(t=t&&n.enter(r,1,xr.IgnoreOverlays|xr.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 fr)n=n.children[0];else break}return!1}}let __e=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(uI))!==null&&n!==void 0?n:r.to,this.inner=new f9(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(uI))!==null&&t!==void 0?t:n.to,this.inner=new f9(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let o=this.inner.cursor.node;o;o=o.parent){let a=(r=o.tree)===null||r===void 0?void 0:r.prop(vn.mounted);if(a&&a.parser==n)for(let s=this.fragI;s=o.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:o.from-l.offset,mount:a})}}}return i}};function p9(e,t){let n=null,r=t;for(let i=1,o=0;i=s)break;l.to<=a||(n||(r=n=t.slice()),l.froms&&n.splice(o+1,0,new js(s,l.to))):l.to>s?n[o--]=new js(s,l.to):n.splice(o--,1))}}return r}function R_e(e,t,n,r){let i=0,o=0,a=!1,s=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:a?e[i].to:e[i].from,d=o==t.length?1e9:s?t[o].to:t[o].from;if(a!=s){let p=Math.max(l,n),h=Math.min(c,d,r);pnew js(p.from+r,p.to+r)),d=R_e(t,c,l,u);for(let p=0,h=l;;p++){let m=p==d.length,b=m?u:d[p].from;if(b>h&&n.push(new gc(h,b,i.tree,-a,o.from>=h||o.openStart,o.to<=b||o.openEnd)),m)break;h=d[p].to}}else n.push(new gc(l,u,i.tree,-a,o.from>=a||o.openStart,o.to<=s||o.openEnd))}return n}let I_e=0;class bl{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=I_e++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new bl([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new NT;return n=>n.modified.indexOf(t)>-1?n:NT.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let D_e=0;class NT{constructor(){this.instances=[],this.id=D_e++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&N_e(n,s.modified));if(r)return r;let i=[],o=new bl(i,t,n);for(let s of n)s.instances.push(o);let a=P_e(n);for(let s of t.set)if(!s.modified.length)for(let l of a)i.push(NT.get(s,l));return o}}function N_e(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function P_e(e){let t=[[]];for(let n=0;nr.length-n.length)}function Mg(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 o=[],a=2,s=i;for(let d=0;;){if(s=="..."&&d>0&&d+3==i.length){a=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!p)throw new RangeError("Invalid path: "+i);if(o.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),d+=p[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){a=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);s=i.slice(d)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new PT(r,a,l>0?o.slice(0,l):null);t[u]=c.sort(t[u])}}return sX.add(t)}const sX=new vn;class PT{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 a=i;for(let s of o)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function L_e(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function M_e(e,t,n,r=0,i=e.length){let o=new $_e(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class $_e{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,o){let{type:a,from:s,to:l}=t;if(s>=r||l<=n)return;a.isTop&&(o=this.highlighters.filter(h=>!h.scope||h.scope(a)));let u=i,c=F_e(t)||PT.empty,d=L_e(o,c.tags);if(d&&(u&&(u+=" "),u+=d,c.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,s),u),c.opaque)return;let p=t.tree&&t.tree.prop(vn.mounted);if(p&&p.overlay){let h=t.node.enter(p.overlay[0].from+s,1),m=this.highlighters.filter(O=>!O.scope||O.scope(p.tree.type)),b=t.firstChild();for(let O=0,y=s;;O++){let v=O=S||!t.nextSibling())););if(!v||S>r)break;y=v.to+s,y>n&&(this.highlightRange(h.cursor(),Math.max(n,v.from+s),Math.min(r,y),"",m),this.startSpan(Math.min(r,y),u))}b&&t.parent()}else if(t.firstChild()){p&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,o),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function F_e(e){let t=e.type.prop(sX);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Lt=bl.define,Kv=Lt(),td=Lt(),m9=Lt(td),g9=Lt(td),nd=Lt(),Jv=Lt(nd),xA=Lt(nd),ru=Lt(),Tf=Lt(ru),tu=Lt(),nu=Lt(),cI=Lt(),L0=Lt(cI),eE=Lt(),he={comment:Kv,lineComment:Lt(Kv),blockComment:Lt(Kv),docComment:Lt(Kv),name:td,variableName:Lt(td),typeName:m9,tagName:Lt(m9),propertyName:g9,attributeName:Lt(g9),className:Lt(td),labelName:Lt(td),namespace:Lt(td),macroName:Lt(td),literal:nd,string:Jv,docString:Lt(Jv),character:Lt(Jv),attributeValue:Lt(Jv),number:xA,integer:Lt(xA),float:Lt(xA),bool:Lt(nd),regexp:Lt(nd),escape:Lt(nd),color:Lt(nd),url:Lt(nd),keyword:tu,self:Lt(tu),null:Lt(tu),atom:Lt(tu),unit:Lt(tu),modifier:Lt(tu),operatorKeyword:Lt(tu),controlKeyword:Lt(tu),definitionKeyword:Lt(tu),moduleKeyword:Lt(tu),operator:nu,derefOperator:Lt(nu),arithmeticOperator:Lt(nu),logicOperator:Lt(nu),bitwiseOperator:Lt(nu),compareOperator:Lt(nu),updateOperator:Lt(nu),definitionOperator:Lt(nu),typeOperator:Lt(nu),controlOperator:Lt(nu),punctuation:cI,separator:Lt(cI),bracket:L0,angleBracket:Lt(L0),squareBracket:Lt(L0),paren:Lt(L0),brace:Lt(L0),content:ru,heading:Tf,heading1:Lt(Tf),heading2:Lt(Tf),heading3:Lt(Tf),heading4:Lt(Tf),heading5:Lt(Tf),heading6:Lt(Tf),contentSeparator:Lt(ru),list:Lt(ru),quote:Lt(ru),emphasis:Lt(ru),strong:Lt(ru),link:Lt(ru),monospace:Lt(ru),strikethrough:Lt(ru),inserted:Lt(),deleted:Lt(),changed:Lt(),invalid:Lt(),meta:eE,documentMeta:Lt(eE),annotation:Lt(eE),processingInstruction:Lt(eE),definition:bl.defineModifier(),constant:bl.defineModifier(),function:bl.defineModifier(),standard:bl.defineModifier(),local:bl.defineModifier(),special:bl.defineModifier()};lX([{tag:he.link,class:"tok-link"},{tag:he.heading,class:"tok-heading"},{tag:he.emphasis,class:"tok-emphasis"},{tag:he.strong,class:"tok-strong"},{tag:he.keyword,class:"tok-keyword"},{tag:he.atom,class:"tok-atom"},{tag:he.bool,class:"tok-bool"},{tag:he.url,class:"tok-url"},{tag:he.labelName,class:"tok-labelName"},{tag:he.inserted,class:"tok-inserted"},{tag:he.deleted,class:"tok-deleted"},{tag:he.literal,class:"tok-literal"},{tag:he.string,class:"tok-string"},{tag:he.number,class:"tok-number"},{tag:[he.regexp,he.escape,he.special(he.string)],class:"tok-string2"},{tag:he.variableName,class:"tok-variableName"},{tag:he.local(he.variableName),class:"tok-variableName tok-local"},{tag:he.definition(he.variableName),class:"tok-variableName tok-definition"},{tag:he.special(he.variableName),class:"tok-variableName2"},{tag:he.definition(he.propertyName),class:"tok-propertyName tok-definition"},{tag:he.typeName,class:"tok-typeName"},{tag:he.namespace,class:"tok-namespace"},{tag:he.className,class:"tok-className"},{tag:he.macroName,class:"tok-macroName"},{tag:he.propertyName,class:"tok-propertyName"},{tag:he.operator,class:"tok-operator"},{tag:he.comment,class:"tok-comment"},{tag:he.meta,class:"tok-meta"},{tag:he.invalid,class:"tok-invalid"},{tag:he.punctuation,class:"tok-punctuation"}]);var CA;const Yf=new vn;function QP(e){return qt.define({combine:e?t=>t.concat(e):void 0})}const YP=new vn;class zs{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Zn.prototype.hasOwnProperty("tree")||Object.defineProperty(Zn.prototype,"tree",{get(){return Ar(this)}}),this.parser=n,this.extension=[Jd.of(this),Zn.languageData.of((o,a,s)=>{let l=b9(o,a,s),u=l.type.prop(Yf);if(!u)return[];let c=o.facet(u),d=l.type.prop(YP);if(d){let p=l.resolve(a-l.from,s);for(let h of d)if(h.test(p,o)){let m=o.facet(h.facet);return h.type=="replace"?m:m.concat(c)}}return c})].concat(r)}isActiveAt(t,n,r=-1){return b9(t,n,r).type.prop(Yf)==this.data}findRegions(t){let n=t.facet(Jd);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(o,a)=>{if(o.prop(Yf)==this.data){r.push({from:a,to:a+o.length});return}let s=o.prop(vn.mounted);if(s){if(s.tree.prop(Yf)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+o.length});return}else if(s.overlay){let l=r.length;if(i(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new cg(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ar(e){let t=e.field(zs.state,!1);return t?t.tree:fr.empty}class B_e{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 M0=null;class Xy{constructor(t,n,r=[],i,o,a,s,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Xy(t,n,[],fr.empty,0,r,[],null)}startParse(){return this.parser.startParse(new B_e(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=fr.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(gc.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=M0;M0=this;try{return t()}finally{M0=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=y9(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,c,d,p)=>l.push({fromA:u,toA:c,fromB:d,toB:p})),r=gc.applyChanges(r,l),i=fr.empty,o=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=t.mapPos(u.from,1),d=t.mapPos(u.to,-1);ct.from&&(this.fragments=y9(this.fragments,i,o),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 WP{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let l=M0;if(l){for(let u of i)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=a,new fr($i.none,[],[],a-o)},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 M0}}function y9(e,t,n){return gc.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class dg{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 dg(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Xy.create(t.facet(Jd).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new dg(r)}}zs.state=ro.define({create:dg.init,update(e,t){for(let n of t.effects)if(n.is(zs.setState))return n.value;return t.startState.facet(Jd)!=t.state.facet(Jd)?dg.init(t.state):e.apply(t)}});let uX=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(uX=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const AA=typeof navigator<"u"&&(!((CA=navigator.scheduling)===null||CA===void 0)&&CA.isInputPending)?()=>navigator.scheduling.isInputPending():null,U_e=ei.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(zs.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(zs.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=uX(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=o.context.work(()=>AA&&AA()||Date.now()>a,i+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:zs.setState.of(new dg(o.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Gs(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()}}}),Jd=qt.define({combine(e){return e.length?e[0]:null},enables:e=>[zs.state,U_e,Ht.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Ky{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class LT{constructor(t,n,r,i,o,a=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=o,this.support=a,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 LT(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(o=>o==n))return i;if(r)for(let i of t)for(let o of i.alias){let a=n.indexOf(o);if(a>-1&&(o.length>2||!/\w/.test(n[a-1])&&!/\w/.test(n[a+o.length])))return i}return null}}const j_e=qt.define(),pO=qt.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 MT(e){let t=e.facet(pO);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Jy(e,t){let n="",r=e.tabSize,i=e.facet(pO)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let o=0;o=t?z_e(e,n,t):null}class nx{constructor(t,n={}){this.state=t,this.options=n,this.unit=MT(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==t?{text:"",from:t}:(n<0?i-1&&(o+=a-this.countColumn(r,r.search(/\S|$/))),o}countColumn(t,n=t.length){return Nl(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),o=this.options.overrideIndentation;if(o){let a=o(i);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const hO=new vn;function z_e(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let o=[];for(let a=i;a!=r.node;a=a.parent)o.push(a);for(let a=o.length-1;a>=0;a--)r={node:o[a],next:r}}return cX(r,e,n)}function cX(e,t,n){for(let r=e;r;r=r.next){let i=H_e(r.node);if(i)return i(qP.create(t,n,r))}return 0}function V_e(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function H_e(e){let t=e.type.prop(hO);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(vn.closedBy))){let i=e.lastChild,o=i&&r.indexOf(i.name)>-1;return a=>dX(a,!0,1,void 0,o&&!V_e(a)?i.from:void 0)}return e.parent==null?W_e:null}function W_e(){return 0}class qP extends nx{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 qP(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(Q_e(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return cX(this.context.next,this.base,this.pos)}}function Q_e(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Y_e(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let l=t.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromdX(r,t,n,e)}function dX(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?Y_e(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const q_e=e=>e.baseIndent;function sS({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Z_e=200;function X_e(){return Zn.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+Z_e)return e;let o=n.sliceString(i.from,r);if(!t.some(u=>u.test(o)))return e;let{state:a}=e,s=-1,l=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==s)continue;s=c.from;let d=GP(a,c.from);if(d==null)continue;let p=/^\s*/.exec(c.text)[0],h=Jy(a,d);p!=h&&l.push({from:c.from,to:c.from+p.length,insert:h})}return l.length?[e,{changes:l,sequential:!0}]:e})}const fX=qt.define(),$g=new vn;function pX(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(o&&s.from=t&&u.to>n&&(o=u)}}return o}function J_e(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function $T(e,t,n){for(let r of e.facet(fX)){let i=r(e,t,n);if(i)return i}return K_e(e,t,n)}function hX(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 rx=xn.define({map:hX}),mO=xn.define({map:hX});function mX(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 _p=ro.define({create(){return ln.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(rx)&&!eRe(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(ZP),i=r?ln.replace({widget:new sRe(r(t.state,n.value))}):O9;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(mO)&&(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,o)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,o)=>o<=r||i>=r}))}return e},provide:e=>Ht.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>o)&&(i={from:o,to:a})}),i}function eRe(e,t,n){let r=!1;return e.between(t,t,(i,o)=>{i==t&&o==n&&(r=!0)}),r}function gX(e,t){return e.field(_p,!1)?t:t.concat(xn.appendConfig.of(yX()))}const tRe=e=>{for(let t of mX(e)){let n=$T(e.state,t.from,t.to);if(n)return e.dispatch({effects:gX(e.state,[rx.of(n),bX(e,n)])}),!0}return!1},nRe=e=>{if(!e.state.field(_p,!1))return!1;let t=[];for(let n of mX(e)){let r=FT(e.state,n.from,n.to);r&&t.push(mO.of(r),bX(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function bX(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return Ht.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const rRe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(_p,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(mO.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},oRe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:tRe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:nRe},{key:"Ctrl-Alt-[",run:rRe},{key:"Ctrl-Alt-]",run:iRe}],aRe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},ZP=qt.define({combine(e){return $u(e,aRe)}});function yX(e){let t=[_p,cRe];return e&&t.push(ZP.of(e)),t}function OX(e,t){let{state:n}=e,r=n.facet(ZP),i=a=>{let s=e.lineBlockAt(e.posAtDOM(a.target)),l=FT(e.state,s.from,s.to);l&&e.dispatch({effects:mO.of(l)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const O9=ln.replace({widget:new class extends Fu{toDOM(e){return OX(e,null)}}});class sRe extends Fu{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return OX(t,this.value)}}const lRe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class _A extends Ac{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 uRe(e={}){let t=Object.assign(Object.assign({},lRe),e),n=new _A(t,!0),r=new _A(t,!1),i=ei.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(Jd)!=a.state.facet(Jd)||a.startState.field(_p,!1)!=a.state.field(_p,!1)||Ar(a.startState)!=Ar(a.state)||t.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new Gd;for(let l of a.viewportLineBlocks){let u=FT(a.state,l.from,l.to)?r:$T(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:o}=t;return[i,l_e({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(i))===null||s===void 0?void 0:s.markers)||Kn.empty},initialSpacer(){return new _A(t,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(a,s,l)=>{if(o.click&&o.click(a,s,l))return!0;let u=FT(a.state,s.from,s.to);if(u)return a.dispatch({effects:mO.of(u)}),!0;let c=$T(a.state,s.from,s.to);return c?(a.dispatch({effects:rx.of(c)}),!0):!1}})}),yX()]}const cRe=Ht.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 gO{constructor(t,n){this.specs=t;let r;function i(s){let l=qd.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const o=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,a=n.scope;this.scope=a instanceof zs?s=>s.prop(Yf)==a.data:a?s=>s==a:void 0,this.style=lX(t.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=r?new qd(r):null,this.themeType=n.themeType}static define(t,n){return new gO(t,n||{})}}const dI=qt.define(),vX=qt.define({combine(e){return e.length?[e[0]]:null}});function RA(e){let t=e.facet(dI);return t.length?t:e.facet(vX)}function EX(e,t){let n=[fRe],r;return e instanceof gO&&(e.module&&n.push(Ht.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(vX.of(e)):r?n.push(dI.computeN([Ht.darkTheme],i=>i.facet(Ht.darkTheme)==(r=="dark")?[e]:[])):n.push(dI.of(e)),n}class dRe{constructor(t){this.markCache=Object.create(null),this.tree=Ar(t.state),this.decorations=this.buildDeco(t,RA(t.state))}update(t){let n=Ar(t.state),r=RA(t.state),i=r!=RA(t.startState);n.length{r.add(a,s,this.markCache[l]||(this.markCache[l]=ln.mark({class:l})))},i,o);return r.finish()}}const fRe=df.high(ei.fromClass(dRe,{decorations:e=>e.decorations})),pRe=gO.define([{tag:he.meta,color:"#404740"},{tag:he.link,textDecoration:"underline"},{tag:he.heading,textDecoration:"underline",fontWeight:"bold"},{tag:he.emphasis,fontStyle:"italic"},{tag:he.strong,fontWeight:"bold"},{tag:he.strikethrough,textDecoration:"line-through"},{tag:he.keyword,color:"#708"},{tag:[he.atom,he.bool,he.url,he.contentSeparator,he.labelName],color:"#219"},{tag:[he.literal,he.inserted],color:"#164"},{tag:[he.string,he.deleted],color:"#a11"},{tag:[he.regexp,he.escape,he.special(he.string)],color:"#e40"},{tag:he.definition(he.variableName),color:"#00f"},{tag:he.local(he.variableName),color:"#30a"},{tag:[he.typeName,he.namespace],color:"#085"},{tag:he.className,color:"#167"},{tag:[he.special(he.variableName),he.macroName],color:"#256"},{tag:he.definition(he.propertyName),color:"#00c"},{tag:he.comment,color:"#940"},{tag:he.invalid,color:"#f00"}]),hRe=Ht.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),SX=1e4,TX="()[]{}",wX=qt.define({combine(e){return $u(e,{afterCursor:!0,brackets:TX,maxScanDistance:SX,renderMatch:bRe})}}),mRe=ln.mark({class:"cm-matchingBracket"}),gRe=ln.mark({class:"cm-nonmatchingBracket"});function bRe(e){let t=[],n=e.matched?mRe:gRe;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 yRe=ro.define({create(){return ln.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(wX);for(let i of t.state.selection.ranges){if(!i.empty)continue;let o=vu(t.state,i.head,-1,r)||i.head>0&&vu(t.state,i.head-1,1,r)||r.afterCursor&&(vu(t.state,i.head,1,r)||i.headHt.decorations.from(e)}),ORe=[yRe,hRe];function vRe(e={}){return[wX.of(e),ORe]}const kX=new vn;function fI(e,t,n){let r=e.prop(t<0?vn.openedBy:vn.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 pI(e){let t=e.type.prop(kX);return t?t(e.node):e}function vu(e,t,n,r={}){let i=r.maxScanDistance||SX,o=r.brackets||TX,a=Ar(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=fI(l.type,n,o);if(u&&l.from0?t>=c.from&&tc.from&&t<=c.to))return ERe(e,t,n,l,c,u,o)}}return SRe(e,t,n,a,s.type,i,o)}function ERe(e,t,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=s==null?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&o.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let p=0;!c.next().done&&p<=o;){let h=c.value;n<0&&(p+=h.length);let m=t+p*n;for(let b=n>0?0:h.length-1,O=n>0?h.length:-1;b!=O;b+=n){let y=a.indexOf(h[b]);if(!(y<0||r.resolveInner(m+b,1).type!=i))if(y%2==0==n>0)d++;else{if(d==1)return{start:u,end:{from:m+b,to:m+b+1},matched:y>>1==l>>1};d--}}n>0&&(p+=h.length)}return c.done?{start:u,matched:!1}:null}const TRe=Object.create(null),v9=[$i.none],E9=[],S9=Object.create(null),wRe=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"]])wRe[e]=kRe(TRe,t);function IA(e,t){E9.indexOf(e)>-1||(E9.push(e),console.warn(t))}function kRe(e,t){let n=[];for(let s of t.split(" ")){let l=[];for(let u of s.split(".")){let c=e[u]||he[u];c?typeof c=="function"?l.length?l=l.map(c):IA(u,`Modifier ${u} used at start of tag`):l.length?IA(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:IA(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(s=>s.id),o=S9[i];if(o)return o.id;let a=S9[i]=$i.define({id:v9.length,name:r,props:[Mg({[r]:n})]});return v9.push(a),a.id}$r.RTL,$r.LTR;const xRe=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=KP(e.state,n.from);return r.line?CRe(e):r.block?_Re(e):!1};function XP(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 CRe=XP(DRe,0),ARe=XP(xX,0),_Re=XP((e,t)=>xX(e,t,IRe(t)),0);function KP(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const $0=50;function RRe(e,{open:t,close:n},r,i){let o=e.sliceDoc(r-$0,r),a=e.sliceDoc(i,i+$0),s=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(a)[0].length,u=o.length-s;if(o.slice(u-t.length,u)==t&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+l,margin:l&&1}};let c,d;i-r<=2*$0?c=d=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+$0),d=e.sliceDoc(i-$0,i));let p=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(d)[0].length,m=d.length-h-n.length;return c.slice(p,p+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(c.charAt(p+t.length))?1:0},close:{pos:i-h-n.length,margin:/\s/.test(d.charAt(m-1))?1:0}}:null}function IRe(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),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function xX(e,t,n=t.selection.ranges){let r=n.map(o=>KP(t,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>RRe(t,r[a],o.from,o.to));if(e!=2&&!i.every(o=>o))return{changes:t.changes(n.map((o,a)=>i[a]?[]:[{from:o.from,insert:r[a].open+" "},{from:o.to,insert:" "+r[a].close}]))};if(e!=1&&i.some(o=>o)){let o=[];for(let a=0,s;ai&&(o==a||a>d.from)){i=d.from;let p=/^\s*/.exec(d.text)[0].length,h=p==d.length,m=d.text.slice(p,p+u.length)==u?p:-1;po.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:l,indent:u,empty:c,single:d}of r)(d||!c)&&o.push({from:s.from+u,insert:l+" "});let a=t.changes(o);return{changes:a,selection:t.selection.map(a,1)}}else if(e!=1&&r.some(o=>o.comment>=0)){let o=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,c=u+l.length;a.text[c-a.from]==" "&&c++,o.push({from:u,to:c})}return{changes:o}}return null}const hI=Ul.define(),NRe=Ul.define(),PRe=qt.define(),CX=qt.define({combine(e){return $u(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)})}}),AX=ro.define({create(){return Eu.empty},update(e,t){let n=t.state.facet(CX),r=t.annotation(hI);if(r){let l=ka.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=BT(c,c.length,n.minDepth,l):c=IX(c,t.startState.selection),new Eu(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(NRe);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(wi.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let o=ka.fromTransaction(t),a=t.annotation(wi.time),s=t.annotation(wi.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,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 Eu(e.done.map(ka.fromJSON),e.undone.map(ka.fromJSON))}});function LRe(e={}){return[AX,CX.of(e),Ht.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?_X:t.inputType=="historyRedo"?mI:null;return r?(t.preventDefault(),r(n)):!1}})]}function ix(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(AX,!1);if(!i)return!1;let o=i.pop(e,n,t);return o?(r(o),!0):!1}}const _X=ix(0,!1),mI=ix(1,!1),MRe=ix(0,!0),$Re=ix(1,!0);class ka{constructor(t,n,r,i,o){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}setSelAfter(t){return new ka(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 ka(t.changes&&Ni.fromJSON(t.changes),[],t.mapped&&_u.fromJSON(t.mapped),t.startSelection&&tt.fromJSON(t.startSelection),t.selectionsAfter.map(tt.fromJSON))}static fromTransaction(t,n){let r=Vs;for(let i of t.startState.facet(PRe)){let o=i(t);o.length&&(r=r.concat(o))}return!r.length&&t.changes.empty?null:new ka(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Vs)}static selection(t){return new ka(void 0,Vs,void 0,void 0,t)}}function BT(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function FRe(e,t){let n=[],r=!1;return e.iterChangedRanges((i,o)=>n.push(i,o)),t.iterChangedRanges((i,o,a,s)=>{for(let l=0;l=u&&a<=c&&(r=!0)}}),r}function BRe(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function RX(e,t){return e.length?t.length?e.concat(t):e:t}const Vs=[],URe=200;function IX(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-URe));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),BT(e,e.length-1,1e9,n.setSelAfter(r)))}else return[ka.selection([t])]}function jRe(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 DA(e,t){if(!e.length)return e;let n=e.length,r=Vs;for(;n;){let i=zRe(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let o=e.slice(0,n);return o[n-1]=i,o}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[ka.selection(r)]:Vs}function zRe(e,t,n){let r=RX(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):Vs,n);if(!e.changes)return ka.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new ka(i,xn.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const VRe=/^(input\.type|delete)($|\.)/;class Eu{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 Eu(this.done,this.undone):this}addChanges(t,n,r,i,o){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&t.changes&&(!r||VRe.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):ox(n,t))}function Vo(e){return e.textDirectionAt(e.state.selection.main.head)==$r.LTR}const NX=e=>DX(e,!Vo(e)),PX=e=>DX(e,Vo(e));function LX(e,t){return jl(e,n=>n.empty?e.moveByGroup(n,t):ox(n,t))}const WRe=e=>LX(e,!Vo(e)),QRe=e=>LX(e,Vo(e));function YRe(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 ax(e,t,n){let r=Ar(e).resolveInner(t.head),i=n?vn.closedBy:vn.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;YRe(e,u,i)?r=u:l=n?u.to:u.from}let o=r.type.prop(i),a,s;return o&&(a=n?vu(e,r.from,1):vu(e,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,tt.cursor(s,n?-1:1)}const GRe=e=>jl(e,t=>ax(e.state,t,!Vo(e))),qRe=e=>jl(e,t=>ax(e.state,t,Vo(e)));function MX(e,t){return jl(e,n=>{if(!n.empty)return ox(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const $X=e=>MX(e,!1),FX=e=>MX(e,!0);function BX(e){let t=e.scrollDOM.clientHeighta.empty?e.moveVertically(a,t,n.height):ox(a,t));if(i.eq(r.selection))return!1;let o;if(n.selfScroll){let a=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottomUX(e,!1),gI=e=>UX(e,!0);function ff(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 o=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;o&&t.head!=r.from+o&&(i=tt.cursor(r.from+o))}return i}const ZRe=e=>jl(e,t=>ff(e,t,!0)),XRe=e=>jl(e,t=>ff(e,t,!1)),KRe=e=>jl(e,t=>ff(e,t,!Vo(e))),JRe=e=>jl(e,t=>ff(e,t,Vo(e))),eIe=e=>jl(e,t=>tt.cursor(e.lineBlockAt(t.head).from,1)),tIe=e=>jl(e,t=>tt.cursor(e.lineBlockAt(t.head).to,-1));function nIe(e,t,n){let r=!1,i=Fg(e.selection,o=>{let a=vu(e,o.head,-1)||vu(e,o.head,1)||o.head>0&&vu(e,o.head-1,1)||o.headnIe(e,t,!1);function il(e,t){let n=Fg(e.state.selection,r=>{let i=t(r);return tt.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Bu(e.state,n)),!0)}function jX(e,t){return il(e,n=>e.moveByChar(n,t))}const zX=e=>jX(e,!Vo(e)),VX=e=>jX(e,Vo(e));function HX(e,t){return il(e,n=>e.moveByGroup(n,t))}const iIe=e=>HX(e,!Vo(e)),oIe=e=>HX(e,Vo(e)),aIe=e=>il(e,t=>ax(e.state,t,!Vo(e))),sIe=e=>il(e,t=>ax(e.state,t,Vo(e)));function WX(e,t){return il(e,n=>e.moveVertically(n,t))}const QX=e=>WX(e,!1),YX=e=>WX(e,!0);function GX(e,t){return il(e,n=>e.moveVertically(n,t,BX(e).height))}const w9=e=>GX(e,!1),k9=e=>GX(e,!0),lIe=e=>il(e,t=>ff(e,t,!0)),uIe=e=>il(e,t=>ff(e,t,!1)),cIe=e=>il(e,t=>ff(e,t,!Vo(e))),dIe=e=>il(e,t=>ff(e,t,Vo(e))),fIe=e=>il(e,t=>tt.cursor(e.lineBlockAt(t.head).from)),pIe=e=>il(e,t=>tt.cursor(e.lineBlockAt(t.head).to)),x9=({state:e,dispatch:t})=>(t(Bu(e,{anchor:0})),!0),C9=({state:e,dispatch:t})=>(t(Bu(e,{anchor:e.doc.length})),!0),A9=({state:e,dispatch:t})=>(t(Bu(e,{anchor:e.selection.main.anchor,head:0})),!0),_9=({state:e,dispatch:t})=>(t(Bu(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),hIe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),mIe=({state:e,dispatch:t})=>{let n=sx(e).map(({from:r,to:i})=>tt.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:tt.create(n),userEvent:"select"})),!0},gIe=({state:e,dispatch:t})=>{let n=Fg(e.selection,r=>{var i;let o=Ar(e).resolveStack(r.from,1);for(let a=o;a;a=a.next){let{node:s}=a;if((s.from=r.to||s.to>r.to&&s.from<=r.from)&&(!((i=s.parent)===null||i===void 0)&&i.parent))return tt.range(s.to,s.from)}return r});return t(Bu(e,n)),!0},bIe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=tt.create([n.main]):n.main.empty||(r=tt.create([tt.cursor(n.main.head)])),r?(t(Bu(e,r)),!0):!1};function bO(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(o=>{let{from:a,to:s}=o;if(a==s){let l=t(o);la&&(n="delete.forward",l=tE(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=tE(e,a,!1),s=tE(e,s,!0);return a==s?{range:o}:{changes:{from:a,to:s},range:tt.cursor(a,ai(e)))r.between(t,t,(i,o)=>{it&&(t=n?o:i)});return t}const qX=(e,t)=>bO(e,n=>{let r=n.from,{state:i}=e,o=i.doc.lineAt(r),a,s;if(!t&&r>o.from&&rqX(e,!1),ZX=e=>qX(e,!0),XX=(e,t)=>bO(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let s=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=Oo(o.text,r-o.from,t)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(u);if(s!=null&&c!=s)break;(u!=" "||r!=n.head)&&(s=c),r=l}return r}),KX=e=>XX(e,!1),yIe=e=>XX(e,!0),OIe=e=>bO(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headbO(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),EIe=e=>bO(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:ir.of(["",""])},range:tt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},TIe=({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,o=e.doc.lineAt(i),a=i==o.from?i-1:Oo(o.text,i-o.from,!1)+o.from,s=i==o.to?i+1:Oo(o.text,i-o.from,!0)+o.from;return{changes:{from:a,to:s,insert:e.doc.slice(i,s).append(e.doc.slice(a,i))},range:tt.cursor(s)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function sx(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(!r.empty&&r.to==o.from&&(o=e.doc.lineAt(r.to-1)),n>=i.number){let a=t[t.length-1];a.to=o.to,a.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function JX(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of sx(e)){if(n?o.to==e.doc.length:o.from==0)continue;let a=e.doc.lineAt(n?o.to+1:o.from-1),s=a.length+1;if(n){r.push({from:o.to,to:a.to},{from:o.from,insert:a.text+e.lineBreak});for(let l of o.ranges)i.push(tt.range(Math.min(e.doc.length,l.anchor+s),Math.min(e.doc.length,l.head+s)))}else{r.push({from:a.from,to:o.from},{from:o.to,insert:e.lineBreak+a.text});for(let l of o.ranges)i.push(tt.range(l.anchor-s,l.head-s))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:tt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const wIe=({state:e,dispatch:t})=>JX(e,t,!1),kIe=({state:e,dispatch:t})=>JX(e,t,!0);function eK(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of sx(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 xIe=({state:e,dispatch:t})=>eK(e,t,!1),CIe=({state:e,dispatch:t})=>eK(e,t,!0),AIe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(sx(t).map(({from:i,to:o})=>(i>0?i--:oe.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function _Ie(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Ar(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),o;return r&&i&&r.to<=t&&i.from>=t&&(o=r.type.prop(vn.closedBy))&&o.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 RIe=tK(!1),IIe=tK(!0);function tK(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:o,to:a}=i,s=t.doc.lineAt(o),l=!e&&o==a&&_Ie(t,o);e&&(o=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new nx(t,{simulateBreak:o,simulateDoubleBreak:!!l}),c=GP(u,o);for(c==null&&(c=Nl(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));as.from&&o{let i=[];for(let a=r.from;a<=r.to;){let s=e.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(t(s,i,r),n=s.number),a=s.to+1}let o=e.changes(i);return{changes:i,range:tt.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const DIe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new nx(e,{overrideIndentation:o=>{let a=n[o];return a??-1}}),i=JP(e,(o,a,s)=>{let l=GP(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=Jy(e,l);(u!=c||s.frome.readOnly?!1:(t(e.update(JP(e,(n,r)=>{r.push({from:n.from,insert:e.facet(pO)})}),{userEvent:"input.indent"})),!0),rK=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(JP(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=Nl(i,e.tabSize),a=0,s=Jy(e,Math.max(0,o-MT(e)));for(;a({mac:e.key,run:e.run,shift:e.shift}))),LIe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:GRe,shift:aIe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:qRe,shift:sIe},{key:"Alt-ArrowUp",run:wIe},{key:"Shift-Alt-ArrowUp",run:xIe},{key:"Alt-ArrowDown",run:kIe},{key:"Shift-Alt-ArrowDown",run:CIe},{key:"Escape",run:bIe},{key:"Mod-Enter",run:IIe},{key:"Alt-l",mac:"Ctrl-l",run:mIe},{key:"Mod-i",run:gIe,preventDefault:!0},{key:"Mod-[",run:rK},{key:"Mod-]",run:nK},{key:"Mod-Alt-\\",run:DIe},{key:"Shift-Mod-k",run:AIe},{key:"Shift-Mod-\\",run:rIe},{key:"Mod-/",run:xRe},{key:"Alt-A",run:ARe}].concat(PIe),MIe={key:"Tab",run:nK,shift:rK};function kr(){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 fg{constructor(t,n,r=0,i=t.length,o,a){this.test=a,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=o?s=>o(R9(s)):R9,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 mo(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=_P(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=Bs(t);let i=this.normalize(n);for(let o=0,a=r;;o++){let s=i.charCodeAt(o),l=this.match(s,a);if(o==i.length-1){if(l)return this.value=l,this;break}a==r&&othis.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=UT(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 s=new Om(n,t.sliceString(n,r));return NA.set(t,s),s}if(i.from==n&&i.to==r)return i;let{text:o,from:a}=i;return a>n&&(o=t.sliceString(n,a)+o,a=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=UT(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Om.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(aK.prototype[Symbol.iterator]=sK.prototype[Symbol.iterator]=function(){return this});function $Ie(e){try{return new RegExp(e,e3),!0}catch{return!1}}function UT(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function yI(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=kr("input",{class:"cm-textfield",name:"line",value:t}),r=kr("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),e.dispatch({effects:jT.of(!1)}),e.focus()):o.keyCode==13&&(o.preventDefault(),i())},onsubmit:o=>{o.preventDefault(),i()}},kr("label",e.state.phrase("Go to line"),": ",n)," ",kr("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:a}=e,s=a.doc.lineAt(a.selection.main.head),[,l,u,c,d]=o,p=c?+c.slice(1):0,h=u?+u:s.number;if(u&&d){let O=h/100;l&&(O=O*(l=="-"?-1:1)+s.number/a.doc.lines),h=Math.round(a.doc.lines*O)}else u&&l&&(h=h*(l=="-"?-1:1)+s.number);let m=a.doc.line(Math.max(1,Math.min(a.doc.lines,h))),b=tt.cursor(m.from+Math.max(0,Math.min(p,m.length)));e.dispatch({effects:[jT.of(!1),Ht.scrollIntoView(b.from,{y:"center"})],selection:b}),e.focus()}return{dom:r}}const jT=xn.define(),I9=ro.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(jT)&&(e=n.value);return e},provide:e=>Gy.from(e,t=>t?yI:null)}),FIe=e=>{let t=Yy(e,yI);if(!t){let n=[jT.of(!0)];e.state.field(I9,!1)==null&&n.push(xn.appendConfig.of([I9,BIe])),e.dispatch({effects:n}),t=Yy(e,yI)}return t&&t.dom.querySelector("input").select(),!0},BIe=Ht.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),UIe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},lK=qt.define({combine(e){return $u(e,UIe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function jIe(e){let t=[QIe,WIe];return e&&t.push(lK.of(e)),t}const zIe=ln.mark({class:"cm-selectionMatch"}),VIe=ln.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function D9(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=Yr.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Yr.Word)}function HIe(e,t,n,r){return e(t.sliceDoc(n,n+1))==Yr.Word&&e(t.sliceDoc(r-1,r))==Yr.Word}const WIe=ei.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(lK),{state:n}=e,r=n.selection;if(r.ranges.length>1)return ln.none;let i=r.main,o,a=null;if(i.empty){if(!t.highlightWordAroundCursor)return ln.none;let l=n.wordAt(i.head);if(!l)return ln.none;a=n.charCategorizer(i.head),o=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return ln.none;if(t.wholeWords){if(o=n.sliceDoc(i.from,i.to),a=n.charCategorizer(i.head),!(D9(a,n,i.from,i.to)&&HIe(a,n,i.from,i.to)))return ln.none}else if(o=n.sliceDoc(i.from,i.to).trim(),!o)return ln.none}let s=[];for(let l of e.visibleRanges){let u=new fg(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:d}=u.value;if((!a||D9(a,n,c,d))&&(i.empty&&c<=i.from&&d>=i.to?s.push(VIe.range(c,d)):(c>=i.to||d<=i.from)&&s.push(zIe.range(c,d)),s.length>t.maxMatches))return ln.none}}return ln.set(s)}},{decorations:e=>e.decorations}),QIe=Ht.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),YIe=({state:e,dispatch:t})=>{let{selection:n}=e,r=tt.create(n.ranges.map(i=>e.wordAt(i.head)||tt.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function GIe(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let a=!1,s=new fg(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new fg(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),a=!0}else{if(a&&r.some(l=>l.from==s.value.from))continue;if(o){let l=e.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const qIe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(o=>o.from===o.to))return YIe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(o=>e.sliceDoc(o.from,o.to)!=r))return!1;let i=GIe(e,r);return i?(t(e.update({selection:e.selection.addRange(tt.range(i.from,i.to),!1),effects:Ht.scrollIntoView(i.to)})),!0):!1},Bg=qt.define({combine(e){return $u(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new sDe(t),scrollToMatch:t=>Ht.scrollIntoView(t)})}});class uK{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||$Ie(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 JIe(this):new XIe(this)}getCursor(t,n=0,r){let i=t.doc?t:Zn.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?Rh(this,i,n,r):_h(this,i,n,r)}}class cK{constructor(t){this.spec=t}}function _h(e,t,n,r){return new fg(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?ZIe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function ZIe(e,t){return(n,r,i,o)=>((o>n||o+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let o=_h(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}function Rh(e,t,n,r){return new aK(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?KIe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function zT(e,t){return e.slice(Oo(e,t,!1),t)}function VT(e,t){return e.slice(t,Oo(e,t))}function KIe(e){return(t,n,r)=>!r[0].length||(e(zT(r.input,r.index))!=Yr.Word||e(VT(r.input,r.index))!=Yr.Word)&&(e(VT(r.input,r.index+r[0].length))!=Yr.Word||e(zT(r.input,r.index+r[0].length))!=Yr.Word)}class JIe extends cK{nextMatch(t,n,r){let i=Rh(this.spec,t,r,t.doc.length).next();return i.done&&(i=Rh(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let o=Math.max(n,r-i*1e4),a=Rh(this.spec,t,o,r),s=null;for(;!a.next().done;)s=a.value;if(s&&(o==n||s.from>o+10))return s;if(o==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 o=Rh(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}const e1=xn.define(),t3=xn.define(),Ld=ro.define({create(e){return new PA(OI(e).create(),null)},update(e,t){for(let n of t.effects)n.is(e1)?e=new PA(n.value.create(),e.panel):n.is(t3)&&(e=new PA(e.query,n.value?n3:null));return e},provide:e=>Gy.from(e,t=>t.panel)});class PA{constructor(t,n){this.query=t,this.panel=n}}const eDe=ln.mark({class:"cm-searchMatch"}),tDe=ln.mark({class:"cm-searchMatch cm-searchMatch-selected"}),nDe=ei.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Ld))}update(e){let t=e.state.field(Ld);(t!=e.startState.field(Ld)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return ln.none;let{view:n}=this,r=new Gd;for(let i=0,o=n.visibleRanges,a=o.length;io[i+1].from-2*250;)l=o[++i].to;e.highlight(n.state,s,l,(u,c)=>{let d=n.state.selection.ranges.some(p=>p.from==u&&p.to==c);r.add(u,c,d?tDe:eDe)})}return r.finish()}},{decorations:e=>e.decorations});function yO(e){return t=>{let n=t.state.field(Ld,!1);return n&&n.query.spec.valid?e(t,n):pK(t)}}const HT=yO((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=tt.single(r.from,r.to),o=e.state.facet(Bg);return e.dispatch({selection:i,effects:[r3(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),fK(e),!0}),WT=yO((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=tt.single(i.from,i.to),a=e.state.facet(Bg);return e.dispatch({selection:o,effects:[r3(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),fK(e),!0}),rDe=yO((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:tt.create(n.map(r=>tt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),iDe=({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,o=[],a=0;for(let s=new fg(e.doc,e.sliceDoc(r,i));!s.next().done;){if(o.length>1e3)return!1;s.value.from==r&&(a=o.length),o.push(tt.range(s.value.from,s.value.to))}return t(e.update({selection:tt.create(o,a),userEvent:"select.search.matches"})),!0},N9=yO((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let a=[],s,l,u=[];if(o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),a.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(n,o.from,o.to),u.push(Ht.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let c=a.length==0||a[0].from>=o.to?0:o.to-o.from-l.length;s=tt.single(o.from-c,o.to-c),u.push(r3(e,o)),u.push(n.facet(Bg).scrollToMatch(s.main,e))}return e.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),oDe=yO((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:o,to:a}=i;return{from:o,to:a,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:Ht.announce.of(r),userEvent:"input.replace.all"}),!0});function n3(e){return e.state.facet(Bg).createPanel(e)}function OI(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(Bg);return new uK({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=t==null?void 0:t.literal)!==null&&i!==void 0?i:u.literal,regexp:(o=t==null?void 0:t.regexp)!==null&&o!==void 0?o:u.regexp,wholeWord:(a=t==null?void 0:t.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function dK(e){let t=Yy(e,n3);return t&&t.dom.querySelector("[main-field]")}function fK(e){let t=dK(e);t&&t==e.root.activeElement&&t.select()}const pK=e=>{let t=e.state.field(Ld,!1);if(t&&t.panel){let n=dK(e);if(n&&n!=e.root.activeElement){let r=OI(e.state,t.query.spec);r.valid&&e.dispatch({effects:e1.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[t3.of(!0),t?e1.of(OI(e.state,t.query.spec)):xn.appendConfig.of(uDe)]});return!0},hK=e=>{let t=e.state.field(Ld,!1);if(!t||!t.panel)return!1;let n=Yy(e,n3);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:t3.of(!1)}),!0},aDe=[{key:"Mod-f",run:pK,scope:"editor search-panel"},{key:"F3",run:HT,shift:WT,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:HT,shift:WT,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:hK,scope:"editor search-panel"},{key:"Mod-Shift-l",run:iDe},{key:"Mod-Alt-g",run:FIe},{key:"Mod-d",run:qIe,preventDefault:!0}];class sDe{constructor(t){this.view=t;let n=this.query=t.state.field(Ld).query.spec;this.commit=this.commit.bind(this),this.searchField=kr("input",{value:n.search,placeholder:Ha(t,"Find"),"aria-label":Ha(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=kr("input",{value:n.replace,placeholder:Ha(t,"Replace"),"aria-label":Ha(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=kr("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=kr("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=kr("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,o,a){return kr("button",{class:"cm-button",name:i,onclick:o,type:"button"},a)}this.dom=kr("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>HT(t),[Ha(t,"next")]),r("prev",()=>WT(t),[Ha(t,"previous")]),r("select",()=>rDe(t),[Ha(t,"all")]),kr("label",null,[this.caseField,Ha(t,"match case")]),kr("label",null,[this.reField,Ha(t,"regexp")]),kr("label",null,[this.wordField,Ha(t,"by word")]),...t.state.readOnly?[]:[kr("br"),this.replaceField,r("replace",()=>N9(t),[Ha(t,"replace")]),r("replaceAll",()=>oDe(t),[Ha(t,"replace all")])],kr("button",{name:"close",onclick:()=>hK(t),"aria-label":Ha(t,"close"),type:"button"},["×"])])}commit(){let t=new uK({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:e1.of(t)}))}keydown(t){O2e(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?WT:HT)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),N9(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(e1)&&!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(Bg).top}}function Ha(e,t){return e.state.phrase(t)}const nE=30,rE=/[\s\.,:;?!]/;function r3(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-nE),a=Math.min(i,n+nE),s=e.state.sliceDoc(o,a);if(o!=r.from){for(let l=0;ls.length-nE;l--)if(!rE.test(s[l-1])&&rE.test(s[l])){s=s.slice(0,l);break}}return Ht.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const lDe=Ht.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"}}),uDe=[Ld,df.low(nDe),lDe];class i3{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=Ar(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),o=i.search(gK(t,!1));return o<0?null:{from:r+o,to:this.pos,text:i.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function P9(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 cDe(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let o=1;otypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:cDe(t);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:t,validFor:n}:null}}function dDe(e,t){return n=>{for(let r=Ar(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 L9{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function Md(e){return e.selection.main.from}function gK(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",o=r[r.length-1]!="$";return!i&&!o?e:new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const bK=Ul.define();function fDe(e,t,n,r){let{main:i}=e.selection,o=n-i.from,a=r-i.from;return Object.assign(Object.assign({},e.changeByRange(s=>s!=i&&n!=r&&e.sliceDoc(s.from+o,s.from+a)!=e.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:t},range:tt.cursor(s.from+o+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const M9=new WeakMap;function pDe(e){if(!Array.isArray(e))return e;let t=M9.get(e);return t||M9.set(e,t=mK(e)),t}const QT=xn.define(),t1=xn.define();class hDe{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&&C<=57||C>=97&&C<=122?2:C>=65&&C<=90?1:0:(w=_P(C))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!v||E==1&&O||k==0&&E!=0)&&(n[d]==C||r[d]==C&&(p=!0)?a[d++]=v:a.length&&(y=!1)),k=E,v+=Bs(C)}return d==l&&a[0]==0&&y?this.result(-100+(p?-200:0),a,t):h==l&&m==0?this.ret(-200-t.length+(b==t.length?0:-100),[0,b]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):h==l?this.ret(-900-t.length,[m,b]):d==l?this.result(-100+(p?-200:0)+-700+(y?0:-1100),a,t):n.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],o=0;for(let a of n){let s=a+(this.astral?Bs(mo(r,a)):1);o&&i[o-1]==a?i[o-1]=s:(i[o++]=a,i[o++]=s)}return this.ret(t-r.length,i)}}const yo=qt.define({combine(e){return $u(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:mDe,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=>$9(t(r),n(r)),optionClass:(t,n)=>r=>$9(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function $9(e,t){return e?t?e+" "+t:e:t}function mDe(e,t,n,r,i,o){let a=e.textDirection==$r.RTL,s=a,l=!1,u="top",c,d,p=t.left-i.left,h=i.right-t.right,m=r.right-r.left,b=r.bottom-r.top;if(s&&p=b||v>t.top?c=n.bottom-t.top:(u="bottom",c=t.bottom-n.top)}let O=(t.bottom-t.top)/o.offsetHeight,y=(t.right-t.left)/o.offsetWidth;return{style:`${u}: ${c/O}px; max-width: ${d/y}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function gDe(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,o){let a=document.createElement("span");a.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let u=0;ul&&a.appendChild(document.createTextNode(s.slice(l,c)));let p=a.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(s.slice(c,d))),p.className="cm-completionMatchedText",l=d}return ln.position-r.position).map(n=>n.render)}function LA(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 bDe{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:o,selected:a}=i.open,s=t.state.facet(yo);this.optionContent=gDe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=LA(o.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let c=l.target,d;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(d=/-(\d+)$/.exec(c.id))&&+d[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(yo).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:t1.of(null)})}),this.showOptions(o,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:o,selected:a,disabled:s}=r.open;(!i.open||i.open.options!=o)&&(this.range=LA(o.length,a,t.state.facet(yo).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),s!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}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=LA(n.options.length,n.selected,this.view.state.facet(yo).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 o=typeof i=="string"?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(a=>{a&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(a,r)}).catch(a=>Gs(this.view.state,a,"completion info")):this.addInfoPane(o,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:o}=t;r.appendChild(i),this.infoDestroy=o||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&&ODe(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(),o=this.space;if(!o){let a=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return i.top>Math.min(o.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(o=p,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let h=i.appendChild(document.createElement("completion-section"));h.textContent=p}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+a,c.setAttribute("role","option");let d=this.optionClass(s);d&&(c.className=d);for(let p of this.optionContent){let h=p(s,this.view.state,this.view,l);h&&c.appendChild(h)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew bDe(n,e,t)}function ODe(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 F9(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function vDe(e,t){let n=[],r=null,i=l=>{n.push(l);let{section:u}=l.completion;if(u){r||(r=[]);let c=typeof u=="string"?u:u.name;r.some(d=>d.name==c)||r.push(typeof u=="string"?{name:c}:u)}};for(let l of e)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let c of l.result.options)i(new L9(c,l.source,u?u(c):[],1e9-n.length));else{let c=new hDe(t.sliceDoc(l.from,l.to));for(let d of l.result.options)if(c.match(d.label)){let p=d.displayLabel?u?u(d,c.matched):[]:c.matched;i(new L9(d,l.source,p,c.score+(d.boost||0)))}}}if(r){let l=Object.create(null),u=0,c=(d,p)=>{var h,m;return((h=d.rank)!==null&&h!==void 0?h:1e9)-((m=p.rank)!==null&&m!==void 0?m:1e9)||(d.namec.score-u.score||s(u.completion,c.completion))){let u=l.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?o.push(l):F9(l.completion)>F9(a)&&(o[o.length-1]=l),a=l.completion}return o}class em{constructor(t,n,r,i,o,a){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=o,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new em(this.options,B9(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,o){let a=vDe(t,n);if(!a.length)return i&&t.some(l=>l.state==1)?new em(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(yo).selectOnOpen?0:-1;if(i&&i.selected!=s&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:kDe,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(t){return new em(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class YT{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new YT(TDe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(yo),o=(r.override||n.languageDataAt("autocomplete",Md(n)).map(pDe)).map(s=>(this.active.find(u=>u.source==s)||new Sa(s,this.active.some(u=>u.state!=0)?1:0)).update(t,r));o.length==this.active.length&&o.every((s,l)=>s==this.active[l])&&(o=this.active);let a=this.open;a&&t.docChanged&&(a=a.map(t.changes)),t.selection||o.some(s=>s.hasResult()&&t.changes.touchesRange(s.from,s.to))||!EDe(o,this.active)?a=em.build(o,n,this.id,a,r):a&&a.disabled&&!o.some(s=>s.state==1)&&(a=null),!a&&o.every(s=>s.state!=1)&&o.some(s=>s.hasResult())&&(o=o.map(s=>s.hasResult()?new Sa(s.source,0):s));for(let s of t.effects)s.is(OK)&&(a=a&&a.setSelected(s.value,this.id));return o==this.active&&a==this.open?this:new YT(o,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:SDe}}function EDe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const TDe=[];function vI(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Sa{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=vI(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new Sa(i.source,0));for(let o of t.effects)if(o.is(QT))i=new Sa(i.source,1,o.value?Md(t.state):-1);else if(o.is(t1))i=new Sa(i.source,0);else if(o.is(yK))for(let a of o.value)a.source==i.source&&(i=a);return i}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new Sa(this.source,1)}handleChange(t){return t.changes.touchesRange(Md(t.startState))?new Sa(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Sa(this.source,this.state,t.mapPos(this.explicitPos))}}class vm extends Sa{constructor(t,n,r,i,o){super(t,2,n),this.result=r,this.from=i,this.to=o}hasResult(){return!0}handleUserEvent(t,n,r){var i;let o=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),s=Md(t.state);if((this.explicitPos<0?s<=o:sa||n=="delete"&&Md(t.startState)==this.from)return new Sa(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return wDe(this.result.validFor,t.state,o,a)?new vm(this.source,l,this.result,o,a):this.result.update&&(u=this.result.update(this.result,o,a,new i3(t.state,s,l>=0)))?new vm(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:Md(t.state)):new Sa(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Sa(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new vm(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function wDe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):gK(e,!0).test(i)}const yK=xn.define({map(e,t){return e.map(n=>n.map(t))}}),OK=xn.define(),ts=ro.define({create(){return YT.start()},update(e,t){return e.update(t)},provide:e=>[jP.from(e,t=>t.tooltip),Ht.contentAttributes.from(e,t=>t.attrs)]});function vK(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(ts).active.find(i=>i.source==t.source);return r instanceof vm?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},fDe(e.state,n,r.from,r.to)),{annotations:bK.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const kDe=yDe(ts,vK);function iE(e,t="option"){return n=>{let r=n.state.field(ts,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:a-1;return s<0?s=t=="page"?0:a-1:s>=a&&(s=t=="page"?a-1:0),n.dispatch({effects:OK.of(s)}),!0}}const xDe=e=>{let t=e.state.field(ts,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(ts,!1)?(e.dispatch({effects:QT.of(!0)}),!0):!1,ADe=e=>{let t=e.state.field(ts,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:t1.of(null)}),!0)};class _De{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const RDe=50,IDe=1e3,DDe=ei.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(ts).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(ts);if(!e.selectionSet&&!e.docChanged&&e.startState.field(ts)==t)return;let n=e.transactions.some(i=>(i.selection||i.docChanged)&&!vI(i));for(let i=0;iRDe&&Date.now()-o.time>IDe){for(let a of o.context.abortListeners)try{a()}catch(s){Gs(this.view.state,s)}o.context.abortListeners=null,this.running.splice(i--,1)}else o.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(o=>o.is(QT)))&&(this.pendingStart=!0);let r=this.pendingStart?50:e.state.facet(yo).activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(o=>o.active.source==i.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let i of e.transactions)vI(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(ts);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=Md(t),r=new i3(t,n,e.explicitPos==n),i=new _De(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(o=>{i.context.aborted||(i.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:t1.of(null)}),Gs(this.view.state,o)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(yo).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(yo);for(let r=0;ra.source==i.active.source);if(o&&o.state==1)if(i.done==null){let a=new Sa(i.active.source,0);for(let s of i.updates)a=a.update(s,n);a.state!=1&&t.push(a)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:yK.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(ts,!1);if(t&&t.tooltip&&this.view.state.facet(yo).closeOnBlur){let n=t.open&&XZ(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:t1.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:QT.of(!1)}),20),this.composing=0}}}),EK=Ht.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 NDe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class o3{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,bo.TrackDel),r=t.mapPos(this.to,1,bo.TrackDel);return n==null||r==null?null:new o3(this.field,n,r)}}class a3{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],o=t.doc.lineAt(n),a=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(r.length){let u=a,c=/^\t*/.exec(l)[0].length;for(let d=0;dnew o3(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:s}}static parse(t){let n=[],r=[],i=[],o;for(let a of t.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let s=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1;for(let c=0;c=u&&d.field++}i.push(new NDe(u,r.length,o.index,o.index+l.length)),a=a.slice(0,o.index)+l+a.slice(o.index+o[0].length)}for(let s;s=/\\([{}])/.exec(a);){a=a.slice(0,s.index)+s[1]+a.slice(s.index+s[0].length);for(let l of i)l.line==r.length&&l.from>s.index&&(l.from--,l.to--)}r.push(a)}return new a3(r,i)}}let PDe=ln.widget({widget:new class extends Fu{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),LDe=ln.mark({class:"cm-snippetField"});class Ug{constructor(t,n){this.ranges=t,this.active=n,this.deco=ln.set(t.map(r=>(r.from==r.to?PDe:LDe).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 Ug(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 OO=xn.define({map(e,t){return e&&e.map(t)}}),MDe=xn.define(),n1=ro.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(OO))return n.value;if(n.is(MDe)&&e)return new Ug(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=>Ht.decorations.from(e,t=>t?t.deco:ln.none)});function s3(e,t){return tt.create(e.filter(n=>n.field==t).map(n=>tt.range(n.from,n.to)))}function $De(e){let t=a3.parse(e);return(n,r,i,o)=>{let{text:a,ranges:s}=t.instantiate(n.state,i),l={changes:{from:i,to:o,insert:ir.of(a)},scrollIntoView:!0,annotations:r?[bK.of(r),wi.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=s3(s,0)),s.some(u=>u.field>0)){let u=new Ug(s,0),c=l.effects=[OO.of(u)];n.state.field(n1,!1)===void 0&&c.push(xn.appendConfig.of([n1,zDe,VDe,EK]))}n.dispatch(n.state.update(l))}}function SK(e){return({state:t,dispatch:n})=>{let r=t.field(n1,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,o=e>0&&!r.ranges.some(a=>a.field==i+e);return n(t.update({selection:s3(r.ranges,i),effects:OO.of(o?null:new Ug(r.ranges,i)),scrollIntoView:!0})),!0}}const FDe=({state:e,dispatch:t})=>e.field(n1,!1)?(t(e.update({effects:OO.of(null)})),!0):!1,BDe=SK(1),UDe=SK(-1),jDe=[{key:"Tab",run:BDe,shift:UDe},{key:"Escape",run:FDe}],U9=qt.define({combine(e){return e.length?e[0]:jDe}}),zDe=df.highest(Lg.compute([U9],e=>e.facet(U9)));function ba(e,t){return Object.assign(Object.assign({},t),{apply:$De(e)})}const VDe=Ht.domEventHandlers({mousedown(e,t){let n=t.state.field(n1,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(o=>o.from<=r&&o.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:s3(n.ranges,i.field),effects:OO.of(n.ranges.some(o=>o.field>i.field)?new Ug(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),r1={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Gf=xn.define({map(e,t){let n=t.mapPos(e,-1,bo.TrackAfter);return n??void 0}}),l3=new class extends xp{};l3.startSide=1;l3.endSide=-1;const TK=ro.define({create(){return Kn.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(Gf)&&(e=e.update({add:[l3.range(n.value,n.value+1)]}));return e}});function HDe(){return[QDe,TK]}const MA="()[]{}<>";function wK(e){for(let t=0;t{if((WDe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&Bs(mo(r,0))==1||t!=i.from||n!=i.to)return!1;let o=qDe(e.state,r);return o?(e.dispatch(o),!0):!1}),YDe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=kK(e,e.selection.main.head).brackets||r1.brackets,i=null,o=e.changeByRange(a=>{if(a.empty){let s=ZDe(e.doc,a.head);for(let l of r)if(l==s&&lx(e.doc,a.head)==wK(mo(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:tt.cursor(a.head-l.length)}}return{range:i=a}});return i||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},GDe=[{key:"Backspace",run:YDe}];function qDe(e,t){let n=kK(e,e.selection.main.head),r=n.brackets||r1.brackets;for(let i of r){let o=wK(mo(i,0));if(t==i)return o==i?JDe(e,i,r.indexOf(i+i+i)>-1,n):XDe(e,i,o,n.before||r1.before);if(t==o&&xK(e,e.selection.main.from))return KDe(e,i,o)}return null}function xK(e,t){let n=!1;return e.field(TK).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function lx(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Bs(mo(n,0)))}function ZDe(e,t){let n=e.sliceString(t-2,t);return Bs(mo(n,0))==n.length?n:n.slice(1)}function XDe(e,t,n,r){let i=null,o=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:Gf.of(a.to+t.length),range:tt.range(a.anchor+t.length,a.head+t.length)};let s=lx(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:Gf.of(a.head+t.length),range:tt.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function KDe(e,t,n){let r=null,i=e.changeByRange(o=>o.empty&&lx(e.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:tt.cursor(o.head+n.length)}:r={range:o});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function JDe(e,t,n,r){let i=r.stringPrefixes||r1.stringPrefixes,o=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Gf.of(s.to+t.length),range:tt.range(s.anchor+t.length,s.head+t.length)};let l=s.head,u=lx(e.doc,l),c;if(u==t){if(j9(e,l))return{changes:{insert:t+t,from:l},effects:Gf.of(l+t.length),range:tt.cursor(l+t.length)};if(xK(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:tt.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(c=z9(e,l-2*t.length,i))>-1&&j9(e,c))return{changes:{insert:t+t+t+t,from:l},effects:Gf.of(l+t.length),range:tt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Yr.Word&&z9(e,l,i)>-1&&!eNe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Gf.of(l+t.length),range:tt.cursor(l+t.length)}}return{range:o=s}});return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function j9(e,t){let n=Ar(e).resolveInner(t+1);return n.parent&&n.from==t}function eNe(e,t,n,r){let i=Ar(e).resolveInner(t,-1),o=r.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<5;a++){let s=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>n.length+l;){if(e.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=i.to==t&&i.parent;if(!u)break;i=u}return!1}function z9(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Yr.Word)return t;for(let i of n){let o=t-i.length;if(e.sliceDoc(o,t)==i&&r(e.sliceDoc(o-1,o))!=Yr.Word)return o}return-1}function tNe(e={}){return[ts,yo.of(e),DDe,nNe,EK]}const CK=[{key:"Ctrl-Space",run:CDe},{key:"Escape",run:ADe},{key:"ArrowDown",run:iE(!0)},{key:"ArrowUp",run:iE(!1)},{key:"PageDown",run:iE(!0,"page")},{key:"PageUp",run:iE(!1,"page")},{key:"Enter",run:xDe}],nNe=df.highest(Lg.computeN([yo],e=>e.facet(yo).defaultKeymap?[CK]:[]));class rNe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class $f{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,o=r.facet(RK).markerFilter;o&&(i=o(i));let a=ln.set(i.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?ln.widget({widget:new fNe(s),diagnostic:s}).range(s.from):ln.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new $f(a,n,pg(a))}}function pg(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,o,{spec:a})=>{if(!(t&&a.diagnostic!=t))return r=new rNe(i,o,a.diagnostic),!1}),r}function iNe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(AK))||e.changes.touchesRange(n.from,n.to))}function oNe(e,t){return e.field(ls,!1)?t:t.concat(xn.appendConfig.of(mNe))}const AK=xn.define(),u3=xn.define(),_K=xn.define(),ls=ro.define({create(){return new $f(ln.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=pg(n,e.selected.diagnostic,i)||pg(n,null,i)}e=new $f(n,e.panel,r)}for(let n of t.effects)n.is(AK)?e=$f.init(n.value,e.panel,t.state):n.is(u3)?e=new $f(e.diagnostics,n.value?ux.open:null,e.selected):n.is(_K)&&(e=new $f(e.diagnostics,e.panel,n.value));return e},provide:e=>[Gy.from(e,t=>t.panel),Ht.decorations.from(e,t=>t.diagnostics)]}),aNe=ln.mark({class:"cm-lintRange cm-lintRange-active"});function sNe(e,t,n){let{diagnostics:r}=e.state.field(ls),i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:c})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(tDK(e,n,!1)))}const uNe=e=>{let t=e.state.field(ls,!1);(!t||!t.panel)&&e.dispatch({effects:oNe(e.state,[u3.of(!0)])});let n=Yy(e,ux.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},V9=e=>{let t=e.state.field(ls,!1);return!t||!t.panel?!1:(e.dispatch({effects:u3.of(!1)}),!0)},cNe=e=>{let t=e.state.field(ls,!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)},dNe=[{key:"Mod-Shift-m",run:uNe,preventDefault:!0},{key:"F8",run:cNe}],RK=qt.define({combine(e){return Object.assign({sources:e.map(t=>t.source)},$u(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 IK(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ro.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function DK(e,t,n){var r;let i=n?IK(t.actions):[];return kr("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},kr("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((o,a)=>{let s=!1,l=p=>{if(p.preventDefault(),s)return;s=!0;let h=pg(e.state.field(ls).diagnostics,t);h&&o.apply(e,h.from,h.to)},{name:u}=o,c=i[a]?u.indexOf(i[a]):-1,d=c<0?u:[u.slice(0,c),kr("u",u.slice(c,c+1)),u.slice(c+1)];return kr("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[a]})"`}.`},d)}),t.source&&kr("div",{class:"cm-diagnosticSource"},t.source))}class fNe extends Fu{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return kr("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class H9{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=DK(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class ux{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)V9(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:o}=this.items[this.selectedIndex],a=IK(o.actions);for(let s=0;s{for(let o=0;oV9(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(ls).selected;if(!t)return-1;for(let n=0;n{let u=-1,c;for(let d=r;dr&&(this.items.splice(r,u-r),i=!0)),n&&c.diagnostic==n.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),o=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),r++});r({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:s})=>{let l=s.height/this.list.offsetHeight;a.tops.bottom&&(this.list.scrollTop+=(a.bottom-s.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(ls),r=pg(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:_K.of(r)})}static open(t){return new ux(t)}}function pNe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function oE(e){return pNe(``,'width="6" height="3"')}const hNe=Ht.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:oE("#d11")},".cm-lintRange-warning":{backgroundImage:oE("orange")},".cm-lintRange-info":{backgroundImage:oE("#999")},".cm-lintRange-hint":{backgroundImage:oE("#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}}}),mNe=[ls,Ht.decorations.compute([ls],e=>{let{selected:t,panel:n}=e.field(ls);return!t||!n||t.from==t.to?ln.none:ln.set([aNe.range(t.from,t.to)])}),o_e(sNe,{hideOn:iNe}),hNe],gNe=[h_e(),b_e(),M2e(),LRe(),uRe(),k2e(),R2e(),Zn.allowMultipleSelections.of(!0),X_e(),EX(pRe,{fallback:!0}),vRe(),HDe(),tNe(),G2e(),X2e(),z2e(),jIe(),Lg.of([...GDe,...LIe,...aDe,...HRe,...oRe,...CK,...dNe])];class GT{static create(t,n,r,i,o){let a=i+(i<<8)+t+(n<<4)|0;return new GT(t,n,r,a,o,[],[])}constructor(t,n,r,i,o,a,s){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=o,this.children=a,this.positions=s,this.hashProp=[[vn.contextHash,i]]}addChild(t,n){t.prop(vn.contextHash)!=this.hash&&(t=new fr(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 fr(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,o,a)=>new fr($i.none,i,o,a,this.hashProp)})}}var Rt;(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"})(Rt||(Rt={}));class bNe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class yNe{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 jb(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==Rt.OrderedList?f3:d3)(n,t,!1);return r>0&&(e.type!=Rt.BulletList||c3(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const NK={[Rt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(qn(Rt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(ol(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Rt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Rt.OrderedList]:W9,[Rt.BulletList]:W9,[Rt.Document](){return!0}};function ol(e){return e==32||e==9||e==10||e==13}function jb(e,t=0){for(;tn&&ol(e.charCodeAt(t-1));)t--;return t}function PK(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 MK(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function d3(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||ol(e.text.charCodeAt(e.pos+1)))&&(!n||MK(t,Rt.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 $K(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function FK(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,UK=/\?>/,SI=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,UK=/\?>/,SI=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(o)return e.append(qn(Rt.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(qn(Rt.ProcessingInstruction,n,n+1+a[0].length));let s=/^(?:![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 s?e.append(qn(Rt.HTMLTag,n,n+1+s[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),o=e.slice(r,r+1),a=o1.test(i),s=o1.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),p=c&&(t==42||!d||a),h=d&&(t==42||!c||s);return e.append(new yl(t==95?QK:YK,n,r,(p?1:0)|(h?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(qn(Rt.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(qn(Rt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new yl(B0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new yl(G9,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 yl&&(i.type==B0||i.type==G9)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let o=e.takeContent(r),a=e.parts[r]=kNe(e,o,i.type==B0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==B0)for(let s=0;st?qn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function qK(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 o=t+1,a=!1;o=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,o){return this.append(new yl(t,n,r,(i?1:0)|(o?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let b=this.parts[l];if(b instanceof yl&&b.side&1&&b.type==i.type&&!(o&&(i.side&1||b.side&2)&&(b.to-b.from+a)%3==0&&((b.to-b.from)%3||a%3))){s=b;break}}if(!s)continue;let u=i.type.resolve,c=[],d=s.from,p=i.to;if(o){let b=Math.min(2,s.to-s.from,a);d=s.to-b,p=i.from+b,u=b==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,d,s.to));for(let b=l+1;b=0;n--){let r=this.parts[n];if(r instanceof yl&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return jb(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?qn(this.parser.getNodeType(t),n,r,i):new WK(t,n)}}function wI(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 o=this.fragment.to;for(;o>0&&this.input.read(o-1,o)!=` -`;)o--;this.fragmentEnd=o?o-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(vn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=t.absoluteLineStart,a=o,s=t.block.children.length,l=a,u=s;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=XK(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new fr(t.parser.nodeSet.types[Rt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,c)}if(n.type.is("Block")&&(CNe.indexOf(n.type.id)<0?(a=n.to-r,s=t.block.children.length):(a=l,s=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>s;)t.block.children.pop(),t.block.positions.pop();return a-o}};function XK(e,t){let n=e;for(let r=1;raE[e]),Object.keys(aE).map(e=>ENe[e]),Object.keys(aE),SNe,NK,Object.keys(FA).map(e=>FA[e]),Object.keys(FA),[]);function INe(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let a=i?i.from:n;if(a>o&&r.push({from:o,to:a}),!i)break;o=i.to}return r}function DNe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:aX((i,o)=>{let a=i.type.id;if(t&&(a==Rt.CodeBlock||a==Rt.FencedCode)){let s="";if(a==Rt.FencedCode){let u=i.node.getChild(Rt.CodeInfo);u&&(s=o.read(u.from,u.to))}let l=t(s);if(l)return{parser:l,overlay:u=>u.type.id==Rt.CodeText}}else if(n&&(a==Rt.HTMLBlock||a==Rt.HTMLTag))return{parser:n,overlay:INe(i.node,i.from,i.to)};return null})}}const NNe={resolve:"Strikethrough",mark:"StrikethroughMark"},PNe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":he.strikethrough}},{name:"StrikethroughMark",style:he.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),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=o1.test(r),l=o1.test(i);return e.addDelimiter(NNe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function zb(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1):(u||p!=32&&p!=9)&&(s<0&&(s=d),l=d+1),u=!u&&p==92}return s>-1&&(o++,r&&c()),o}function Z9(e,t){for(let n=t;ni instanceof X9)||!Z9(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return KK.test(r)&&zb(e,t.text,t.basePos)==zb(e,r,t.basePos)},before:"SetextHeading"}]};class MNe{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 $Ne={defineNodes:[{name:"Task",block:!0,style:he.list},{name:"TaskMarker",style:he.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new MNe:null},after:"SetextHeading"}]},K9=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,J9=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,FNe=/[\w-]+\.[\w-]+($|\/)/,ej=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,tj=/\/[a-zA-Z\d@.]+/gy;function nj(e,t,n,r){let i=0;for(let o=t;o-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],o;if(/[?!.,:*_~]/.test(i)||i==")"&&nj(e,t,r,")")>nj(e,t,r,"("))r--;else if(i==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+o.index;else break}return r}function rj(e,t){ej.lastIndex=t;let n=ej.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 UNe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;K9.lastIndex=r;let i=K9.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=BNe(e.text,r+i[0].length):i[3]?o=rj(e.text,r):(o=rj(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(tj.lastIndex=o,i=tj.exec(e.text),i&&(o=i.index+i[0].length))),o<0)?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]},jNe=[LNe,$Ne,PNe,UNe];function JK(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let s=o+1;sn%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new qT(t,[],n,r,r,0,[],0,i?new oj(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:o}=this.p,a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.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=u):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+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 o=t,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.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 qT(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 WNe(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 o=0,a;ol&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}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,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};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 oj{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class WNe{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 ZT{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 ZT(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 ZT(this.stack,this.pos,this.index)}}function pb(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class lS{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const aj=new lS;class QNe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=aj,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,o=this.pos+t;for(;or.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}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&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.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=aj,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 Em{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;eJ(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Em.prototype.contextual=Em.prototype.fallback=Em.prototype.extend=!1;class XT{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?pb(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(eJ(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;t.reset(a,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}XT.prototype.contextual=Em.prototype.fallback=Em.prototype.extend=!1;class zl{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function eJ(e,t,n,r,i,o){let a=0,s=1<0){let m=e[h];if(l.allows(m)&&(t.token.value==-1||t.token.value==m||YNe(m,t.token.value,i,o))){t.acceptToken(m);break}}let c=t.next,d=0,p=e[a+2];if(t.next<0&&p>d&&e[u+p*3-3]==65535){a=e[u+p*3-1];continue e}for(;d>1,m=u+h+(h<<1),b=e[m],O=e[m+1]||65536;if(c=O)d=h+1;else{a=e[m+2],t.advance();continue e}}break}}function sj(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function YNe(e,t,n,r){let i=sj(n,r,t);return i<0||sj(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 GNe{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?lj(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?lj(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=a,null;if(o instanceof fr){if(a==t){if(a=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class qNe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new lS)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,a=i.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;ud.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new lS,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 lS,{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:o}=r.p;for(let a=0;a=0&&r.p.parser.dialect.allows(s>>1)){s&1?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;ot.bufferLength*4?new GNe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)r.push(s);else{if(this.advanceStack(s,r,t))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&KNe(i);if(a)return Wa&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Wa&&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 a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Wa&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(t.state,d.type.id):-1;if(p>-1&&d.length&&(!u||(d.prop(vn.contextHash)||0)==c))return t.useNode(d,p),Wa&&console.log(a+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof fr)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof fr&&d.positions[0]==0)d=h;else break}}let s=o.stateSlot(t.state,4);if(s>0)return t.reduce(s),Wa&&console.log(a+this.stackID(t)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(m):r.push(m)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return uj(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let a=0;a ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Wa&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),p=c;for(let h=0;d.forceReduce()&&h<10&&(Wa&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Wa&&(p=this.stackID(d)+" -> ");for(let h of s.recoverByInsert(l))Wa&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Wa&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),uj(s,r)):(!i||i.scoree;class tJ{constructor(t){this.start=t.start,this.shift=t.shift||UA,this.reduce=t.reduce||UA,this.reuse=t.reuse||UA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class mg extends WP{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 s=0;st.topRules[s][1]),i=[];for(let s=0;s=0)o(c,l,s[u++]);else{let d=s[u+-c];for(let p=-c;p>0;p--)o(s[u++],l,d);u++}}}this.nodeSet=new fO(n.map((s,l)=>$i.define({name:l>=this.minRepeatTerm?void 0:s,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=tX;let a=pb(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new Em(a,s):s),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 ZNe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o0}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 o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=oc(this.data,o+2);else break;i=n(oc(this.data,o+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=oc(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(mg.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(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=cj(a),a})),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 o of t.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;or)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const JNe=54,ePe=1,tPe=55,nPe=2,rPe=56,iPe=3,dj=4,oPe=5,KT=6,nJ=7,rJ=8,iJ=9,oJ=10,aPe=11,sPe=12,lPe=13,jA=57,uPe=14,fj=58,aJ=20,cPe=22,sJ=23,dPe=24,kI=26,lJ=27,fPe=28,pPe=31,hPe=34,mPe=36,gPe=37,bPe=0,yPe=1,OPe={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},vPe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},pj={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 EPe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function uJ(e){return e==9||e==10||e==13||e==32}let hj=null,mj=null,gj=0;function xI(e,t){let n=e.pos+t;if(gj==n&&mj==e)return hj;let r=e.peek(t);for(;uJ(r);)r=e.peek(++t);let i="";for(;EPe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return mj=e,gj=n,hj=i?i.toLowerCase():r==SPe||r==TPe?void 0:null}const cJ=60,JT=62,p3=47,SPe=63,TPe=33,wPe=45;function bj(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new bj(xI(r,1)||"",e):e},reduce(e,t){return t==aJ&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==KT||i==mPe?new bj(xI(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),CPe=new zl((e,t)=>{if(e.next!=cJ){e.next<0&&t.context&&e.acceptToken(jA);return}e.advance();let n=e.next==p3;n&&e.advance();let r=xI(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?uPe:KT);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(aPe);if(i&&vPe[i])return e.acceptToken(jA,-2);if(t.dialectEnabled(bPe))return e.acceptToken(sPe);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(lPe)}else{if(r=="script")return e.acceptToken(nJ);if(r=="style")return e.acceptToken(rJ);if(r=="textarea")return e.acceptToken(iJ);if(OPe.hasOwnProperty(r))return e.acceptToken(oJ);i&&pj[i]&&pj[i][r]?e.acceptToken(jA,-1):e.acceptToken(KT)}},{contextual:!0}),APe=new zl(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(fj);break}if(e.next==wPe)t++;else if(e.next==JT&&t>=2){n>=3&&e.acceptToken(fj,-2);break}else t=0;e.advance()}});function _Pe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const RPe=new zl((e,t)=>{if(e.next==p3&&e.peek(1)==JT){let n=t.dialectEnabled(yPe)||_Pe(t.context);e.acceptToken(n?oPe:dj,2)}else e.next==JT&&e.acceptToken(dj,1)});function h3(e,t,n){let r=2+e.length;return new zl(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(o==0&&i.next==cJ||o==1&&i.next==p3||o>=2&&oa?i.acceptToken(t,-a):i.acceptToken(n,-(a-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else o=a=0;i.advance()}})}const IPe=h3("script",JNe,ePe),DPe=h3("style",tPe,nPe),NPe=h3("textarea",rPe,iPe),PPe=Mg({"Text RawText":he.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":he.angleBracket,TagName:he.tagName,"MismatchedCloseTag/TagName":[he.tagName,he.invalid],AttributeName:he.attributeName,"AttributeValue UnquotedAttributeValue":he.attributeValue,Is:he.definitionOperator,"EntityReference CharacterReference":he.character,Comment:he.blockComment,ProcessingInst:he.processingInstruction,DoctypeDecl:he.documentMeta}),LPe=mg.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:xPe,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:[PPe],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 u=s.type.id;if(u==fPe)return zA(s,l,n);if(u==pPe)return zA(s,l,r);if(u==hPe)return zA(s,l,i);if(u==aJ&&o.length){let c=s.node,d=c.firstChild,p=d&&yj(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=dJ(c,l))))){let b=c.lastChild,O=b.type.id==gPe?b.from:c.to;if(O>d.to)return{parser:m.parser,overlay:[{from:d.to,to:O}]}}}}if(a&&u==sJ){let c=s.node,d;if(d=c.firstChild){let p=a[l.read(d.from,d.to)];if(p)for(let h of p){if(h.tagName&&h.tagName!=yj(c.parent,l))continue;let m=c.lastChild;if(m.type.id==kI){let b=m.from+1,O=m.lastChild,y=m.to-(O&&O.isError?0:1);if(y>b)return{parser:h.parser,overlay:[{from:b,to:y}]}}else if(m.type.id==lJ)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const MPe=99,Oj=1,$Pe=100,FPe=101,vj=2,pJ=[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],BPe=58,UPe=40,hJ=95,jPe=91,uS=45,zPe=46,VPe=35,HPe=37,WPe=38,QPe=92,YPe=10;function a1(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function GPe(e){return e>=48&&e<=57}const qPe=new zl((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(a1(o)||o==uS||o==hJ||n&&GPe(o))!n&&(o!=uS||i>0)&&(n=!0),r===i&&o==uS&&r++,e.advance();else if(o==QPe&&e.peek(1)!=YPe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==UPe?$Pe:r==2&&t.canShift(vj)?vj:FPe);break}}}),ZPe=new zl(e=>{if(pJ.includes(e.peek(-1))){let{next:t}=e;(a1(t)||t==hJ||t==VPe||t==zPe||t==jPe||t==BPe&&a1(e.peek(1))||t==uS||t==WPe)&&e.acceptToken(MPe)}}),XPe=new zl(e=>{if(!pJ.includes(e.peek(-1))){let{next:t}=e;if(t==HPe&&(e.advance(),e.acceptToken(Oj)),a1(t)){do e.advance();while(a1(e.next));e.acceptToken(Oj)}}}),KPe=Mg({"AtKeyword import charset namespace keyframes media supports":he.definitionKeyword,"from to selector":he.keyword,NamespaceName:he.namespace,KeyframeName:he.labelName,KeyframeRangeName:he.operatorKeyword,TagName:he.tagName,ClassName:he.className,PseudoClassName:he.constant(he.className),IdName:he.labelName,"FeatureName PropertyName":he.propertyName,AttributeName:he.attributeName,NumberLiteral:he.number,KeywordQuery:he.keyword,UnaryQueryOp:he.operatorKeyword,"CallTag ValueName":he.atom,VariableName:he.variableName,Callee:he.operatorKeyword,Unit:he.unit,"UniversalSelector NestingSelector":he.definitionOperator,MatchOp:he.compareOperator,"ChildOp SiblingOp, LogicOp":he.logicOperator,BinOp:he.arithmeticOperator,Important:he.modifier,Comment:he.blockComment,ColorLiteral:he.color,"ParenthesizedContent StringLiteral":he.string,":":he.punctuation,"PseudoOp #":he.derefOperator,"; ,":he.separator,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace}),JPe={__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},e3e={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},t3e={__proto__:null,not:132,only:132},n3e=mg.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:[ZPe,XPe,qPe,1,2,3,4,new XT("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>JPe[e]||-1},{term:58,get:e=>e3e[e]||-1},{term:101,get:e=>t3e[e]||-1}],tokenPrec:1200});let VA=null;function HA(){if(!VA&&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)));VA=t.sort().map(r=>({type:"property",label:r}))}return VA||[]}const Ej=["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})),Sj=["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}))),r3e=["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})),Qc=/^(\w[\w-]*|-\w[\w-]*|)$/,i3e=/^-(-[\w-]*)?$/;function o3e(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 Tj=new oX,a3e=["Declaration"];function s3e(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function mJ(e,t,n){if(t.to-t.from>4096){let r=Tj.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(xr.IncludeAnonymous);if(a.firstChild())do for(let s of mJ(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return Tj.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(a3e)&&((a=o.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let s=e.sliceString(o.from,o.to);i.has(s)||(i.add(s),r.push({label:s,type:"variable"}))}}),r}}const l3e=e=>t=>{let{state:n,pos:r}=t,i=Ar(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(o||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:HA(),validFor:Qc};if(i.name=="ValueName")return{from:i.from,options:Sj,validFor:Qc};if(i.name=="PseudoClassName")return{from:i.from,options:Ej,validFor:Qc};if(e(i)||(t.explicit||o)&&o3e(i,n.doc))return{from:e(i)||o?i.from:r,options:mJ(n.doc,s3e(i),e),validFor:i3e};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:HA(),validFor:Qc};return{from:i.from,options:r3e,validFor:Qc}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:Ej,validFor:Qc}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:Sj,validFor:Qc}:a.name=="Block"||a.name=="Styles"?{from:r,options:HA(),validFor:Qc}:null},u3e=l3e(e=>e.name=="VariableName"),ew=cg.define({name:"css",parser:n3e.configure({props:[hO.add({Declaration:sS()}),$g.add({"Block KeyframeList":pX})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function c3e(){return new Ky(ew,ew.data.of({autocomplete:u3e}))}const d3e=309,wj=1,f3e=2,p3e=3,h3e=310,m3e=312,g3e=313,b3e=4,y3e=5,O3e=0,CI=[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],gJ=125,v3e=59,AI=47,E3e=42,S3e=43,T3e=45,w3e=60,k3e=44,x3e=new tJ({start:!1,shift(e,t){return t==b3e||t==y3e||t==m3e?e:t==g3e},strict:!1}),C3e=new zl((e,t)=>{let{next:n}=e;(n==gJ||n==-1||t.context)&&e.acceptToken(h3e)},{contextual:!0,fallback:!0}),A3e=new zl((e,t)=>{let{next:n}=e,r;CI.indexOf(n)>-1||n==AI&&((r=e.peek(1))==AI||r==E3e)||n!=gJ&&n!=v3e&&n!=-1&&!t.context&&e.acceptToken(d3e)},{contextual:!0}),_3e=new zl((e,t)=>{let{next:n}=e;if((n==S3e||n==T3e)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(wj);e.acceptToken(r?wj:f3e)}},{contextual:!0});function WA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const R3e=new zl((e,t)=>{if(e.next!=w3e||!t.dialectEnabled(O3e)||(e.advance(),e.next==AI))return;let n=0;for(;CI.indexOf(e.next)>-1;)e.advance(),n++;if(WA(e.next,!0)){for(e.advance(),n++;WA(e.next,!1);)e.advance(),n++;for(;CI.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==k3e)return;for(let r=0;;r++){if(r==7){if(!WA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(p3e,-n)}),I3e=Mg({"get set async static":he.modifier,"for while do if else switch try catch finally return throw break continue default case":he.controlKeyword,"in of await yield void typeof delete instanceof":he.operatorKeyword,"let var const using function class extends":he.definitionKeyword,"import export from":he.moduleKeyword,"with debugger as new":he.keyword,TemplateString:he.special(he.string),super:he.atom,BooleanLiteral:he.bool,this:he.self,null:he.null,Star:he.modifier,VariableName:he.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":he.function(he.variableName),VariableDefinition:he.definition(he.variableName),Label:he.labelName,PropertyName:he.propertyName,PrivatePropertyName:he.special(he.propertyName),"CallExpression/MemberExpression/PropertyName":he.function(he.propertyName),"FunctionDeclaration/VariableDefinition":he.function(he.definition(he.variableName)),"ClassDeclaration/VariableDefinition":he.definition(he.className),PropertyDefinition:he.definition(he.propertyName),PrivatePropertyDefinition:he.definition(he.special(he.propertyName)),UpdateOp:he.updateOperator,"LineComment Hashbang":he.lineComment,BlockComment:he.blockComment,Number:he.number,String:he.string,Escape:he.escape,ArithOp:he.arithmeticOperator,LogicOp:he.logicOperator,BitOp:he.bitwiseOperator,CompareOp:he.compareOperator,RegExp:he.regexp,Equals:he.definitionOperator,Arrow:he.function(he.punctuation),": Spread":he.punctuation,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace,"InterpolationStart InterpolationEnd":he.special(he.brace),".":he.derefOperator,", ;":he.separator,"@":he.meta,TypeName:he.typeName,TypeDefinition:he.definition(he.typeName),"type enum interface implements namespace module declare":he.definitionKeyword,"abstract global Privacy readonly override":he.modifier,"is keyof unique infer":he.operatorKeyword,JSXAttributeValue:he.attributeValue,JSXText:he.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":he.angleBracket,"JSXIdentifier JSXNameSpacedName":he.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":he.attributeName,"JSXBuiltin/JSXIdentifier":he.standard(he.tagName)}),D3e={__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},N3e={__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},P3e={__proto__:null,"<":143},L3e=mg.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:x3e,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:[I3e],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#D3e[e]||-1},{term:334,get:e=>N3e[e]||-1},{term:70,get:e=>P3e[e]||-1}],tokenPrec:14638}),bJ=[ba("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ba("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ba("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ba("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ba("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ba(`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=GT.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 fr(this.parser.nodeSet.types[t],hg,hg,(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(wI(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?zK(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=wI(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(Rt.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?qn(this.parser.getNodeType(t),n,r,i):new WK(t,n)}get buffer(){return new HK(this.parser.nodeSet)}}function zK(e,t,n,r,i){let o=e[t].to,a=[],s=[],l=n.from+r;function u(c,d){for(;d?c>=o:c>o;){let p=e[t+1].from-o;r+=p,c+=p,t++,o=e[t].to}}for(let c=n.firstChild;c;c=c.nextSibling){u(c.from+r,!0);let d=c.from+r,p,h=i.get(c.tree);h?p=h:c.to+r>o?(p=zK(e,t,c,r,i),u(c.to+r,!1)):p=c.toTree(),a.push(p),s.push(d-l)}return u(n.to+r,!1),new fr(n.type,a,s,n.to+r-l,n.tree?n.tree.propValues:void 0)}class cx extends WP{constructor(t,n,r,i,o,a,s,l,u){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=o,this.skipContextMarkup=a,this.inlineParsers=s,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of t.types)this.nodeTypes[c.name]=c.id}createParse(t,n,r){let i=new wDe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}configure(t){let n=TI(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,o=this.blockParsers.slice(),a=this.leafBlockParsers.slice(),s=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),d=this.wrappers;if(F0(n.defineNodes)){i=Object.assign({},i);let p=r.types.slice(),h;for(let m of n.defineNodes){let{name:b,block:O,composite:y,style:v}=typeof m=="string"?{name:m}:m;if(p.some(C=>C.name==b))continue;y&&(i[p.length]=(C,w,E)=>y(w,E,C.value));let S=p.length,k=y?["Block","BlockContext"]:O?S>=Rt.ATXHeading1&&S<=Rt.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;p.push($i.define({id:S,name:b,props:k&&[[vn.group,k]]})),v&&(h||(h={}),Array.isArray(v)||v instanceof bl?h[b]=v:Object.assign(h,v))}r=new fO(p),h&&(r=r.extend(Mg(h)))}if(F0(n.props)&&(r=r.extend(...n.props)),F0(n.remove))for(let p of n.remove){let h=this.blockNames.indexOf(p),m=this.inlineNames.indexOf(p);h>-1&&(o[h]=a[h]=void 0),m>-1&&(l[m]=void 0)}if(F0(n.parseBlock))for(let p of n.parseBlock){let h=s.indexOf(p.name);if(h>-1)o[h]=p.parse,a[h]=p.leaf;else{let m=p.before?sE(s,p.before):p.after?sE(s,p.after)+1:s.length-1;o.splice(m,0,p.parse),a.splice(m,0,p.leaf),s.splice(m,0,p.name)}p.endLeaf&&c.push(p.endLeaf)}if(F0(n.parseInline))for(let p of n.parseInline){let h=u.indexOf(p.name);if(h>-1)l[h]=p.parse;else{let m=p.before?sE(u,p.before):p.after?sE(u,p.after)+1:u.length-1;l.splice(m,0,p.parse),u.splice(m,0,p.name)}}return n.wrap&&(d=d.concat(n.wrap)),new cx(r,o,a,s,c,i,l,u,d)}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 xDe(this,t,n);e:for(let i=n;i=0){i=s;continue e}}i++}return r.resolveMarkers(0)}}function F0(e){return e!=null&&e.length>0}function TI(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=TI(e[0]);if(e.length==1)return t;let n=TI(e.slice(1));if(!n||!t)return t||n;let r=(a,s)=>(a||hg).concat(s||hg),i=t.wrap,o=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?o?(a,s,l,u)=>i(o(a,s,l,u),s,l,u):i:o}}function sE(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let VK=[$i.none];for(let e=1,t;t=Rt[e];e++)VK[e]=$i.define({id:e,name:t,props:e>=Rt.Escape?[]:[[vn.group,e in DK?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const hg=[];let HK=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 fr.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:n})}},i1=class{constructor(t,n,r,i=hg){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 HK(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class WK{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 hg}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 qn(e,t,n,r){return new i1(e,t,n,r)}const QK={resolve:"Emphasis",mark:"EmphasisMark"},YK={resolve:"Emphasis",mark:"EmphasisMark"},B0={},G9={};class yl{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const q9="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let o1=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{o1=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const FA={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(qn(Rt.Autolink,n,n+1+i[0].length,[qn(Rt.LinkMark,n,n+1),qn(Rt.URL,n+1,n+i[0].length),qn(Rt.LinkMark,n+i[0].length,n+1+i[0].length)]));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(o)return e.append(qn(Rt.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(qn(Rt.ProcessingInstruction,n,n+1+a[0].length));let s=/^(?:![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 s?e.append(qn(Rt.HTMLTag,n,n+1+s[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),o=e.slice(r,r+1),a=o1.test(i),s=o1.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),p=c&&(t==42||!d||a),h=d&&(t==42||!c||s);return e.append(new yl(t==95?QK:YK,n,r,(p?1:0)|(h?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(qn(Rt.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(qn(Rt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new yl(B0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new yl(G9,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 yl&&(i.type==B0||i.type==G9)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let o=e.takeContent(r),a=e.parts[r]=kDe(e,o,i.type==B0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==B0)for(let s=0;st?qn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function qK(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 o=t+1,a=!1;o=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,o){return this.append(new yl(t,n,r,(i?1:0)|(o?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let b=this.parts[l];if(b instanceof yl&&b.side&1&&b.type==i.type&&!(o&&(i.side&1||b.side&2)&&(b.to-b.from+a)%3==0&&((b.to-b.from)%3||a%3))){s=b;break}}if(!s)continue;let u=i.type.resolve,c=[],d=s.from,p=i.to;if(o){let b=Math.min(2,s.to-s.from,a);d=s.to-b,p=i.from+b,u=b==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,d,s.to));for(let b=l+1;b=0;n--){let r=this.parts[n];if(r instanceof yl&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return jb(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?qn(this.parser.getNodeType(t),n,r,i):new WK(t,n)}}function wI(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 o=this.fragment.to;for(;o>0&&this.input.read(o-1,o)!=` +`;)o--;this.fragmentEnd=o?o-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(vn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=t.absoluteLineStart,a=o,s=t.block.children.length,l=a,u=s;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=XK(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new fr(t.parser.nodeSet.types[Rt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,c)}if(n.type.is("Block")&&(CDe.indexOf(n.type.id)<0?(a=n.to-r,s=t.block.children.length):(a=l,s=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>s;)t.block.children.pop(),t.block.positions.pop();return a-o}};function XK(e,t){let n=e;for(let r=1;raE[e]),Object.keys(aE).map(e=>EDe[e]),Object.keys(aE),SDe,DK,Object.keys(FA).map(e=>FA[e]),Object.keys(FA),[]);function IDe(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let a=i?i.from:n;if(a>o&&r.push({from:o,to:a}),!i)break;o=i.to}return r}function NDe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:aX((i,o)=>{let a=i.type.id;if(t&&(a==Rt.CodeBlock||a==Rt.FencedCode)){let s="";if(a==Rt.FencedCode){let u=i.node.getChild(Rt.CodeInfo);u&&(s=o.read(u.from,u.to))}let l=t(s);if(l)return{parser:l,overlay:u=>u.type.id==Rt.CodeText}}else if(n&&(a==Rt.HTMLBlock||a==Rt.HTMLTag))return{parser:n,overlay:IDe(i.node,i.from,i.to)};return null})}}const DDe={resolve:"Strikethrough",mark:"StrikethroughMark"},PDe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":he.strikethrough}},{name:"StrikethroughMark",style:he.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),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=o1.test(r),l=o1.test(i);return e.addDelimiter(DDe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function zb(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1):(u||p!=32&&p!=9)&&(s<0&&(s=d),l=d+1),u=!u&&p==92}return s>-1&&(o++,r&&c()),o}function Z9(e,t){for(let n=t;ni instanceof X9)||!Z9(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return KK.test(r)&&zb(e,t.text,t.basePos)==zb(e,r,t.basePos)},before:"SetextHeading"}]};class MDe{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 $De={defineNodes:[{name:"Task",block:!0,style:he.list},{name:"TaskMarker",style:he.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new MDe:null},after:"SetextHeading"}]},K9=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,J9=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,FDe=/[\w-]+\.[\w-]+($|\/)/,ej=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,tj=/\/[a-zA-Z\d@.]+/gy;function nj(e,t,n,r){let i=0;for(let o=t;o-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],o;if(/[?!.,:*_~]/.test(i)||i==")"&&nj(e,t,r,")")>nj(e,t,r,"("))r--;else if(i==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+o.index;else break}return r}function rj(e,t){ej.lastIndex=t;let n=ej.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 UDe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;K9.lastIndex=r;let i=K9.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=BDe(e.text,r+i[0].length):i[3]?o=rj(e.text,r):(o=rj(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(tj.lastIndex=o,i=tj.exec(e.text),i&&(o=i.index+i[0].length))),o<0)?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]},jDe=[LDe,$De,PDe,UDe];function JK(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let s=o+1;sn%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new qT(t,[],n,r,r,0,[],0,i?new oj(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:o}=this.p,a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.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=u):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+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 o=t,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.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 qT(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 WDe(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 o=0,a;ol&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}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,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};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 oj{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class WDe{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 ZT{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 ZT(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 ZT(this.stack,this.pos,this.index)}}function pb(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class lS{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const aj=new lS;class QDe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=aj,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,o=this.pos+t;for(;or.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}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&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.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=aj,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 Em{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;eJ(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Em.prototype.contextual=Em.prototype.fallback=Em.prototype.extend=!1;class XT{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?pb(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(eJ(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;t.reset(a,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}XT.prototype.contextual=Em.prototype.fallback=Em.prototype.extend=!1;class zl{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function eJ(e,t,n,r,i,o){let a=0,s=1<0){let m=e[h];if(l.allows(m)&&(t.token.value==-1||t.token.value==m||YDe(m,t.token.value,i,o))){t.acceptToken(m);break}}let c=t.next,d=0,p=e[a+2];if(t.next<0&&p>d&&e[u+p*3-3]==65535){a=e[u+p*3-1];continue e}for(;d>1,m=u+h+(h<<1),b=e[m],O=e[m+1]||65536;if(c=O)d=h+1;else{a=e[m+2],t.advance();continue e}}break}}function sj(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function YDe(e,t,n,r){let i=sj(n,r,t);return i<0||sj(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 GDe{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?lj(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?lj(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=a,null;if(o instanceof fr){if(a==t){if(a=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class qDe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new lS)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,a=i.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;ud.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new lS,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 lS,{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:o}=r.p;for(let a=0;a=0&&r.p.parser.dialect.allows(s>>1)){s&1?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;ot.bufferLength*4?new GDe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)r.push(s);else{if(this.advanceStack(s,r,t))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&KDe(i);if(a)return Wa&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Wa&&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 a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Wa&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(t.state,d.type.id):-1;if(p>-1&&d.length&&(!u||(d.prop(vn.contextHash)||0)==c))return t.useNode(d,p),Wa&&console.log(a+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof fr)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof fr&&d.positions[0]==0)d=h;else break}}let s=o.stateSlot(t.state,4);if(s>0)return t.reduce(s),Wa&&console.log(a+this.stackID(t)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(m):r.push(m)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return uj(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let a=0;a ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Wa&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),p=c;for(let h=0;d.forceReduce()&&h<10&&(Wa&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Wa&&(p=this.stackID(d)+" -> ");for(let h of s.recoverByInsert(l))Wa&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Wa&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),uj(s,r)):(!i||i.scoree;class tJ{constructor(t){this.start=t.start,this.shift=t.shift||UA,this.reduce=t.reduce||UA,this.reuse=t.reuse||UA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class mg extends WP{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 s=0;st.topRules[s][1]),i=[];for(let s=0;s=0)o(c,l,s[u++]);else{let d=s[u+-c];for(let p=-c;p>0;p--)o(s[u++],l,d);u++}}}this.nodeSet=new fO(n.map((s,l)=>$i.define({name:l>=this.minRepeatTerm?void 0:s,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=tX;let a=pb(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new Em(a,s):s),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 ZDe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o0}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 o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=oc(this.data,o+2);else break;i=n(oc(this.data,o+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=oc(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(mg.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(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=cj(a),a})),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 o of t.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;or)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const JDe=54,ePe=1,tPe=55,nPe=2,rPe=56,iPe=3,dj=4,oPe=5,KT=6,nJ=7,rJ=8,iJ=9,oJ=10,aPe=11,sPe=12,lPe=13,jA=57,uPe=14,fj=58,aJ=20,cPe=22,sJ=23,dPe=24,kI=26,lJ=27,fPe=28,pPe=31,hPe=34,mPe=36,gPe=37,bPe=0,yPe=1,OPe={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},vPe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},pj={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 EPe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function uJ(e){return e==9||e==10||e==13||e==32}let hj=null,mj=null,gj=0;function xI(e,t){let n=e.pos+t;if(gj==n&&mj==e)return hj;let r=e.peek(t);for(;uJ(r);)r=e.peek(++t);let i="";for(;EPe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return mj=e,gj=n,hj=i?i.toLowerCase():r==SPe||r==TPe?void 0:null}const cJ=60,JT=62,p3=47,SPe=63,TPe=33,wPe=45;function bj(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new bj(xI(r,1)||"",e):e},reduce(e,t){return t==aJ&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==KT||i==mPe?new bj(xI(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),CPe=new zl((e,t)=>{if(e.next!=cJ){e.next<0&&t.context&&e.acceptToken(jA);return}e.advance();let n=e.next==p3;n&&e.advance();let r=xI(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?uPe:KT);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(aPe);if(i&&vPe[i])return e.acceptToken(jA,-2);if(t.dialectEnabled(bPe))return e.acceptToken(sPe);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(lPe)}else{if(r=="script")return e.acceptToken(nJ);if(r=="style")return e.acceptToken(rJ);if(r=="textarea")return e.acceptToken(iJ);if(OPe.hasOwnProperty(r))return e.acceptToken(oJ);i&&pj[i]&&pj[i][r]?e.acceptToken(jA,-1):e.acceptToken(KT)}},{contextual:!0}),APe=new zl(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(fj);break}if(e.next==wPe)t++;else if(e.next==JT&&t>=2){n>=3&&e.acceptToken(fj,-2);break}else t=0;e.advance()}});function _Pe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const RPe=new zl((e,t)=>{if(e.next==p3&&e.peek(1)==JT){let n=t.dialectEnabled(yPe)||_Pe(t.context);e.acceptToken(n?oPe:dj,2)}else e.next==JT&&e.acceptToken(dj,1)});function h3(e,t,n){let r=2+e.length;return new zl(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(o==0&&i.next==cJ||o==1&&i.next==p3||o>=2&&oa?i.acceptToken(t,-a):i.acceptToken(n,-(a-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else o=a=0;i.advance()}})}const IPe=h3("script",JDe,ePe),NPe=h3("style",tPe,nPe),DPe=h3("textarea",rPe,iPe),PPe=Mg({"Text RawText":he.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":he.angleBracket,TagName:he.tagName,"MismatchedCloseTag/TagName":[he.tagName,he.invalid],AttributeName:he.attributeName,"AttributeValue UnquotedAttributeValue":he.attributeValue,Is:he.definitionOperator,"EntityReference CharacterReference":he.character,Comment:he.blockComment,ProcessingInst:he.processingInstruction,DoctypeDecl:he.documentMeta}),LPe=mg.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:xPe,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:[PPe],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 u=s.type.id;if(u==fPe)return zA(s,l,n);if(u==pPe)return zA(s,l,r);if(u==hPe)return zA(s,l,i);if(u==aJ&&o.length){let c=s.node,d=c.firstChild,p=d&&yj(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=dJ(c,l))))){let b=c.lastChild,O=b.type.id==gPe?b.from:c.to;if(O>d.to)return{parser:m.parser,overlay:[{from:d.to,to:O}]}}}}if(a&&u==sJ){let c=s.node,d;if(d=c.firstChild){let p=a[l.read(d.from,d.to)];if(p)for(let h of p){if(h.tagName&&h.tagName!=yj(c.parent,l))continue;let m=c.lastChild;if(m.type.id==kI){let b=m.from+1,O=m.lastChild,y=m.to-(O&&O.isError?0:1);if(y>b)return{parser:h.parser,overlay:[{from:b,to:y}]}}else if(m.type.id==lJ)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const MPe=99,Oj=1,$Pe=100,FPe=101,vj=2,pJ=[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],BPe=58,UPe=40,hJ=95,jPe=91,uS=45,zPe=46,VPe=35,HPe=37,WPe=38,QPe=92,YPe=10;function a1(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function GPe(e){return e>=48&&e<=57}const qPe=new zl((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(a1(o)||o==uS||o==hJ||n&&GPe(o))!n&&(o!=uS||i>0)&&(n=!0),r===i&&o==uS&&r++,e.advance();else if(o==QPe&&e.peek(1)!=YPe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==UPe?$Pe:r==2&&t.canShift(vj)?vj:FPe);break}}}),ZPe=new zl(e=>{if(pJ.includes(e.peek(-1))){let{next:t}=e;(a1(t)||t==hJ||t==VPe||t==zPe||t==jPe||t==BPe&&a1(e.peek(1))||t==uS||t==WPe)&&e.acceptToken(MPe)}}),XPe=new zl(e=>{if(!pJ.includes(e.peek(-1))){let{next:t}=e;if(t==HPe&&(e.advance(),e.acceptToken(Oj)),a1(t)){do e.advance();while(a1(e.next));e.acceptToken(Oj)}}}),KPe=Mg({"AtKeyword import charset namespace keyframes media supports":he.definitionKeyword,"from to selector":he.keyword,NamespaceName:he.namespace,KeyframeName:he.labelName,KeyframeRangeName:he.operatorKeyword,TagName:he.tagName,ClassName:he.className,PseudoClassName:he.constant(he.className),IdName:he.labelName,"FeatureName PropertyName":he.propertyName,AttributeName:he.attributeName,NumberLiteral:he.number,KeywordQuery:he.keyword,UnaryQueryOp:he.operatorKeyword,"CallTag ValueName":he.atom,VariableName:he.variableName,Callee:he.operatorKeyword,Unit:he.unit,"UniversalSelector NestingSelector":he.definitionOperator,MatchOp:he.compareOperator,"ChildOp SiblingOp, LogicOp":he.logicOperator,BinOp:he.arithmeticOperator,Important:he.modifier,Comment:he.blockComment,ColorLiteral:he.color,"ParenthesizedContent StringLiteral":he.string,":":he.punctuation,"PseudoOp #":he.derefOperator,"; ,":he.separator,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace}),JPe={__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},e3e={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},t3e={__proto__:null,not:132,only:132},n3e=mg.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:[ZPe,XPe,qPe,1,2,3,4,new XT("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>JPe[e]||-1},{term:58,get:e=>e3e[e]||-1},{term:101,get:e=>t3e[e]||-1}],tokenPrec:1200});let VA=null;function HA(){if(!VA&&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)));VA=t.sort().map(r=>({type:"property",label:r}))}return VA||[]}const Ej=["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})),Sj=["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}))),r3e=["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})),Qc=/^(\w[\w-]*|-\w[\w-]*|)$/,i3e=/^-(-[\w-]*)?$/;function o3e(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 Tj=new oX,a3e=["Declaration"];function s3e(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function mJ(e,t,n){if(t.to-t.from>4096){let r=Tj.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(xr.IncludeAnonymous);if(a.firstChild())do for(let s of mJ(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return Tj.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(a3e)&&((a=o.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let s=e.sliceString(o.from,o.to);i.has(s)||(i.add(s),r.push({label:s,type:"variable"}))}}),r}}const l3e=e=>t=>{let{state:n,pos:r}=t,i=Ar(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(o||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:HA(),validFor:Qc};if(i.name=="ValueName")return{from:i.from,options:Sj,validFor:Qc};if(i.name=="PseudoClassName")return{from:i.from,options:Ej,validFor:Qc};if(e(i)||(t.explicit||o)&&o3e(i,n.doc))return{from:e(i)||o?i.from:r,options:mJ(n.doc,s3e(i),e),validFor:i3e};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:HA(),validFor:Qc};return{from:i.from,options:r3e,validFor:Qc}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:Ej,validFor:Qc}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:Sj,validFor:Qc}:a.name=="Block"||a.name=="Styles"?{from:r,options:HA(),validFor:Qc}:null},u3e=l3e(e=>e.name=="VariableName"),ew=cg.define({name:"css",parser:n3e.configure({props:[hO.add({Declaration:sS()}),$g.add({"Block KeyframeList":pX})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function c3e(){return new Ky(ew,ew.data.of({autocomplete:u3e}))}const d3e=309,wj=1,f3e=2,p3e=3,h3e=310,m3e=312,g3e=313,b3e=4,y3e=5,O3e=0,CI=[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],gJ=125,v3e=59,AI=47,E3e=42,S3e=43,T3e=45,w3e=60,k3e=44,x3e=new tJ({start:!1,shift(e,t){return t==b3e||t==y3e||t==m3e?e:t==g3e},strict:!1}),C3e=new zl((e,t)=>{let{next:n}=e;(n==gJ||n==-1||t.context)&&e.acceptToken(h3e)},{contextual:!0,fallback:!0}),A3e=new zl((e,t)=>{let{next:n}=e,r;CI.indexOf(n)>-1||n==AI&&((r=e.peek(1))==AI||r==E3e)||n!=gJ&&n!=v3e&&n!=-1&&!t.context&&e.acceptToken(d3e)},{contextual:!0}),_3e=new zl((e,t)=>{let{next:n}=e;if((n==S3e||n==T3e)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(wj);e.acceptToken(r?wj:f3e)}},{contextual:!0});function WA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const R3e=new zl((e,t)=>{if(e.next!=w3e||!t.dialectEnabled(O3e)||(e.advance(),e.next==AI))return;let n=0;for(;CI.indexOf(e.next)>-1;)e.advance(),n++;if(WA(e.next,!0)){for(e.advance(),n++;WA(e.next,!1);)e.advance(),n++;for(;CI.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==k3e)return;for(let r=0;;r++){if(r==7){if(!WA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(p3e,-n)}),I3e=Mg({"get set async static":he.modifier,"for while do if else switch try catch finally return throw break continue default case":he.controlKeyword,"in of await yield void typeof delete instanceof":he.operatorKeyword,"let var const using function class extends":he.definitionKeyword,"import export from":he.moduleKeyword,"with debugger as new":he.keyword,TemplateString:he.special(he.string),super:he.atom,BooleanLiteral:he.bool,this:he.self,null:he.null,Star:he.modifier,VariableName:he.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":he.function(he.variableName),VariableDefinition:he.definition(he.variableName),Label:he.labelName,PropertyName:he.propertyName,PrivatePropertyName:he.special(he.propertyName),"CallExpression/MemberExpression/PropertyName":he.function(he.propertyName),"FunctionDeclaration/VariableDefinition":he.function(he.definition(he.variableName)),"ClassDeclaration/VariableDefinition":he.definition(he.className),PropertyDefinition:he.definition(he.propertyName),PrivatePropertyDefinition:he.definition(he.special(he.propertyName)),UpdateOp:he.updateOperator,"LineComment Hashbang":he.lineComment,BlockComment:he.blockComment,Number:he.number,String:he.string,Escape:he.escape,ArithOp:he.arithmeticOperator,LogicOp:he.logicOperator,BitOp:he.bitwiseOperator,CompareOp:he.compareOperator,RegExp:he.regexp,Equals:he.definitionOperator,Arrow:he.function(he.punctuation),": Spread":he.punctuation,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace,"InterpolationStart InterpolationEnd":he.special(he.brace),".":he.derefOperator,", ;":he.separator,"@":he.meta,TypeName:he.typeName,TypeDefinition:he.definition(he.typeName),"type enum interface implements namespace module declare":he.definitionKeyword,"abstract global Privacy readonly override":he.modifier,"is keyof unique infer":he.operatorKeyword,JSXAttributeValue:he.attributeValue,JSXText:he.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":he.angleBracket,"JSXIdentifier JSXNameSpacedName":he.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":he.attributeName,"JSXBuiltin/JSXIdentifier":he.standard(he.tagName)}),N3e={__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},D3e={__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},P3e={__proto__:null,"<":143},L3e=mg.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:x3e,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:[I3e],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#N3e[e]||-1},{term:334,get:e=>D3e[e]||-1},{term:70,get:e=>P3e[e]||-1}],tokenPrec:14638}),bJ=[ba("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ba("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ba("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ba("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ba("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ba(`try { \${} } catch (\${error}) { \${} @@ -220,7 +220,7 @@ Error generating stack: `+o.message+` constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),ba('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ba('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],M3e=bJ.concat([ba("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ba("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ba("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),kj=new oX,yJ=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function U0(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const $3e=["FunctionDeclaration"],F3e={FunctionDeclaration:U0("function"),ClassDeclaration:U0("class"),ClassExpression:()=>!0,EnumDeclaration:U0("constant"),TypeAliasDeclaration:U0("type"),NamespaceDeclaration:U0("namespace"),VariableDefinition(e,t){e.matchContext($3e)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function OJ(e,t){let n=kj.get(t);if(n)return n;let r=[],i=!0;function o(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(xr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=F3e[a.name];if(s&&s(a,o)||yJ.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of OJ(e,a.node))r.push(s);return!1}}),kj.set(t,r),r}const xj=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,vJ=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function B3e(e){let t=Ar(e.state).resolveInner(e.pos,-1);if(vJ.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&xj.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)yJ.has(i.name)&&(r=r.concat(OJ(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:xj}}const Ru=cg.define({name:"javascript",parser:L3e.configure({props:[hO.add({IfStatement:sS({except:/^\s*({|else\b)/}),TryStatement:sS({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:q_e,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:G_e({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":sS({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}}),$g.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":pX,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),EJ={test:e=>/^JSX/.test(e.name),facet:QP({commentTokens:{block:{open:"{/*",close:"*/}"}}})},SJ=Ru.configure({dialect:"ts"},"typescript"),TJ=Ru.configure({dialect:"jsx",props:[YP.add(e=>e.isTop?[EJ]:void 0)]}),wJ=Ru.configure({dialect:"jsx ts",props:[YP.add(e=>e.isTop?[EJ]:void 0)]},"typescript");let kJ=e=>({label:e,type:"keyword"});const xJ="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(kJ),U3e=xJ.concat(["declare","implements","private","protected","public"].map(kJ));function j3e(e={}){let t=e.jsx?e.typescript?wJ:TJ:e.typescript?SJ:Ru,n=e.typescript?M3e.concat(U3e):bJ.concat(xJ);return new Ky(t,[Ru.data.of({autocomplete:dDe(vJ,mK(n))}),Ru.data.of({autocomplete:B3e}),e.jsx?H3e:[]])}function z3e(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 Cj(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 V3e=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),H3e=Ht.inputHandler.of((e,t,n,r,i)=>{if((V3e?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Ru.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,d=Ar(a).resolveInner(c-1,-1),p;if(d.name=="JSXStartTag"&&(d=d.parent),!(a.doc.sliceString(c-1,c)!=r||d.name=="JSXAttributeValue"&&d.to>c)){if(r==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&d.name=="JSXStartCloseTag"){let h=d.parent,m=h.parent;if(m&&h.from==c-2&&((p=Cj(a.doc,m.firstChild,c))||((u=m.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let b=`${p}>`;return{range:tt.cursor(c+b.length,-1),changes:{from:c,insert:b}}}}else if(r==">"){let h=z3e(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=Cj(a.doc,h,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),j0=["_blank","_self","_top","_parent"],QA=["ascii","utf-8","utf-16","latin1","latin1"],YA=["get","post","put","delete"],GA=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qa=["true","false"],an={},W3e={a:{attrs:{href:null,ping:null,type:null,media:null,target:j0,hreflang:null}},abbr:an,address:an,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:an,aside:an,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:an,base:{attrs:{href:null,target:j0}},bdi:an,bdo:an,blockquote:{attrs:{cite:null}},body:an,br:an,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:GA,formmethod:YA,formnovalidate:["novalidate"],formtarget:j0,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:an,center:an,cite:an,code:an,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:an,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:an,div:an,dl:an,dt:an,em:an,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:an,figure:an,footer:an,form:{attrs:{action:null,name:null,"accept-charset":QA,autocomplete:["on","off"],enctype:GA,method:YA,novalidate:["novalidate"],target:j0}},h1:an,h2:an,h3:an,h4:an,h5:an,h6:an,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:an,hgroup:an,hr:an,html:{attrs:{manifest:null}},i:an,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:GA,formmethod:YA,formnovalidate:["novalidate"],formtarget:j0,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:an,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:an,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:an,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:QA,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:an,noscript:an,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:an,param:{attrs:{name:null,value:null}},pre:an,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:an,rt:an,ruby:an,samp:an,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:QA}},section:an,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:an,source:{attrs:{src:null,type:null,media:null}},span:an,strong:an,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:an,summary:an,sup:an,table:an,tbody:an,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:an,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:an,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:an,time:{attrs:{datetime:null}},title:an,tr:an,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:an,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:an},CJ={accesskey:null,class:null,contenteditable:Qa,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:Qa,autocorrect:Qa,autocapitalize:Qa,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":Qa,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qa,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qa,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qa,"aria-hidden":Qa,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qa,"aria-multiselectable":Qa,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qa,"aria-relevant":null,"aria-required":Qa,"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},AJ="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 AJ)CJ[e]=null;let s1=class{constructor(t,n){this.tags=Object.assign(Object.assign({},W3e),t),this.globalAttrs=Object.assign(Object.assign({},CJ),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};s1.default=new s1;function gg(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 bg(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function _J(e,t,n){let r=n.tags[gg(e,bg(t))];return(r==null?void 0:r.children)||n.allTags}function m3(e,t){let n=[];for(let r=bg(t);r&&!r.type.isTop;r=bg(r.parent)){let i=gg(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 RJ=/^[:\-\.\w\u00b7-\uffff]*$/;function Aj(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=bg(n,!0);return{from:r,to:i,options:_J(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(m3(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function _j(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:m3(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:RJ}}function Q3e(e,t,n,r){let i=[],o=0;for(let a of _J(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of m3(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Y3e(e,t,n,r,i){let o=bg(n),a=o?t.tags[gg(e.doc,o)]:null,s=a&&a.attrs?Object.keys(a.attrs):[],l=a&&a.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:RJ}}function G3e(e,t,n,r,i){var o;let a=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),s=[],l;if(a){let u=e.sliceDoc(a.from,a.to),c=t.globalAttrs[u];if(!c){let d=bg(n),p=d?t.tags[gg(e.doc,d)]:null;c=(p==null?void 0:p.attrs)&&p.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),p='"',h='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",h=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let m of c)s.push({label:m,apply:p+m+h,type:"constant"})}}return{from:r,to:i,options:s,validFor:l}}function IJ(e,t){let{state:n,pos:r}=t,i=Ar(n).resolveInner(r,-1),o=i.resolve(r);for(let a=r,s;o==i&&(s=i.childBefore(a));){let l=s.lastChild;if(!l||!l.type.isError||l.fromIJ(r,i)}const X3e=Ru.parser.configure({top:"SingleExpression"}),DJ=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:SJ.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:TJ.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:wJ.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:X3e},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Ru.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:ew.parser}],NJ=[{name:"style",parser:ew.parser.configure({top:"Styles"})}].concat(AJ.map(e=>({name:e,parser:Ru.parser}))),PJ=cg.define({name:"html",parser:LPe.configure({props:[hO.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:"-._"}}),cS=PJ.configure({wrap:fJ(DJ,NJ)});function K3e(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=fJ((e.nestedLanguages||[]).concat(DJ),(e.nestedAttributes||[]).concat(NJ)));let r=n?PJ.configure({wrap:n,dialect:t}):t?cS.configure({dialect:t}):cS;return new Ky(r,[cS.data.of({autocomplete:Z3e(e)}),e.autoCloseTags!==!1?J3e:[],j3e().support,c3e().support])}const Rj=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),J3e=Ht.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!cS.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u,c,d;let p=a.doc.sliceString(l.from-1,l.to)==r,{head:h}=l,m=Ar(a).resolveInner(h-1,-1),b;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),p&&r==">"&&m.name=="OpenTag"){if(((c=(u=m.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(b=gg(a.doc,m.parent,h))&&!Rj.has(b)){let O=h+(a.doc.sliceString(h,h+1)===">"?1:0),y=``;return{range:l,changes:{from:h,to:O,insert:y}}}}else if(p&&r=="/"&&m.name=="IncompleteCloseTag"){let O=m.parent;if(m.from==h-2&&((d=O.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(b=gg(a.doc,O,h))&&!Rj.has(b)){let y=h+(a.doc.sliceString(h,h+1)===">"?1:0),v=`${b}>`;return{range:tt.cursor(h+v.length,-1),changes:{from:h,to:y,insert:v}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),LJ=QP({commentTokens:{block:{open:""}}}),MJ=new vn,$J=RNe.configure({props:[$g.add(e=>!e.is("Block")||e.is("Document")||_I(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),MJ.add(_I),hO.add({Document:()=>null}),Yf.add({Document:LJ})]});function _I(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function eLe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=_I(r.type))!=null&&i<=t)break;n=r}return n.to}const tLe=fX.of((e,t,n)=>{for(let r=Ar(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function g3(e){return new zs(LJ,e,[tLe],"markdown")}const nLe=g3($J),rLe=$J.configure([jNe,VNe,zNe,HNe,{props:[$g.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),FJ=g3(rLe);function iLe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=LT.matchLanguageName(e,n,!0),r instanceof LT)return r.support?r.support.language.parser:Xy.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class lE{constructor(t,n,r,i,o,a,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=a,this.item=s}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(+UJ(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function BJ(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 o=n[i],a,s=t.lineAt(o.from),l=o.from-s.from;if(o.name=="FencedCode")r.push(new lE(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new lE(o,l,l+a[0].length,"",a[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(a=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=a[3],c=a[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new lE(o.parent,l,l+c,a[1],u,a[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=a[4],c=a[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let d=a[2];a[3]&&(d+=a[3].replace(/[xX]/," ")),r.push(new lE(o.parent,l,l+c,a[1],u,d,o))}}return r}function UJ(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function qA(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=UJ(o,t),l=+s[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+s[1].length,to:o.from+s[0].length,insert:String(i+2+r)})}i=l}let a=o.nextSibling;if(!a)break;o=a}}function b3(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(pO)!=" ")return e;let r=Nl(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const oLe=({state:e,dispatch:t})=>{let n=Ar(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!FJ.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=BJ(n.resolveInner(s,-1),r);for(;u.length&&u[u.length-1].from>s-l.from;)u.pop();if(!u.length)return i={range:a};let c=u[u.length-1];if(c.to-c.spaceAfter.length>s-l.from)return i={range:a};let d=s>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&d){let O=c.node.firstChild,y=c.node.getChild("ListItem","ListItem");if(O.to>=s||y&&y.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let v=u.length>1?u[u.length-2]:null,S,k="";v&&v.item?(S=l.from+v.from,k=v.marker(r,1)):S=l.from+(v?v.to:0);let C=[{from:S,to:s,insert:k}];return c.node.name=="OrderedList"&&qA(c.item,r,C,-2),v&&v.node.name=="OrderedList"&&qA(v.item,r,C),{range:tt.cursor(S+k.length),changes:C}}else{let v=Dj(u,e,l);return{range:tt.cursor(s+v.length+1),changes:{from:l.from,insert:v+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let O=r.lineAt(l.from-1),y=/>\s*$/.exec(O.text);if(y&&y.index==c.from){let v=e.changes([{from:O.from+y.index,to:O.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(v),changes:v}}}let p=[];c.node.name=="OrderedList"&&qA(c.item,r,p);let h=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let O=0,y=u.length-1;O<=y;O++)m+=O==y&&!h?u[O].marker(r,1):u[O].blank(Ol.from&&/\s/.test(l.text.charAt(b-l.from-1));)b--;return m=b3(m,e),aLe(c.node,e.doc)&&(m=Dj(u,e,l)+e.lineBreak+m),p.push({from:b,to:s,insert:e.lineBreak+m}),{range:tt.cursor(b+m.length+1),changes:p}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function Ij(e){return e.name=="QuoteMark"||e.name=="ListMark"}function aLe(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),o=t.lineAt(r.from),a=/^[\s>]*$/.test(i.text);return i.number+(a?0:1){let n=Ar(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&FJ.isActiveAt(e,o.from)){let l=s.lineAt(a),u=BJ(sLe(n,a),s);if(u.length){let c=u[u.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(a-l.from>d&&!/\S/.test(l.text.slice(d,a-l.from)))return{range:tt.cursor(l.from+d),changes:{from:l.from+d,to:a}};if(a-l.from==d&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let p=l.from+c.from;if(c.item&&c.node.from{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const $3e=["FunctionDeclaration"],F3e={FunctionDeclaration:U0("function"),ClassDeclaration:U0("class"),ClassExpression:()=>!0,EnumDeclaration:U0("constant"),TypeAliasDeclaration:U0("type"),NamespaceDeclaration:U0("namespace"),VariableDefinition(e,t){e.matchContext($3e)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function OJ(e,t){let n=kj.get(t);if(n)return n;let r=[],i=!0;function o(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(xr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=F3e[a.name];if(s&&s(a,o)||yJ.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of OJ(e,a.node))r.push(s);return!1}}),kj.set(t,r),r}const xj=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,vJ=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function B3e(e){let t=Ar(e.state).resolveInner(e.pos,-1);if(vJ.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&xj.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)yJ.has(i.name)&&(r=r.concat(OJ(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:xj}}const Ru=cg.define({name:"javascript",parser:L3e.configure({props:[hO.add({IfStatement:sS({except:/^\s*({|else\b)/}),TryStatement:sS({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:q_e,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:G_e({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":sS({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}}),$g.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":pX,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),EJ={test:e=>/^JSX/.test(e.name),facet:QP({commentTokens:{block:{open:"{/*",close:"*/}"}}})},SJ=Ru.configure({dialect:"ts"},"typescript"),TJ=Ru.configure({dialect:"jsx",props:[YP.add(e=>e.isTop?[EJ]:void 0)]}),wJ=Ru.configure({dialect:"jsx ts",props:[YP.add(e=>e.isTop?[EJ]:void 0)]},"typescript");let kJ=e=>({label:e,type:"keyword"});const xJ="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(kJ),U3e=xJ.concat(["declare","implements","private","protected","public"].map(kJ));function j3e(e={}){let t=e.jsx?e.typescript?wJ:TJ:e.typescript?SJ:Ru,n=e.typescript?M3e.concat(U3e):bJ.concat(xJ);return new Ky(t,[Ru.data.of({autocomplete:dNe(vJ,mK(n))}),Ru.data.of({autocomplete:B3e}),e.jsx?H3e:[]])}function z3e(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 Cj(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 V3e=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),H3e=Ht.inputHandler.of((e,t,n,r,i)=>{if((V3e?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Ru.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,d=Ar(a).resolveInner(c-1,-1),p;if(d.name=="JSXStartTag"&&(d=d.parent),!(a.doc.sliceString(c-1,c)!=r||d.name=="JSXAttributeValue"&&d.to>c)){if(r==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&d.name=="JSXStartCloseTag"){let h=d.parent,m=h.parent;if(m&&h.from==c-2&&((p=Cj(a.doc,m.firstChild,c))||((u=m.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let b=`${p}>`;return{range:tt.cursor(c+b.length,-1),changes:{from:c,insert:b}}}}else if(r==">"){let h=z3e(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=Cj(a.doc,h,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),j0=["_blank","_self","_top","_parent"],QA=["ascii","utf-8","utf-16","latin1","latin1"],YA=["get","post","put","delete"],GA=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qa=["true","false"],an={},W3e={a:{attrs:{href:null,ping:null,type:null,media:null,target:j0,hreflang:null}},abbr:an,address:an,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:an,aside:an,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:an,base:{attrs:{href:null,target:j0}},bdi:an,bdo:an,blockquote:{attrs:{cite:null}},body:an,br:an,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:GA,formmethod:YA,formnovalidate:["novalidate"],formtarget:j0,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:an,center:an,cite:an,code:an,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:an,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:an,div:an,dl:an,dt:an,em:an,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:an,figure:an,footer:an,form:{attrs:{action:null,name:null,"accept-charset":QA,autocomplete:["on","off"],enctype:GA,method:YA,novalidate:["novalidate"],target:j0}},h1:an,h2:an,h3:an,h4:an,h5:an,h6:an,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:an,hgroup:an,hr:an,html:{attrs:{manifest:null}},i:an,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:GA,formmethod:YA,formnovalidate:["novalidate"],formtarget:j0,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:an,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:an,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:an,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:QA,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:an,noscript:an,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:an,param:{attrs:{name:null,value:null}},pre:an,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:an,rt:an,ruby:an,samp:an,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:QA}},section:an,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:an,source:{attrs:{src:null,type:null,media:null}},span:an,strong:an,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:an,summary:an,sup:an,table:an,tbody:an,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:an,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:an,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:an,time:{attrs:{datetime:null}},title:an,tr:an,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:an,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:an},CJ={accesskey:null,class:null,contenteditable:Qa,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:Qa,autocorrect:Qa,autocapitalize:Qa,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":Qa,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qa,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qa,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qa,"aria-hidden":Qa,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qa,"aria-multiselectable":Qa,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qa,"aria-relevant":null,"aria-required":Qa,"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},AJ="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 AJ)CJ[e]=null;let s1=class{constructor(t,n){this.tags=Object.assign(Object.assign({},W3e),t),this.globalAttrs=Object.assign(Object.assign({},CJ),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};s1.default=new s1;function gg(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 bg(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function _J(e,t,n){let r=n.tags[gg(e,bg(t))];return(r==null?void 0:r.children)||n.allTags}function m3(e,t){let n=[];for(let r=bg(t);r&&!r.type.isTop;r=bg(r.parent)){let i=gg(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 RJ=/^[:\-\.\w\u00b7-\uffff]*$/;function Aj(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=bg(n,!0);return{from:r,to:i,options:_J(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(m3(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function _j(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:m3(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:RJ}}function Q3e(e,t,n,r){let i=[],o=0;for(let a of _J(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of m3(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Y3e(e,t,n,r,i){let o=bg(n),a=o?t.tags[gg(e.doc,o)]:null,s=a&&a.attrs?Object.keys(a.attrs):[],l=a&&a.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:RJ}}function G3e(e,t,n,r,i){var o;let a=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),s=[],l;if(a){let u=e.sliceDoc(a.from,a.to),c=t.globalAttrs[u];if(!c){let d=bg(n),p=d?t.tags[gg(e.doc,d)]:null;c=(p==null?void 0:p.attrs)&&p.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),p='"',h='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",h=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let m of c)s.push({label:m,apply:p+m+h,type:"constant"})}}return{from:r,to:i,options:s,validFor:l}}function IJ(e,t){let{state:n,pos:r}=t,i=Ar(n).resolveInner(r,-1),o=i.resolve(r);for(let a=r,s;o==i&&(s=i.childBefore(a));){let l=s.lastChild;if(!l||!l.type.isError||l.fromIJ(r,i)}const X3e=Ru.parser.configure({top:"SingleExpression"}),NJ=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:SJ.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:TJ.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:wJ.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:X3e},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Ru.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:ew.parser}],DJ=[{name:"style",parser:ew.parser.configure({top:"Styles"})}].concat(AJ.map(e=>({name:e,parser:Ru.parser}))),PJ=cg.define({name:"html",parser:LPe.configure({props:[hO.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:"-._"}}),cS=PJ.configure({wrap:fJ(NJ,DJ)});function K3e(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=fJ((e.nestedLanguages||[]).concat(NJ),(e.nestedAttributes||[]).concat(DJ)));let r=n?PJ.configure({wrap:n,dialect:t}):t?cS.configure({dialect:t}):cS;return new Ky(r,[cS.data.of({autocomplete:Z3e(e)}),e.autoCloseTags!==!1?J3e:[],j3e().support,c3e().support])}const Rj=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),J3e=Ht.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!cS.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u,c,d;let p=a.doc.sliceString(l.from-1,l.to)==r,{head:h}=l,m=Ar(a).resolveInner(h-1,-1),b;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),p&&r==">"&&m.name=="OpenTag"){if(((c=(u=m.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(b=gg(a.doc,m.parent,h))&&!Rj.has(b)){let O=h+(a.doc.sliceString(h,h+1)===">"?1:0),y=``;return{range:l,changes:{from:h,to:O,insert:y}}}}else if(p&&r=="/"&&m.name=="IncompleteCloseTag"){let O=m.parent;if(m.from==h-2&&((d=O.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(b=gg(a.doc,O,h))&&!Rj.has(b)){let y=h+(a.doc.sliceString(h,h+1)===">"?1:0),v=`${b}>`;return{range:tt.cursor(h+v.length,-1),changes:{from:h,to:y,insert:v}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),LJ=QP({commentTokens:{block:{open:""}}}),MJ=new vn,$J=RDe.configure({props:[$g.add(e=>!e.is("Block")||e.is("Document")||_I(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),MJ.add(_I),hO.add({Document:()=>null}),Yf.add({Document:LJ})]});function _I(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function eLe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=_I(r.type))!=null&&i<=t)break;n=r}return n.to}const tLe=fX.of((e,t,n)=>{for(let r=Ar(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function g3(e){return new zs(LJ,e,[tLe],"markdown")}const nLe=g3($J),rLe=$J.configure([jDe,VDe,zDe,HDe,{props:[$g.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),FJ=g3(rLe);function iLe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=LT.matchLanguageName(e,n,!0),r instanceof LT)return r.support?r.support.language.parser:Xy.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class lE{constructor(t,n,r,i,o,a,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=a,this.item=s}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(+UJ(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function BJ(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 o=n[i],a,s=t.lineAt(o.from),l=o.from-s.from;if(o.name=="FencedCode")r.push(new lE(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new lE(o,l,l+a[0].length,"",a[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(a=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=a[3],c=a[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new lE(o.parent,l,l+c,a[1],u,a[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=a[4],c=a[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let d=a[2];a[3]&&(d+=a[3].replace(/[xX]/," ")),r.push(new lE(o.parent,l,l+c,a[1],u,d,o))}}return r}function UJ(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function qA(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=UJ(o,t),l=+s[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+s[1].length,to:o.from+s[0].length,insert:String(i+2+r)})}i=l}let a=o.nextSibling;if(!a)break;o=a}}function b3(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(pO)!=" ")return e;let r=Dl(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const oLe=({state:e,dispatch:t})=>{let n=Ar(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!FJ.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=BJ(n.resolveInner(s,-1),r);for(;u.length&&u[u.length-1].from>s-l.from;)u.pop();if(!u.length)return i={range:a};let c=u[u.length-1];if(c.to-c.spaceAfter.length>s-l.from)return i={range:a};let d=s>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&d){let O=c.node.firstChild,y=c.node.getChild("ListItem","ListItem");if(O.to>=s||y&&y.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let v=u.length>1?u[u.length-2]:null,S,k="";v&&v.item?(S=l.from+v.from,k=v.marker(r,1)):S=l.from+(v?v.to:0);let C=[{from:S,to:s,insert:k}];return c.node.name=="OrderedList"&&qA(c.item,r,C,-2),v&&v.node.name=="OrderedList"&&qA(v.item,r,C),{range:tt.cursor(S+k.length),changes:C}}else{let v=Nj(u,e,l);return{range:tt.cursor(s+v.length+1),changes:{from:l.from,insert:v+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let O=r.lineAt(l.from-1),y=/>\s*$/.exec(O.text);if(y&&y.index==c.from){let v=e.changes([{from:O.from+y.index,to:O.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(v),changes:v}}}let p=[];c.node.name=="OrderedList"&&qA(c.item,r,p);let h=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let O=0,y=u.length-1;O<=y;O++)m+=O==y&&!h?u[O].marker(r,1):u[O].blank(Ol.from&&/\s/.test(l.text.charAt(b-l.from-1));)b--;return m=b3(m,e),aLe(c.node,e.doc)&&(m=Nj(u,e,l)+e.lineBreak+m),p.push({from:b,to:s,insert:e.lineBreak+m}),{range:tt.cursor(b+m.length+1),changes:p}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function Ij(e){return e.name=="QuoteMark"||e.name=="ListMark"}function aLe(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),o=t.lineAt(r.from),a=/^[\s>]*$/.test(i.text);return i.number+(a?0:1){let n=Ar(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&FJ.isActiveAt(e,o.from)){let l=s.lineAt(a),u=BJ(sLe(n,a),s);if(u.length){let c=u[u.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(a-l.from>d&&!/\S/.test(l.text.slice(d,a-l.from)))return{range:tt.cursor(l.from+d),changes:{from:l.from+d,to:a}};if(a-l.from==d&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let p=l.from+c.from;if(c.item&&c.node.from(()=>{var r={646:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:p}=u(532),h=c.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"}]),m=c.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"}]),b=c.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:W},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Be}}]),O=c.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:re},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:y,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:J},{no:6,name:"is_removed",kind:"scalar",T:8}]),y=c.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:v},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:S,repeated:!0},{no:4,name:"presence_change",kind:"message",T:We}]),v=c.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}]),S=c.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:k,oneof:"body"},{no:2,name:"add",kind:"message",T:C,oneof:"body"},{no:3,name:"move",kind:"message",T:w,oneof:"body"},{no:4,name:"remove",kind:"message",T:E,oneof:"body"},{no:5,name:"edit",kind:"message",T:$,oneof:"body"},{no:6,name:"select",kind:"message",T:P,oneof:"body"},{no:7,name:"style",kind:"message",T:_,oneof:"body"},{no:8,name:"increase",kind:"message",T:B,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:U,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:V,oneof:"body"}]),k=c.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Set"}),C=c.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Add"}),w=c.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Move"}),E=c.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Remove"}),$=c.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:J},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),P=c.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Select"}),_=c.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}}],{localName:"Operation_Style"}),B=c.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"value",kind:"message",T:z},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Increase"}),U=c.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Je},{no:3,name:"to",kind:"message",T:Je},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"contents",kind:"message",T:Ne,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeEdit"}),V=c.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Je},{no:3,name:"to",kind:"message",T:Je},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeStyle"}),z=c.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"moved_at",kind:"message",T:J},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"type",kind:"enum",T:c.getEnumType(h)},{no:5,name:"value",kind:"scalar",T:12}]),W=c.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:X,oneof:"body"},{no:2,name:"json_array",kind:"message",T:q,oneof:"body"},{no:3,name:"primitive",kind:"message",T:Y,oneof:"body"},{no:5,name:"text",kind:"message",T:Z,oneof:"body"},{no:6,name:"counter",kind:"message",T:j,oneof:"body"},{no:7,name:"tree",kind:"message",T:se,oneof:"body"}]),X=c.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:ve,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONObject"}),q=c.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:G,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONArray"}),Y=c.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Primitive"}),Z=c.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:ge,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Text"}),j=c.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Counter"}),se=c.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:xe,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Tree"}),ve=c.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:W}]),G=c.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:G},{no:2,name:"element",kind:"message",T:W}]),ce=c.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:J}]),ge=c.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:ue},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"ins_prev_id",kind:"message",T:ue},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),ue=c.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),xe=c.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Ve},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:J},{no:5,name:"ins_prev_id",kind:"message",T:Ve},{no:6,name:"ins_next_id",kind:"message",T:Ve},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),Ne=c.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:xe,repeated:!0}]),Ve=c.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),Je=c.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Ve},{no:2,name:"left_sibling_id",kind:"message",T:Ve}]),Me=c.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:p}]),Ge=c.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:p},{no:9,name:"updated_at",kind:"message",T:p}]),ye=c.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:d},{no:2,name:"auth_webhook_url",kind:"message",T:d},{no:3,name:"auth_webhook_methods",kind:"message",T:ze},{no:4,name:"client_deactivate_threshold",kind:"message",T:d}]),ze=c.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),$e=c.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:p},{no:5,name:"accessed_at",kind:"message",T:p},{no:6,name:"updated_at",kind:"message",T:p}]),We=c.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(dt)},{no:2,name:"presence",kind:"message",T:Be}]),dt=c.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"}]),Be=c.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),re=c.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ee=c.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),J=c.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}]),Re=c.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Le=c.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Re}]);l.ValueType=h,l.DocEventType=m,l.Snapshot=b,l.ChangePack=O,l.Change=y,l.ChangeID=v,l.Operation=S,l.Operation_Set=k,l.Operation_Add=C,l.Operation_Move=w,l.Operation_Remove=E,l.Operation_Edit=$,l.Operation_Select=P,l.Operation_Style=_,l.Operation_Increase=B,l.Operation_TreeEdit=U,l.Operation_TreeStyle=V,l.JSONElementSimple=z,l.JSONElement=W,l.JSONElement_JSONObject=X,l.JSONElement_JSONArray=q,l.JSONElement_Primitive=Y,l.JSONElement_Text=Z,l.JSONElement_Counter=j,l.JSONElement_Tree=se,l.RHTNode=ve,l.RGANode=G,l.NodeAttr=ce,l.TextNode=ge,l.TextNodeID=ue,l.TreeNode=xe,l.TreeNodes=Ne,l.TreeNodeID=Ve,l.TreePos=Je,l.User=Me,l.Project=Ge,l.UpdatableProjectFields=ye,l.UpdatableProjectFields_AuthWebhookMethods=ze,l.DocumentSummary=$e,l.PresenceChange=We,l.PresenceChange_ChangeType=dt,l.Presence=Be,l.Checkpoint=re,l.TextNodePos=ee,l.TimeTicket=J,l.DocEventBody=Re,l.DocEvent=Le},295:(s,l,u)=>{const{ActivateClientRequest:c,ActivateClientResponse:d,AttachDocumentRequest:p,AttachDocumentResponse:h,BroadcastRequest:m,BroadcastResponse:b,DeactivateClientRequest:O,DeactivateClientResponse:y,DetachDocumentRequest:v,DetachDocumentResponse:S,PushPullChangesRequest:k,PushPullChangesResponse:C,RemoveDocumentRequest:w,RemoveDocumentResponse:E,WatchDocumentRequest:$,WatchDocumentResponse:P}=u(176),{MethodKind:_}=u(532),B={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:c,O:d,kind:_.Unary},deactivateClient:{name:"DeactivateClient",I:O,O:y,kind:_.Unary},attachDocument:{name:"AttachDocument",I:p,O:h,kind:_.Unary},detachDocument:{name:"DetachDocument",I:v,O:S,kind:_.Unary},removeDocument:{name:"RemoveDocument",I:w,O:E,kind:_.Unary},pushPullChanges:{name:"PushPullChanges",I:k,O:C,kind:_.Unary},watchDocument:{name:"WatchDocument",I:$,O:P,kind:_.ServerStreaming},broadcast:{name:"Broadcast",I:m,O:b,kind:_.Unary}}};l.V=B},176:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c}=u(532),{ChangePack:d,DocEvent:p}=u(646),h=c.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),m=c.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),b=c.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:2,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9}]),O=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),y=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:3,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),v=c.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),S=c.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{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:d},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),k=c.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:d}]),C=c.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:3,name:"document_key",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),w=c.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:E,oneof:"body"},{no:2,name:"event",kind:"message",T:p,oneof:"body"}]),E=c.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),$=c.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{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:d}]),P=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),_=c.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{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:d},{no:4,name:"push_only",kind:"scalar",T:8}]),B=c.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),U=c.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:6,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:5,name:"document_key",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}]),V=c.makeMessageType("yorkie.v1.BroadcastResponse",[]);l.ActivateClientRequest=h,l.ActivateClientResponse=m,l.DeactivateClientRequest=b,l.DeactivateClientResponse=O,l.AttachDocumentRequest=y,l.AttachDocumentResponse=v,l.DetachDocumentRequest=S,l.DetachDocumentResponse=k,l.WatchDocumentRequest=C,l.WatchDocumentResponse=w,l.WatchDocumentResponse_Initialization=E,l.RemoveDocumentRequest=$,l.RemoveDocumentResponse=P,l.PushPullChangesRequest=_,l.PushPullChangesResponse=B,l.BroadcastRequest=U,l.BroadcastResponse=V},79:(s,l,u)=>{u.d(l,{Lt:()=>m,TD:()=>h,oP:()=>b});var c=u(818),d=u(120),p=u(210),h;(function(O){O[O.Varint=0]="Varint",O[O.Bit64=1]="Bit64",O[O.LengthDelimited=2]="LengthDelimited",O[O.StartGroup=3]="StartGroup",O[O.EndGroup=4]="EndGroup",O[O.Bit32=5]="Bit32"})(h||(h={}));class m{constructor(y){this.stack=[],this.textEncoder=y??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let y=0;for(let k=0;k>>0)}raw(y){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(y),this}uint32(y){for((0,d.fp)(y);y>127;)this.buf.push(y&127|128),y=y>>>7;return this.buf.push(y),this}int32(y){return(0,d.ug)(y),(0,c.fC)(y,this.buf),this}bool(y){return this.buf.push(y?1:0),this}bytes(y){return this.uint32(y.byteLength),this.raw(y)}string(y){let v=this.textEncoder.encode(y);return this.uint32(v.byteLength),this.raw(v)}float(y){(0,d.E_)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setFloat32(0,y,!0),this.raw(v)}double(y){let v=new Uint8Array(8);return new DataView(v.buffer).setFloat64(0,y,!0),this.raw(v)}fixed32(y){(0,d.fp)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setUint32(0,y,!0),this.raw(v)}sfixed32(y){(0,d.ug)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setInt32(0,y,!0),this.raw(v)}sint32(y){return(0,d.ug)(y),y=(y<<1^y>>31)>>>0,(0,c.fC)(y,this.buf),this}sfixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.enc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}fixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.uEnc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}int64(y){let v=p.q.enc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}sint64(y){let v=p.q.enc(y),S=v.hi>>31,k=v.lo<<1^S,C=(v.hi<<1|v.lo>>>31)^S;return(0,c._y)(k,C,this.buf),this}uint64(y){let v=p.q.uEnc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}}class b{constructor(y,v){this.varint64=c.sg,this.uint32=c.jI,this.buf=y,this.len=y.length,this.pos=0,this.view=new DataView(y.buffer,y.byteOffset,y.byteLength),this.textDecoder=v??new TextDecoder}tag(){let y=this.uint32(),v=y>>>3,S=y&7;if(v<=0||S<0||S>5)throw new Error("illegal tag: field no "+v+" wire type "+S);return[v,S]}skip(y){let v=this.pos;switch(y){case h.Varint:for(;this.buf[this.pos++]&128;);break;case h.Bit64:this.pos+=4;case h.Bit32:this.pos+=4;break;case h.LengthDelimited:let S=this.uint32();this.pos+=S;break;case h.StartGroup:let k;for(;(k=this.tag()[1])!==h.EndGroup;)this.skip(k);break;default:throw new Error("cant skip wire type "+y)}return this.assertBounds(),this.buf.subarray(v,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let y=this.uint32();return y>>>1^-(y&1)}int64(){return p.q.dec(...this.varint64())}uint64(){return p.q.uDec(...this.varint64())}sint64(){let[y,v]=this.varint64(),S=-(y&1);return y=(y>>>1|(v&1)<<31)^S,v=v>>>1^S,p.q.dec(y,v)}bool(){let[y,v]=this.varint64();return y!==0||v!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return p.q.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return p.q.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 y=this.uint32(),v=this.pos;return this.pos+=y,this.assertBounds(),this.buf.subarray(v,v+y)}string(){return this.textDecoder.decode(this.bytes())}}},465:(s,l,u)=>{u.d(l,{p:()=>d,w:()=>c});var c;(function(p){p[p.DOUBLE=1]="DOUBLE",p[p.FLOAT=2]="FLOAT",p[p.INT64=3]="INT64",p[p.UINT64=4]="UINT64",p[p.INT32=5]="INT32",p[p.FIXED64=6]="FIXED64",p[p.FIXED32=7]="FIXED32",p[p.BOOL=8]="BOOL",p[p.STRING=9]="STRING",p[p.BYTES=12]="BYTES",p[p.UINT32=13]="UINT32",p[p.SFIXED32=15]="SFIXED32",p[p.SFIXED64=16]="SFIXED64",p[p.SINT32=17]="SINT32",p[p.SINT64=18]="SINT64"})(c||(c={}));var d;(function(p){p[p.BIGINT=0]="BIGINT",p[p.STRING=1]="STRING"})(d||(d={}))},733:(s,l,u)=>{u.d(l,{I:()=>p});var c=u(561),d=u(850);class p extends c.v{constructor(m){super(),this.typeUrl="",this.value=new Uint8Array(0),d.w.util.initPartial(m,this)}toJson(m){var b;if(this.typeUrl==="")return{};const O=this.typeUrlToName(this.typeUrl),y=(b=m==null?void 0:m.typeRegistry)===null||b===void 0?void 0:b.findMessage(O);if(!y)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let S=y.fromBinary(this.value).toJson(m);return(O.startsWith("google.protobuf.")||S===null||Array.isArray(S)||typeof S!="object")&&(S={value:S}),S["@type"]=this.typeUrl,S}fromJson(m,b){var O;if(m===null||Array.isArray(m)||typeof m!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${m===null?"null":Array.isArray(m)?"array":typeof m}`);if(Object.keys(m).length==0)return this;const y=m["@type"];if(typeof y!="string"||y=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const v=this.typeUrlToName(y),S=(O=b==null?void 0:b.typeRegistry)===null||O===void 0?void 0:O.findMessage(v);if(!S)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${y} is not in the type registry`);let k;if(v.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(m,"value"))k=S.fromJson(m.value,b);else{const C=Object.assign({},m);delete C["@type"],k=S.fromJson(C,b)}return this.packFrom(k),this}packFrom(m){this.value=m.toBinary(),this.typeUrl=this.typeNameToUrl(m.getType().typeName)}unpackTo(m){return this.is(m.getType())?(m.fromBinary(this.value),!0):!1}unpack(m){if(this.typeUrl==="")return;const b=m.findMessage(this.typeUrlToName(this.typeUrl));if(b)return b.fromBinary(this.value)}is(m){if(this.typeUrl==="")return!1;const b=this.typeUrlToName(this.typeUrl);let O="";return typeof m=="string"?O=m:O=m.typeName,b===O}typeNameToUrl(m){return`type.googleapis.com/${m}`}typeUrlToName(m){if(!m.length)throw new Error(`invalid type url: ${m}`);const b=m.lastIndexOf("/"),O=b>=0?m.substring(b+1):m;if(!O.length)throw new Error(`invalid type url: ${m}`);return O}static pack(m){const b=new p;return b.packFrom(m),b}static fromBinary(m,b){return new p().fromBinary(m,b)}static fromJson(m,b){return new p().fromJson(m,b)}static fromJsonString(m,b){return new p().fromJsonString(m,b)}static equals(m,b){return d.w.util.equals(p,m,b)}}p.runtime=d.w,p.typeName="google.protobuf.Any",p.fields=d.w.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}])},818:(s,l,u)=>{u.d(l,{Ak:()=>m,CZ:()=>h,Fd:()=>b,_y:()=>d,fC:()=>k,jI:()=>C,sg:()=>c});function c(){let w=0,E=0;for(let P=0;P<28;P+=7){let _=this.buf[this.pos++];if(w|=(_&127)<>4,!($&128))return this.assertBounds(),[w,E];for(let P=3;P<=31;P+=7){let _=this.buf[this.pos++];if(E|=(_&127)<>>B,V=!(!(U>>>7)&&E==0),z=(V?U|128:U)&255;if($.push(z),!V)return}const P=w>>>28&15|(E&7)<<4,_=!!(E>>3);if($.push((_?P|128:P)&255),!!_){for(let B=3;B<31;B=B+7){const U=E>>>B,V=!!(U>>>7),z=(V?U|128:U)&255;if($.push(z),!V)return}$.push(E>>>31&1)}}const p=4294967296;function h(w){const E=w[0]==="-";E&&(w=w.slice(1));const $=1e6;let P=0,_=0;function B(U,V){const z=Number(w.slice(U,V));_*=$,P=P*$+z,P>=p&&(_=_+(P/p|0),P=P%p)}return B(-24,-18),B(-18,-12),B(-12,-6),B(-6),E?v(P,_):y(P,_)}function m(w,E){let $=y(w,E);const P=$.hi&2147483648;P&&($=v($.lo,$.hi));const _=b($.lo,$.hi);return P?"-"+_:_}function b(w,E){if({lo:w,hi:E}=O(w,E),E<=2097151)return String(p*E+w);const $=w&16777215,P=(w>>>24|E<<8)&16777215,_=E>>16&65535;let B=$+P*6777216+_*6710656,U=P+_*8147497,V=_*2;const z=1e7;return B>=z&&(U+=Math.floor(B/z),B%=z),U>=z&&(V+=Math.floor(U/z),U%=z),V.toString()+S(U)+S(B)}function O(w,E){return{lo:w>>>0,hi:E>>>0}}function y(w,E){return{lo:w|0,hi:E|0}}function v(w,E){return E=~E,w?w=~w+1:E+=1,y(w,E)}const S=w=>{const E=String(w);return"0000000".slice(E.length)+E};function k(w,E){if(w>=0){for(;w>127;)E.push(w&127|128),w=w>>>7;E.push(w)}else{for(let $=0;$<9;$++)E.push(w&127|128),w=w>>7;E.push(1)}}function C(){let w=this.buf[this.pos++],E=w&127;if(!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<7,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<14,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<21,!(w&128))return this.assertBounds(),E;w=this.buf[this.pos++],E|=(w&15)<<28;for(let $=5;w&128&&$<10;$++)w=this.buf[this.pos++];if(w&128)throw new Error("invalid varint");return this.assertBounds(),E>>>0}},532:(s,l,u)=>{u.r(l),u.d(l,{Any:()=>Jp.I,Api:()=>Ba,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Yo,BytesValue:()=>Jt,CodeGeneratorRequest:()=>Zo,CodeGeneratorResponse:()=>fi,CodeGeneratorResponse_Feature:()=>Zl,CodeGeneratorResponse_File:()=>Co,DescriptorProto:()=>ue,DescriptorProto_ExtensionRange:()=>xe,DescriptorProto_ReservedRange:()=>Ne,DoubleValue:()=>Qo,Duration:()=>Er,Edition:()=>G,Empty:()=>Ts,Enum:()=>Gn,EnumDescriptorProto:()=>We,EnumDescriptorProto_EnumReservedRange:()=>dt,EnumOptions:()=>pt,EnumValue:()=>Fa,EnumValueDescriptorProto:()=>Be,EnumValueOptions:()=>xt,ExtensionRangeOptions:()=>Ve,ExtensionRangeOptions_Declaration:()=>Me,ExtensionRangeOptions_VerificationState:()=>Je,FeatureSet:()=>Nt,FeatureSetDefaults:()=>pe,FeatureSetDefaults_FeatureSetEditionDefault:()=>lt,FeatureSet_EnumType:()=>dn,FeatureSet_FieldPresence:()=>on,FeatureSet_JsonFormat:()=>_e,FeatureSet_MessageEncoding:()=>Se,FeatureSet_RepeatedFieldEncoding:()=>pn,FeatureSet_Utf8Validation:()=>zn,Field:()=>Xo,FieldDescriptorProto:()=>Ge,FieldDescriptorProto_Label:()=>ze,FieldDescriptorProto_Type:()=>ye,FieldMask:()=>ws,FieldOptions:()=>De,FieldOptions_CType:()=>ie,FieldOptions_EditionDefault:()=>Te,FieldOptions_JSType:()=>fe,FieldOptions_OptionRetention:()=>de,FieldOptions_OptionTargetType:()=>Oe,Field_Cardinality:()=>Bc,Field_Kind:()=>Fc,FileDescriptorProto:()=>ge,FileDescriptorSet:()=>ce,FileOptions:()=>J,FileOptions_OptimizeMode:()=>Re,FloatValue:()=>xo,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>Ct,Int32Value:()=>_r,Int64Value:()=>Vi,ListValue:()=>so,LongType:()=>p.p,Message:()=>se.v,MessageOptions:()=>Le,Method:()=>ha,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>ve.w,MethodKind:()=>ve.t,MethodOptions:()=>vt,MethodOptions_IdempotencyLevel:()=>qe,Mixin:()=>Ua,NullValue:()=>ao,OneofDescriptorProto:()=>$e,OneofOptions:()=>rt,Option:()=>Ci,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>et,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>fa,StringValue:()=>Hi,Struct:()=>ko,Syntax:()=>pa,Timestamp:()=>da,Type:()=>xi,UInt32Value:()=>jr,UInt64Value:()=>br,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>Et,Value:()=>Ur,Version:()=>qo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>YO,createRegistryFromDescriptors:()=>gf,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>P,protoInt64:()=>_.q,toPlainMessage:()=>th});var c=u(850),d=u(493),p=u(465),h=u(744);function m(){return Object.assign(Object.assign({},(0,h.gY)()),{writeMessage(F,x,M){const le=F.getType();let be;try{for(be of le.fields.byNumber()){let Pe,je=be.repeated,ct=be.localName;if(be.oneof){const Ze=F[be.oneof.localName];if(Ze.case!==ct)continue;Pe=Ze.value}else if(Pe=F[ct],Pe===void 0&&!be.oneof&&!be.opt)throw new Error(`cannot encode field ${le.typeName}.${be.name} to binary: required field not set`);switch(be.kind){case"scalar":case"enum":let Ze=be.kind=="enum"?p.w.INT32:be.T;if(je)if(be.packed)(0,h.Jj)(x,Ze,be.no,Pe);else for(const Ot of Pe)(0,h.NN)(x,Ze,be.no,Ot,!0);else Pe!==void 0&&(0,h.NN)(x,Ze,be.no,Pe,!0);break;case"message":if(je)for(const Ot of Pe)(0,h.oQ)(x,M,be,Ot);else(0,h.oQ)(x,M,be,Pe);break;case"map":for(const[Ot,Pt]of Object.entries(Pe))(0,h.gQ)(x,M,be,Ot,Pt);break}}}catch(Pe){let je=be?`cannot encode field ${le.typeName}.${be==null?void 0:be.name} to binary`:`cannot encode message ${le.typeName} to binary`,ct=Pe instanceof Error?Pe.message:String(Pe);throw new Error(je+(ct.length>0?`: ${ct}`:""))}return M.writeUnknownFields&&this.writeUnknownFields(F,x),x}})}var b=u(433),O=u(501),y=u(215),v=u(504),S=u(432),k=u(120),C=u(814);function w(){return(0,C.b)((F,x)=>function(le,be,Pe){if(le.kind=="map"){const je={};switch(le.V.kind){case"scalar":for(const[Ze,Ot]of Object.entries(be)){const Pt=x(le.V.T,Ot,!0);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break;case"message":for(const[Ze,Ot]of Object.entries(be))je[Ze.toString()]=Ot.toJson(Pe);break;case"enum":const ct=le.V.T;for(const[Ze,Ot]of Object.entries(be)){(0,k.hu)(Ot===void 0||typeof Ot=="number");const Pt=F(ct,Ot,!0,Pe.enumAsInteger);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break}return Pe.emitDefaultValues||Object.keys(je).length>0?je:void 0}else if(le.repeated){const je=[];switch(le.kind){case"scalar":for(let ct=0;ct0?je:void 0}else{if(be===void 0){if(!le.oneof&&!le.opt)throw"required field not set";return}switch(le.kind){case"scalar":return x(le.T,be,!0);case"enum":return F(le.T,be,!0,Pe.enumAsInteger);case"message":return(0,S.E)(le.T,be).toJson(Pe)}}})}const E=(0,d.F)("proto2",w(),m(),Object.assign(Object.assign({},(0,b.f)()),{newFieldList(F){return new O.i(F,$)},initFields(F){for(const x of F.getType().fields.byMember()){const M=x.localName,le=F;if(x.repeated){le[M]=[];continue}switch(x.kind){case"oneof":le[M]={case:void 0};break;case"map":le[M]={};break}}}}));function $(F){var x,M,le,be,Pe;const je=[];let ct;for(const Ze of typeof F=="function"?F():F){const Ot=Ze;if(Ot.localName=(0,v.Rz)(Ze.name,Ze.oneof!==void 0),Ot.jsonName=(x=Ze.jsonName)!==null&&x!==void 0?x:(0,v.x1)(Ze.name),Ot.repeated=(M=Ze.repeated)!==null&&M!==void 0?M:!1,Ze.kind=="scalar"&&(Ot.L=(le=Ze.L)!==null&&le!==void 0?le:p.p.BIGINT),Ze.oneof!==void 0){const Pt=typeof Ze.oneof=="string"?Ze.oneof:Ze.oneof.name;(!ct||ct.name!=Pt)&&(ct=new y.o(Pt)),Ot.oneof=ct,ct.addField(Ot)}Ze.kind=="message"&&(Ot.delimited=(be=Ze.delimited)!==null&&be!==void 0?be:!1),Ot.packed=(Pe=Ze.packed)!==null&&Pe!==void 0?Pe:!1,je.push(Ot)}return je}const P={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var _=u(210),B=u(236),U=u(79),V=function(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=F[Symbol.asyncIterator],M;return x?x.call(F):(F=typeof __values=="function"?__values(F):F[Symbol.iterator](),M={},le("next"),le("throw"),le("return"),M[Symbol.asyncIterator]=function(){return this},M);function le(Pe){M[Pe]=F[Pe]&&function(je){return new Promise(function(ct,Ze){je=F[Pe](je),be(ct,Ze,je.done,je.value)})}}function be(Pe,je,ct,Ze){Promise.resolve(Ze).then(function(Ot){Pe({value:Ot,done:ct})},je)}},z=function(F){return this instanceof z?(this.v=F,this):new z(F)},W=function(F,x,M){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=M.apply(F,x||[]),be,Pe=[];return be={},ct("next"),ct("throw"),ct("return",je),be[Symbol.asyncIterator]=function(){return this},be;function je(Sn){return function(Wi){return Promise.resolve(Wi).then(Sn,On)}}function ct(Sn,Wi){le[Sn]&&(be[Sn]=function(ja){return new Promise(function(aC,yf){Pe.push([Sn,ja,aC,yf])>1||Ze(Sn,ja)})},Wi&&(be[Sn]=Wi(be[Sn])))}function Ze(Sn,Wi){try{Ot(le[Sn](Wi))}catch(ja){Sr(Pe[0][3],ja)}}function Ot(Sn){Sn.value instanceof z?Promise.resolve(Sn.value.v).then(Pt,On):Sr(Pe[0][2],Sn)}function Pt(Sn){Ze("next",Sn)}function On(Sn){Ze("throw",Sn)}function Sr(Sn,Wi){Sn(Wi),Pe.shift(),Pe.length&&Ze(Pe[0][0],Pe[0][1])}};const X={enc(F,x){const M=(0,h.gY)().makeWriteOptions(x);return M.writerFactory().bytes(F.toBinary(M)).finish()},dec(F,x,M){const le=(0,h.gY)().makeReadOptions(M);return F.fromBinary(le.readerFactory(x).bytes(),le)},decStream(F,x){return W(this,arguments,function*(){var le,be,Pe,je;function ct(Sr,Sn){const Wi=new Uint8Array(Sr.byteLength+Sn.byteLength);return Wi.set(Sr),Wi.set(Sn,Sr.length),Wi}let Ze=new Uint8Array(0);try{for(var Ot=!0,Pt=V(x),On;On=yield z(Pt.next()),le=On.done,!le;Ot=!0)for(je=On.value,Ot=!1,Ze=ct(Ze,je);;){const Sn=X.peekSize(Ze);if(Sn.eof||Sn.offset+Sn.size>Ze.byteLength)break;yield yield z(X.dec(F,Ze)),Ze=Ze.subarray(Sn.offset+Sn.size)}}catch(Sr){be={error:Sr}}finally{try{!Ot&&!le&&(Pe=Pt.return)&&(yield z(Pe.call(Pt)))}finally{if(be)throw be.error}}if(Ze.byteLength>0)throw new Error("incomplete data")})},peekSize(F){const x={eof:!0,size:null,offset:null};for(let M=0;M<10;M++){if(M>F.byteLength)return x;if(!(F[M]&128)){const le=new U.oP(F);let be;try{be=le.uint32()}catch(Pe){if(Pe instanceof RangeError)return x;throw Pe}return{eof:!1,size:be,offset:le.pos}}}throw new Error("invalid varint")}};var q=u(781);function Y(F){switch(F.typeName){case"google.protobuf.Any":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.STRING),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.BYTES);if(x&&M)return{typeName:F.typeName,typeUrl:x,value:M};break}case"google.protobuf.Timestamp":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&M)return{typeName:F.typeName,seconds:x,nanos:M};break}case"google.protobuf.Duration":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&M)return{typeName:F.typeName,seconds:x,nanos:M};break}case"google.protobuf.Struct":{const x=F.fields.find(M=>M.number==1&&!M.repeated);if((x==null?void 0:x.fieldKind)!=="map"||x.mapValue.kind!=="message"||x.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,fields:x}}case"google.protobuf.Value":{const x=F.oneofs.find(Ze=>Ze.name==="kind"),M=F.fields.find(Ze=>Ze.number==1&&Ze.oneof===x);if((M==null?void 0:M.fieldKind)!=="enum"||M.enum.typeName!=="google.protobuf.NullValue")return;const le=F.fields.find(Ze=>Ze.number==2&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.DOUBLE&&Ze.oneof===x),be=F.fields.find(Ze=>Ze.number==3&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.STRING&&Ze.oneof===x),Pe=F.fields.find(Ze=>Ze.number==4&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.BOOL&&Ze.oneof===x),je=F.fields.find(Ze=>Ze.number==5&&Ze.oneof===x);if((je==null?void 0:je.fieldKind)!=="message"||je.message.typeName!=="google.protobuf.Struct")return;const ct=F.fields.find(Ze=>Ze.number==6&&Ze.oneof===x);if((ct==null?void 0:ct.fieldKind)!=="message"||ct.message.typeName!=="google.protobuf.ListValue")return;if(x&&le&&be&&Pe)return{typeName:F.typeName,kind:x,nullValue:M,numberValue:le,stringValue:be,boolValue:Pe,structValue:je,listValue:ct};break}case"google.protobuf.ListValue":{const x=F.fields.find(M=>M.number==1&&M.repeated);if((x==null?void 0:x.fieldKind)!="message"||x.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,values:x}}case"google.protobuf.FieldMask":{const x=F.fields.find(M=>M.number==1&&M.fieldKind=="scalar"&&M.scalar===p.w.STRING&&M.repeated);if(x)return{typeName:F.typeName,paths:x};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 x=F.fields.find(M=>M.number==1&&M.name=="value");if(!x||x.fieldKind!=="scalar")break;return{typeName:F.typeName,value:x}}}}const Z="@bufbuild/protobuf",j={packageName:"@bufbuild/protobuf",localName:v.r1,reifyWkt:Y,getUnwrappedFieldType:S.w,scalarDefaultValue:q.kY,safeIdentifier:v.GD,safeObjectProperty:v.ll,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:Z},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:Z},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:Z},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:Z},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:Z},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:Z},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:Z},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:Z}},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 se=u(561),ve=u(328),G;(function(F){F[F.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",F[F.EDITION_PROTO2=998]="EDITION_PROTO2",F[F.EDITION_PROTO3=999]="EDITION_PROTO3",F[F.EDITION_2023=1e3]="EDITION_2023",F[F.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",F[F.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",F[F.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",F[F.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",F[F.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(G||(G={})),E.util.setEnumType(G,"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 ce extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ce().fromBinary(x,M)}static fromJson(x,M){return new ce().fromJson(x,M)}static fromJsonString(x,M){return new ce().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ce,x,M)}}ce.runtime=E,ce.typeName="google.protobuf.FileDescriptorSet",ce.fields=E.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:ge,repeated:!0}]);class ge extends se.v{constructor(x){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ge().fromBinary(x,M)}static fromJson(x,M){return new ge().fromJson(x,M)}static fromJsonString(x,M){return new ge().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ge,x,M)}}ge.runtime=E,ge.typeName="google.protobuf.FileDescriptorProto",ge.fields=E.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:ue,repeated:!0},{no:5,name:"enum_type",kind:"message",T:We,repeated:!0},{no:6,name:"service",kind:"message",T:re,repeated:!0},{no:7,name:"extension",kind:"message",T:Ge,repeated:!0},{no:8,name:"options",kind:"message",T:J,opt:!0},{no:9,name:"source_code_info",kind:"message",T:at,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class ue extends se.v{constructor(x){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ue().fromBinary(x,M)}static fromJson(x,M){return new ue().fromJson(x,M)}static fromJsonString(x,M){return new ue().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ue,x,M)}}ue.runtime=E,ue.typeName="google.protobuf.DescriptorProto",ue.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Ge,repeated:!0},{no:6,name:"extension",kind:"message",T:Ge,repeated:!0},{no:3,name:"nested_type",kind:"message",T:ue,repeated:!0},{no:4,name:"enum_type",kind:"message",T:We,repeated:!0},{no:5,name:"extension_range",kind:"message",T:xe,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:$e,repeated:!0},{no:7,name:"options",kind:"message",T:Le,opt:!0},{no:9,name:"reserved_range",kind:"message",T:Ne,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class xe extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new xe().fromBinary(x,M)}static fromJson(x,M){return new xe().fromJson(x,M)}static fromJsonString(x,M){return new xe().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xe,x,M)}}xe.runtime=E,xe.typeName="google.protobuf.DescriptorProto.ExtensionRange",xe.fields=E.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:Ve,opt:!0}]);class Ne extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Ne().fromBinary(x,M)}static fromJson(x,M){return new Ne().fromJson(x,M)}static fromJsonString(x,M){return new Ne().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ne,x,M)}}Ne.runtime=E,Ne.typeName="google.protobuf.DescriptorProto.ReservedRange",Ne.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ve extends se.v{constructor(x){super(),this.uninterpretedOption=[],this.declaration=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Ve().fromBinary(x,M)}static fromJson(x,M){return new Ve().fromJson(x,M)}static fromJsonString(x,M){return new Ve().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ve,x,M)}}Ve.runtime=E,Ve.typeName="google.protobuf.ExtensionRangeOptions",Ve.fields=E.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0},{no:2,name:"declaration",kind:"message",T:Me,repeated:!0},{no:50,name:"features",kind:"message",T:Nt,opt:!0},{no:3,name:"verification",kind:"enum",T:E.getEnumType(Je),opt:!0,default:Je.UNVERIFIED}]);var Je;(function(F){F[F.DECLARATION=0]="DECLARATION",F[F.UNVERIFIED=1]="UNVERIFIED"})(Je||(Je={})),E.util.setEnumType(Je,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Me extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Me().fromBinary(x,M)}static fromJson(x,M){return new Me().fromJson(x,M)}static fromJsonString(x,M){return new Me().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Me,x,M)}}Me.runtime=E,Me.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Me.fields=E.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 Ge extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Ge().fromBinary(x,M)}static fromJson(x,M){return new Ge().fromJson(x,M)}static fromJsonString(x,M){return new Ge().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ge,x,M)}}Ge.runtime=E,Ge.typeName="google.protobuf.FieldDescriptorProto",Ge.fields=E.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:E.getEnumType(ze),opt:!0},{no:5,name:"type",kind:"enum",T:E.getEnumType(ye),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:De,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var ye;(function(F){F[F.DOUBLE=1]="DOUBLE",F[F.FLOAT=2]="FLOAT",F[F.INT64=3]="INT64",F[F.UINT64=4]="UINT64",F[F.INT32=5]="INT32",F[F.FIXED64=6]="FIXED64",F[F.FIXED32=7]="FIXED32",F[F.BOOL=8]="BOOL",F[F.STRING=9]="STRING",F[F.GROUP=10]="GROUP",F[F.MESSAGE=11]="MESSAGE",F[F.BYTES=12]="BYTES",F[F.UINT32=13]="UINT32",F[F.ENUM=14]="ENUM",F[F.SFIXED32=15]="SFIXED32",F[F.SFIXED64=16]="SFIXED64",F[F.SINT32=17]="SINT32",F[F.SINT64=18]="SINT64"})(ye||(ye={})),E.util.setEnumType(ye,"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 ze;(function(F){F[F.OPTIONAL=1]="OPTIONAL",F[F.REPEATED=3]="REPEATED",F[F.REQUIRED=2]="REQUIRED"})(ze||(ze={})),E.util.setEnumType(ze,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class $e extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new $e().fromBinary(x,M)}static fromJson(x,M){return new $e().fromJson(x,M)}static fromJsonString(x,M){return new $e().fromJsonString(x,M)}static equals(x,M){return E.util.equals($e,x,M)}}$e.runtime=E,$e.typeName="google.protobuf.OneofDescriptorProto",$e.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:rt,opt:!0}]);class We extends se.v{constructor(x){super(),this.value=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new We().fromBinary(x,M)}static fromJson(x,M){return new We().fromJson(x,M)}static fromJsonString(x,M){return new We().fromJsonString(x,M)}static equals(x,M){return E.util.equals(We,x,M)}}We.runtime=E,We.typeName="google.protobuf.EnumDescriptorProto",We.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Be,repeated:!0},{no:3,name:"options",kind:"message",T:pt,opt:!0},{no:4,name:"reserved_range",kind:"message",T:dt,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class dt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new dt().fromBinary(x,M)}static fromJson(x,M){return new dt().fromJson(x,M)}static fromJsonString(x,M){return new dt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(dt,x,M)}}dt.runtime=E,dt.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",dt.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Be extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Be().fromBinary(x,M)}static fromJson(x,M){return new Be().fromJson(x,M)}static fromJsonString(x,M){return new Be().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Be,x,M)}}Be.runtime=E,Be.typeName="google.protobuf.EnumValueDescriptorProto",Be.fields=E.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:xt,opt:!0}]);class re extends se.v{constructor(x){super(),this.method=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new re().fromBinary(x,M)}static fromJson(x,M){return new re().fromJson(x,M)}static fromJsonString(x,M){return new re().fromJsonString(x,M)}static equals(x,M){return E.util.equals(re,x,M)}}re.runtime=E,re.typeName="google.protobuf.ServiceDescriptorProto",re.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:ee,repeated:!0},{no:3,name:"options",kind:"message",T:et,opt:!0}]);class ee extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new ee().fromBinary(x,M)}static fromJson(x,M){return new ee().fromJson(x,M)}static fromJsonString(x,M){return new ee().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ee,x,M)}}ee.runtime=E,ee.typeName="google.protobuf.MethodDescriptorProto",ee.fields=E.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:vt,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 J extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new J().fromBinary(x,M)}static fromJson(x,M){return new J().fromJson(x,M)}static fromJsonString(x,M){return new J().fromJsonString(x,M)}static equals(x,M){return E.util.equals(J,x,M)}}J.runtime=E,J.typeName="google.protobuf.FileOptions",J.fields=E.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:E.getEnumType(Re),opt:!0,default:Re.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:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var Re;(function(F){F[F.SPEED=1]="SPEED",F[F.CODE_SIZE=2]="CODE_SIZE",F[F.LITE_RUNTIME=3]="LITE_RUNTIME"})(Re||(Re={})),E.util.setEnumType(Re,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Le extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Le().fromBinary(x,M)}static fromJson(x,M){return new Le().fromJson(x,M)}static fromJsonString(x,M){return new Le().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Le,x,M)}}Le.runtime=E,Le.typeName="google.protobuf.MessageOptions",Le.fields=E.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:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class De extends se.v{constructor(x){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new De().fromBinary(x,M)}static fromJson(x,M){return new De().fromJson(x,M)}static fromJsonString(x,M){return new De().fromJsonString(x,M)}static equals(x,M){return E.util.equals(De,x,M)}}De.runtime=E,De.typeName="google.protobuf.FieldOptions",De.fields=E.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:E.getEnumType(ie),opt:!0,default:ie.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:E.getEnumType(fe),opt:!0,default:fe.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:E.getEnumType(de),opt:!0},{no:19,name:"targets",kind:"enum",T:E.getEnumType(Oe),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Te,repeated:!0},{no:21,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var ie;(function(F){F[F.STRING=0]="STRING",F[F.CORD=1]="CORD",F[F.STRING_PIECE=2]="STRING_PIECE"})(ie||(ie={})),E.util.setEnumType(ie,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var fe;(function(F){F[F.JS_NORMAL=0]="JS_NORMAL",F[F.JS_STRING=1]="JS_STRING",F[F.JS_NUMBER=2]="JS_NUMBER"})(fe||(fe={})),E.util.setEnumType(fe,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var de;(function(F){F[F.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",F[F.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",F[F.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(de||(de={})),E.util.setEnumType(de,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var Oe;(function(F){F[F.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",F[F.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",F[F.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",F[F.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",F[F.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",F[F.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",F[F.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",F[F.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",F[F.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",F[F.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(Oe||(Oe={})),E.util.setEnumType(Oe,"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 Te extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Te().fromBinary(x,M)}static fromJson(x,M){return new Te().fromJson(x,M)}static fromJsonString(x,M){return new Te().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Te,x,M)}}Te.runtime=E,Te.typeName="google.protobuf.FieldOptions.EditionDefault",Te.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class rt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new rt().fromBinary(x,M)}static fromJson(x,M){return new rt().fromJson(x,M)}static fromJsonString(x,M){return new rt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(rt,x,M)}}rt.runtime=E,rt.typeName="google.protobuf.OneofOptions",rt.fields=E.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class pt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new pt().fromBinary(x,M)}static fromJson(x,M){return new pt().fromJson(x,M)}static fromJsonString(x,M){return new pt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(pt,x,M)}}pt.runtime=E,pt.typeName="google.protobuf.EnumOptions",pt.fields=E.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:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class xt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new xt().fromBinary(x,M)}static fromJson(x,M){return new xt().fromJson(x,M)}static fromJsonString(x,M){return new xt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xt,x,M)}}xt.runtime=E,xt.typeName="google.protobuf.EnumValueOptions",xt.fields=E.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Nt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class et extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new et().fromBinary(x,M)}static fromJson(x,M){return new et().fromJson(x,M)}static fromJsonString(x,M){return new et().fromJsonString(x,M)}static equals(x,M){return E.util.equals(et,x,M)}}et.runtime=E,et.typeName="google.protobuf.ServiceOptions",et.fields=E.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Nt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class vt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new vt().fromBinary(x,M)}static fromJson(x,M){return new vt().fromJson(x,M)}static fromJsonString(x,M){return new vt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(vt,x,M)}}vt.runtime=E,vt.typeName="google.protobuf.MethodOptions",vt.fields=E.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:E.getEnumType(qe),opt:!0,default:qe.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var qe;(function(F){F[F.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",F[F.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",F[F.IDEMPOTENT=2]="IDEMPOTENT"})(qe||(qe={})),E.util.setEnumType(qe,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class it extends se.v{constructor(x){super(),this.name=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new it().fromBinary(x,M)}static fromJson(x,M){return new it().fromJson(x,M)}static fromJsonString(x,M){return new it().fromJsonString(x,M)}static equals(x,M){return E.util.equals(it,x,M)}}it.runtime=E,it.typeName="google.protobuf.UninterpretedOption",it.fields=E.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Et,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 Et extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Et().fromBinary(x,M)}static fromJson(x,M){return new Et().fromJson(x,M)}static fromJsonString(x,M){return new Et().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Et,x,M)}}Et.runtime=E,Et.typeName="google.protobuf.UninterpretedOption.NamePart",Et.fields=E.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Nt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Nt().fromBinary(x,M)}static fromJson(x,M){return new Nt().fromJson(x,M)}static fromJsonString(x,M){return new Nt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Nt,x,M)}}Nt.runtime=E,Nt.typeName="google.protobuf.FeatureSet",Nt.fields=E.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:E.getEnumType(on),opt:!0},{no:2,name:"enum_type",kind:"enum",T:E.getEnumType(dn),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:E.getEnumType(pn),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:E.getEnumType(zn),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:E.getEnumType(Se),opt:!0},{no:6,name:"json_format",kind:"enum",T:E.getEnumType(_e),opt:!0}]);var on;(function(F){F[F.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",F[F.EXPLICIT=1]="EXPLICIT",F[F.IMPLICIT=2]="IMPLICIT",F[F.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(on||(on={})),E.util.setEnumType(on,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]);var dn;(function(F){F[F.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",F[F.OPEN=1]="OPEN",F[F.CLOSED=2]="CLOSED"})(dn||(dn={})),E.util.setEnumType(dn,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var pn;(function(F){F[F.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",F[F.PACKED=1]="PACKED",F[F.EXPANDED=2]="EXPANDED"})(pn||(pn={})),E.util.setEnumType(pn,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var zn;(function(F){F[F.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",F[F.NONE=1]="NONE",F[F.VERIFY=2]="VERIFY"})(zn||(zn={})),E.util.setEnumType(zn,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var Se;(function(F){F[F.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",F[F.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",F[F.DELIMITED=2]="DELIMITED"})(Se||(Se={})),E.util.setEnumType(Se,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var _e;(function(F){F[F.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",F[F.ALLOW=1]="ALLOW",F[F.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(_e||(_e={})),E.util.setEnumType(_e,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class pe extends se.v{constructor(x){super(),this.defaults=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new pe().fromBinary(x,M)}static fromJson(x,M){return new pe().fromJson(x,M)}static fromJsonString(x,M){return new pe().fromJsonString(x,M)}static equals(x,M){return E.util.equals(pe,x,M)}}pe.runtime=E,pe.typeName="google.protobuf.FeatureSetDefaults",pe.fields=E.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:lt,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class lt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new lt().fromBinary(x,M)}static fromJson(x,M){return new lt().fromJson(x,M)}static fromJsonString(x,M){return new lt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(lt,x,M)}}lt.runtime=E,lt.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",lt.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"features",kind:"message",T:Nt,opt:!0}]);class at extends se.v{constructor(x){super(),this.location=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new at().fromBinary(x,M)}static fromJson(x,M){return new at().fromJson(x,M)}static fromJsonString(x,M){return new at().fromJsonString(x,M)}static equals(x,M){return E.util.equals(at,x,M)}}at.runtime=E,at.typeName="google.protobuf.SourceCodeInfo",at.fields=E.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Mt,repeated:!0}]);class Mt extends se.v{constructor(x){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Mt().fromBinary(x,M)}static fromJson(x,M){return new Mt().fromJson(x,M)}static fromJsonString(x,M){return new Mt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Mt,x,M)}}Mt.runtime=E,Mt.typeName="google.protobuf.SourceCodeInfo.Location",Mt.fields=E.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 $t extends se.v{constructor(x){super(),this.annotation=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new $t().fromBinary(x,M)}static fromJson(x,M){return new $t().fromJson(x,M)}static fromJsonString(x,M){return new $t().fromJsonString(x,M)}static equals(x,M){return E.util.equals($t,x,M)}}$t.runtime=E,$t.typeName="google.protobuf.GeneratedCodeInfo",$t.fields=E.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:It,repeated:!0}]);class It extends se.v{constructor(x){super(),this.path=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new It().fromBinary(x,M)}static fromJson(x,M){return new It().fromJson(x,M)}static fromJsonString(x,M){return new It().fromJsonString(x,M)}static equals(x,M){return E.util.equals(It,x,M)}}It.runtime=E,It.typeName="google.protobuf.GeneratedCodeInfo.Annotation",It.fields=E.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:E.getEnumType(Ct),opt:!0}]);var Ct;(function(F){F[F.NONE=0]="NONE",F[F.SET=1]="SET",F[F.ALIAS=2]="ALIAS"})(Ct||(Ct={})),E.util.setEnumType(Ct,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function Zt(F,x){const M=F.values.find(le=>le.name===x);return(0,k.hu)(M,`cannot parse ${F.name} default value: ${x}`),M.number}function Ie(F,x){switch(F){case p.w.STRING:return x;case p.w.BYTES:{const M=we(x);if(M===!1)throw new Error(`cannot parse ${p.w[F]} default value: ${x}`);return M}case p.w.INT64:case p.w.SFIXED64:case p.w.SINT64:return _.q.parse(x);case p.w.UINT64:case p.w.FIXED64:return _.q.uParse(x);case p.w.DOUBLE:case p.w.FLOAT:switch(x){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(x)}case p.w.BOOL:return x==="true";case p.w.INT32:case p.w.UINT32:case p.w.SINT32:case p.w.FIXED32:case p.w.SFIXED32:return parseInt(x,10)}}function we(F){const x=[],M={tail:F,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(le){if(this.tail.length>=le){const be=this.tail.substring(0,le);return this.tail=this.tail.substring(le),be}return!1}};for(;M.next();)switch(M.c){case"\\":if(M.next())switch(M.c){case"\\":x.push(M.c.charCodeAt(0));break;case"b":x.push(8);break;case"f":x.push(12);break;case"n":x.push(10);break;case"r":x.push(13);break;case"t":x.push(9);break;case"v":x.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const le=M.c,be=M.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,8);if(isNaN(Pe))return!1;x.push(Pe);break}case"x":{const le=M.c,be=M.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;x.push(Pe);break}case"u":{const le=M.c,be=M.take(4);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;const je=new Uint8Array(4);new DataView(je.buffer).setInt32(0,Pe,!0),x.push(je[0],je[1],je[2],je[3]);break}case"U":{const le=M.c,be=M.take(8);if(be===!1)return!1;const Pe=_.q.uEnc(le+be),je=new Uint8Array(8),ct=new DataView(je.buffer);ct.setInt32(0,Pe.lo,!0),ct.setInt32(4,Pe.hi,!0),x.push(je[0],je[1],je[2],je[3],je[4],je[5],je[6],je[7]);break}}break;default:x.push(M.c.charCodeAt(0))}return new Uint8Array(x)}const Qe=pe.fromBinary(B.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function ot(F){const x=F.minimumEdition,M=F.maximumEdition;if(x===void 0||M===void 0||F.defaults.some(be=>be.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const le=new Map;return(be,...Pe)=>{var je,ct;let Ze=le.get(be);if(Ze===void 0){if(bebe||Pt!==void 0&&Pt.e>Sr||(Pt={e:Sr,f:(ct=On.features)!==null&&ct!==void 0?ct:new Nt})}if(Pt===void 0)throw new Error(`No valid default found for edition ${G[be]}`);Ze=Pt.f.toBinary(),le.set(be,Ze)}const Ot=Nt.fromBinary(Ze);for(const Pt of Pe)Pt!==void 0&&Ot.fromBinary(Pt.toBinary());if(!rn(Ot))throw new Error(`Invalid FeatureSet for edition ${G[be]}`);return Ot}}function rn(F){for(const x of Nt.fields.list()){const M=F[x.localName];if(M===void 0||x.kind=="enum"&&M===0)return!1}return!0}function Wt(F,x){var M;const le={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:ot((M=x==null?void 0:x.featureSetDefaults)!==null&&M!==void 0?M:Qe)},Pe=(F instanceof ce?F.file:F instanceof Uint8Array?ce.fromBinary(F).file:F).map(je=>mn(je,le));return Object.assign({files:Pe},le)}function mn(F,x){var M,le;(0,k.hu)(F.name,"invalid FileDescriptorProto: missing name");const be=Object.assign(Object.assign({kind:"file",proto:F,deprecated:(le=(M=F.options)===null||M===void 0?void 0:M.deprecated)!==null&&le!==void 0?le:!1},bn(F.syntax,F.edition)),{name:F.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return oo(this.proto.sourceCodeInfo,[di.FileDescriptorProto_Syntax])},getPackageComments(){return oo(this.proto.sourceCodeInfo,[di.FileDescriptorProto_Package])},getFeatures(){var Pe;return x.resolveFeatures(this.edition,(Pe=this.proto.options)===null||Pe===void 0?void 0:Pe.features)}});x.mapEntries.clear();for(const Pe of F.enumType)Ce(Pe,be,void 0,x);for(const Pe of F.messageType)gt(Pe,be,void 0,x);for(const Pe of F.service)Dt(Pe,be,x);nr(be,x);for(const Pe of x.mapEntries.values())Ue(Pe,x);for(const Pe of be.messages)Ue(Pe,x),nr(Pe,x);return x.mapEntries.clear(),be}function nr(F,x){switch(F.kind){case"file":for(const M of F.proto.extension){const le=Kt(M,F,void 0,x);F.extensions.push(le),x.extensions.set(le.typeName,le)}break;case"message":for(const M of F.proto.extension){const le=Kt(M,F.file,F,x);F.nestedExtensions.push(le),x.extensions.set(le.typeName,le)}for(const M of F.nestedMessages)nr(M,x);break}}function Ue(F,x){const M=F.proto.oneofDecl.map(be=>Mn(be,F,x)),le=new Set;for(const be of F.proto.field){const Pe=Gr(be,M),je=Dn(be,F.file,F,Pe,x);F.fields.push(je),Pe===void 0?F.members.push(je):(Pe.fields.push(je),le.has(Pe)||(le.add(Pe),F.members.push(Pe)))}for(const be of M.filter(Pe=>le.has(Pe)))F.oneofs.push(be);for(const be of F.nestedMessages)Ue(be,x)}function Ce(F,x,M,le){var be,Pe,je;(0,k.hu)(F.name,"invalid EnumDescriptorProto: missing name");const ct={kind:"enum",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:M,name:F.name,typeName:Qn(F,M,x),values:[],sharedPrefix:(0,v.Sm)(F.name,F.value.map(Ze=>{var Ot;return(Ot=Ze.name)!==null&&Ot!==void 0?Ot:""})),toString(){return`enum ${this.typeName}`},getComments(){const Ze=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[di.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze,Ot,Pt;const On=(Ot=(Ze=this.parent)===null||Ze===void 0?void 0:Ze.getFeatures())!==null&&Ot!==void 0?Ot:this.file.getFeatures();return le.resolveFeatures(this.file.edition,On,(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}};le.enums.set(ct.typeName,ct),F.value.forEach(Ze=>{var Ot,Pt;(0,k.hu)(Ze.name,"invalid EnumValueDescriptorProto: missing name"),(0,k.hu)(Ze.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),ct.values.push({kind:"enum_value",proto:Ze,deprecated:(Pt=(Ot=Ze.options)===null||Ot===void 0?void 0:Ot.deprecated)!==null&&Pt!==void 0?Pt:!1,parent:ct,name:Ze.name,number:Ze.number,toString(){return`enum value ${ct.typeName}.${this.name}`},declarationString(){var On;let Sr=`${this.name} = ${this.number}`;return((On=this.proto.options)===null||On===void 0?void 0:On.deprecated)===!0&&(Sr+=" [deprecated = true]"),Sr},getComments(){const On=[...this.parent.getComments().sourcePath,di.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,On)},getFeatures(){var On;return le.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}})}),((je=M==null?void 0:M.nestedEnums)!==null&&je!==void 0?je:x.enums).push(ct)}function gt(F,x,M,le){var be,Pe,je,ct;(0,k.hu)(F.name,"invalid DescriptorProto: missing name");const Ze={kind:"message",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:M,name:F.name,typeName:Qn(F,M,x),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const Ot=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[di.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,Ot)},getFeatures(){var Ot,Pt,On;const Sr=(Pt=(Ot=this.parent)===null||Ot===void 0?void 0:Ot.getFeatures())!==null&&Pt!==void 0?Pt:this.file.getFeatures();return le.resolveFeatures(this.file.edition,Sr,(On=this.proto.options)===null||On===void 0?void 0:On.features)}};((je=F.options)===null||je===void 0?void 0:je.mapEntry)===!0?le.mapEntries.set(Ze.typeName,Ze):(((ct=M==null?void 0:M.nestedMessages)!==null&&ct!==void 0?ct:x.messages).push(Ze),le.messages.set(Ze.typeName,Ze));for(const Ot of F.enumType)Ce(Ot,x,Ze,le);for(const Ot of F.nestedType)gt(Ot,x,Ze,le)}function Dt(F,x,M){var le,be;(0,k.hu)(F.name,"invalid ServiceDescriptorProto: missing name");const Pe={kind:"service",proto:F,deprecated:(be=(le=F.options)===null||le===void 0?void 0:le.deprecated)!==null&&be!==void 0?be:!1,file:x,name:F.name,typeName:Qn(F,void 0,x),methods:[],toString(){return`service ${this.typeName}`},getComments(){const je=[di.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,je)},getFeatures(){var je;return M.resolveFeatures(this.file.edition,this.file.getFeatures(),(je=this.proto.options)===null||je===void 0?void 0:je.features)}};x.services.push(Pe),M.services.set(Pe.typeName,Pe);for(const je of F.method)Pe.methods.push(tn(je,Pe,M))}function tn(F,x,M){var le,be,Pe;(0,k.hu)(F.name,"invalid MethodDescriptorProto: missing name"),(0,k.hu)(F.inputType,"invalid MethodDescriptorProto: missing input_type"),(0,k.hu)(F.outputType,"invalid MethodDescriptorProto: missing output_type");let je;F.clientStreaming===!0&&F.serverStreaming===!0?je=ve.t.BiDiStreaming:F.clientStreaming===!0?je=ve.t.ClientStreaming:F.serverStreaming===!0?je=ve.t.ServerStreaming:je=ve.t.Unary;let ct;switch((le=F.options)===null||le===void 0?void 0:le.idempotencyLevel){case qe.IDEMPOTENT:ct=ve.w.Idempotent;break;case qe.NO_SIDE_EFFECTS:ct=ve.w.NoSideEffects;break;case qe.IDEMPOTENCY_UNKNOWN:case void 0:ct=void 0;break}const Ze=M.messages.get(Yn(F.inputType)),Ot=M.messages.get(Yn(F.outputType));(0,k.hu)(Ze,`invalid MethodDescriptorProto: input_type ${F.inputType} not found`),(0,k.hu)(Ot,`invalid MethodDescriptorProto: output_type ${F.inputType} not found`);const Pt=F.name;return{kind:"rpc",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,parent:x,name:Pt,methodKind:je,input:Ze,output:Ot,idempotency:ct,toString(){return`rpc ${x.typeName}.${Pt}`},getComments(){const On=[...this.parent.getComments().sourcePath,di.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return oo(x.file.proto.sourceCodeInfo,On)},getFeatures(){var On;return M.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}}}function Mn(F,x,M){return(0,k.hu)(F.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:F,deprecated:!1,parent:x,fields:[],name:F.name,toString(){return`oneof ${x.typeName}.${this.name}`},getComments(){const le=[...this.parent.getComments().sourcePath,di.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return oo(x.file.proto.sourceCodeInfo,le)},getFeatures(){var le;return M.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(le=this.proto.options)===null||le===void 0?void 0:le.features)}}}function Dn(F,x,M,le,be){var Pe,je,ct;(0,k.hu)(F.name,"invalid FieldDescriptorProto: missing name"),(0,k.hu)(F.number,"invalid FieldDescriptorProto: missing number"),(0,k.hu)(F.type,"invalid FieldDescriptorProto: missing type");const Ze={proto:F,deprecated:(je=(Pe=F.options)===null||Pe===void 0?void 0:Pe.deprecated)!==null&&je!==void 0?je:!1,name:F.name,number:F.number,parent:M,oneof:le,optional:En(F,x.syntax),packedByDefault:An(x,F,be.resolveFeatures),packed:ca(x,M,F,be.resolveFeatures),jsonName:F.jsonName===(0,v.x1)(F.name)?void 0:F.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:Ma,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Pt=[...this.parent.getComments().sourcePath,di.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,Pt)},getFeatures(){var Pt;return be.resolveFeatures(x.edition,this.parent.getFeatures(),(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}},Ot=F.label===ze.REPEATED;switch(F.type){case ye.MESSAGE:case ye.GROUP:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.mapEntries.get(Yn(F.typeName));if(Pt!==void 0)return(0,k.hu)(Ot,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"map",repeated:!1}),ht(Pt));const On=be.messages.get(Yn(F.typeName));return(0,k.hu)(On!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"message",repeated:Ot,message:On})}case ye.ENUM:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.enums.get(Yn(F.typeName));return(0,k.hu)(Pt!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"enum",getDefaultValue:Kp,repeated:Ot,enum:Pt})}default:{const Pt=Xp[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Kp,repeated:Ot,scalar:Pt,longType:((ct=F.options)===null||ct===void 0?void 0:ct.jstype)==fe.JS_STRING?p.p.STRING:p.p.BIGINT})}}}function Kt(F,x,M,le){(0,k.hu)(F.extendee,"invalid FieldDescriptorProto: missing extendee");const be=Dn(F,x,null,void 0,le),Pe=le.messages.get(Yn(F.extendee));return(0,k.hu)(Pe,`invalid FieldDescriptorProto: extendee ${F.extendee} not found`),Object.assign(Object.assign({},be),{kind:"extension",typeName:Qn(F,M,x),parent:M,file:x,extendee:Pe,toString(){return`extension ${this.typeName}`},getComments(){const je=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[di.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(F)];return oo(x.proto.sourceCodeInfo,je)},getFeatures(){var je,ct;return le.resolveFeatures(this.file.edition,((je=this.parent)!==null&&je!==void 0?je:this.file).getFeatures(),(ct=this.proto.options)===null||ct===void 0?void 0:ct.features)}})}function bn(F,x){let M,le;switch(F){case void 0:case"proto2":le="proto2",M=G.EDITION_PROTO2;break;case"proto3":le="proto3",M=G.EDITION_PROTO3;break;case"editions":switch(le="editions",x){case void 0:case G.EDITION_1_TEST_ONLY:case G.EDITION_2_TEST_ONLY:case G.EDITION_99997_TEST_ONLY:case G.EDITION_99998_TEST_ONLY:case G.EDITION_99999_TEST_ONLY:case G.EDITION_UNKNOWN:M=G.EDITION_UNKNOWN;break;default:M=x;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${F}`)}if(F==="editions"&&x===G.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${F} cannot have edition ${String(x)}`);return{syntax:le,edition:M}}function Qn(F,x,M){(0,k.hu)(F.name,`invalid ${F.getType().typeName}: missing name`);let le;return x?le=`${x.typeName}.${F.name}`:M.proto.package!==void 0?le=`${M.proto.package}.${F.name}`:le=`${F.name}`,le}function Yn(F){return F.startsWith(".")?F.substring(1):F}function ht(F){var x,M;(0,k.hu)((x=F.proto.options)===null||x===void 0?void 0:x.mapEntry,`invalid DescriptorProto: expected ${F.toString()} to be a map entry`),(0,k.hu)(F.fields.length===2,`invalid DescriptorProto: map entry ${F.toString()} has ${F.fields.length} fields`);const le=F.fields.find(je=>je.proto.number===1);(0,k.hu)(le,`invalid DescriptorProto: map entry ${F.toString()} is missing key field`);const be=le.scalar;(0,k.hu)(be!==void 0&&be!==p.w.BYTES&&be!==p.w.FLOAT&&be!==p.w.DOUBLE,`invalid DescriptorProto: map entry ${F.toString()} has unexpected key type ${(M=le.proto.type)!==null&&M!==void 0?M:-1}`);const Pe=F.fields.find(je=>je.proto.number===2);switch((0,k.hu)(Pe,`invalid DescriptorProto: map entry ${F.toString()} is missing value field`),Pe.fieldKind){case"scalar":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"scalar"})};case"message":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"message"})};case"enum":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function Gr(F,x){var M;const le=F.oneofIndex;if(le===void 0)return;let be;return F.proto3Optional!==!0&&(be=x[le],(0,k.hu)(be,`invalid FieldDescriptorProto: oneof #${le} for field #${(M=F.number)!==null&&M!==void 0?M:-1} not found`)),be}function En(F,x){switch(x){case"proto2":return F.oneofIndex===void 0&&F.label===ze.OPTIONAL;case"proto3":return F.proto3Optional===!0;case"editions":return!1}}function An(F,x,M){const{repeatedFieldEncoding:le}=M(F.edition);if(le!=pn.PACKED)return!1;switch(x.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:return!0}}function ca(F,x,M,le){var be,Pe,je,ct,Ze,Ot;switch(M.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:switch(F.edition){case G.EDITION_PROTO2:return(Pe=(be=M.options)===null||be===void 0?void 0:be.packed)!==null&&Pe!==void 0?Pe:!1;case G.EDITION_PROTO3:return(ct=(je=M.options)===null||je===void 0?void 0:je.packed)!==null&&ct!==void 0?ct:!0;default:{const{repeatedFieldEncoding:Pt}=le(F.edition,(Ze=x==null?void 0:x.getFeatures())!==null&&Ze!==void 0?Ze:F.getFeatures(),(Ot=M.options)===null||Ot===void 0?void 0:Ot.features);return Pt==pn.PACKED}}}}const Xp={[ye.DOUBLE]:p.w.DOUBLE,[ye.FLOAT]:p.w.FLOAT,[ye.INT64]:p.w.INT64,[ye.UINT64]:p.w.UINT64,[ye.INT32]:p.w.INT32,[ye.FIXED64]:p.w.FIXED64,[ye.FIXED32]:p.w.FIXED32,[ye.BOOL]:p.w.BOOL,[ye.STRING]:p.w.STRING,[ye.GROUP]:void 0,[ye.MESSAGE]:void 0,[ye.BYTES]:p.w.BYTES,[ye.UINT32]:p.w.UINT32,[ye.ENUM]:void 0,[ye.SFIXED32]:p.w.SFIXED32,[ye.SFIXED64]:p.w.SFIXED64,[ye.SINT32]:p.w.SINT32,[ye.SINT64]:p.w.SINT64};function oo(F,x){if(!F)return{leadingDetached:[],sourcePath:x};for(const M of F.location)if(M.path.length===x.length&&!M.path.some((le,be)=>x[be]!==le))return{leadingDetached:M.leadingDetachedComments,leading:M.leadingComments,trailing:M.trailingComments,sourcePath:x};return{leadingDetached:[],sourcePath:x}}var di;(function(F){F[F.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",F[F.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",F[F.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",F[F.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",F[F.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",F[F.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",F[F.DescriptorProto_Field=2]="DescriptorProto_Field",F[F.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",F[F.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",F[F.DescriptorProto_Extension=6]="DescriptorProto_Extension",F[F.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",F[F.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",F[F.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(di||(di={}));function Ma(){var F,x,M;const le=[];this.repeated&&le.push("repeated"),this.optional&&le.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===ze.REQUIRED&&le.push("required");let Pe;switch(this.fieldKind){case"scalar":Pe=p.w[this.scalar].toLowerCase();break;case"enum":Pe=this.enum.typeName;break;case"message":Pe=this.message.typeName;break;case"map":{const Ze=p.w[this.mapKey].toLowerCase();let Ot;switch(this.mapValue.kind){case"scalar":Ot=p.w[this.mapValue.scalar].toLowerCase();break;case"enum":Ot=this.mapValue.enum.typeName;break;case"message":Ot=this.mapValue.message.typeName;break}Pe=`map<${Ze}, ${Ot}>`;break}}le.push(`${Pe} ${this.name} = ${this.number}`);const je=[];((F=this.proto.options)===null||F===void 0?void 0:F.packed)!==void 0&&je.push(`packed = ${this.proto.options.packed.toString()}`);let ct=this.proto.defaultValue;return ct!==void 0&&((this.proto.type==ye.BYTES||this.proto.type==ye.STRING)&&(ct='"'+ct.replace('"','\\"')+'"'),je.push(`default = ${ct}`)),this.jsonName!==void 0&&je.push(`json_name = "${this.jsonName}"`),((x=this.proto.options)===null||x===void 0?void 0:x.jstype)!==void 0&&je.push(`jstype = ${fe[this.proto.options.jstype]}`),((M=this.proto.options)===null||M===void 0?void 0:M.deprecated)===!0&&je.push("deprecated = true"),je.length>0&&le.push("["+je.join(", ")+"]"),le.join(" ")}function Kp(){const F=this.proto.defaultValue;if(F!==void 0)switch(this.fieldKind){case"enum":return Zt(this.enum,F);case"scalar":return Ie(this.scalar,F);default:return}}function YO(...F){const x={},M={},le={},be={add(Pe){if("fields"in Pe){if(!this.findMessage(Pe.typeName)){x[Pe.typeName]=Pe;for(const je of Pe.fields.list())je.kind=="message"?this.add(je.T):je.kind=="map"&&je.V.kind=="message"?this.add(je.V.T):je.kind=="enum"&&this.add(je.T)}}else if("methods"in Pe){if(!this.findService(Pe.typeName)){le[Pe.typeName]=Pe;for(const je of Object.values(Pe.methods))this.add(je.I),this.add(je.O)}}else M[Pe.typeName]=Pe},findMessage(Pe){return x[Pe]},findEnum(Pe){return M[Pe]},findService(Pe){return le[Pe]}};for(const Pe of F)be.add(Pe);return be}class da extends se.v{constructor(x){super(),this.seconds=_.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,M){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.w.json.debug(x)}`);const le=x.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(!le)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const be=Date.parse(le[1]+"-"+le[2]+"-"+le[3]+"T"+le[4]+":"+le[5]+":"+le[6]+(le[8]?le[8]:"Z"));if(Number.isNaN(be))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(beDate.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=_.q.parse(be/1e3),this.nanos=0,le[7]&&(this.nanos=parseInt("1"+le[7]+"0".repeat(9-le[7].length))-1e9),this}toJson(x){const M=Number(this.seconds)*1e3;if(MDate.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 le="Z";if(this.nanos>0){const be=(this.nanos+1e9).toString().substring(1);be.substring(3)==="000000"?le="."+be.substring(0,3)+"Z":be.substring(6)==="000"?le="."+be.substring(0,6)+"Z":le="."+be+"Z"}return new Date(M).toISOString().replace(".000Z",le)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return da.fromDate(new Date)}static fromDate(x){const M=x.getTime();return new da({seconds:_.q.parse(Math.floor(M/1e3)),nanos:M%1e3*1e6})}static fromBinary(x,M){return new da().fromBinary(x,M)}static fromJson(x,M){return new da().fromJson(x,M)}static fromJsonString(x,M){return new da().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(da,x,M)}}da.runtime=c.w,da.typeName="google.protobuf.Timestamp",da.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Er extends se.v{constructor(x){super(),this.seconds=_.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,M){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const le=x.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(le===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const be=Number(le[1]);if(be>315576e6||be<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);if(this.seconds=_.q.parse(be),typeof le[2]=="string"){const Pe=le[2]+"0".repeat(9-le[2].length);this.nanos=parseInt(Pe),(be<0||Object.is(be,-0))&&(this.nanos=-this.nanos)}return this}toJson(x){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let M=this.seconds.toString();if(this.nanos!==0){let le=Math.abs(this.nanos).toString();le="0".repeat(9-le.length)+le,le.substring(3)==="000000"?le=le.substring(0,3):le.substring(6)==="000"&&(le=le.substring(0,6)),M+="."+le,this.nanos<0&&Number(this.seconds)==0&&(M="-"+M)}return M+"s"}static fromBinary(x,M){return new Er().fromBinary(x,M)}static fromJson(x,M){return new Er().fromJson(x,M)}static fromJsonString(x,M){return new Er().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Er,x,M)}}Er.runtime=c.w,Er.typeName="google.protobuf.Duration",Er.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var Jp=u(733);class Ts extends se.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ts().fromBinary(x,M)}static fromJson(x,M){return new Ts().fromJson(x,M)}static fromJsonString(x,M){return new Ts().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ts,x,M)}}Ts.runtime=c.w,Ts.typeName="google.protobuf.Empty",Ts.fields=c.w.util.newFieldList(()=>[]);class ws extends se.v{constructor(x){super(),this.paths=[],c.w.util.initPartial(x,this)}toJson(x){function M(le){let be=!1;const Pe=[];for(let je=0;je{if(le.match(/_[0-9]?_/g)||le.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+le+'" is irreversible');return M(le)}).join(",")}fromJson(x,M){if(typeof x!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+c.w.json.debug(x));if(x==="")return this;function le(be){if(be.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const Pe=be.replace(/[A-Z]/g,je=>"_"+je.toLowerCase());return Pe[0]==="_"?Pe.substring(1):Pe}return this.paths=x.split(",").map(le),this}static fromBinary(x,M){return new ws().fromBinary(x,M)}static fromJson(x,M){return new ws().fromJson(x,M)}static fromJsonString(x,M){return new ws().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ws,x,M)}}ws.runtime=c.w,ws.typeName="google.protobuf.FieldMask",ws.fields=c.w.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var ao;(function(F){F[F.NULL_VALUE=0]="NULL_VALUE"})(ao||(ao={})),c.w.util.setEnumType(ao,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class ko extends se.v{constructor(x){super(),this.fields={},c.w.util.initPartial(x,this)}toJson(x){const M={};for(const[le,be]of Object.entries(this.fields))M[le]=be.toJson(x);return M}fromJson(x,M){if(typeof x!="object"||x==null||Array.isArray(x))throw new Error("cannot decode google.protobuf.Struct from JSON "+c.w.json.debug(x));for(const[le,be]of Object.entries(x))this.fields[le]=Ur.fromJson(be);return this}static fromBinary(x,M){return new ko().fromBinary(x,M)}static fromJson(x,M){return new ko().fromJson(x,M)}static fromJsonString(x,M){return new ko().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ko,x,M)}}ko.runtime=c.w,ko.typeName="google.protobuf.Struct",ko.fields=c.w.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Ur}}]);class Ur extends se.v{constructor(x){super(),this.kind={case:void 0},c.w.util.initPartial(x,this)}toJson(x){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({},x),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(x,M){switch(typeof x){case"number":this.kind={case:"numberValue",value:x};break;case"string":this.kind={case:"stringValue",value:x};break;case"boolean":this.kind={case:"boolValue",value:x};break;case"object":x===null?this.kind={case:"nullValue",value:ao.NULL_VALUE}:Array.isArray(x)?this.kind={case:"listValue",value:so.fromJson(x)}:this.kind={case:"structValue",value:ko.fromJson(x)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(x))}return this}static fromBinary(x,M){return new Ur().fromBinary(x,M)}static fromJson(x,M){return new Ur().fromJson(x,M)}static fromJsonString(x,M){return new Ur().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ur,x,M)}}Ur.runtime=c.w,Ur.typeName="google.protobuf.Value",Ur.fields=c.w.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:c.w.getEnumType(ao),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:ko,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:so,oneof:"kind"}]);class so extends se.v{constructor(x){super(),this.values=[],c.w.util.initPartial(x,this)}toJson(x){return this.values.map(M=>M.toJson())}fromJson(x,M){if(!Array.isArray(x))throw new Error("cannot decode google.protobuf.ListValue from JSON "+c.w.json.debug(x));for(let le of x)this.values.push(Ur.fromJson(le));return this}static fromBinary(x,M){return new so().fromBinary(x,M)}static fromJson(x,M){return new so().fromJson(x,M)}static fromJsonString(x,M){return new so().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(so,x,M)}}so.runtime=c.w,so.typeName="google.protobuf.ListValue",so.fields=c.w.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Ur,repeated:!0}]);var Yl=u(609);class Qo extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.DOUBLE,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.DOUBLE,x)}catch(le){let be='cannot decode message google.protobuf.DoubleValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Qo().fromBinary(x,M)}static fromJson(x,M){return new Qo().fromJson(x,M)}static fromJsonString(x,M){return new Qo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Qo,x,M)}}Qo.runtime=c.w,Qo.typeName="google.protobuf.DoubleValue",Qo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Qo.fieldWrapper={wrapField(F){return new Qo({value:F})},unwrapField(F){return F.value}};class xo extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.FLOAT,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.FLOAT,x)}catch(le){let be='cannot decode message google.protobuf.FloatValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new xo().fromBinary(x,M)}static fromJson(x,M){return new xo().fromJson(x,M)}static fromJsonString(x,M){return new xo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(xo,x,M)}}xo.runtime=c.w,xo.typeName="google.protobuf.FloatValue",xo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),xo.fieldWrapper={wrapField(F){return new xo({value:F})},unwrapField(F){return F.value}};class Vi extends se.v{constructor(x){super(),this.value=_.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT64,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.INT64,x)}catch(le){let be='cannot decode message google.protobuf.Int64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Vi().fromBinary(x,M)}static fromJson(x,M){return new Vi().fromJson(x,M)}static fromJsonString(x,M){return new Vi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Vi,x,M)}}Vi.runtime=c.w,Vi.typeName="google.protobuf.Int64Value",Vi.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Vi.fieldWrapper={wrapField(F){return new Vi({value:F})},unwrapField(F){return F.value}};class br extends se.v{constructor(x){super(),this.value=_.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT64,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.UINT64,x)}catch(le){let be='cannot decode message google.protobuf.UInt64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new br().fromBinary(x,M)}static fromJson(x,M){return new br().fromJson(x,M)}static fromJsonString(x,M){return new br().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(br,x,M)}}br.runtime=c.w,br.typeName="google.protobuf.UInt64Value",br.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),br.fieldWrapper={wrapField(F){return new br({value:F})},unwrapField(F){return F.value}};class _r extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT32,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.INT32,x)}catch(le){let be='cannot decode message google.protobuf.Int32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new _r().fromBinary(x,M)}static fromJson(x,M){return new _r().fromJson(x,M)}static fromJsonString(x,M){return new _r().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(_r,x,M)}}_r.runtime=c.w,_r.typeName="google.protobuf.Int32Value",_r.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),_r.fieldWrapper={wrapField(F){return new _r({value:F})},unwrapField(F){return F.value}};class jr extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT32,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.UINT32,x)}catch(le){let be='cannot decode message google.protobuf.UInt32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new jr().fromBinary(x,M)}static fromJson(x,M){return new jr().fromJson(x,M)}static fromJsonString(x,M){return new jr().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(jr,x,M)}}jr.runtime=c.w,jr.typeName="google.protobuf.UInt32Value",jr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),jr.fieldWrapper={wrapField(F){return new jr({value:F})},unwrapField(F){return F.value}};class Yo extends se.v{constructor(x){super(),this.value=!1,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BOOL,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.BOOL,x)}catch(le){let be='cannot decode message google.protobuf.BoolValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Yo().fromBinary(x,M)}static fromJson(x,M){return new Yo().fromJson(x,M)}static fromJsonString(x,M){return new Yo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Yo,x,M)}}Yo.runtime=c.w,Yo.typeName="google.protobuf.BoolValue",Yo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Yo.fieldWrapper={wrapField(F){return new Yo({value:F})},unwrapField(F){return F.value}};class Hi extends se.v{constructor(x){super(),this.value="",c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.STRING,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.STRING,x)}catch(le){let be='cannot decode message google.protobuf.StringValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Hi().fromBinary(x,M)}static fromJson(x,M){return new Hi().fromJson(x,M)}static fromJsonString(x,M){return new Hi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Hi,x,M)}}Hi.runtime=c.w,Hi.typeName="google.protobuf.StringValue",Hi.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),Hi.fieldWrapper={wrapField(F){return new Hi({value:F})},unwrapField(F){return F.value}};class Jt extends se.v{constructor(x){super(),this.value=new Uint8Array(0),c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BYTES,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.BYTES,x)}catch(le){let be='cannot decode message google.protobuf.BytesValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Jt().fromBinary(x,M)}static fromJson(x,M){return new Jt().fromJson(x,M)}static fromJsonString(x,M){return new Jt().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Jt,x,M)}}Jt.runtime=c.w,Jt.typeName="google.protobuf.BytesValue",Jt.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Jt.fieldWrapper={wrapField(F){return new Jt({value:F})},unwrapField(F){return F.value}};const Rr=[Jp.I,Er,Ts,ws,ko,Ur,so,da,Er,Qo,xo,Vi,_r,jr,br,Yo,Hi,Jt],eh=[(0,Yl.V3)(ao)];function gf(F,x=!0){const M=F instanceof Uint8Array||F instanceof ce?Wt(F):F,le={},be={},Pe={};if(x){for(const je of Rr)be[je.typeName]=je;for(const je of eh)le[je.typeName]=je}return{findEnum(je){const ct=le[je];if(ct)return ct;const Ze=M.enums.get(je);if(!Ze)return;const Pt=(Ze.file.syntax=="proto3"?c.w:E).makeEnumType(je,Ze.values.map(On=>({no:On.number,name:On.name,localName:(0,v.r1)(On)})),{});return le[je]=Pt,Pt},findMessage(je){const ct=be[je];if(ct)return ct;const Ze=M.messages.get(je);if(!Ze)return;const Ot=Ze.file.syntax=="proto3"?c.w:E,Pt=[],On=Ot.makeMessageType(je,()=>Pt,{localName:(0,v.r1)(Ze)});be[je]=On;for(const Sr of Ze.fields){const Sn=Go(Sr,this);Pt.push(Sn)}return On},findService(je){const ct=Pe[je];if(ct)return ct;const Ze=M.services.get(je);if(!Ze)return;const Ot={};for(const Pt of Ze.methods){const On=this.findMessage(Pt.input.typeName),Sr=this.findMessage(Pt.output.typeName);(0,k.hu)(On,`message "${Pt.input.typeName}" for ${Pt.toString()} not found`),(0,k.hu)(Sr,`output message "${Pt.output.typeName}" for ${Pt.toString()} not found`),Ot[(0,v.r1)(Pt)]={name:Pt.name,I:On,O:Sr,kind:Pt.methodKind,idempotency:Pt.idempotency}}return Pe[je]={typeName:Ze.typeName,methods:Ot}}}}function Go(F,x){switch(F.fieldKind){case"map":return Gl(F,x);case"message":return bf(F,x);case"enum":{const M=ql(F,x);return M.default=F.getDefaultValue(),M}case"scalar":{const M=Yu(F);return M.default=F.getDefaultValue(),M}}}function Gl(F,x){const M={kind:"map",no:F.number,name:F.name,jsonName:F.jsonName,K:F.mapKey};if(F.mapValue.message){const le=x.findMessage(F.mapValue.message.typeName);return(0,k.hu)(le,`message "${F.mapValue.message.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},M),{V:{kind:"message",T:le}})}if(F.mapValue.enum){const le=x.findEnum(F.mapValue.enum.typeName);return(0,k.hu)(le,`enum "${F.mapValue.enum.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},M),{V:{kind:"enum",T:le}})}return Object.assign(Object.assign({},M),{V:{kind:"scalar",T:F.mapValue.scalar}})}function Yu(F){const x=F.longType==p.p.STRING?{L:p.p.STRING}:{},M=Object.assign({kind:"scalar",no:F.number,name:F.name,jsonName:F.jsonName,T:F.scalar},x);return F.repeated?Object.assign(Object.assign({},M),{repeated:!0,packed:F.packed,oneof:void 0,T:F.scalar}):F.oneof?Object.assign(Object.assign({},M),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},M),{opt:!0}):M}function bf(F,x){const M=x.findMessage(F.message.typeName);(0,k.hu)(M,`message "${F.message.typeName}" for ${F.toString()} not found`);const le={kind:"message",no:F.number,name:F.name,jsonName:F.jsonName,T:M,delimited:F.proto.type==ye.GROUP};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function ql(F,x){const M=x.findEnum(F.enum.typeName);(0,k.hu)(M,`enum "${F.enum.typeName}" for ${F.toString()} not found`);const le={kind:"enum",no:F.number,name:F.name,jsonName:F.jsonName,T:M};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function th(F){if(!(F instanceof se.v))return F;const x=F.getType(),M={};for(const le of x.fields.byMember()){const be=F[le.localName];let Pe;if(le.repeated)Pe=be.map(je=>$a(je));else if(le.kind=="map"){Pe={};for(const[je,ct]of Object.entries(be))Pe[je]=$a(ct)}else le.kind=="oneof"?Pe=le.findField(be.case)?{case:be.case,value:$a(be.value)}:{case:void 0}:Pe=$a(be);M[le.localName]=Pe}return M}function $a(F){if(F===void 0)return F;if(F instanceof se.v)return th(F);if(F instanceof Uint8Array){const x=new Uint8Array(F.byteLength);return x.set(F),x}return F}class qo extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new qo().fromBinary(x,M)}static fromJson(x,M){return new qo().fromJson(x,M)}static fromJsonString(x,M){return new qo().fromJsonString(x,M)}static equals(x,M){return E.util.equals(qo,x,M)}}qo.runtime=E,qo.typeName="google.protobuf.compiler.Version",qo.fields=E.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 Zo extends se.v{constructor(x){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Zo().fromBinary(x,M)}static fromJson(x,M){return new Zo().fromJson(x,M)}static fromJsonString(x,M){return new Zo().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Zo,x,M)}}Zo.runtime=E,Zo.typeName="google.protobuf.compiler.CodeGeneratorRequest",Zo.fields=E.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:ge,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:ge,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:qo,opt:!0}]);class fi extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new fi().fromBinary(x,M)}static fromJson(x,M){return new fi().fromJson(x,M)}static fromJsonString(x,M){return new fi().fromJsonString(x,M)}static equals(x,M){return E.util.equals(fi,x,M)}}fi.runtime=E,fi.typeName="google.protobuf.compiler.CodeGeneratorResponse",fi.fields=E.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:Co,repeated:!0}]);var Zl;(function(F){F[F.NONE=0]="NONE",F[F.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",F[F.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(Zl||(Zl={})),E.util.setEnumType(Zl,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class Co extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Co().fromBinary(x,M)}static fromJson(x,M){return new Co().fromJson(x,M)}static fromJsonString(x,M){return new Co().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Co,x,M)}}Co.runtime=E,Co.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",Co.fields=E.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:$t,opt:!0}]);class fa extends se.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new fa().fromBinary(x,M)}static fromJson(x,M){return new fa().fromJson(x,M)}static fromJsonString(x,M){return new fa().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(fa,x,M)}}fa.runtime=c.w,fa.typeName="google.protobuf.SourceContext",fa.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var pa;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(pa||(pa={})),c.w.util.setEnumType(pa,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class xi extends se.v{constructor(x){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=pa.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new xi().fromBinary(x,M)}static fromJson(x,M){return new xi().fromJson(x,M)}static fromJsonString(x,M){return new xi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(xi,x,M)}}xi.runtime=c.w,xi.typeName="google.protobuf.Type",xi.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Xo,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Ci,repeated:!0},{no:5,name:"source_context",kind:"message",T:fa},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(pa)},{no:7,name:"edition",kind:"scalar",T:9}]);class Xo extends se.v{constructor(x){super(),this.kind=Fc.TYPE_UNKNOWN,this.cardinality=Bc.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Xo().fromBinary(x,M)}static fromJson(x,M){return new Xo().fromJson(x,M)}static fromJsonString(x,M){return new Xo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Xo,x,M)}}Xo.runtime=c.w,Xo.typeName="google.protobuf.Field",Xo.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(Fc)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Bc)},{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:Ci,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var Fc;(function(F){F[F.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",F[F.TYPE_DOUBLE=1]="TYPE_DOUBLE",F[F.TYPE_FLOAT=2]="TYPE_FLOAT",F[F.TYPE_INT64=3]="TYPE_INT64",F[F.TYPE_UINT64=4]="TYPE_UINT64",F[F.TYPE_INT32=5]="TYPE_INT32",F[F.TYPE_FIXED64=6]="TYPE_FIXED64",F[F.TYPE_FIXED32=7]="TYPE_FIXED32",F[F.TYPE_BOOL=8]="TYPE_BOOL",F[F.TYPE_STRING=9]="TYPE_STRING",F[F.TYPE_GROUP=10]="TYPE_GROUP",F[F.TYPE_MESSAGE=11]="TYPE_MESSAGE",F[F.TYPE_BYTES=12]="TYPE_BYTES",F[F.TYPE_UINT32=13]="TYPE_UINT32",F[F.TYPE_ENUM=14]="TYPE_ENUM",F[F.TYPE_SFIXED32=15]="TYPE_SFIXED32",F[F.TYPE_SFIXED64=16]="TYPE_SFIXED64",F[F.TYPE_SINT32=17]="TYPE_SINT32",F[F.TYPE_SINT64=18]="TYPE_SINT64"})(Fc||(Fc={})),c.w.util.setEnumType(Fc,"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 Bc;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.OPTIONAL=1]="OPTIONAL",F[F.REQUIRED=2]="REQUIRED",F[F.REPEATED=3]="REPEATED"})(Bc||(Bc={})),c.w.util.setEnumType(Bc,"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 Gn extends se.v{constructor(x){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=pa.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Gn().fromBinary(x,M)}static fromJson(x,M){return new Gn().fromJson(x,M)}static fromJsonString(x,M){return new Gn().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Gn,x,M)}}Gn.runtime=c.w,Gn.typeName="google.protobuf.Enum",Gn.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Fa,repeated:!0},{no:3,name:"options",kind:"message",T:Ci,repeated:!0},{no:4,name:"source_context",kind:"message",T:fa},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(pa)},{no:6,name:"edition",kind:"scalar",T:9}]);class Fa extends se.v{constructor(x){super(),this.name="",this.number=0,this.options=[],c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Fa().fromBinary(x,M)}static fromJson(x,M){return new Fa().fromJson(x,M)}static fromJsonString(x,M){return new Fa().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Fa,x,M)}}Fa.runtime=c.w,Fa.typeName="google.protobuf.EnumValue",Fa.fields=c.w.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:Ci,repeated:!0}]);class Ci extends se.v{constructor(x){super(),this.name="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ci().fromBinary(x,M)}static fromJson(x,M){return new Ci().fromJson(x,M)}static fromJsonString(x,M){return new Ci().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ci,x,M)}}Ci.runtime=c.w,Ci.typeName="google.protobuf.Option",Ci.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Jp.I}]);class Ba extends se.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=pa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ba().fromBinary(x,M)}static fromJson(x,M){return new Ba().fromJson(x,M)}static fromJsonString(x,M){return new Ba().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ba,x,M)}}Ba.runtime=c.w,Ba.typeName="google.protobuf.Api",Ba.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:ha,repeated:!0},{no:3,name:"options",kind:"message",T:Ci,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:fa},{no:6,name:"mixins",kind:"message",T:Ua,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(pa)}]);class ha extends se.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=pa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,M){return new ha().fromBinary(x,M)}static fromJson(x,M){return new ha().fromJson(x,M)}static fromJsonString(x,M){return new ha().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ha,x,M)}}ha.runtime=c.w,ha.typeName="google.protobuf.Method",ha.fields=c.w.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:Ci,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(pa)}]);class Ua extends se.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ua().fromBinary(x,M)}static fromJson(x,M){return new Ua().fromJson(x,M)}static fromJsonString(x,M){return new Ua().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ua,x,M)}}Ua.runtime=c.w,Ua.typeName="google.protobuf.Mixin",Ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}])},561:(s,l,u)=>{u.d(l,{v:()=>c});class c{equals(p){return this.getType().runtime.util.equals(this.getType(),this,p)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(p,h){const m=this.getType(),b=m.runtime.bin,O=b.makeReadOptions(h);return b.readMessage(this,O.readerFactory(p),p.byteLength,O),this}fromJson(p,h){const m=this.getType(),b=m.runtime.json,O=b.makeReadOptions(h);return b.readMessage(m,p,O,this),this}fromJsonString(p,h){let m;try{m=JSON.parse(p)}catch(b){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${b instanceof Error?b.message:String(b)}`)}return this.fromJson(m,h)}toBinary(p){const h=this.getType(),m=h.runtime.bin,b=m.makeWriteOptions(p),O=b.writerFactory();return m.writeMessage(this,O,b),O.finish()}toJson(p){const h=this.getType(),m=h.runtime.json,b=m.makeWriteOptions(p);return m.writeMessage(this,b)}toJsonString(p){var h;const m=this.toJson(p);return JSON.stringify(m,null,(h=p==null?void 0:p.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}},120:(s,l,u)=>{u.d(l,{E_:()=>v,fp:()=>y,hu:()=>c,ug:()=>O});function c(S,k){if(!S)throw new Error(k)}const d=34028234663852886e22,p=-34028234663852886e22,h=4294967295,m=2147483647,b=-2147483648;function O(S){if(typeof S!="number")throw new Error("invalid int 32: "+typeof S);if(!Number.isInteger(S)||S>m||Sh||S<0)throw new Error("invalid uint 32: "+S)}function v(S){if(typeof S!="number")throw new Error("invalid float 32: "+typeof S);if(Number.isFinite(S)&&(S>d||S{u.d(l,{Jj:()=>V,NN:()=>U,gQ:()=>_,gY:()=>C,oQ:()=>B});var c=u(79),d=u(561),p=u(465),h=u(432),m=u(781),b=u(120);const O=Symbol("@bufbuild/protobuf/unknown-fields"),y={readUnknownFields:!0,readerFactory:z=>new c.oP(z)},v={writeUnknownFields:!0,writerFactory:()=>new c.Lt};function S(z){return z?Object.assign(Object.assign({},y),z):y}function k(z){return z?Object.assign(Object.assign({},v),z):v}function C(){return{makeReadOptions:S,makeWriteOptions:k,listUnknownFields(z){var W;return(W=z[O])!==null&&W!==void 0?W:[]},discardUnknownFields(z){delete z[O]},writeUnknownFields(z,W){const q=z[O];if(q)for(const Y of q)W.tag(Y.no,Y.wireType).raw(Y.data)},onUnknownField(z,W,X,q){const Y=z;Array.isArray(Y[O])||(Y[O]=[]),Y[O].push({no:W,wireType:X,data:q})},readMessage(z,W,X,q,Y){const Z=z.getType(),j=Y?W.len:W.pos+X;let se,ve;for(;W.pos0&&(Ne=$),ge){let Ge=ce[ue];if(ve==c.TD.LengthDelimited&&xe!=p.w.STRING&&xe!=p.w.BYTES){let ye=W.uint32()+W.pos;for(;W.pos{u.d(l,{V3:()=>p,be:()=>m,ut:()=>b,zg:()=>h});var c=u(120);const d=Symbol("@bufbuild/protobuf/enum-type");function p(y){const v=y[d];return(0,c.hu)(v,"missing enum type on enum object"),v}function h(y,v,S,k){y[d]=m(v,S.map(C=>({no:C.no,name:C.name,localName:y[C.no]})))}function m(y,v,S){const k=Object.create(null),C=Object.create(null),w=[];for(const E of v){const $=O(E);w.push($),k[E.name]=$,C[E.no]=$}return{typeName:y,values:w,findName(E){return k[E]},findNumber(E){return C[E]}}}function b(y,v,S){const k={};for(const C of v){const w=O(C);k[w.localName]=w.no,k[w.no]=w.localName}return h(k,y,v),k}function O(y){return"localName"in y?y:Object.assign(Object.assign({},y),{localName:y.name})}},501:(s,l,u)=>{u.d(l,{i:()=>c});class c{constructor(p,h){this._fields=p,this._normalizer=h}findJsonName(p){if(!this.jsonNames){const h={};for(const m of this.list())h[m.jsonName]=h[m.name]=m;this.jsonNames=h}return this.jsonNames[p]}find(p){if(!this.numbers){const h={};for(const m of this.list())h[m.no]=m;this.numbers=h}return this.numbers[p]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((p,h)=>p.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const p=this.members;let h;for(const m of this.list())m.oneof?m.oneof!==h&&(h=m.oneof,p.push(h)):p.push(m)}return this.members}}},432:(s,l,u)=>{u.d(l,{E:()=>p,w:()=>h});var c=u(561),d=u(465);function p(b,O){return O instanceof c.v||!b.fieldWrapper?O:b.fieldWrapper.wrapField(O)}function h(b){if(b.fieldKind==="message"&&!b.repeated&&b.oneof==null)return m[b.message.typeName]}const m={"google.protobuf.DoubleValue":d.w.DOUBLE,"google.protobuf.FloatValue":d.w.FLOAT,"google.protobuf.Int64Value":d.w.INT64,"google.protobuf.UInt64Value":d.w.UINT64,"google.protobuf.Int32Value":d.w.INT32,"google.protobuf.UInt32Value":d.w.UINT32,"google.protobuf.BoolValue":d.w.BOOL,"google.protobuf.StringValue":d.w.STRING,"google.protobuf.BytesValue":d.w.BYTES}},215:(s,l,u)=>{u.d(l,{o:()=>p});var c=u(504),d=u(120);class p{constructor(m){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=m,this.localName=(0,c.uA)(m)}addField(m){(0,d.hu)(m.oneof===this,`field ${m.name} not one of ${this.name}`),this.fields.push(m)}findField(m){if(!this._lookup){this._lookup=Object.create(null);for(let b=0;b{u.d(l,{b:()=>S});var c=u(561),d=u(465),p=u(120),h=u(210),m=u(236);const b={ignoreUnknownFields:!1},O={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function y(P){return P?Object.assign(Object.assign({},b),P):b}function v(P){return P?Object.assign(Object.assign({},O),P):O}function S(P){const _=P(E,$);return{makeReadOptions:y,makeWriteOptions:v,readMessage(B,U,V,z){if(U==null||Array.isArray(U)||typeof U!="object")throw new Error(`cannot decode message ${B.typeName} from JSON: ${this.debug(U)}`);z=z??new B;const W={};for(const[X,q]of Object.entries(U)){const Y=B.fields.findJsonName(X);if(!Y){if(!V.ignoreUnknownFields)throw new Error(`cannot decode message ${B.typeName} from JSON: key "${X}" is unknown`);continue}let Z=Y.localName,j=z;if(Y.oneof){if(q===null&&Y.kind=="scalar")continue;const se=W[Y.oneof.localName];if(se)throw new Error(`cannot decode message ${B.typeName} from JSON: multiple keys for oneof "${Y.oneof.name}" present: "${se}", "${X}"`);W[Y.oneof.localName]=X,j=j[Y.oneof.localName]={case:Z},Z="value"}if(Y.repeated){if(q===null)continue;if(!Array.isArray(q))throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const ve of q){if(ve===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`);let G;switch(Y.kind){case"message":G=Y.T.fromJson(ve,V);break;case"enum":if(G=w(Y.T,ve,V.ignoreUnknownFields),G===void 0)continue;break;case"scalar":try{G=C(Y.T,ve,Y.L)}catch(ce){let ge=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`;throw ce instanceof Error&&ce.message.length>0&&(ge+=`: ${ce.message}`),new Error(ge)}break}se.push(G)}}else if(Y.kind=="map"){if(q===null)continue;if(Array.isArray(q)||typeof q!="object")throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const[ve,G]of Object.entries(q)){if(G===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: map value null`);let ce;switch(Y.V.kind){case"message":ce=Y.V.T.fromJson(G,V);break;case"enum":if(ce=w(Y.V.T,G,V.ignoreUnknownFields),ce===void 0)continue;break;case"scalar":try{ce=C(Y.V.T,G,d.p.BIGINT)}catch(ge){let ue=`cannot decode map value for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}break}try{se[C(Y.K,Y.K==d.w.BOOL?ve=="true"?!0:ve=="false"?!1:ve:ve,d.p.BIGINT).toString()]=ce}catch(ge){let ue=`cannot decode map key for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}}}else switch(Y.kind){case"message":const se=Y.T;if(q===null&&se.typeName!="google.protobuf.Value"){if(Y.oneof)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: null is invalid for oneof field "${X}"`);continue}j[Z]instanceof c.v?j[Z].fromJson(q,V):(j[Z]=se.fromJson(q,V),se.fieldWrapper&&!Y.oneof&&(j[Z]=se.fieldWrapper.unwrapField(j[Z])));break;case"enum":const ve=w(Y.T,q,V.ignoreUnknownFields);ve!==void 0&&(j[Z]=ve);break;case"scalar":try{j[Z]=C(Y.T,q,Y.L)}catch(G){let ce=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw G instanceof Error&&G.message.length>0&&(ce+=`: ${G.message}`),new Error(ce)}break}}return z},writeMessage(B,U){const V=B.getType(),z={};let W;try{for(const X of V.fields.byMember()){let q;if(X.kind=="oneof"){const Y=B[X.localName];if(Y.value===void 0)continue;if(W=X.findField(Y.case),!W)throw"oneof case not found: "+Y.case;q=_(W,Y.value,U)}else W=X,q=_(W,B[W.localName],U);q!==void 0&&(z[U.useProtoFieldName?W.name:W.jsonName]=q)}}catch(X){const q=W?`cannot encode field ${V.typeName}.${W.name} to JSON`:`cannot encode message ${V.typeName} to JSON`,Y=X instanceof Error?X.message:String(X);throw new Error(q+(Y.length>0?`: ${Y}`:""))}return z},readScalar:C,writeScalar:$,debug:k}}function k(P){if(P===null)return"null";switch(typeof P){case"object":return Array.isArray(P)?"array":"object";case"string":return P.length>100?"string":`"${P.split('"').join('\\"')}"`;default:return String(P)}}function C(P,_,B){switch(P){case d.w.DOUBLE:case d.w.FLOAT:if(_===null)return 0;if(_==="NaN")return Number.NaN;if(_==="Infinity")return Number.POSITIVE_INFINITY;if(_==="-Infinity")return Number.NEGATIVE_INFINITY;if(_===""||typeof _=="string"&&_.trim().length!==_.length||typeof _!="string"&&typeof _!="number")break;const U=Number(_);if(Number.isNaN(U)||!Number.isFinite(U))break;return P==d.w.FLOAT&&(0,p.E_)(U),U;case d.w.INT32:case d.w.FIXED32:case d.w.SFIXED32:case d.w.SINT32:case d.w.UINT32:if(_===null)return 0;let V;if(typeof _=="number"?V=_:typeof _=="string"&&_.length>0&&_.trim().length===_.length&&(V=Number(_)),V===void 0)break;return P==d.w.UINT32?(0,p.fp)(V):(0,p.ug)(V),V;case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:if(_===null)return h.q.zero;if(typeof _!="number"&&typeof _!="string")break;const z=h.q.parse(_);return B?z.toString():z;case d.w.FIXED64:case d.w.UINT64:if(_===null)return h.q.zero;if(typeof _!="number"&&typeof _!="string")break;const W=h.q.uParse(_);return B?W.toString():W;case d.w.BOOL:if(_===null)return!1;if(typeof _!="boolean")break;return _;case d.w.STRING:if(_===null)return"";if(typeof _!="string")break;try{encodeURIComponent(_)}catch{throw new Error("invalid UTF8")}return _;case d.w.BYTES:if(_===null||_==="")return new Uint8Array(0);if(typeof _!="string")break;return m.W.dec(_)}throw new Error}function w(P,_,B){if(_===null)return 0;switch(typeof _){case"number":if(Number.isInteger(_))return _;break;case"string":const U=P.findName(_);if(U||B)return U==null?void 0:U.no;break}throw new Error(`cannot decode enum ${P.typeName} from JSON: ${k(_)}`)}function E(P,_,B,U){var V;if(_===void 0)return _;if(_===0&&!B)return;if(U)return _;if(P.typeName=="google.protobuf.NullValue")return null;const z=P.findNumber(_);return(V=z==null?void 0:z.name)!==null&&V!==void 0?V:_}function $(P,_,B){if(_!==void 0)switch(P){case d.w.INT32:case d.w.SFIXED32:case d.w.SINT32:case d.w.FIXED32:case d.w.UINT32:return(0,p.hu)(typeof _=="number"),_!=0||B?_:void 0;case d.w.FLOAT:case d.w.DOUBLE:return(0,p.hu)(typeof _=="number"),Number.isNaN(_)?"NaN":_===Number.POSITIVE_INFINITY?"Infinity":_===Number.NEGATIVE_INFINITY?"-Infinity":_!==0||B?_:void 0;case d.w.STRING:return(0,p.hu)(typeof _=="string"),_.length>0||B?_:void 0;case d.w.BOOL:return(0,p.hu)(typeof _=="boolean"),_||B?_:void 0;case d.w.UINT64:case d.w.FIXED64:case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:return(0,p.hu)(typeof _=="bigint"||typeof _=="string"||typeof _=="number"),B||_!=0?_.toString(10):void 0;case d.w.BYTES:return(0,p.hu)(_ instanceof Uint8Array),B||_.byteLength>0?m.W.enc(_):void 0}}},504:(s,l,u)=>{u.d(l,{GD:()=>E,Rz:()=>d,Sm:()=>m,ll:()=>w,r1:()=>c,uA:()=>p,x1:()=>h});function c($){switch($.kind){case"field":return d($.name,$.oneof!==void 0);case"oneof":return p($.name);case"enum":case"message":case"service":{const P=$.file.proto.package,_=P===void 0?0:P.length+1,B=$.typeName.substring(_).replace(/\./g,"_");return w(E(B))}case"enum_value":{const P=$.parent.sharedPrefix;if(P===void 0)return $.name;const _=$.name.substring(P.length);return w(_)}case"rpc":{let P=$.name;return P.length==0?P:(P=P[0].toLowerCase()+P.substring(1),w(P))}}}function d($,P){const _=O($);return P?_:w(C(_))}function p($){return d($,!1)}const h=O;function m($,P){const _=b($)+"_";for(const B of P){if(!B.toLowerCase().startsWith(_))return;const U=B.substring(_.length);if(U.length==0||/^\d/.test(U))return}return _}function b($){return($.substring(0,1)+$.substring(1).replace(/[A-Z]/g,P=>"_"+P)).toLowerCase()}function O($){let P=!1;const _=[];for(let B=0;B<$.length;B++){let U=$.charAt(B);switch(U){case"_":P=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":_.push(U),P=!1;break;default:P&&(P=!1,U=U.toUpperCase()),_.push(U);break}}return _.join("")}const y=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","Object","bigint","number","boolean","string","object","globalThis","Uint8Array","Partial"]),v=new Set(["constructor","toString","toJSON","valueOf"]),S=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),k=$=>`${$}$`,C=$=>S.has($)?k($):$,w=$=>v.has($)?k($):$,E=$=>y.has($)?k($):$},493:(s,l,u)=>{u.d(l,{F:()=>h});var c=u(609),d=u(561);function p(m,b,O,y){var v;const S=(v=y==null?void 0:y.localName)!==null&&v!==void 0?v:b.substring(b.lastIndexOf(".")+1),k={[S]:function(C){m.util.initFields(this),m.util.initPartial(C,this)}}[S];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:m,typeName:b,fields:m.util.newFieldList(O),fromBinary(C,w){return new k().fromBinary(C,w)},fromJson(C,w){return new k().fromJson(C,w)},fromJsonString(C,w){return new k().fromJsonString(C,w)},equals(C,w){return m.util.equals(k,C,w)}}),k}function h(m,b,O,y){return{syntax:m,json:b,bin:O,util:y,makeMessageType(v,S,k){return p(this,v,S,k)},makeEnum:c.ut,makeEnumType:c.be,getEnumType:c.V3}}},781:(s,l,u)=>{u.d(l,{AA:()=>h,T1:()=>b,kY:()=>m});var c=u(465),d=u(79),p=u(210);function h(O,y,v){if(y===v)return!0;if(O==c.w.BYTES){if(!(y instanceof Uint8Array)||!(v instanceof Uint8Array)||y.length!==v.length)return!1;for(let S=0;S{u.d(l,{f:()=>m});var c=u(609),d=u(561),p=u(465),h=u(781);function m(){return{setEnumType:c.zg,initPartial(y,v){if(y===void 0)return;const S=v.getType();for(const k of S.fields.byMember()){const C=k.localName,w=v,E=y;if(E[C]!==void 0)switch(k.kind){case"oneof":const $=E[C].case;if($===void 0)continue;const P=k.findField($);let _=E[C].value;P&&P.kind=="message"&&!(_ instanceof P.T)?_=new P.T(_):P&&P.kind==="scalar"&&P.T===p.w.BYTES&&(_=O(_)),w[C]={case:$,value:_};break;case"scalar":case"enum":let B=E[C];k.T===p.w.BYTES&&(B=k.repeated?B.map(O):O(B)),w[C]=B;break;case"map":switch(k.V.kind){case"scalar":case"enum":if(k.V.T===p.w.BYTES)for(const[z,W]of Object.entries(E[C]))w[C][z]=O(W);else Object.assign(w[C],E[C]);break;case"message":const V=k.V.T;for(const z of Object.keys(E[C])){let W=E[C][z];V.fieldWrapper||(W=new V(W)),w[C][z]=W}break}break;case"message":const U=k.T;if(k.repeated)w[C]=E[C].map(V=>V instanceof U?V:new U(V));else if(E[C]!==void 0){const V=E[C];U.fieldWrapper?U.typeName==="google.protobuf.BytesValue"?w[C]=O(V):w[C]=V:w[C]=V instanceof U?V:new U(V)}break}}},equals(y,v,S){return v===S?!0:!v||!S?!1:y.fields.byMember().every(k=>{const C=v[k.localName],w=S[k.localName];if(k.repeated){if(C.length!==w.length)return!1;switch(k.kind){case"message":return C.every((E,$)=>k.T.equals(E,w[$]));case"scalar":return C.every((E,$)=>(0,h.AA)(k.T,E,w[$]));case"enum":return C.every((E,$)=>(0,h.AA)(p.w.INT32,E,w[$]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(C,w);case"enum":return(0,h.AA)(p.w.INT32,C,w);case"scalar":return(0,h.AA)(k.T,C,w);case"oneof":if(C.case!==w.case)return!1;const E=k.findField(C.case);if(E===void 0)return!0;switch(E.kind){case"message":return E.T.equals(C.value,w.value);case"enum":return(0,h.AA)(p.w.INT32,C.value,w.value);case"scalar":return(0,h.AA)(E.T,C.value,w.value)}throw new Error(`oneof cannot contain ${E.kind}`);case"map":const $=Object.keys(C).concat(Object.keys(w));switch(k.V.kind){case"message":const P=k.V.T;return $.every(B=>P.equals(C[B],w[B]));case"enum":return $.every(B=>(0,h.AA)(p.w.INT32,C[B],w[B]));case"scalar":const _=k.V.T;return $.every(B=>(0,h.AA)(_,C[B],w[B]))}break}})},clone(y){const v=y.getType(),S=new v,k=S;for(const C of v.fields.byMember()){const w=y[C.localName];let E;if(C.repeated)E=w.map(b);else if(C.kind=="map"){E=k[C.localName];for(const[$,P]of Object.entries(w))E[$]=b(P)}else C.kind=="oneof"?E=C.findField(w.case)?{case:w.case,value:b(w.value)}:{case:void 0}:E=b(w);k[C.localName]=E}return S}}}function b(y){if(y===void 0)return y;if(y instanceof d.v)return y.clone();if(y instanceof Uint8Array){const v=new Uint8Array(y.byteLength);return v.set(y),v}return y}function O(y){return y instanceof Uint8Array?y:new Uint8Array(y)}},236:(s,l,u)=>{u.d(l,{W:()=>p});let c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];for(let h=0;h>4,S=v,y=2;break;case 2:b[O++]=(S&15)<<4|(v&60)>>2,S=v,y=3;break;case 3:b[O++]=(S&3)<<6|v,y=0;break}}if(y==1)throw Error("invalid base64 string.");return b.subarray(0,O)},enc(h){let m="",b=0,O,y=0;for(let v=0;v>2],y=(O&3)<<4,b=1;break;case 1:m+=c[y|O>>4],y=(O&15)<<2,b=2;break;case 2:m+=c[y|O>>6],m+=c[O&63],b=0;break}return b&&(m+=c[y],m+="=",b==1&&(m+="=")),m}}},210:(s,l,u)=>{u.d(l,{q:()=>h});var c=u(120),d=u(818);function p(){const m=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof m.getBigInt64=="function"&&typeof m.getBigUint64=="function"&&typeof m.setBigInt64=="function"&&typeof m.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const v=BigInt("-9223372036854775808"),S=BigInt("9223372036854775807"),k=BigInt("0"),C=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(w){const E=typeof w=="bigint"?w:BigInt(w);if(E>S||EC||E(0,c.hu)(/^-?[0-9]+$/.test(v),`int64 invalid: ${v}`),y=v=>(0,c.hu)(/^[0-9]+$/.test(v),`uint64 invalid: ${v}`);return{zero:"0",supported:!1,parse(v){return typeof v!="string"&&(v=v.toString()),O(v),v},uParse(v){return typeof v!="string"&&(v=v.toString()),y(v),v},enc(v){return typeof v!="string"&&(v=v.toString()),O(v),(0,d.CZ)(v)},uEnc(v){return typeof v!="string"&&(v=v.toString()),y(v),(0,d.CZ)(v)},dec(v,S){return(0,d.Ak)(v,S)},uDec(v,S){return(0,d.Fd)(v,S)}}}const h=p()},850:(s,l,u)=>{u.d(l,{w:()=>E});var c=u(493),d=u(465),p=u(744);function h(){return Object.assign(Object.assign({},(0,p.gY)()),{writeMessage(P,_,B){const U=P.getType();for(const V of U.fields.byNumber()){let z,W=V.repeated,X=V.localName;if(V.oneof){const q=P[V.oneof.localName];if(q.case!==X)continue;z=q.value}else z=P[X];switch(V.kind){case"scalar":case"enum":let q=V.kind=="enum"?d.w.INT32:V.T;if(W)if(V.packed)(0,p.Jj)(_,q,V.no,z);else for(const Y of z)(0,p.NN)(_,q,V.no,Y,!0);else z!==void 0&&(0,p.NN)(_,q,V.no,z,!!V.oneof||V.opt);break;case"message":if(W)for(const Y of z)(0,p.oQ)(_,B,V,Y);else(0,p.oQ)(_,B,V,z);break;case"map":for(const[Y,Z]of Object.entries(z))(0,p.gQ)(_,B,V,Y,Z);break}}return B.writeUnknownFields&&this.writeUnknownFields(P,_),_}})}var m=u(432),b=u(120),O=u(814);function y(){return(0,O.b)((P,_)=>function(U,V,z){if(U.kind=="map"){const W={};switch(U.V.kind){case"scalar":for(const[q,Y]of Object.entries(V)){const Z=_(U.V.T,Y,!0);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break;case"message":for(const[q,Y]of Object.entries(V))W[q.toString()]=Y.toJson(z);break;case"enum":const X=U.V.T;for(const[q,Y]of Object.entries(V)){(0,b.hu)(Y===void 0||typeof Y=="number");const Z=P(X,Y,!0,z.enumAsInteger);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break}return z.emitDefaultValues||Object.keys(W).length>0?W:void 0}else if(U.repeated){const W=[];switch(U.kind){case"scalar":for(let X=0;X0?W:void 0}else switch(U.kind){case"scalar":return _(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues);case"enum":return P(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues,z.enumAsInteger);case"message":return V!==void 0?(0,m.E)(U.T,V).toJson(z):void 0}})}var v=u(433),S=u(501),k=u(781),C=u(215),w=u(504);const E=(0,c.F)("proto3",y(),h(),Object.assign(Object.assign({},(0,v.f)()),{newFieldList(P){return new S.i(P,$)},initFields(P){for(const _ of P.getType().fields.byMember()){if(_.opt)continue;const B=_.localName,U=P;if(_.repeated){U[B]=[];continue}switch(_.kind){case"oneof":U[B]={case:void 0};break;case"enum":U[B]=0;break;case"map":U[B]={};break;case"scalar":U[B]=(0,k.kY)(_.T,_.L);break}}}}));function $(P){var _,B,U,V;const z=[];let W;for(const X of typeof P=="function"?P():P){const q=X;if(q.localName=(0,w.Rz)(X.name,X.oneof!==void 0),q.jsonName=(_=X.jsonName)!==null&&_!==void 0?_:(0,w.x1)(X.name),q.repeated=(B=X.repeated)!==null&&B!==void 0?B:!1,X.kind=="scalar"&&(q.L=(U=X.L)!==null&&U!==void 0?U:d.p.BIGINT),X.oneof!==void 0){const Y=typeof X.oneof=="string"?X.oneof:X.oneof.name;(!W||W.name!=Y)&&(W=new C.o(Y)),q.oneof=W,W.addField(q)}X.kind=="message"&&(q.delimited=!1),q.packed=(V=X.packed)!==null&&V!==void 0?V:X.kind=="enum"||X.kind=="scalar"&&X.T!=d.w.BYTES&&X.T!=d.w.STRING,z.push(q)}return z}},328:(s,l,u)=>{u.d(l,{t:()=>c,w:()=>d});var c;(function(p){p[p.Unary=0]="Unary",p[p.ServerStreaming=1]="ServerStreaming",p[p.ClientStreaming=2]="ClientStreaming",p[p.BiDiStreaming=3]="BiDiStreaming"})(c||(c={}));var d;(function(p){p[p.NoSideEffects=1]="NoSideEffects",p[p.Idempotent=2]="Idempotent"})(d||(d={}))}},i={};function o(s){var l=i[s];if(l!==void 0)return l.exports;var u=i[s]={exports:{}};return r[s](u,u.exports,o),u.exports}o.d=(s,l)=>{for(var u in l)o.o(l,u)&&!o.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:l[u]})},o.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{Change:()=>yf,Client:()=>v6,ClientEventType:()=>Va,ClientStatus:()=>zc,Counter:()=>tv,DocEventType:()=>Ln,Document:()=>y6,DocumentSyncResultType:()=>sh,EventSourceDevPanel:()=>Yoe,EventSourceSDK:()=>Goe,Primitive:()=>Rr,StreamConnectionStatus:()=>vf,SyncMode:()=>Gu,Text:()=>ev,TimeTicket:()=>Er,Tree:()=>nv,converter:()=>Kl,default:()=>Xoe});var s;(function(A){A[A.Trivial=0]="Trivial",A[A.Debug=1]="Debug",A[A.Info=2]="Info",A[A.Warn=3]="Warn",A[A.Error=4]="Error",A[A.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;const u={trivial:(...A)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...A)},debug:(...A)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...A)},info:(...A)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...A)},warn:(...A)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...A):console.log("YORKIE W:",...A))},error:(...A)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...A):console.log("YORKIE E:",...A))},fatal:(A,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${A}`)},isEnabled:A=>l<=A};function c(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,A=>{const f=Math.random()*16|0;return(A==="x"?f:f&3|8).toString(16)})}const d=()=>{};class p{constructor(f){this.finalized=!1,this.observers=[];try{f(this)}catch(g){this.error(g)}}next(f){this.forEachObserver(g=>{g.next(f)})}error(f){this.forEachObserver(g=>{g.error(f)}),this.close(f)}complete(){this.forEachObserver(f=>{f.complete()}),this.close()}subscribe(f,g,T){let R;f||u.fatal("missing observer"),this.finalized&&u.fatal("observable is finalized due to previous error"),typeof f=="object"?R=f:R={next:f,error:g,complete:T},R.next===void 0&&(R.next=d),R.error===void 0&&(R.error=d),R.complete===void 0&&(R.complete=d);const H=c(),K=this.unsubscribeOne.bind(this,H);if(this.observers.push({subscriptionID:H,observer:R}),this.finalized)try{this.finalError?R.error(this.finalError):R.complete()}catch(oe){u.warn(oe)}return K}unsubscribeOne(f){var g;this.observers=(g=this.observers)===null||g===void 0?void 0:g.filter(T=>T.subscriptionID!==f)}forEachObserver(f){if(!this.finalized)for(let g=0;gf}}var m=o(328);function b(A,f){const g={};for(const[T,R]of Object.entries(A.methods)){const H=f(Object.assign(Object.assign({},R),{localName:T,service:A}));H!=null&&(g[T]=H)}return g}var O;(function(A){A[A.Canceled=1]="Canceled",A[A.Unknown=2]="Unknown",A[A.InvalidArgument=3]="InvalidArgument",A[A.DeadlineExceeded=4]="DeadlineExceeded",A[A.NotFound=5]="NotFound",A[A.AlreadyExists=6]="AlreadyExists",A[A.PermissionDenied=7]="PermissionDenied",A[A.ResourceExhausted=8]="ResourceExhausted",A[A.FailedPrecondition=9]="FailedPrecondition",A[A.Aborted=10]="Aborted",A[A.OutOfRange=11]="OutOfRange",A[A.Unimplemented=12]="Unimplemented",A[A.Internal=13]="Internal",A[A.Unavailable=14]="Unavailable",A[A.DataLoss=15]="DataLoss",A[A.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var y=o(561);function v(A){const f=O[A];return typeof f!="string"?A.toString():f[0].toLowerCase()+f.substring(1).replace(/[A-Z]/g,g=>"_"+g.toLowerCase())}class S extends Error{constructor(f,g=O.Unknown,T,R,H){super(k(f,g)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=f,this.code=g,this.metadata=new Headers(T??{}),this.details=R??[],this.cause=H}static from(f,g=O.Unknown){return f instanceof S?f:f instanceof Error?f.name=="AbortError"?new S(f.message,O.Canceled):new S(f.message,g,void 0,void 0,f):new S(String(f),g,void 0,void 0,f)}findDetails(f){const g="typeName"in f?{findMessage:R=>R===f.typeName?f:void 0}:f,T=[];for(const R of this.details){if(R instanceof y.v){g.findMessage(R.getType().typeName)&&T.push(R);continue}const H=g.findMessage(R.type);if(H)try{T.push(H.fromBinary(R.value))}catch{}}return T}}function k(A,f){return A.length?`[${v(f)}] ${A}`:`[${v(f)}]`}var C=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),R(oe,Ae,K.done,K.value)})}}function R(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},w=function(A){return this instanceof w?(this.v=A,this):new w(A)},E=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),R,H=[];return R={},K("next"),K("throw"),K("return"),R[Symbol.asyncIterator]=function(){return this},R;function K(ft){T[ft]&&(R[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof w?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}},$=function(A){var f,g;return f={},T("next"),T("throw",function(R){throw R}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(R,H){f[R]=A[R]?function(K){return(g=!g)?{value:w(A[R](K)),done:!1}:H?H(K):K}:H}};function P(A){return E(this,arguments,function*(){yield w(yield*$(C(A)))})}var _=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),R(oe,Ae,K.done,K.value)})}}function R(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},B=function(A){return this instanceof B?(this.v=A,this):new B(A)},U=function(A){var f,g;return f={},T("next"),T("throw",function(R){throw R}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(R,H){f[R]=A[R]?function(K){return(g=!g)?{value:B(A[R](K)),done:!1}:H?H(K):K}:H}},V=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),R,H=[];return R={},K("next"),K("throw"),K("return"),R[Symbol.asyncIterator]=function(){return this},R;function K(ft){T[ft]&&(R[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof B?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function z(A,f){return b(A,g=>{switch(g.kind){case m.t.Unary:return W(f,A,g);case m.t.ServerStreaming:return X(f,A,g);case m.t.ClientStreaming:return q(f,A,g);case m.t.BiDiStreaming:return Y(f,A,g);default:return null}})}function W(A,f,g){return async function(T,R){var H,K;const oe=await A.unary(f,g,R==null?void 0:R.signal,R==null?void 0:R.timeoutMs,R==null?void 0:R.headers,T,R==null?void 0:R.contextValues);return(H=R==null?void 0:R.onHeader)===null||H===void 0||H.call(R,oe.header),(K=R==null?void 0:R.onTrailer)===null||K===void 0||K.call(R,oe.trailer),oe.message}}function X(A,f,g){return function(T,R){return Z(A.stream(f,g,R==null?void 0:R.signal,R==null?void 0:R.timeoutMs,R==null?void 0:R.headers,P([T]),R==null?void 0:R.contextValues),R)}}function q(A,f,g){return async function(T,R){var H,K,oe,Ae,He,yt;const Ft=await A.stream(f,g,R==null?void 0:R.signal,R==null?void 0:R.timeoutMs,R==null?void 0:R.headers,T,R==null?void 0:R.contextValues);(He=R==null?void 0:R.onHeader)===null||He===void 0||He.call(R,Ft.header);let ft;try{for(var sn=!0,In=_(Ft.message),Nn;Nn=await In.next(),H=Nn.done,!H;sn=!0)Ae=Nn.value,sn=!1,ft=Ae}catch(sr){K={error:sr}}finally{try{!sn&&!H&&(oe=In.return)&&await oe.call(In)}finally{if(K)throw K.error}}if(!ft)throw new S("protocol error: missing response message",O.Internal);return(yt=R==null?void 0:R.onTrailer)===null||yt===void 0||yt.call(R,Ft.trailer),ft}}function Y(A,f,g){return function(T,R){return Z(A.stream(f,g,R==null?void 0:R.signal,R==null?void 0:R.timeoutMs,R==null?void 0:R.headers,T,R==null?void 0:R.contextValues),R)}}function Z(A,f){const g=function(){var T,R;return V(this,arguments,function*(){const H=yield B(A);(T=f==null?void 0:f.onHeader)===null||T===void 0||T.call(f,H.header),yield B(yield*U(_(H.message))),(R=f==null?void 0:f.onTrailer)===null||R===void 0||R.call(f,H.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>g.next()})}}function j(){return{get(A){return A.id in this?this[A.id]:A.defaultValue},set(A,f){return this[A.id]=f,this},delete(A){return delete this[A.id],this}}}function se(A){var f;const g=Object.assign({},A);return(f=g.ignoreUnknownFields)!==null&&f!==void 0||(g.ignoreUnknownFields=!0),g}function ve(A,f,g,T){const R=f?G(A.I,T):ce(A.I,g);return{parse:(f?G(A.O,T):ce(A.O,g)).parse,serialize:R.serialize}}function G(A,f){return{parse(g){try{return A.fromBinary(g,f)}catch(T){const R=T instanceof Error?T.message:String(T);throw new S(`parse binary: ${R}`,O.InvalidArgument)}},serialize(g){try{return g.toBinary(f)}catch(T){const R=T instanceof Error?T.message:String(T);throw new S(`serialize binary: ${R}`,O.Internal)}}}}function ce(A,f){var g,T;const R=(g=f==null?void 0:f.textEncoder)!==null&&g!==void 0?g:new TextEncoder,H=(T=f==null?void 0:f.textDecoder)!==null&&T!==void 0?T:new TextDecoder,K=se(f);return{parse(oe){try{const Ae=H.decode(oe);return A.fromJsonString(Ae,K)}catch(Ae){throw S.from(Ae,O.InvalidArgument)}},serialize(oe){try{const Ae=oe.toJsonString(K);return R.encode(Ae)}catch(Ae){throw S.from(Ae,O.Internal)}}}}function ge(...A){const f=new AbortController,g=A.filter(R=>R!==void 0).concat(f.signal);for(const R of g){if(R.aborted){T.apply(R);break}R.addEventListener("abort",T)}function T(){f.signal.aborted||f.abort(xe(this));for(const R of g)R.removeEventListener("abort",T)}return f}function ue(A){const f=new AbortController,g=()=>{f.abort(new S("the operation timed out",O.DeadlineExceeded))};let T;return A!==void 0&&(A<=0?g():T=setTimeout(g,A)),{signal:f.signal,cleanup:()=>clearTimeout(T)}}function xe(A){if(!A.aborted)return;if(A.reason!==void 0)return A.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function Ne(A,f){return f instanceof y.v?f:new A(f)}function Ve(A,f){function g(T){return T.done===!0?T:{done:T.done,value:Ne(A,T.value)}}return{[Symbol.asyncIterator](){const T=f[Symbol.asyncIterator](),R={next:()=>T.next().then(g)};return T.throw!==void 0&&(R.throw=H=>T.throw(H).then(g)),T.return!==void 0&&(R.return=H=>T.return(H).then(g)),R}}}function Je(A){const f=ye(A.next,A.interceptors),[g,T,R]=Ge(A),H=Object.assign(Object.assign({},A.req),{message:Ne(A.req.method.I,A.req.message),signal:g});return f(H).then(K=>(R(),K),T)}function Me(A){const f=ye(A.next,A.interceptors),[g,T,R]=Ge(A),H=Object.assign(Object.assign({},A.req),{message:Ve(A.req.method.I,A.req.message),signal:g});let K=!1;return g.addEventListener("abort",function(){var oe,Ae;const He=A.req.message[Symbol.asyncIterator]();K||(oe=He.throw)===null||oe===void 0||oe.call(He,this.reason).catch(()=>{}),(Ae=He.return)===null||Ae===void 0||Ae.call(He).catch(()=>{})}),f(H).then(oe=>Object.assign(Object.assign({},oe),{message:{[Symbol.asyncIterator](){const Ae=oe.message[Symbol.asyncIterator]();return{next(){return Ae.next().then(He=>(He.done==!0&&(K=!0,R()),He),T)}}}}}),T)}function Ge(A){const{signal:f,cleanup:g}=ue(A.timeoutMs),T=ge(A.signal,f);return[T.signal,function(H){const K=S.from(f.aborted?xe(f):H);return T.abort(K),g(),Promise.reject(K)},function(){g(),T.abort()}]}function ye(A,f){var g;return(g=f==null?void 0:f.concat().reverse().reduce((T,R)=>R(T),A))!==null&&g!==void 0?g:A}function ze(A,f,g){const T=typeof f=="string"?f:f.typeName,R=typeof g=="string"?g:g.name;return A.toString().replace(/\/?$/,`/${T}/${R}`)}function $e(A){let f,g=new Uint8Array(0);function T(R){const H=new Uint8Array(g.length+R.length);H.set(g),H.set(R,g.length),g=H}return new ReadableStream({start(){f=A.getReader()},async pull(R){let H;for(;;){if(H===void 0&&g.byteLength>=5){let Ae=0;for(let He=1;He<5;He++)Ae=(Ae<<8)+g[He];H={flags:g[0],length:Ae}}if(H!==void 0&&g.byteLength>=H.length+5)break;const oe=await f.read();if(oe.done)break;T(oe.value)}if(H===void 0){if(g.byteLength==0){R.close();return}R.error(new S("premature end of stream",O.DataLoss));return}const K=g.subarray(5,5+H.length);g=g.subarray(5+H.length),R.enqueue({flags:H.flags,data:K})}})}function We(A,f){const g=new Uint8Array(f.length+5);g.set(f,5);const T=new DataView(g.buffer,g.byteOffset,g.byteLength);return T.setUint8(0,A),T.setUint32(1,f.length),g}const dt="Content-Type",Be="Grpc-Timeout",re="Grpc-Status",ee="Grpc-Message",J="Grpc-Status-Details-Bin",Re="User-Agent",Le="X-User-Agent",De="X-Grpc-Web",ie="application/grpc-web+proto",fe="application/grpc-web+json";function de(A,f,g,T){const R=new Headers(g??{});return R.set(dt,A?ie:fe),R.set(De,"1"),R.set(Le,"connect-es/1.2.0"),T&&R.set(Re,"connect-es/1.2.0"),f!==void 0&&R.set(Be,`${f}m`),R}function Oe(A){switch(A){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}}var Te=o(850),rt=o(733);class pt extends y.v{constructor(f){super(),this.code=0,this.message="",this.details=[],Te.w.util.initPartial(f,this)}static fromBinary(f,g){return new pt().fromBinary(f,g)}static fromJson(f,g){return new pt().fromJson(f,g)}static fromJsonString(f,g){return new pt().fromJsonString(f,g)}static equals(f,g){return Te.w.util.equals(pt,f,g)}}pt.runtime=Te.w,pt.typeName="google.rpc.Status",pt.fields=Te.w.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:rt.I,repeated:!0}]);var xt=o(236);function et(A,f,g){try{const T=xt.W.dec(A);return f?f.fromBinary(T,g):T}catch(T){throw S.from(T,O.DataLoss)}}const vt="0";function qe(A){var f;const g=A.get(J);if(g!=null){const R=et(g,pt);if(R.code==0)return;const H=new S(R.message,R.code,A);return H.details=R.details.map(K=>({type:K.typeUrl.substring(K.typeUrl.lastIndexOf("/")+1),value:K.value})),H}const T=A.get(re);if(T!=null){if(T===vt)return;const R=parseInt(T,10);return R in O?new S(decodeURIComponent((f=A.get(ee))!==null&&f!==void 0?f:""),R,A):new S(`invalid grpc-status: ${T}`,O.Internal,A)}}function it(A,f){var g;if(A>=200&&A<300){const T=qe(f);if(T)throw T;return{foundStatus:f.has(re)}}throw new S(decodeURIComponent((g=f.get(ee))!==null&&g!==void 0?g:`HTTP ${A}`),Oe(A),f)}const Et=128;function Nt(A){const f=new Headers,g=new TextDecoder().decode(A).split(`\r -`);for(const T of g){if(T==="")continue;const R=T.indexOf(":");if(R>0){const H=T.substring(0,R).trim(),K=T.substring(R+1).trim();f.append(H,K)}}return f}function on(A,f){const g=qe(A);if(g)throw f.forEach((T,R)=>{g.metadata.append(R,T)}),g}function dn(){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.")}}var pn=function(A){return this instanceof pn?(this.v=A,this):new pn(A)},zn=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),R,H=[];return R={},K("next"),K("throw"),K("return"),R[Symbol.asyncIterator]=function(){return this},R;function K(ft){T[ft]&&(R[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof pn?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function Se(A){var f;dn();const g=(f=A.useBinaryFormat)!==null&&f!==void 0?f:!0;return{async unary(T,R,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(R,g,A.jsonOptions,A.binaryOptions);return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,await Je({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!1,service:T,method:R,url:ze(A.baseUrl,T,R),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async sn=>{var In;const sr=await((In=A.fetch)!==null&&In!==void 0?In:globalThis.fetch)(sn.url,Object.assign(Object.assign({},sn.init),{headers:sn.header,signal:sn.signal,body:We(0,Ft(sn.message))}));if(it(sr.status,sr.headers),!sr.body)throw"missing response body";const lo=$e(sr.body).getReader();let $n,ni;for(;;){const qr=await lo.read();if(qr.done)break;const{flags:vi,data:Ef}=qr.value;if(vi===Et){if($n!==void 0)throw"extra trailer";$n=Nt(Ef);continue}if(ni!==void 0)throw"extra message";ni=ft(Ef)}if($n===void 0)throw"missing trailer";if(on($n,sr.headers),ni===void 0)throw"missing message";return{stream:!1,header:sr.headers,message:ni,trailer:$n}}})},async stream(T,R,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(R,g,A.jsonOptions,A.binaryOptions);function sn(Nn,sr,lo,$n){return zn(this,arguments,function*(){const qr=$e(Nn).getReader();if(sr){if(!(yield pn(qr.read())).done)throw"extra data for trailers-only";return yield pn(void 0)}let vi=!1;for(;;){const Ef=yield pn(qr.read());if(Ef.done)break;const{flags:lh,data:u0}=Ef.value;if((lh&Et)===Et){if(vi)throw"extra trailer";vi=!0;const E6=Nt(u0);on(E6,$n),E6.forEach((Koe,Joe)=>lo.set(Joe,Koe));continue}if(vi)throw"extra message";yield yield pn(ft(u0))}if(!vi)throw"missing trailer"})}async function In(Nn){if(R.kind!=m.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const sr=await Nn[Symbol.asyncIterator]().next();if(sr.done==!0)throw"missing request message";return We(0,Ft(sr.value))}return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,Me({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!0,service:T,method:R,url:ze(A.baseUrl,T,R),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async Nn=>{var sr;const $n=await((sr=A.fetch)!==null&&sr!==void 0?sr:globalThis.fetch)(Nn.url,Object.assign(Object.assign({},Nn.init),{headers:Nn.header,signal:Nn.signal,body:await In(Nn.message)})),{foundStatus:ni}=it($n.status,$n.headers);if(!$n.body)throw"missing response body";const qr=new Headers;return Object.assign(Object.assign({},Nn),{header:$n.headers,trailer:qr,message:sn($n.body,ni,qr,$n.headers)})}})}}}var _e=o(295),pe=o(646);/** + */(function(i,o){e.exports=o()})(RS,()=>(()=>{var r={646:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:p}=u(532),h=c.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"}]),m=c.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"}]),b=c.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:W},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Be}}]),O=c.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:re},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:y,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:J},{no:6,name:"is_removed",kind:"scalar",T:8}]),y=c.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:v},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:S,repeated:!0},{no:4,name:"presence_change",kind:"message",T:We}]),v=c.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}]),S=c.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:k,oneof:"body"},{no:2,name:"add",kind:"message",T:C,oneof:"body"},{no:3,name:"move",kind:"message",T:w,oneof:"body"},{no:4,name:"remove",kind:"message",T:E,oneof:"body"},{no:5,name:"edit",kind:"message",T:$,oneof:"body"},{no:6,name:"select",kind:"message",T:P,oneof:"body"},{no:7,name:"style",kind:"message",T:_,oneof:"body"},{no:8,name:"increase",kind:"message",T:B,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:U,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:V,oneof:"body"}]),k=c.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Set"}),C=c.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Add"}),w=c.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Move"}),E=c.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Remove"}),$=c.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:J},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),P=c.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Select"}),_=c.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}}],{localName:"Operation_Style"}),B=c.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"value",kind:"message",T:z},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Increase"}),U=c.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Je},{no:3,name:"to",kind:"message",T:Je},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"contents",kind:"message",T:De,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeEdit"}),V=c.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Je},{no:3,name:"to",kind:"message",T:Je},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeStyle"}),z=c.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"moved_at",kind:"message",T:J},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"type",kind:"enum",T:c.getEnumType(h)},{no:5,name:"value",kind:"scalar",T:12}]),W=c.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:X,oneof:"body"},{no:2,name:"json_array",kind:"message",T:q,oneof:"body"},{no:3,name:"primitive",kind:"message",T:Y,oneof:"body"},{no:5,name:"text",kind:"message",T:Z,oneof:"body"},{no:6,name:"counter",kind:"message",T:j,oneof:"body"},{no:7,name:"tree",kind:"message",T:se,oneof:"body"}]),X=c.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:ve,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONObject"}),q=c.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:G,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONArray"}),Y=c.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Primitive"}),Z=c.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:ge,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Text"}),j=c.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Counter"}),se=c.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:xe,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Tree"}),ve=c.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:W}]),G=c.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:G},{no:2,name:"element",kind:"message",T:W}]),ce=c.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:J}]),ge=c.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:ue},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"ins_prev_id",kind:"message",T:ue},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),ue=c.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),xe=c.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Ve},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:J},{no:5,name:"ins_prev_id",kind:"message",T:Ve},{no:6,name:"ins_next_id",kind:"message",T:Ve},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),De=c.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:xe,repeated:!0}]),Ve=c.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),Je=c.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Ve},{no:2,name:"left_sibling_id",kind:"message",T:Ve}]),Me=c.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:p}]),Ge=c.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:p},{no:9,name:"updated_at",kind:"message",T:p}]),ye=c.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:d},{no:2,name:"auth_webhook_url",kind:"message",T:d},{no:3,name:"auth_webhook_methods",kind:"message",T:ze},{no:4,name:"client_deactivate_threshold",kind:"message",T:d}]),ze=c.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),$e=c.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:p},{no:5,name:"accessed_at",kind:"message",T:p},{no:6,name:"updated_at",kind:"message",T:p}]),We=c.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(dt)},{no:2,name:"presence",kind:"message",T:Be}]),dt=c.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"}]),Be=c.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),re=c.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ee=c.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),J=c.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}]),Re=c.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Le=c.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Re}]);l.ValueType=h,l.DocEventType=m,l.Snapshot=b,l.ChangePack=O,l.Change=y,l.ChangeID=v,l.Operation=S,l.Operation_Set=k,l.Operation_Add=C,l.Operation_Move=w,l.Operation_Remove=E,l.Operation_Edit=$,l.Operation_Select=P,l.Operation_Style=_,l.Operation_Increase=B,l.Operation_TreeEdit=U,l.Operation_TreeStyle=V,l.JSONElementSimple=z,l.JSONElement=W,l.JSONElement_JSONObject=X,l.JSONElement_JSONArray=q,l.JSONElement_Primitive=Y,l.JSONElement_Text=Z,l.JSONElement_Counter=j,l.JSONElement_Tree=se,l.RHTNode=ve,l.RGANode=G,l.NodeAttr=ce,l.TextNode=ge,l.TextNodeID=ue,l.TreeNode=xe,l.TreeNodes=De,l.TreeNodeID=Ve,l.TreePos=Je,l.User=Me,l.Project=Ge,l.UpdatableProjectFields=ye,l.UpdatableProjectFields_AuthWebhookMethods=ze,l.DocumentSummary=$e,l.PresenceChange=We,l.PresenceChange_ChangeType=dt,l.Presence=Be,l.Checkpoint=re,l.TextNodePos=ee,l.TimeTicket=J,l.DocEventBody=Re,l.DocEvent=Le},295:(s,l,u)=>{const{ActivateClientRequest:c,ActivateClientResponse:d,AttachDocumentRequest:p,AttachDocumentResponse:h,BroadcastRequest:m,BroadcastResponse:b,DeactivateClientRequest:O,DeactivateClientResponse:y,DetachDocumentRequest:v,DetachDocumentResponse:S,PushPullChangesRequest:k,PushPullChangesResponse:C,RemoveDocumentRequest:w,RemoveDocumentResponse:E,WatchDocumentRequest:$,WatchDocumentResponse:P}=u(176),{MethodKind:_}=u(532),B={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:c,O:d,kind:_.Unary},deactivateClient:{name:"DeactivateClient",I:O,O:y,kind:_.Unary},attachDocument:{name:"AttachDocument",I:p,O:h,kind:_.Unary},detachDocument:{name:"DetachDocument",I:v,O:S,kind:_.Unary},removeDocument:{name:"RemoveDocument",I:w,O:E,kind:_.Unary},pushPullChanges:{name:"PushPullChanges",I:k,O:C,kind:_.Unary},watchDocument:{name:"WatchDocument",I:$,O:P,kind:_.ServerStreaming},broadcast:{name:"Broadcast",I:m,O:b,kind:_.Unary}}};l.V=B},176:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c}=u(532),{ChangePack:d,DocEvent:p}=u(646),h=c.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),m=c.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),b=c.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:2,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9}]),O=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),y=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:3,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),v=c.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),S=c.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{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:d},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),k=c.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:d}]),C=c.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:3,name:"document_key",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),w=c.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:E,oneof:"body"},{no:2,name:"event",kind:"message",T:p,oneof:"body"}]),E=c.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),$=c.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{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:d}]),P=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),_=c.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{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:d},{no:4,name:"push_only",kind:"scalar",T:8}]),B=c.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),U=c.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:6,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:5,name:"document_key",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}]),V=c.makeMessageType("yorkie.v1.BroadcastResponse",[]);l.ActivateClientRequest=h,l.ActivateClientResponse=m,l.DeactivateClientRequest=b,l.DeactivateClientResponse=O,l.AttachDocumentRequest=y,l.AttachDocumentResponse=v,l.DetachDocumentRequest=S,l.DetachDocumentResponse=k,l.WatchDocumentRequest=C,l.WatchDocumentResponse=w,l.WatchDocumentResponse_Initialization=E,l.RemoveDocumentRequest=$,l.RemoveDocumentResponse=P,l.PushPullChangesRequest=_,l.PushPullChangesResponse=B,l.BroadcastRequest=U,l.BroadcastResponse=V},79:(s,l,u)=>{u.d(l,{Lt:()=>m,TD:()=>h,oP:()=>b});var c=u(818),d=u(120),p=u(210),h;(function(O){O[O.Varint=0]="Varint",O[O.Bit64=1]="Bit64",O[O.LengthDelimited=2]="LengthDelimited",O[O.StartGroup=3]="StartGroup",O[O.EndGroup=4]="EndGroup",O[O.Bit32=5]="Bit32"})(h||(h={}));class m{constructor(y){this.stack=[],this.textEncoder=y??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let y=0;for(let k=0;k>>0)}raw(y){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(y),this}uint32(y){for((0,d.fp)(y);y>127;)this.buf.push(y&127|128),y=y>>>7;return this.buf.push(y),this}int32(y){return(0,d.ug)(y),(0,c.fC)(y,this.buf),this}bool(y){return this.buf.push(y?1:0),this}bytes(y){return this.uint32(y.byteLength),this.raw(y)}string(y){let v=this.textEncoder.encode(y);return this.uint32(v.byteLength),this.raw(v)}float(y){(0,d.E_)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setFloat32(0,y,!0),this.raw(v)}double(y){let v=new Uint8Array(8);return new DataView(v.buffer).setFloat64(0,y,!0),this.raw(v)}fixed32(y){(0,d.fp)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setUint32(0,y,!0),this.raw(v)}sfixed32(y){(0,d.ug)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setInt32(0,y,!0),this.raw(v)}sint32(y){return(0,d.ug)(y),y=(y<<1^y>>31)>>>0,(0,c.fC)(y,this.buf),this}sfixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.enc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}fixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.uEnc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}int64(y){let v=p.q.enc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}sint64(y){let v=p.q.enc(y),S=v.hi>>31,k=v.lo<<1^S,C=(v.hi<<1|v.lo>>>31)^S;return(0,c._y)(k,C,this.buf),this}uint64(y){let v=p.q.uEnc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}}class b{constructor(y,v){this.varint64=c.sg,this.uint32=c.jI,this.buf=y,this.len=y.length,this.pos=0,this.view=new DataView(y.buffer,y.byteOffset,y.byteLength),this.textDecoder=v??new TextDecoder}tag(){let y=this.uint32(),v=y>>>3,S=y&7;if(v<=0||S<0||S>5)throw new Error("illegal tag: field no "+v+" wire type "+S);return[v,S]}skip(y){let v=this.pos;switch(y){case h.Varint:for(;this.buf[this.pos++]&128;);break;case h.Bit64:this.pos+=4;case h.Bit32:this.pos+=4;break;case h.LengthDelimited:let S=this.uint32();this.pos+=S;break;case h.StartGroup:let k;for(;(k=this.tag()[1])!==h.EndGroup;)this.skip(k);break;default:throw new Error("cant skip wire type "+y)}return this.assertBounds(),this.buf.subarray(v,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let y=this.uint32();return y>>>1^-(y&1)}int64(){return p.q.dec(...this.varint64())}uint64(){return p.q.uDec(...this.varint64())}sint64(){let[y,v]=this.varint64(),S=-(y&1);return y=(y>>>1|(v&1)<<31)^S,v=v>>>1^S,p.q.dec(y,v)}bool(){let[y,v]=this.varint64();return y!==0||v!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return p.q.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return p.q.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 y=this.uint32(),v=this.pos;return this.pos+=y,this.assertBounds(),this.buf.subarray(v,v+y)}string(){return this.textDecoder.decode(this.bytes())}}},465:(s,l,u)=>{u.d(l,{p:()=>d,w:()=>c});var c;(function(p){p[p.DOUBLE=1]="DOUBLE",p[p.FLOAT=2]="FLOAT",p[p.INT64=3]="INT64",p[p.UINT64=4]="UINT64",p[p.INT32=5]="INT32",p[p.FIXED64=6]="FIXED64",p[p.FIXED32=7]="FIXED32",p[p.BOOL=8]="BOOL",p[p.STRING=9]="STRING",p[p.BYTES=12]="BYTES",p[p.UINT32=13]="UINT32",p[p.SFIXED32=15]="SFIXED32",p[p.SFIXED64=16]="SFIXED64",p[p.SINT32=17]="SINT32",p[p.SINT64=18]="SINT64"})(c||(c={}));var d;(function(p){p[p.BIGINT=0]="BIGINT",p[p.STRING=1]="STRING"})(d||(d={}))},733:(s,l,u)=>{u.d(l,{I:()=>p});var c=u(561),d=u(850);class p extends c.v{constructor(m){super(),this.typeUrl="",this.value=new Uint8Array(0),d.w.util.initPartial(m,this)}toJson(m){var b;if(this.typeUrl==="")return{};const O=this.typeUrlToName(this.typeUrl),y=(b=m==null?void 0:m.typeRegistry)===null||b===void 0?void 0:b.findMessage(O);if(!y)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let S=y.fromBinary(this.value).toJson(m);return(O.startsWith("google.protobuf.")||S===null||Array.isArray(S)||typeof S!="object")&&(S={value:S}),S["@type"]=this.typeUrl,S}fromJson(m,b){var O;if(m===null||Array.isArray(m)||typeof m!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${m===null?"null":Array.isArray(m)?"array":typeof m}`);if(Object.keys(m).length==0)return this;const y=m["@type"];if(typeof y!="string"||y=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const v=this.typeUrlToName(y),S=(O=b==null?void 0:b.typeRegistry)===null||O===void 0?void 0:O.findMessage(v);if(!S)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${y} is not in the type registry`);let k;if(v.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(m,"value"))k=S.fromJson(m.value,b);else{const C=Object.assign({},m);delete C["@type"],k=S.fromJson(C,b)}return this.packFrom(k),this}packFrom(m){this.value=m.toBinary(),this.typeUrl=this.typeNameToUrl(m.getType().typeName)}unpackTo(m){return this.is(m.getType())?(m.fromBinary(this.value),!0):!1}unpack(m){if(this.typeUrl==="")return;const b=m.findMessage(this.typeUrlToName(this.typeUrl));if(b)return b.fromBinary(this.value)}is(m){if(this.typeUrl==="")return!1;const b=this.typeUrlToName(this.typeUrl);let O="";return typeof m=="string"?O=m:O=m.typeName,b===O}typeNameToUrl(m){return`type.googleapis.com/${m}`}typeUrlToName(m){if(!m.length)throw new Error(`invalid type url: ${m}`);const b=m.lastIndexOf("/"),O=b>=0?m.substring(b+1):m;if(!O.length)throw new Error(`invalid type url: ${m}`);return O}static pack(m){const b=new p;return b.packFrom(m),b}static fromBinary(m,b){return new p().fromBinary(m,b)}static fromJson(m,b){return new p().fromJson(m,b)}static fromJsonString(m,b){return new p().fromJsonString(m,b)}static equals(m,b){return d.w.util.equals(p,m,b)}}p.runtime=d.w,p.typeName="google.protobuf.Any",p.fields=d.w.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}])},818:(s,l,u)=>{u.d(l,{Ak:()=>m,CZ:()=>h,Fd:()=>b,_y:()=>d,fC:()=>k,jI:()=>C,sg:()=>c});function c(){let w=0,E=0;for(let P=0;P<28;P+=7){let _=this.buf[this.pos++];if(w|=(_&127)<>4,!($&128))return this.assertBounds(),[w,E];for(let P=3;P<=31;P+=7){let _=this.buf[this.pos++];if(E|=(_&127)<>>B,V=!(!(U>>>7)&&E==0),z=(V?U|128:U)&255;if($.push(z),!V)return}const P=w>>>28&15|(E&7)<<4,_=!!(E>>3);if($.push((_?P|128:P)&255),!!_){for(let B=3;B<31;B=B+7){const U=E>>>B,V=!!(U>>>7),z=(V?U|128:U)&255;if($.push(z),!V)return}$.push(E>>>31&1)}}const p=4294967296;function h(w){const E=w[0]==="-";E&&(w=w.slice(1));const $=1e6;let P=0,_=0;function B(U,V){const z=Number(w.slice(U,V));_*=$,P=P*$+z,P>=p&&(_=_+(P/p|0),P=P%p)}return B(-24,-18),B(-18,-12),B(-12,-6),B(-6),E?v(P,_):y(P,_)}function m(w,E){let $=y(w,E);const P=$.hi&2147483648;P&&($=v($.lo,$.hi));const _=b($.lo,$.hi);return P?"-"+_:_}function b(w,E){if({lo:w,hi:E}=O(w,E),E<=2097151)return String(p*E+w);const $=w&16777215,P=(w>>>24|E<<8)&16777215,_=E>>16&65535;let B=$+P*6777216+_*6710656,U=P+_*8147497,V=_*2;const z=1e7;return B>=z&&(U+=Math.floor(B/z),B%=z),U>=z&&(V+=Math.floor(U/z),U%=z),V.toString()+S(U)+S(B)}function O(w,E){return{lo:w>>>0,hi:E>>>0}}function y(w,E){return{lo:w|0,hi:E|0}}function v(w,E){return E=~E,w?w=~w+1:E+=1,y(w,E)}const S=w=>{const E=String(w);return"0000000".slice(E.length)+E};function k(w,E){if(w>=0){for(;w>127;)E.push(w&127|128),w=w>>>7;E.push(w)}else{for(let $=0;$<9;$++)E.push(w&127|128),w=w>>7;E.push(1)}}function C(){let w=this.buf[this.pos++],E=w&127;if(!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<7,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<14,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<21,!(w&128))return this.assertBounds(),E;w=this.buf[this.pos++],E|=(w&15)<<28;for(let $=5;w&128&&$<10;$++)w=this.buf[this.pos++];if(w&128)throw new Error("invalid varint");return this.assertBounds(),E>>>0}},532:(s,l,u)=>{u.r(l),u.d(l,{Any:()=>Jp.I,Api:()=>Ba,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Yo,BytesValue:()=>Jt,CodeGeneratorRequest:()=>Zo,CodeGeneratorResponse:()=>fi,CodeGeneratorResponse_Feature:()=>Zl,CodeGeneratorResponse_File:()=>Co,DescriptorProto:()=>ue,DescriptorProto_ExtensionRange:()=>xe,DescriptorProto_ReservedRange:()=>De,DoubleValue:()=>Qo,Duration:()=>Er,Edition:()=>G,Empty:()=>Ts,Enum:()=>Gn,EnumDescriptorProto:()=>We,EnumDescriptorProto_EnumReservedRange:()=>dt,EnumOptions:()=>pt,EnumValue:()=>Fa,EnumValueDescriptorProto:()=>Be,EnumValueOptions:()=>xt,ExtensionRangeOptions:()=>Ve,ExtensionRangeOptions_Declaration:()=>Me,ExtensionRangeOptions_VerificationState:()=>Je,FeatureSet:()=>Dt,FeatureSetDefaults:()=>pe,FeatureSetDefaults_FeatureSetEditionDefault:()=>lt,FeatureSet_EnumType:()=>dn,FeatureSet_FieldPresence:()=>on,FeatureSet_JsonFormat:()=>_e,FeatureSet_MessageEncoding:()=>Se,FeatureSet_RepeatedFieldEncoding:()=>pn,FeatureSet_Utf8Validation:()=>zn,Field:()=>Xo,FieldDescriptorProto:()=>Ge,FieldDescriptorProto_Label:()=>ze,FieldDescriptorProto_Type:()=>ye,FieldMask:()=>ws,FieldOptions:()=>Ne,FieldOptions_CType:()=>ie,FieldOptions_EditionDefault:()=>Te,FieldOptions_JSType:()=>fe,FieldOptions_OptionRetention:()=>de,FieldOptions_OptionTargetType:()=>Oe,Field_Cardinality:()=>Bc,Field_Kind:()=>Fc,FileDescriptorProto:()=>ge,FileDescriptorSet:()=>ce,FileOptions:()=>J,FileOptions_OptimizeMode:()=>Re,FloatValue:()=>xo,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>Ct,Int32Value:()=>_r,Int64Value:()=>Vi,ListValue:()=>so,LongType:()=>p.p,Message:()=>se.v,MessageOptions:()=>Le,Method:()=>ha,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>ve.w,MethodKind:()=>ve.t,MethodOptions:()=>vt,MethodOptions_IdempotencyLevel:()=>qe,Mixin:()=>Ua,NullValue:()=>ao,OneofDescriptorProto:()=>$e,OneofOptions:()=>rt,Option:()=>Ci,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>et,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>fa,StringValue:()=>Hi,Struct:()=>ko,Syntax:()=>pa,Timestamp:()=>da,Type:()=>xi,UInt32Value:()=>jr,UInt64Value:()=>br,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>Et,Value:()=>Ur,Version:()=>qo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>YO,createRegistryFromDescriptors:()=>gf,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>P,protoInt64:()=>_.q,toPlainMessage:()=>th});var c=u(850),d=u(493),p=u(465),h=u(744);function m(){return Object.assign(Object.assign({},(0,h.gY)()),{writeMessage(F,x,M){const le=F.getType();let be;try{for(be of le.fields.byNumber()){let Pe,je=be.repeated,ct=be.localName;if(be.oneof){const Ze=F[be.oneof.localName];if(Ze.case!==ct)continue;Pe=Ze.value}else if(Pe=F[ct],Pe===void 0&&!be.oneof&&!be.opt)throw new Error(`cannot encode field ${le.typeName}.${be.name} to binary: required field not set`);switch(be.kind){case"scalar":case"enum":let Ze=be.kind=="enum"?p.w.INT32:be.T;if(je)if(be.packed)(0,h.Jj)(x,Ze,be.no,Pe);else for(const Ot of Pe)(0,h.NN)(x,Ze,be.no,Ot,!0);else Pe!==void 0&&(0,h.NN)(x,Ze,be.no,Pe,!0);break;case"message":if(je)for(const Ot of Pe)(0,h.oQ)(x,M,be,Ot);else(0,h.oQ)(x,M,be,Pe);break;case"map":for(const[Ot,Pt]of Object.entries(Pe))(0,h.gQ)(x,M,be,Ot,Pt);break}}}catch(Pe){let je=be?`cannot encode field ${le.typeName}.${be==null?void 0:be.name} to binary`:`cannot encode message ${le.typeName} to binary`,ct=Pe instanceof Error?Pe.message:String(Pe);throw new Error(je+(ct.length>0?`: ${ct}`:""))}return M.writeUnknownFields&&this.writeUnknownFields(F,x),x}})}var b=u(433),O=u(501),y=u(215),v=u(504),S=u(432),k=u(120),C=u(814);function w(){return(0,C.b)((F,x)=>function(le,be,Pe){if(le.kind=="map"){const je={};switch(le.V.kind){case"scalar":for(const[Ze,Ot]of Object.entries(be)){const Pt=x(le.V.T,Ot,!0);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break;case"message":for(const[Ze,Ot]of Object.entries(be))je[Ze.toString()]=Ot.toJson(Pe);break;case"enum":const ct=le.V.T;for(const[Ze,Ot]of Object.entries(be)){(0,k.hu)(Ot===void 0||typeof Ot=="number");const Pt=F(ct,Ot,!0,Pe.enumAsInteger);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break}return Pe.emitDefaultValues||Object.keys(je).length>0?je:void 0}else if(le.repeated){const je=[];switch(le.kind){case"scalar":for(let ct=0;ct0?je:void 0}else{if(be===void 0){if(!le.oneof&&!le.opt)throw"required field not set";return}switch(le.kind){case"scalar":return x(le.T,be,!0);case"enum":return F(le.T,be,!0,Pe.enumAsInteger);case"message":return(0,S.E)(le.T,be).toJson(Pe)}}})}const E=(0,d.F)("proto2",w(),m(),Object.assign(Object.assign({},(0,b.f)()),{newFieldList(F){return new O.i(F,$)},initFields(F){for(const x of F.getType().fields.byMember()){const M=x.localName,le=F;if(x.repeated){le[M]=[];continue}switch(x.kind){case"oneof":le[M]={case:void 0};break;case"map":le[M]={};break}}}}));function $(F){var x,M,le,be,Pe;const je=[];let ct;for(const Ze of typeof F=="function"?F():F){const Ot=Ze;if(Ot.localName=(0,v.Rz)(Ze.name,Ze.oneof!==void 0),Ot.jsonName=(x=Ze.jsonName)!==null&&x!==void 0?x:(0,v.x1)(Ze.name),Ot.repeated=(M=Ze.repeated)!==null&&M!==void 0?M:!1,Ze.kind=="scalar"&&(Ot.L=(le=Ze.L)!==null&&le!==void 0?le:p.p.BIGINT),Ze.oneof!==void 0){const Pt=typeof Ze.oneof=="string"?Ze.oneof:Ze.oneof.name;(!ct||ct.name!=Pt)&&(ct=new y.o(Pt)),Ot.oneof=ct,ct.addField(Ot)}Ze.kind=="message"&&(Ot.delimited=(be=Ze.delimited)!==null&&be!==void 0?be:!1),Ot.packed=(Pe=Ze.packed)!==null&&Pe!==void 0?Pe:!1,je.push(Ot)}return je}const P={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var _=u(210),B=u(236),U=u(79),V=function(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=F[Symbol.asyncIterator],M;return x?x.call(F):(F=typeof __values=="function"?__values(F):F[Symbol.iterator](),M={},le("next"),le("throw"),le("return"),M[Symbol.asyncIterator]=function(){return this},M);function le(Pe){M[Pe]=F[Pe]&&function(je){return new Promise(function(ct,Ze){je=F[Pe](je),be(ct,Ze,je.done,je.value)})}}function be(Pe,je,ct,Ze){Promise.resolve(Ze).then(function(Ot){Pe({value:Ot,done:ct})},je)}},z=function(F){return this instanceof z?(this.v=F,this):new z(F)},W=function(F,x,M){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=M.apply(F,x||[]),be,Pe=[];return be={},ct("next"),ct("throw"),ct("return",je),be[Symbol.asyncIterator]=function(){return this},be;function je(Sn){return function(Wi){return Promise.resolve(Wi).then(Sn,On)}}function ct(Sn,Wi){le[Sn]&&(be[Sn]=function(ja){return new Promise(function(aC,yf){Pe.push([Sn,ja,aC,yf])>1||Ze(Sn,ja)})},Wi&&(be[Sn]=Wi(be[Sn])))}function Ze(Sn,Wi){try{Ot(le[Sn](Wi))}catch(ja){Sr(Pe[0][3],ja)}}function Ot(Sn){Sn.value instanceof z?Promise.resolve(Sn.value.v).then(Pt,On):Sr(Pe[0][2],Sn)}function Pt(Sn){Ze("next",Sn)}function On(Sn){Ze("throw",Sn)}function Sr(Sn,Wi){Sn(Wi),Pe.shift(),Pe.length&&Ze(Pe[0][0],Pe[0][1])}};const X={enc(F,x){const M=(0,h.gY)().makeWriteOptions(x);return M.writerFactory().bytes(F.toBinary(M)).finish()},dec(F,x,M){const le=(0,h.gY)().makeReadOptions(M);return F.fromBinary(le.readerFactory(x).bytes(),le)},decStream(F,x){return W(this,arguments,function*(){var le,be,Pe,je;function ct(Sr,Sn){const Wi=new Uint8Array(Sr.byteLength+Sn.byteLength);return Wi.set(Sr),Wi.set(Sn,Sr.length),Wi}let Ze=new Uint8Array(0);try{for(var Ot=!0,Pt=V(x),On;On=yield z(Pt.next()),le=On.done,!le;Ot=!0)for(je=On.value,Ot=!1,Ze=ct(Ze,je);;){const Sn=X.peekSize(Ze);if(Sn.eof||Sn.offset+Sn.size>Ze.byteLength)break;yield yield z(X.dec(F,Ze)),Ze=Ze.subarray(Sn.offset+Sn.size)}}catch(Sr){be={error:Sr}}finally{try{!Ot&&!le&&(Pe=Pt.return)&&(yield z(Pe.call(Pt)))}finally{if(be)throw be.error}}if(Ze.byteLength>0)throw new Error("incomplete data")})},peekSize(F){const x={eof:!0,size:null,offset:null};for(let M=0;M<10;M++){if(M>F.byteLength)return x;if(!(F[M]&128)){const le=new U.oP(F);let be;try{be=le.uint32()}catch(Pe){if(Pe instanceof RangeError)return x;throw Pe}return{eof:!1,size:be,offset:le.pos}}}throw new Error("invalid varint")}};var q=u(781);function Y(F){switch(F.typeName){case"google.protobuf.Any":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.STRING),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.BYTES);if(x&&M)return{typeName:F.typeName,typeUrl:x,value:M};break}case"google.protobuf.Timestamp":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&M)return{typeName:F.typeName,seconds:x,nanos:M};break}case"google.protobuf.Duration":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&M)return{typeName:F.typeName,seconds:x,nanos:M};break}case"google.protobuf.Struct":{const x=F.fields.find(M=>M.number==1&&!M.repeated);if((x==null?void 0:x.fieldKind)!=="map"||x.mapValue.kind!=="message"||x.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,fields:x}}case"google.protobuf.Value":{const x=F.oneofs.find(Ze=>Ze.name==="kind"),M=F.fields.find(Ze=>Ze.number==1&&Ze.oneof===x);if((M==null?void 0:M.fieldKind)!=="enum"||M.enum.typeName!=="google.protobuf.NullValue")return;const le=F.fields.find(Ze=>Ze.number==2&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.DOUBLE&&Ze.oneof===x),be=F.fields.find(Ze=>Ze.number==3&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.STRING&&Ze.oneof===x),Pe=F.fields.find(Ze=>Ze.number==4&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.BOOL&&Ze.oneof===x),je=F.fields.find(Ze=>Ze.number==5&&Ze.oneof===x);if((je==null?void 0:je.fieldKind)!=="message"||je.message.typeName!=="google.protobuf.Struct")return;const ct=F.fields.find(Ze=>Ze.number==6&&Ze.oneof===x);if((ct==null?void 0:ct.fieldKind)!=="message"||ct.message.typeName!=="google.protobuf.ListValue")return;if(x&&le&&be&&Pe)return{typeName:F.typeName,kind:x,nullValue:M,numberValue:le,stringValue:be,boolValue:Pe,structValue:je,listValue:ct};break}case"google.protobuf.ListValue":{const x=F.fields.find(M=>M.number==1&&M.repeated);if((x==null?void 0:x.fieldKind)!="message"||x.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,values:x}}case"google.protobuf.FieldMask":{const x=F.fields.find(M=>M.number==1&&M.fieldKind=="scalar"&&M.scalar===p.w.STRING&&M.repeated);if(x)return{typeName:F.typeName,paths:x};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 x=F.fields.find(M=>M.number==1&&M.name=="value");if(!x||x.fieldKind!=="scalar")break;return{typeName:F.typeName,value:x}}}}const Z="@bufbuild/protobuf",j={packageName:"@bufbuild/protobuf",localName:v.r1,reifyWkt:Y,getUnwrappedFieldType:S.w,scalarDefaultValue:q.kY,safeIdentifier:v.GD,safeObjectProperty:v.ll,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:Z},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:Z},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:Z},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:Z},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:Z},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:Z},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:Z},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:Z}},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 se=u(561),ve=u(328),G;(function(F){F[F.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",F[F.EDITION_PROTO2=998]="EDITION_PROTO2",F[F.EDITION_PROTO3=999]="EDITION_PROTO3",F[F.EDITION_2023=1e3]="EDITION_2023",F[F.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",F[F.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",F[F.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",F[F.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",F[F.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(G||(G={})),E.util.setEnumType(G,"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 ce extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ce().fromBinary(x,M)}static fromJson(x,M){return new ce().fromJson(x,M)}static fromJsonString(x,M){return new ce().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ce,x,M)}}ce.runtime=E,ce.typeName="google.protobuf.FileDescriptorSet",ce.fields=E.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:ge,repeated:!0}]);class ge extends se.v{constructor(x){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ge().fromBinary(x,M)}static fromJson(x,M){return new ge().fromJson(x,M)}static fromJsonString(x,M){return new ge().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ge,x,M)}}ge.runtime=E,ge.typeName="google.protobuf.FileDescriptorProto",ge.fields=E.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:ue,repeated:!0},{no:5,name:"enum_type",kind:"message",T:We,repeated:!0},{no:6,name:"service",kind:"message",T:re,repeated:!0},{no:7,name:"extension",kind:"message",T:Ge,repeated:!0},{no:8,name:"options",kind:"message",T:J,opt:!0},{no:9,name:"source_code_info",kind:"message",T:at,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class ue extends se.v{constructor(x){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ue().fromBinary(x,M)}static fromJson(x,M){return new ue().fromJson(x,M)}static fromJsonString(x,M){return new ue().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ue,x,M)}}ue.runtime=E,ue.typeName="google.protobuf.DescriptorProto",ue.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Ge,repeated:!0},{no:6,name:"extension",kind:"message",T:Ge,repeated:!0},{no:3,name:"nested_type",kind:"message",T:ue,repeated:!0},{no:4,name:"enum_type",kind:"message",T:We,repeated:!0},{no:5,name:"extension_range",kind:"message",T:xe,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:$e,repeated:!0},{no:7,name:"options",kind:"message",T:Le,opt:!0},{no:9,name:"reserved_range",kind:"message",T:De,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class xe extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new xe().fromBinary(x,M)}static fromJson(x,M){return new xe().fromJson(x,M)}static fromJsonString(x,M){return new xe().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xe,x,M)}}xe.runtime=E,xe.typeName="google.protobuf.DescriptorProto.ExtensionRange",xe.fields=E.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:Ve,opt:!0}]);class De extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new De().fromBinary(x,M)}static fromJson(x,M){return new De().fromJson(x,M)}static fromJsonString(x,M){return new De().fromJsonString(x,M)}static equals(x,M){return E.util.equals(De,x,M)}}De.runtime=E,De.typeName="google.protobuf.DescriptorProto.ReservedRange",De.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ve extends se.v{constructor(x){super(),this.uninterpretedOption=[],this.declaration=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Ve().fromBinary(x,M)}static fromJson(x,M){return new Ve().fromJson(x,M)}static fromJsonString(x,M){return new Ve().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ve,x,M)}}Ve.runtime=E,Ve.typeName="google.protobuf.ExtensionRangeOptions",Ve.fields=E.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0},{no:2,name:"declaration",kind:"message",T:Me,repeated:!0},{no:50,name:"features",kind:"message",T:Dt,opt:!0},{no:3,name:"verification",kind:"enum",T:E.getEnumType(Je),opt:!0,default:Je.UNVERIFIED}]);var Je;(function(F){F[F.DECLARATION=0]="DECLARATION",F[F.UNVERIFIED=1]="UNVERIFIED"})(Je||(Je={})),E.util.setEnumType(Je,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Me extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Me().fromBinary(x,M)}static fromJson(x,M){return new Me().fromJson(x,M)}static fromJsonString(x,M){return new Me().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Me,x,M)}}Me.runtime=E,Me.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Me.fields=E.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 Ge extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Ge().fromBinary(x,M)}static fromJson(x,M){return new Ge().fromJson(x,M)}static fromJsonString(x,M){return new Ge().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ge,x,M)}}Ge.runtime=E,Ge.typeName="google.protobuf.FieldDescriptorProto",Ge.fields=E.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:E.getEnumType(ze),opt:!0},{no:5,name:"type",kind:"enum",T:E.getEnumType(ye),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:Ne,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var ye;(function(F){F[F.DOUBLE=1]="DOUBLE",F[F.FLOAT=2]="FLOAT",F[F.INT64=3]="INT64",F[F.UINT64=4]="UINT64",F[F.INT32=5]="INT32",F[F.FIXED64=6]="FIXED64",F[F.FIXED32=7]="FIXED32",F[F.BOOL=8]="BOOL",F[F.STRING=9]="STRING",F[F.GROUP=10]="GROUP",F[F.MESSAGE=11]="MESSAGE",F[F.BYTES=12]="BYTES",F[F.UINT32=13]="UINT32",F[F.ENUM=14]="ENUM",F[F.SFIXED32=15]="SFIXED32",F[F.SFIXED64=16]="SFIXED64",F[F.SINT32=17]="SINT32",F[F.SINT64=18]="SINT64"})(ye||(ye={})),E.util.setEnumType(ye,"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 ze;(function(F){F[F.OPTIONAL=1]="OPTIONAL",F[F.REPEATED=3]="REPEATED",F[F.REQUIRED=2]="REQUIRED"})(ze||(ze={})),E.util.setEnumType(ze,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class $e extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new $e().fromBinary(x,M)}static fromJson(x,M){return new $e().fromJson(x,M)}static fromJsonString(x,M){return new $e().fromJsonString(x,M)}static equals(x,M){return E.util.equals($e,x,M)}}$e.runtime=E,$e.typeName="google.protobuf.OneofDescriptorProto",$e.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:rt,opt:!0}]);class We extends se.v{constructor(x){super(),this.value=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new We().fromBinary(x,M)}static fromJson(x,M){return new We().fromJson(x,M)}static fromJsonString(x,M){return new We().fromJsonString(x,M)}static equals(x,M){return E.util.equals(We,x,M)}}We.runtime=E,We.typeName="google.protobuf.EnumDescriptorProto",We.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Be,repeated:!0},{no:3,name:"options",kind:"message",T:pt,opt:!0},{no:4,name:"reserved_range",kind:"message",T:dt,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class dt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new dt().fromBinary(x,M)}static fromJson(x,M){return new dt().fromJson(x,M)}static fromJsonString(x,M){return new dt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(dt,x,M)}}dt.runtime=E,dt.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",dt.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Be extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Be().fromBinary(x,M)}static fromJson(x,M){return new Be().fromJson(x,M)}static fromJsonString(x,M){return new Be().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Be,x,M)}}Be.runtime=E,Be.typeName="google.protobuf.EnumValueDescriptorProto",Be.fields=E.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:xt,opt:!0}]);class re extends se.v{constructor(x){super(),this.method=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new re().fromBinary(x,M)}static fromJson(x,M){return new re().fromJson(x,M)}static fromJsonString(x,M){return new re().fromJsonString(x,M)}static equals(x,M){return E.util.equals(re,x,M)}}re.runtime=E,re.typeName="google.protobuf.ServiceDescriptorProto",re.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:ee,repeated:!0},{no:3,name:"options",kind:"message",T:et,opt:!0}]);class ee extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new ee().fromBinary(x,M)}static fromJson(x,M){return new ee().fromJson(x,M)}static fromJsonString(x,M){return new ee().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ee,x,M)}}ee.runtime=E,ee.typeName="google.protobuf.MethodDescriptorProto",ee.fields=E.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:vt,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 J extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new J().fromBinary(x,M)}static fromJson(x,M){return new J().fromJson(x,M)}static fromJsonString(x,M){return new J().fromJsonString(x,M)}static equals(x,M){return E.util.equals(J,x,M)}}J.runtime=E,J.typeName="google.protobuf.FileOptions",J.fields=E.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:E.getEnumType(Re),opt:!0,default:Re.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:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var Re;(function(F){F[F.SPEED=1]="SPEED",F[F.CODE_SIZE=2]="CODE_SIZE",F[F.LITE_RUNTIME=3]="LITE_RUNTIME"})(Re||(Re={})),E.util.setEnumType(Re,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Le extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Le().fromBinary(x,M)}static fromJson(x,M){return new Le().fromJson(x,M)}static fromJsonString(x,M){return new Le().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Le,x,M)}}Le.runtime=E,Le.typeName="google.protobuf.MessageOptions",Le.fields=E.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:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class Ne extends se.v{constructor(x){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Ne().fromBinary(x,M)}static fromJson(x,M){return new Ne().fromJson(x,M)}static fromJsonString(x,M){return new Ne().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ne,x,M)}}Ne.runtime=E,Ne.typeName="google.protobuf.FieldOptions",Ne.fields=E.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:E.getEnumType(ie),opt:!0,default:ie.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:E.getEnumType(fe),opt:!0,default:fe.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:E.getEnumType(de),opt:!0},{no:19,name:"targets",kind:"enum",T:E.getEnumType(Oe),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Te,repeated:!0},{no:21,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var ie;(function(F){F[F.STRING=0]="STRING",F[F.CORD=1]="CORD",F[F.STRING_PIECE=2]="STRING_PIECE"})(ie||(ie={})),E.util.setEnumType(ie,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var fe;(function(F){F[F.JS_NORMAL=0]="JS_NORMAL",F[F.JS_STRING=1]="JS_STRING",F[F.JS_NUMBER=2]="JS_NUMBER"})(fe||(fe={})),E.util.setEnumType(fe,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var de;(function(F){F[F.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",F[F.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",F[F.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(de||(de={})),E.util.setEnumType(de,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var Oe;(function(F){F[F.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",F[F.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",F[F.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",F[F.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",F[F.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",F[F.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",F[F.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",F[F.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",F[F.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",F[F.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(Oe||(Oe={})),E.util.setEnumType(Oe,"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 Te extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Te().fromBinary(x,M)}static fromJson(x,M){return new Te().fromJson(x,M)}static fromJsonString(x,M){return new Te().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Te,x,M)}}Te.runtime=E,Te.typeName="google.protobuf.FieldOptions.EditionDefault",Te.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class rt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new rt().fromBinary(x,M)}static fromJson(x,M){return new rt().fromJson(x,M)}static fromJsonString(x,M){return new rt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(rt,x,M)}}rt.runtime=E,rt.typeName="google.protobuf.OneofOptions",rt.fields=E.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class pt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new pt().fromBinary(x,M)}static fromJson(x,M){return new pt().fromJson(x,M)}static fromJsonString(x,M){return new pt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(pt,x,M)}}pt.runtime=E,pt.typeName="google.protobuf.EnumOptions",pt.fields=E.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:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class xt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new xt().fromBinary(x,M)}static fromJson(x,M){return new xt().fromJson(x,M)}static fromJsonString(x,M){return new xt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xt,x,M)}}xt.runtime=E,xt.typeName="google.protobuf.EnumValueOptions",xt.fields=E.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Dt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class et extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new et().fromBinary(x,M)}static fromJson(x,M){return new et().fromJson(x,M)}static fromJsonString(x,M){return new et().fromJsonString(x,M)}static equals(x,M){return E.util.equals(et,x,M)}}et.runtime=E,et.typeName="google.protobuf.ServiceOptions",et.fields=E.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Dt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class vt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new vt().fromBinary(x,M)}static fromJson(x,M){return new vt().fromJson(x,M)}static fromJsonString(x,M){return new vt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(vt,x,M)}}vt.runtime=E,vt.typeName="google.protobuf.MethodOptions",vt.fields=E.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:E.getEnumType(qe),opt:!0,default:qe.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var qe;(function(F){F[F.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",F[F.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",F[F.IDEMPOTENT=2]="IDEMPOTENT"})(qe||(qe={})),E.util.setEnumType(qe,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class it extends se.v{constructor(x){super(),this.name=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new it().fromBinary(x,M)}static fromJson(x,M){return new it().fromJson(x,M)}static fromJsonString(x,M){return new it().fromJsonString(x,M)}static equals(x,M){return E.util.equals(it,x,M)}}it.runtime=E,it.typeName="google.protobuf.UninterpretedOption",it.fields=E.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Et,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 Et extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Et().fromBinary(x,M)}static fromJson(x,M){return new Et().fromJson(x,M)}static fromJsonString(x,M){return new Et().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Et,x,M)}}Et.runtime=E,Et.typeName="google.protobuf.UninterpretedOption.NamePart",Et.fields=E.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Dt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Dt().fromBinary(x,M)}static fromJson(x,M){return new Dt().fromJson(x,M)}static fromJsonString(x,M){return new Dt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Dt,x,M)}}Dt.runtime=E,Dt.typeName="google.protobuf.FeatureSet",Dt.fields=E.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:E.getEnumType(on),opt:!0},{no:2,name:"enum_type",kind:"enum",T:E.getEnumType(dn),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:E.getEnumType(pn),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:E.getEnumType(zn),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:E.getEnumType(Se),opt:!0},{no:6,name:"json_format",kind:"enum",T:E.getEnumType(_e),opt:!0}]);var on;(function(F){F[F.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",F[F.EXPLICIT=1]="EXPLICIT",F[F.IMPLICIT=2]="IMPLICIT",F[F.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(on||(on={})),E.util.setEnumType(on,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]);var dn;(function(F){F[F.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",F[F.OPEN=1]="OPEN",F[F.CLOSED=2]="CLOSED"})(dn||(dn={})),E.util.setEnumType(dn,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var pn;(function(F){F[F.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",F[F.PACKED=1]="PACKED",F[F.EXPANDED=2]="EXPANDED"})(pn||(pn={})),E.util.setEnumType(pn,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var zn;(function(F){F[F.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",F[F.NONE=1]="NONE",F[F.VERIFY=2]="VERIFY"})(zn||(zn={})),E.util.setEnumType(zn,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var Se;(function(F){F[F.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",F[F.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",F[F.DELIMITED=2]="DELIMITED"})(Se||(Se={})),E.util.setEnumType(Se,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var _e;(function(F){F[F.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",F[F.ALLOW=1]="ALLOW",F[F.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(_e||(_e={})),E.util.setEnumType(_e,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class pe extends se.v{constructor(x){super(),this.defaults=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new pe().fromBinary(x,M)}static fromJson(x,M){return new pe().fromJson(x,M)}static fromJsonString(x,M){return new pe().fromJsonString(x,M)}static equals(x,M){return E.util.equals(pe,x,M)}}pe.runtime=E,pe.typeName="google.protobuf.FeatureSetDefaults",pe.fields=E.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:lt,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class lt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new lt().fromBinary(x,M)}static fromJson(x,M){return new lt().fromJson(x,M)}static fromJsonString(x,M){return new lt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(lt,x,M)}}lt.runtime=E,lt.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",lt.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"features",kind:"message",T:Dt,opt:!0}]);class at extends se.v{constructor(x){super(),this.location=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new at().fromBinary(x,M)}static fromJson(x,M){return new at().fromJson(x,M)}static fromJsonString(x,M){return new at().fromJsonString(x,M)}static equals(x,M){return E.util.equals(at,x,M)}}at.runtime=E,at.typeName="google.protobuf.SourceCodeInfo",at.fields=E.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Mt,repeated:!0}]);class Mt extends se.v{constructor(x){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Mt().fromBinary(x,M)}static fromJson(x,M){return new Mt().fromJson(x,M)}static fromJsonString(x,M){return new Mt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Mt,x,M)}}Mt.runtime=E,Mt.typeName="google.protobuf.SourceCodeInfo.Location",Mt.fields=E.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 $t extends se.v{constructor(x){super(),this.annotation=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new $t().fromBinary(x,M)}static fromJson(x,M){return new $t().fromJson(x,M)}static fromJsonString(x,M){return new $t().fromJsonString(x,M)}static equals(x,M){return E.util.equals($t,x,M)}}$t.runtime=E,$t.typeName="google.protobuf.GeneratedCodeInfo",$t.fields=E.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:It,repeated:!0}]);class It extends se.v{constructor(x){super(),this.path=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new It().fromBinary(x,M)}static fromJson(x,M){return new It().fromJson(x,M)}static fromJsonString(x,M){return new It().fromJsonString(x,M)}static equals(x,M){return E.util.equals(It,x,M)}}It.runtime=E,It.typeName="google.protobuf.GeneratedCodeInfo.Annotation",It.fields=E.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:E.getEnumType(Ct),opt:!0}]);var Ct;(function(F){F[F.NONE=0]="NONE",F[F.SET=1]="SET",F[F.ALIAS=2]="ALIAS"})(Ct||(Ct={})),E.util.setEnumType(Ct,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function Zt(F,x){const M=F.values.find(le=>le.name===x);return(0,k.hu)(M,`cannot parse ${F.name} default value: ${x}`),M.number}function Ie(F,x){switch(F){case p.w.STRING:return x;case p.w.BYTES:{const M=we(x);if(M===!1)throw new Error(`cannot parse ${p.w[F]} default value: ${x}`);return M}case p.w.INT64:case p.w.SFIXED64:case p.w.SINT64:return _.q.parse(x);case p.w.UINT64:case p.w.FIXED64:return _.q.uParse(x);case p.w.DOUBLE:case p.w.FLOAT:switch(x){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(x)}case p.w.BOOL:return x==="true";case p.w.INT32:case p.w.UINT32:case p.w.SINT32:case p.w.FIXED32:case p.w.SFIXED32:return parseInt(x,10)}}function we(F){const x=[],M={tail:F,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(le){if(this.tail.length>=le){const be=this.tail.substring(0,le);return this.tail=this.tail.substring(le),be}return!1}};for(;M.next();)switch(M.c){case"\\":if(M.next())switch(M.c){case"\\":x.push(M.c.charCodeAt(0));break;case"b":x.push(8);break;case"f":x.push(12);break;case"n":x.push(10);break;case"r":x.push(13);break;case"t":x.push(9);break;case"v":x.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const le=M.c,be=M.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,8);if(isNaN(Pe))return!1;x.push(Pe);break}case"x":{const le=M.c,be=M.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;x.push(Pe);break}case"u":{const le=M.c,be=M.take(4);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;const je=new Uint8Array(4);new DataView(je.buffer).setInt32(0,Pe,!0),x.push(je[0],je[1],je[2],je[3]);break}case"U":{const le=M.c,be=M.take(8);if(be===!1)return!1;const Pe=_.q.uEnc(le+be),je=new Uint8Array(8),ct=new DataView(je.buffer);ct.setInt32(0,Pe.lo,!0),ct.setInt32(4,Pe.hi,!0),x.push(je[0],je[1],je[2],je[3],je[4],je[5],je[6],je[7]);break}}break;default:x.push(M.c.charCodeAt(0))}return new Uint8Array(x)}const Qe=pe.fromBinary(B.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function ot(F){const x=F.minimumEdition,M=F.maximumEdition;if(x===void 0||M===void 0||F.defaults.some(be=>be.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const le=new Map;return(be,...Pe)=>{var je,ct;let Ze=le.get(be);if(Ze===void 0){if(bebe||Pt!==void 0&&Pt.e>Sr||(Pt={e:Sr,f:(ct=On.features)!==null&&ct!==void 0?ct:new Dt})}if(Pt===void 0)throw new Error(`No valid default found for edition ${G[be]}`);Ze=Pt.f.toBinary(),le.set(be,Ze)}const Ot=Dt.fromBinary(Ze);for(const Pt of Pe)Pt!==void 0&&Ot.fromBinary(Pt.toBinary());if(!rn(Ot))throw new Error(`Invalid FeatureSet for edition ${G[be]}`);return Ot}}function rn(F){for(const x of Dt.fields.list()){const M=F[x.localName];if(M===void 0||x.kind=="enum"&&M===0)return!1}return!0}function Wt(F,x){var M;const le={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:ot((M=x==null?void 0:x.featureSetDefaults)!==null&&M!==void 0?M:Qe)},Pe=(F instanceof ce?F.file:F instanceof Uint8Array?ce.fromBinary(F).file:F).map(je=>mn(je,le));return Object.assign({files:Pe},le)}function mn(F,x){var M,le;(0,k.hu)(F.name,"invalid FileDescriptorProto: missing name");const be=Object.assign(Object.assign({kind:"file",proto:F,deprecated:(le=(M=F.options)===null||M===void 0?void 0:M.deprecated)!==null&&le!==void 0?le:!1},bn(F.syntax,F.edition)),{name:F.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return oo(this.proto.sourceCodeInfo,[di.FileDescriptorProto_Syntax])},getPackageComments(){return oo(this.proto.sourceCodeInfo,[di.FileDescriptorProto_Package])},getFeatures(){var Pe;return x.resolveFeatures(this.edition,(Pe=this.proto.options)===null||Pe===void 0?void 0:Pe.features)}});x.mapEntries.clear();for(const Pe of F.enumType)Ce(Pe,be,void 0,x);for(const Pe of F.messageType)gt(Pe,be,void 0,x);for(const Pe of F.service)Nt(Pe,be,x);nr(be,x);for(const Pe of x.mapEntries.values())Ue(Pe,x);for(const Pe of be.messages)Ue(Pe,x),nr(Pe,x);return x.mapEntries.clear(),be}function nr(F,x){switch(F.kind){case"file":for(const M of F.proto.extension){const le=Kt(M,F,void 0,x);F.extensions.push(le),x.extensions.set(le.typeName,le)}break;case"message":for(const M of F.proto.extension){const le=Kt(M,F.file,F,x);F.nestedExtensions.push(le),x.extensions.set(le.typeName,le)}for(const M of F.nestedMessages)nr(M,x);break}}function Ue(F,x){const M=F.proto.oneofDecl.map(be=>Mn(be,F,x)),le=new Set;for(const be of F.proto.field){const Pe=Gr(be,M),je=Nn(be,F.file,F,Pe,x);F.fields.push(je),Pe===void 0?F.members.push(je):(Pe.fields.push(je),le.has(Pe)||(le.add(Pe),F.members.push(Pe)))}for(const be of M.filter(Pe=>le.has(Pe)))F.oneofs.push(be);for(const be of F.nestedMessages)Ue(be,x)}function Ce(F,x,M,le){var be,Pe,je;(0,k.hu)(F.name,"invalid EnumDescriptorProto: missing name");const ct={kind:"enum",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:M,name:F.name,typeName:Qn(F,M,x),values:[],sharedPrefix:(0,v.Sm)(F.name,F.value.map(Ze=>{var Ot;return(Ot=Ze.name)!==null&&Ot!==void 0?Ot:""})),toString(){return`enum ${this.typeName}`},getComments(){const Ze=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[di.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze,Ot,Pt;const On=(Ot=(Ze=this.parent)===null||Ze===void 0?void 0:Ze.getFeatures())!==null&&Ot!==void 0?Ot:this.file.getFeatures();return le.resolveFeatures(this.file.edition,On,(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}};le.enums.set(ct.typeName,ct),F.value.forEach(Ze=>{var Ot,Pt;(0,k.hu)(Ze.name,"invalid EnumValueDescriptorProto: missing name"),(0,k.hu)(Ze.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),ct.values.push({kind:"enum_value",proto:Ze,deprecated:(Pt=(Ot=Ze.options)===null||Ot===void 0?void 0:Ot.deprecated)!==null&&Pt!==void 0?Pt:!1,parent:ct,name:Ze.name,number:Ze.number,toString(){return`enum value ${ct.typeName}.${this.name}`},declarationString(){var On;let Sr=`${this.name} = ${this.number}`;return((On=this.proto.options)===null||On===void 0?void 0:On.deprecated)===!0&&(Sr+=" [deprecated = true]"),Sr},getComments(){const On=[...this.parent.getComments().sourcePath,di.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,On)},getFeatures(){var On;return le.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}})}),((je=M==null?void 0:M.nestedEnums)!==null&&je!==void 0?je:x.enums).push(ct)}function gt(F,x,M,le){var be,Pe,je,ct;(0,k.hu)(F.name,"invalid DescriptorProto: missing name");const Ze={kind:"message",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:M,name:F.name,typeName:Qn(F,M,x),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const Ot=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[di.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,Ot)},getFeatures(){var Ot,Pt,On;const Sr=(Pt=(Ot=this.parent)===null||Ot===void 0?void 0:Ot.getFeatures())!==null&&Pt!==void 0?Pt:this.file.getFeatures();return le.resolveFeatures(this.file.edition,Sr,(On=this.proto.options)===null||On===void 0?void 0:On.features)}};((je=F.options)===null||je===void 0?void 0:je.mapEntry)===!0?le.mapEntries.set(Ze.typeName,Ze):(((ct=M==null?void 0:M.nestedMessages)!==null&&ct!==void 0?ct:x.messages).push(Ze),le.messages.set(Ze.typeName,Ze));for(const Ot of F.enumType)Ce(Ot,x,Ze,le);for(const Ot of F.nestedType)gt(Ot,x,Ze,le)}function Nt(F,x,M){var le,be;(0,k.hu)(F.name,"invalid ServiceDescriptorProto: missing name");const Pe={kind:"service",proto:F,deprecated:(be=(le=F.options)===null||le===void 0?void 0:le.deprecated)!==null&&be!==void 0?be:!1,file:x,name:F.name,typeName:Qn(F,void 0,x),methods:[],toString(){return`service ${this.typeName}`},getComments(){const je=[di.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,je)},getFeatures(){var je;return M.resolveFeatures(this.file.edition,this.file.getFeatures(),(je=this.proto.options)===null||je===void 0?void 0:je.features)}};x.services.push(Pe),M.services.set(Pe.typeName,Pe);for(const je of F.method)Pe.methods.push(tn(je,Pe,M))}function tn(F,x,M){var le,be,Pe;(0,k.hu)(F.name,"invalid MethodDescriptorProto: missing name"),(0,k.hu)(F.inputType,"invalid MethodDescriptorProto: missing input_type"),(0,k.hu)(F.outputType,"invalid MethodDescriptorProto: missing output_type");let je;F.clientStreaming===!0&&F.serverStreaming===!0?je=ve.t.BiDiStreaming:F.clientStreaming===!0?je=ve.t.ClientStreaming:F.serverStreaming===!0?je=ve.t.ServerStreaming:je=ve.t.Unary;let ct;switch((le=F.options)===null||le===void 0?void 0:le.idempotencyLevel){case qe.IDEMPOTENT:ct=ve.w.Idempotent;break;case qe.NO_SIDE_EFFECTS:ct=ve.w.NoSideEffects;break;case qe.IDEMPOTENCY_UNKNOWN:case void 0:ct=void 0;break}const Ze=M.messages.get(Yn(F.inputType)),Ot=M.messages.get(Yn(F.outputType));(0,k.hu)(Ze,`invalid MethodDescriptorProto: input_type ${F.inputType} not found`),(0,k.hu)(Ot,`invalid MethodDescriptorProto: output_type ${F.inputType} not found`);const Pt=F.name;return{kind:"rpc",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,parent:x,name:Pt,methodKind:je,input:Ze,output:Ot,idempotency:ct,toString(){return`rpc ${x.typeName}.${Pt}`},getComments(){const On=[...this.parent.getComments().sourcePath,di.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return oo(x.file.proto.sourceCodeInfo,On)},getFeatures(){var On;return M.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}}}function Mn(F,x,M){return(0,k.hu)(F.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:F,deprecated:!1,parent:x,fields:[],name:F.name,toString(){return`oneof ${x.typeName}.${this.name}`},getComments(){const le=[...this.parent.getComments().sourcePath,di.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return oo(x.file.proto.sourceCodeInfo,le)},getFeatures(){var le;return M.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(le=this.proto.options)===null||le===void 0?void 0:le.features)}}}function Nn(F,x,M,le,be){var Pe,je,ct;(0,k.hu)(F.name,"invalid FieldDescriptorProto: missing name"),(0,k.hu)(F.number,"invalid FieldDescriptorProto: missing number"),(0,k.hu)(F.type,"invalid FieldDescriptorProto: missing type");const Ze={proto:F,deprecated:(je=(Pe=F.options)===null||Pe===void 0?void 0:Pe.deprecated)!==null&&je!==void 0?je:!1,name:F.name,number:F.number,parent:M,oneof:le,optional:En(F,x.syntax),packedByDefault:An(x,F,be.resolveFeatures),packed:ca(x,M,F,be.resolveFeatures),jsonName:F.jsonName===(0,v.x1)(F.name)?void 0:F.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:Ma,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Pt=[...this.parent.getComments().sourcePath,di.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return oo(x.proto.sourceCodeInfo,Pt)},getFeatures(){var Pt;return be.resolveFeatures(x.edition,this.parent.getFeatures(),(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}},Ot=F.label===ze.REPEATED;switch(F.type){case ye.MESSAGE:case ye.GROUP:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.mapEntries.get(Yn(F.typeName));if(Pt!==void 0)return(0,k.hu)(Ot,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"map",repeated:!1}),ht(Pt));const On=be.messages.get(Yn(F.typeName));return(0,k.hu)(On!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"message",repeated:Ot,message:On})}case ye.ENUM:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.enums.get(Yn(F.typeName));return(0,k.hu)(Pt!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"enum",getDefaultValue:Kp,repeated:Ot,enum:Pt})}default:{const Pt=Xp[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Kp,repeated:Ot,scalar:Pt,longType:((ct=F.options)===null||ct===void 0?void 0:ct.jstype)==fe.JS_STRING?p.p.STRING:p.p.BIGINT})}}}function Kt(F,x,M,le){(0,k.hu)(F.extendee,"invalid FieldDescriptorProto: missing extendee");const be=Nn(F,x,null,void 0,le),Pe=le.messages.get(Yn(F.extendee));return(0,k.hu)(Pe,`invalid FieldDescriptorProto: extendee ${F.extendee} not found`),Object.assign(Object.assign({},be),{kind:"extension",typeName:Qn(F,M,x),parent:M,file:x,extendee:Pe,toString(){return`extension ${this.typeName}`},getComments(){const je=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[di.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(F)];return oo(x.proto.sourceCodeInfo,je)},getFeatures(){var je,ct;return le.resolveFeatures(this.file.edition,((je=this.parent)!==null&&je!==void 0?je:this.file).getFeatures(),(ct=this.proto.options)===null||ct===void 0?void 0:ct.features)}})}function bn(F,x){let M,le;switch(F){case void 0:case"proto2":le="proto2",M=G.EDITION_PROTO2;break;case"proto3":le="proto3",M=G.EDITION_PROTO3;break;case"editions":switch(le="editions",x){case void 0:case G.EDITION_1_TEST_ONLY:case G.EDITION_2_TEST_ONLY:case G.EDITION_99997_TEST_ONLY:case G.EDITION_99998_TEST_ONLY:case G.EDITION_99999_TEST_ONLY:case G.EDITION_UNKNOWN:M=G.EDITION_UNKNOWN;break;default:M=x;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${F}`)}if(F==="editions"&&x===G.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${F} cannot have edition ${String(x)}`);return{syntax:le,edition:M}}function Qn(F,x,M){(0,k.hu)(F.name,`invalid ${F.getType().typeName}: missing name`);let le;return x?le=`${x.typeName}.${F.name}`:M.proto.package!==void 0?le=`${M.proto.package}.${F.name}`:le=`${F.name}`,le}function Yn(F){return F.startsWith(".")?F.substring(1):F}function ht(F){var x,M;(0,k.hu)((x=F.proto.options)===null||x===void 0?void 0:x.mapEntry,`invalid DescriptorProto: expected ${F.toString()} to be a map entry`),(0,k.hu)(F.fields.length===2,`invalid DescriptorProto: map entry ${F.toString()} has ${F.fields.length} fields`);const le=F.fields.find(je=>je.proto.number===1);(0,k.hu)(le,`invalid DescriptorProto: map entry ${F.toString()} is missing key field`);const be=le.scalar;(0,k.hu)(be!==void 0&&be!==p.w.BYTES&&be!==p.w.FLOAT&&be!==p.w.DOUBLE,`invalid DescriptorProto: map entry ${F.toString()} has unexpected key type ${(M=le.proto.type)!==null&&M!==void 0?M:-1}`);const Pe=F.fields.find(je=>je.proto.number===2);switch((0,k.hu)(Pe,`invalid DescriptorProto: map entry ${F.toString()} is missing value field`),Pe.fieldKind){case"scalar":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"scalar"})};case"message":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"message"})};case"enum":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function Gr(F,x){var M;const le=F.oneofIndex;if(le===void 0)return;let be;return F.proto3Optional!==!0&&(be=x[le],(0,k.hu)(be,`invalid FieldDescriptorProto: oneof #${le} for field #${(M=F.number)!==null&&M!==void 0?M:-1} not found`)),be}function En(F,x){switch(x){case"proto2":return F.oneofIndex===void 0&&F.label===ze.OPTIONAL;case"proto3":return F.proto3Optional===!0;case"editions":return!1}}function An(F,x,M){const{repeatedFieldEncoding:le}=M(F.edition);if(le!=pn.PACKED)return!1;switch(x.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:return!0}}function ca(F,x,M,le){var be,Pe,je,ct,Ze,Ot;switch(M.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:switch(F.edition){case G.EDITION_PROTO2:return(Pe=(be=M.options)===null||be===void 0?void 0:be.packed)!==null&&Pe!==void 0?Pe:!1;case G.EDITION_PROTO3:return(ct=(je=M.options)===null||je===void 0?void 0:je.packed)!==null&&ct!==void 0?ct:!0;default:{const{repeatedFieldEncoding:Pt}=le(F.edition,(Ze=x==null?void 0:x.getFeatures())!==null&&Ze!==void 0?Ze:F.getFeatures(),(Ot=M.options)===null||Ot===void 0?void 0:Ot.features);return Pt==pn.PACKED}}}}const Xp={[ye.DOUBLE]:p.w.DOUBLE,[ye.FLOAT]:p.w.FLOAT,[ye.INT64]:p.w.INT64,[ye.UINT64]:p.w.UINT64,[ye.INT32]:p.w.INT32,[ye.FIXED64]:p.w.FIXED64,[ye.FIXED32]:p.w.FIXED32,[ye.BOOL]:p.w.BOOL,[ye.STRING]:p.w.STRING,[ye.GROUP]:void 0,[ye.MESSAGE]:void 0,[ye.BYTES]:p.w.BYTES,[ye.UINT32]:p.w.UINT32,[ye.ENUM]:void 0,[ye.SFIXED32]:p.w.SFIXED32,[ye.SFIXED64]:p.w.SFIXED64,[ye.SINT32]:p.w.SINT32,[ye.SINT64]:p.w.SINT64};function oo(F,x){if(!F)return{leadingDetached:[],sourcePath:x};for(const M of F.location)if(M.path.length===x.length&&!M.path.some((le,be)=>x[be]!==le))return{leadingDetached:M.leadingDetachedComments,leading:M.leadingComments,trailing:M.trailingComments,sourcePath:x};return{leadingDetached:[],sourcePath:x}}var di;(function(F){F[F.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",F[F.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",F[F.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",F[F.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",F[F.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",F[F.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",F[F.DescriptorProto_Field=2]="DescriptorProto_Field",F[F.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",F[F.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",F[F.DescriptorProto_Extension=6]="DescriptorProto_Extension",F[F.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",F[F.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",F[F.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(di||(di={}));function Ma(){var F,x,M;const le=[];this.repeated&&le.push("repeated"),this.optional&&le.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===ze.REQUIRED&&le.push("required");let Pe;switch(this.fieldKind){case"scalar":Pe=p.w[this.scalar].toLowerCase();break;case"enum":Pe=this.enum.typeName;break;case"message":Pe=this.message.typeName;break;case"map":{const Ze=p.w[this.mapKey].toLowerCase();let Ot;switch(this.mapValue.kind){case"scalar":Ot=p.w[this.mapValue.scalar].toLowerCase();break;case"enum":Ot=this.mapValue.enum.typeName;break;case"message":Ot=this.mapValue.message.typeName;break}Pe=`map<${Ze}, ${Ot}>`;break}}le.push(`${Pe} ${this.name} = ${this.number}`);const je=[];((F=this.proto.options)===null||F===void 0?void 0:F.packed)!==void 0&&je.push(`packed = ${this.proto.options.packed.toString()}`);let ct=this.proto.defaultValue;return ct!==void 0&&((this.proto.type==ye.BYTES||this.proto.type==ye.STRING)&&(ct='"'+ct.replace('"','\\"')+'"'),je.push(`default = ${ct}`)),this.jsonName!==void 0&&je.push(`json_name = "${this.jsonName}"`),((x=this.proto.options)===null||x===void 0?void 0:x.jstype)!==void 0&&je.push(`jstype = ${fe[this.proto.options.jstype]}`),((M=this.proto.options)===null||M===void 0?void 0:M.deprecated)===!0&&je.push("deprecated = true"),je.length>0&&le.push("["+je.join(", ")+"]"),le.join(" ")}function Kp(){const F=this.proto.defaultValue;if(F!==void 0)switch(this.fieldKind){case"enum":return Zt(this.enum,F);case"scalar":return Ie(this.scalar,F);default:return}}function YO(...F){const x={},M={},le={},be={add(Pe){if("fields"in Pe){if(!this.findMessage(Pe.typeName)){x[Pe.typeName]=Pe;for(const je of Pe.fields.list())je.kind=="message"?this.add(je.T):je.kind=="map"&&je.V.kind=="message"?this.add(je.V.T):je.kind=="enum"&&this.add(je.T)}}else if("methods"in Pe){if(!this.findService(Pe.typeName)){le[Pe.typeName]=Pe;for(const je of Object.values(Pe.methods))this.add(je.I),this.add(je.O)}}else M[Pe.typeName]=Pe},findMessage(Pe){return x[Pe]},findEnum(Pe){return M[Pe]},findService(Pe){return le[Pe]}};for(const Pe of F)be.add(Pe);return be}class da extends se.v{constructor(x){super(),this.seconds=_.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,M){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.w.json.debug(x)}`);const le=x.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(!le)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const be=Date.parse(le[1]+"-"+le[2]+"-"+le[3]+"T"+le[4]+":"+le[5]+":"+le[6]+(le[8]?le[8]:"Z"));if(Number.isNaN(be))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(beDate.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=_.q.parse(be/1e3),this.nanos=0,le[7]&&(this.nanos=parseInt("1"+le[7]+"0".repeat(9-le[7].length))-1e9),this}toJson(x){const M=Number(this.seconds)*1e3;if(MDate.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 le="Z";if(this.nanos>0){const be=(this.nanos+1e9).toString().substring(1);be.substring(3)==="000000"?le="."+be.substring(0,3)+"Z":be.substring(6)==="000"?le="."+be.substring(0,6)+"Z":le="."+be+"Z"}return new Date(M).toISOString().replace(".000Z",le)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return da.fromDate(new Date)}static fromDate(x){const M=x.getTime();return new da({seconds:_.q.parse(Math.floor(M/1e3)),nanos:M%1e3*1e6})}static fromBinary(x,M){return new da().fromBinary(x,M)}static fromJson(x,M){return new da().fromJson(x,M)}static fromJsonString(x,M){return new da().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(da,x,M)}}da.runtime=c.w,da.typeName="google.protobuf.Timestamp",da.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Er extends se.v{constructor(x){super(),this.seconds=_.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,M){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const le=x.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(le===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const be=Number(le[1]);if(be>315576e6||be<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);if(this.seconds=_.q.parse(be),typeof le[2]=="string"){const Pe=le[2]+"0".repeat(9-le[2].length);this.nanos=parseInt(Pe),(be<0||Object.is(be,-0))&&(this.nanos=-this.nanos)}return this}toJson(x){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let M=this.seconds.toString();if(this.nanos!==0){let le=Math.abs(this.nanos).toString();le="0".repeat(9-le.length)+le,le.substring(3)==="000000"?le=le.substring(0,3):le.substring(6)==="000"&&(le=le.substring(0,6)),M+="."+le,this.nanos<0&&Number(this.seconds)==0&&(M="-"+M)}return M+"s"}static fromBinary(x,M){return new Er().fromBinary(x,M)}static fromJson(x,M){return new Er().fromJson(x,M)}static fromJsonString(x,M){return new Er().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Er,x,M)}}Er.runtime=c.w,Er.typeName="google.protobuf.Duration",Er.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var Jp=u(733);class Ts extends se.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ts().fromBinary(x,M)}static fromJson(x,M){return new Ts().fromJson(x,M)}static fromJsonString(x,M){return new Ts().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ts,x,M)}}Ts.runtime=c.w,Ts.typeName="google.protobuf.Empty",Ts.fields=c.w.util.newFieldList(()=>[]);class ws extends se.v{constructor(x){super(),this.paths=[],c.w.util.initPartial(x,this)}toJson(x){function M(le){let be=!1;const Pe=[];for(let je=0;je{if(le.match(/_[0-9]?_/g)||le.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+le+'" is irreversible');return M(le)}).join(",")}fromJson(x,M){if(typeof x!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+c.w.json.debug(x));if(x==="")return this;function le(be){if(be.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const Pe=be.replace(/[A-Z]/g,je=>"_"+je.toLowerCase());return Pe[0]==="_"?Pe.substring(1):Pe}return this.paths=x.split(",").map(le),this}static fromBinary(x,M){return new ws().fromBinary(x,M)}static fromJson(x,M){return new ws().fromJson(x,M)}static fromJsonString(x,M){return new ws().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ws,x,M)}}ws.runtime=c.w,ws.typeName="google.protobuf.FieldMask",ws.fields=c.w.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var ao;(function(F){F[F.NULL_VALUE=0]="NULL_VALUE"})(ao||(ao={})),c.w.util.setEnumType(ao,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class ko extends se.v{constructor(x){super(),this.fields={},c.w.util.initPartial(x,this)}toJson(x){const M={};for(const[le,be]of Object.entries(this.fields))M[le]=be.toJson(x);return M}fromJson(x,M){if(typeof x!="object"||x==null||Array.isArray(x))throw new Error("cannot decode google.protobuf.Struct from JSON "+c.w.json.debug(x));for(const[le,be]of Object.entries(x))this.fields[le]=Ur.fromJson(be);return this}static fromBinary(x,M){return new ko().fromBinary(x,M)}static fromJson(x,M){return new ko().fromJson(x,M)}static fromJsonString(x,M){return new ko().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ko,x,M)}}ko.runtime=c.w,ko.typeName="google.protobuf.Struct",ko.fields=c.w.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Ur}}]);class Ur extends se.v{constructor(x){super(),this.kind={case:void 0},c.w.util.initPartial(x,this)}toJson(x){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({},x),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(x,M){switch(typeof x){case"number":this.kind={case:"numberValue",value:x};break;case"string":this.kind={case:"stringValue",value:x};break;case"boolean":this.kind={case:"boolValue",value:x};break;case"object":x===null?this.kind={case:"nullValue",value:ao.NULL_VALUE}:Array.isArray(x)?this.kind={case:"listValue",value:so.fromJson(x)}:this.kind={case:"structValue",value:ko.fromJson(x)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(x))}return this}static fromBinary(x,M){return new Ur().fromBinary(x,M)}static fromJson(x,M){return new Ur().fromJson(x,M)}static fromJsonString(x,M){return new Ur().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ur,x,M)}}Ur.runtime=c.w,Ur.typeName="google.protobuf.Value",Ur.fields=c.w.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:c.w.getEnumType(ao),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:ko,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:so,oneof:"kind"}]);class so extends se.v{constructor(x){super(),this.values=[],c.w.util.initPartial(x,this)}toJson(x){return this.values.map(M=>M.toJson())}fromJson(x,M){if(!Array.isArray(x))throw new Error("cannot decode google.protobuf.ListValue from JSON "+c.w.json.debug(x));for(let le of x)this.values.push(Ur.fromJson(le));return this}static fromBinary(x,M){return new so().fromBinary(x,M)}static fromJson(x,M){return new so().fromJson(x,M)}static fromJsonString(x,M){return new so().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(so,x,M)}}so.runtime=c.w,so.typeName="google.protobuf.ListValue",so.fields=c.w.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Ur,repeated:!0}]);var Yl=u(609);class Qo extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.DOUBLE,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.DOUBLE,x)}catch(le){let be='cannot decode message google.protobuf.DoubleValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Qo().fromBinary(x,M)}static fromJson(x,M){return new Qo().fromJson(x,M)}static fromJsonString(x,M){return new Qo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Qo,x,M)}}Qo.runtime=c.w,Qo.typeName="google.protobuf.DoubleValue",Qo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Qo.fieldWrapper={wrapField(F){return new Qo({value:F})},unwrapField(F){return F.value}};class xo extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.FLOAT,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.FLOAT,x)}catch(le){let be='cannot decode message google.protobuf.FloatValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new xo().fromBinary(x,M)}static fromJson(x,M){return new xo().fromJson(x,M)}static fromJsonString(x,M){return new xo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(xo,x,M)}}xo.runtime=c.w,xo.typeName="google.protobuf.FloatValue",xo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),xo.fieldWrapper={wrapField(F){return new xo({value:F})},unwrapField(F){return F.value}};class Vi extends se.v{constructor(x){super(),this.value=_.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT64,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.INT64,x)}catch(le){let be='cannot decode message google.protobuf.Int64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Vi().fromBinary(x,M)}static fromJson(x,M){return new Vi().fromJson(x,M)}static fromJsonString(x,M){return new Vi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Vi,x,M)}}Vi.runtime=c.w,Vi.typeName="google.protobuf.Int64Value",Vi.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Vi.fieldWrapper={wrapField(F){return new Vi({value:F})},unwrapField(F){return F.value}};class br extends se.v{constructor(x){super(),this.value=_.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT64,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.UINT64,x)}catch(le){let be='cannot decode message google.protobuf.UInt64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new br().fromBinary(x,M)}static fromJson(x,M){return new br().fromJson(x,M)}static fromJsonString(x,M){return new br().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(br,x,M)}}br.runtime=c.w,br.typeName="google.protobuf.UInt64Value",br.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),br.fieldWrapper={wrapField(F){return new br({value:F})},unwrapField(F){return F.value}};class _r extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT32,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.INT32,x)}catch(le){let be='cannot decode message google.protobuf.Int32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new _r().fromBinary(x,M)}static fromJson(x,M){return new _r().fromJson(x,M)}static fromJsonString(x,M){return new _r().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(_r,x,M)}}_r.runtime=c.w,_r.typeName="google.protobuf.Int32Value",_r.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),_r.fieldWrapper={wrapField(F){return new _r({value:F})},unwrapField(F){return F.value}};class jr extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT32,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.UINT32,x)}catch(le){let be='cannot decode message google.protobuf.UInt32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new jr().fromBinary(x,M)}static fromJson(x,M){return new jr().fromJson(x,M)}static fromJsonString(x,M){return new jr().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(jr,x,M)}}jr.runtime=c.w,jr.typeName="google.protobuf.UInt32Value",jr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),jr.fieldWrapper={wrapField(F){return new jr({value:F})},unwrapField(F){return F.value}};class Yo extends se.v{constructor(x){super(),this.value=!1,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BOOL,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.BOOL,x)}catch(le){let be='cannot decode message google.protobuf.BoolValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Yo().fromBinary(x,M)}static fromJson(x,M){return new Yo().fromJson(x,M)}static fromJsonString(x,M){return new Yo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Yo,x,M)}}Yo.runtime=c.w,Yo.typeName="google.protobuf.BoolValue",Yo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Yo.fieldWrapper={wrapField(F){return new Yo({value:F})},unwrapField(F){return F.value}};class Hi extends se.v{constructor(x){super(),this.value="",c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.STRING,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.STRING,x)}catch(le){let be='cannot decode message google.protobuf.StringValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Hi().fromBinary(x,M)}static fromJson(x,M){return new Hi().fromJson(x,M)}static fromJsonString(x,M){return new Hi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Hi,x,M)}}Hi.runtime=c.w,Hi.typeName="google.protobuf.StringValue",Hi.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),Hi.fieldWrapper={wrapField(F){return new Hi({value:F})},unwrapField(F){return F.value}};class Jt extends se.v{constructor(x){super(),this.value=new Uint8Array(0),c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BYTES,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.BYTES,x)}catch(le){let be='cannot decode message google.protobuf.BytesValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Jt().fromBinary(x,M)}static fromJson(x,M){return new Jt().fromJson(x,M)}static fromJsonString(x,M){return new Jt().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Jt,x,M)}}Jt.runtime=c.w,Jt.typeName="google.protobuf.BytesValue",Jt.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Jt.fieldWrapper={wrapField(F){return new Jt({value:F})},unwrapField(F){return F.value}};const Rr=[Jp.I,Er,Ts,ws,ko,Ur,so,da,Er,Qo,xo,Vi,_r,jr,br,Yo,Hi,Jt],eh=[(0,Yl.V3)(ao)];function gf(F,x=!0){const M=F instanceof Uint8Array||F instanceof ce?Wt(F):F,le={},be={},Pe={};if(x){for(const je of Rr)be[je.typeName]=je;for(const je of eh)le[je.typeName]=je}return{findEnum(je){const ct=le[je];if(ct)return ct;const Ze=M.enums.get(je);if(!Ze)return;const Pt=(Ze.file.syntax=="proto3"?c.w:E).makeEnumType(je,Ze.values.map(On=>({no:On.number,name:On.name,localName:(0,v.r1)(On)})),{});return le[je]=Pt,Pt},findMessage(je){const ct=be[je];if(ct)return ct;const Ze=M.messages.get(je);if(!Ze)return;const Ot=Ze.file.syntax=="proto3"?c.w:E,Pt=[],On=Ot.makeMessageType(je,()=>Pt,{localName:(0,v.r1)(Ze)});be[je]=On;for(const Sr of Ze.fields){const Sn=Go(Sr,this);Pt.push(Sn)}return On},findService(je){const ct=Pe[je];if(ct)return ct;const Ze=M.services.get(je);if(!Ze)return;const Ot={};for(const Pt of Ze.methods){const On=this.findMessage(Pt.input.typeName),Sr=this.findMessage(Pt.output.typeName);(0,k.hu)(On,`message "${Pt.input.typeName}" for ${Pt.toString()} not found`),(0,k.hu)(Sr,`output message "${Pt.output.typeName}" for ${Pt.toString()} not found`),Ot[(0,v.r1)(Pt)]={name:Pt.name,I:On,O:Sr,kind:Pt.methodKind,idempotency:Pt.idempotency}}return Pe[je]={typeName:Ze.typeName,methods:Ot}}}}function Go(F,x){switch(F.fieldKind){case"map":return Gl(F,x);case"message":return bf(F,x);case"enum":{const M=ql(F,x);return M.default=F.getDefaultValue(),M}case"scalar":{const M=Yu(F);return M.default=F.getDefaultValue(),M}}}function Gl(F,x){const M={kind:"map",no:F.number,name:F.name,jsonName:F.jsonName,K:F.mapKey};if(F.mapValue.message){const le=x.findMessage(F.mapValue.message.typeName);return(0,k.hu)(le,`message "${F.mapValue.message.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},M),{V:{kind:"message",T:le}})}if(F.mapValue.enum){const le=x.findEnum(F.mapValue.enum.typeName);return(0,k.hu)(le,`enum "${F.mapValue.enum.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},M),{V:{kind:"enum",T:le}})}return Object.assign(Object.assign({},M),{V:{kind:"scalar",T:F.mapValue.scalar}})}function Yu(F){const x=F.longType==p.p.STRING?{L:p.p.STRING}:{},M=Object.assign({kind:"scalar",no:F.number,name:F.name,jsonName:F.jsonName,T:F.scalar},x);return F.repeated?Object.assign(Object.assign({},M),{repeated:!0,packed:F.packed,oneof:void 0,T:F.scalar}):F.oneof?Object.assign(Object.assign({},M),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},M),{opt:!0}):M}function bf(F,x){const M=x.findMessage(F.message.typeName);(0,k.hu)(M,`message "${F.message.typeName}" for ${F.toString()} not found`);const le={kind:"message",no:F.number,name:F.name,jsonName:F.jsonName,T:M,delimited:F.proto.type==ye.GROUP};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function ql(F,x){const M=x.findEnum(F.enum.typeName);(0,k.hu)(M,`enum "${F.enum.typeName}" for ${F.toString()} not found`);const le={kind:"enum",no:F.number,name:F.name,jsonName:F.jsonName,T:M};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function th(F){if(!(F instanceof se.v))return F;const x=F.getType(),M={};for(const le of x.fields.byMember()){const be=F[le.localName];let Pe;if(le.repeated)Pe=be.map(je=>$a(je));else if(le.kind=="map"){Pe={};for(const[je,ct]of Object.entries(be))Pe[je]=$a(ct)}else le.kind=="oneof"?Pe=le.findField(be.case)?{case:be.case,value:$a(be.value)}:{case:void 0}:Pe=$a(be);M[le.localName]=Pe}return M}function $a(F){if(F===void 0)return F;if(F instanceof se.v)return th(F);if(F instanceof Uint8Array){const x=new Uint8Array(F.byteLength);return x.set(F),x}return F}class qo extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new qo().fromBinary(x,M)}static fromJson(x,M){return new qo().fromJson(x,M)}static fromJsonString(x,M){return new qo().fromJsonString(x,M)}static equals(x,M){return E.util.equals(qo,x,M)}}qo.runtime=E,qo.typeName="google.protobuf.compiler.Version",qo.fields=E.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 Zo extends se.v{constructor(x){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Zo().fromBinary(x,M)}static fromJson(x,M){return new Zo().fromJson(x,M)}static fromJsonString(x,M){return new Zo().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Zo,x,M)}}Zo.runtime=E,Zo.typeName="google.protobuf.compiler.CodeGeneratorRequest",Zo.fields=E.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:ge,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:ge,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:qo,opt:!0}]);class fi extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new fi().fromBinary(x,M)}static fromJson(x,M){return new fi().fromJson(x,M)}static fromJsonString(x,M){return new fi().fromJsonString(x,M)}static equals(x,M){return E.util.equals(fi,x,M)}}fi.runtime=E,fi.typeName="google.protobuf.compiler.CodeGeneratorResponse",fi.fields=E.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:Co,repeated:!0}]);var Zl;(function(F){F[F.NONE=0]="NONE",F[F.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",F[F.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(Zl||(Zl={})),E.util.setEnumType(Zl,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class Co extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Co().fromBinary(x,M)}static fromJson(x,M){return new Co().fromJson(x,M)}static fromJsonString(x,M){return new Co().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Co,x,M)}}Co.runtime=E,Co.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",Co.fields=E.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:$t,opt:!0}]);class fa extends se.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new fa().fromBinary(x,M)}static fromJson(x,M){return new fa().fromJson(x,M)}static fromJsonString(x,M){return new fa().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(fa,x,M)}}fa.runtime=c.w,fa.typeName="google.protobuf.SourceContext",fa.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var pa;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(pa||(pa={})),c.w.util.setEnumType(pa,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class xi extends se.v{constructor(x){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=pa.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new xi().fromBinary(x,M)}static fromJson(x,M){return new xi().fromJson(x,M)}static fromJsonString(x,M){return new xi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(xi,x,M)}}xi.runtime=c.w,xi.typeName="google.protobuf.Type",xi.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Xo,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Ci,repeated:!0},{no:5,name:"source_context",kind:"message",T:fa},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(pa)},{no:7,name:"edition",kind:"scalar",T:9}]);class Xo extends se.v{constructor(x){super(),this.kind=Fc.TYPE_UNKNOWN,this.cardinality=Bc.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Xo().fromBinary(x,M)}static fromJson(x,M){return new Xo().fromJson(x,M)}static fromJsonString(x,M){return new Xo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Xo,x,M)}}Xo.runtime=c.w,Xo.typeName="google.protobuf.Field",Xo.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(Fc)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Bc)},{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:Ci,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var Fc;(function(F){F[F.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",F[F.TYPE_DOUBLE=1]="TYPE_DOUBLE",F[F.TYPE_FLOAT=2]="TYPE_FLOAT",F[F.TYPE_INT64=3]="TYPE_INT64",F[F.TYPE_UINT64=4]="TYPE_UINT64",F[F.TYPE_INT32=5]="TYPE_INT32",F[F.TYPE_FIXED64=6]="TYPE_FIXED64",F[F.TYPE_FIXED32=7]="TYPE_FIXED32",F[F.TYPE_BOOL=8]="TYPE_BOOL",F[F.TYPE_STRING=9]="TYPE_STRING",F[F.TYPE_GROUP=10]="TYPE_GROUP",F[F.TYPE_MESSAGE=11]="TYPE_MESSAGE",F[F.TYPE_BYTES=12]="TYPE_BYTES",F[F.TYPE_UINT32=13]="TYPE_UINT32",F[F.TYPE_ENUM=14]="TYPE_ENUM",F[F.TYPE_SFIXED32=15]="TYPE_SFIXED32",F[F.TYPE_SFIXED64=16]="TYPE_SFIXED64",F[F.TYPE_SINT32=17]="TYPE_SINT32",F[F.TYPE_SINT64=18]="TYPE_SINT64"})(Fc||(Fc={})),c.w.util.setEnumType(Fc,"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 Bc;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.OPTIONAL=1]="OPTIONAL",F[F.REQUIRED=2]="REQUIRED",F[F.REPEATED=3]="REPEATED"})(Bc||(Bc={})),c.w.util.setEnumType(Bc,"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 Gn extends se.v{constructor(x){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=pa.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Gn().fromBinary(x,M)}static fromJson(x,M){return new Gn().fromJson(x,M)}static fromJsonString(x,M){return new Gn().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Gn,x,M)}}Gn.runtime=c.w,Gn.typeName="google.protobuf.Enum",Gn.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Fa,repeated:!0},{no:3,name:"options",kind:"message",T:Ci,repeated:!0},{no:4,name:"source_context",kind:"message",T:fa},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(pa)},{no:6,name:"edition",kind:"scalar",T:9}]);class Fa extends se.v{constructor(x){super(),this.name="",this.number=0,this.options=[],c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Fa().fromBinary(x,M)}static fromJson(x,M){return new Fa().fromJson(x,M)}static fromJsonString(x,M){return new Fa().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Fa,x,M)}}Fa.runtime=c.w,Fa.typeName="google.protobuf.EnumValue",Fa.fields=c.w.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:Ci,repeated:!0}]);class Ci extends se.v{constructor(x){super(),this.name="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ci().fromBinary(x,M)}static fromJson(x,M){return new Ci().fromJson(x,M)}static fromJsonString(x,M){return new Ci().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ci,x,M)}}Ci.runtime=c.w,Ci.typeName="google.protobuf.Option",Ci.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Jp.I}]);class Ba extends se.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=pa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ba().fromBinary(x,M)}static fromJson(x,M){return new Ba().fromJson(x,M)}static fromJsonString(x,M){return new Ba().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ba,x,M)}}Ba.runtime=c.w,Ba.typeName="google.protobuf.Api",Ba.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:ha,repeated:!0},{no:3,name:"options",kind:"message",T:Ci,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:fa},{no:6,name:"mixins",kind:"message",T:Ua,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(pa)}]);class ha extends se.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=pa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,M){return new ha().fromBinary(x,M)}static fromJson(x,M){return new ha().fromJson(x,M)}static fromJsonString(x,M){return new ha().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ha,x,M)}}ha.runtime=c.w,ha.typeName="google.protobuf.Method",ha.fields=c.w.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:Ci,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(pa)}]);class Ua extends se.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ua().fromBinary(x,M)}static fromJson(x,M){return new Ua().fromJson(x,M)}static fromJsonString(x,M){return new Ua().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ua,x,M)}}Ua.runtime=c.w,Ua.typeName="google.protobuf.Mixin",Ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}])},561:(s,l,u)=>{u.d(l,{v:()=>c});class c{equals(p){return this.getType().runtime.util.equals(this.getType(),this,p)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(p,h){const m=this.getType(),b=m.runtime.bin,O=b.makeReadOptions(h);return b.readMessage(this,O.readerFactory(p),p.byteLength,O),this}fromJson(p,h){const m=this.getType(),b=m.runtime.json,O=b.makeReadOptions(h);return b.readMessage(m,p,O,this),this}fromJsonString(p,h){let m;try{m=JSON.parse(p)}catch(b){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${b instanceof Error?b.message:String(b)}`)}return this.fromJson(m,h)}toBinary(p){const h=this.getType(),m=h.runtime.bin,b=m.makeWriteOptions(p),O=b.writerFactory();return m.writeMessage(this,O,b),O.finish()}toJson(p){const h=this.getType(),m=h.runtime.json,b=m.makeWriteOptions(p);return m.writeMessage(this,b)}toJsonString(p){var h;const m=this.toJson(p);return JSON.stringify(m,null,(h=p==null?void 0:p.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}},120:(s,l,u)=>{u.d(l,{E_:()=>v,fp:()=>y,hu:()=>c,ug:()=>O});function c(S,k){if(!S)throw new Error(k)}const d=34028234663852886e22,p=-34028234663852886e22,h=4294967295,m=2147483647,b=-2147483648;function O(S){if(typeof S!="number")throw new Error("invalid int 32: "+typeof S);if(!Number.isInteger(S)||S>m||Sh||S<0)throw new Error("invalid uint 32: "+S)}function v(S){if(typeof S!="number")throw new Error("invalid float 32: "+typeof S);if(Number.isFinite(S)&&(S>d||S{u.d(l,{Jj:()=>V,NN:()=>U,gQ:()=>_,gY:()=>C,oQ:()=>B});var c=u(79),d=u(561),p=u(465),h=u(432),m=u(781),b=u(120);const O=Symbol("@bufbuild/protobuf/unknown-fields"),y={readUnknownFields:!0,readerFactory:z=>new c.oP(z)},v={writeUnknownFields:!0,writerFactory:()=>new c.Lt};function S(z){return z?Object.assign(Object.assign({},y),z):y}function k(z){return z?Object.assign(Object.assign({},v),z):v}function C(){return{makeReadOptions:S,makeWriteOptions:k,listUnknownFields(z){var W;return(W=z[O])!==null&&W!==void 0?W:[]},discardUnknownFields(z){delete z[O]},writeUnknownFields(z,W){const q=z[O];if(q)for(const Y of q)W.tag(Y.no,Y.wireType).raw(Y.data)},onUnknownField(z,W,X,q){const Y=z;Array.isArray(Y[O])||(Y[O]=[]),Y[O].push({no:W,wireType:X,data:q})},readMessage(z,W,X,q,Y){const Z=z.getType(),j=Y?W.len:W.pos+X;let se,ve;for(;W.pos0&&(De=$),ge){let Ge=ce[ue];if(ve==c.TD.LengthDelimited&&xe!=p.w.STRING&&xe!=p.w.BYTES){let ye=W.uint32()+W.pos;for(;W.pos{u.d(l,{V3:()=>p,be:()=>m,ut:()=>b,zg:()=>h});var c=u(120);const d=Symbol("@bufbuild/protobuf/enum-type");function p(y){const v=y[d];return(0,c.hu)(v,"missing enum type on enum object"),v}function h(y,v,S,k){y[d]=m(v,S.map(C=>({no:C.no,name:C.name,localName:y[C.no]})))}function m(y,v,S){const k=Object.create(null),C=Object.create(null),w=[];for(const E of v){const $=O(E);w.push($),k[E.name]=$,C[E.no]=$}return{typeName:y,values:w,findName(E){return k[E]},findNumber(E){return C[E]}}}function b(y,v,S){const k={};for(const C of v){const w=O(C);k[w.localName]=w.no,k[w.no]=w.localName}return h(k,y,v),k}function O(y){return"localName"in y?y:Object.assign(Object.assign({},y),{localName:y.name})}},501:(s,l,u)=>{u.d(l,{i:()=>c});class c{constructor(p,h){this._fields=p,this._normalizer=h}findJsonName(p){if(!this.jsonNames){const h={};for(const m of this.list())h[m.jsonName]=h[m.name]=m;this.jsonNames=h}return this.jsonNames[p]}find(p){if(!this.numbers){const h={};for(const m of this.list())h[m.no]=m;this.numbers=h}return this.numbers[p]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((p,h)=>p.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const p=this.members;let h;for(const m of this.list())m.oneof?m.oneof!==h&&(h=m.oneof,p.push(h)):p.push(m)}return this.members}}},432:(s,l,u)=>{u.d(l,{E:()=>p,w:()=>h});var c=u(561),d=u(465);function p(b,O){return O instanceof c.v||!b.fieldWrapper?O:b.fieldWrapper.wrapField(O)}function h(b){if(b.fieldKind==="message"&&!b.repeated&&b.oneof==null)return m[b.message.typeName]}const m={"google.protobuf.DoubleValue":d.w.DOUBLE,"google.protobuf.FloatValue":d.w.FLOAT,"google.protobuf.Int64Value":d.w.INT64,"google.protobuf.UInt64Value":d.w.UINT64,"google.protobuf.Int32Value":d.w.INT32,"google.protobuf.UInt32Value":d.w.UINT32,"google.protobuf.BoolValue":d.w.BOOL,"google.protobuf.StringValue":d.w.STRING,"google.protobuf.BytesValue":d.w.BYTES}},215:(s,l,u)=>{u.d(l,{o:()=>p});var c=u(504),d=u(120);class p{constructor(m){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=m,this.localName=(0,c.uA)(m)}addField(m){(0,d.hu)(m.oneof===this,`field ${m.name} not one of ${this.name}`),this.fields.push(m)}findField(m){if(!this._lookup){this._lookup=Object.create(null);for(let b=0;b{u.d(l,{b:()=>S});var c=u(561),d=u(465),p=u(120),h=u(210),m=u(236);const b={ignoreUnknownFields:!1},O={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function y(P){return P?Object.assign(Object.assign({},b),P):b}function v(P){return P?Object.assign(Object.assign({},O),P):O}function S(P){const _=P(E,$);return{makeReadOptions:y,makeWriteOptions:v,readMessage(B,U,V,z){if(U==null||Array.isArray(U)||typeof U!="object")throw new Error(`cannot decode message ${B.typeName} from JSON: ${this.debug(U)}`);z=z??new B;const W={};for(const[X,q]of Object.entries(U)){const Y=B.fields.findJsonName(X);if(!Y){if(!V.ignoreUnknownFields)throw new Error(`cannot decode message ${B.typeName} from JSON: key "${X}" is unknown`);continue}let Z=Y.localName,j=z;if(Y.oneof){if(q===null&&Y.kind=="scalar")continue;const se=W[Y.oneof.localName];if(se)throw new Error(`cannot decode message ${B.typeName} from JSON: multiple keys for oneof "${Y.oneof.name}" present: "${se}", "${X}"`);W[Y.oneof.localName]=X,j=j[Y.oneof.localName]={case:Z},Z="value"}if(Y.repeated){if(q===null)continue;if(!Array.isArray(q))throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const ve of q){if(ve===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`);let G;switch(Y.kind){case"message":G=Y.T.fromJson(ve,V);break;case"enum":if(G=w(Y.T,ve,V.ignoreUnknownFields),G===void 0)continue;break;case"scalar":try{G=C(Y.T,ve,Y.L)}catch(ce){let ge=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`;throw ce instanceof Error&&ce.message.length>0&&(ge+=`: ${ce.message}`),new Error(ge)}break}se.push(G)}}else if(Y.kind=="map"){if(q===null)continue;if(Array.isArray(q)||typeof q!="object")throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const[ve,G]of Object.entries(q)){if(G===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: map value null`);let ce;switch(Y.V.kind){case"message":ce=Y.V.T.fromJson(G,V);break;case"enum":if(ce=w(Y.V.T,G,V.ignoreUnknownFields),ce===void 0)continue;break;case"scalar":try{ce=C(Y.V.T,G,d.p.BIGINT)}catch(ge){let ue=`cannot decode map value for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}break}try{se[C(Y.K,Y.K==d.w.BOOL?ve=="true"?!0:ve=="false"?!1:ve:ve,d.p.BIGINT).toString()]=ce}catch(ge){let ue=`cannot decode map key for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}}}else switch(Y.kind){case"message":const se=Y.T;if(q===null&&se.typeName!="google.protobuf.Value"){if(Y.oneof)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: null is invalid for oneof field "${X}"`);continue}j[Z]instanceof c.v?j[Z].fromJson(q,V):(j[Z]=se.fromJson(q,V),se.fieldWrapper&&!Y.oneof&&(j[Z]=se.fieldWrapper.unwrapField(j[Z])));break;case"enum":const ve=w(Y.T,q,V.ignoreUnknownFields);ve!==void 0&&(j[Z]=ve);break;case"scalar":try{j[Z]=C(Y.T,q,Y.L)}catch(G){let ce=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw G instanceof Error&&G.message.length>0&&(ce+=`: ${G.message}`),new Error(ce)}break}}return z},writeMessage(B,U){const V=B.getType(),z={};let W;try{for(const X of V.fields.byMember()){let q;if(X.kind=="oneof"){const Y=B[X.localName];if(Y.value===void 0)continue;if(W=X.findField(Y.case),!W)throw"oneof case not found: "+Y.case;q=_(W,Y.value,U)}else W=X,q=_(W,B[W.localName],U);q!==void 0&&(z[U.useProtoFieldName?W.name:W.jsonName]=q)}}catch(X){const q=W?`cannot encode field ${V.typeName}.${W.name} to JSON`:`cannot encode message ${V.typeName} to JSON`,Y=X instanceof Error?X.message:String(X);throw new Error(q+(Y.length>0?`: ${Y}`:""))}return z},readScalar:C,writeScalar:$,debug:k}}function k(P){if(P===null)return"null";switch(typeof P){case"object":return Array.isArray(P)?"array":"object";case"string":return P.length>100?"string":`"${P.split('"').join('\\"')}"`;default:return String(P)}}function C(P,_,B){switch(P){case d.w.DOUBLE:case d.w.FLOAT:if(_===null)return 0;if(_==="NaN")return Number.NaN;if(_==="Infinity")return Number.POSITIVE_INFINITY;if(_==="-Infinity")return Number.NEGATIVE_INFINITY;if(_===""||typeof _=="string"&&_.trim().length!==_.length||typeof _!="string"&&typeof _!="number")break;const U=Number(_);if(Number.isNaN(U)||!Number.isFinite(U))break;return P==d.w.FLOAT&&(0,p.E_)(U),U;case d.w.INT32:case d.w.FIXED32:case d.w.SFIXED32:case d.w.SINT32:case d.w.UINT32:if(_===null)return 0;let V;if(typeof _=="number"?V=_:typeof _=="string"&&_.length>0&&_.trim().length===_.length&&(V=Number(_)),V===void 0)break;return P==d.w.UINT32?(0,p.fp)(V):(0,p.ug)(V),V;case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:if(_===null)return h.q.zero;if(typeof _!="number"&&typeof _!="string")break;const z=h.q.parse(_);return B?z.toString():z;case d.w.FIXED64:case d.w.UINT64:if(_===null)return h.q.zero;if(typeof _!="number"&&typeof _!="string")break;const W=h.q.uParse(_);return B?W.toString():W;case d.w.BOOL:if(_===null)return!1;if(typeof _!="boolean")break;return _;case d.w.STRING:if(_===null)return"";if(typeof _!="string")break;try{encodeURIComponent(_)}catch{throw new Error("invalid UTF8")}return _;case d.w.BYTES:if(_===null||_==="")return new Uint8Array(0);if(typeof _!="string")break;return m.W.dec(_)}throw new Error}function w(P,_,B){if(_===null)return 0;switch(typeof _){case"number":if(Number.isInteger(_))return _;break;case"string":const U=P.findName(_);if(U||B)return U==null?void 0:U.no;break}throw new Error(`cannot decode enum ${P.typeName} from JSON: ${k(_)}`)}function E(P,_,B,U){var V;if(_===void 0)return _;if(_===0&&!B)return;if(U)return _;if(P.typeName=="google.protobuf.NullValue")return null;const z=P.findNumber(_);return(V=z==null?void 0:z.name)!==null&&V!==void 0?V:_}function $(P,_,B){if(_!==void 0)switch(P){case d.w.INT32:case d.w.SFIXED32:case d.w.SINT32:case d.w.FIXED32:case d.w.UINT32:return(0,p.hu)(typeof _=="number"),_!=0||B?_:void 0;case d.w.FLOAT:case d.w.DOUBLE:return(0,p.hu)(typeof _=="number"),Number.isNaN(_)?"NaN":_===Number.POSITIVE_INFINITY?"Infinity":_===Number.NEGATIVE_INFINITY?"-Infinity":_!==0||B?_:void 0;case d.w.STRING:return(0,p.hu)(typeof _=="string"),_.length>0||B?_:void 0;case d.w.BOOL:return(0,p.hu)(typeof _=="boolean"),_||B?_:void 0;case d.w.UINT64:case d.w.FIXED64:case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:return(0,p.hu)(typeof _=="bigint"||typeof _=="string"||typeof _=="number"),B||_!=0?_.toString(10):void 0;case d.w.BYTES:return(0,p.hu)(_ instanceof Uint8Array),B||_.byteLength>0?m.W.enc(_):void 0}}},504:(s,l,u)=>{u.d(l,{GD:()=>E,Rz:()=>d,Sm:()=>m,ll:()=>w,r1:()=>c,uA:()=>p,x1:()=>h});function c($){switch($.kind){case"field":return d($.name,$.oneof!==void 0);case"oneof":return p($.name);case"enum":case"message":case"service":{const P=$.file.proto.package,_=P===void 0?0:P.length+1,B=$.typeName.substring(_).replace(/\./g,"_");return w(E(B))}case"enum_value":{const P=$.parent.sharedPrefix;if(P===void 0)return $.name;const _=$.name.substring(P.length);return w(_)}case"rpc":{let P=$.name;return P.length==0?P:(P=P[0].toLowerCase()+P.substring(1),w(P))}}}function d($,P){const _=O($);return P?_:w(C(_))}function p($){return d($,!1)}const h=O;function m($,P){const _=b($)+"_";for(const B of P){if(!B.toLowerCase().startsWith(_))return;const U=B.substring(_.length);if(U.length==0||/^\d/.test(U))return}return _}function b($){return($.substring(0,1)+$.substring(1).replace(/[A-Z]/g,P=>"_"+P)).toLowerCase()}function O($){let P=!1;const _=[];for(let B=0;B<$.length;B++){let U=$.charAt(B);switch(U){case"_":P=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":_.push(U),P=!1;break;default:P&&(P=!1,U=U.toUpperCase()),_.push(U);break}}return _.join("")}const y=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","Object","bigint","number","boolean","string","object","globalThis","Uint8Array","Partial"]),v=new Set(["constructor","toString","toJSON","valueOf"]),S=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),k=$=>`${$}$`,C=$=>S.has($)?k($):$,w=$=>v.has($)?k($):$,E=$=>y.has($)?k($):$},493:(s,l,u)=>{u.d(l,{F:()=>h});var c=u(609),d=u(561);function p(m,b,O,y){var v;const S=(v=y==null?void 0:y.localName)!==null&&v!==void 0?v:b.substring(b.lastIndexOf(".")+1),k={[S]:function(C){m.util.initFields(this),m.util.initPartial(C,this)}}[S];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:m,typeName:b,fields:m.util.newFieldList(O),fromBinary(C,w){return new k().fromBinary(C,w)},fromJson(C,w){return new k().fromJson(C,w)},fromJsonString(C,w){return new k().fromJsonString(C,w)},equals(C,w){return m.util.equals(k,C,w)}}),k}function h(m,b,O,y){return{syntax:m,json:b,bin:O,util:y,makeMessageType(v,S,k){return p(this,v,S,k)},makeEnum:c.ut,makeEnumType:c.be,getEnumType:c.V3}}},781:(s,l,u)=>{u.d(l,{AA:()=>h,T1:()=>b,kY:()=>m});var c=u(465),d=u(79),p=u(210);function h(O,y,v){if(y===v)return!0;if(O==c.w.BYTES){if(!(y instanceof Uint8Array)||!(v instanceof Uint8Array)||y.length!==v.length)return!1;for(let S=0;S{u.d(l,{f:()=>m});var c=u(609),d=u(561),p=u(465),h=u(781);function m(){return{setEnumType:c.zg,initPartial(y,v){if(y===void 0)return;const S=v.getType();for(const k of S.fields.byMember()){const C=k.localName,w=v,E=y;if(E[C]!==void 0)switch(k.kind){case"oneof":const $=E[C].case;if($===void 0)continue;const P=k.findField($);let _=E[C].value;P&&P.kind=="message"&&!(_ instanceof P.T)?_=new P.T(_):P&&P.kind==="scalar"&&P.T===p.w.BYTES&&(_=O(_)),w[C]={case:$,value:_};break;case"scalar":case"enum":let B=E[C];k.T===p.w.BYTES&&(B=k.repeated?B.map(O):O(B)),w[C]=B;break;case"map":switch(k.V.kind){case"scalar":case"enum":if(k.V.T===p.w.BYTES)for(const[z,W]of Object.entries(E[C]))w[C][z]=O(W);else Object.assign(w[C],E[C]);break;case"message":const V=k.V.T;for(const z of Object.keys(E[C])){let W=E[C][z];V.fieldWrapper||(W=new V(W)),w[C][z]=W}break}break;case"message":const U=k.T;if(k.repeated)w[C]=E[C].map(V=>V instanceof U?V:new U(V));else if(E[C]!==void 0){const V=E[C];U.fieldWrapper?U.typeName==="google.protobuf.BytesValue"?w[C]=O(V):w[C]=V:w[C]=V instanceof U?V:new U(V)}break}}},equals(y,v,S){return v===S?!0:!v||!S?!1:y.fields.byMember().every(k=>{const C=v[k.localName],w=S[k.localName];if(k.repeated){if(C.length!==w.length)return!1;switch(k.kind){case"message":return C.every((E,$)=>k.T.equals(E,w[$]));case"scalar":return C.every((E,$)=>(0,h.AA)(k.T,E,w[$]));case"enum":return C.every((E,$)=>(0,h.AA)(p.w.INT32,E,w[$]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(C,w);case"enum":return(0,h.AA)(p.w.INT32,C,w);case"scalar":return(0,h.AA)(k.T,C,w);case"oneof":if(C.case!==w.case)return!1;const E=k.findField(C.case);if(E===void 0)return!0;switch(E.kind){case"message":return E.T.equals(C.value,w.value);case"enum":return(0,h.AA)(p.w.INT32,C.value,w.value);case"scalar":return(0,h.AA)(E.T,C.value,w.value)}throw new Error(`oneof cannot contain ${E.kind}`);case"map":const $=Object.keys(C).concat(Object.keys(w));switch(k.V.kind){case"message":const P=k.V.T;return $.every(B=>P.equals(C[B],w[B]));case"enum":return $.every(B=>(0,h.AA)(p.w.INT32,C[B],w[B]));case"scalar":const _=k.V.T;return $.every(B=>(0,h.AA)(_,C[B],w[B]))}break}})},clone(y){const v=y.getType(),S=new v,k=S;for(const C of v.fields.byMember()){const w=y[C.localName];let E;if(C.repeated)E=w.map(b);else if(C.kind=="map"){E=k[C.localName];for(const[$,P]of Object.entries(w))E[$]=b(P)}else C.kind=="oneof"?E=C.findField(w.case)?{case:w.case,value:b(w.value)}:{case:void 0}:E=b(w);k[C.localName]=E}return S}}}function b(y){if(y===void 0)return y;if(y instanceof d.v)return y.clone();if(y instanceof Uint8Array){const v=new Uint8Array(y.byteLength);return v.set(y),v}return y}function O(y){return y instanceof Uint8Array?y:new Uint8Array(y)}},236:(s,l,u)=>{u.d(l,{W:()=>p});let c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];for(let h=0;h>4,S=v,y=2;break;case 2:b[O++]=(S&15)<<4|(v&60)>>2,S=v,y=3;break;case 3:b[O++]=(S&3)<<6|v,y=0;break}}if(y==1)throw Error("invalid base64 string.");return b.subarray(0,O)},enc(h){let m="",b=0,O,y=0;for(let v=0;v>2],y=(O&3)<<4,b=1;break;case 1:m+=c[y|O>>4],y=(O&15)<<2,b=2;break;case 2:m+=c[y|O>>6],m+=c[O&63],b=0;break}return b&&(m+=c[y],m+="=",b==1&&(m+="=")),m}}},210:(s,l,u)=>{u.d(l,{q:()=>h});var c=u(120),d=u(818);function p(){const m=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof m.getBigInt64=="function"&&typeof m.getBigUint64=="function"&&typeof m.setBigInt64=="function"&&typeof m.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const v=BigInt("-9223372036854775808"),S=BigInt("9223372036854775807"),k=BigInt("0"),C=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(w){const E=typeof w=="bigint"?w:BigInt(w);if(E>S||EC||E(0,c.hu)(/^-?[0-9]+$/.test(v),`int64 invalid: ${v}`),y=v=>(0,c.hu)(/^[0-9]+$/.test(v),`uint64 invalid: ${v}`);return{zero:"0",supported:!1,parse(v){return typeof v!="string"&&(v=v.toString()),O(v),v},uParse(v){return typeof v!="string"&&(v=v.toString()),y(v),v},enc(v){return typeof v!="string"&&(v=v.toString()),O(v),(0,d.CZ)(v)},uEnc(v){return typeof v!="string"&&(v=v.toString()),y(v),(0,d.CZ)(v)},dec(v,S){return(0,d.Ak)(v,S)},uDec(v,S){return(0,d.Fd)(v,S)}}}const h=p()},850:(s,l,u)=>{u.d(l,{w:()=>E});var c=u(493),d=u(465),p=u(744);function h(){return Object.assign(Object.assign({},(0,p.gY)()),{writeMessage(P,_,B){const U=P.getType();for(const V of U.fields.byNumber()){let z,W=V.repeated,X=V.localName;if(V.oneof){const q=P[V.oneof.localName];if(q.case!==X)continue;z=q.value}else z=P[X];switch(V.kind){case"scalar":case"enum":let q=V.kind=="enum"?d.w.INT32:V.T;if(W)if(V.packed)(0,p.Jj)(_,q,V.no,z);else for(const Y of z)(0,p.NN)(_,q,V.no,Y,!0);else z!==void 0&&(0,p.NN)(_,q,V.no,z,!!V.oneof||V.opt);break;case"message":if(W)for(const Y of z)(0,p.oQ)(_,B,V,Y);else(0,p.oQ)(_,B,V,z);break;case"map":for(const[Y,Z]of Object.entries(z))(0,p.gQ)(_,B,V,Y,Z);break}}return B.writeUnknownFields&&this.writeUnknownFields(P,_),_}})}var m=u(432),b=u(120),O=u(814);function y(){return(0,O.b)((P,_)=>function(U,V,z){if(U.kind=="map"){const W={};switch(U.V.kind){case"scalar":for(const[q,Y]of Object.entries(V)){const Z=_(U.V.T,Y,!0);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break;case"message":for(const[q,Y]of Object.entries(V))W[q.toString()]=Y.toJson(z);break;case"enum":const X=U.V.T;for(const[q,Y]of Object.entries(V)){(0,b.hu)(Y===void 0||typeof Y=="number");const Z=P(X,Y,!0,z.enumAsInteger);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break}return z.emitDefaultValues||Object.keys(W).length>0?W:void 0}else if(U.repeated){const W=[];switch(U.kind){case"scalar":for(let X=0;X0?W:void 0}else switch(U.kind){case"scalar":return _(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues);case"enum":return P(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues,z.enumAsInteger);case"message":return V!==void 0?(0,m.E)(U.T,V).toJson(z):void 0}})}var v=u(433),S=u(501),k=u(781),C=u(215),w=u(504);const E=(0,c.F)("proto3",y(),h(),Object.assign(Object.assign({},(0,v.f)()),{newFieldList(P){return new S.i(P,$)},initFields(P){for(const _ of P.getType().fields.byMember()){if(_.opt)continue;const B=_.localName,U=P;if(_.repeated){U[B]=[];continue}switch(_.kind){case"oneof":U[B]={case:void 0};break;case"enum":U[B]=0;break;case"map":U[B]={};break;case"scalar":U[B]=(0,k.kY)(_.T,_.L);break}}}}));function $(P){var _,B,U,V;const z=[];let W;for(const X of typeof P=="function"?P():P){const q=X;if(q.localName=(0,w.Rz)(X.name,X.oneof!==void 0),q.jsonName=(_=X.jsonName)!==null&&_!==void 0?_:(0,w.x1)(X.name),q.repeated=(B=X.repeated)!==null&&B!==void 0?B:!1,X.kind=="scalar"&&(q.L=(U=X.L)!==null&&U!==void 0?U:d.p.BIGINT),X.oneof!==void 0){const Y=typeof X.oneof=="string"?X.oneof:X.oneof.name;(!W||W.name!=Y)&&(W=new C.o(Y)),q.oneof=W,W.addField(q)}X.kind=="message"&&(q.delimited=!1),q.packed=(V=X.packed)!==null&&V!==void 0?V:X.kind=="enum"||X.kind=="scalar"&&X.T!=d.w.BYTES&&X.T!=d.w.STRING,z.push(q)}return z}},328:(s,l,u)=>{u.d(l,{t:()=>c,w:()=>d});var c;(function(p){p[p.Unary=0]="Unary",p[p.ServerStreaming=1]="ServerStreaming",p[p.ClientStreaming=2]="ClientStreaming",p[p.BiDiStreaming=3]="BiDiStreaming"})(c||(c={}));var d;(function(p){p[p.NoSideEffects=1]="NoSideEffects",p[p.Idempotent=2]="Idempotent"})(d||(d={}))}},i={};function o(s){var l=i[s];if(l!==void 0)return l.exports;var u=i[s]={exports:{}};return r[s](u,u.exports,o),u.exports}o.d=(s,l)=>{for(var u in l)o.o(l,u)&&!o.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:l[u]})},o.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{Change:()=>yf,Client:()=>v6,ClientEventType:()=>Va,ClientStatus:()=>zc,Counter:()=>tv,DocEventType:()=>Ln,Document:()=>y6,DocumentSyncResultType:()=>sh,EventSourceDevPanel:()=>Yoe,EventSourceSDK:()=>Goe,Primitive:()=>Rr,StreamConnectionStatus:()=>vf,SyncMode:()=>Gu,Text:()=>ev,TimeTicket:()=>Er,Tree:()=>nv,converter:()=>Kl,default:()=>Xoe});var s;(function(A){A[A.Trivial=0]="Trivial",A[A.Debug=1]="Debug",A[A.Info=2]="Info",A[A.Warn=3]="Warn",A[A.Error=4]="Error",A[A.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;const u={trivial:(...A)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...A)},debug:(...A)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...A)},info:(...A)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...A)},warn:(...A)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...A):console.log("YORKIE W:",...A))},error:(...A)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...A):console.log("YORKIE E:",...A))},fatal:(A,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${A}`)},isEnabled:A=>l<=A};function c(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,A=>{const f=Math.random()*16|0;return(A==="x"?f:f&3|8).toString(16)})}const d=()=>{};class p{constructor(f){this.finalized=!1,this.observers=[];try{f(this)}catch(g){this.error(g)}}next(f){this.forEachObserver(g=>{g.next(f)})}error(f){this.forEachObserver(g=>{g.error(f)}),this.close(f)}complete(){this.forEachObserver(f=>{f.complete()}),this.close()}subscribe(f,g,T){let R;f||u.fatal("missing observer"),this.finalized&&u.fatal("observable is finalized due to previous error"),typeof f=="object"?R=f:R={next:f,error:g,complete:T},R.next===void 0&&(R.next=d),R.error===void 0&&(R.error=d),R.complete===void 0&&(R.complete=d);const H=c(),K=this.unsubscribeOne.bind(this,H);if(this.observers.push({subscriptionID:H,observer:R}),this.finalized)try{this.finalError?R.error(this.finalError):R.complete()}catch(oe){u.warn(oe)}return K}unsubscribeOne(f){var g;this.observers=(g=this.observers)===null||g===void 0?void 0:g.filter(T=>T.subscriptionID!==f)}forEachObserver(f){if(!this.finalized)for(let g=0;gf}}var m=o(328);function b(A,f){const g={};for(const[T,R]of Object.entries(A.methods)){const H=f(Object.assign(Object.assign({},R),{localName:T,service:A}));H!=null&&(g[T]=H)}return g}var O;(function(A){A[A.Canceled=1]="Canceled",A[A.Unknown=2]="Unknown",A[A.InvalidArgument=3]="InvalidArgument",A[A.DeadlineExceeded=4]="DeadlineExceeded",A[A.NotFound=5]="NotFound",A[A.AlreadyExists=6]="AlreadyExists",A[A.PermissionDenied=7]="PermissionDenied",A[A.ResourceExhausted=8]="ResourceExhausted",A[A.FailedPrecondition=9]="FailedPrecondition",A[A.Aborted=10]="Aborted",A[A.OutOfRange=11]="OutOfRange",A[A.Unimplemented=12]="Unimplemented",A[A.Internal=13]="Internal",A[A.Unavailable=14]="Unavailable",A[A.DataLoss=15]="DataLoss",A[A.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var y=o(561);function v(A){const f=O[A];return typeof f!="string"?A.toString():f[0].toLowerCase()+f.substring(1).replace(/[A-Z]/g,g=>"_"+g.toLowerCase())}class S extends Error{constructor(f,g=O.Unknown,T,R,H){super(k(f,g)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=f,this.code=g,this.metadata=new Headers(T??{}),this.details=R??[],this.cause=H}static from(f,g=O.Unknown){return f instanceof S?f:f instanceof Error?f.name=="AbortError"?new S(f.message,O.Canceled):new S(f.message,g,void 0,void 0,f):new S(String(f),g,void 0,void 0,f)}findDetails(f){const g="typeName"in f?{findMessage:R=>R===f.typeName?f:void 0}:f,T=[];for(const R of this.details){if(R instanceof y.v){g.findMessage(R.getType().typeName)&&T.push(R);continue}const H=g.findMessage(R.type);if(H)try{T.push(H.fromBinary(R.value))}catch{}}return T}}function k(A,f){return A.length?`[${v(f)}] ${A}`:`[${v(f)}]`}var C=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),R(oe,Ae,K.done,K.value)})}}function R(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},w=function(A){return this instanceof w?(this.v=A,this):new w(A)},E=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),R,H=[];return R={},K("next"),K("throw"),K("return"),R[Symbol.asyncIterator]=function(){return this},R;function K(ft){T[ft]&&(R[ft]=function(sn){return new Promise(function(In,Dn){H.push([ft,sn,In,Dn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof w?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}},$=function(A){var f,g;return f={},T("next"),T("throw",function(R){throw R}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(R,H){f[R]=A[R]?function(K){return(g=!g)?{value:w(A[R](K)),done:!1}:H?H(K):K}:H}};function P(A){return E(this,arguments,function*(){yield w(yield*$(C(A)))})}var _=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),R(oe,Ae,K.done,K.value)})}}function R(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},B=function(A){return this instanceof B?(this.v=A,this):new B(A)},U=function(A){var f,g;return f={},T("next"),T("throw",function(R){throw R}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(R,H){f[R]=A[R]?function(K){return(g=!g)?{value:B(A[R](K)),done:!1}:H?H(K):K}:H}},V=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),R,H=[];return R={},K("next"),K("throw"),K("return"),R[Symbol.asyncIterator]=function(){return this},R;function K(ft){T[ft]&&(R[ft]=function(sn){return new Promise(function(In,Dn){H.push([ft,sn,In,Dn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof B?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function z(A,f){return b(A,g=>{switch(g.kind){case m.t.Unary:return W(f,A,g);case m.t.ServerStreaming:return X(f,A,g);case m.t.ClientStreaming:return q(f,A,g);case m.t.BiDiStreaming:return Y(f,A,g);default:return null}})}function W(A,f,g){return async function(T,R){var H,K;const oe=await A.unary(f,g,R==null?void 0:R.signal,R==null?void 0:R.timeoutMs,R==null?void 0:R.headers,T,R==null?void 0:R.contextValues);return(H=R==null?void 0:R.onHeader)===null||H===void 0||H.call(R,oe.header),(K=R==null?void 0:R.onTrailer)===null||K===void 0||K.call(R,oe.trailer),oe.message}}function X(A,f,g){return function(T,R){return Z(A.stream(f,g,R==null?void 0:R.signal,R==null?void 0:R.timeoutMs,R==null?void 0:R.headers,P([T]),R==null?void 0:R.contextValues),R)}}function q(A,f,g){return async function(T,R){var H,K,oe,Ae,He,yt;const Ft=await A.stream(f,g,R==null?void 0:R.signal,R==null?void 0:R.timeoutMs,R==null?void 0:R.headers,T,R==null?void 0:R.contextValues);(He=R==null?void 0:R.onHeader)===null||He===void 0||He.call(R,Ft.header);let ft;try{for(var sn=!0,In=_(Ft.message),Dn;Dn=await In.next(),H=Dn.done,!H;sn=!0)Ae=Dn.value,sn=!1,ft=Ae}catch(sr){K={error:sr}}finally{try{!sn&&!H&&(oe=In.return)&&await oe.call(In)}finally{if(K)throw K.error}}if(!ft)throw new S("protocol error: missing response message",O.Internal);return(yt=R==null?void 0:R.onTrailer)===null||yt===void 0||yt.call(R,Ft.trailer),ft}}function Y(A,f,g){return function(T,R){return Z(A.stream(f,g,R==null?void 0:R.signal,R==null?void 0:R.timeoutMs,R==null?void 0:R.headers,T,R==null?void 0:R.contextValues),R)}}function Z(A,f){const g=function(){var T,R;return V(this,arguments,function*(){const H=yield B(A);(T=f==null?void 0:f.onHeader)===null||T===void 0||T.call(f,H.header),yield B(yield*U(_(H.message))),(R=f==null?void 0:f.onTrailer)===null||R===void 0||R.call(f,H.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>g.next()})}}function j(){return{get(A){return A.id in this?this[A.id]:A.defaultValue},set(A,f){return this[A.id]=f,this},delete(A){return delete this[A.id],this}}}function se(A){var f;const g=Object.assign({},A);return(f=g.ignoreUnknownFields)!==null&&f!==void 0||(g.ignoreUnknownFields=!0),g}function ve(A,f,g,T){const R=f?G(A.I,T):ce(A.I,g);return{parse:(f?G(A.O,T):ce(A.O,g)).parse,serialize:R.serialize}}function G(A,f){return{parse(g){try{return A.fromBinary(g,f)}catch(T){const R=T instanceof Error?T.message:String(T);throw new S(`parse binary: ${R}`,O.InvalidArgument)}},serialize(g){try{return g.toBinary(f)}catch(T){const R=T instanceof Error?T.message:String(T);throw new S(`serialize binary: ${R}`,O.Internal)}}}}function ce(A,f){var g,T;const R=(g=f==null?void 0:f.textEncoder)!==null&&g!==void 0?g:new TextEncoder,H=(T=f==null?void 0:f.textDecoder)!==null&&T!==void 0?T:new TextDecoder,K=se(f);return{parse(oe){try{const Ae=H.decode(oe);return A.fromJsonString(Ae,K)}catch(Ae){throw S.from(Ae,O.InvalidArgument)}},serialize(oe){try{const Ae=oe.toJsonString(K);return R.encode(Ae)}catch(Ae){throw S.from(Ae,O.Internal)}}}}function ge(...A){const f=new AbortController,g=A.filter(R=>R!==void 0).concat(f.signal);for(const R of g){if(R.aborted){T.apply(R);break}R.addEventListener("abort",T)}function T(){f.signal.aborted||f.abort(xe(this));for(const R of g)R.removeEventListener("abort",T)}return f}function ue(A){const f=new AbortController,g=()=>{f.abort(new S("the operation timed out",O.DeadlineExceeded))};let T;return A!==void 0&&(A<=0?g():T=setTimeout(g,A)),{signal:f.signal,cleanup:()=>clearTimeout(T)}}function xe(A){if(!A.aborted)return;if(A.reason!==void 0)return A.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function De(A,f){return f instanceof y.v?f:new A(f)}function Ve(A,f){function g(T){return T.done===!0?T:{done:T.done,value:De(A,T.value)}}return{[Symbol.asyncIterator](){const T=f[Symbol.asyncIterator](),R={next:()=>T.next().then(g)};return T.throw!==void 0&&(R.throw=H=>T.throw(H).then(g)),T.return!==void 0&&(R.return=H=>T.return(H).then(g)),R}}}function Je(A){const f=ye(A.next,A.interceptors),[g,T,R]=Ge(A),H=Object.assign(Object.assign({},A.req),{message:De(A.req.method.I,A.req.message),signal:g});return f(H).then(K=>(R(),K),T)}function Me(A){const f=ye(A.next,A.interceptors),[g,T,R]=Ge(A),H=Object.assign(Object.assign({},A.req),{message:Ve(A.req.method.I,A.req.message),signal:g});let K=!1;return g.addEventListener("abort",function(){var oe,Ae;const He=A.req.message[Symbol.asyncIterator]();K||(oe=He.throw)===null||oe===void 0||oe.call(He,this.reason).catch(()=>{}),(Ae=He.return)===null||Ae===void 0||Ae.call(He).catch(()=>{})}),f(H).then(oe=>Object.assign(Object.assign({},oe),{message:{[Symbol.asyncIterator](){const Ae=oe.message[Symbol.asyncIterator]();return{next(){return Ae.next().then(He=>(He.done==!0&&(K=!0,R()),He),T)}}}}}),T)}function Ge(A){const{signal:f,cleanup:g}=ue(A.timeoutMs),T=ge(A.signal,f);return[T.signal,function(H){const K=S.from(f.aborted?xe(f):H);return T.abort(K),g(),Promise.reject(K)},function(){g(),T.abort()}]}function ye(A,f){var g;return(g=f==null?void 0:f.concat().reverse().reduce((T,R)=>R(T),A))!==null&&g!==void 0?g:A}function ze(A,f,g){const T=typeof f=="string"?f:f.typeName,R=typeof g=="string"?g:g.name;return A.toString().replace(/\/?$/,`/${T}/${R}`)}function $e(A){let f,g=new Uint8Array(0);function T(R){const H=new Uint8Array(g.length+R.length);H.set(g),H.set(R,g.length),g=H}return new ReadableStream({start(){f=A.getReader()},async pull(R){let H;for(;;){if(H===void 0&&g.byteLength>=5){let Ae=0;for(let He=1;He<5;He++)Ae=(Ae<<8)+g[He];H={flags:g[0],length:Ae}}if(H!==void 0&&g.byteLength>=H.length+5)break;const oe=await f.read();if(oe.done)break;T(oe.value)}if(H===void 0){if(g.byteLength==0){R.close();return}R.error(new S("premature end of stream",O.DataLoss));return}const K=g.subarray(5,5+H.length);g=g.subarray(5+H.length),R.enqueue({flags:H.flags,data:K})}})}function We(A,f){const g=new Uint8Array(f.length+5);g.set(f,5);const T=new DataView(g.buffer,g.byteOffset,g.byteLength);return T.setUint8(0,A),T.setUint32(1,f.length),g}const dt="Content-Type",Be="Grpc-Timeout",re="Grpc-Status",ee="Grpc-Message",J="Grpc-Status-Details-Bin",Re="User-Agent",Le="X-User-Agent",Ne="X-Grpc-Web",ie="application/grpc-web+proto",fe="application/grpc-web+json";function de(A,f,g,T){const R=new Headers(g??{});return R.set(dt,A?ie:fe),R.set(Ne,"1"),R.set(Le,"connect-es/1.2.0"),T&&R.set(Re,"connect-es/1.2.0"),f!==void 0&&R.set(Be,`${f}m`),R}function Oe(A){switch(A){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}}var Te=o(850),rt=o(733);class pt extends y.v{constructor(f){super(),this.code=0,this.message="",this.details=[],Te.w.util.initPartial(f,this)}static fromBinary(f,g){return new pt().fromBinary(f,g)}static fromJson(f,g){return new pt().fromJson(f,g)}static fromJsonString(f,g){return new pt().fromJsonString(f,g)}static equals(f,g){return Te.w.util.equals(pt,f,g)}}pt.runtime=Te.w,pt.typeName="google.rpc.Status",pt.fields=Te.w.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:rt.I,repeated:!0}]);var xt=o(236);function et(A,f,g){try{const T=xt.W.dec(A);return f?f.fromBinary(T,g):T}catch(T){throw S.from(T,O.DataLoss)}}const vt="0";function qe(A){var f;const g=A.get(J);if(g!=null){const R=et(g,pt);if(R.code==0)return;const H=new S(R.message,R.code,A);return H.details=R.details.map(K=>({type:K.typeUrl.substring(K.typeUrl.lastIndexOf("/")+1),value:K.value})),H}const T=A.get(re);if(T!=null){if(T===vt)return;const R=parseInt(T,10);return R in O?new S(decodeURIComponent((f=A.get(ee))!==null&&f!==void 0?f:""),R,A):new S(`invalid grpc-status: ${T}`,O.Internal,A)}}function it(A,f){var g;if(A>=200&&A<300){const T=qe(f);if(T)throw T;return{foundStatus:f.has(re)}}throw new S(decodeURIComponent((g=f.get(ee))!==null&&g!==void 0?g:`HTTP ${A}`),Oe(A),f)}const Et=128;function Dt(A){const f=new Headers,g=new TextDecoder().decode(A).split(`\r +`);for(const T of g){if(T==="")continue;const R=T.indexOf(":");if(R>0){const H=T.substring(0,R).trim(),K=T.substring(R+1).trim();f.append(H,K)}}return f}function on(A,f){const g=qe(A);if(g)throw f.forEach((T,R)=>{g.metadata.append(R,T)}),g}function dn(){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.")}}var pn=function(A){return this instanceof pn?(this.v=A,this):new pn(A)},zn=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),R,H=[];return R={},K("next"),K("throw"),K("return"),R[Symbol.asyncIterator]=function(){return this},R;function K(ft){T[ft]&&(R[ft]=function(sn){return new Promise(function(In,Dn){H.push([ft,sn,In,Dn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof pn?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function Se(A){var f;dn();const g=(f=A.useBinaryFormat)!==null&&f!==void 0?f:!0;return{async unary(T,R,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(R,g,A.jsonOptions,A.binaryOptions);return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,await Je({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!1,service:T,method:R,url:ze(A.baseUrl,T,R),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async sn=>{var In;const sr=await((In=A.fetch)!==null&&In!==void 0?In:globalThis.fetch)(sn.url,Object.assign(Object.assign({},sn.init),{headers:sn.header,signal:sn.signal,body:We(0,Ft(sn.message))}));if(it(sr.status,sr.headers),!sr.body)throw"missing response body";const lo=$e(sr.body).getReader();let $n,ni;for(;;){const qr=await lo.read();if(qr.done)break;const{flags:vi,data:Ef}=qr.value;if(vi===Et){if($n!==void 0)throw"extra trailer";$n=Dt(Ef);continue}if(ni!==void 0)throw"extra message";ni=ft(Ef)}if($n===void 0)throw"missing trailer";if(on($n,sr.headers),ni===void 0)throw"missing message";return{stream:!1,header:sr.headers,message:ni,trailer:$n}}})},async stream(T,R,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(R,g,A.jsonOptions,A.binaryOptions);function sn(Dn,sr,lo,$n){return zn(this,arguments,function*(){const qr=$e(Dn).getReader();if(sr){if(!(yield pn(qr.read())).done)throw"extra data for trailers-only";return yield pn(void 0)}let vi=!1;for(;;){const Ef=yield pn(qr.read());if(Ef.done)break;const{flags:lh,data:u0}=Ef.value;if((lh&Et)===Et){if(vi)throw"extra trailer";vi=!0;const E6=Dt(u0);on(E6,$n),E6.forEach((Koe,Joe)=>lo.set(Joe,Koe));continue}if(vi)throw"extra message";yield yield pn(ft(u0))}if(!vi)throw"missing trailer"})}async function In(Dn){if(R.kind!=m.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const sr=await Dn[Symbol.asyncIterator]().next();if(sr.done==!0)throw"missing request message";return We(0,Ft(sr.value))}return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,Me({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!0,service:T,method:R,url:ze(A.baseUrl,T,R),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async Dn=>{var sr;const $n=await((sr=A.fetch)!==null&&sr!==void 0?sr:globalThis.fetch)(Dn.url,Object.assign(Object.assign({},Dn.init),{headers:Dn.header,signal:Dn.signal,body:await In(Dn.message)})),{foundStatus:ni}=it($n.status,$n.headers);if(!$n.body)throw"missing response body";const qr=new Headers;return Object.assign(Object.assign({},Dn),{header:$n.headers,trailer:qr,message:sn($n.body,ni,qr,$n.headers)})}})}}}var _e=o(295),pe=o(646);/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -261,62 +261,62 @@ Error generating stack: `+o.message+` * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 - */var lt=null;try{lt=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 at(A,f,g){this.low=A|0,this.high=f|0,this.unsigned=!!g}at.prototype.__isLong__,Object.defineProperty(at.prototype,"__isLong__",{value:!0});function Mt(A){return(A&&A.__isLong__)===!0}function $t(A){var f=Math.clz32(A&-A);return A?31-f:f}at.isLong=Mt;var It={},Ct={};function Zt(A,f){var g,T,R;return f?(A>>>=0,(R=0<=A&&A<256)&&(T=Ct[A],T)?T:(g=we(A,0,!0),R&&(Ct[A]=g),g)):(A|=0,(R=-128<=A&&A<128)&&(T=It[A],T)?T:(g=we(A,A<0?-1:0,!1),R&&(It[A]=g),g))}at.fromInt=Zt;function Ie(A,f){if(isNaN(A))return f?tn:Dt;if(f){if(A<0)return tn;if(A>=Ue)return Qn}else{if(A<=-Ce)return Yn;if(A+1>=Ce)return bn}return A<0?Ie(-A,f).neg():we(A%nr|0,A/nr|0,f)}at.fromNumber=Ie;function we(A,f,g){return new at(A,f,g)}at.fromBits=we;var Qe=Math.pow;function ot(A,f,g){if(A.length===0)throw Error("empty string");if(typeof f=="number"?(g=f,f=!1):f=!!f,A==="NaN"||A==="Infinity"||A==="+Infinity"||A==="-Infinity")return f?tn:Dt;if(g=g||10,g<2||360)throw Error("interior hyphen");if(T===0)return ot(A.substring(1),f,g).neg();for(var R=Ie(Qe(g,8)),H=Dt,K=0;K>>0:this.low},ht.toNumber=function(){return this.unsigned?(this.high>>>0)*nr+(this.low>>>0):this.high*nr+(this.low>>>0)},ht.toString=function(f){if(f=f||10,f<2||36>>0,yt=He.toString(f);if(K=Ae,K.isZero())return yt+oe;for(;yt.length<6;)yt="0"+yt;oe=""+yt+oe}},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(Yn)?64:this.neg().getNumBitsAbs();for(var f=this.high!=0?this.high:this.low,g=31;g>0&&!(f&1<=0},ht.isOdd=function(){return(this.low&1)===1},ht.isEven=function(){return(this.low&1)===0},ht.equals=function(f){return Mt(f)||(f=rn(f)),this.unsigned!==f.unsigned&&this.high>>>31===1&&f.high>>>31===1?!1:this.high===f.high&&this.low===f.low},ht.eq=ht.equals,ht.notEquals=function(f){return!this.eq(f)},ht.neq=ht.notEquals,ht.ne=ht.notEquals,ht.lessThan=function(f){return this.comp(f)<0},ht.lt=ht.lessThan,ht.lessThanOrEqual=function(f){return this.comp(f)<=0},ht.lte=ht.lessThanOrEqual,ht.le=ht.lessThanOrEqual,ht.greaterThan=function(f){return this.comp(f)>0},ht.gt=ht.greaterThan,ht.greaterThanOrEqual=function(f){return this.comp(f)>=0},ht.gte=ht.greaterThanOrEqual,ht.ge=ht.greaterThanOrEqual,ht.compare=function(f){if(Mt(f)||(f=rn(f)),this.eq(f))return 0;var g=this.isNegative(),T=f.isNegative();return g&&!T?-1:!g&&T?1:this.unsigned?f.high>>>0>this.high>>>0||f.high===this.high&&f.low>>>0>this.low>>>0?-1:1:this.sub(f).isNegative()?-1:1},ht.comp=ht.compare,ht.negate=function(){return!this.unsigned&&this.eq(Yn)?Yn:this.not().add(Mn)},ht.neg=ht.negate,ht.add=function(f){Mt(f)||(f=rn(f));var g=this.high>>>16,T=this.high&65535,R=this.low>>>16,H=this.low&65535,K=f.high>>>16,oe=f.high&65535,Ae=f.low>>>16,He=f.low&65535,yt=0,Ft=0,ft=0,sn=0;return sn+=H+He,ft+=sn>>>16,sn&=65535,ft+=R+Ae,Ft+=ft>>>16,ft&=65535,Ft+=T+oe,yt+=Ft>>>16,Ft&=65535,yt+=g+K,yt&=65535,we(ft<<16|sn,yt<<16|Ft,this.unsigned)},ht.subtract=function(f){return Mt(f)||(f=rn(f)),this.add(f.neg())},ht.sub=ht.subtract,ht.multiply=function(f){if(this.isZero())return this;if(Mt(f)||(f=rn(f)),lt){var g=lt.mul(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(f.isZero())return this.unsigned?tn:Dt;if(this.eq(Yn))return f.isOdd()?Yn:Dt;if(f.eq(Yn))return this.isOdd()?Yn:Dt;if(this.isNegative())return f.isNegative()?this.neg().mul(f.neg()):this.neg().mul(f).neg();if(f.isNegative())return this.mul(f.neg()).neg();if(this.lt(gt)&&f.lt(gt))return Ie(this.toNumber()*f.toNumber(),this.unsigned);var T=this.high>>>16,R=this.high&65535,H=this.low>>>16,K=this.low&65535,oe=f.high>>>16,Ae=f.high&65535,He=f.low>>>16,yt=f.low&65535,Ft=0,ft=0,sn=0,In=0;return In+=K*yt,sn+=In>>>16,In&=65535,sn+=H*yt,ft+=sn>>>16,sn&=65535,sn+=K*He,ft+=sn>>>16,sn&=65535,ft+=R*yt,Ft+=ft>>>16,ft&=65535,ft+=H*He,Ft+=ft>>>16,ft&=65535,ft+=K*Ae,Ft+=ft>>>16,ft&=65535,Ft+=T*yt+R*He+H*Ae+K*oe,Ft&=65535,we(sn<<16|In,Ft<<16|ft,this.unsigned)},ht.mul=ht.multiply,ht.divide=function(f){if(Mt(f)||(f=rn(f)),f.isZero())throw Error("division by zero");if(lt){if(!this.unsigned&&this.high===-2147483648&&f.low===-1&&f.high===-1)return this;var g=(this.unsigned?lt.div_u:lt.div_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?tn:Dt;var T,R,H;if(this.unsigned){if(f.unsigned||(f=f.toUnsigned()),f.gt(this))return tn;if(f.gt(this.shru(1)))return Dn;H=tn}else{if(this.eq(Yn)){if(f.eq(Mn)||f.eq(Kt))return Yn;if(f.eq(Yn))return Mn;var K=this.shr(1);return T=K.div(f).shl(1),T.eq(Dt)?f.isNegative()?Mn:Kt:(R=this.sub(f.mul(T)),H=T.add(R.div(f)),H)}else if(f.eq(Yn))return this.unsigned?tn:Dt;if(this.isNegative())return f.isNegative()?this.neg().div(f.neg()):this.neg().div(f).neg();if(f.isNegative())return this.div(f.neg()).neg();H=Dt}for(R=this;R.gte(f);){T=Math.max(1,Math.floor(R.toNumber()/f.toNumber()));for(var oe=Math.ceil(Math.log(T)/Math.LN2),Ae=oe<=48?1:Qe(2,oe-48),He=Ie(T),yt=He.mul(f);yt.isNegative()||yt.gt(R);)T-=Ae,He=Ie(T,this.unsigned),yt=He.mul(f);He.isZero()&&(He=Mn),H=H.add(He),R=R.sub(yt)}return H},ht.div=ht.divide,ht.modulo=function(f){if(Mt(f)||(f=rn(f)),lt){var g=(this.unsigned?lt.rem_u:lt.rem_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}return this.sub(this.div(f).mul(f))},ht.mod=ht.modulo,ht.rem=ht.modulo,ht.not=function(){return we(~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?$t(this.low):$t(this.high)+32},ht.ctz=ht.countTrailingZeros,ht.and=function(f){return Mt(f)||(f=rn(f)),we(this.low&f.low,this.high&f.high,this.unsigned)},ht.or=function(f){return Mt(f)||(f=rn(f)),we(this.low|f.low,this.high|f.high,this.unsigned)},ht.xor=function(f){return Mt(f)||(f=rn(f)),we(this.low^f.low,this.high^f.high,this.unsigned)},ht.shiftLeft=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low<>>32-f,this.unsigned):we(0,this.low<>>f|this.high<<32-f,this.high>>f,this.unsigned):we(this.high>>f-32,this.high>=0?0:-1,this.unsigned)},ht.shr=ht.shiftRight,ht.shiftRightUnsigned=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low>>>f|this.high<<32-f,this.high>>>f,this.unsigned):f===32?we(this.high,0,this.unsigned):we(this.high>>>f-32,0,this.unsigned)},ht.shru=ht.shiftRightUnsigned,ht.shr_u=ht.shiftRightUnsigned,ht.rotateLeft=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.low<>>g,this.high<>>g,this.unsigned)):(f-=32,g=32-f,we(this.high<>>g,this.low<>>g,this.unsigned))},ht.rotl=ht.rotateLeft,ht.rotateRight=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.high<>>f,this.low<>>f,this.unsigned)):(f-=32,g=32-f,we(this.low<>>f,this.high<>>f,this.unsigned))},ht.rotr=ht.rotateRight,ht.toSigned=function(){return this.unsigned?we(this.low,this.high,!1):this},ht.toUnsigned=function(){return this.unsigned?this:we(this.low,this.high,!0)},ht.toBytes=function(f){return f?this.toBytesLE():this.toBytesBE()},ht.toBytesLE=function(){var f=this.high,g=this.low;return[g&255,g>>>8&255,g>>>16&255,g>>>24,f&255,f>>>8&255,f>>>16&255,f>>>24]},ht.toBytesBE=function(){var f=this.high,g=this.low;return[f>>>24,f>>>16&255,f>>>8&255,f&255,g>>>24,g>>>16&255,g>>>8&255,g&255]},at.fromBytes=function(f,g,T){return T?at.fromBytesLE(f,g):at.fromBytesBE(f,g)},at.fromBytesLE=function(f,g){return new at(f[0]|f[1]<<8|f[2]<<16|f[3]<<24,f[4]|f[5]<<8|f[6]<<16|f[7]<<24,g)},at.fromBytesBE=function(f,g){return new at(f[4]<<24|f[5]<<16|f[6]<<8|f[7],f[0]<<24|f[1]<<16|f[2]<<8|f[3],g)};const Gr=at;var En;(function(A){A.Ok="ok",A.ClientNotActive="client-not-active",A.Unimplemented="unimplemented",A.Unsupported="unsupported",A.DocumentNotAttached="document-not-attached",A.DocumentNotDetached="document-not-detached",A.DocumentRemoved="document-removed",A.InvalidObjectKey="invalid-object-key",A.InvalidArgument="invalid-argument"})(En||(En={}));class An extends Error{constructor(f,g){super(g),this.code=f,this.message=g,this.name="YorkieError",this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function ca(A){if(A instanceof Map){const f=Array.from(A);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(A))}const Xp=A=>A?Object.entries(A).length===0:!0,oo=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.stringify(T);return f},di=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.parse(T);return f};var Ma;(function(A){A.Put="put",A.Clear="clear"})(Ma||(Ma={}));class Kp{constructor(f,g){this.context=f,this.presence=g}set(f,g){for(const T of Object.keys(f))this.presence[T]=f[T];this.context.setPresenceChange({type:Ma.Put,presence:ca(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Ma.Clear})}}const YO="000000000000000000000000",da="FFFFFFFFFFFFFFFFFFFFFFFF";class Er{constructor(f,g,T){this.lamport=f,this.delimiter=g,this.actorID=T}static of(f,g,T){return new Er(f,g,T)}static fromStruct(f){return Er.of(Gr.fromString(f.lamport,!0),f.delimiter,f.actorID)}toIDString(){return this.actorID?`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return this.actorID?`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}setActor(f){return new Er(this.lamport,this.delimiter,f)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(f){return this.compare(f)>0}equals(f){return this.compare(f)===0}compare(f){if(this.lamport.greaterThan(f.lamport))return 1;if(f.lamport.greaterThan(this.lamport))return-1;const g=this.actorID.localeCompare(f.actorID);return g!==0?g:this.delimiter>f.delimiter?1:f.delimiter>this.delimiter?-1:0}}const Jp=0,Ts=4294967295,ws=Gr.MAX_VALUE,ao=new Er(Gr.fromNumber(0),Jp,YO),ko=new Er(ws,Ts,da);function Ur(A){return A.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(f){switch(f){case'"':case"\\":return"\\"+f;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 f}})}class so{constructor(f){this.createdAt=f}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(f){return!this.movedAt||f&&f.after(this.movedAt)?(this.movedAt=f,!0):!1}setRemovedAt(f){this.removedAt=f}remove(f){return f&&f.after(this.getPositionedAt())&&(!this.removedAt||f.after(this.removedAt))?(this.removedAt=f,!0):!1}isRemoved(){return!!this.removedAt}}class Yl extends so{constructor(f){super(f)}}class Qo extends so{}class xo{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new xo(f,g)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(f){return this.value.remove(f)}}class Vi{constructor(){this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Vi}set(f,g,T){let R;const H=this.nodeMapByKey.get(f);H!=null&&!H.isRemoved()&&H.remove(T)&&(R=H.getValue());const K=xo.of(f,g);return this.nodeMapByCreatedAt.set(g.getCreatedAt().toIDString(),K),(H==null||T.after(H.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(f,K),g.setMovedAt(T)),R}delete(f,g){this.nodeMapByCreatedAt.has(f.toIDString())||u.fatal(`fail to find ${f.toIDString()}`);const T=this.nodeMapByCreatedAt.get(f.toIDString());return T.remove(g),T.getValue()}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return g.getStrKey()}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());if(!g){u.fatal(`fail to find ${f.getCreatedAt().toIDString()}`);return}const T=this.nodeMapByKey.get(g.getStrKey());g===T&&this.nodeMapByKey.delete(T.getStrKey()),this.nodeMapByCreatedAt.delete(g.getValue().getCreatedAt().toIDString())}deleteByKey(f,g){const T=this.nodeMapByKey.get(f);if(T!=null&&T.remove(g))return T.getValue()}has(f){const g=this.nodeMapByKey.get(f);return g==null?!1:!g.isRemoved()}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}get(f){const g=this.nodeMapByKey.get(f);if(!(!g||g.isRemoved()))return g}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}class br extends Yl{constructor(f,g){super(f),this.memberNodes=g}static create(f,g){if(!g)return new br(f,Vi.create());const T=Vi.create();for(const[R,H]of Object.entries(g))T.set(R,H.deepcopy(),H.getCreatedAt());return new br(f,T)}subPathOf(f){return this.memberNodes.subPathOf(f)}purge(f){this.memberNodes.purge(f)}set(f,g,T){return this.memberNodes.set(f,g,T)}delete(f,g){return this.memberNodes.delete(f,g)}deleteByKey(f,g){return this.memberNodes.deleteByKey(f,g)}get(f){const g=this.memberNodes.get(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.memberNodes.getByID(f);return g==null?void 0:g.getValue()}has(f){return this.memberNodes.has(f)}toJSON(){const f=[];for(const[g,T]of this)f.push(`"${Ur(g)}":${T.toJSON()}`);return`{${f.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(const[g,T]of this){const{createdAt:R,value:H,type:K}=T.toJSForTest();f[g]={key:g,createdAt:R,value:H,type:K}}return{createdAt:this.getCreatedAt().toTestString(),value:f,type:"YORKIE_OBJECT"}}getKeys(){const f=Array();for(const[g]of this)f.push(g);return f}toSortedJSON(){var f;const g=Array();for(const[R]of this)g.push(R);const T=[];for(const R of g.sort()){const H=(f=this.memberNodes.get(R))===null||f===void 0?void 0:f.getValue();T.push(`"${Ur(R)}":${H.toSortedJSON()}`)}return`{${T.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const f=br.create(this.getCreatedAt());for(const g of this.memberNodes)f.memberNodes.set(g.getStrKey(),g.getValue().deepcopy(),this.getPositionedAt());return f.remove(this.getRemovedAt()),f}getDescendants(f){for(const g of this.memberNodes){const T=g.getValue();if(f(T,this))return;T instanceof Yl&&T.getDescendants(f)}}*[Symbol.iterator](){const f=new Set;for(const g of this.memberNodes)f.has(g.getStrKey())||(f.add(g.getStrKey()),g.isRemoved()||(yield[g.getStrKey(),g.getValue()]))}}var _r;(function(A){A.Local="local",A.Remote="remote",A.UndoRedo="undoredo"})(_r||(_r={}));class jr{constructor(f,g){this.parentCreatedAt=f,this.executedAt=g}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(f){this.executedAt&&(this.executedAt=this.executedAt.setActor(f))}setExecutedAt(f){this.executedAt=f}}class Yo{constructor(f){this.value=f,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(f){this.left=f}setRight(f){this.right=f}setParent(f){this.parent=f}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(f){this.weight+=f}initWeight(){this.weight=this.getLength()}}class Hi{constructor(f){this.root=f}get length(){return this.root?this.root.getWeight():0}find(f){if(!this.root||f<0)return[void 0,0];let g=this.root;for(;;)if(g.hasLeft()&&f<=g.getLeftWeight())g=g.getLeft();else if(g.hasRight()&&g.getLeftWeight()+g.getLength()g.getLength()&&u.fatal(`out of index range: pos: ${f} > node.length: ${g.getLength()}`),[g,f]}indexOf(f){if(!f||f!==this.root&&!f.hasLinks())return-1;let g=0,T=f,R;for(;T;)(!R||R===T.getRight())&&(g+=T.getLength()+(T.hasLeft()?T.getLeftWeight():0)),R=T,T=T.getParent();return g-f.getLength()}getRoot(){return this.root}insert(f){return this.insertAfter(this.root,f)}insertAfter(f,g){return f?(this.splayNode(f),this.root=g,g.setRight(f.getRight()),f.hasRight()&&f.getRight().setParent(g),g.setLeft(f),f.setParent(g),f.setRight(),this.updateWeight(f),this.updateWeight(g),g):(this.root=g,g)}updateWeight(f){f.initWeight(),f.hasLeft()&&f.increaseWeight(f.getLeftWeight()),f.hasRight()&&f.increaseWeight(f.getRightWeight())}updateTreeWeight(f){for(;f;)this.updateWeight(f),f=f.getParent()}splayNode(f){if(f)for(;;)if(this.isLeftChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f),this.rotateLeft(f);else if(this.isLeftChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f.getParent()),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f.getParent()),this.rotateLeft(f);else{this.isLeftChild(f)?this.rotateRight(f):this.isRightChild(f)&&this.rotateLeft(f),this.updateWeight(f);return}}delete(f){this.splayNode(f);const g=new Hi(f.getLeft());g.root&&g.root.setParent();const T=new Hi(f.getRight());if(T.root&&T.root.setParent(),g.root){const R=g.getRightmost();g.splayNode(R),g.root.setRight(T.root),T.root&&T.root.setParent(g.root),this.root=g.root}else this.root=T.root;f.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(f,g){if(!g){this.splayNode(f),this.cutOffRight(f);return}this.splayNode(f),this.splayNode(g),g.getLeft()!=f&&this.rotateRight(f),this.cutOffRight(f)}cutOffRight(f){const g=[];this.traversePostorder(f.getRight(),g);for(const T of g)T.initWeight();this.updateTreeWeight(f)}toTestString(){const f=[];return this.traverseInorder(this.root,f),f.map(g=>`[${g.getWeight()},${g.getLength()}]${g.getValue()||""}`).join("")}checkWeight(){const f=[];this.traverseInorder(this.root,f);for(const g of f)if(g.getWeight()!=g.getLength()+g.getLeftWeight()+g.getRightWeight())return!1;return!0}getRightmost(){let f=this.root;for(;f.hasRight();)f=f.getRight();return f}traverseInorder(f,g){f&&(this.traverseInorder(f.getLeft(),g),g.push(f),this.traverseInorder(f.getRight(),g))}traversePostorder(f,g){f&&(this.traversePostorder(f.getLeft(),g),this.traversePostorder(f.getRight(),g),g.push(f))}rotateLeft(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setRight(f.getLeft()),g.hasRight()&&g.getRight().setParent(g),f.setLeft(g),f.getLeft().setParent(f),this.updateWeight(g),this.updateWeight(f)}rotateRight(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setLeft(f.getRight()),g.hasLeft()&&g.getLeft().setParent(g),f.setRight(g),f.getRight().setParent(f),this.updateWeight(g),this.updateWeight(f)}isLeftChild(f){return f&&f.hasParent()?f.getParent().getLeft()===f:!1}isRightChild(f){return f&&f.hasParent()?f.getParent().getRight()===f:!1}}var Jt;(function(A){A[A.Null=0]="Null",A[A.Boolean=1]="Boolean",A[A.Integer=2]="Integer",A[A.Long=3]="Long",A[A.Double=4]="Double",A[A.String=5]="String",A[A.Bytes=6]="Bytes",A[A.Date=7]="Date"})(Jt||(Jt={}));class Rr extends so{constructor(f,g){super(g),this.valueType=Rr.getPrimitiveType(f),this.value=f===void 0?null:f}static of(f,g){return new Rr(f,g)}static valueFromBytes(f,g){switch(f){case Jt.Null:return null;case Jt.Boolean:return!!g[0];case Jt.Integer:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case Jt.Double:{const T=new DataView(g.buffer);return g.forEach(function(R,H){T.setUint8(H,R)}),T.getFloat64(0,!0)}case Jt.String:return new TextDecoder("utf-8").decode(g);case Jt.Long:return Gr.fromBytesLE(Array.from(g));case Jt.Bytes:return g;case Jt.Date:return new Date(Gr.fromBytesLE(Array.from(g),!0).toNumber());default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return this.valueType===Jt.String?`"${Ur(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const f=Rr.of(this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f.setRemovedAt(this.getRemovedAt()),f}getType(){return this.valueType}static getPrimitiveType(f){switch(typeof f){case"undefined":return Jt.Null;case"boolean":return Jt.Boolean;case"number":return this.isInteger(f)?Jt.Integer:Jt.Double;case"string":return Jt.String;case"object":if(f===null)return Jt.Null;if(f instanceof Gr)return Jt.Long;if(f instanceof Uint8Array)return Jt.Bytes;if(f instanceof Date)return Jt.Date}}static isSupport(f){return Rr.getPrimitiveType(f)!==void 0}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===Jt.Integer||f===Jt.Long||f===Jt.Double}getValue(){return this.value}toBytes(){switch(this.valueType){case Jt.Null:return new Uint8Array;case Jt.Boolean:return this.value?new Uint8Array([1]):new Uint8Array([0]);case Jt.Integer:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case Jt.Double:{const f=this.value,g=new Uint8Array(8);return new DataView(g.buffer).setFloat64(0,f,!0),g}case Jt.String:return new TextEncoder().encode(this.value);case Jt.Long:{const g=this.value.toBytesLE();return Uint8Array.from(g)}case Jt.Bytes:return this.value;case Jt.Date:{const f=this.value,g=Gr.fromNumber(f.getTime(),!0).toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class eh extends Yo{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new eh(g),R=f.next;return f.next=T,T.prev=f,T.next=R,R&&(R.prev=T),T}remove(f){return this.value.remove(f)}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 gf{constructor(){const f=Rr.of(0,ao);f.setRemovedAt(ao),this.dummyHead=new eh(f),this.last=this.dummyHead,this.nodeMapByIndex=new Hi,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new gf}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(f,g){let T=this.nodeMapByCreatedAt.get(f.toIDString());for(T||u.fatal(`cant find the given node: ${f.toIDString()}`);T.getNext()&&T.getNext().getPositionedAt().after(g);)T=T.getNext();return T}release(f){this.last===f&&(this.last=f.getPrev()),f.release(),this.nodeMapByIndex.delete(f),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}insertAfter(f,g,T=g.getCreatedAt()){const R=this.findNextBeforeExecutedAt(f,T),H=eh.createAfter(R,g);R===this.last&&(this.last=H),this.nodeMapByIndex.insertAfter(R,H),this.nodeMapByCreatedAt.set(H.getCreatedAt().toIDString(),H)}moveAfter(f,g,T){const R=this.nodeMapByCreatedAt.get(f.toIDString());R||u.fatal(`cant find the given node: ${f.toIDString()}`);const H=this.nodeMapByCreatedAt.get(g.toIDString());H||u.fatal(`cant find the given node: ${g.toIDString()}`),R!==H&&(!H.getValue().getMovedAt()||T.after(H.getValue().getMovedAt()))&&(this.release(H),this.insertAfter(R.getCreatedAt(),H.getValue(),T),H.getValue().setMovedAt(T))}insert(f){this.insertAfter(this.last.getCreatedAt(),f)}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return String(this.nodeMapByIndex.indexOf(g))}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());g||u.fatal(`fail to find the given createdAt: ${f.getCreatedAt().toIDString()}`),this.release(g)}getByIndex(f){if(f>=this.length)return;const[g,T]=this.nodeMapByIndex.find(f);let R=g;if(f===0&&g===this.dummyHead||T>0)do R&&(R=R.getNext());while(R&&R.isRemoved());return R}getPrevCreatedAt(f){let g=this.nodeMapByCreatedAt.get(f.toIDString());do g=g.getPrev();while(this.dummyHead!==g&&g.isRemoved());return g.getValue().getCreatedAt()}delete(f,g){const T=this.nodeMapByCreatedAt.get(f.toIDString()),R=T.isRemoved();return T.remove(g)&&!R&&this.nodeMapByIndex.splayNode(T),T.getValue()}deleteByIndex(f,g){const T=this.getByIndex(f);if(T)return T.remove(g)&&this.nodeMapByIndex.splayNode(T),T.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const f=[];for(const g of this){const T=`${g.getCreatedAt().toIDString()}:${g.getValue().toJSON()}`;g.isRemoved()?f.push(`{${T}}`):f.push(`[${T}]`)}return f.join("")}*[Symbol.iterator](){let f=this.dummyHead.getNext();for(;f;)yield f,f=f.getNext()}}class Go extends Yl{constructor(f,g){super(f),this.elements=g}static create(f,g){if(!g)return new Go(f,gf.create());const T=gf.create();for(const R of g)T.insertAfter(T.getLastCreatedAt(),R.deepcopy());return new Go(f,T)}subPathOf(f){return this.elements.subPathOf(f)}purge(f){this.elements.purge(f)}insertAfter(f,g){this.elements.insertAfter(f,g)}moveAfter(f,g,T){this.elements.moveAfter(f,g,T)}get(f){const g=this.elements.getByIndex(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.elements.getByID(f);return g==null?void 0:g.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(f){return this.elements.getPrevCreatedAt(f)}delete(f,g){return this.elements.delete(f,g)}deleteByIndex(f,g){return this.elements.deleteByIndex(f,g)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const f of this.elements)f.isRemoved()||(yield f.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(f){for(const g of this.elements){const T=g.getValue();if(f(T,this))return;T instanceof Yl&&T.getDescendants(f)}}toJSON(){const f=[];for(const g of this)f.push(g.toJSON());return`[${f.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(let g=0;g`${f}="${JSON.parse(g.getValue())}"`).join(" ")}`:""}size(){return this.nodeMapByKey.size}toObject(){const f={};for(const[g,T]of this.nodeMapByKey)f[g]=T.getValue();return f}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}var qo;(function(A){A.Content="content",A.Style="style"})(qo||(qo={}));class Zo{constructor(f){this.attributes=$a.create(),this.content=f}static create(f){return new Zo(f)}get length(){return this.content.length}substring(f,g){const T=new Zo(this.content.substring(f,g));return T.attributes=this.attributes.deepcopy(),T}setAttr(f,g,T){this.attributes.set(f,g,T)}getAttrs(){return this.attributes}toString(){return this.content}toJSON(){const f=Ur(this.content),g=this.attributes.toObject(),T=[];for(const[R,H]of Object.entries(g)){const K=JSON.parse(H),oe=typeof K=="string"?`"${Ur(R)}":"${Ur(K)}"`:`"${Ur(R)}":${String(K)}`;T.push(oe)}return T.sort(),T.length===0?`{"val":"${f}"}`:`{"attrs":{${T.join(",")}},"val":"${f}"}`}getAttributes(){return this.attributes.toObject()}getContent(){return this.content}}class fi extends Qo{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new fi(f,g)}edit(f,g,T,R,H){const K=g?Zo.create(g):void 0;if(K&&R)for(const[Ft,ft]of Object.entries(R))K.setAttr(Ft,ft,T);const[oe,Ae,He]=this.rgaTreeSplit.edit(f,T,K,H),yt=He.map(Ft=>({...Ft,value:Ft.value?{attributes:di(Ft.value.getAttributes()),content:Ft.value.getContent()}:{attributes:void 0,content:""},type:qo.Content}));return[Ae,yt,[oe,oe]]}setStyle(f,g,T,R){const[,H]=this.rgaTreeSplit.findNodeWithSplit(f[1],T),[,K]=this.rgaTreeSplit.findNodeWithSplit(f[0],T),oe=[],Ae=this.rgaTreeSplit.findBetween(K,H),He=new Map,yt=[];for(const Ft of Ae){const ft=Ft.getCreatedAt().getActorID(),sn=R!=null&&R.size?R.has(ft)?R.get(ft):ao:ko;if(Ft.canStyle(T,sn)){const In=He.get(ft),Nn=Ft.getCreatedAt();(!In||Nn.after(In))&&He.set(ft,Nn),yt.push(Ft)}}for(const Ft of yt){if(Ft.isRemoved())continue;const[ft,sn]=this.rgaTreeSplit.findIndexesFromRange(Ft.createPosRange());oe.push({type:qo.Style,actor:T.getActorID(),from:ft,to:sn,value:{attributes:di(g)}});for(const[In,Nn]of Object.entries(g))Ft.getValue().setAttr(In,Nn,T)}return[He,oe]}indexRangeToPosRange(f,g){const T=this.rgaTreeSplit.indexToPos(f);return f===g?[T,T]:[T,this.rgaTreeSplit.indexToPos(g)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const f=[];for(const g of this.rgaTreeSplit)g.isRemoved()||f.push(g.getValue().toJSON());return`[${f.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 f=[];for(const g of this.rgaTreeSplit)if(!g.isRemoved()){const T=g.getValue();f.push({attributes:di(T.getAttributes()),content:T.getContent()})}return f}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}getRemovedNodesLen(){return this.rgaTreeSplit.getRemovedNodesLen()}purgeRemovedNodesBefore(f){return this.rgaTreeSplit.purgeRemovedNodesBefore(f)}deepcopy(){const f=new fi(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return f.remove(this.getRemovedAt()),f}findIndexesFromRange(f){return this.rgaTreeSplit.findIndexesFromRange(f)}}class Zl extends jr{constructor(f,g,T,R,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=R,this.content=H,this.attributes=K}static create(f,g,T,R,H,K,oe){return new Zl(f,g,T,R,H,K,oe)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof fi||u.fatal("fail to execute, only Text can execute edit");const T=g,[,R]=T.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(T),{opInfos:R.map(({from:H,to:K,value:oe})=>({type:"edit",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),R=this.content;return`${f}.EDIT(${g},${T},${R})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Co extends jr{constructor(f,g,T,R,H,K){super(f,K),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=R,this.attributes=H}static create(f,g,T,R,H,K){return new Co(f,g,T,R,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof fi||u.fatal("fail to execute, only Text can execute edit");const T=g,[,R]=T.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);return{opInfos:R.map(({from:H,to:K,value:oe})=>({type:"style",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),R=this.attributes;return`${f}.STYL(${g},${T},${JSON.stringify(R)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const fa=2,pa="root",xi="text";function Xo(A,f){let g=0;const T=A.children;for(let R=0;R0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let f=this.parent;const g=this.isRemoved?-1:1;for(;f;)f.size+=this.paddedSize*g,f=f.parent}get isText(){return this.type===xi}get paddedSize(){return this.size+(this.isText?0:fa)}isAncestorOf(f){return Bc(this,f)}get nextSibling(){const f=this.parent.findOffset(this),g=this.parent.children[f+1];if(g)return g}splitText(f,g){if(f===0||f===this.size)return;const T=this.value.slice(0,f),R=this.value.slice(f);if(!R.length)return;this.value=T;const H=this.cloneText(f+g);return H.value=R,this.parent.insertAfterInternal(H,this),H}get children(){return this._children.filter(f=>!f.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.some(f=>f.isText)}append(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...f);for(const g of f)g.parent=this,g.updateAncestorsSize()}prepend(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...f);for(const g of f)g.parent=this,g.isRemoved||g.updateAncestorsSize()}insertBefore(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T),f.updateAncestorsSize()}insertAfter(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1),f.updateAncestorsSize()}insertAt(f,g){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(f,g),f.updateAncestorsSize()}removeChild(f){if(this.isText)throw new Error("Text node cannot have children");const g=this._children.indexOf(f);if(g===-1)throw new Error("child not found");this._children.splice(g,1),f.parent=void 0}splitElement(f,g){const T=this.cloneElement(g);this.parent.insertAfterInternal(T,this),T.updateAncestorsSize();const R=this.children.slice(0,f),H=this.children.slice(f);this._children=R,T._children=H,this.size=this._children.reduce((K,oe)=>K+oe.paddedSize,0),T.size=T._children.reduce((K,oe)=>K+oe.paddedSize,0);for(const K of T._children)K.parent=T;return T}insertAfterInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1)}insertAtInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(g,0,f),f.parent=this}findOffset(f){if(this.isText)throw new Error("Text node cannot have children");if(f.isRemoved){const g=this._children.indexOf(f);return this.allChildren.splice(0,g).filter(R=>!R.isRemoved).length}return this.children.indexOf(f)}findBranchOffset(f){if(this.isText)throw new Error("Text node cannot have children");let g=f;for(;g;){const T=this._children.indexOf(g);if(T!==-1)return T;g=g.parent}return-1}}function Bc(A,f){if(A===f)return!1;for(;f.parent;){if(f.parent===A)return!0;f=f.parent}return!1}var Gn;(function(A){A.Start="Start",A.End="End",A.Text="Text"})(Gn||(Gn={}));function Fa(A,f,g,T){if(f>g)throw new Error(`from is greater than to: ${f} > ${g}`);if(f>A.size)throw new Error(`from is out of range: ${f} > ${A.size}`);if(g>A.size)throw new Error(`to is out of range: ${g} > ${A.size}`);if(f===g)return;let R=0;for(const H of A.children){if(f-H.paddedSizeH.size;(H.isText||Ae)&&T([H,H.isText?Gn.Text:Gn.Start],He),Fa(H,Math.max(0,K),Math.min(oe,H.size),T),He&&T([H,Gn.End],He)}R+=H.paddedSize}}function Ci(A,f,g=0){for(const T of A.children)Ci(T,f,g+1);f(A,g)}function Ba(A,f,g=0){for(const T of A._children)Ba(T,f,g+1);f(A,g)}function ha(A,f,g=!0){if(f>A.size)throw new Error(`index is out of range: ${f} > ${A.size}`);if(A.isText)return{node:A,offset:f};let T=0,R=0;for(const H of A.children){if(g&&H.isText&&H.size>=f-R)return ha(H,f-R,g);if(f===R)return{node:A,offset:T};if(!g&&H.paddedSize===f-R)return{node:A,offset:T+1};if(H.paddedSize>f-R)return ha(H,f-R-1,g);R+=H.paddedSize,T+=1}return{node:A,offset:T}}function Ua(A){return A.isText||A.children.length===0?A:Ua(A.children[0])}function F(A,f){if(A.sizeA===f?0:A0)if(g.right)g.right.parent=g,g=g.right;else return g;else if(T<0)if(g.left)g.left.parent=g,g=g.left;else{let R=g.parent,H=g;for(;R&&H===R.left;)H=R,R=R.parent;return R}else return g}}lastEntry(){if(!this.root)return this.root;let f=this.root;for(;f.right;)f=f.right;return f}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(f,g){for(;g;){const T=this.comparator(f,g.key);if(T===0)return g;T<0?g=g.left:T>0&&(g=g.right)}}putInternal(f,g,T){if(!T)return this.counter+=1,new le(f,g,!0);const R=this.comparator(f,T.key);return R<0?T.left=this.putInternal(f,g,T.left):R>0?T.right=this.putInternal(f,g,T.right):T.value=g,this.isRed(T.right)&&!this.isRed(T.left)&&(T=this.rotateLeft(T)),this.isRed(T.left)&&this.isRed(T.left.left)&&(T=this.rotateRight(T)),this.isRed(T.left)&&this.isRed(T.right)&&this.flipColors(T),T}removeInternal(f,g){if(this.comparator(g,f.key)<0)!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeInternal(f.left,g);else{if(this.isRed(f.left)&&(f=this.rotateRight(f)),this.comparator(g,f.key)===0&&!f.right){this.counter-=1;return}if(!this.isRed(f.right)&&!this.isRed(f.right.left)&&(f=this.moveRedRight(f)),this.comparator(g,f.key)===0){this.counter-=1;const T=this.min(f.right);f.value=T.value,f.key=T.key,f.right=this.removeMin(f.right)}else f.right=this.removeInternal(f.right,g)}return this.fixUp(f)}min(f){return f.left?this.min(f.left):f}removeMin(f){if(f.left)return!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeMin(f.left),this.fixUp(f)}fixUp(f){return this.isRed(f.right)&&(f=this.rotateLeft(f)),this.isRed(f.left)&&this.isRed(f.left.left)&&(f=this.rotateRight(f)),this.isRed(f.left)&&this.isRed(f.right)&&this.flipColors(f),f}moveRedLeft(f){return this.flipColors(f),this.isRed(f.right.left)&&(f.right=this.rotateRight(f.right),f=this.rotateLeft(f),this.flipColors(f)),f}moveRedRight(f){return this.flipColors(f),this.isRed(f.left.left)&&(f=this.rotateRight(f),this.flipColors(f)),f}isRed(f){return f&&f.isRed}rotateLeft(f){const g=f.right;return f.right=g.left,g.left=f,g.isRed=g.left.isRed,g.left.isRed=!0,g}rotateRight(f){const g=f.left;return f.left=g.right,g.right=f,g.isRed=g.right.isRed,g.right.isRed=!0,g}flipColors(f){f.isRed=!f.isRed,f.left.isRed=!f.left.isRed,f.right.isRed=!f.right.isRed}}var je;(function(A){A.Content="content",A.Style="style"})(je||(je={}));class ct{constructor(f,g){this.parentID=f,this.leftSiblingID=g}static of(f,g){return new ct(f,g)}static fromTreePos(f){const{offset:g}=f;let{node:T}=f,R;return T.isText?(T.parent.children[0]===T&&g===0?R=T.parent:R=T,T=T.parent):g===0?R=T:R=T.children[g-1],ct.of(T.id,Ze.of(R.getCreatedAt(),R.getOffset()+g))}getParentID(){return this.parentID}static fromStruct(f){return ct.of(Ze.of(Er.fromStruct(f.parentID.createdAt),f.parentID.offset),Ze.of(Er.fromStruct(f.leftSiblingID.createdAt),f.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodes(f){const g=this.getParentID(),T=this.getLeftSiblingID(),R=f.findFloorNode(g);let H=f.findFloorNode(T);if(!R||!H)throw new Error(`cannot find node at ${this}`);return!T.equals(g)&&T.getOffset()>0&&T.getOffset()===H.id.getOffset()&&H.insPrevID&&(H=f.findFloorNode(H.insPrevID)),[R,H]}getLeftSiblingID(){return this.leftSiblingID}equals(f){return this.getParentID().getCreatedAt().equals(f.getParentID().getCreatedAt())&&this.getParentID().getOffset()===f.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(f.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===f.getLeftSiblingID().getOffset()}}class Ze{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Ze(f,g)}static fromStruct(f){return Ze.of(Er.fromStruct(f.createdAt),f.offset)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset(){const R=T.deepcopy();return R.parent=g,R}),g}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(f){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=f,this.size=f.length}get isRemoved(){return!!this.removedAt}remove(f){const g=!this.removedAt;(!this.removedAt||this.removedAt.compare(f)>0)&&(this.removedAt=f),g&&(this.parent.removedAt?this.parent.size-=this.paddedSize:this.updateAncestorsSize())}cloneText(f){return new Ot(Ze.of(this.id.getCreatedAt(),f),this.type,void 0,void 0,this.removedAt)}cloneElement(f){return new Ot(Ze.of(f(),0),this.type,void 0,void 0,this.removedAt)}split(f,g,T){const R=this.isText?this.splitText(g,this.id.getOffset()):this.splitElement(g,T);if(R){if(R.insPrevID=this.id,this.insNextID){const H=f.findFloorNode(this.insNextID);H.insPrevID=R.id,R.insNextID=this.insNextID}this.insNextID=R.id,f.registerNode(R)}return R}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(f,g){return!this.getCreatedAt().after(g)&&(!this.removedAt||f.after(this.removedAt))}}function Pt(A){var f;if(A.isText){const g=A;return{type:g.type,value:g.value}}return{type:A.type,children:A.children.map(Pt),attributes:A.attrs?di((f=A.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function On(A){var f;return A.isText?A.value:`<${A.type}${((f=A.attrs)===null||f===void 0?void 0:f.toXML())||""}>${A.children.map(g=>On(g)).join("")}`}function Sr(A){if(A.isText){const f=A;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:A.type,children:A.children.map(Sr),size:A.size,isRemoved:A.isRemoved}}class Sn extends Qo{constructor(f,g){super(g),this.indexTree=new x(f),this.nodeMapByID=new Pe(Ze.createComparator()),this.removedNodeMap=new Map,this.indexTree.traverse(T=>{this.nodeMapByID.put(T.id,T)})}static create(f,g){return new Sn(f,g)}findFloorNode(f){const g=this.nodeMapByID.floorEntry(f);if(!(!g||!g.key.getCreatedAt().equals(f.getCreatedAt())))return g.value}registerNode(f){this.nodeMapByID.put(f.id,f)}findNodesAndSplitText(f,g){const[T,R]=f.toTreeNodes(this);let H=R;const K=T===H,oe=H.parent&&!K?H.parent:T;H.isText&&H.split(this,f.getLeftSiblingID().getOffset()-H.id.getOffset());const Ae=oe.allChildren,He=K?0:Ae.indexOf(H)+1;for(let yt=He;yt{if(!He.isRemoved&&!He.isText&&g){He.attrs||(He.attrs=new $a);for(const[yt,Ft]of Object.entries(g))He.attrs.set(yt,Ft,T)}}),Ae}edit(f,g,T,R,H,K){const[oe,Ae]=this.findNodesAndSplitText(f[0],R),[He,yt]=this.findNodesAndSplitText(f[1],R),Ft=this.toIndex(oe,Ae),ft=this.toPath(oe,Ae),sn=[],In=[],Nn=[],sr=new Map;this.traverseInPosRange(oe,Ae,He,yt,([$n,ni],qr)=>{if(ni===Gn.Start&&!qr)for(const lh of $n.children)Nn.push(lh);const vi=$n.getCreatedAt().getActorID(),Ef=K?K.has(vi)?K.get(vi):ao:ko;if($n.canDelete(R,Ef)||sn.includes($n.parent)){const lh=sr.get(vi),u0=$n.getCreatedAt();(!lh||u0.after(lh))&&sr.set(vi,u0),(ni===Gn.Text||ni===Gn.Start)&&sn.push($n),In.push([$n,ni])}});const lo=this.makeDeletionChanges(In,R);for(const $n of sn)$n.remove(R),$n.isRemoved&&this.removedNodeMap.set($n.id.toIDString(),$n);for(const $n of Nn)$n.removedAt||oe.append($n);if(T>0){let $n=0,ni=oe,qr=Ae;for(;$n{oe.isRemoved&&(vi.remove(R),this.removedNodeMap.set(vi.id.toIDString(),vi)),this.nodeMapByID.put(vi.id,vi)}),qr.isRemoved||$n.push(qr);if($n.length){const qr=$n.map(vi=>Pt(vi));lo.length&&lo[lo.length-1].from===Ft?lo[lo.length-1].value=qr:lo.push({type:je.Content,from:Ft,to:Ft,fromPath:ft,toPath:ft,actor:R.getActorID(),value:qr})}}return[lo,sr]}editT(f,g,T,R,H){const K=this.findPos(f[0]),oe=this.findPos(f[1]);this.edit([K,oe],g,T,R,H)}move(f,g,T){throw new Error(`not implemented: ${f}, ${g}, ${T}`)}purgeRemovedNodesBefore(f){var g;const T=new Set;let R=0;for(const[,H]of this.removedNodeMap)H.removedAt&&f.compare(H.removedAt)>=0&&(T.add(H),R++);for(const H of T)(g=H.parent)===null||g===void 0||g.removeChild(H),this.nodeMapByID.remove(H.id),this.purge(H),this.removedNodeMap.delete(H.id.toIDString());return R}purge(f){const g=f.insPrevID,T=f.insNextID;if(g){const R=this.findFloorNode(g);R.insNextID=T}if(T){const R=this.findFloorNode(T);R.insPrevID=g}f.insPrevID=void 0,f.insNextID=void 0}findPos(f,g=!0){const T=this.indexTree.findTreePos(f,g);return ct.fromTreePos(T)}getRemovedNodesLen(){return this.removedNodeMap.size}pathToPosRange(f){const g=this.pathToIndex(f);return[this.findPos(g),this.findPos(g+1)]}pathToPos(f){const g=this.indexTree.pathToIndex(f);return this.findPos(g)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getIndexTree(){return this.indexTree}toXML(){return On(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 f=this.indexTree.getRoot(),g=(T,R=void 0,H=0)=>{var K,oe,Ae;const He={type:T.type,parent:R,size:T.size,id:T.id.toTestString(),removedAt:(K=T.removedAt)===null||K===void 0?void 0:K.toTestString(),insPrev:(oe=T.insPrevID)===null||oe===void 0?void 0:oe.toTestString(),insNext:(Ae=T.insNextID)===null||Ae===void 0?void 0:Ae.toTestString(),value:T.isText?T.value:void 0,isRemoved:T.isRemoved,children:[],depth:H};for(const yt of T.children)He.children.push(g(yt,He.id,H+1));return He};return g(f)}getRootTreeNode(){return Pt(this.indexTree.getRoot())}toTestTreeNode(){return Sr(this.indexTree.getRoot())}toSortedJSON(){return this.toJSON()}deepcopy(){const f=this.getRoot();return new Sn(f.deepcopy(),this.getCreatedAt())}toPath(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.treePosToPath(T):[]}toIndex(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.indexOf(T):-1}indexToPath(f){return this.indexTree.indexToPath(f)}pathToIndex(f){return this.indexTree.pathToIndex(f)}indexRangeToPosRange(f){const g=this.findPos(f[0]);return f[0]===f[1]?[g,g]:[g,this.findPos(f[1])]}indexRangeToPosStructRange(f){const[g,T]=f,R=this.findPos(g);return g===T?[R.toStruct(),R.toStruct()]:[R.toStruct(),this.findPos(T).toStruct()]}posRangeToPathRange(f,g){const[T,R]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toPath(T,R),this.toPath(H,K)]}posRangeToIndexRange(f,g){const[T,R]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toIndex(T,R),this.toIndex(H,K)]}traverseInPosRange(f,g,T,R,H){const K=this.toIndex(f,g),oe=this.toIndex(T,R);return this.indexTree.tokensBetween(K,oe,H)}toTreePos(f,g){if(!f||!g)return;if(f.isRemoved){let R;for(;f.isRemoved;)R=f,f=R.parent;const H=f.findOffset(R);return{node:f,offset:H}}if(f===g)return{node:f,offset:0};let T=f.findOffset(g);if(!g.isRemoved){if(g.isText)return{node:g,offset:g.paddedSize};T++}return{node:f,offset:T}}makeDeletionChanges(f,g){const T=[],R=[];let H=null,K=null;for(let oe=0;oe0&&sr===T[T.length-1].to?(T[T.length-1].to=lo,T[T.length-1].toPath=this.toPath(Nn,ft)):T.push({type:je.Content,from:sr,to:lo,fromPath:this.toPath(In,yt),toPath:this.toPath(Nn,ft),actor:g.getActorID()}))}return T}findRightToken([f,g]){if(g===Gn.Start){const oe=f.allChildren;return oe.length>0?[oe[0],oe[0].isText?Gn.Text:Gn.Start]:[f,Gn.End]}const T=f.parent,R=T.allChildren,H=R.indexOf(f);if(T&&H===R.length-1)return[T,Gn.End];const K=R[H+1];return[K,K.isText?Gn.Text:Gn.Start]}findLeftToken([f,g]){if(g===Gn.End){const oe=f.allChildren;if(oe.length>0){const Ae=oe[oe.length-1];return[Ae,Ae.isText?Gn.Text:Gn.End]}return[f,Gn.Start]}const T=f.parent,R=T.allChildren,H=R.indexOf(f);if(T&&H===0)return[T,Gn.Start];const K=R[H-1];return[K,K.isText?Gn.Text:Gn.End]}}class Wi extends jr{constructor(f,g,T,R,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.contents=R,this.splitLevel=H,this.maxCreatedAtMapByActor=K}static create(f,g,T,R,H,K,oe){return new Wi(f,g,T,R,H,K,oe)}execute(f){var g;const T=f.findByCreatedAt(this.getParentCreatedAt());T||u.fatal(`fail to find ${this.getParentCreatedAt()}`),T instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const R=this.getExecutedAt(),H=T,[K]=H.edit([this.fromPos,this.toPos],(g=this.contents)===null||g===void 0?void 0:g.map(oe=>oe.deepcopy()),this.splitLevel,R,(()=>{let oe=R.getDelimiter();return this.contents!==void 0&&(oe+=this.contents.length),()=>Er.of(R.getLamport(),++oe,R.getActorID())})(),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(H),{opInfos:K.map(({from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft})=>({type:"tree-edit",path:f.createPath(this.getParentCreatedAt()),from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`,R=this.contents;return`${f}.EDIT(${g},${T},${R==null?void 0:R.join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class ja{constructor(f,g,T){this.clientSeq=f,this.lamport=g,this.actor=T}static of(f,g,T){return new ja(f,g,T)}next(){return new ja(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new ja(this.clientSeq,f,this.actor):new ja(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return Er.of(this.lamport,f,this.actor)}setActor(f){return new ja(this.clientSeq,this.lamport,f)}getClientSeq(){return this.clientSeq}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return this.actor?`${this.lamport.toString()}:${this.actor.substring(22,24)}:${this.clientSeq}`:`${this.lamport.toString()}:nil:${this.clientSeq}`}}const aC=new ja(0,Gr.fromInt(0,!0),YO);class yf{constructor({id:f,operations:g,presenceChange:T,message:R}){this.id=f,this.operations=g||[],this.presenceChange=T,this.message=R}static create({id:f,operations:g,presenceChange:T,message:R}){return new yf({id:f,operations:g,presenceChange:T,message:R})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(f){for(const g of this.operations)g.setActor(f);this.id=this.id.setActor(f)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(f,g,T){const R=[],H=[];for(const K of this.operations){const oe=K.execute(f,T);if(!oe)continue;const{opInfos:Ae,reverseOp:He}=oe;R.push(...Ae),He&&H.unshift(He)}return this.presenceChange&&(this.presenceChange.type===Ma.Put?g.set(this.id.getActorID(),ca(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:R,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class GO{constructor(f,g,T,R,H,K){this.documentKey=f,this.checkpoint=g,this.isRemoved=T,this.changes=R,this.snapshot=H,this.minSyncedTicket=K}static create(f,g,T,R,H,K){return new GO(f,g,T,R,H,K)}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 nh{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new nh(f,g)}increaseClientSeq(f){return f===0?this:new nh(this.serverSeq,this.clientSeq+f)}forward(f){if(this.equals(f))return this;const g=this.serverSeq.greaterThan(f.serverSeq)?this.serverSeq:f.serverSeq,T=Math.max(this.clientSeq,f.clientSeq);return nh.of(g,T)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(f){return this.clientSeq===f.clientSeq&&this.serverSeq.equals(f.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const noe=new nh(Gr.fromInt(0,!0),0);class Xl{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Xl(f,g)}static fromStruct(f){return Xl.of(Er.fromStruct(f.createdAt),f.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(f){return this.createdAt.compare(f.createdAt)===0&&this.offset===f.offset}hasSameCreatedAt(f){return this.createdAt.compare(f.createdAt)===0}split(f){return new Xl(this.createdAt,this.offset+f)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const roe=Xl.of(ao,0);class ul{constructor(f,g){this.id=f,this.relativeOffset=g}static of(f,g){return new ul(f,g)}static fromStruct(f){const g=Xl.fromStruct(f.id);return ul.of(g,f.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return Xl.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(f){return this.id.equals(f.id)?this.relativeOffset===f.relativeOffset:!1}}class Uc extends Yo{constructor(f,g,T){super(g),this.id=f,this.removedAt=T}static create(f,g){return new Uc(f,g)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset()0&&g.getID().getOffset()==f.getOffset()){if(!g.hasInsPrev())return g;g=g.getInsPrev()}return g}findFloorNode(f){const g=this.treeByID.floorEntry(f);if(g&&!(!g.key.equals(f)&&!g.key.hasSameCreatedAt(f)))return g.value}findBetween(f,g){const T=[];let R=f;for(;R&&R!==g;)T.push(R),R=R.getNext();return T}splitNode(f,g){if(g>f.getContentLength()&&u.fatal("offset should be less than or equal to length"),g===0)return f;if(g===f.getContentLength())return f.getNext();const T=f.split(g);this.treeByIndex.updateWeight(T),this.insertAfter(f,T);const R=f.getInsNext();return R&&R.setInsPrev(T),T.setInsPrev(f),T}deleteNodes(f,g,T){if(!f.length)return[[],new Map,new Map];const[R,H]=this.filterNodes(f,g,T),K=new Map,oe=new Map,Ae=this.makeChanges(H,g);for(const He of R){const yt=He.getCreatedAt().getActorID();(!K.has(yt)||He.getID().getCreatedAt().after(K.get(yt)))&&K.set(yt,He.getID().getCreatedAt()),oe.set(He.getID().toIDString(),He),He.remove(g)}return this.deleteIndexNodes(H),[Ae,K,oe]}filterNodes(f,g,T){const R=!!T,H=[],K=[],[oe,Ae]=this.findEdgesOfCandidates(f);K.push(oe);for(const He of f){const yt=He.getCreatedAt().getActorID(),Ft=R?T.has(yt)?T.get(yt):ao:ko;He.canDelete(g,Ft)?H.push(He):K.push(He)}return K.push(Ae),[H,K]}findEdgesOfCandidates(f){return[f[0].getPrev(),f[f.length-1].getNext()]}makeChanges(f,g){const T=[];let R,H;for(let K=0;K=0&&(this.treeByIndex.delete(T),this.purge(T),this.treeByID.remove(T.getID()),this.removedNodeMap.delete(T.getID().toIDString()),g++);return g}purge(f){const g=f.getPrev(),T=f.getNext(),R=f.getInsPrev(),H=f.getInsNext();g&&g.setNext(T),T&&T.setPrev(g),f.setPrev(void 0),f.setNext(void 0),R&&R.setInsNext(H),H&&H.setInsPrev(R),f.setInsPrev(void 0),f.setInsNext(void 0)}}const KF=A=>A<0?Math.ceil(A):Math.floor(A);var pi;(function(A){A[A.IntegerCnt=0]="IntegerCnt",A[A.LongCnt=1]="LongCnt"})(pi||(pi={}));class za extends so{constructor(f,g,T){switch(super(T),this.valueType=f,f){case pi.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Gr.fromNumber(g).toInt():this.value=KF(g):this.value=g.toInt();break;case pi.LongCnt:typeof g=="number"?this.value=Gr.fromNumber(g):this.value=g;break;default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}static create(f,g,T){return new za(f,g,T)}static valueFromBytes(f,g){switch(f){case pi.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case pi.LongCnt:return Gr.fromBytesLE(Array.from(g));default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const f=za.create(this.valueType,this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f}getType(){return this.valueType}static getCounterType(f){switch(typeof f){case"object":return f instanceof Gr?pi.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?pi.LongCnt:pi.IntegerCnt;default:return}}static isSupport(f){return!!za.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===pi.IntegerCnt||f===pi.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case pi.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case pi.LongCnt:{const g=this.value.toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(f){function g(T){if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`)}return g(this),g(f),this.valueType===pi.LongCnt?this.value=this.value.add(f.getValue()):f.getType()===Jt.Long?this.value=this.value+f.getValue().toInt():this.value=Gr.fromNumber(this.value+KF(f.getValue())).toInt(),this}}class ih extends jr{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new ih(f,g,T)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof za||u.fatal("fail to execute, only Counter can execute increase");const T=g,R=this.value.deepcopy();return T.increase(R),{opInfos:[{type:"increase",path:f.createPath(this.getParentCreatedAt()),value:R.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const f=this.value.deepcopy(),T=f.getType()===Jt.Long?f.getValue().multiply(-1):f.getValue()*-1;return ih.create(this.getParentCreatedAt(),Rr.of(T,f.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class oh extends jr{constructor(f,g,T,R,H){super(f,H),this.fromPos=g,this.toPos=T,this.attributes=R}static create(f,g,T,R,H){return new oh(f,g,T,R,H)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const T={};return[...this.attributes].forEach(([K,oe])=>T[K]=oe),{opInfos:g.style([this.fromPos,this.toPos],T,this.getExecutedAt()).map(({from:K,to:oe,value:Ae,fromPath:He})=>({type:"tree-style",from:K,to:oe,value:Ae,fromPath:He,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${f}.STYLE(${g},${T},${Object.entries(this.attributes||{}).map(([R,H])=>`${R}:"${H}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}}function ioe(A){const f=new pe.Presence,g=f.data;for(const[T,R]of Object.entries(A))g[T]=JSON.stringify(R);return f}function ooe(A){if(A.type===Ma.Put)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.PUT,presence:ioe(A.presence)});if(A.type===Ma.Clear)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function aoe(A){return new pe.Checkpoint({serverSeq:A.getServerSeqAsString(),clientSeq:A.getClientSeq()})}function soe(A){return new pe.ChangeID({clientSeq:A.getClientSeq(),lamport:A.getLamportAsString(),actorId:pC(A.getActorID())})}function un(A){if(A)return new pe.TimeTicket({lamport:A.getLamportAsString(),delimiter:A.getDelimiter(),actorId:pC(A.getActorID())})}function JF(A){switch(A){case Jt.Null:return pe.ValueType.NULL;case Jt.Boolean:return pe.ValueType.BOOLEAN;case Jt.Integer:return pe.ValueType.INTEGER;case Jt.Long:return pe.ValueType.LONG;case Jt.Double:return pe.ValueType.DOUBLE;case Jt.String:return pe.ValueType.STRING;case Jt.Bytes:return pe.ValueType.BYTES;case Jt.Date:return pe.ValueType.DATE;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function e6(A){switch(A){case pi.IntegerCnt:return pe.ValueType.INTEGER_CNT;case pi.LongCnt:return pe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function sC(A){if(A instanceof br)return new pe.JSONElementSimple({type:pe.ValueType.JSON_OBJECT,createdAt:un(A.getCreatedAt()),value:f6(A)});if(A instanceof Go)return new pe.JSONElementSimple({type:pe.ValueType.JSON_ARRAY,createdAt:un(A.getCreatedAt()),value:Moe(A)});if(A instanceof fi)return new pe.JSONElementSimple({type:pe.ValueType.TEXT,createdAt:un(A.getCreatedAt())});if(A instanceof Rr)return new pe.JSONElementSimple({type:JF(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof za)return new pe.JSONElementSimple({type:e6(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof Sn)return new pe.JSONElementSimple({type:pe.ValueType.TREE,createdAt:un(A.getCreatedAt()),value:Foe(A)});throw new An(En.Unimplemented,"unimplemented element")}function loe(A){return new pe.TextNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function qO(A){return new pe.TextNodePos({createdAt:un(A.getID().getCreatedAt()),offset:A.getID().getOffset(),relativeOffset:A.getRelativeOffset()})}function ZO(A){return new pe.TreePos({parentId:o0(A.getParentID()),leftSiblingId:o0(A.getLeftSiblingID())})}function o0(A){return new pe.TreeNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function uoe(A){const f=new pe.Operation;if(A instanceof Yu){const g=A,T=new pe.Operation_Set;T.parentCreatedAt=un(g.getParentCreatedAt()),T.key=g.getKey(),T.value=sC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="set",f.body.value=T}else if(A instanceof bf){const g=A,T=new pe.Operation_Add;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.value=sC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="add",f.body.value=T}else if(A instanceof ql){const g=A,T=new pe.Operation_Move;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="move",f.body.value=T}else if(A instanceof Gl){const g=A,T=new pe.Operation_Remove;T.parentCreatedAt=un(g.getParentCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="remove",f.body.value=T}else if(A instanceof Zl){const g=A,T=new pe.Operation_Edit;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=qO(g.getFromPos()),T.to=qO(g.getToPos());const R=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())R[K]=un(oe);T.content=g.getContent();const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="edit",f.body.value=T}else if(A instanceof Co){const g=A,T=new pe.Operation_Style;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=qO(g.getFromPos()),T.to=qO(g.getToPos());const R=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())R[K]=un(oe);const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="style",f.body.value=T}else if(A instanceof ih){const g=A,T=new pe.Operation_Increase;T.parentCreatedAt=un(g.getParentCreatedAt()),T.value=sC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="increase",f.body.value=T}else if(A instanceof Wi){const g=A,T=new pe.Operation_TreeEdit,R=T.createdAtMapByActor;for(const[H,K]of g.getMaxCreatedAtMapByActor())R[H]=un(K);T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=ZO(g.getFromPos()),T.to=ZO(g.getToPos()),T.contents=goe(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=un(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(A instanceof oh){const g=A,T=new pe.Operation_TreeStyle;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=ZO(g.getFromPos()),T.to=ZO(g.getToPos());const R=T.attributes;for(const[H,K]of g.getAttributes())R[H]=K;T.executedAt=un(g.getExecutedAt()),f.body.case="treeStyle",f.body.value=T}else throw new An(En.Unimplemented,"unimplemented operation");return f}function coe(A){const f=[];for(const g of A)f.push(uoe(g));return f}function doe(A){const f=new pe.Change({id:soe(A.getID()),message:A.getMessage()});return A.hasOperations()&&(f.operations=coe(A.getOperations())),A.hasPresenceChange()&&(f.presenceChange=ooe(A.getPresenceChange())),f}function foe(A){const f=[];for(const g of A)f.push(doe(g));return f}function poe(A){const f=[];for(const g of A)f.push(new pe.RHTNode({key:g.getStrKey(),element:lC(g.getValue())}));return f}function hoe(A){const f=[];for(const g of A)f.push(new pe.RGANode({element:lC(g.getValue())}));return f}function moe(A){const f=[];for(const g of A){const T=new pe.TextNode;T.id=loe(g.getID()),T.value=g.getValue().getContent(),T.removedAt=un(g.getRemovedAt());const R=T.attributes,H=g.getValue().getAttrs();for(const K of H){const oe=new pe.NodeAttr;oe.value=K.getValue(),oe.updatedAt=un(K.getUpdatedAt()),R[K.getKey()]=oe}f.push(T)}return f}function goe(A){const f=[];if(!A||!A.length)return f;for(const g of A)f.push(new pe.TreeNodes({content:t6(g)}));return f}function t6(A){if(!A)return[];const f=[];return Ci(A,(g,T)=>{const R=new pe.TreeNode({id:o0(g.id),type:g.type,removedAt:un(g.removedAt),depth:T});if(g.isText&&(R.value=g.value),g.insPrevID&&(R.insPrevId=o0(g.insPrevID)),g.insNextID&&(R.insNextId=o0(g.insNextID)),g.attrs)for(const H of g.attrs)R.attributes[H.getKey()]=new pe.NodeAttr({value:H.getValue(),updatedAt:un(H.getUpdatedAt())});f.push(R)}),f}function boe(A){const f=new pe.JSONElement;return f.body.case="jsonObject",f.body.value=new pe.JSONElement_JSONObject({nodes:poe(A.getRHT()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function n6(A){const f=new pe.JSONElement;return f.body.case="jsonArray",f.body.value=new pe.JSONElement_JSONArray({nodes:hoe(A.getElements()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function yoe(A){const f=new pe.JSONElement;return f.body.case="primitive",f.body.value=new pe.JSONElement_Primitive({type:JF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Ooe(A){const f=new pe.JSONElement;return f.body.case="text",f.body.value=new pe.JSONElement_Text({nodes:moe(A.getRGATreeSplit()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function voe(A){const f=new pe.JSONElement;return f.body.case="counter",f.body.value=new pe.JSONElement_Counter({type:e6(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function r6(A){const f=new pe.JSONElement;return f.body.case="tree",f.body.value=new pe.JSONElement_Tree({nodes:t6(A.getRoot()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function lC(A){if(A instanceof br)return boe(A);if(A instanceof Go)return n6(A);if(A instanceof Rr)return yoe(A);if(A instanceof fi)return Ooe(A);if(A instanceof za)return voe(A);if(A instanceof Sn)return r6(A);throw new An(En.Unimplemented,"unimplemented element")}function Eoe(A){return new pe.ChangePack({documentKey:A.getDocumentKey(),checkpoint:aoe(A.getCheckpoint()),isRemoved:A.getIsRemoved(),changes:foe(A.getChanges()),snapshot:A.getSnapshot(),minSyncedTicket:un(A.getMinSyncedTicket())})}function Soe(A){return ja.of(A.clientSeq,Gr.fromString(A.lamport,!0),fC(A.actorId))}function hn(A){if(A)return Er.of(Gr.fromString(A.lamport,!0),A.delimiter,fC(A.actorId))}function uC(A){const f={};return Object.entries(A.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function Toe(A){const f=A.type;if(f===pe.PresenceChange_ChangeType.PUT){const g=uC(A.presence);return{type:Ma.Put,presence:g}}if(f===pe.PresenceChange_ChangeType.CLEAR)return{type:Ma.Clear};throw new An(En.Unsupported,`unsupported type: ${f}`)}function woe(A){const f=new Map;return Object.entries(A).forEach(([g,T])=>{f.set(g,uC(T))}),f}function i6(A){switch(A){case pe.ValueType.NULL:return Jt.Null;case pe.ValueType.BOOLEAN:return Jt.Boolean;case pe.ValueType.INTEGER:return Jt.Integer;case pe.ValueType.LONG:return Jt.Long;case pe.ValueType.DOUBLE:return Jt.Double;case pe.ValueType.STRING:return Jt.String;case pe.ValueType.BYTES:return Jt.Bytes;case pe.ValueType.DATE:return Jt.Date}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function XO(A){switch(A){case pe.ValueType.INTEGER_CNT:return pi.IntegerCnt;case pe.ValueType.LONG_CNT:return pi.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function cC(A){switch(A.type){case pe.ValueType.JSON_OBJECT:return A.value?d6(A.value):br.create(hn(A.createdAt));case pe.ValueType.JSON_ARRAY:return A.value?Loe(A.value):Go.create(hn(A.createdAt));case pe.ValueType.TEXT:return fi.create(rh.create(),hn(A.createdAt));case pe.ValueType.TREE:return $oe(A.value);case pe.ValueType.NULL:case pe.ValueType.BOOLEAN:case pe.ValueType.INTEGER:case pe.ValueType.LONG:case pe.ValueType.DOUBLE:case pe.ValueType.STRING:case pe.ValueType.BYTES:case pe.ValueType.DATE:return Rr.of(Rr.valueFromBytes(i6(A.type),A.value),hn(A.createdAt));case pe.ValueType.INTEGER_CNT:case pe.ValueType.LONG_CNT:return za.create(XO(A.type),za.valueFromBytes(XO(A.type),A.value),hn(A.createdAt))}}function KO(A){return ul.of(Xl.of(hn(A.createdAt),A.offset),A.relativeOffset)}function o6(A){return Xl.of(hn(A.createdAt),A.offset)}function koe(A){const f=Zo.create(A.value);Object.entries(A.attributes).forEach(([T,R])=>{f.setAttr(T,R.value,hn(R.updatedAt))});const g=Uc.create(o6(A.id),f);return g.remove(hn(A.removedAt)),g}function JO(A){return ct.of(a0(A.parentId),a0(A.leftSiblingId))}function a0(A){return Ze.of(hn(A.createdAt),A.offset)}function xoe(A){if(!A.length)return;const f=[];return A.forEach(g=>{const T=a6(g.content);f.push(T)}),f}function a6(A){if(A.length===0)return;const f=[];for(const T of A)f.push(Coe(T));const g=f[f.length-1];for(let T=f.length-2;T>=0;T--){let R;for(let H=T+1;H{T.set(R,H.value,hn(H.updatedAt))}),g.attrs=T}return A.insPrevId&&(g.insPrevID=a0(A.insPrevId)),A.insNextId&&(g.insNextID=a0(A.insNextId)),g.removedAt=hn(A.removedAt),g}function Aoe(A){const f=[];for(const g of A){let T;if(g.body.case==="set"){const R=g.body.value;T=Yu.create(R.key,cC(R.value),hn(R.parentCreatedAt),hn(R.executedAt))}else if(g.body.case==="add"){const R=g.body.value;T=bf.create(hn(R.parentCreatedAt),hn(R.prevCreatedAt),cC(R.value),hn(R.executedAt))}else if(g.body.case==="move"){const R=g.body.value;T=ql.create(hn(R.parentCreatedAt),hn(R.prevCreatedAt),hn(R.createdAt),hn(R.executedAt))}else if(g.body.case==="remove"){const R=g.body.value;T=Gl.create(hn(R.parentCreatedAt),hn(R.createdAt),hn(R.executedAt))}else if(g.body.case==="edit"){const R=g.body.value,H=new Map;Object.entries(R.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(R.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Zl.create(hn(R.parentCreatedAt),KO(R.from),KO(R.to),H,R.content,K,hn(R.executedAt))}else if(g.body.case==="style"){const R=g.body.value,H=new Map;Object.entries(R.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(R.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Co.create(hn(R.parentCreatedAt),KO(R.from),KO(R.to),H,K,hn(R.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const R=g.body.value;T=ih.create(hn(R.parentCreatedAt),cC(R.value),hn(R.executedAt))}else if(g.body.case==="treeEdit"){const R=g.body.value,H=new Map;Object.entries(R.createdAtMapByActor).forEach(([K,oe])=>{H.set(K,hn(oe))}),T=Wi.create(hn(R.parentCreatedAt),JO(R.from),JO(R.to),xoe(R.contents),R.splitLevel,H,hn(R.executedAt))}else if(g.body.case==="treeStyle"){const R=g.body.value,H=new Map;Object.entries(R.attributes).forEach(([K,oe])=>{H.set(K,oe)}),T=oh.create(hn(R.parentCreatedAt),JO(R.from),JO(R.to),H,hn(R.executedAt))}else throw new An(En.Unimplemented,"unimplemented operation")}f.push(T)}return f}function s6(A){const f=[];for(const g of A)f.push(yf.create({id:Soe(g.id),operations:Aoe(g.operations),presenceChange:g.presenceChange?Toe(g.presenceChange):void 0,message:g.message}));return f}function _oe(A){return nh.of(Gr.fromString(A.serverSeq,!0),A.clientSeq)}function Roe(A){return GO.create(A.documentKey,_oe(A.checkpoint),A.isRemoved,s6(A.changes),A.snapshot,hn(A.minSyncedTicket))}function l6(A){const f=new Vi;for(const T of A.nodes){const R=dC(T.element);f.set(T.key,R,R.getPositionedAt())}const g=new br(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function u6(A){const f=new gf;for(const T of A.nodes)f.insert(dC(T.element));const g=new Go(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function Ioe(A){const f=Rr.of(Rr.valueFromBytes(i6(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function Doe(A){const f=new rh;let g=f.getHead();for(const R of A.nodes){const H=f.insertAfter(g,koe(R));R.insPrevId&&H.setInsPrev(f.findNode(o6(R.insPrevId))),g=H}const T=new fi(f,hn(A.createdAt));return T.setMovedAt(hn(A.movedAt)),T.setRemovedAt(hn(A.removedAt)),T}function Noe(A){const f=za.create(XO(A.type),za.valueFromBytes(XO(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function c6(A){const f=a6(A.nodes);return Sn.create(f,hn(A.createdAt))}function dC(A){if(A.body.case==="jsonObject")return l6(A.body.value);if(A.body.case==="jsonArray")return u6(A.body.value);if(A.body.case==="primitive")return Ioe(A.body.value);if(A.body.case==="text")return Doe(A.body.value);if(A.body.case==="counter")return Noe(A.body.value);if(A.body.case==="tree")return c6(A.body.value);throw new An(En.Unimplemented,"unimplemented element")}function Poe(A){if(!A)return{root:br.create(ao),presences:new Map};const f=pe.Snapshot.fromBinary(A);return{root:dC(f.root),presences:woe(f.presences)}}function d6(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return l6(f.body.value)}function f6(A){return lC(A).toBinary()}function Loe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return u6(f.body.value)}function Moe(A){return n6(A).toBinary()}function $oe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return c6(f.body.value)}function Foe(A){return r6(A).toBinary()}function Boe(A){return A?Array.from(A).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function fC(A){return Boe(A)}function Uoe(A){return new Uint8Array(A.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function pC(A){return Uoe(A)}const Kl={fromPresence:uC,toChangePack:Eoe,fromChangePack:Roe,fromChanges:s6,objectToBytes:f6,bytesToObject:d6,bytesToSnapshot:Poe,toHexString:fC,toUint8Array:pC};class joe{constructor(f,g,T,R){this.reconnectStreamDelay=f,this.doc=g,this.docID=T,this.isRealtimeSync=R,this.syncMode=Gu.PushPull,this.remoteChangeEventReceived=!1}changeRealtimeSync(f){return this.isRealtimeSync===f?!1:f?(this.isRealtimeSync=!0,!0):(this.cancelWatchStream(),this.isRealtimeSync=!1,!0)}changeSyncMode(f){this.syncMode=f}needRealtimeSync(){return this.isRealtimeSync&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(f){const g=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await f(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(g,this.reconnectStreamDelay)})}catch{}};await g()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}class ah{constructor(f,g,T,R){this.id=f,this.delimiter=Jp,this.root=g,this.operations=[],this.previousPresence=ca(T),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=R}static create(f,g,T,R){return new ah(f,g,T,R)}push(f){this.operations.push(f)}registerElement(f,g){this.root.registerElement(f,g)}registerRemovedElement(f){this.root.registerRemovedElement(f)}registerElementHasRemovedNodes(f){this.root.registerElementHasRemovedNodes(f)}getChange(){return yf.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(f){this.presenceChange=f}setReversePresence(f,g){for(const T of Object.keys(f))g!=null&&g.addToHistory?this.reversePresenceKeys.add(T):this.reversePresenceKeys.delete(T)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const f={};for(const g of this.reversePresenceKeys)f[g]=this.previousPresence[g];return f}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class s0{constructor(f){this.rootObject=f,this.elementPairMapByCreatedAt=new Map,this.removedElementSetByCreatedAt=new Set,this.elementHasRemovedNodesSetByCreatedAt=new Set,this.opsForTest=[],this.registerElement(f,void 0)}static create(){return new s0(br.create(ao))}findByCreatedAt(f){const g=this.elementPairMapByCreatedAt.get(f.toIDString());if(g)return g.element}findElementPairByCreatedAt(f){return this.elementPairMapByCreatedAt.get(f.toIDString())}createSubPaths(f){let g=this.elementPairMapByCreatedAt.get(f.toIDString());if(!g)return[];const T=[];for(;g.parent;){const R=g.element.getCreatedAt(),H=g.parent.subPathOf(R);H===void 0&&u.fatal(`cant find the given element: ${R.toIDString()}`),T.unshift(H),g=this.elementPairMapByCreatedAt.get(g.parent.getCreatedAt().toIDString())}return T.unshift("$"),T}createPath(f){return this.createSubPaths(f).join(".")}registerElement(f,g){this.elementPairMapByCreatedAt.set(f.getCreatedAt().toIDString(),{parent:g,element:f}),f instanceof Yl&&f.getDescendants((T,R)=>(this.registerElement(T,R),!1))}deregisterElement(f){let g=0;const T=R=>{const H=R.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(H),this.removedElementSetByCreatedAt.delete(H),g++};return T(f),f instanceof Yl&&f.getDescendants(R=>(T(R),!1)),g}registerRemovedElement(f){this.removedElementSetByCreatedAt.add(f.getCreatedAt().toIDString())}registerElementHasRemovedNodes(f){this.elementHasRemovedNodesSetByCreatedAt.add(f.getCreatedAt().toIDString())}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getRemovedElementSetSize(){return this.removedElementSetByCreatedAt.size}getObject(){return this.rootObject}getGarbageLen(){let f=0;const g=new Set;for(const T of this.removedElementSetByCreatedAt){g.add(T);const R=this.elementPairMapByCreatedAt.get(T);R.element instanceof Yl&&R.element.getDescendants(H=>(g.add(H.getCreatedAt().toIDString()),!1))}f+=g.size;for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element;f+=H.getRemovedNodesLen()}return f}deepcopy(){return new s0(this.rootObject.deepcopy())}garbageCollect(f){let g=0;for(const T of this.removedElementSetByCreatedAt){const R=this.elementPairMapByCreatedAt.get(T);R.element.getRemovedAt()&&f.compare(R.element.getRemovedAt())>=0&&(R.parent.purge(R.element),g+=this.deregisterElement(R.element))}for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element,K=H.purgeRemovedNodesBefore(f);K>0&&this.elementHasRemovedNodesSetByCreatedAt.delete(H.getCreatedAt().toIDString()),g+=K}return g}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function p6(A,f){const g=new l0(A);return new Proxy(f,g.getHandlers())}class l0{constructor(f){this.context=f,this.handlers={set:(g,T,R)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(R)}`),l0.setInternal(f,g,T,R),!0),get:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),T==="getID"?()=>g.getCreatedAt():T==="toJSON"||T==="toString"?()=>g.toJSON():T==="toJS"?()=>g.toJS():T==="toJSForTest"?()=>g.toJSForTest():Of(f,g.get(T))),ownKeys:g=>g.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),l0.deleteInternal(f,g,T),!0)}}static setInternal(f,g,T,R){if(T.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const H=f.issueTimeTicket(),K=rv(f,R,H),oe=g.set(T,K,H);f.registerElement(K,g),oe&&f.registerRemovedElement(oe),f.push(Yu.create(T,K.deepcopy(),g.getCreatedAt(),H))}static buildObjectMembers(f,g){const T={};for(const[R,H]of Object.entries(g)){if(R.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const K=f.issueTimeTicket(),oe=rv(f,H,K);T[R]=oe}return T}static deleteInternal(f,g,T){const R=f.issueTimeTicket(),H=g.deleteByKey(T,R);H&&(f.push(Gl.create(g.getCreatedAt(),H.getCreatedAt(),R)),f.registerRemovedElement(H))}getHandlers(){return this.handlers}}function zoe(A,f){const g=new ti(A,f);return new Proxy(f,g.getHandlers())}function Voe(A){return typeof A=="string"||A instanceof String?!isNaN(A):!1}function Hoe(A){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(A)}class ti{constructor(f,g){this.context=f,this.array=g,this.handlers={get:(T,R,H)=>R==="getID"?()=>T.getCreatedAt():R==="getElementByID"?K=>{const oe=T.getByID(K);if(!(!oe||oe.isRemoved()))return jc(f,oe)}:R==="getElementByIndex"?K=>{const oe=T.get(K);return jc(f,oe)}:R==="getLast"?()=>jc(f,T.getLast()):R==="deleteByID"?K=>{const oe=ti.deleteInternalByID(f,T,K);return jc(f,oe)}:R==="insertAfter"?(K,oe)=>{const Ae=ti.insertAfterInternal(f,T,K,oe);return jc(f,Ae)}:R==="insertBefore"?(K,oe)=>{const Ae=ti.insertBeforeInternal(f,T,K,oe);return jc(f,Ae)}:R==="moveBefore"?(K,oe)=>{ti.moveBeforeInternal(f,T,K,oe)}:R==="moveAfter"?(K,oe)=>{ti.moveAfterInternal(f,T,K,oe)}:R==="moveFront"?K=>{ti.moveFrontInternal(f,T,K)}:R==="moveLast"?K=>{ti.moveLastInternal(f,T,K)}:Voe(R)?Of(f,T.get(Number(R))):R==="push"?K=>ti.pushInternal(f,T,K):R==="splice"?(K,oe,...Ae)=>ti.splice(f,T,K,oe,...Ae):R==="length"?T.length:typeof R=="symbol"&&R===Symbol.iterator?ti.iteratorInternal.bind(this,f,T):R==="includes"?(K,oe)=>ti.includes(f,T,K,oe):R==="indexOf"?(K,oe)=>ti.indexOf(f,T,K,oe):R==="lastIndexOf"?(K,oe)=>ti.lastIndexOf(f,T,K,oe):R==="toTestString"?()=>ti.toTestString(T):typeof R=="string"&&Hoe(R)?(...K)=>{const oe=Array.from(T).map(Ae=>Of(f,Ae));return Array.prototype[R].apply(oe,K)}:Reflect.get(T,R,H),deleteProperty:(T,R)=>(u.isEnabled(s.Trivial)&&u.trivial(`array[${R}]`),ti.deleteInternalByIndex(f,T,Number.parseInt(R)),!0)}}static*iteratorInternal(f,g){for(const T of g)yield jc(f,T)}static buildArrayElements(f,g){const T=[];for(const R of g){const H=f.issueTimeTicket(),K=rv(f,R,H);T.push(K)}return T}static pushInternal(f,g,T){return ti.insertAfterInternal(f,g,g.getLastCreatedAt(),T),g.length}static moveBeforeInternal(f,g,T,R){const H=f.issueTimeTicket(),K=g.getPrevCreatedAt(T);g.moveAfter(K,R,H),f.push(ql.create(g.getCreatedAt(),K,R,H))}static moveAfterInternal(f,g,T,R){const H=f.issueTimeTicket();g.moveAfter(T,R,H),f.push(ql.create(g.getCreatedAt(),T,R,H))}static moveFrontInternal(f,g,T){const R=f.issueTimeTicket(),H=g.getHead();g.moveAfter(H.getCreatedAt(),T,R),f.push(ql.create(g.getCreatedAt(),H.getCreatedAt(),T,R))}static moveLastInternal(f,g,T){const R=f.issueTimeTicket(),H=g.getLastCreatedAt();g.moveAfter(H,T,R),f.push(ql.create(g.getCreatedAt(),H,T,R))}static insertAfterInternal(f,g,T,R){const H=f.issueTimeTicket(),K=rv(f,R,H);return g.insertAfter(T,K),f.registerElement(K,g),f.push(bf.create(g.getCreatedAt(),T,K.deepcopy(),H)),K}static insertBeforeInternal(f,g,T,R){return ti.insertAfterInternal(f,g,g.getPrevCreatedAt(T),R)}static deleteInternalByIndex(f,g,T){const R=f.issueTimeTicket(),H=g.deleteByIndex(T,R);if(H)return f.push(Gl.create(g.getCreatedAt(),H.getCreatedAt(),R)),f.registerRemovedElement(H),H}static deleteInternalByID(f,g,T){const R=f.issueTimeTicket(),H=g.delete(T,R);return f.push(Gl.create(g.getCreatedAt(),H.getCreatedAt(),R)),f.registerRemovedElement(H),H}static splice(f,g,T,R,...H){const K=g.length,oe=T>=0?Math.min(T,K):Math.max(K+T,0),Ae=R===void 0?K:R<0?oe:Math.min(oe+R,K),He=[];for(let yt=oe;yt=K)return!1;if(Rr.isSupport(T))return Array.from(g).map(He=>Of(f,He)).includes(T,oe);for(let Ae=oe;Ae=K)return-1;if(Rr.isSupport(T))return Array.from(g).map(He=>Of(f,He)).indexOf(T,oe);for(let Ae=oe;Ae=K?K-1:R<0?R+K:R;if(oe<0)return-1;if(Rr.isSupport(T))return Array.from(g).map(He=>Of(f,He)).lastIndexOf(T,oe);for(let Ae=oe;Ae>0;Ae--)if(((H=g.get(Ae))===null||H===void 0?void 0:H.getID())===T.getID())return Ae;return-1}static toTestString(f){return f.toTestString()}getHandlers(){return this.handlers}}class ev{constructor(f,g){this.context=f,this.text=g}initialize(f,g){this.context=f,this.text=g}getID(){return this.text.getID()}edit(f,g,T,R){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}if(f>g){u.fatal("from should be less than or equal to to");return}const H=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`EDIT: f:${f}->${H[0].toTestString()}, t:${g}->${H[1].toTestString()} c:${T}`);const K=R?oo(R):void 0,oe=this.context.issueTimeTicket(),[Ae,,He]=this.text.edit(H,T,oe,K);return this.context.push(new Zl(this.text.getCreatedAt(),H[0],H[1],Ae,T,K?new Map(Object.entries(K)):new Map,oe)),H[0].equals(H[1])||this.context.registerElementHasRemovedNodes(this.text),this.text.findIndexesFromRange(He)}delete(f,g){return this.edit(f,g,"")}empty(){return this.edit(0,this.length,"")}setStyle(f,g,T){if(!this.context||!this.text)return u.fatal("it is not initialized yet"),!1;if(f>g)return u.fatal("from should be less than or equal to to"),!1;const R=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`STYL: f:${f}->${R[0].toTestString()}, t:${g}->${R[1].toTestString()} a:${JSON.stringify(T)}`);const H=oo(T),K=this.context.issueTimeTicket(),[oe]=this.text.setStyle(R,H,K);return this.context.push(new Co(this.text.getCreatedAt(),R[0],R[1],oe,new Map(Object.entries(H)),K)),!0}indexRangeToPosRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.indexRangeToPosRange(f[0],f[1]);return[g[0].toStruct(),g[1].toStruct()]}posRangeToIndexRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.findIndexesFromRange([ul.fromStruct(f[0]),ul.fromStruct(f[1])]);return[g[0],g[1]]}toTestString(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){u.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?(u.fatal("it is not initialized yet"),""):this.text.toString()}createRangeForTest(f,g){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(f,g)}}class tv{constructor(f,g){this.valueType=f,this.value=g}initialize(f,g){this.valueType=g.getValueType(),this.context=f,this.counter=g,this.value=g.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(f){if(!this.context||!this.counter){u.fatal("it is not initialized yet");return}const g=this.context.issueTimeTicket(),T=Rr.of(f,g);if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`);return this.counter.increase(T),this.context.push(ih.create(this.counter.getCreatedAt(),T,g)),this}}function hC(A,f,g){const{type:T}=A,R=g.issueTimeTicket();if(T===xi){h6(A);const{value:H}=A,K=Ot.create(Ze.of(R,0),T,H);f.append(K)}else{const{children:H=[]}=A;let{attributes:K}=A,oe;if(typeof K=="object"&&!Xp(K)){K=oo(K),oe=new $a;for(const[He,yt]of Object.entries(K))oe.set(He,yt,R)}const Ae=Ot.create(Ze.of(R,0),T,void 0,oe);f.append(Ae);for(const He of H)hC(He,Ae,g)}}function Woe(A,f){const{type:g}=f,T=A.issueTimeTicket();let R;if(f.type===xi){const{value:H}=f;R=Ot.create(Ze.of(T,0),g,H)}else if(f){const{children:H=[]}=f;let{attributes:K}=f,oe;if(typeof K=="object"&&!Xp(K)){K=oo(K),oe=new $a;for(const[Ae,He]of Object.entries(K))oe.set(Ae,He,T)}R=Ot.create(Ze.of(A.issueTimeTicket(),0),g,void 0,oe);for(const Ae of H)hC(Ae,R,A)}return R}function h6(A){if(!A.value.length)throw new Error("text node cannot have empty value");return!0}function m6(A){if(!A.length)return!0;if(A[0].type===xi)for(const g of A){const{type:T}=g;if(T!==xi)throw new Error("element node and text node cannot be passed together");h6(g)}else for(const g of A){const{type:T}=g;if(T===xi)throw new Error("element node and text node cannot be passed together")}return!0}class nv{constructor(f){this.initialRoot=f}initialize(f,g){this.context=f,this.tree=g}getID(){return this.tree.getID()}buildRoot(f){if(!this.initialRoot)return Ot.create(Ze.of(f.issueTimeTicket(),0),pa);const g=Ot.create(Ze.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const T of this.initialRoot.children)hC(T,g,f);return g}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(f,g){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!f.length)throw new Error("path should not be empty");const[T,R]=this.tree.pathToPosRange(f),H=this.context.issueTimeTicket(),K=g?oo(g):void 0;this.tree.style([T,R],K,H),this.context.push(oh.create(this.tree.getCreatedAt(),T,R,K?new Map(Object.entries(K)):new Map,H))}style(f,g,T){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const R=this.tree.findPos(f),H=this.tree.findPos(g),K=this.context.issueTimeTicket(),oe=T?oo(T):void 0;this.tree.style([R,H],oe,K),this.context.push(oh.create(this.tree.getCreatedAt(),R,H,oe?new Map(Object.entries(oe)):new Map,K))}editInternal(f,g,T,R=0){var H;if(T.length!==0&&T[0]&&(m6(T),T[0].type!==xi))for(const He of T){const{children:yt=[]}=He;m6(yt)}const K=this.context.getLastTimeTicket();let oe=new Array;if(((H=T[0])===null||H===void 0?void 0:H.type)===xi){let He="";for(const yt of T){const{value:Ft}=yt;He+=Ft}oe.push(Ot.create(Ze.of(this.context.issueTimeTicket(),0),xi,He))}else oe=T.map(He=>He&&Woe(this.context,He)).filter(He=>He);const[,Ae]=this.tree.edit([f,g],oe.length?oe.map(He=>He==null?void 0:He.deepcopy()):void 0,R,K,()=>this.context.issueTimeTicket());return this.context.push(Wi.create(this.tree.getCreatedAt(),f,g,oe.length?oe:void 0,R,Ae,K)),f.equals(g)||this.context.registerElementHasRemovedNodes(this.tree),!0}editByPath(f,g,T,R=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T?[T]:[],R)}editBulkByPath(f,g,T,R=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T,R)}edit(f,g,T,R=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T?[T]:[],R)}editBulk(f,g,T,R=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T,R)}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()}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(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(f)}pathToIndex(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(f)}pathRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[this.tree.pathToIndex(f[0]),this.tree.pathToIndex(f[1])],T=this.tree.indexRangeToPosRange(g);return[T[0].toStruct(),T[1].toStruct()]}indexRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(f)}posRangeToIndexRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToIndexRange(g,this.context.getLastTimeTicket())}posRangeToPathRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToPathRange(g,this.context.getLastTimeTicket())}}function g6(A,f){return p6(A,f)}function jc(A,f){if(f){if(f instanceof Rr)return f;if(f instanceof br)return p6(A,f);if(f instanceof Go)return zoe(A,f);if(f instanceof fi)return new ev(A,f);if(f instanceof za){const g=new tv(pi.IntegerCnt,0);return g.initialize(A,f),g}else if(f instanceof Sn){const g=new nv;return g.initialize(A,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function Of(A,f){const g=jc(A,f);return g instanceof Rr?g.getValue():g}function rv(A,f,g){let T;if(Rr.isSupport(f))T=Rr.of(f,g);else if(Array.isArray(f))T=Go.create(g,ti.buildArrayElements(A,f));else if(typeof f=="object")f instanceof ev?(T=fi.create(rh.create(),g),f.initialize(A,T)):f instanceof tv?(T=za.create(f.getValueType(),f.getValue(),g),f.initialize(A,T)):f instanceof nv?(T=Sn.create(f.buildRoot(A),g),f.initialize(A,T)):T=br.create(g,l0.buildObjectMembers(A,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const b6=50;class Qoe{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=b6&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=b6&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const Yoe="yorkie-devtools-panel",Goe="yorkie-devtools-sdk";var ks;(function(A){A.Detached="detached",A.Attached="attached",A.Removed="removed"})(ks||(ks={}));var Ln;(function(A){A.Snapshot="snapshot",A.LocalChange="local-change",A.RemoteChange="remote-change",A.Initialized="initialized",A.Watched="watched",A.Unwatched="unwatched",A.PresenceChanged="presence-changed"})(Ln||(Ln={}));class y6{constructor(f,g){this.opts=g||{},this.key=f,this.status=ks.Detached,this.root=s0.create(),this.changeID=aC,this.checkpoint=noe,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new Qoe,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)}}update(f,g){if(this.getStatus()===ks.Removed)throw new An(En.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const T=this.changeID.getActorID(),R=ah.create(this.changeID.next(),this.clone.root,this.clone.presences.get(T)||{},g);try{const H=g6(R,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Kp(R,this.clone.presences.get(T)))}catch(H){throw this.clone=void 0,u.error(H),H}finally{this.isUpdating=!1}if(R.hasChange()){u.isEnabled(s.Trivial)&&u.trivial(`trying to update a local change: ${this.toJSON()}`);const H=R.getChange(),{opInfos:K,reverseOps:oe}=H.execute(this.root,this.presences,_r.Local),Ae=R.getReversePresence();Ae&&oe.push({type:"presence",value:Ae}),this.localChanges.push(H),oe.length>0&&this.internalHistory.pushUndo(oe),K.length>0&&this.internalHistory.clearRedo(),this.changeID=H.getID(),K.length>0&&this.publish({type:Ln.LocalChange,value:{message:H.getMessage()||"",operations:K,actor:T}}),H.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:T,presence:this.getPresence(T)}}),u.isEnabled(s.Trivial)&&u.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(f,g,T,R){if(typeof f=="string"){if(typeof g!="function")throw new Error("Second argument must be a callback function");if(f==="presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||oe(Ae)},T,R)}if(f==="my-presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.type!==Ln.Initialized&&Ae.value.clientID!==this.changeID.getActorID()||oe(Ae)},T,R)}if(f==="others"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.value.clientID!==this.changeID.getActorID()&&oe(Ae)},T,R)}const H=f,K=g;return this.eventStream.subscribe(oe=>{if(oe.type===Ln.Initialized||oe.type===Ln.Watched||oe.type===Ln.Unwatched||oe.type===Ln.PresenceChanged)return;if(oe.type===Ln.Snapshot){H==="$"&&K(oe);return}const{message:Ae,operations:He,actor:yt}=oe.value,Ft=[];for(const ft of He)this.isSameElementOrChildOf(ft.path,H)&&Ft.push(ft);Ft.length&&K({type:oe.type,value:{message:Ae,operations:Ft,actor:yt}})},T,R)}if(typeof f=="function"){const H=f,K=g,oe=T;return this.eventStream.subscribe(Ae=>{Ae.type===Ln.Initialized||Ae.type===Ln.Watched||Ae.type===Ln.Unwatched||Ae.type===Ln.PresenceChanged||H(Ae)},K,oe)}throw new Error(`"${f}" is not a valid`)}publish(f){this.eventStreamObserver&&this.eventStreamObserver.next(f)}isSameElementOrChildOf(f,g){if(g===f)return!0;const T=f.split(".");return g.split(".").every((H,K)=>H===T[K])}applyChangePack(f){for(f.hasSnapshot()?this.applySnapshot(f.getCheckpoint().getServerSeq(),f.getSnapshot()):f.hasChanges()&&this.applyChanges(f.getChanges());this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>f.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(f.getCheckpoint()),this.garbageCollect(f.getMinSyncedTicket()),f.getIsRemoved()&&this.setStatus(ks.Removed),u.isEnabled(s.Trivial)&&u.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:ca(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return GO.create(this.key,g,!1,f)}setActor(f){for(const g of this.localChanges)g.setActor(f);this.changeID=this.changeID.setActor(f)}getKey(){return this.key}setStatus(f){this.status=f}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const f=ah.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return g6(f,this.clone.root.getObject())}getOpsForTest(){return this.root.opsForTest}garbageCollect(f){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(f),this.root.garbageCollect(f))}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(f,g){const{root:T,presences:R}=Kl.bytesToSnapshot(g);this.root=new s0(T),this.presences=R,this.changeID=this.changeID.syncLamport(f),this.clone=void 0,this.publish({type:Ln.Snapshot,value:g})}applyChanges(f){u.isEnabled(s.Debug)&&u.debug(`trying to apply ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`),u.isEnabled(s.Trivial)&&u.trivial(f.map(g=>`${g.getID().toTestString()} ${g.toTestString()}`).join(` -`)),this.ensureClone();for(const g of f){g.execute(this.clone.root,this.clone.presences,_r.Remote);let T;const R=g.getID().getActorID();if(g.hasPresenceChange()&&this.onlineClients.has(R)){const K=g.getPresenceChange();switch(K.type){case Ma.Put:T={type:this.presences.has(R)?Ln.PresenceChanged:Ln.Watched,value:{clientID:R,presence:K.presence}};break;case Ma.Clear:T={type:Ln.Unwatched,value:{clientID:R,presence:this.getPresence(R)}},this.removeOnlineClient(R);break}}const{opInfos:H}=g.execute(this.root,this.presences,_r.Remote);H.length>0&&this.publish({type:Ln.RemoteChange,value:{actor:R,message:g.getMessage()||"",operations:H}}),T&&this.publish(T),this.changeID=this.changeID.syncLamport(g.getID().getLamport())}u.isEnabled(s.Debug)&&u.debug(`after appling ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`)}getValueByPath(f){if(!f.startsWith("$"))throw new An(En.InvalidArgument,'path must start with "$"');const g=f.split(".");g.shift();let T=this.getRoot();for(const R of g)if(T=T[R],T===void 0)return;return T}setOnlineClients(f){this.onlineClients=f}addOnlineClient(f){this.onlineClients.add(f)}removeOnlineClient(f){this.onlineClients.delete(f)}hasPresence(f){return this.presences.has(f)}getMyPresence(){if(this.status!==ks.Attached)return{};const f=this.presences.get(this.changeID.getActorID());return ca(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?ca(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?ca(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:ca(this.presences.get(g))});return f}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const f=this.getChangeID().getActorID();return this.getPresences().filter(g=>g.clientID!==f).sort((g,T)=>g.clientID>T.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 f=this.internalHistory.popUndo();if(f===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const g=ah.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof jr)){new Kp(g,ca(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,_r.UndoRedo);const{opInfos:R,reverseOps:H}=T.execute(this.root,this.presences,_r.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushRedo(H),!T.hasPresenceChange()&&R.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();R.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:R,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const f=this.internalHistory.popRedo();if(f===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const g=ah.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof jr)){new Kp(g,ca(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,_r.UndoRedo);const{opInfos:R,reverseOps:H}=T.execute(this.root,this.presences,_r.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushUndo(H),!T.hasPresenceChange()&&R.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();R.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:R,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function qoe(A,f){return g=>async T=>(A&&T.header.set("x-api-key",A),f&&T.header.set("authorization",f),await g(T))}const O6=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13"}');function Zoe(){return A=>async f=>(f.header.set("x-yorkie-user-agent",O6.u2+"/"+O6.i8),await A(f))}var Gu;(function(A){A.PushPull="pushpull",A.PushOnly="pushonly"})(Gu||(Gu={}));var zc;(function(A){A.Deactivated="deactivated",A.Activated="activated"})(zc||(zc={}));var vf;(function(A){A.Connected="connected",A.Disconnected="disconnected"})(vf||(vf={}));var sh;(function(A){A.Synced="synced",A.SyncFailed="sync-failed"})(sh||(sh={}));var Va;(function(A){A.StatusChanged="status-changed",A.DocumentChanged="document-changed",A.StreamConnectionStatusChanged="stream-connection-status-changed",A.DocumentSynced="document-synced"})(Va||(Va={}));const iv={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class v6{constructor(f,g){g=g||iv,this.key=g.key?g.key:c(),this.status=zc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||iv.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||iv.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||iv.retrySyncLoopDelay,this.rpcClient=z(_e.V,Se({baseUrl:f,interceptors:[qoe(g.apiKey,g.token),Zoe()]})),this.eventStream=h(T=>{this.eventStreamObserver=T})}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(f=>{this.id=f.clientId,this.status=zc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(f=>{throw u.error(`[AC] c:"${this.getKey()}" err :`,f),f})}deactivate(){if(this.status===zc.Deactivated)return Promise.resolve();for(const[f]of this.attachmentMap)this.detachInternal(f);return this.rpcClient.deactivateClient({clientKey:this.key,clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status=zc.Deactivated,this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(f=>{throw u.error(`[DC] c:"${this.getKey()}" err :`,f),f})}attach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);if(f.getStatus()!==ks.Detached)throw new An(En.DocumentNotDetached,`${f.getKey()} is not detached`);f.setActor(this.id),f.update((H,K)=>K.set(g.initialPresence||{}));const R=(T=g.isRealtimeSync)!==null&&T!==void 0?T:!0;return this.rpcClient.attachDocument({clientKey:this.key,clientId:this.id,changePack:Kl.toChangePack(f.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(async H=>{const K=Kl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()===ks.Removed||(f.setStatus(ks.Attached),this.attachmentMap.set(f.getKey(),new joe(this.reconnectStreamDelay,f,H.documentId,R)),R&&await this.runWatchLoop(f.getKey()),u.info(`[AD] c:"${this.getKey()}" attaches d:"${f.getKey()}"`)),f}).catch(H=>{throw u.error(`[AD] c:"${this.getKey()}" err :`,H),H})}detach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const R=this.attachmentMap.get(f.getKey());if(!R)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return f.update((H,K)=>K.clear()),this.rpcClient.detachDocument({clientKey:this.key,clientId:this.id,documentId:R.docID,changePack:Kl.toChangePack(f.createChangePack()),removeIfNotAttached:(T=g.removeIfNotAttached)!==null&&T!==void 0?T:!1},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(H=>{const K=Kl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()!==ks.Removed&&f.setStatus(ks.Detached),this.detachInternal(f.getKey()),u.info(`[DD] c:"${this.getKey()}" detaches d:"${f.getKey()}"`),f}).catch(H=>{throw u.error(`[DD] c:"${this.getKey()}" err :`,H),H})}pause(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!1)}resume(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!0)}pauseRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Gu.PushOnly)}resumeRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Gu.PushPull),g.remoteChangeEventReceived=!0}async changeRealtimeSync(f,g){const T=this.attachmentMap.get(f.getKey());if(!T)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return T.changeRealtimeSync(g)?g?(T.remoteChangeEventReceived=!0,await this.runWatchLoop(f.getKey()),f):(this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:vf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),f):f}sync(f,g=Gu.PushPull){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const T=[];if(f){const R=this.attachmentMap.get(f.getKey());if(!R)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);T.push(this.syncInternal(R,g))}else this.attachmentMap.forEach(R=>{T.push(this.syncInternal(R,R.syncMode))});return Promise.all(T).catch(R=>{throw this.eventStreamObserver.next({type:Va.DocumentSynced,value:sh.SyncFailed}),R})}remove(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);f.setActor(this.id);const T=Kl.toChangePack(f.createChangePack());return T.isRemoved=!0,this.rpcClient.removeDocument({clientKey:this.key,clientId:this.id,documentId:g.docID,changePack:T},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(R=>{const H=Kl.fromChangePack(R.changePack);f.applyChangePack(H),this.detachInternal(f.getKey()),u.info(`[RD] c:"${this.getKey()}" removes d:"${f.getKey()}"`)}).catch(R=>{throw u.error(`[RD] c:"${this.getKey()}" err :`,R),R})}subscribe(f,g,T){return this.eventStream.subscribe(f,g,T)}getID(){return this.id}getKey(){return this.key}isActive(){return this.status===zc.Activated}getStatus(){return this.status}runSyncLoop(){const f=()=>{if(!this.isActive()){u.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const g=[];for(const[,T]of this.attachmentMap)T.needRealtimeSync()&&(T.remoteChangeEventReceived=!1,g.push(this.syncInternal(T,T.syncMode)));Promise.all(g).then(()=>setTimeout(f,this.syncLoopDuration)).catch(T=>{u.error(`[SL] c:"${this.getKey()}" sync failed:`,T),this.eventStreamObserver.next({type:Va.DocumentSynced,value:sh.SyncFailed}),setTimeout(f,this.retrySyncLoopDelay)})};u.debug(`[SL] c:"${this.getKey()}" run sync loop`),f()}async runWatchLoop(f){const g=this.attachmentMap.get(f);if(!g)throw new An(En.DocumentNotAttached,`${f} is not attached`);return g.runWatchLoop(T=>{if(!this.isActive())return Promise.reject(new An(En.ClientNotActive,`${this.key} is not active`));const R=new AbortController,H=this.rpcClient.watchDocument({clientKey:this.key,clientId:this.id,documentKey:f,documentId:g.docID},{headers:{"x-shard-key":`${this.apiKey}/${f}`},signal:R.signal});return this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:vf.Connected}),u.info(`[WD] c:"${this.getKey()}" watches d:"${f}"`),new Promise((K,oe)=>{(async()=>{try{for await(const He of H)this.handleWatchDocumentsResponse(g,He),He.body.case==="initialization"&&K([H,R])}catch(He){this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:vf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),T(),oe(He)}})()})})}handleWatchDocumentsResponse(f,g){const T=f.doc.getKey();if(g.body.case==="initialization"){const R=g.body.value.clientIds,H=new Set;for(const K of R)H.add(K);f.doc.setOnlineClients(H),f.doc.publish({type:Ln.Initialized,value:f.doc.getPresences()});return}else if(g.body.case==="event"){const R=g.body.value,H=R.type,K=R.publisher;switch(H){case pe.DocEventType.DOCUMENT_CHANGED:f.remoteChangeEventReceived=!0,this.eventStreamObserver.next({type:Va.DocumentChanged,value:[T]});break;case pe.DocEventType.DOCUMENT_WATCHED:f.doc.addOnlineClient(K),f.doc.hasPresence(K)&&f.doc.publish({type:Ln.Watched,value:{clientID:K,presence:f.doc.getPresence(K)}});break;case pe.DocEventType.DOCUMENT_UNWATCHED:{const oe=f.doc.getPresence(K);f.doc.removeOnlineClient(K),oe&&f.doc.publish({type:Ln.Unwatched,value:{clientID:K,presence:oe}});break}}}}detachInternal(f){const g=this.attachmentMap.get(f);g&&(g.cancelWatchStream(),u.debug(`[WD] c:"${this.getKey()}" unwatches`),this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:vf.Disconnected}),this.attachmentMap.delete(f))}syncInternal(f,g){const{doc:T,docID:R}=f,H=T.createChangePack();return this.rpcClient.pushPullChanges({clientKey:this.key,clientId:this.id,documentId:R,changePack:Kl.toChangePack(H),pushOnly:g===Gu.PushOnly},{headers:{"x-shard-key":`${this.apiKey}/${T.getKey()}`}}).then(K=>{const oe=Kl.fromChangePack(K.changePack);if(oe.hasChanges()&&g===Gu.PushOnly)return T;T.applyChangePack(oe),this.eventStreamObserver.next({type:Va.DocumentSynced,value:sh.Synced}),T.getStatus()===ks.Removed&&this.detachInternal(T.getKey());const Ae=T.getKey(),He=oe.getChangeSize();return u.info(`[PP] c:"${this.getKey()}" sync d:"${Ae}", push:${H.getChangeSize()} pull:${He} cp:${oe.getCheckpoint().toTestString()}`),T}).catch(K=>{throw u.error(`[PP] c:"${this.getKey()}" err :`,K),K})}}const Xoe={Client:v6,Document:y6,Primitive:Rr,Text:ev,Counter:tv,Tree:nv,IntType:pi.IntegerCnt,LongType:pi.LongCnt}})(),a})())})(jJ);var II=jJ.exports;class pLe{constructor(t,n){Ko(this,"doc");Ko(this,"client");this.doc=t,this.client=n}}const y3=qt.define({combine(e){return e[e.length-1]}}),Nj=Ul.define();class hLe{constructor(t){Ko(this,"view");Ko(this,"conf");Ko(this,"_doc");Ko(this,"_observer");Ko(this,"_unsubscribe");this.view=t,this.conf=t.state.facet(y3),this._observer=n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const o=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:o,annotations:[Nj.of(this.conf)]})}})},this._doc=this.conf.doc,this._unsubscribe=this._doc.subscribe("$.content",this._observer)}update(t){if(!t.docChanged||t.transactions.length>0&&t.transactions[0].annotation(Nj)===this.conf)return;let n=0;this._doc.update((r,i)=>{t.changes.iterChanges((o,a,s,l,u)=>{r.content||(r.content=new II.Text);const c=u.sliceString(0,u.length,` -`),d=r.content.edit(o+n,a+n,c);n+=c.length-(a-o),d&&i.set({selection:r.content.indexRangeToPosRange(d)})})})}destroy(){this._unsubscribe()}}const mLe=ei.fromClass(hLe);class gLe{constructor(t,n){this.left=t,this.right=n}}const uE=(e,t)=>new gLe(e,t),bLe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Uu=typeof document<"u"?document:{},yLe=e=>Uu.createElement(e),OLe=()=>Uu.createDocumentFragment(),vLe=e=>Uu.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const ELe=(e,t)=>(bLe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),SLe=e=>{const t=OLe();for(let n=0;n(zJ(e,SLe(t)),e),XA=(e,t=[],n=[])=>TLe(ELe(yLe(e),t),n),cE=vLe,zJ=(e,t)=>e.appendChild(t);Uu.ELEMENT_NODE;Uu.TEXT_NODE;Uu.CDATA_SECTION_NODE;Uu.COMMENT_NODE;Uu.DOCUMENT_NODE;Uu.DOCUMENT_TYPE_NODE;Uu.DOCUMENT_FRAGMENT_NODE;const wLe=Ht.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"}}),kLe=Ul.define();class xLe extends Fu{constructor(n,r){super();Ko(this,"color");Ko(this,"name");this.color=n,this.name=r}toDOM(){return XA("span",[uE("class","cm-ySelectionCaret"),uE("style",`background-color: ${this.color}; border-color: ${this.color}`)],[cE("⁠"),XA("div",[uE("class","cm-ySelectionCaretDot")]),cE("⁠"),XA("div",[uE("class","cm-ySelectionInfo")],[cE(this.name)]),cE("⁠")])}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 CLe{constructor(t){Ko(this,"conf");Ko(this,"decorations");Ko(this,"unsubscribe");this.conf=t.state.facet(y3),this.unsubscribe=this.conf.doc.subscribe("others",n=>{const r=[];["presence-changed","unwatched"].includes(n.type)&&(this.conf.doc.getPresences().forEach(i=>{if(i.clientID===this.conf.client.getID()||i.presence.selection==null)return;const o=this.conf.doc.getRoot().content.posRangeToIndexRange(i.presence.selection),a=i.presence.color,s=i.presence.name,l=Math.min(o[0],o[1]),u=Math.max(o[0],o[1]),c=t.state.doc.lineAt(l),d=t.state.doc.lineAt(u);if(c.number===d.number)r.push({from:l,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{r.push({from:l,to:c.from+c.length,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),r.push({from:d.from,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let p=c.number+1;p0?-1:1,block:!1,widget:new xLe(a,s)})})}),this.decorations=ln.set(r,!0),t.dispatch({annotations:[kLe.of([])]}))}),this.decorations=Kn.of([])}destroy(){this.unsubscribe()}update(t){this.conf.doc.update((n,r)=>{const o=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(o&&n.content){const a=n.content.indexRangeToPosRange([o.anchor,o.head]);r.set({selection:a})}})}}const ALe=ei.fromClass(CLe,{decorations:e=>e.decorations});function _Le(e,t){const n=new pLe(e,t),r=[y3.of(n),mLe];return t&&r.push(wLe,ALe),r}function dE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RLe=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},ILe=e=>{const t=window.document.createElement("button");return t.classList.add("codemirror-toolbar__item"),t.dataset.item=e.key,t.title=e.label,t.innerHTML=`${e.icon||""}`,t},DLe=e=>{const t=window.document.createElement("div");t.classList.add("codemirror-toolbar");const n=window.document.createDocumentFragment();return n.append(...e.items.map(r=>"type"in r?RLe(r):ILe(r))),t.appendChild(n),t};class NLe{handleClick(t){const n=t.target;if(n&&n.tagName==="BUTTON"){const r=n.dataset.item;if(r){const i=this.handlers[r];if(i){t.preventDefault(),t.stopPropagation(),i(this.view);return}}}this.view.focus()}destroy(){this.element.remove()}constructor(t,n){dE(this,"view",void 0),dE(this,"element",void 0),dE(this,"config",void 0),dE(this,"handlers",void 0),this.view=t,this.handlers={},this.config={...n,items:n.items.map((i,o)=>{var s;if("type"in i)return{...i};const a=i.key||i.command.displayName||((s=i.command)==null?void 0:s.name)||`cmd_${o}`;return this.handlers[a]=i.command,{...i,key:a}})};const r=this.element=DLe(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const PLe=e=>ei.define(t=>new NLe(t,e)),LLe=Ht.baseTheme({".codemirror-toolbar":{display:"flex",padding:"4px 5px",backgroundColor:"rgb(245, 245, 245)",borderBottom:"1px solid rgb(221, 221, 221)"},".codemirror-toolbar__icon":{display:"inline-block",height:"1em",width:"1em",overflow:"visible"},".codemirror-toolbar__icon svg":{overflow:"visible",boxSizing:"content-box",height:"1em",width:"1em",verticalAlign:"-.125em"},".codemirror-toolbar__item":{display:"inline-flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",outline:"none",cursor:"pointer",borderRadius:"2px",height:"20px",width:"20px",transition:"all .3s"},".codemirror-toolbar__item:hover":{color:"#1EA7FD",backgroundColor:"rgba(30,167,253,0.12)"},".codemirror-toolbar__item > *":{pointerEvents:"none"},".codemirror-toolbar__split":{display:"inline-block",width:"1px",height:"20px",margin:"0 6px",backgroundColor:"rgb(221, 221, 221)"},".codemirror-toolbar__space":{display:"inline-block",flex:1}}),MLe=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="**"&&r==="**")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"**"},{from:n.to,insert:"**"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},$Le=e=>{const t=e.state.selection.main;if(t.from>=1){const n=e.state.sliceDoc(t.from-1,t.from),r=e.state.sliceDoc(t.to,t.to+1);if(n==="*"&&r==="*"&&(t.from<2||e.state.sliceDoc(t.from-1,t.from)!=="*"||e.state.sliceDoc(t.to,t.to+1)!=="*"||t.from>=3&&e.state.sliceDoc(t.from-3,t.from)==="***"&&e.state.sliceDoc(t.to,t.to+3)==="***"))return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"*"},{from:n.to,insert:"*"}],range:tt.range(n.from+1,n.to+1)}))),e.focus(),!0},FLe=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="~~"&&r==="~~")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"~~"},{from:n.to,insert:"~~"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},BLe=e=>{const t=e.state.selection.main;if(t.from>=3){const n=e.state.sliceDoc(t.from-3,t.from),r=e.state.sliceDoc(t.to,t.to+4);if(n===""&&r==="")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:""},{from:n.to,insert:""}],range:tt.range(n.from+3,n.to+3)}))),e.focus(),!0},ULe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(e.state.changeByRange(r=>{const i=n.lineAt(r.from),a=n.slice(r.from,r.to).lines,s=[];let l=r.from,u=r.to-r.from;return new Array(a).fill(0).forEach((c,d)=>{const p=n.line(i.number+d);p.text.startsWith("> ")||(s.push({from:p.from,insert:"> "}),d===0?l=l+2:u+=2)}),{changes:s,range:tt.range(l,l+u)}})),e.focus(),!0},jLe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`[${a}]()`,l=i+(a.length?3+a.length:1);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},zLe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`![${a}]()`,l=i+(a.length?3+a.length:2);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},jg=e=>t=>{const n=t.state,r="#".repeat(e)+" ";return t.dispatch(n.changeByRange(i=>{const o=n.doc.lineAt(i.from),a=o.text.replace(/^((#+) )?/,r),s=a.length-o.length;return{changes:{from:o.from,to:o.to,insert:a},range:tt.range(i.anchor+s,i.head+s)}})),t.focus(),!0},VLe=e=>{if(e=e&&e.trimStart(),!e)return;if(e.startsWith("- "))return e.startsWith("- [ ] ")||e.startsWith("- [x] ")?["todo"]:["ul"];const t=e.match(/^(\d+)\. /);if(t)return["ol",Number.parseInt(t[1],10)]},O3=e=>t=>{const{state:n}=t,{doc:r}=n;let i=1;return t.dispatch(t.state.changeByRange(o=>{const a=r.lineAt(o.from),l=r.slice(o.from,o.to).lines,u=[];let c=o.from,d=o.to-o.from;return new Array(l).fill(0).forEach((p,h)=>{const m=r.line(a.number+h),b=VLe(m.text);if(b&&b[0]===e){b[0]==="ol"&&b[1]&&(i=b[1]);return}const O=m.text.replace(RegExp("^((? *)(-( \\[[x ]])?|\\d+\\.) )?"),(...v)=>{const S=v[v.length-1],{space:k=""}=S;let C="- ";return e==="ol"?(C=`${i}. `,i++):e==="todo"&&(C="- [ ] "),k+C}),y=O.length-m.length;u.push({from:m.from,to:m.to,insert:O}),h===0?c=c+y:d=d+y}),{changes:u,range:tt.range(c,c+d)}})),t.focus(),!0},HLe=jg(1),WLe=jg(2),QLe=jg(3),YLe=jg(4),GLe=jg(5),qLe=jg(6),ZLe=O3("ul"),XLe=O3("ol"),KLe=O3("todo"),JLe={label:"Bold",icon:'',command:MLe},eMe={label:"Italic",icon:'',command:$Le},tMe={label:"Strike",icon:'',command:FLe},nMe={label:"Underline",icon:'',command:BLe},rMe={label:"H1",icon:'',command:HLe},iMe={label:"H2",icon:'',command:WLe},oMe={label:"H3",icon:'',command:QLe},aMe={label:"H4",icon:'',command:YLe},sMe={label:"H5",icon:'',command:GLe},lMe={label:"H6",icon:'',command:qLe},uMe={label:"Block Quote",icon:'',command:ULe},cMe={label:"Unordered List",icon:'',command:ZLe},dMe={label:"Ordered List",icon:'',command:XLe},fMe={label:"Todo List",icon:'',command:KLe},pMe={label:"Link",icon:'',command:jLe},hMe={label:"Image",icon:'',command:zLe},KA={type:"split"},mMe={type:"space"},gMe={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},bMe=[JLe,eMe,tMe,nMe,KA,rMe,iMe,oMe,aMe,sMe,lMe,KA,uMe,cMe,dMe,fMe,KA,pMe,hMe,mMe,gMe],yMe=e=>[PLe(e),LLe];var VJ=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),(n.background||n.foreground)&&(i["&"]=o),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 a={};n.gutterActiveForeground&&(a.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},a.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=a,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 s=Ht.theme(i,{dark:t==="dark"}),l=gO.define(r),u=[s,EX(l)];return u},OMe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function vMe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return VJ({theme:t,settings:L({},OMe,n),styles:[{tag:[he.comment,he.quote],color:"#707F8D"},{tag:[he.typeName,he.typeOperator],color:"#aa0d91"},{tag:[he.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#D23423"},{tag:[he.name],color:"#032f62"},{tag:[he.typeName],color:"#522BB2"},{tag:[he.variableName],color:"#23575C"},{tag:[he.definition(he.variableName)],color:"#327A9E"},{tag:[he.regexp,he.link],color:"#0e0eff"},...r]})}var EMe=vMe(),SMe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},TMe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return VJ({theme:t,settings:L({},SMe,n),styles:[{tag:[he.comment,he.quote],color:"#7F8C98"},{tag:[he.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#FF8170"},{tag:[he.typeName],color:"#DABAFF"},{tag:[he.definition(he.variableName)],color:"#6BDFFF"},{tag:[he.name],color:"#6BAA9F"},{tag:[he.variableName],color:"#ACF2E4"},{tag:[he.regexp,he.link],color:"#FF8170"},...r]})},wMe=TMe();function v3(){const e=Ig("(prefers-color-scheme: dark)"),t=Bl(zG);return I.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function Pj(){const e=v3(),[t,n]=I.useState(),r=Bl(Zk),i=I.useCallback(o=>{o&&n(o)},[]);return I.useEffect(()=>{var s;let o;if(!t||!r.doc||!r.client)return;const a=Zn.create({doc:((s=r.doc.getRoot().content)==null?void 0:s.toString())??"",extensions:[gNe,cLe(),_Le(r.doc,r.client),yMe({items:bMe}),e=="light"?EMe:wMe,Ht.theme({"&":{width:"100%"}}),Ht.lineWrapping,Lg.of([MIe])]});return o=new Ht({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),D.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}function l1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function E3(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const kMe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xMe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,CMe={};function Lj(e,t){return((t||CMe).jsx?xMe:kMe).test(e)}const AMe=/[ \t\n\f\r]/g;function HJ(e){return typeof e=="object"?e.type==="text"?Mj(e.value):!1:Mj(e)}function Mj(e){return e.replace(AMe,"")===""}class vO{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}vO.prototype.property={};vO.prototype.normal={};vO.prototype.space=null;function WJ(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&NMe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Fj,MMe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Fj.test(o)){let a=o.replace(PMe,LMe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=S3}return new i(r,t)}function LMe(e){return"-"+e.toLowerCase()}function MMe(e){return e.charAt(1).toUpperCase()}const $Me={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"},jp=WJ([GJ,YJ,XJ,KJ,IMe],"html"),ju=WJ([GJ,YJ,XJ,KJ,DMe],"svg");function u1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function T3(e){return e.join(" ").trim()}var JJ={},Bj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,FMe=/\n/g,BMe=/^\s*/,UMe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,jMe=/^:\s*/,zMe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,VMe=/^[;\s]*/,HMe=/^\s+|\s+$/g,WMe=` -`,Uj="/",jj="*",Ff="",QMe="comment",YMe="declaration",GMe=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(m){var b=m.match(FMe);b&&(n+=b.length);var O=m.lastIndexOf(WMe);r=~O?m.length-O:r+m.length}function o(){var m={line:n,column:r};return function(b){return b.position=new a(m),u(),b}}function a(m){this.start=m,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var O=b[0];return i(O),e=e.slice(O.length),b}}function u(){l(BMe)}function c(m){var b;for(m=m||[];b=d();)b!==!1&&m.push(b);return m}function d(){var m=o();if(!(Uj!=e.charAt(0)||jj!=e.charAt(1))){for(var b=2;Ff!=e.charAt(b)&&(jj!=e.charAt(b)||Uj!=e.charAt(b+1));)++b;if(b+=2,Ff===e.charAt(b-1))return s("End of comment missing");var O=e.slice(2,b-2);return r+=2,i(O),e=e.slice(b),r+=2,m({type:QMe,comment:O})}}function p(){var m=o(),b=l(UMe);if(b){if(d(),!l(jMe))return s("property missing ':'");var O=l(zMe),y=m({type:YMe,property:zj(b[0].replace(Bj,Ff)),value:O?zj(O[0].replace(Bj,Ff)):Ff});return l(VMe),y}}function h(){var m=[];c(m);for(var b;b=p();)b!==!1&&(m.push(b),c(m));return m}return u(),h()};function zj(e){return e?e.replace(HMe,Ff):Ff}var qMe=RS&&RS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(JJ,"__esModule",{value:!0});var ZMe=qMe(GMe);function XMe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,ZMe.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}var Vj=JJ.default=XMe;const KMe=Vj.default||Vj,dx=eee("end"),zu=eee("start");function eee(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 JMe(e){const t=zu(e),n=dx(e);if(t&&n)return{start:t,end:n}}function Vb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Hj(e.position):"start"in e||"end"in e?Hj(e):"line"in e||"column"in e?NI(e):""}function NI(e){return Wj(e&&e.line)+":"+Wj(e&&e.column)}function Hj(e){return NI(e&&e.start)+"-"+NI(e&&e.end)}function Wj(e){return e&&typeof e=="number"?e:1}class Ho extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Vb(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ho.prototype.file="";Ho.prototype.name="";Ho.prototype.reason="";Ho.prototype.message="";Ho.prototype.stack="";Ho.prototype.column=void 0;Ho.prototype.line=void 0;Ho.prototype.ancestors=void 0;Ho.prototype.cause=void 0;Ho.prototype.fatal=void 0;Ho.prototype.place=void 0;Ho.prototype.ruleId=void 0;Ho.prototype.source=void 0;const w3={}.hasOwnProperty,e4e=new Map,t4e=/[A-Z]/g,n4e=/-([a-z])/g,r4e=new Set(["table","tbody","thead","tfoot","tr"]),i4e=new Set(["td","th"]),tee="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function o4e(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=p4e(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=f4e(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"?ju:jp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=nee(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function nee(e,t,n){if(t.type==="element")return a4e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return s4e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return u4e(e,t,n);if(t.type==="mdxjsEsm")return l4e(e,t);if(t.type==="root")return c4e(e,t,n);if(t.type==="text")return d4e(e,t)}function a4e(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ju,e.schema=i),e.ancestors.push(t);const o=iee(e,t.tagName,!1),a=h4e(e,t);let s=x3(e,t);return r4e.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!HJ(l):!0})),ree(e,a,o,t),k3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function s4e(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)}c1(e,t.position)}function l4e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);c1(e,t.position)}function u4e(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ju,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:iee(e,t.name,!0),a=m4e(e,t),s=x3(e,t);return ree(e,a,o,t),k3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function c4e(e,t,n){const r={};return k3(r,x3(e,t)),e.create(t,e.Fragment,r,n)}function d4e(e,t){return t.value}function ree(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function k3(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function f4e(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function p4e(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=zu(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function h4e(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&w3.call(t.properties,i)){const o=g4e(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&i4e.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function m4e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else c1(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else c1(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function x3(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:e4e;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(fs(e,e.length,0,t),e):t}const Gj={}.hasOwnProperty;function aee(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 Il(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const x4e=pf(new RegExp("\\p{P}","u")),ia=pf(/[A-Za-z]/),Lo=pf(/[\dA-Za-z]/),C4e=pf(/[#-'*+\--9=?A-Z^-~]/);function tw(e){return e!==null&&(e<32||e===127)}const PI=pf(/\d/),A4e=pf(/[\dA-Fa-f]/),lee=pf(/[!-/:-@[-`{-~]/);function gn(e){return e!==null&&e<-2}function vr(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}function fx(e){return lee(e)||x4e(e)}const Ip=pf(/\s/);function pf(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Hg(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Jn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Un(l)?(e.enter(n),s(l)):t(l)}function s(l){return Un(l)&&o++a))return;const E=t.events.length;let $=E,P,_;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(P){_=t.events[$][1].end;break}P=!0}for(y(r),w=E;wS;){const C=n[k];t.containerState=C[1],C[0].exit.call(t,e)}n.length=S}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function N4e(e,t,n){return Jn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nw(e){if(e===null||vr(e)||Ip(e))return 1;if(fx(e))return 2}function px(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Zj(d,-l),Zj(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={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({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=$s(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=$s(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=$s(u,px(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=$s(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=$s(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,fs(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Un(w)?Jn(e,v,"linePrefix",o+1)(w):v(w)}function v(w){return w===null||gn(w)?e.check(Xj,b,k)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||gn(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),S)}function k(w){return e.exit("codeFenced"),t(w)}function C(w,E,$){let P=0;return _;function _(W){return w.enter("lineEnding"),w.consume(W),w.exit("lineEnding"),B}function B(W){return w.enter("codeFencedFence"),Un(W)?Jn(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):U(W)}function U(W){return W===s?(w.enter("codeFencedFenceSequence"),V(W)):$(W)}function V(W){return W===s?(P++,w.consume(W),V):P>=a?(w.exit("codeFencedFenceSequence"),Un(W)?Jn(w,z,"whitespace")(W):z(W)):$(W)}function z(W){return W===null||gn(W)?(w.exit("codeFencedFence"),E(W)):$(W)}}}function W4e(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const t2={name:"codeIndented",tokenize:Y4e},Q4e={tokenize:G4e,partial:!0};function Y4e(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Jn(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):gn(u)?e.attempt(Q4e,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||gn(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function G4e(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Jn(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):gn(a)?i(a):n(a)}}const q4e={name:"codeText",tokenize:K4e,resolve:Z4e,previous:X4e};function Z4e(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(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function pee(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||tw(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||gn(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function b(y){return!c&&(y===null||y===41||vr(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):gn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||gn(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Un(h)),h===92?p:d)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function mee(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===a?(e.exit(o),l(a)):p===null?n(p):gn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Jn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||gn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===a||p===92?(e.consume(p),c):c(p)}}function Hb(e,t){let n;return r;function r(i){return gn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Un(i)?Jn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const o5e={name:"definition",tokenize:s5e},a5e={tokenize:l5e,partial:!0};function s5e(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return hee.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Il(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return vr(h)?Hb(e,u)(h):u(h)}function u(h){return pee(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(a5e,d,d)(h)}function d(h){return Un(h)?Jn(e,p,"whitespace")(h):p(h)}function p(h){return h===null||gn(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function l5e(e,t,n){return r;function r(s){return vr(s)?Hb(e,i)(s):n(s)}function i(s){return mee(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Un(s)?Jn(e,a,"whitespace")(s):a(s)}function a(s){return s===null||gn(s)?t(s):n(s)}}const u5e={name:"hardBreakEscape",tokenize:c5e};function c5e(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return gn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const d5e={name:"headingAtx",tokenize:p5e,resolve:f5e};function f5e(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},fs(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function p5e(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||vr(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||gn(c)?(e.exit("atxHeading"),t(c)):Un(c)?Jn(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||vr(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const h5e=["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"],Jj=["pre","script","style","textarea"],m5e={name:"htmlFlow",tokenize:O5e,resolveTo:y5e,concrete:!0},g5e={tokenize:E5e,partial:!0},b5e={tokenize:v5e,partial:!0};function y5e(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 O5e(e,t,n){const r=this;let i,o,a,s,l;return u;function u(G){return c(G)}function c(G){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(G),d}function d(G){return G===33?(e.consume(G),p):G===47?(e.consume(G),o=!0,b):G===63?(e.consume(G),i=3,r.interrupt?t:j):ia(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function p(G){return G===45?(e.consume(G),i=2,h):G===91?(e.consume(G),i=5,s=0,m):ia(G)?(e.consume(G),i=4,r.interrupt?t:j):n(G)}function h(G){return G===45?(e.consume(G),r.interrupt?t:j):n(G)}function m(G){const ce="CDATA[";return G===ce.charCodeAt(s++)?(e.consume(G),s===ce.length?r.interrupt?t:U:m):n(G)}function b(G){return ia(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function O(G){if(G===null||G===47||G===62||vr(G)){const ce=G===47,ge=a.toLowerCase();return!ce&&!o&&Jj.includes(ge)?(i=1,r.interrupt?t(G):U(G)):h5e.includes(a.toLowerCase())?(i=6,ce?(e.consume(G),y):r.interrupt?t(G):U(G)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(G):o?v(G):S(G))}return G===45||Lo(G)?(e.consume(G),a+=String.fromCharCode(G),O):n(G)}function y(G){return G===62?(e.consume(G),r.interrupt?t:U):n(G)}function v(G){return Un(G)?(e.consume(G),v):_(G)}function S(G){return G===47?(e.consume(G),_):G===58||G===95||ia(G)?(e.consume(G),k):Un(G)?(e.consume(G),S):_(G)}function k(G){return G===45||G===46||G===58||G===95||Lo(G)?(e.consume(G),k):C(G)}function C(G){return G===61?(e.consume(G),w):Un(G)?(e.consume(G),C):S(G)}function w(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),l=G,E):Un(G)?(e.consume(G),w):$(G)}function E(G){return G===l?(e.consume(G),l=null,P):G===null||gn(G)?n(G):(e.consume(G),E)}function $(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||vr(G)?C(G):(e.consume(G),$)}function P(G){return G===47||G===62||Un(G)?S(G):n(G)}function _(G){return G===62?(e.consume(G),B):n(G)}function B(G){return G===null||gn(G)?U(G):Un(G)?(e.consume(G),B):n(G)}function U(G){return G===45&&i===2?(e.consume(G),X):G===60&&i===1?(e.consume(G),q):G===62&&i===4?(e.consume(G),se):G===63&&i===3?(e.consume(G),j):G===93&&i===5?(e.consume(G),Z):gn(G)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(g5e,ve,V)(G)):G===null||gn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(b5e,z,ve)(G)}function z(G){return e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),W}function W(G){return G===null||gn(G)?V(G):(e.enter("htmlFlowData"),U(G))}function X(G){return G===45?(e.consume(G),j):U(G)}function q(G){return G===47?(e.consume(G),a="",Y):U(G)}function Y(G){if(G===62){const ce=a.toLowerCase();return Jj.includes(ce)?(e.consume(G),se):U(G)}return ia(G)&&a.length<8?(e.consume(G),a+=String.fromCharCode(G),Y):U(G)}function Z(G){return G===93?(e.consume(G),j):U(G)}function j(G){return G===62?(e.consume(G),se):G===45&&i===2?(e.consume(G),j):U(G)}function se(G){return G===null||gn(G)?(e.exit("htmlFlowData"),ve(G)):(e.consume(G),se)}function ve(G){return e.exit("htmlFlow"),t(G)}}function v5e(e,t,n){const r=this;return i;function i(a){return gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function E5e(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(EO,t,n)}}const S5e={name:"htmlText",tokenize:T5e};function T5e(e,t,n){const r=this;let i,o,a;return s;function s(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),C):j===63?(e.consume(j),S):ia(j)?(e.consume(j),$):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),o=0,m):ia(j)?(e.consume(j),v):n(j)}function c(j){return j===45?(e.consume(j),h):n(j)}function d(j){return j===null?n(j):j===45?(e.consume(j),p):gn(j)?(a=d,q(j)):(e.consume(j),d)}function p(j){return j===45?(e.consume(j),h):d(j)}function h(j){return j===62?X(j):j===45?p(j):d(j)}function m(j){const se="CDATA[";return j===se.charCodeAt(o++)?(e.consume(j),o===se.length?b:m):n(j)}function b(j){return j===null?n(j):j===93?(e.consume(j),O):gn(j)?(a=b,q(j)):(e.consume(j),b)}function O(j){return j===93?(e.consume(j),y):b(j)}function y(j){return j===62?X(j):j===93?(e.consume(j),y):b(j)}function v(j){return j===null||j===62?X(j):gn(j)?(a=v,q(j)):(e.consume(j),v)}function S(j){return j===null?n(j):j===63?(e.consume(j),k):gn(j)?(a=S,q(j)):(e.consume(j),S)}function k(j){return j===62?X(j):S(j)}function C(j){return ia(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Lo(j)?(e.consume(j),w):E(j)}function E(j){return gn(j)?(a=E,q(j)):Un(j)?(e.consume(j),E):X(j)}function $(j){return j===45||Lo(j)?(e.consume(j),$):j===47||j===62||vr(j)?P(j):n(j)}function P(j){return j===47?(e.consume(j),X):j===58||j===95||ia(j)?(e.consume(j),_):gn(j)?(a=P,q(j)):Un(j)?(e.consume(j),P):X(j)}function _(j){return j===45||j===46||j===58||j===95||Lo(j)?(e.consume(j),_):B(j)}function B(j){return j===61?(e.consume(j),U):gn(j)?(a=B,q(j)):Un(j)?(e.consume(j),B):P(j)}function U(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,V):gn(j)?(a=U,q(j)):Un(j)?(e.consume(j),U):(e.consume(j),z)}function V(j){return j===i?(e.consume(j),i=void 0,W):j===null?n(j):gn(j)?(a=V,q(j)):(e.consume(j),V)}function z(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||vr(j)?P(j):(e.consume(j),z)}function W(j){return j===47||j===62||vr(j)?P(j):n(j)}function X(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function q(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),Y}function Y(j){return Un(j)?Jn(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Z(j)}function Z(j){return e.enter("htmlTextData"),a(j)}}const A3={name:"labelEnd",tokenize:_5e,resolveTo:A5e,resolveAll:C5e},w5e={tokenize:R5e},k5e={tokenize:I5e},x5e={tokenize:D5e};function C5e(e){let t=-1;for(;++t=3&&(u===null||gn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Un(u)?Jn(e,s,"whitespace")(u):s(u))}}const ga={name:"list",tokenize:j5e,continuation:{tokenize:z5e},exit:H5e},B5e={tokenize:W5e,partial:!0},U5e={tokenize:V5e,partial:!0};function j5e(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:PI(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(dS,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return PI(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(EO,r.interrupt?n:c,e.attempt(B5e,p,d))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function d(h){return Un(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function z5e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(EO,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Jn(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Un(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(U5e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Jn(e,e.attempt(ga,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function V5e(e,t,n){const r=this;return Jn(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function H5e(e){e.exit(this.containerState.type)}function W5e(e,t,n){const r=this;return Jn(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Un(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const ez={name:"setextUnderline",tokenize:Y5e,resolveTo:Q5e};function Q5e(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function Y5e(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Un(u)?Jn(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||gn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const G5e={tokenize:q5e};function q5e(e){const t=this,n=e.attempt(EO,r,e.attempt(this.parser.constructs.flowInitial,i,Jn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(e5e,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Z5e={resolveAll:bee()},X5e=gee("string"),K5e=gee("text");function gee(e){return{tokenize:t,resolveAll:bee(e==="text"?J5e:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function n$e(e,t){let n=-1;const r=[];let i;for(;++n>>=0,(R=0<=A&&A<256)&&(T=Ct[A],T)?T:(g=we(A,0,!0),R&&(Ct[A]=g),g)):(A|=0,(R=-128<=A&&A<128)&&(T=It[A],T)?T:(g=we(A,A<0?-1:0,!1),R&&(It[A]=g),g))}at.fromInt=Zt;function Ie(A,f){if(isNaN(A))return f?tn:Nt;if(f){if(A<0)return tn;if(A>=Ue)return Qn}else{if(A<=-Ce)return Yn;if(A+1>=Ce)return bn}return A<0?Ie(-A,f).neg():we(A%nr|0,A/nr|0,f)}at.fromNumber=Ie;function we(A,f,g){return new at(A,f,g)}at.fromBits=we;var Qe=Math.pow;function ot(A,f,g){if(A.length===0)throw Error("empty string");if(typeof f=="number"?(g=f,f=!1):f=!!f,A==="NaN"||A==="Infinity"||A==="+Infinity"||A==="-Infinity")return f?tn:Nt;if(g=g||10,g<2||360)throw Error("interior hyphen");if(T===0)return ot(A.substring(1),f,g).neg();for(var R=Ie(Qe(g,8)),H=Nt,K=0;K>>0:this.low},ht.toNumber=function(){return this.unsigned?(this.high>>>0)*nr+(this.low>>>0):this.high*nr+(this.low>>>0)},ht.toString=function(f){if(f=f||10,f<2||36>>0,yt=He.toString(f);if(K=Ae,K.isZero())return yt+oe;for(;yt.length<6;)yt="0"+yt;oe=""+yt+oe}},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(Yn)?64:this.neg().getNumBitsAbs();for(var f=this.high!=0?this.high:this.low,g=31;g>0&&!(f&1<=0},ht.isOdd=function(){return(this.low&1)===1},ht.isEven=function(){return(this.low&1)===0},ht.equals=function(f){return Mt(f)||(f=rn(f)),this.unsigned!==f.unsigned&&this.high>>>31===1&&f.high>>>31===1?!1:this.high===f.high&&this.low===f.low},ht.eq=ht.equals,ht.notEquals=function(f){return!this.eq(f)},ht.neq=ht.notEquals,ht.ne=ht.notEquals,ht.lessThan=function(f){return this.comp(f)<0},ht.lt=ht.lessThan,ht.lessThanOrEqual=function(f){return this.comp(f)<=0},ht.lte=ht.lessThanOrEqual,ht.le=ht.lessThanOrEqual,ht.greaterThan=function(f){return this.comp(f)>0},ht.gt=ht.greaterThan,ht.greaterThanOrEqual=function(f){return this.comp(f)>=0},ht.gte=ht.greaterThanOrEqual,ht.ge=ht.greaterThanOrEqual,ht.compare=function(f){if(Mt(f)||(f=rn(f)),this.eq(f))return 0;var g=this.isNegative(),T=f.isNegative();return g&&!T?-1:!g&&T?1:this.unsigned?f.high>>>0>this.high>>>0||f.high===this.high&&f.low>>>0>this.low>>>0?-1:1:this.sub(f).isNegative()?-1:1},ht.comp=ht.compare,ht.negate=function(){return!this.unsigned&&this.eq(Yn)?Yn:this.not().add(Mn)},ht.neg=ht.negate,ht.add=function(f){Mt(f)||(f=rn(f));var g=this.high>>>16,T=this.high&65535,R=this.low>>>16,H=this.low&65535,K=f.high>>>16,oe=f.high&65535,Ae=f.low>>>16,He=f.low&65535,yt=0,Ft=0,ft=0,sn=0;return sn+=H+He,ft+=sn>>>16,sn&=65535,ft+=R+Ae,Ft+=ft>>>16,ft&=65535,Ft+=T+oe,yt+=Ft>>>16,Ft&=65535,yt+=g+K,yt&=65535,we(ft<<16|sn,yt<<16|Ft,this.unsigned)},ht.subtract=function(f){return Mt(f)||(f=rn(f)),this.add(f.neg())},ht.sub=ht.subtract,ht.multiply=function(f){if(this.isZero())return this;if(Mt(f)||(f=rn(f)),lt){var g=lt.mul(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(f.isZero())return this.unsigned?tn:Nt;if(this.eq(Yn))return f.isOdd()?Yn:Nt;if(f.eq(Yn))return this.isOdd()?Yn:Nt;if(this.isNegative())return f.isNegative()?this.neg().mul(f.neg()):this.neg().mul(f).neg();if(f.isNegative())return this.mul(f.neg()).neg();if(this.lt(gt)&&f.lt(gt))return Ie(this.toNumber()*f.toNumber(),this.unsigned);var T=this.high>>>16,R=this.high&65535,H=this.low>>>16,K=this.low&65535,oe=f.high>>>16,Ae=f.high&65535,He=f.low>>>16,yt=f.low&65535,Ft=0,ft=0,sn=0,In=0;return In+=K*yt,sn+=In>>>16,In&=65535,sn+=H*yt,ft+=sn>>>16,sn&=65535,sn+=K*He,ft+=sn>>>16,sn&=65535,ft+=R*yt,Ft+=ft>>>16,ft&=65535,ft+=H*He,Ft+=ft>>>16,ft&=65535,ft+=K*Ae,Ft+=ft>>>16,ft&=65535,Ft+=T*yt+R*He+H*Ae+K*oe,Ft&=65535,we(sn<<16|In,Ft<<16|ft,this.unsigned)},ht.mul=ht.multiply,ht.divide=function(f){if(Mt(f)||(f=rn(f)),f.isZero())throw Error("division by zero");if(lt){if(!this.unsigned&&this.high===-2147483648&&f.low===-1&&f.high===-1)return this;var g=(this.unsigned?lt.div_u:lt.div_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?tn:Nt;var T,R,H;if(this.unsigned){if(f.unsigned||(f=f.toUnsigned()),f.gt(this))return tn;if(f.gt(this.shru(1)))return Nn;H=tn}else{if(this.eq(Yn)){if(f.eq(Mn)||f.eq(Kt))return Yn;if(f.eq(Yn))return Mn;var K=this.shr(1);return T=K.div(f).shl(1),T.eq(Nt)?f.isNegative()?Mn:Kt:(R=this.sub(f.mul(T)),H=T.add(R.div(f)),H)}else if(f.eq(Yn))return this.unsigned?tn:Nt;if(this.isNegative())return f.isNegative()?this.neg().div(f.neg()):this.neg().div(f).neg();if(f.isNegative())return this.div(f.neg()).neg();H=Nt}for(R=this;R.gte(f);){T=Math.max(1,Math.floor(R.toNumber()/f.toNumber()));for(var oe=Math.ceil(Math.log(T)/Math.LN2),Ae=oe<=48?1:Qe(2,oe-48),He=Ie(T),yt=He.mul(f);yt.isNegative()||yt.gt(R);)T-=Ae,He=Ie(T,this.unsigned),yt=He.mul(f);He.isZero()&&(He=Mn),H=H.add(He),R=R.sub(yt)}return H},ht.div=ht.divide,ht.modulo=function(f){if(Mt(f)||(f=rn(f)),lt){var g=(this.unsigned?lt.rem_u:lt.rem_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}return this.sub(this.div(f).mul(f))},ht.mod=ht.modulo,ht.rem=ht.modulo,ht.not=function(){return we(~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?$t(this.low):$t(this.high)+32},ht.ctz=ht.countTrailingZeros,ht.and=function(f){return Mt(f)||(f=rn(f)),we(this.low&f.low,this.high&f.high,this.unsigned)},ht.or=function(f){return Mt(f)||(f=rn(f)),we(this.low|f.low,this.high|f.high,this.unsigned)},ht.xor=function(f){return Mt(f)||(f=rn(f)),we(this.low^f.low,this.high^f.high,this.unsigned)},ht.shiftLeft=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low<>>32-f,this.unsigned):we(0,this.low<>>f|this.high<<32-f,this.high>>f,this.unsigned):we(this.high>>f-32,this.high>=0?0:-1,this.unsigned)},ht.shr=ht.shiftRight,ht.shiftRightUnsigned=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low>>>f|this.high<<32-f,this.high>>>f,this.unsigned):f===32?we(this.high,0,this.unsigned):we(this.high>>>f-32,0,this.unsigned)},ht.shru=ht.shiftRightUnsigned,ht.shr_u=ht.shiftRightUnsigned,ht.rotateLeft=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.low<>>g,this.high<>>g,this.unsigned)):(f-=32,g=32-f,we(this.high<>>g,this.low<>>g,this.unsigned))},ht.rotl=ht.rotateLeft,ht.rotateRight=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.high<>>f,this.low<>>f,this.unsigned)):(f-=32,g=32-f,we(this.low<>>f,this.high<>>f,this.unsigned))},ht.rotr=ht.rotateRight,ht.toSigned=function(){return this.unsigned?we(this.low,this.high,!1):this},ht.toUnsigned=function(){return this.unsigned?this:we(this.low,this.high,!0)},ht.toBytes=function(f){return f?this.toBytesLE():this.toBytesBE()},ht.toBytesLE=function(){var f=this.high,g=this.low;return[g&255,g>>>8&255,g>>>16&255,g>>>24,f&255,f>>>8&255,f>>>16&255,f>>>24]},ht.toBytesBE=function(){var f=this.high,g=this.low;return[f>>>24,f>>>16&255,f>>>8&255,f&255,g>>>24,g>>>16&255,g>>>8&255,g&255]},at.fromBytes=function(f,g,T){return T?at.fromBytesLE(f,g):at.fromBytesBE(f,g)},at.fromBytesLE=function(f,g){return new at(f[0]|f[1]<<8|f[2]<<16|f[3]<<24,f[4]|f[5]<<8|f[6]<<16|f[7]<<24,g)},at.fromBytesBE=function(f,g){return new at(f[4]<<24|f[5]<<16|f[6]<<8|f[7],f[0]<<24|f[1]<<16|f[2]<<8|f[3],g)};const Gr=at;var En;(function(A){A.Ok="ok",A.ClientNotActive="client-not-active",A.Unimplemented="unimplemented",A.Unsupported="unsupported",A.DocumentNotAttached="document-not-attached",A.DocumentNotDetached="document-not-detached",A.DocumentRemoved="document-removed",A.InvalidObjectKey="invalid-object-key",A.InvalidArgument="invalid-argument"})(En||(En={}));class An extends Error{constructor(f,g){super(g),this.code=f,this.message=g,this.name="YorkieError",this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function ca(A){if(A instanceof Map){const f=Array.from(A);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(A))}const Xp=A=>A?Object.entries(A).length===0:!0,oo=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.stringify(T);return f},di=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.parse(T);return f};var Ma;(function(A){A.Put="put",A.Clear="clear"})(Ma||(Ma={}));class Kp{constructor(f,g){this.context=f,this.presence=g}set(f,g){for(const T of Object.keys(f))this.presence[T]=f[T];this.context.setPresenceChange({type:Ma.Put,presence:ca(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Ma.Clear})}}const YO="000000000000000000000000",da="FFFFFFFFFFFFFFFFFFFFFFFF";class Er{constructor(f,g,T){this.lamport=f,this.delimiter=g,this.actorID=T}static of(f,g,T){return new Er(f,g,T)}static fromStruct(f){return Er.of(Gr.fromString(f.lamport,!0),f.delimiter,f.actorID)}toIDString(){return this.actorID?`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return this.actorID?`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}setActor(f){return new Er(this.lamport,this.delimiter,f)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(f){return this.compare(f)>0}equals(f){return this.compare(f)===0}compare(f){if(this.lamport.greaterThan(f.lamport))return 1;if(f.lamport.greaterThan(this.lamport))return-1;const g=this.actorID.localeCompare(f.actorID);return g!==0?g:this.delimiter>f.delimiter?1:f.delimiter>this.delimiter?-1:0}}const Jp=0,Ts=4294967295,ws=Gr.MAX_VALUE,ao=new Er(Gr.fromNumber(0),Jp,YO),ko=new Er(ws,Ts,da);function Ur(A){return A.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(f){switch(f){case'"':case"\\":return"\\"+f;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 f}})}class so{constructor(f){this.createdAt=f}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(f){return!this.movedAt||f&&f.after(this.movedAt)?(this.movedAt=f,!0):!1}setRemovedAt(f){this.removedAt=f}remove(f){return f&&f.after(this.getPositionedAt())&&(!this.removedAt||f.after(this.removedAt))?(this.removedAt=f,!0):!1}isRemoved(){return!!this.removedAt}}class Yl extends so{constructor(f){super(f)}}class Qo extends so{}class xo{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new xo(f,g)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(f){return this.value.remove(f)}}class Vi{constructor(){this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Vi}set(f,g,T){let R;const H=this.nodeMapByKey.get(f);H!=null&&!H.isRemoved()&&H.remove(T)&&(R=H.getValue());const K=xo.of(f,g);return this.nodeMapByCreatedAt.set(g.getCreatedAt().toIDString(),K),(H==null||T.after(H.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(f,K),g.setMovedAt(T)),R}delete(f,g){this.nodeMapByCreatedAt.has(f.toIDString())||u.fatal(`fail to find ${f.toIDString()}`);const T=this.nodeMapByCreatedAt.get(f.toIDString());return T.remove(g),T.getValue()}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return g.getStrKey()}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());if(!g){u.fatal(`fail to find ${f.getCreatedAt().toIDString()}`);return}const T=this.nodeMapByKey.get(g.getStrKey());g===T&&this.nodeMapByKey.delete(T.getStrKey()),this.nodeMapByCreatedAt.delete(g.getValue().getCreatedAt().toIDString())}deleteByKey(f,g){const T=this.nodeMapByKey.get(f);if(T!=null&&T.remove(g))return T.getValue()}has(f){const g=this.nodeMapByKey.get(f);return g==null?!1:!g.isRemoved()}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}get(f){const g=this.nodeMapByKey.get(f);if(!(!g||g.isRemoved()))return g}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}class br extends Yl{constructor(f,g){super(f),this.memberNodes=g}static create(f,g){if(!g)return new br(f,Vi.create());const T=Vi.create();for(const[R,H]of Object.entries(g))T.set(R,H.deepcopy(),H.getCreatedAt());return new br(f,T)}subPathOf(f){return this.memberNodes.subPathOf(f)}purge(f){this.memberNodes.purge(f)}set(f,g,T){return this.memberNodes.set(f,g,T)}delete(f,g){return this.memberNodes.delete(f,g)}deleteByKey(f,g){return this.memberNodes.deleteByKey(f,g)}get(f){const g=this.memberNodes.get(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.memberNodes.getByID(f);return g==null?void 0:g.getValue()}has(f){return this.memberNodes.has(f)}toJSON(){const f=[];for(const[g,T]of this)f.push(`"${Ur(g)}":${T.toJSON()}`);return`{${f.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(const[g,T]of this){const{createdAt:R,value:H,type:K}=T.toJSForTest();f[g]={key:g,createdAt:R,value:H,type:K}}return{createdAt:this.getCreatedAt().toTestString(),value:f,type:"YORKIE_OBJECT"}}getKeys(){const f=Array();for(const[g]of this)f.push(g);return f}toSortedJSON(){var f;const g=Array();for(const[R]of this)g.push(R);const T=[];for(const R of g.sort()){const H=(f=this.memberNodes.get(R))===null||f===void 0?void 0:f.getValue();T.push(`"${Ur(R)}":${H.toSortedJSON()}`)}return`{${T.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const f=br.create(this.getCreatedAt());for(const g of this.memberNodes)f.memberNodes.set(g.getStrKey(),g.getValue().deepcopy(),this.getPositionedAt());return f.remove(this.getRemovedAt()),f}getDescendants(f){for(const g of this.memberNodes){const T=g.getValue();if(f(T,this))return;T instanceof Yl&&T.getDescendants(f)}}*[Symbol.iterator](){const f=new Set;for(const g of this.memberNodes)f.has(g.getStrKey())||(f.add(g.getStrKey()),g.isRemoved()||(yield[g.getStrKey(),g.getValue()]))}}var _r;(function(A){A.Local="local",A.Remote="remote",A.UndoRedo="undoredo"})(_r||(_r={}));class jr{constructor(f,g){this.parentCreatedAt=f,this.executedAt=g}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(f){this.executedAt&&(this.executedAt=this.executedAt.setActor(f))}setExecutedAt(f){this.executedAt=f}}class Yo{constructor(f){this.value=f,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(f){this.left=f}setRight(f){this.right=f}setParent(f){this.parent=f}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(f){this.weight+=f}initWeight(){this.weight=this.getLength()}}class Hi{constructor(f){this.root=f}get length(){return this.root?this.root.getWeight():0}find(f){if(!this.root||f<0)return[void 0,0];let g=this.root;for(;;)if(g.hasLeft()&&f<=g.getLeftWeight())g=g.getLeft();else if(g.hasRight()&&g.getLeftWeight()+g.getLength()g.getLength()&&u.fatal(`out of index range: pos: ${f} > node.length: ${g.getLength()}`),[g,f]}indexOf(f){if(!f||f!==this.root&&!f.hasLinks())return-1;let g=0,T=f,R;for(;T;)(!R||R===T.getRight())&&(g+=T.getLength()+(T.hasLeft()?T.getLeftWeight():0)),R=T,T=T.getParent();return g-f.getLength()}getRoot(){return this.root}insert(f){return this.insertAfter(this.root,f)}insertAfter(f,g){return f?(this.splayNode(f),this.root=g,g.setRight(f.getRight()),f.hasRight()&&f.getRight().setParent(g),g.setLeft(f),f.setParent(g),f.setRight(),this.updateWeight(f),this.updateWeight(g),g):(this.root=g,g)}updateWeight(f){f.initWeight(),f.hasLeft()&&f.increaseWeight(f.getLeftWeight()),f.hasRight()&&f.increaseWeight(f.getRightWeight())}updateTreeWeight(f){for(;f;)this.updateWeight(f),f=f.getParent()}splayNode(f){if(f)for(;;)if(this.isLeftChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f),this.rotateLeft(f);else if(this.isLeftChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f.getParent()),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f.getParent()),this.rotateLeft(f);else{this.isLeftChild(f)?this.rotateRight(f):this.isRightChild(f)&&this.rotateLeft(f),this.updateWeight(f);return}}delete(f){this.splayNode(f);const g=new Hi(f.getLeft());g.root&&g.root.setParent();const T=new Hi(f.getRight());if(T.root&&T.root.setParent(),g.root){const R=g.getRightmost();g.splayNode(R),g.root.setRight(T.root),T.root&&T.root.setParent(g.root),this.root=g.root}else this.root=T.root;f.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(f,g){if(!g){this.splayNode(f),this.cutOffRight(f);return}this.splayNode(f),this.splayNode(g),g.getLeft()!=f&&this.rotateRight(f),this.cutOffRight(f)}cutOffRight(f){const g=[];this.traversePostorder(f.getRight(),g);for(const T of g)T.initWeight();this.updateTreeWeight(f)}toTestString(){const f=[];return this.traverseInorder(this.root,f),f.map(g=>`[${g.getWeight()},${g.getLength()}]${g.getValue()||""}`).join("")}checkWeight(){const f=[];this.traverseInorder(this.root,f);for(const g of f)if(g.getWeight()!=g.getLength()+g.getLeftWeight()+g.getRightWeight())return!1;return!0}getRightmost(){let f=this.root;for(;f.hasRight();)f=f.getRight();return f}traverseInorder(f,g){f&&(this.traverseInorder(f.getLeft(),g),g.push(f),this.traverseInorder(f.getRight(),g))}traversePostorder(f,g){f&&(this.traversePostorder(f.getLeft(),g),this.traversePostorder(f.getRight(),g),g.push(f))}rotateLeft(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setRight(f.getLeft()),g.hasRight()&&g.getRight().setParent(g),f.setLeft(g),f.getLeft().setParent(f),this.updateWeight(g),this.updateWeight(f)}rotateRight(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setLeft(f.getRight()),g.hasLeft()&&g.getLeft().setParent(g),f.setRight(g),f.getRight().setParent(f),this.updateWeight(g),this.updateWeight(f)}isLeftChild(f){return f&&f.hasParent()?f.getParent().getLeft()===f:!1}isRightChild(f){return f&&f.hasParent()?f.getParent().getRight()===f:!1}}var Jt;(function(A){A[A.Null=0]="Null",A[A.Boolean=1]="Boolean",A[A.Integer=2]="Integer",A[A.Long=3]="Long",A[A.Double=4]="Double",A[A.String=5]="String",A[A.Bytes=6]="Bytes",A[A.Date=7]="Date"})(Jt||(Jt={}));class Rr extends so{constructor(f,g){super(g),this.valueType=Rr.getPrimitiveType(f),this.value=f===void 0?null:f}static of(f,g){return new Rr(f,g)}static valueFromBytes(f,g){switch(f){case Jt.Null:return null;case Jt.Boolean:return!!g[0];case Jt.Integer:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case Jt.Double:{const T=new DataView(g.buffer);return g.forEach(function(R,H){T.setUint8(H,R)}),T.getFloat64(0,!0)}case Jt.String:return new TextDecoder("utf-8").decode(g);case Jt.Long:return Gr.fromBytesLE(Array.from(g));case Jt.Bytes:return g;case Jt.Date:return new Date(Gr.fromBytesLE(Array.from(g),!0).toNumber());default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return this.valueType===Jt.String?`"${Ur(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const f=Rr.of(this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f.setRemovedAt(this.getRemovedAt()),f}getType(){return this.valueType}static getPrimitiveType(f){switch(typeof f){case"undefined":return Jt.Null;case"boolean":return Jt.Boolean;case"number":return this.isInteger(f)?Jt.Integer:Jt.Double;case"string":return Jt.String;case"object":if(f===null)return Jt.Null;if(f instanceof Gr)return Jt.Long;if(f instanceof Uint8Array)return Jt.Bytes;if(f instanceof Date)return Jt.Date}}static isSupport(f){return Rr.getPrimitiveType(f)!==void 0}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===Jt.Integer||f===Jt.Long||f===Jt.Double}getValue(){return this.value}toBytes(){switch(this.valueType){case Jt.Null:return new Uint8Array;case Jt.Boolean:return this.value?new Uint8Array([1]):new Uint8Array([0]);case Jt.Integer:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case Jt.Double:{const f=this.value,g=new Uint8Array(8);return new DataView(g.buffer).setFloat64(0,f,!0),g}case Jt.String:return new TextEncoder().encode(this.value);case Jt.Long:{const g=this.value.toBytesLE();return Uint8Array.from(g)}case Jt.Bytes:return this.value;case Jt.Date:{const f=this.value,g=Gr.fromNumber(f.getTime(),!0).toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class eh extends Yo{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new eh(g),R=f.next;return f.next=T,T.prev=f,T.next=R,R&&(R.prev=T),T}remove(f){return this.value.remove(f)}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 gf{constructor(){const f=Rr.of(0,ao);f.setRemovedAt(ao),this.dummyHead=new eh(f),this.last=this.dummyHead,this.nodeMapByIndex=new Hi,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new gf}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(f,g){let T=this.nodeMapByCreatedAt.get(f.toIDString());for(T||u.fatal(`cant find the given node: ${f.toIDString()}`);T.getNext()&&T.getNext().getPositionedAt().after(g);)T=T.getNext();return T}release(f){this.last===f&&(this.last=f.getPrev()),f.release(),this.nodeMapByIndex.delete(f),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}insertAfter(f,g,T=g.getCreatedAt()){const R=this.findNextBeforeExecutedAt(f,T),H=eh.createAfter(R,g);R===this.last&&(this.last=H),this.nodeMapByIndex.insertAfter(R,H),this.nodeMapByCreatedAt.set(H.getCreatedAt().toIDString(),H)}moveAfter(f,g,T){const R=this.nodeMapByCreatedAt.get(f.toIDString());R||u.fatal(`cant find the given node: ${f.toIDString()}`);const H=this.nodeMapByCreatedAt.get(g.toIDString());H||u.fatal(`cant find the given node: ${g.toIDString()}`),R!==H&&(!H.getValue().getMovedAt()||T.after(H.getValue().getMovedAt()))&&(this.release(H),this.insertAfter(R.getCreatedAt(),H.getValue(),T),H.getValue().setMovedAt(T))}insert(f){this.insertAfter(this.last.getCreatedAt(),f)}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return String(this.nodeMapByIndex.indexOf(g))}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());g||u.fatal(`fail to find the given createdAt: ${f.getCreatedAt().toIDString()}`),this.release(g)}getByIndex(f){if(f>=this.length)return;const[g,T]=this.nodeMapByIndex.find(f);let R=g;if(f===0&&g===this.dummyHead||T>0)do R&&(R=R.getNext());while(R&&R.isRemoved());return R}getPrevCreatedAt(f){let g=this.nodeMapByCreatedAt.get(f.toIDString());do g=g.getPrev();while(this.dummyHead!==g&&g.isRemoved());return g.getValue().getCreatedAt()}delete(f,g){const T=this.nodeMapByCreatedAt.get(f.toIDString()),R=T.isRemoved();return T.remove(g)&&!R&&this.nodeMapByIndex.splayNode(T),T.getValue()}deleteByIndex(f,g){const T=this.getByIndex(f);if(T)return T.remove(g)&&this.nodeMapByIndex.splayNode(T),T.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const f=[];for(const g of this){const T=`${g.getCreatedAt().toIDString()}:${g.getValue().toJSON()}`;g.isRemoved()?f.push(`{${T}}`):f.push(`[${T}]`)}return f.join("")}*[Symbol.iterator](){let f=this.dummyHead.getNext();for(;f;)yield f,f=f.getNext()}}class Go extends Yl{constructor(f,g){super(f),this.elements=g}static create(f,g){if(!g)return new Go(f,gf.create());const T=gf.create();for(const R of g)T.insertAfter(T.getLastCreatedAt(),R.deepcopy());return new Go(f,T)}subPathOf(f){return this.elements.subPathOf(f)}purge(f){this.elements.purge(f)}insertAfter(f,g){this.elements.insertAfter(f,g)}moveAfter(f,g,T){this.elements.moveAfter(f,g,T)}get(f){const g=this.elements.getByIndex(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.elements.getByID(f);return g==null?void 0:g.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(f){return this.elements.getPrevCreatedAt(f)}delete(f,g){return this.elements.delete(f,g)}deleteByIndex(f,g){return this.elements.deleteByIndex(f,g)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const f of this.elements)f.isRemoved()||(yield f.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(f){for(const g of this.elements){const T=g.getValue();if(f(T,this))return;T instanceof Yl&&T.getDescendants(f)}}toJSON(){const f=[];for(const g of this)f.push(g.toJSON());return`[${f.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(let g=0;g`${f}="${JSON.parse(g.getValue())}"`).join(" ")}`:""}size(){return this.nodeMapByKey.size}toObject(){const f={};for(const[g,T]of this.nodeMapByKey)f[g]=T.getValue();return f}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}var qo;(function(A){A.Content="content",A.Style="style"})(qo||(qo={}));class Zo{constructor(f){this.attributes=$a.create(),this.content=f}static create(f){return new Zo(f)}get length(){return this.content.length}substring(f,g){const T=new Zo(this.content.substring(f,g));return T.attributes=this.attributes.deepcopy(),T}setAttr(f,g,T){this.attributes.set(f,g,T)}getAttrs(){return this.attributes}toString(){return this.content}toJSON(){const f=Ur(this.content),g=this.attributes.toObject(),T=[];for(const[R,H]of Object.entries(g)){const K=JSON.parse(H),oe=typeof K=="string"?`"${Ur(R)}":"${Ur(K)}"`:`"${Ur(R)}":${String(K)}`;T.push(oe)}return T.sort(),T.length===0?`{"val":"${f}"}`:`{"attrs":{${T.join(",")}},"val":"${f}"}`}getAttributes(){return this.attributes.toObject()}getContent(){return this.content}}class fi extends Qo{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new fi(f,g)}edit(f,g,T,R,H){const K=g?Zo.create(g):void 0;if(K&&R)for(const[Ft,ft]of Object.entries(R))K.setAttr(Ft,ft,T);const[oe,Ae,He]=this.rgaTreeSplit.edit(f,T,K,H),yt=He.map(Ft=>({...Ft,value:Ft.value?{attributes:di(Ft.value.getAttributes()),content:Ft.value.getContent()}:{attributes:void 0,content:""},type:qo.Content}));return[Ae,yt,[oe,oe]]}setStyle(f,g,T,R){const[,H]=this.rgaTreeSplit.findNodeWithSplit(f[1],T),[,K]=this.rgaTreeSplit.findNodeWithSplit(f[0],T),oe=[],Ae=this.rgaTreeSplit.findBetween(K,H),He=new Map,yt=[];for(const Ft of Ae){const ft=Ft.getCreatedAt().getActorID(),sn=R!=null&&R.size?R.has(ft)?R.get(ft):ao:ko;if(Ft.canStyle(T,sn)){const In=He.get(ft),Dn=Ft.getCreatedAt();(!In||Dn.after(In))&&He.set(ft,Dn),yt.push(Ft)}}for(const Ft of yt){if(Ft.isRemoved())continue;const[ft,sn]=this.rgaTreeSplit.findIndexesFromRange(Ft.createPosRange());oe.push({type:qo.Style,actor:T.getActorID(),from:ft,to:sn,value:{attributes:di(g)}});for(const[In,Dn]of Object.entries(g))Ft.getValue().setAttr(In,Dn,T)}return[He,oe]}indexRangeToPosRange(f,g){const T=this.rgaTreeSplit.indexToPos(f);return f===g?[T,T]:[T,this.rgaTreeSplit.indexToPos(g)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const f=[];for(const g of this.rgaTreeSplit)g.isRemoved()||f.push(g.getValue().toJSON());return`[${f.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 f=[];for(const g of this.rgaTreeSplit)if(!g.isRemoved()){const T=g.getValue();f.push({attributes:di(T.getAttributes()),content:T.getContent()})}return f}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}getRemovedNodesLen(){return this.rgaTreeSplit.getRemovedNodesLen()}purgeRemovedNodesBefore(f){return this.rgaTreeSplit.purgeRemovedNodesBefore(f)}deepcopy(){const f=new fi(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return f.remove(this.getRemovedAt()),f}findIndexesFromRange(f){return this.rgaTreeSplit.findIndexesFromRange(f)}}class Zl extends jr{constructor(f,g,T,R,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=R,this.content=H,this.attributes=K}static create(f,g,T,R,H,K,oe){return new Zl(f,g,T,R,H,K,oe)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof fi||u.fatal("fail to execute, only Text can execute edit");const T=g,[,R]=T.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(T),{opInfos:R.map(({from:H,to:K,value:oe})=>({type:"edit",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),R=this.content;return`${f}.EDIT(${g},${T},${R})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Co extends jr{constructor(f,g,T,R,H,K){super(f,K),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=R,this.attributes=H}static create(f,g,T,R,H,K){return new Co(f,g,T,R,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof fi||u.fatal("fail to execute, only Text can execute edit");const T=g,[,R]=T.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);return{opInfos:R.map(({from:H,to:K,value:oe})=>({type:"style",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),R=this.attributes;return`${f}.STYL(${g},${T},${JSON.stringify(R)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const fa=2,pa="root",xi="text";function Xo(A,f){let g=0;const T=A.children;for(let R=0;R0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let f=this.parent;const g=this.isRemoved?-1:1;for(;f;)f.size+=this.paddedSize*g,f=f.parent}get isText(){return this.type===xi}get paddedSize(){return this.size+(this.isText?0:fa)}isAncestorOf(f){return Bc(this,f)}get nextSibling(){const f=this.parent.findOffset(this),g=this.parent.children[f+1];if(g)return g}splitText(f,g){if(f===0||f===this.size)return;const T=this.value.slice(0,f),R=this.value.slice(f);if(!R.length)return;this.value=T;const H=this.cloneText(f+g);return H.value=R,this.parent.insertAfterInternal(H,this),H}get children(){return this._children.filter(f=>!f.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.some(f=>f.isText)}append(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...f);for(const g of f)g.parent=this,g.updateAncestorsSize()}prepend(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...f);for(const g of f)g.parent=this,g.isRemoved||g.updateAncestorsSize()}insertBefore(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T),f.updateAncestorsSize()}insertAfter(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1),f.updateAncestorsSize()}insertAt(f,g){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(f,g),f.updateAncestorsSize()}removeChild(f){if(this.isText)throw new Error("Text node cannot have children");const g=this._children.indexOf(f);if(g===-1)throw new Error("child not found");this._children.splice(g,1),f.parent=void 0}splitElement(f,g){const T=this.cloneElement(g);this.parent.insertAfterInternal(T,this),T.updateAncestorsSize();const R=this.children.slice(0,f),H=this.children.slice(f);this._children=R,T._children=H,this.size=this._children.reduce((K,oe)=>K+oe.paddedSize,0),T.size=T._children.reduce((K,oe)=>K+oe.paddedSize,0);for(const K of T._children)K.parent=T;return T}insertAfterInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1)}insertAtInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(g,0,f),f.parent=this}findOffset(f){if(this.isText)throw new Error("Text node cannot have children");if(f.isRemoved){const g=this._children.indexOf(f);return this.allChildren.splice(0,g).filter(R=>!R.isRemoved).length}return this.children.indexOf(f)}findBranchOffset(f){if(this.isText)throw new Error("Text node cannot have children");let g=f;for(;g;){const T=this._children.indexOf(g);if(T!==-1)return T;g=g.parent}return-1}}function Bc(A,f){if(A===f)return!1;for(;f.parent;){if(f.parent===A)return!0;f=f.parent}return!1}var Gn;(function(A){A.Start="Start",A.End="End",A.Text="Text"})(Gn||(Gn={}));function Fa(A,f,g,T){if(f>g)throw new Error(`from is greater than to: ${f} > ${g}`);if(f>A.size)throw new Error(`from is out of range: ${f} > ${A.size}`);if(g>A.size)throw new Error(`to is out of range: ${g} > ${A.size}`);if(f===g)return;let R=0;for(const H of A.children){if(f-H.paddedSizeH.size;(H.isText||Ae)&&T([H,H.isText?Gn.Text:Gn.Start],He),Fa(H,Math.max(0,K),Math.min(oe,H.size),T),He&&T([H,Gn.End],He)}R+=H.paddedSize}}function Ci(A,f,g=0){for(const T of A.children)Ci(T,f,g+1);f(A,g)}function Ba(A,f,g=0){for(const T of A._children)Ba(T,f,g+1);f(A,g)}function ha(A,f,g=!0){if(f>A.size)throw new Error(`index is out of range: ${f} > ${A.size}`);if(A.isText)return{node:A,offset:f};let T=0,R=0;for(const H of A.children){if(g&&H.isText&&H.size>=f-R)return ha(H,f-R,g);if(f===R)return{node:A,offset:T};if(!g&&H.paddedSize===f-R)return{node:A,offset:T+1};if(H.paddedSize>f-R)return ha(H,f-R-1,g);R+=H.paddedSize,T+=1}return{node:A,offset:T}}function Ua(A){return A.isText||A.children.length===0?A:Ua(A.children[0])}function F(A,f){if(A.sizeA===f?0:A0)if(g.right)g.right.parent=g,g=g.right;else return g;else if(T<0)if(g.left)g.left.parent=g,g=g.left;else{let R=g.parent,H=g;for(;R&&H===R.left;)H=R,R=R.parent;return R}else return g}}lastEntry(){if(!this.root)return this.root;let f=this.root;for(;f.right;)f=f.right;return f}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(f,g){for(;g;){const T=this.comparator(f,g.key);if(T===0)return g;T<0?g=g.left:T>0&&(g=g.right)}}putInternal(f,g,T){if(!T)return this.counter+=1,new le(f,g,!0);const R=this.comparator(f,T.key);return R<0?T.left=this.putInternal(f,g,T.left):R>0?T.right=this.putInternal(f,g,T.right):T.value=g,this.isRed(T.right)&&!this.isRed(T.left)&&(T=this.rotateLeft(T)),this.isRed(T.left)&&this.isRed(T.left.left)&&(T=this.rotateRight(T)),this.isRed(T.left)&&this.isRed(T.right)&&this.flipColors(T),T}removeInternal(f,g){if(this.comparator(g,f.key)<0)!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeInternal(f.left,g);else{if(this.isRed(f.left)&&(f=this.rotateRight(f)),this.comparator(g,f.key)===0&&!f.right){this.counter-=1;return}if(!this.isRed(f.right)&&!this.isRed(f.right.left)&&(f=this.moveRedRight(f)),this.comparator(g,f.key)===0){this.counter-=1;const T=this.min(f.right);f.value=T.value,f.key=T.key,f.right=this.removeMin(f.right)}else f.right=this.removeInternal(f.right,g)}return this.fixUp(f)}min(f){return f.left?this.min(f.left):f}removeMin(f){if(f.left)return!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeMin(f.left),this.fixUp(f)}fixUp(f){return this.isRed(f.right)&&(f=this.rotateLeft(f)),this.isRed(f.left)&&this.isRed(f.left.left)&&(f=this.rotateRight(f)),this.isRed(f.left)&&this.isRed(f.right)&&this.flipColors(f),f}moveRedLeft(f){return this.flipColors(f),this.isRed(f.right.left)&&(f.right=this.rotateRight(f.right),f=this.rotateLeft(f),this.flipColors(f)),f}moveRedRight(f){return this.flipColors(f),this.isRed(f.left.left)&&(f=this.rotateRight(f),this.flipColors(f)),f}isRed(f){return f&&f.isRed}rotateLeft(f){const g=f.right;return f.right=g.left,g.left=f,g.isRed=g.left.isRed,g.left.isRed=!0,g}rotateRight(f){const g=f.left;return f.left=g.right,g.right=f,g.isRed=g.right.isRed,g.right.isRed=!0,g}flipColors(f){f.isRed=!f.isRed,f.left.isRed=!f.left.isRed,f.right.isRed=!f.right.isRed}}var je;(function(A){A.Content="content",A.Style="style"})(je||(je={}));class ct{constructor(f,g){this.parentID=f,this.leftSiblingID=g}static of(f,g){return new ct(f,g)}static fromTreePos(f){const{offset:g}=f;let{node:T}=f,R;return T.isText?(T.parent.children[0]===T&&g===0?R=T.parent:R=T,T=T.parent):g===0?R=T:R=T.children[g-1],ct.of(T.id,Ze.of(R.getCreatedAt(),R.getOffset()+g))}getParentID(){return this.parentID}static fromStruct(f){return ct.of(Ze.of(Er.fromStruct(f.parentID.createdAt),f.parentID.offset),Ze.of(Er.fromStruct(f.leftSiblingID.createdAt),f.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodes(f){const g=this.getParentID(),T=this.getLeftSiblingID(),R=f.findFloorNode(g);let H=f.findFloorNode(T);if(!R||!H)throw new Error(`cannot find node at ${this}`);return!T.equals(g)&&T.getOffset()>0&&T.getOffset()===H.id.getOffset()&&H.insPrevID&&(H=f.findFloorNode(H.insPrevID)),[R,H]}getLeftSiblingID(){return this.leftSiblingID}equals(f){return this.getParentID().getCreatedAt().equals(f.getParentID().getCreatedAt())&&this.getParentID().getOffset()===f.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(f.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===f.getLeftSiblingID().getOffset()}}class Ze{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Ze(f,g)}static fromStruct(f){return Ze.of(Er.fromStruct(f.createdAt),f.offset)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset(){const R=T.deepcopy();return R.parent=g,R}),g}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(f){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=f,this.size=f.length}get isRemoved(){return!!this.removedAt}remove(f){const g=!this.removedAt;(!this.removedAt||this.removedAt.compare(f)>0)&&(this.removedAt=f),g&&(this.parent.removedAt?this.parent.size-=this.paddedSize:this.updateAncestorsSize())}cloneText(f){return new Ot(Ze.of(this.id.getCreatedAt(),f),this.type,void 0,void 0,this.removedAt)}cloneElement(f){return new Ot(Ze.of(f(),0),this.type,void 0,void 0,this.removedAt)}split(f,g,T){const R=this.isText?this.splitText(g,this.id.getOffset()):this.splitElement(g,T);if(R){if(R.insPrevID=this.id,this.insNextID){const H=f.findFloorNode(this.insNextID);H.insPrevID=R.id,R.insNextID=this.insNextID}this.insNextID=R.id,f.registerNode(R)}return R}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(f,g){return!this.getCreatedAt().after(g)&&(!this.removedAt||f.after(this.removedAt))}}function Pt(A){var f;if(A.isText){const g=A;return{type:g.type,value:g.value}}return{type:A.type,children:A.children.map(Pt),attributes:A.attrs?di((f=A.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function On(A){var f;return A.isText?A.value:`<${A.type}${((f=A.attrs)===null||f===void 0?void 0:f.toXML())||""}>${A.children.map(g=>On(g)).join("")}`}function Sr(A){if(A.isText){const f=A;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:A.type,children:A.children.map(Sr),size:A.size,isRemoved:A.isRemoved}}class Sn extends Qo{constructor(f,g){super(g),this.indexTree=new x(f),this.nodeMapByID=new Pe(Ze.createComparator()),this.removedNodeMap=new Map,this.indexTree.traverse(T=>{this.nodeMapByID.put(T.id,T)})}static create(f,g){return new Sn(f,g)}findFloorNode(f){const g=this.nodeMapByID.floorEntry(f);if(!(!g||!g.key.getCreatedAt().equals(f.getCreatedAt())))return g.value}registerNode(f){this.nodeMapByID.put(f.id,f)}findNodesAndSplitText(f,g){const[T,R]=f.toTreeNodes(this);let H=R;const K=T===H,oe=H.parent&&!K?H.parent:T;H.isText&&H.split(this,f.getLeftSiblingID().getOffset()-H.id.getOffset());const Ae=oe.allChildren,He=K?0:Ae.indexOf(H)+1;for(let yt=He;yt{if(!He.isRemoved&&!He.isText&&g){He.attrs||(He.attrs=new $a);for(const[yt,Ft]of Object.entries(g))He.attrs.set(yt,Ft,T)}}),Ae}edit(f,g,T,R,H,K){const[oe,Ae]=this.findNodesAndSplitText(f[0],R),[He,yt]=this.findNodesAndSplitText(f[1],R),Ft=this.toIndex(oe,Ae),ft=this.toPath(oe,Ae),sn=[],In=[],Dn=[],sr=new Map;this.traverseInPosRange(oe,Ae,He,yt,([$n,ni],qr)=>{if(ni===Gn.Start&&!qr)for(const lh of $n.children)Dn.push(lh);const vi=$n.getCreatedAt().getActorID(),Ef=K?K.has(vi)?K.get(vi):ao:ko;if($n.canDelete(R,Ef)||sn.includes($n.parent)){const lh=sr.get(vi),u0=$n.getCreatedAt();(!lh||u0.after(lh))&&sr.set(vi,u0),(ni===Gn.Text||ni===Gn.Start)&&sn.push($n),In.push([$n,ni])}});const lo=this.makeDeletionChanges(In,R);for(const $n of sn)$n.remove(R),$n.isRemoved&&this.removedNodeMap.set($n.id.toIDString(),$n);for(const $n of Dn)$n.removedAt||oe.append($n);if(T>0){let $n=0,ni=oe,qr=Ae;for(;$n{oe.isRemoved&&(vi.remove(R),this.removedNodeMap.set(vi.id.toIDString(),vi)),this.nodeMapByID.put(vi.id,vi)}),qr.isRemoved||$n.push(qr);if($n.length){const qr=$n.map(vi=>Pt(vi));lo.length&&lo[lo.length-1].from===Ft?lo[lo.length-1].value=qr:lo.push({type:je.Content,from:Ft,to:Ft,fromPath:ft,toPath:ft,actor:R.getActorID(),value:qr})}}return[lo,sr]}editT(f,g,T,R,H){const K=this.findPos(f[0]),oe=this.findPos(f[1]);this.edit([K,oe],g,T,R,H)}move(f,g,T){throw new Error(`not implemented: ${f}, ${g}, ${T}`)}purgeRemovedNodesBefore(f){var g;const T=new Set;let R=0;for(const[,H]of this.removedNodeMap)H.removedAt&&f.compare(H.removedAt)>=0&&(T.add(H),R++);for(const H of T)(g=H.parent)===null||g===void 0||g.removeChild(H),this.nodeMapByID.remove(H.id),this.purge(H),this.removedNodeMap.delete(H.id.toIDString());return R}purge(f){const g=f.insPrevID,T=f.insNextID;if(g){const R=this.findFloorNode(g);R.insNextID=T}if(T){const R=this.findFloorNode(T);R.insPrevID=g}f.insPrevID=void 0,f.insNextID=void 0}findPos(f,g=!0){const T=this.indexTree.findTreePos(f,g);return ct.fromTreePos(T)}getRemovedNodesLen(){return this.removedNodeMap.size}pathToPosRange(f){const g=this.pathToIndex(f);return[this.findPos(g),this.findPos(g+1)]}pathToPos(f){const g=this.indexTree.pathToIndex(f);return this.findPos(g)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getIndexTree(){return this.indexTree}toXML(){return On(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 f=this.indexTree.getRoot(),g=(T,R=void 0,H=0)=>{var K,oe,Ae;const He={type:T.type,parent:R,size:T.size,id:T.id.toTestString(),removedAt:(K=T.removedAt)===null||K===void 0?void 0:K.toTestString(),insPrev:(oe=T.insPrevID)===null||oe===void 0?void 0:oe.toTestString(),insNext:(Ae=T.insNextID)===null||Ae===void 0?void 0:Ae.toTestString(),value:T.isText?T.value:void 0,isRemoved:T.isRemoved,children:[],depth:H};for(const yt of T.children)He.children.push(g(yt,He.id,H+1));return He};return g(f)}getRootTreeNode(){return Pt(this.indexTree.getRoot())}toTestTreeNode(){return Sr(this.indexTree.getRoot())}toSortedJSON(){return this.toJSON()}deepcopy(){const f=this.getRoot();return new Sn(f.deepcopy(),this.getCreatedAt())}toPath(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.treePosToPath(T):[]}toIndex(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.indexOf(T):-1}indexToPath(f){return this.indexTree.indexToPath(f)}pathToIndex(f){return this.indexTree.pathToIndex(f)}indexRangeToPosRange(f){const g=this.findPos(f[0]);return f[0]===f[1]?[g,g]:[g,this.findPos(f[1])]}indexRangeToPosStructRange(f){const[g,T]=f,R=this.findPos(g);return g===T?[R.toStruct(),R.toStruct()]:[R.toStruct(),this.findPos(T).toStruct()]}posRangeToPathRange(f,g){const[T,R]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toPath(T,R),this.toPath(H,K)]}posRangeToIndexRange(f,g){const[T,R]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toIndex(T,R),this.toIndex(H,K)]}traverseInPosRange(f,g,T,R,H){const K=this.toIndex(f,g),oe=this.toIndex(T,R);return this.indexTree.tokensBetween(K,oe,H)}toTreePos(f,g){if(!f||!g)return;if(f.isRemoved){let R;for(;f.isRemoved;)R=f,f=R.parent;const H=f.findOffset(R);return{node:f,offset:H}}if(f===g)return{node:f,offset:0};let T=f.findOffset(g);if(!g.isRemoved){if(g.isText)return{node:g,offset:g.paddedSize};T++}return{node:f,offset:T}}makeDeletionChanges(f,g){const T=[],R=[];let H=null,K=null;for(let oe=0;oe0&&sr===T[T.length-1].to?(T[T.length-1].to=lo,T[T.length-1].toPath=this.toPath(Dn,ft)):T.push({type:je.Content,from:sr,to:lo,fromPath:this.toPath(In,yt),toPath:this.toPath(Dn,ft),actor:g.getActorID()}))}return T}findRightToken([f,g]){if(g===Gn.Start){const oe=f.allChildren;return oe.length>0?[oe[0],oe[0].isText?Gn.Text:Gn.Start]:[f,Gn.End]}const T=f.parent,R=T.allChildren,H=R.indexOf(f);if(T&&H===R.length-1)return[T,Gn.End];const K=R[H+1];return[K,K.isText?Gn.Text:Gn.Start]}findLeftToken([f,g]){if(g===Gn.End){const oe=f.allChildren;if(oe.length>0){const Ae=oe[oe.length-1];return[Ae,Ae.isText?Gn.Text:Gn.End]}return[f,Gn.Start]}const T=f.parent,R=T.allChildren,H=R.indexOf(f);if(T&&H===0)return[T,Gn.Start];const K=R[H-1];return[K,K.isText?Gn.Text:Gn.End]}}class Wi extends jr{constructor(f,g,T,R,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.contents=R,this.splitLevel=H,this.maxCreatedAtMapByActor=K}static create(f,g,T,R,H,K,oe){return new Wi(f,g,T,R,H,K,oe)}execute(f){var g;const T=f.findByCreatedAt(this.getParentCreatedAt());T||u.fatal(`fail to find ${this.getParentCreatedAt()}`),T instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const R=this.getExecutedAt(),H=T,[K]=H.edit([this.fromPos,this.toPos],(g=this.contents)===null||g===void 0?void 0:g.map(oe=>oe.deepcopy()),this.splitLevel,R,(()=>{let oe=R.getDelimiter();return this.contents!==void 0&&(oe+=this.contents.length),()=>Er.of(R.getLamport(),++oe,R.getActorID())})(),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(H),{opInfos:K.map(({from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft})=>({type:"tree-edit",path:f.createPath(this.getParentCreatedAt()),from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`,R=this.contents;return`${f}.EDIT(${g},${T},${R==null?void 0:R.join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class ja{constructor(f,g,T){this.clientSeq=f,this.lamport=g,this.actor=T}static of(f,g,T){return new ja(f,g,T)}next(){return new ja(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new ja(this.clientSeq,f,this.actor):new ja(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return Er.of(this.lamport,f,this.actor)}setActor(f){return new ja(this.clientSeq,this.lamport,f)}getClientSeq(){return this.clientSeq}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return this.actor?`${this.lamport.toString()}:${this.actor.substring(22,24)}:${this.clientSeq}`:`${this.lamport.toString()}:nil:${this.clientSeq}`}}const aC=new ja(0,Gr.fromInt(0,!0),YO);class yf{constructor({id:f,operations:g,presenceChange:T,message:R}){this.id=f,this.operations=g||[],this.presenceChange=T,this.message=R}static create({id:f,operations:g,presenceChange:T,message:R}){return new yf({id:f,operations:g,presenceChange:T,message:R})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(f){for(const g of this.operations)g.setActor(f);this.id=this.id.setActor(f)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(f,g,T){const R=[],H=[];for(const K of this.operations){const oe=K.execute(f,T);if(!oe)continue;const{opInfos:Ae,reverseOp:He}=oe;R.push(...Ae),He&&H.unshift(He)}return this.presenceChange&&(this.presenceChange.type===Ma.Put?g.set(this.id.getActorID(),ca(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:R,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class GO{constructor(f,g,T,R,H,K){this.documentKey=f,this.checkpoint=g,this.isRemoved=T,this.changes=R,this.snapshot=H,this.minSyncedTicket=K}static create(f,g,T,R,H,K){return new GO(f,g,T,R,H,K)}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 nh{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new nh(f,g)}increaseClientSeq(f){return f===0?this:new nh(this.serverSeq,this.clientSeq+f)}forward(f){if(this.equals(f))return this;const g=this.serverSeq.greaterThan(f.serverSeq)?this.serverSeq:f.serverSeq,T=Math.max(this.clientSeq,f.clientSeq);return nh.of(g,T)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(f){return this.clientSeq===f.clientSeq&&this.serverSeq.equals(f.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const noe=new nh(Gr.fromInt(0,!0),0);class Xl{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Xl(f,g)}static fromStruct(f){return Xl.of(Er.fromStruct(f.createdAt),f.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(f){return this.createdAt.compare(f.createdAt)===0&&this.offset===f.offset}hasSameCreatedAt(f){return this.createdAt.compare(f.createdAt)===0}split(f){return new Xl(this.createdAt,this.offset+f)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const roe=Xl.of(ao,0);class ul{constructor(f,g){this.id=f,this.relativeOffset=g}static of(f,g){return new ul(f,g)}static fromStruct(f){const g=Xl.fromStruct(f.id);return ul.of(g,f.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return Xl.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(f){return this.id.equals(f.id)?this.relativeOffset===f.relativeOffset:!1}}class Uc extends Yo{constructor(f,g,T){super(g),this.id=f,this.removedAt=T}static create(f,g){return new Uc(f,g)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset()0&&g.getID().getOffset()==f.getOffset()){if(!g.hasInsPrev())return g;g=g.getInsPrev()}return g}findFloorNode(f){const g=this.treeByID.floorEntry(f);if(g&&!(!g.key.equals(f)&&!g.key.hasSameCreatedAt(f)))return g.value}findBetween(f,g){const T=[];let R=f;for(;R&&R!==g;)T.push(R),R=R.getNext();return T}splitNode(f,g){if(g>f.getContentLength()&&u.fatal("offset should be less than or equal to length"),g===0)return f;if(g===f.getContentLength())return f.getNext();const T=f.split(g);this.treeByIndex.updateWeight(T),this.insertAfter(f,T);const R=f.getInsNext();return R&&R.setInsPrev(T),T.setInsPrev(f),T}deleteNodes(f,g,T){if(!f.length)return[[],new Map,new Map];const[R,H]=this.filterNodes(f,g,T),K=new Map,oe=new Map,Ae=this.makeChanges(H,g);for(const He of R){const yt=He.getCreatedAt().getActorID();(!K.has(yt)||He.getID().getCreatedAt().after(K.get(yt)))&&K.set(yt,He.getID().getCreatedAt()),oe.set(He.getID().toIDString(),He),He.remove(g)}return this.deleteIndexNodes(H),[Ae,K,oe]}filterNodes(f,g,T){const R=!!T,H=[],K=[],[oe,Ae]=this.findEdgesOfCandidates(f);K.push(oe);for(const He of f){const yt=He.getCreatedAt().getActorID(),Ft=R?T.has(yt)?T.get(yt):ao:ko;He.canDelete(g,Ft)?H.push(He):K.push(He)}return K.push(Ae),[H,K]}findEdgesOfCandidates(f){return[f[0].getPrev(),f[f.length-1].getNext()]}makeChanges(f,g){const T=[];let R,H;for(let K=0;K=0&&(this.treeByIndex.delete(T),this.purge(T),this.treeByID.remove(T.getID()),this.removedNodeMap.delete(T.getID().toIDString()),g++);return g}purge(f){const g=f.getPrev(),T=f.getNext(),R=f.getInsPrev(),H=f.getInsNext();g&&g.setNext(T),T&&T.setPrev(g),f.setPrev(void 0),f.setNext(void 0),R&&R.setInsNext(H),H&&H.setInsPrev(R),f.setInsPrev(void 0),f.setInsNext(void 0)}}const KF=A=>A<0?Math.ceil(A):Math.floor(A);var pi;(function(A){A[A.IntegerCnt=0]="IntegerCnt",A[A.LongCnt=1]="LongCnt"})(pi||(pi={}));class za extends so{constructor(f,g,T){switch(super(T),this.valueType=f,f){case pi.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Gr.fromNumber(g).toInt():this.value=KF(g):this.value=g.toInt();break;case pi.LongCnt:typeof g=="number"?this.value=Gr.fromNumber(g):this.value=g;break;default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}static create(f,g,T){return new za(f,g,T)}static valueFromBytes(f,g){switch(f){case pi.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case pi.LongCnt:return Gr.fromBytesLE(Array.from(g));default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const f=za.create(this.valueType,this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f}getType(){return this.valueType}static getCounterType(f){switch(typeof f){case"object":return f instanceof Gr?pi.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?pi.LongCnt:pi.IntegerCnt;default:return}}static isSupport(f){return!!za.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===pi.IntegerCnt||f===pi.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case pi.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case pi.LongCnt:{const g=this.value.toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(f){function g(T){if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`)}return g(this),g(f),this.valueType===pi.LongCnt?this.value=this.value.add(f.getValue()):f.getType()===Jt.Long?this.value=this.value+f.getValue().toInt():this.value=Gr.fromNumber(this.value+KF(f.getValue())).toInt(),this}}class ih extends jr{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new ih(f,g,T)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof za||u.fatal("fail to execute, only Counter can execute increase");const T=g,R=this.value.deepcopy();return T.increase(R),{opInfos:[{type:"increase",path:f.createPath(this.getParentCreatedAt()),value:R.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const f=this.value.deepcopy(),T=f.getType()===Jt.Long?f.getValue().multiply(-1):f.getValue()*-1;return ih.create(this.getParentCreatedAt(),Rr.of(T,f.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class oh extends jr{constructor(f,g,T,R,H){super(f,H),this.fromPos=g,this.toPos=T,this.attributes=R}static create(f,g,T,R,H){return new oh(f,g,T,R,H)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const T={};return[...this.attributes].forEach(([K,oe])=>T[K]=oe),{opInfos:g.style([this.fromPos,this.toPos],T,this.getExecutedAt()).map(({from:K,to:oe,value:Ae,fromPath:He})=>({type:"tree-style",from:K,to:oe,value:Ae,fromPath:He,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${f}.STYLE(${g},${T},${Object.entries(this.attributes||{}).map(([R,H])=>`${R}:"${H}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}}function ioe(A){const f=new pe.Presence,g=f.data;for(const[T,R]of Object.entries(A))g[T]=JSON.stringify(R);return f}function ooe(A){if(A.type===Ma.Put)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.PUT,presence:ioe(A.presence)});if(A.type===Ma.Clear)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function aoe(A){return new pe.Checkpoint({serverSeq:A.getServerSeqAsString(),clientSeq:A.getClientSeq()})}function soe(A){return new pe.ChangeID({clientSeq:A.getClientSeq(),lamport:A.getLamportAsString(),actorId:pC(A.getActorID())})}function un(A){if(A)return new pe.TimeTicket({lamport:A.getLamportAsString(),delimiter:A.getDelimiter(),actorId:pC(A.getActorID())})}function JF(A){switch(A){case Jt.Null:return pe.ValueType.NULL;case Jt.Boolean:return pe.ValueType.BOOLEAN;case Jt.Integer:return pe.ValueType.INTEGER;case Jt.Long:return pe.ValueType.LONG;case Jt.Double:return pe.ValueType.DOUBLE;case Jt.String:return pe.ValueType.STRING;case Jt.Bytes:return pe.ValueType.BYTES;case Jt.Date:return pe.ValueType.DATE;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function e6(A){switch(A){case pi.IntegerCnt:return pe.ValueType.INTEGER_CNT;case pi.LongCnt:return pe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function sC(A){if(A instanceof br)return new pe.JSONElementSimple({type:pe.ValueType.JSON_OBJECT,createdAt:un(A.getCreatedAt()),value:f6(A)});if(A instanceof Go)return new pe.JSONElementSimple({type:pe.ValueType.JSON_ARRAY,createdAt:un(A.getCreatedAt()),value:Moe(A)});if(A instanceof fi)return new pe.JSONElementSimple({type:pe.ValueType.TEXT,createdAt:un(A.getCreatedAt())});if(A instanceof Rr)return new pe.JSONElementSimple({type:JF(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof za)return new pe.JSONElementSimple({type:e6(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof Sn)return new pe.JSONElementSimple({type:pe.ValueType.TREE,createdAt:un(A.getCreatedAt()),value:Foe(A)});throw new An(En.Unimplemented,"unimplemented element")}function loe(A){return new pe.TextNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function qO(A){return new pe.TextNodePos({createdAt:un(A.getID().getCreatedAt()),offset:A.getID().getOffset(),relativeOffset:A.getRelativeOffset()})}function ZO(A){return new pe.TreePos({parentId:o0(A.getParentID()),leftSiblingId:o0(A.getLeftSiblingID())})}function o0(A){return new pe.TreeNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function uoe(A){const f=new pe.Operation;if(A instanceof Yu){const g=A,T=new pe.Operation_Set;T.parentCreatedAt=un(g.getParentCreatedAt()),T.key=g.getKey(),T.value=sC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="set",f.body.value=T}else if(A instanceof bf){const g=A,T=new pe.Operation_Add;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.value=sC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="add",f.body.value=T}else if(A instanceof ql){const g=A,T=new pe.Operation_Move;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="move",f.body.value=T}else if(A instanceof Gl){const g=A,T=new pe.Operation_Remove;T.parentCreatedAt=un(g.getParentCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="remove",f.body.value=T}else if(A instanceof Zl){const g=A,T=new pe.Operation_Edit;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=qO(g.getFromPos()),T.to=qO(g.getToPos());const R=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())R[K]=un(oe);T.content=g.getContent();const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="edit",f.body.value=T}else if(A instanceof Co){const g=A,T=new pe.Operation_Style;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=qO(g.getFromPos()),T.to=qO(g.getToPos());const R=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())R[K]=un(oe);const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="style",f.body.value=T}else if(A instanceof ih){const g=A,T=new pe.Operation_Increase;T.parentCreatedAt=un(g.getParentCreatedAt()),T.value=sC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="increase",f.body.value=T}else if(A instanceof Wi){const g=A,T=new pe.Operation_TreeEdit,R=T.createdAtMapByActor;for(const[H,K]of g.getMaxCreatedAtMapByActor())R[H]=un(K);T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=ZO(g.getFromPos()),T.to=ZO(g.getToPos()),T.contents=goe(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=un(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(A instanceof oh){const g=A,T=new pe.Operation_TreeStyle;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=ZO(g.getFromPos()),T.to=ZO(g.getToPos());const R=T.attributes;for(const[H,K]of g.getAttributes())R[H]=K;T.executedAt=un(g.getExecutedAt()),f.body.case="treeStyle",f.body.value=T}else throw new An(En.Unimplemented,"unimplemented operation");return f}function coe(A){const f=[];for(const g of A)f.push(uoe(g));return f}function doe(A){const f=new pe.Change({id:soe(A.getID()),message:A.getMessage()});return A.hasOperations()&&(f.operations=coe(A.getOperations())),A.hasPresenceChange()&&(f.presenceChange=ooe(A.getPresenceChange())),f}function foe(A){const f=[];for(const g of A)f.push(doe(g));return f}function poe(A){const f=[];for(const g of A)f.push(new pe.RHTNode({key:g.getStrKey(),element:lC(g.getValue())}));return f}function hoe(A){const f=[];for(const g of A)f.push(new pe.RGANode({element:lC(g.getValue())}));return f}function moe(A){const f=[];for(const g of A){const T=new pe.TextNode;T.id=loe(g.getID()),T.value=g.getValue().getContent(),T.removedAt=un(g.getRemovedAt());const R=T.attributes,H=g.getValue().getAttrs();for(const K of H){const oe=new pe.NodeAttr;oe.value=K.getValue(),oe.updatedAt=un(K.getUpdatedAt()),R[K.getKey()]=oe}f.push(T)}return f}function goe(A){const f=[];if(!A||!A.length)return f;for(const g of A)f.push(new pe.TreeNodes({content:t6(g)}));return f}function t6(A){if(!A)return[];const f=[];return Ci(A,(g,T)=>{const R=new pe.TreeNode({id:o0(g.id),type:g.type,removedAt:un(g.removedAt),depth:T});if(g.isText&&(R.value=g.value),g.insPrevID&&(R.insPrevId=o0(g.insPrevID)),g.insNextID&&(R.insNextId=o0(g.insNextID)),g.attrs)for(const H of g.attrs)R.attributes[H.getKey()]=new pe.NodeAttr({value:H.getValue(),updatedAt:un(H.getUpdatedAt())});f.push(R)}),f}function boe(A){const f=new pe.JSONElement;return f.body.case="jsonObject",f.body.value=new pe.JSONElement_JSONObject({nodes:poe(A.getRHT()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function n6(A){const f=new pe.JSONElement;return f.body.case="jsonArray",f.body.value=new pe.JSONElement_JSONArray({nodes:hoe(A.getElements()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function yoe(A){const f=new pe.JSONElement;return f.body.case="primitive",f.body.value=new pe.JSONElement_Primitive({type:JF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Ooe(A){const f=new pe.JSONElement;return f.body.case="text",f.body.value=new pe.JSONElement_Text({nodes:moe(A.getRGATreeSplit()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function voe(A){const f=new pe.JSONElement;return f.body.case="counter",f.body.value=new pe.JSONElement_Counter({type:e6(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function r6(A){const f=new pe.JSONElement;return f.body.case="tree",f.body.value=new pe.JSONElement_Tree({nodes:t6(A.getRoot()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function lC(A){if(A instanceof br)return boe(A);if(A instanceof Go)return n6(A);if(A instanceof Rr)return yoe(A);if(A instanceof fi)return Ooe(A);if(A instanceof za)return voe(A);if(A instanceof Sn)return r6(A);throw new An(En.Unimplemented,"unimplemented element")}function Eoe(A){return new pe.ChangePack({documentKey:A.getDocumentKey(),checkpoint:aoe(A.getCheckpoint()),isRemoved:A.getIsRemoved(),changes:foe(A.getChanges()),snapshot:A.getSnapshot(),minSyncedTicket:un(A.getMinSyncedTicket())})}function Soe(A){return ja.of(A.clientSeq,Gr.fromString(A.lamport,!0),fC(A.actorId))}function hn(A){if(A)return Er.of(Gr.fromString(A.lamport,!0),A.delimiter,fC(A.actorId))}function uC(A){const f={};return Object.entries(A.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function Toe(A){const f=A.type;if(f===pe.PresenceChange_ChangeType.PUT){const g=uC(A.presence);return{type:Ma.Put,presence:g}}if(f===pe.PresenceChange_ChangeType.CLEAR)return{type:Ma.Clear};throw new An(En.Unsupported,`unsupported type: ${f}`)}function woe(A){const f=new Map;return Object.entries(A).forEach(([g,T])=>{f.set(g,uC(T))}),f}function i6(A){switch(A){case pe.ValueType.NULL:return Jt.Null;case pe.ValueType.BOOLEAN:return Jt.Boolean;case pe.ValueType.INTEGER:return Jt.Integer;case pe.ValueType.LONG:return Jt.Long;case pe.ValueType.DOUBLE:return Jt.Double;case pe.ValueType.STRING:return Jt.String;case pe.ValueType.BYTES:return Jt.Bytes;case pe.ValueType.DATE:return Jt.Date}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function XO(A){switch(A){case pe.ValueType.INTEGER_CNT:return pi.IntegerCnt;case pe.ValueType.LONG_CNT:return pi.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function cC(A){switch(A.type){case pe.ValueType.JSON_OBJECT:return A.value?d6(A.value):br.create(hn(A.createdAt));case pe.ValueType.JSON_ARRAY:return A.value?Loe(A.value):Go.create(hn(A.createdAt));case pe.ValueType.TEXT:return fi.create(rh.create(),hn(A.createdAt));case pe.ValueType.TREE:return $oe(A.value);case pe.ValueType.NULL:case pe.ValueType.BOOLEAN:case pe.ValueType.INTEGER:case pe.ValueType.LONG:case pe.ValueType.DOUBLE:case pe.ValueType.STRING:case pe.ValueType.BYTES:case pe.ValueType.DATE:return Rr.of(Rr.valueFromBytes(i6(A.type),A.value),hn(A.createdAt));case pe.ValueType.INTEGER_CNT:case pe.ValueType.LONG_CNT:return za.create(XO(A.type),za.valueFromBytes(XO(A.type),A.value),hn(A.createdAt))}}function KO(A){return ul.of(Xl.of(hn(A.createdAt),A.offset),A.relativeOffset)}function o6(A){return Xl.of(hn(A.createdAt),A.offset)}function koe(A){const f=Zo.create(A.value);Object.entries(A.attributes).forEach(([T,R])=>{f.setAttr(T,R.value,hn(R.updatedAt))});const g=Uc.create(o6(A.id),f);return g.remove(hn(A.removedAt)),g}function JO(A){return ct.of(a0(A.parentId),a0(A.leftSiblingId))}function a0(A){return Ze.of(hn(A.createdAt),A.offset)}function xoe(A){if(!A.length)return;const f=[];return A.forEach(g=>{const T=a6(g.content);f.push(T)}),f}function a6(A){if(A.length===0)return;const f=[];for(const T of A)f.push(Coe(T));const g=f[f.length-1];for(let T=f.length-2;T>=0;T--){let R;for(let H=T+1;H{T.set(R,H.value,hn(H.updatedAt))}),g.attrs=T}return A.insPrevId&&(g.insPrevID=a0(A.insPrevId)),A.insNextId&&(g.insNextID=a0(A.insNextId)),g.removedAt=hn(A.removedAt),g}function Aoe(A){const f=[];for(const g of A){let T;if(g.body.case==="set"){const R=g.body.value;T=Yu.create(R.key,cC(R.value),hn(R.parentCreatedAt),hn(R.executedAt))}else if(g.body.case==="add"){const R=g.body.value;T=bf.create(hn(R.parentCreatedAt),hn(R.prevCreatedAt),cC(R.value),hn(R.executedAt))}else if(g.body.case==="move"){const R=g.body.value;T=ql.create(hn(R.parentCreatedAt),hn(R.prevCreatedAt),hn(R.createdAt),hn(R.executedAt))}else if(g.body.case==="remove"){const R=g.body.value;T=Gl.create(hn(R.parentCreatedAt),hn(R.createdAt),hn(R.executedAt))}else if(g.body.case==="edit"){const R=g.body.value,H=new Map;Object.entries(R.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(R.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Zl.create(hn(R.parentCreatedAt),KO(R.from),KO(R.to),H,R.content,K,hn(R.executedAt))}else if(g.body.case==="style"){const R=g.body.value,H=new Map;Object.entries(R.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(R.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Co.create(hn(R.parentCreatedAt),KO(R.from),KO(R.to),H,K,hn(R.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const R=g.body.value;T=ih.create(hn(R.parentCreatedAt),cC(R.value),hn(R.executedAt))}else if(g.body.case==="treeEdit"){const R=g.body.value,H=new Map;Object.entries(R.createdAtMapByActor).forEach(([K,oe])=>{H.set(K,hn(oe))}),T=Wi.create(hn(R.parentCreatedAt),JO(R.from),JO(R.to),xoe(R.contents),R.splitLevel,H,hn(R.executedAt))}else if(g.body.case==="treeStyle"){const R=g.body.value,H=new Map;Object.entries(R.attributes).forEach(([K,oe])=>{H.set(K,oe)}),T=oh.create(hn(R.parentCreatedAt),JO(R.from),JO(R.to),H,hn(R.executedAt))}else throw new An(En.Unimplemented,"unimplemented operation")}f.push(T)}return f}function s6(A){const f=[];for(const g of A)f.push(yf.create({id:Soe(g.id),operations:Aoe(g.operations),presenceChange:g.presenceChange?Toe(g.presenceChange):void 0,message:g.message}));return f}function _oe(A){return nh.of(Gr.fromString(A.serverSeq,!0),A.clientSeq)}function Roe(A){return GO.create(A.documentKey,_oe(A.checkpoint),A.isRemoved,s6(A.changes),A.snapshot,hn(A.minSyncedTicket))}function l6(A){const f=new Vi;for(const T of A.nodes){const R=dC(T.element);f.set(T.key,R,R.getPositionedAt())}const g=new br(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function u6(A){const f=new gf;for(const T of A.nodes)f.insert(dC(T.element));const g=new Go(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function Ioe(A){const f=Rr.of(Rr.valueFromBytes(i6(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function Noe(A){const f=new rh;let g=f.getHead();for(const R of A.nodes){const H=f.insertAfter(g,koe(R));R.insPrevId&&H.setInsPrev(f.findNode(o6(R.insPrevId))),g=H}const T=new fi(f,hn(A.createdAt));return T.setMovedAt(hn(A.movedAt)),T.setRemovedAt(hn(A.removedAt)),T}function Doe(A){const f=za.create(XO(A.type),za.valueFromBytes(XO(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function c6(A){const f=a6(A.nodes);return Sn.create(f,hn(A.createdAt))}function dC(A){if(A.body.case==="jsonObject")return l6(A.body.value);if(A.body.case==="jsonArray")return u6(A.body.value);if(A.body.case==="primitive")return Ioe(A.body.value);if(A.body.case==="text")return Noe(A.body.value);if(A.body.case==="counter")return Doe(A.body.value);if(A.body.case==="tree")return c6(A.body.value);throw new An(En.Unimplemented,"unimplemented element")}function Poe(A){if(!A)return{root:br.create(ao),presences:new Map};const f=pe.Snapshot.fromBinary(A);return{root:dC(f.root),presences:woe(f.presences)}}function d6(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return l6(f.body.value)}function f6(A){return lC(A).toBinary()}function Loe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return u6(f.body.value)}function Moe(A){return n6(A).toBinary()}function $oe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return c6(f.body.value)}function Foe(A){return r6(A).toBinary()}function Boe(A){return A?Array.from(A).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function fC(A){return Boe(A)}function Uoe(A){return new Uint8Array(A.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function pC(A){return Uoe(A)}const Kl={fromPresence:uC,toChangePack:Eoe,fromChangePack:Roe,fromChanges:s6,objectToBytes:f6,bytesToObject:d6,bytesToSnapshot:Poe,toHexString:fC,toUint8Array:pC};class joe{constructor(f,g,T,R){this.reconnectStreamDelay=f,this.doc=g,this.docID=T,this.isRealtimeSync=R,this.syncMode=Gu.PushPull,this.remoteChangeEventReceived=!1}changeRealtimeSync(f){return this.isRealtimeSync===f?!1:f?(this.isRealtimeSync=!0,!0):(this.cancelWatchStream(),this.isRealtimeSync=!1,!0)}changeSyncMode(f){this.syncMode=f}needRealtimeSync(){return this.isRealtimeSync&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(f){const g=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await f(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(g,this.reconnectStreamDelay)})}catch{}};await g()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}class ah{constructor(f,g,T,R){this.id=f,this.delimiter=Jp,this.root=g,this.operations=[],this.previousPresence=ca(T),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=R}static create(f,g,T,R){return new ah(f,g,T,R)}push(f){this.operations.push(f)}registerElement(f,g){this.root.registerElement(f,g)}registerRemovedElement(f){this.root.registerRemovedElement(f)}registerElementHasRemovedNodes(f){this.root.registerElementHasRemovedNodes(f)}getChange(){return yf.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(f){this.presenceChange=f}setReversePresence(f,g){for(const T of Object.keys(f))g!=null&&g.addToHistory?this.reversePresenceKeys.add(T):this.reversePresenceKeys.delete(T)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const f={};for(const g of this.reversePresenceKeys)f[g]=this.previousPresence[g];return f}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class s0{constructor(f){this.rootObject=f,this.elementPairMapByCreatedAt=new Map,this.removedElementSetByCreatedAt=new Set,this.elementHasRemovedNodesSetByCreatedAt=new Set,this.opsForTest=[],this.registerElement(f,void 0)}static create(){return new s0(br.create(ao))}findByCreatedAt(f){const g=this.elementPairMapByCreatedAt.get(f.toIDString());if(g)return g.element}findElementPairByCreatedAt(f){return this.elementPairMapByCreatedAt.get(f.toIDString())}createSubPaths(f){let g=this.elementPairMapByCreatedAt.get(f.toIDString());if(!g)return[];const T=[];for(;g.parent;){const R=g.element.getCreatedAt(),H=g.parent.subPathOf(R);H===void 0&&u.fatal(`cant find the given element: ${R.toIDString()}`),T.unshift(H),g=this.elementPairMapByCreatedAt.get(g.parent.getCreatedAt().toIDString())}return T.unshift("$"),T}createPath(f){return this.createSubPaths(f).join(".")}registerElement(f,g){this.elementPairMapByCreatedAt.set(f.getCreatedAt().toIDString(),{parent:g,element:f}),f instanceof Yl&&f.getDescendants((T,R)=>(this.registerElement(T,R),!1))}deregisterElement(f){let g=0;const T=R=>{const H=R.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(H),this.removedElementSetByCreatedAt.delete(H),g++};return T(f),f instanceof Yl&&f.getDescendants(R=>(T(R),!1)),g}registerRemovedElement(f){this.removedElementSetByCreatedAt.add(f.getCreatedAt().toIDString())}registerElementHasRemovedNodes(f){this.elementHasRemovedNodesSetByCreatedAt.add(f.getCreatedAt().toIDString())}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getRemovedElementSetSize(){return this.removedElementSetByCreatedAt.size}getObject(){return this.rootObject}getGarbageLen(){let f=0;const g=new Set;for(const T of this.removedElementSetByCreatedAt){g.add(T);const R=this.elementPairMapByCreatedAt.get(T);R.element instanceof Yl&&R.element.getDescendants(H=>(g.add(H.getCreatedAt().toIDString()),!1))}f+=g.size;for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element;f+=H.getRemovedNodesLen()}return f}deepcopy(){return new s0(this.rootObject.deepcopy())}garbageCollect(f){let g=0;for(const T of this.removedElementSetByCreatedAt){const R=this.elementPairMapByCreatedAt.get(T);R.element.getRemovedAt()&&f.compare(R.element.getRemovedAt())>=0&&(R.parent.purge(R.element),g+=this.deregisterElement(R.element))}for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element,K=H.purgeRemovedNodesBefore(f);K>0&&this.elementHasRemovedNodesSetByCreatedAt.delete(H.getCreatedAt().toIDString()),g+=K}return g}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function p6(A,f){const g=new l0(A);return new Proxy(f,g.getHandlers())}class l0{constructor(f){this.context=f,this.handlers={set:(g,T,R)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(R)}`),l0.setInternal(f,g,T,R),!0),get:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),T==="getID"?()=>g.getCreatedAt():T==="toJSON"||T==="toString"?()=>g.toJSON():T==="toJS"?()=>g.toJS():T==="toJSForTest"?()=>g.toJSForTest():Of(f,g.get(T))),ownKeys:g=>g.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),l0.deleteInternal(f,g,T),!0)}}static setInternal(f,g,T,R){if(T.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const H=f.issueTimeTicket(),K=rv(f,R,H),oe=g.set(T,K,H);f.registerElement(K,g),oe&&f.registerRemovedElement(oe),f.push(Yu.create(T,K.deepcopy(),g.getCreatedAt(),H))}static buildObjectMembers(f,g){const T={};for(const[R,H]of Object.entries(g)){if(R.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const K=f.issueTimeTicket(),oe=rv(f,H,K);T[R]=oe}return T}static deleteInternal(f,g,T){const R=f.issueTimeTicket(),H=g.deleteByKey(T,R);H&&(f.push(Gl.create(g.getCreatedAt(),H.getCreatedAt(),R)),f.registerRemovedElement(H))}getHandlers(){return this.handlers}}function zoe(A,f){const g=new ti(A,f);return new Proxy(f,g.getHandlers())}function Voe(A){return typeof A=="string"||A instanceof String?!isNaN(A):!1}function Hoe(A){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(A)}class ti{constructor(f,g){this.context=f,this.array=g,this.handlers={get:(T,R,H)=>R==="getID"?()=>T.getCreatedAt():R==="getElementByID"?K=>{const oe=T.getByID(K);if(!(!oe||oe.isRemoved()))return jc(f,oe)}:R==="getElementByIndex"?K=>{const oe=T.get(K);return jc(f,oe)}:R==="getLast"?()=>jc(f,T.getLast()):R==="deleteByID"?K=>{const oe=ti.deleteInternalByID(f,T,K);return jc(f,oe)}:R==="insertAfter"?(K,oe)=>{const Ae=ti.insertAfterInternal(f,T,K,oe);return jc(f,Ae)}:R==="insertBefore"?(K,oe)=>{const Ae=ti.insertBeforeInternal(f,T,K,oe);return jc(f,Ae)}:R==="moveBefore"?(K,oe)=>{ti.moveBeforeInternal(f,T,K,oe)}:R==="moveAfter"?(K,oe)=>{ti.moveAfterInternal(f,T,K,oe)}:R==="moveFront"?K=>{ti.moveFrontInternal(f,T,K)}:R==="moveLast"?K=>{ti.moveLastInternal(f,T,K)}:Voe(R)?Of(f,T.get(Number(R))):R==="push"?K=>ti.pushInternal(f,T,K):R==="splice"?(K,oe,...Ae)=>ti.splice(f,T,K,oe,...Ae):R==="length"?T.length:typeof R=="symbol"&&R===Symbol.iterator?ti.iteratorInternal.bind(this,f,T):R==="includes"?(K,oe)=>ti.includes(f,T,K,oe):R==="indexOf"?(K,oe)=>ti.indexOf(f,T,K,oe):R==="lastIndexOf"?(K,oe)=>ti.lastIndexOf(f,T,K,oe):R==="toTestString"?()=>ti.toTestString(T):typeof R=="string"&&Hoe(R)?(...K)=>{const oe=Array.from(T).map(Ae=>Of(f,Ae));return Array.prototype[R].apply(oe,K)}:Reflect.get(T,R,H),deleteProperty:(T,R)=>(u.isEnabled(s.Trivial)&&u.trivial(`array[${R}]`),ti.deleteInternalByIndex(f,T,Number.parseInt(R)),!0)}}static*iteratorInternal(f,g){for(const T of g)yield jc(f,T)}static buildArrayElements(f,g){const T=[];for(const R of g){const H=f.issueTimeTicket(),K=rv(f,R,H);T.push(K)}return T}static pushInternal(f,g,T){return ti.insertAfterInternal(f,g,g.getLastCreatedAt(),T),g.length}static moveBeforeInternal(f,g,T,R){const H=f.issueTimeTicket(),K=g.getPrevCreatedAt(T);g.moveAfter(K,R,H),f.push(ql.create(g.getCreatedAt(),K,R,H))}static moveAfterInternal(f,g,T,R){const H=f.issueTimeTicket();g.moveAfter(T,R,H),f.push(ql.create(g.getCreatedAt(),T,R,H))}static moveFrontInternal(f,g,T){const R=f.issueTimeTicket(),H=g.getHead();g.moveAfter(H.getCreatedAt(),T,R),f.push(ql.create(g.getCreatedAt(),H.getCreatedAt(),T,R))}static moveLastInternal(f,g,T){const R=f.issueTimeTicket(),H=g.getLastCreatedAt();g.moveAfter(H,T,R),f.push(ql.create(g.getCreatedAt(),H,T,R))}static insertAfterInternal(f,g,T,R){const H=f.issueTimeTicket(),K=rv(f,R,H);return g.insertAfter(T,K),f.registerElement(K,g),f.push(bf.create(g.getCreatedAt(),T,K.deepcopy(),H)),K}static insertBeforeInternal(f,g,T,R){return ti.insertAfterInternal(f,g,g.getPrevCreatedAt(T),R)}static deleteInternalByIndex(f,g,T){const R=f.issueTimeTicket(),H=g.deleteByIndex(T,R);if(H)return f.push(Gl.create(g.getCreatedAt(),H.getCreatedAt(),R)),f.registerRemovedElement(H),H}static deleteInternalByID(f,g,T){const R=f.issueTimeTicket(),H=g.delete(T,R);return f.push(Gl.create(g.getCreatedAt(),H.getCreatedAt(),R)),f.registerRemovedElement(H),H}static splice(f,g,T,R,...H){const K=g.length,oe=T>=0?Math.min(T,K):Math.max(K+T,0),Ae=R===void 0?K:R<0?oe:Math.min(oe+R,K),He=[];for(let yt=oe;yt=K)return!1;if(Rr.isSupport(T))return Array.from(g).map(He=>Of(f,He)).includes(T,oe);for(let Ae=oe;Ae=K)return-1;if(Rr.isSupport(T))return Array.from(g).map(He=>Of(f,He)).indexOf(T,oe);for(let Ae=oe;Ae=K?K-1:R<0?R+K:R;if(oe<0)return-1;if(Rr.isSupport(T))return Array.from(g).map(He=>Of(f,He)).lastIndexOf(T,oe);for(let Ae=oe;Ae>0;Ae--)if(((H=g.get(Ae))===null||H===void 0?void 0:H.getID())===T.getID())return Ae;return-1}static toTestString(f){return f.toTestString()}getHandlers(){return this.handlers}}class ev{constructor(f,g){this.context=f,this.text=g}initialize(f,g){this.context=f,this.text=g}getID(){return this.text.getID()}edit(f,g,T,R){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}if(f>g){u.fatal("from should be less than or equal to to");return}const H=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`EDIT: f:${f}->${H[0].toTestString()}, t:${g}->${H[1].toTestString()} c:${T}`);const K=R?oo(R):void 0,oe=this.context.issueTimeTicket(),[Ae,,He]=this.text.edit(H,T,oe,K);return this.context.push(new Zl(this.text.getCreatedAt(),H[0],H[1],Ae,T,K?new Map(Object.entries(K)):new Map,oe)),H[0].equals(H[1])||this.context.registerElementHasRemovedNodes(this.text),this.text.findIndexesFromRange(He)}delete(f,g){return this.edit(f,g,"")}empty(){return this.edit(0,this.length,"")}setStyle(f,g,T){if(!this.context||!this.text)return u.fatal("it is not initialized yet"),!1;if(f>g)return u.fatal("from should be less than or equal to to"),!1;const R=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`STYL: f:${f}->${R[0].toTestString()}, t:${g}->${R[1].toTestString()} a:${JSON.stringify(T)}`);const H=oo(T),K=this.context.issueTimeTicket(),[oe]=this.text.setStyle(R,H,K);return this.context.push(new Co(this.text.getCreatedAt(),R[0],R[1],oe,new Map(Object.entries(H)),K)),!0}indexRangeToPosRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.indexRangeToPosRange(f[0],f[1]);return[g[0].toStruct(),g[1].toStruct()]}posRangeToIndexRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.findIndexesFromRange([ul.fromStruct(f[0]),ul.fromStruct(f[1])]);return[g[0],g[1]]}toTestString(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){u.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?(u.fatal("it is not initialized yet"),""):this.text.toString()}createRangeForTest(f,g){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(f,g)}}class tv{constructor(f,g){this.valueType=f,this.value=g}initialize(f,g){this.valueType=g.getValueType(),this.context=f,this.counter=g,this.value=g.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(f){if(!this.context||!this.counter){u.fatal("it is not initialized yet");return}const g=this.context.issueTimeTicket(),T=Rr.of(f,g);if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`);return this.counter.increase(T),this.context.push(ih.create(this.counter.getCreatedAt(),T,g)),this}}function hC(A,f,g){const{type:T}=A,R=g.issueTimeTicket();if(T===xi){h6(A);const{value:H}=A,K=Ot.create(Ze.of(R,0),T,H);f.append(K)}else{const{children:H=[]}=A;let{attributes:K}=A,oe;if(typeof K=="object"&&!Xp(K)){K=oo(K),oe=new $a;for(const[He,yt]of Object.entries(K))oe.set(He,yt,R)}const Ae=Ot.create(Ze.of(R,0),T,void 0,oe);f.append(Ae);for(const He of H)hC(He,Ae,g)}}function Woe(A,f){const{type:g}=f,T=A.issueTimeTicket();let R;if(f.type===xi){const{value:H}=f;R=Ot.create(Ze.of(T,0),g,H)}else if(f){const{children:H=[]}=f;let{attributes:K}=f,oe;if(typeof K=="object"&&!Xp(K)){K=oo(K),oe=new $a;for(const[Ae,He]of Object.entries(K))oe.set(Ae,He,T)}R=Ot.create(Ze.of(A.issueTimeTicket(),0),g,void 0,oe);for(const Ae of H)hC(Ae,R,A)}return R}function h6(A){if(!A.value.length)throw new Error("text node cannot have empty value");return!0}function m6(A){if(!A.length)return!0;if(A[0].type===xi)for(const g of A){const{type:T}=g;if(T!==xi)throw new Error("element node and text node cannot be passed together");h6(g)}else for(const g of A){const{type:T}=g;if(T===xi)throw new Error("element node and text node cannot be passed together")}return!0}class nv{constructor(f){this.initialRoot=f}initialize(f,g){this.context=f,this.tree=g}getID(){return this.tree.getID()}buildRoot(f){if(!this.initialRoot)return Ot.create(Ze.of(f.issueTimeTicket(),0),pa);const g=Ot.create(Ze.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const T of this.initialRoot.children)hC(T,g,f);return g}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(f,g){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!f.length)throw new Error("path should not be empty");const[T,R]=this.tree.pathToPosRange(f),H=this.context.issueTimeTicket(),K=g?oo(g):void 0;this.tree.style([T,R],K,H),this.context.push(oh.create(this.tree.getCreatedAt(),T,R,K?new Map(Object.entries(K)):new Map,H))}style(f,g,T){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const R=this.tree.findPos(f),H=this.tree.findPos(g),K=this.context.issueTimeTicket(),oe=T?oo(T):void 0;this.tree.style([R,H],oe,K),this.context.push(oh.create(this.tree.getCreatedAt(),R,H,oe?new Map(Object.entries(oe)):new Map,K))}editInternal(f,g,T,R=0){var H;if(T.length!==0&&T[0]&&(m6(T),T[0].type!==xi))for(const He of T){const{children:yt=[]}=He;m6(yt)}const K=this.context.getLastTimeTicket();let oe=new Array;if(((H=T[0])===null||H===void 0?void 0:H.type)===xi){let He="";for(const yt of T){const{value:Ft}=yt;He+=Ft}oe.push(Ot.create(Ze.of(this.context.issueTimeTicket(),0),xi,He))}else oe=T.map(He=>He&&Woe(this.context,He)).filter(He=>He);const[,Ae]=this.tree.edit([f,g],oe.length?oe.map(He=>He==null?void 0:He.deepcopy()):void 0,R,K,()=>this.context.issueTimeTicket());return this.context.push(Wi.create(this.tree.getCreatedAt(),f,g,oe.length?oe:void 0,R,Ae,K)),f.equals(g)||this.context.registerElementHasRemovedNodes(this.tree),!0}editByPath(f,g,T,R=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T?[T]:[],R)}editBulkByPath(f,g,T,R=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T,R)}edit(f,g,T,R=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T?[T]:[],R)}editBulk(f,g,T,R=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T,R)}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()}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(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(f)}pathToIndex(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(f)}pathRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[this.tree.pathToIndex(f[0]),this.tree.pathToIndex(f[1])],T=this.tree.indexRangeToPosRange(g);return[T[0].toStruct(),T[1].toStruct()]}indexRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(f)}posRangeToIndexRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToIndexRange(g,this.context.getLastTimeTicket())}posRangeToPathRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToPathRange(g,this.context.getLastTimeTicket())}}function g6(A,f){return p6(A,f)}function jc(A,f){if(f){if(f instanceof Rr)return f;if(f instanceof br)return p6(A,f);if(f instanceof Go)return zoe(A,f);if(f instanceof fi)return new ev(A,f);if(f instanceof za){const g=new tv(pi.IntegerCnt,0);return g.initialize(A,f),g}else if(f instanceof Sn){const g=new nv;return g.initialize(A,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function Of(A,f){const g=jc(A,f);return g instanceof Rr?g.getValue():g}function rv(A,f,g){let T;if(Rr.isSupport(f))T=Rr.of(f,g);else if(Array.isArray(f))T=Go.create(g,ti.buildArrayElements(A,f));else if(typeof f=="object")f instanceof ev?(T=fi.create(rh.create(),g),f.initialize(A,T)):f instanceof tv?(T=za.create(f.getValueType(),f.getValue(),g),f.initialize(A,T)):f instanceof nv?(T=Sn.create(f.buildRoot(A),g),f.initialize(A,T)):T=br.create(g,l0.buildObjectMembers(A,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const b6=50;class Qoe{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=b6&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=b6&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const Yoe="yorkie-devtools-panel",Goe="yorkie-devtools-sdk";var ks;(function(A){A.Detached="detached",A.Attached="attached",A.Removed="removed"})(ks||(ks={}));var Ln;(function(A){A.Snapshot="snapshot",A.LocalChange="local-change",A.RemoteChange="remote-change",A.Initialized="initialized",A.Watched="watched",A.Unwatched="unwatched",A.PresenceChanged="presence-changed"})(Ln||(Ln={}));class y6{constructor(f,g){this.opts=g||{},this.key=f,this.status=ks.Detached,this.root=s0.create(),this.changeID=aC,this.checkpoint=noe,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new Qoe,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)}}update(f,g){if(this.getStatus()===ks.Removed)throw new An(En.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const T=this.changeID.getActorID(),R=ah.create(this.changeID.next(),this.clone.root,this.clone.presences.get(T)||{},g);try{const H=g6(R,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Kp(R,this.clone.presences.get(T)))}catch(H){throw this.clone=void 0,u.error(H),H}finally{this.isUpdating=!1}if(R.hasChange()){u.isEnabled(s.Trivial)&&u.trivial(`trying to update a local change: ${this.toJSON()}`);const H=R.getChange(),{opInfos:K,reverseOps:oe}=H.execute(this.root,this.presences,_r.Local),Ae=R.getReversePresence();Ae&&oe.push({type:"presence",value:Ae}),this.localChanges.push(H),oe.length>0&&this.internalHistory.pushUndo(oe),K.length>0&&this.internalHistory.clearRedo(),this.changeID=H.getID(),K.length>0&&this.publish({type:Ln.LocalChange,value:{message:H.getMessage()||"",operations:K,actor:T}}),H.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:T,presence:this.getPresence(T)}}),u.isEnabled(s.Trivial)&&u.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(f,g,T,R){if(typeof f=="string"){if(typeof g!="function")throw new Error("Second argument must be a callback function");if(f==="presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||oe(Ae)},T,R)}if(f==="my-presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.type!==Ln.Initialized&&Ae.value.clientID!==this.changeID.getActorID()||oe(Ae)},T,R)}if(f==="others"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.value.clientID!==this.changeID.getActorID()&&oe(Ae)},T,R)}const H=f,K=g;return this.eventStream.subscribe(oe=>{if(oe.type===Ln.Initialized||oe.type===Ln.Watched||oe.type===Ln.Unwatched||oe.type===Ln.PresenceChanged)return;if(oe.type===Ln.Snapshot){H==="$"&&K(oe);return}const{message:Ae,operations:He,actor:yt}=oe.value,Ft=[];for(const ft of He)this.isSameElementOrChildOf(ft.path,H)&&Ft.push(ft);Ft.length&&K({type:oe.type,value:{message:Ae,operations:Ft,actor:yt}})},T,R)}if(typeof f=="function"){const H=f,K=g,oe=T;return this.eventStream.subscribe(Ae=>{Ae.type===Ln.Initialized||Ae.type===Ln.Watched||Ae.type===Ln.Unwatched||Ae.type===Ln.PresenceChanged||H(Ae)},K,oe)}throw new Error(`"${f}" is not a valid`)}publish(f){this.eventStreamObserver&&this.eventStreamObserver.next(f)}isSameElementOrChildOf(f,g){if(g===f)return!0;const T=f.split(".");return g.split(".").every((H,K)=>H===T[K])}applyChangePack(f){for(f.hasSnapshot()?this.applySnapshot(f.getCheckpoint().getServerSeq(),f.getSnapshot()):f.hasChanges()&&this.applyChanges(f.getChanges());this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>f.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(f.getCheckpoint()),this.garbageCollect(f.getMinSyncedTicket()),f.getIsRemoved()&&this.setStatus(ks.Removed),u.isEnabled(s.Trivial)&&u.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:ca(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return GO.create(this.key,g,!1,f)}setActor(f){for(const g of this.localChanges)g.setActor(f);this.changeID=this.changeID.setActor(f)}getKey(){return this.key}setStatus(f){this.status=f}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const f=ah.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return g6(f,this.clone.root.getObject())}getOpsForTest(){return this.root.opsForTest}garbageCollect(f){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(f),this.root.garbageCollect(f))}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(f,g){const{root:T,presences:R}=Kl.bytesToSnapshot(g);this.root=new s0(T),this.presences=R,this.changeID=this.changeID.syncLamport(f),this.clone=void 0,this.publish({type:Ln.Snapshot,value:g})}applyChanges(f){u.isEnabled(s.Debug)&&u.debug(`trying to apply ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`),u.isEnabled(s.Trivial)&&u.trivial(f.map(g=>`${g.getID().toTestString()} ${g.toTestString()}`).join(` +`)),this.ensureClone();for(const g of f){g.execute(this.clone.root,this.clone.presences,_r.Remote);let T;const R=g.getID().getActorID();if(g.hasPresenceChange()&&this.onlineClients.has(R)){const K=g.getPresenceChange();switch(K.type){case Ma.Put:T={type:this.presences.has(R)?Ln.PresenceChanged:Ln.Watched,value:{clientID:R,presence:K.presence}};break;case Ma.Clear:T={type:Ln.Unwatched,value:{clientID:R,presence:this.getPresence(R)}},this.removeOnlineClient(R);break}}const{opInfos:H}=g.execute(this.root,this.presences,_r.Remote);H.length>0&&this.publish({type:Ln.RemoteChange,value:{actor:R,message:g.getMessage()||"",operations:H}}),T&&this.publish(T),this.changeID=this.changeID.syncLamport(g.getID().getLamport())}u.isEnabled(s.Debug)&&u.debug(`after appling ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`)}getValueByPath(f){if(!f.startsWith("$"))throw new An(En.InvalidArgument,'path must start with "$"');const g=f.split(".");g.shift();let T=this.getRoot();for(const R of g)if(T=T[R],T===void 0)return;return T}setOnlineClients(f){this.onlineClients=f}addOnlineClient(f){this.onlineClients.add(f)}removeOnlineClient(f){this.onlineClients.delete(f)}hasPresence(f){return this.presences.has(f)}getMyPresence(){if(this.status!==ks.Attached)return{};const f=this.presences.get(this.changeID.getActorID());return ca(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?ca(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?ca(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:ca(this.presences.get(g))});return f}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const f=this.getChangeID().getActorID();return this.getPresences().filter(g=>g.clientID!==f).sort((g,T)=>g.clientID>T.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 f=this.internalHistory.popUndo();if(f===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const g=ah.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof jr)){new Kp(g,ca(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,_r.UndoRedo);const{opInfos:R,reverseOps:H}=T.execute(this.root,this.presences,_r.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushRedo(H),!T.hasPresenceChange()&&R.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();R.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:R,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const f=this.internalHistory.popRedo();if(f===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const g=ah.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof jr)){new Kp(g,ca(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,_r.UndoRedo);const{opInfos:R,reverseOps:H}=T.execute(this.root,this.presences,_r.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushUndo(H),!T.hasPresenceChange()&&R.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();R.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:R,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function qoe(A,f){return g=>async T=>(A&&T.header.set("x-api-key",A),f&&T.header.set("authorization",f),await g(T))}const O6=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13"}');function Zoe(){return A=>async f=>(f.header.set("x-yorkie-user-agent",O6.u2+"/"+O6.i8),await A(f))}var Gu;(function(A){A.PushPull="pushpull",A.PushOnly="pushonly"})(Gu||(Gu={}));var zc;(function(A){A.Deactivated="deactivated",A.Activated="activated"})(zc||(zc={}));var vf;(function(A){A.Connected="connected",A.Disconnected="disconnected"})(vf||(vf={}));var sh;(function(A){A.Synced="synced",A.SyncFailed="sync-failed"})(sh||(sh={}));var Va;(function(A){A.StatusChanged="status-changed",A.DocumentChanged="document-changed",A.StreamConnectionStatusChanged="stream-connection-status-changed",A.DocumentSynced="document-synced"})(Va||(Va={}));const iv={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class v6{constructor(f,g){g=g||iv,this.key=g.key?g.key:c(),this.status=zc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||iv.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||iv.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||iv.retrySyncLoopDelay,this.rpcClient=z(_e.V,Se({baseUrl:f,interceptors:[qoe(g.apiKey,g.token),Zoe()]})),this.eventStream=h(T=>{this.eventStreamObserver=T})}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(f=>{this.id=f.clientId,this.status=zc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(f=>{throw u.error(`[AC] c:"${this.getKey()}" err :`,f),f})}deactivate(){if(this.status===zc.Deactivated)return Promise.resolve();for(const[f]of this.attachmentMap)this.detachInternal(f);return this.rpcClient.deactivateClient({clientKey:this.key,clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status=zc.Deactivated,this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(f=>{throw u.error(`[DC] c:"${this.getKey()}" err :`,f),f})}attach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);if(f.getStatus()!==ks.Detached)throw new An(En.DocumentNotDetached,`${f.getKey()} is not detached`);f.setActor(this.id),f.update((H,K)=>K.set(g.initialPresence||{}));const R=(T=g.isRealtimeSync)!==null&&T!==void 0?T:!0;return this.rpcClient.attachDocument({clientKey:this.key,clientId:this.id,changePack:Kl.toChangePack(f.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(async H=>{const K=Kl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()===ks.Removed||(f.setStatus(ks.Attached),this.attachmentMap.set(f.getKey(),new joe(this.reconnectStreamDelay,f,H.documentId,R)),R&&await this.runWatchLoop(f.getKey()),u.info(`[AD] c:"${this.getKey()}" attaches d:"${f.getKey()}"`)),f}).catch(H=>{throw u.error(`[AD] c:"${this.getKey()}" err :`,H),H})}detach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const R=this.attachmentMap.get(f.getKey());if(!R)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return f.update((H,K)=>K.clear()),this.rpcClient.detachDocument({clientKey:this.key,clientId:this.id,documentId:R.docID,changePack:Kl.toChangePack(f.createChangePack()),removeIfNotAttached:(T=g.removeIfNotAttached)!==null&&T!==void 0?T:!1},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(H=>{const K=Kl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()!==ks.Removed&&f.setStatus(ks.Detached),this.detachInternal(f.getKey()),u.info(`[DD] c:"${this.getKey()}" detaches d:"${f.getKey()}"`),f}).catch(H=>{throw u.error(`[DD] c:"${this.getKey()}" err :`,H),H})}pause(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!1)}resume(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!0)}pauseRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Gu.PushOnly)}resumeRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Gu.PushPull),g.remoteChangeEventReceived=!0}async changeRealtimeSync(f,g){const T=this.attachmentMap.get(f.getKey());if(!T)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return T.changeRealtimeSync(g)?g?(T.remoteChangeEventReceived=!0,await this.runWatchLoop(f.getKey()),f):(this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:vf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),f):f}sync(f,g=Gu.PushPull){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const T=[];if(f){const R=this.attachmentMap.get(f.getKey());if(!R)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);T.push(this.syncInternal(R,g))}else this.attachmentMap.forEach(R=>{T.push(this.syncInternal(R,R.syncMode))});return Promise.all(T).catch(R=>{throw this.eventStreamObserver.next({type:Va.DocumentSynced,value:sh.SyncFailed}),R})}remove(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);f.setActor(this.id);const T=Kl.toChangePack(f.createChangePack());return T.isRemoved=!0,this.rpcClient.removeDocument({clientKey:this.key,clientId:this.id,documentId:g.docID,changePack:T},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(R=>{const H=Kl.fromChangePack(R.changePack);f.applyChangePack(H),this.detachInternal(f.getKey()),u.info(`[RD] c:"${this.getKey()}" removes d:"${f.getKey()}"`)}).catch(R=>{throw u.error(`[RD] c:"${this.getKey()}" err :`,R),R})}subscribe(f,g,T){return this.eventStream.subscribe(f,g,T)}getID(){return this.id}getKey(){return this.key}isActive(){return this.status===zc.Activated}getStatus(){return this.status}runSyncLoop(){const f=()=>{if(!this.isActive()){u.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const g=[];for(const[,T]of this.attachmentMap)T.needRealtimeSync()&&(T.remoteChangeEventReceived=!1,g.push(this.syncInternal(T,T.syncMode)));Promise.all(g).then(()=>setTimeout(f,this.syncLoopDuration)).catch(T=>{u.error(`[SL] c:"${this.getKey()}" sync failed:`,T),this.eventStreamObserver.next({type:Va.DocumentSynced,value:sh.SyncFailed}),setTimeout(f,this.retrySyncLoopDelay)})};u.debug(`[SL] c:"${this.getKey()}" run sync loop`),f()}async runWatchLoop(f){const g=this.attachmentMap.get(f);if(!g)throw new An(En.DocumentNotAttached,`${f} is not attached`);return g.runWatchLoop(T=>{if(!this.isActive())return Promise.reject(new An(En.ClientNotActive,`${this.key} is not active`));const R=new AbortController,H=this.rpcClient.watchDocument({clientKey:this.key,clientId:this.id,documentKey:f,documentId:g.docID},{headers:{"x-shard-key":`${this.apiKey}/${f}`},signal:R.signal});return this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:vf.Connected}),u.info(`[WD] c:"${this.getKey()}" watches d:"${f}"`),new Promise((K,oe)=>{(async()=>{try{for await(const He of H)this.handleWatchDocumentsResponse(g,He),He.body.case==="initialization"&&K([H,R])}catch(He){this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:vf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),T(),oe(He)}})()})})}handleWatchDocumentsResponse(f,g){const T=f.doc.getKey();if(g.body.case==="initialization"){const R=g.body.value.clientIds,H=new Set;for(const K of R)H.add(K);f.doc.setOnlineClients(H),f.doc.publish({type:Ln.Initialized,value:f.doc.getPresences()});return}else if(g.body.case==="event"){const R=g.body.value,H=R.type,K=R.publisher;switch(H){case pe.DocEventType.DOCUMENT_CHANGED:f.remoteChangeEventReceived=!0,this.eventStreamObserver.next({type:Va.DocumentChanged,value:[T]});break;case pe.DocEventType.DOCUMENT_WATCHED:f.doc.addOnlineClient(K),f.doc.hasPresence(K)&&f.doc.publish({type:Ln.Watched,value:{clientID:K,presence:f.doc.getPresence(K)}});break;case pe.DocEventType.DOCUMENT_UNWATCHED:{const oe=f.doc.getPresence(K);f.doc.removeOnlineClient(K),oe&&f.doc.publish({type:Ln.Unwatched,value:{clientID:K,presence:oe}});break}}}}detachInternal(f){const g=this.attachmentMap.get(f);g&&(g.cancelWatchStream(),u.debug(`[WD] c:"${this.getKey()}" unwatches`),this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:vf.Disconnected}),this.attachmentMap.delete(f))}syncInternal(f,g){const{doc:T,docID:R}=f,H=T.createChangePack();return this.rpcClient.pushPullChanges({clientKey:this.key,clientId:this.id,documentId:R,changePack:Kl.toChangePack(H),pushOnly:g===Gu.PushOnly},{headers:{"x-shard-key":`${this.apiKey}/${T.getKey()}`}}).then(K=>{const oe=Kl.fromChangePack(K.changePack);if(oe.hasChanges()&&g===Gu.PushOnly)return T;T.applyChangePack(oe),this.eventStreamObserver.next({type:Va.DocumentSynced,value:sh.Synced}),T.getStatus()===ks.Removed&&this.detachInternal(T.getKey());const Ae=T.getKey(),He=oe.getChangeSize();return u.info(`[PP] c:"${this.getKey()}" sync d:"${Ae}", push:${H.getChangeSize()} pull:${He} cp:${oe.getCheckpoint().toTestString()}`),T}).catch(K=>{throw u.error(`[PP] c:"${this.getKey()}" err :`,K),K})}}const Xoe={Client:v6,Document:y6,Primitive:Rr,Text:ev,Counter:tv,Tree:nv,IntType:pi.IntegerCnt,LongType:pi.LongCnt}})(),a})())})(jJ);var II=jJ.exports;class pLe{constructor(t,n){Ko(this,"doc");Ko(this,"client");this.doc=t,this.client=n}}const y3=qt.define({combine(e){return e[e.length-1]}}),Dj=Ul.define();class hLe{constructor(t){Ko(this,"view");Ko(this,"conf");Ko(this,"_doc");Ko(this,"_observer");Ko(this,"_unsubscribe");this.view=t,this.conf=t.state.facet(y3),this._observer=n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const o=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:o,annotations:[Dj.of(this.conf)]})}})},this._doc=this.conf.doc,this._unsubscribe=this._doc.subscribe("$.content",this._observer)}update(t){if(!t.docChanged||t.transactions.length>0&&t.transactions[0].annotation(Dj)===this.conf)return;let n=0;this._doc.update((r,i)=>{t.changes.iterChanges((o,a,s,l,u)=>{r.content||(r.content=new II.Text);const c=u.sliceString(0,u.length,` +`),d=r.content.edit(o+n,a+n,c);n+=c.length-(a-o),d&&i.set({selection:r.content.indexRangeToPosRange(d)})})})}destroy(){this._unsubscribe()}}const mLe=ei.fromClass(hLe);class gLe{constructor(t,n){this.left=t,this.right=n}}const uE=(e,t)=>new gLe(e,t),bLe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Uu=typeof document<"u"?document:{},yLe=e=>Uu.createElement(e),OLe=()=>Uu.createDocumentFragment(),vLe=e=>Uu.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const ELe=(e,t)=>(bLe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),SLe=e=>{const t=OLe();for(let n=0;n(zJ(e,SLe(t)),e),XA=(e,t=[],n=[])=>TLe(ELe(yLe(e),t),n),cE=vLe,zJ=(e,t)=>e.appendChild(t);Uu.ELEMENT_NODE;Uu.TEXT_NODE;Uu.CDATA_SECTION_NODE;Uu.COMMENT_NODE;Uu.DOCUMENT_NODE;Uu.DOCUMENT_TYPE_NODE;Uu.DOCUMENT_FRAGMENT_NODE;const wLe=Ht.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"}}),kLe=Ul.define();class xLe extends Fu{constructor(n,r){super();Ko(this,"color");Ko(this,"name");this.color=n,this.name=r}toDOM(){return XA("span",[uE("class","cm-ySelectionCaret"),uE("style",`background-color: ${this.color}; border-color: ${this.color}`)],[cE("⁠"),XA("div",[uE("class","cm-ySelectionCaretDot")]),cE("⁠"),XA("div",[uE("class","cm-ySelectionInfo")],[cE(this.name)]),cE("⁠")])}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 CLe{constructor(t){Ko(this,"conf");Ko(this,"decorations");Ko(this,"unsubscribe");this.conf=t.state.facet(y3),this.unsubscribe=this.conf.doc.subscribe("others",n=>{const r=[];["presence-changed","unwatched"].includes(n.type)&&(this.conf.doc.getPresences().forEach(i=>{if(i.clientID===this.conf.client.getID()||i.presence.selection==null)return;const o=this.conf.doc.getRoot().content.posRangeToIndexRange(i.presence.selection),a=i.presence.color,s=i.presence.name,l=Math.min(o[0],o[1]),u=Math.max(o[0],o[1]),c=t.state.doc.lineAt(l),d=t.state.doc.lineAt(u);if(c.number===d.number)r.push({from:l,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{r.push({from:l,to:c.from+c.length,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),r.push({from:d.from,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let p=c.number+1;p0?-1:1,block:!1,widget:new xLe(a,s)})})}),this.decorations=ln.set(r,!0),t.dispatch({annotations:[kLe.of([])]}))}),this.decorations=Kn.of([])}destroy(){this.unsubscribe()}update(t){this.conf.doc.update((n,r)=>{const o=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(o&&n.content){const a=n.content.indexRangeToPosRange([o.anchor,o.head]);r.set({selection:a})}})}}const ALe=ei.fromClass(CLe,{decorations:e=>e.decorations});function _Le(e,t){const n=new pLe(e,t),r=[y3.of(n),mLe];return t&&r.push(wLe,ALe),r}function dE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RLe=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},ILe=e=>{const t=window.document.createElement("button");return t.classList.add("codemirror-toolbar__item"),t.dataset.item=e.key,t.title=e.label,t.innerHTML=`${e.icon||""}`,t},NLe=e=>{const t=window.document.createElement("div");t.classList.add("codemirror-toolbar");const n=window.document.createDocumentFragment();return n.append(...e.items.map(r=>"type"in r?RLe(r):ILe(r))),t.appendChild(n),t};class DLe{handleClick(t){const n=t.target;if(n&&n.tagName==="BUTTON"){const r=n.dataset.item;if(r){const i=this.handlers[r];if(i){t.preventDefault(),t.stopPropagation(),i(this.view);return}}}this.view.focus()}destroy(){this.element.remove()}constructor(t,n){dE(this,"view",void 0),dE(this,"element",void 0),dE(this,"config",void 0),dE(this,"handlers",void 0),this.view=t,this.handlers={},this.config={...n,items:n.items.map((i,o)=>{var s;if("type"in i)return{...i};const a=i.key||i.command.displayName||((s=i.command)==null?void 0:s.name)||`cmd_${o}`;return this.handlers[a]=i.command,{...i,key:a}})};const r=this.element=NLe(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const PLe=e=>ei.define(t=>new DLe(t,e)),LLe=Ht.baseTheme({".codemirror-toolbar":{display:"flex",padding:"4px 5px",backgroundColor:"rgb(245, 245, 245)",borderBottom:"1px solid rgb(221, 221, 221)"},".codemirror-toolbar__icon":{display:"inline-block",height:"1em",width:"1em",overflow:"visible"},".codemirror-toolbar__icon svg":{overflow:"visible",boxSizing:"content-box",height:"1em",width:"1em",verticalAlign:"-.125em"},".codemirror-toolbar__item":{display:"inline-flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",outline:"none",cursor:"pointer",borderRadius:"2px",height:"20px",width:"20px",transition:"all .3s"},".codemirror-toolbar__item:hover":{color:"#1EA7FD",backgroundColor:"rgba(30,167,253,0.12)"},".codemirror-toolbar__item > *":{pointerEvents:"none"},".codemirror-toolbar__split":{display:"inline-block",width:"1px",height:"20px",margin:"0 6px",backgroundColor:"rgb(221, 221, 221)"},".codemirror-toolbar__space":{display:"inline-block",flex:1}}),MLe=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="**"&&r==="**")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"**"},{from:n.to,insert:"**"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},$Le=e=>{const t=e.state.selection.main;if(t.from>=1){const n=e.state.sliceDoc(t.from-1,t.from),r=e.state.sliceDoc(t.to,t.to+1);if(n==="*"&&r==="*"&&(t.from<2||e.state.sliceDoc(t.from-1,t.from)!=="*"||e.state.sliceDoc(t.to,t.to+1)!=="*"||t.from>=3&&e.state.sliceDoc(t.from-3,t.from)==="***"&&e.state.sliceDoc(t.to,t.to+3)==="***"))return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"*"},{from:n.to,insert:"*"}],range:tt.range(n.from+1,n.to+1)}))),e.focus(),!0},FLe=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="~~"&&r==="~~")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"~~"},{from:n.to,insert:"~~"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},BLe=e=>{const t=e.state.selection.main;if(t.from>=3){const n=e.state.sliceDoc(t.from-3,t.from),r=e.state.sliceDoc(t.to,t.to+4);if(n===""&&r==="")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:""},{from:n.to,insert:""}],range:tt.range(n.from+3,n.to+3)}))),e.focus(),!0},ULe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(e.state.changeByRange(r=>{const i=n.lineAt(r.from),a=n.slice(r.from,r.to).lines,s=[];let l=r.from,u=r.to-r.from;return new Array(a).fill(0).forEach((c,d)=>{const p=n.line(i.number+d);p.text.startsWith("> ")||(s.push({from:p.from,insert:"> "}),d===0?l=l+2:u+=2)}),{changes:s,range:tt.range(l,l+u)}})),e.focus(),!0},jLe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`[${a}]()`,l=i+(a.length?3+a.length:1);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},zLe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`![${a}]()`,l=i+(a.length?3+a.length:2);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},jg=e=>t=>{const n=t.state,r="#".repeat(e)+" ";return t.dispatch(n.changeByRange(i=>{const o=n.doc.lineAt(i.from),a=o.text.replace(/^((#+) )?/,r),s=a.length-o.length;return{changes:{from:o.from,to:o.to,insert:a},range:tt.range(i.anchor+s,i.head+s)}})),t.focus(),!0},VLe=e=>{if(e=e&&e.trimStart(),!e)return;if(e.startsWith("- "))return e.startsWith("- [ ] ")||e.startsWith("- [x] ")?["todo"]:["ul"];const t=e.match(/^(\d+)\. /);if(t)return["ol",Number.parseInt(t[1],10)]},O3=e=>t=>{const{state:n}=t,{doc:r}=n;let i=1;return t.dispatch(t.state.changeByRange(o=>{const a=r.lineAt(o.from),l=r.slice(o.from,o.to).lines,u=[];let c=o.from,d=o.to-o.from;return new Array(l).fill(0).forEach((p,h)=>{const m=r.line(a.number+h),b=VLe(m.text);if(b&&b[0]===e){b[0]==="ol"&&b[1]&&(i=b[1]);return}const O=m.text.replace(RegExp("^((? *)(-( \\[[x ]])?|\\d+\\.) )?"),(...v)=>{const S=v[v.length-1],{space:k=""}=S;let C="- ";return e==="ol"?(C=`${i}. `,i++):e==="todo"&&(C="- [ ] "),k+C}),y=O.length-m.length;u.push({from:m.from,to:m.to,insert:O}),h===0?c=c+y:d=d+y}),{changes:u,range:tt.range(c,c+d)}})),t.focus(),!0},HLe=jg(1),WLe=jg(2),QLe=jg(3),YLe=jg(4),GLe=jg(5),qLe=jg(6),ZLe=O3("ul"),XLe=O3("ol"),KLe=O3("todo"),JLe={label:"Bold",icon:'',command:MLe},eMe={label:"Italic",icon:'',command:$Le},tMe={label:"Strike",icon:'',command:FLe},nMe={label:"Underline",icon:'',command:BLe},rMe={label:"H1",icon:'',command:HLe},iMe={label:"H2",icon:'',command:WLe},oMe={label:"H3",icon:'',command:QLe},aMe={label:"H4",icon:'',command:YLe},sMe={label:"H5",icon:'',command:GLe},lMe={label:"H6",icon:'',command:qLe},uMe={label:"Block Quote",icon:'',command:ULe},cMe={label:"Unordered List",icon:'',command:ZLe},dMe={label:"Ordered List",icon:'',command:XLe},fMe={label:"Todo List",icon:'',command:KLe},pMe={label:"Link",icon:'',command:jLe},hMe={label:"Image",icon:'',command:zLe},KA={type:"split"},mMe={type:"space"},gMe={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},bMe=[JLe,eMe,tMe,nMe,KA,rMe,iMe,oMe,aMe,sMe,lMe,KA,uMe,cMe,dMe,fMe,KA,pMe,hMe,mMe,gMe],yMe=e=>[PLe(e),LLe];var VJ=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),(n.background||n.foreground)&&(i["&"]=o),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 a={};n.gutterActiveForeground&&(a.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},a.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=a,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 s=Ht.theme(i,{dark:t==="dark"}),l=gO.define(r),u=[s,EX(l)];return u},OMe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function vMe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return VJ({theme:t,settings:L({},OMe,n),styles:[{tag:[he.comment,he.quote],color:"#707F8D"},{tag:[he.typeName,he.typeOperator],color:"#aa0d91"},{tag:[he.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#D23423"},{tag:[he.name],color:"#032f62"},{tag:[he.typeName],color:"#522BB2"},{tag:[he.variableName],color:"#23575C"},{tag:[he.definition(he.variableName)],color:"#327A9E"},{tag:[he.regexp,he.link],color:"#0e0eff"},...r]})}var EMe=vMe(),SMe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},TMe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return VJ({theme:t,settings:L({},SMe,n),styles:[{tag:[he.comment,he.quote],color:"#7F8C98"},{tag:[he.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#FF8170"},{tag:[he.typeName],color:"#DABAFF"},{tag:[he.definition(he.variableName)],color:"#6BDFFF"},{tag:[he.name],color:"#6BAA9F"},{tag:[he.variableName],color:"#ACF2E4"},{tag:[he.regexp,he.link],color:"#FF8170"},...r]})},wMe=TMe();function v3(){const e=Ig("(prefers-color-scheme: dark)"),t=Bl(zG);return I.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function Pj(){const e=v3(),[t,n]=I.useState(),r=Bl(Zk),i=I.useCallback(o=>{o&&n(o)},[]);return I.useEffect(()=>{var s;let o;if(!t||!r.doc||!r.client)return;const a=Zn.create({doc:((s=r.doc.getRoot().content)==null?void 0:s.toString())??"",extensions:[gDe,cLe(),_Le(r.doc,r.client),yMe({items:bMe}),e=="light"?EMe:wMe,Ht.theme({"&":{width:"100%"}}),Ht.lineWrapping,Lg.of([MIe])]});return o=new Ht({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),N.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}function l1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function E3(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const kMe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xMe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,CMe={};function Lj(e,t){return((t||CMe).jsx?xMe:kMe).test(e)}const AMe=/[ \t\n\f\r]/g;function HJ(e){return typeof e=="object"?e.type==="text"?Mj(e.value):!1:Mj(e)}function Mj(e){return e.replace(AMe,"")===""}class vO{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}vO.prototype.property={};vO.prototype.normal={};vO.prototype.space=null;function WJ(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&DMe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Fj,MMe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Fj.test(o)){let a=o.replace(PMe,LMe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=S3}return new i(r,t)}function LMe(e){return"-"+e.toLowerCase()}function MMe(e){return e.charAt(1).toUpperCase()}const $Me={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"},jp=WJ([GJ,YJ,XJ,KJ,IMe],"html"),ju=WJ([GJ,YJ,XJ,KJ,NMe],"svg");function u1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function T3(e){return e.join(" ").trim()}var JJ={},Bj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,FMe=/\n/g,BMe=/^\s*/,UMe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,jMe=/^:\s*/,zMe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,VMe=/^[;\s]*/,HMe=/^\s+|\s+$/g,WMe=` +`,Uj="/",jj="*",Ff="",QMe="comment",YMe="declaration",GMe=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(m){var b=m.match(FMe);b&&(n+=b.length);var O=m.lastIndexOf(WMe);r=~O?m.length-O:r+m.length}function o(){var m={line:n,column:r};return function(b){return b.position=new a(m),u(),b}}function a(m){this.start=m,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var O=b[0];return i(O),e=e.slice(O.length),b}}function u(){l(BMe)}function c(m){var b;for(m=m||[];b=d();)b!==!1&&m.push(b);return m}function d(){var m=o();if(!(Uj!=e.charAt(0)||jj!=e.charAt(1))){for(var b=2;Ff!=e.charAt(b)&&(jj!=e.charAt(b)||Uj!=e.charAt(b+1));)++b;if(b+=2,Ff===e.charAt(b-1))return s("End of comment missing");var O=e.slice(2,b-2);return r+=2,i(O),e=e.slice(b),r+=2,m({type:QMe,comment:O})}}function p(){var m=o(),b=l(UMe);if(b){if(d(),!l(jMe))return s("property missing ':'");var O=l(zMe),y=m({type:YMe,property:zj(b[0].replace(Bj,Ff)),value:O?zj(O[0].replace(Bj,Ff)):Ff});return l(VMe),y}}function h(){var m=[];c(m);for(var b;b=p();)b!==!1&&(m.push(b),c(m));return m}return u(),h()};function zj(e){return e?e.replace(HMe,Ff):Ff}var qMe=RS&&RS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(JJ,"__esModule",{value:!0});var ZMe=qMe(GMe);function XMe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,ZMe.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}var Vj=JJ.default=XMe;const KMe=Vj.default||Vj,dx=eee("end"),zu=eee("start");function eee(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 JMe(e){const t=zu(e),n=dx(e);if(t&&n)return{start:t,end:n}}function Vb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Hj(e.position):"start"in e||"end"in e?Hj(e):"line"in e||"column"in e?DI(e):""}function DI(e){return Wj(e&&e.line)+":"+Wj(e&&e.column)}function Hj(e){return DI(e&&e.start)+"-"+DI(e&&e.end)}function Wj(e){return e&&typeof e=="number"?e:1}class Ho extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Vb(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ho.prototype.file="";Ho.prototype.name="";Ho.prototype.reason="";Ho.prototype.message="";Ho.prototype.stack="";Ho.prototype.column=void 0;Ho.prototype.line=void 0;Ho.prototype.ancestors=void 0;Ho.prototype.cause=void 0;Ho.prototype.fatal=void 0;Ho.prototype.place=void 0;Ho.prototype.ruleId=void 0;Ho.prototype.source=void 0;const w3={}.hasOwnProperty,e4e=new Map,t4e=/[A-Z]/g,n4e=/-([a-z])/g,r4e=new Set(["table","tbody","thead","tfoot","tr"]),i4e=new Set(["td","th"]),tee="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function o4e(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=p4e(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=f4e(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"?ju:jp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=nee(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function nee(e,t,n){if(t.type==="element")return a4e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return s4e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return u4e(e,t,n);if(t.type==="mdxjsEsm")return l4e(e,t);if(t.type==="root")return c4e(e,t,n);if(t.type==="text")return d4e(e,t)}function a4e(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ju,e.schema=i),e.ancestors.push(t);const o=iee(e,t.tagName,!1),a=h4e(e,t);let s=x3(e,t);return r4e.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!HJ(l):!0})),ree(e,a,o,t),k3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function s4e(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)}c1(e,t.position)}function l4e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);c1(e,t.position)}function u4e(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ju,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:iee(e,t.name,!0),a=m4e(e,t),s=x3(e,t);return ree(e,a,o,t),k3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function c4e(e,t,n){const r={};return k3(r,x3(e,t)),e.create(t,e.Fragment,r,n)}function d4e(e,t){return t.value}function ree(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function k3(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function f4e(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function p4e(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=zu(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function h4e(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&w3.call(t.properties,i)){const o=g4e(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&i4e.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function m4e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else c1(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else c1(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function x3(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:e4e;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(fs(e,e.length,0,t),e):t}const Gj={}.hasOwnProperty;function aee(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 Il(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const x4e=pf(new RegExp("\\p{P}","u")),ia=pf(/[A-Za-z]/),Lo=pf(/[\dA-Za-z]/),C4e=pf(/[#-'*+\--9=?A-Z^-~]/);function tw(e){return e!==null&&(e<32||e===127)}const PI=pf(/\d/),A4e=pf(/[\dA-Fa-f]/),lee=pf(/[!-/:-@[-`{-~]/);function gn(e){return e!==null&&e<-2}function vr(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}function fx(e){return lee(e)||x4e(e)}const Ip=pf(/\s/);function pf(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Hg(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Jn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Un(l)?(e.enter(n),s(l)):t(l)}function s(l){return Un(l)&&o++a))return;const E=t.events.length;let $=E,P,_;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(P){_=t.events[$][1].end;break}P=!0}for(y(r),w=E;wS;){const C=n[k];t.containerState=C[1],C[0].exit.call(t,e)}n.length=S}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function D4e(e,t,n){return Jn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nw(e){if(e===null||vr(e)||Ip(e))return 1;if(fx(e))return 2}function px(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Zj(d,-l),Zj(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={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({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=$s(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=$s(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=$s(u,px(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=$s(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=$s(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,fs(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Un(w)?Jn(e,v,"linePrefix",o+1)(w):v(w)}function v(w){return w===null||gn(w)?e.check(Xj,b,k)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||gn(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),S)}function k(w){return e.exit("codeFenced"),t(w)}function C(w,E,$){let P=0;return _;function _(W){return w.enter("lineEnding"),w.consume(W),w.exit("lineEnding"),B}function B(W){return w.enter("codeFencedFence"),Un(W)?Jn(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):U(W)}function U(W){return W===s?(w.enter("codeFencedFenceSequence"),V(W)):$(W)}function V(W){return W===s?(P++,w.consume(W),V):P>=a?(w.exit("codeFencedFenceSequence"),Un(W)?Jn(w,z,"whitespace")(W):z(W)):$(W)}function z(W){return W===null||gn(W)?(w.exit("codeFencedFence"),E(W)):$(W)}}}function W4e(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const t2={name:"codeIndented",tokenize:Y4e},Q4e={tokenize:G4e,partial:!0};function Y4e(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Jn(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):gn(u)?e.attempt(Q4e,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||gn(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function G4e(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Jn(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):gn(a)?i(a):n(a)}}const q4e={name:"codeText",tokenize:K4e,resolve:Z4e,previous:X4e};function Z4e(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(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function pee(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||tw(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||gn(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function b(y){return!c&&(y===null||y===41||vr(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):gn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||gn(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Un(h)),h===92?p:d)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function mee(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===a?(e.exit(o),l(a)):p===null?n(p):gn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Jn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||gn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===a||p===92?(e.consume(p),c):c(p)}}function Hb(e,t){let n;return r;function r(i){return gn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Un(i)?Jn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const o5e={name:"definition",tokenize:s5e},a5e={tokenize:l5e,partial:!0};function s5e(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return hee.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Il(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return vr(h)?Hb(e,u)(h):u(h)}function u(h){return pee(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(a5e,d,d)(h)}function d(h){return Un(h)?Jn(e,p,"whitespace")(h):p(h)}function p(h){return h===null||gn(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function l5e(e,t,n){return r;function r(s){return vr(s)?Hb(e,i)(s):n(s)}function i(s){return mee(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Un(s)?Jn(e,a,"whitespace")(s):a(s)}function a(s){return s===null||gn(s)?t(s):n(s)}}const u5e={name:"hardBreakEscape",tokenize:c5e};function c5e(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return gn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const d5e={name:"headingAtx",tokenize:p5e,resolve:f5e};function f5e(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},fs(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function p5e(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||vr(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||gn(c)?(e.exit("atxHeading"),t(c)):Un(c)?Jn(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||vr(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const h5e=["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"],Jj=["pre","script","style","textarea"],m5e={name:"htmlFlow",tokenize:O5e,resolveTo:y5e,concrete:!0},g5e={tokenize:E5e,partial:!0},b5e={tokenize:v5e,partial:!0};function y5e(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 O5e(e,t,n){const r=this;let i,o,a,s,l;return u;function u(G){return c(G)}function c(G){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(G),d}function d(G){return G===33?(e.consume(G),p):G===47?(e.consume(G),o=!0,b):G===63?(e.consume(G),i=3,r.interrupt?t:j):ia(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function p(G){return G===45?(e.consume(G),i=2,h):G===91?(e.consume(G),i=5,s=0,m):ia(G)?(e.consume(G),i=4,r.interrupt?t:j):n(G)}function h(G){return G===45?(e.consume(G),r.interrupt?t:j):n(G)}function m(G){const ce="CDATA[";return G===ce.charCodeAt(s++)?(e.consume(G),s===ce.length?r.interrupt?t:U:m):n(G)}function b(G){return ia(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function O(G){if(G===null||G===47||G===62||vr(G)){const ce=G===47,ge=a.toLowerCase();return!ce&&!o&&Jj.includes(ge)?(i=1,r.interrupt?t(G):U(G)):h5e.includes(a.toLowerCase())?(i=6,ce?(e.consume(G),y):r.interrupt?t(G):U(G)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(G):o?v(G):S(G))}return G===45||Lo(G)?(e.consume(G),a+=String.fromCharCode(G),O):n(G)}function y(G){return G===62?(e.consume(G),r.interrupt?t:U):n(G)}function v(G){return Un(G)?(e.consume(G),v):_(G)}function S(G){return G===47?(e.consume(G),_):G===58||G===95||ia(G)?(e.consume(G),k):Un(G)?(e.consume(G),S):_(G)}function k(G){return G===45||G===46||G===58||G===95||Lo(G)?(e.consume(G),k):C(G)}function C(G){return G===61?(e.consume(G),w):Un(G)?(e.consume(G),C):S(G)}function w(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),l=G,E):Un(G)?(e.consume(G),w):$(G)}function E(G){return G===l?(e.consume(G),l=null,P):G===null||gn(G)?n(G):(e.consume(G),E)}function $(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||vr(G)?C(G):(e.consume(G),$)}function P(G){return G===47||G===62||Un(G)?S(G):n(G)}function _(G){return G===62?(e.consume(G),B):n(G)}function B(G){return G===null||gn(G)?U(G):Un(G)?(e.consume(G),B):n(G)}function U(G){return G===45&&i===2?(e.consume(G),X):G===60&&i===1?(e.consume(G),q):G===62&&i===4?(e.consume(G),se):G===63&&i===3?(e.consume(G),j):G===93&&i===5?(e.consume(G),Z):gn(G)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(g5e,ve,V)(G)):G===null||gn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(b5e,z,ve)(G)}function z(G){return e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),W}function W(G){return G===null||gn(G)?V(G):(e.enter("htmlFlowData"),U(G))}function X(G){return G===45?(e.consume(G),j):U(G)}function q(G){return G===47?(e.consume(G),a="",Y):U(G)}function Y(G){if(G===62){const ce=a.toLowerCase();return Jj.includes(ce)?(e.consume(G),se):U(G)}return ia(G)&&a.length<8?(e.consume(G),a+=String.fromCharCode(G),Y):U(G)}function Z(G){return G===93?(e.consume(G),j):U(G)}function j(G){return G===62?(e.consume(G),se):G===45&&i===2?(e.consume(G),j):U(G)}function se(G){return G===null||gn(G)?(e.exit("htmlFlowData"),ve(G)):(e.consume(G),se)}function ve(G){return e.exit("htmlFlow"),t(G)}}function v5e(e,t,n){const r=this;return i;function i(a){return gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function E5e(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(EO,t,n)}}const S5e={name:"htmlText",tokenize:T5e};function T5e(e,t,n){const r=this;let i,o,a;return s;function s(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),C):j===63?(e.consume(j),S):ia(j)?(e.consume(j),$):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),o=0,m):ia(j)?(e.consume(j),v):n(j)}function c(j){return j===45?(e.consume(j),h):n(j)}function d(j){return j===null?n(j):j===45?(e.consume(j),p):gn(j)?(a=d,q(j)):(e.consume(j),d)}function p(j){return j===45?(e.consume(j),h):d(j)}function h(j){return j===62?X(j):j===45?p(j):d(j)}function m(j){const se="CDATA[";return j===se.charCodeAt(o++)?(e.consume(j),o===se.length?b:m):n(j)}function b(j){return j===null?n(j):j===93?(e.consume(j),O):gn(j)?(a=b,q(j)):(e.consume(j),b)}function O(j){return j===93?(e.consume(j),y):b(j)}function y(j){return j===62?X(j):j===93?(e.consume(j),y):b(j)}function v(j){return j===null||j===62?X(j):gn(j)?(a=v,q(j)):(e.consume(j),v)}function S(j){return j===null?n(j):j===63?(e.consume(j),k):gn(j)?(a=S,q(j)):(e.consume(j),S)}function k(j){return j===62?X(j):S(j)}function C(j){return ia(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Lo(j)?(e.consume(j),w):E(j)}function E(j){return gn(j)?(a=E,q(j)):Un(j)?(e.consume(j),E):X(j)}function $(j){return j===45||Lo(j)?(e.consume(j),$):j===47||j===62||vr(j)?P(j):n(j)}function P(j){return j===47?(e.consume(j),X):j===58||j===95||ia(j)?(e.consume(j),_):gn(j)?(a=P,q(j)):Un(j)?(e.consume(j),P):X(j)}function _(j){return j===45||j===46||j===58||j===95||Lo(j)?(e.consume(j),_):B(j)}function B(j){return j===61?(e.consume(j),U):gn(j)?(a=B,q(j)):Un(j)?(e.consume(j),B):P(j)}function U(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,V):gn(j)?(a=U,q(j)):Un(j)?(e.consume(j),U):(e.consume(j),z)}function V(j){return j===i?(e.consume(j),i=void 0,W):j===null?n(j):gn(j)?(a=V,q(j)):(e.consume(j),V)}function z(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||vr(j)?P(j):(e.consume(j),z)}function W(j){return j===47||j===62||vr(j)?P(j):n(j)}function X(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function q(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),Y}function Y(j){return Un(j)?Jn(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Z(j)}function Z(j){return e.enter("htmlTextData"),a(j)}}const A3={name:"labelEnd",tokenize:_5e,resolveTo:A5e,resolveAll:C5e},w5e={tokenize:R5e},k5e={tokenize:I5e},x5e={tokenize:N5e};function C5e(e){let t=-1;for(;++t=3&&(u===null||gn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Un(u)?Jn(e,s,"whitespace")(u):s(u))}}const ga={name:"list",tokenize:j5e,continuation:{tokenize:z5e},exit:H5e},B5e={tokenize:W5e,partial:!0},U5e={tokenize:V5e,partial:!0};function j5e(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:PI(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(dS,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return PI(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(EO,r.interrupt?n:c,e.attempt(B5e,p,d))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function d(h){return Un(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function z5e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(EO,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Jn(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Un(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(U5e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Jn(e,e.attempt(ga,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function V5e(e,t,n){const r=this;return Jn(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function H5e(e){e.exit(this.containerState.type)}function W5e(e,t,n){const r=this;return Jn(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Un(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const ez={name:"setextUnderline",tokenize:Y5e,resolveTo:Q5e};function Q5e(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function Y5e(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Un(u)?Jn(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||gn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const G5e={tokenize:q5e};function q5e(e){const t=this,n=e.attempt(EO,r,e.attempt(this.parser.constructs.flowInitial,i,Jn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(e5e,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Z5e={resolveAll:bee()},X5e=gee("string"),K5e=gee("text");function gee(e){return{tokenize:t,resolveAll:bee(e==="text"?J5e:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function n$e(e,t){let n=-1;const r=[];let i;for(;++n0){const rt=de.tokenStack[de.tokenStack.length-1];(rt[1]||nz).call(de,void 0,rt[0])}for(fe.position={start:Yc(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Yc(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te0){const rt=de.tokenStack[de.tokenStack.length-1];(rt[1]||nz).call(de,void 0,rt[0])}for(fe.position={start:Yc(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Yc(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function _$e(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 R$e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function vee(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),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function I$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vee(e,t);const i={src:Hg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function D$e(e,t){const n={src:Hg(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 N$e(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 P$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vee(e,t);const i={href:Hg(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function L$e(e,t){const n={href:Hg(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 M$e(e,t,n){const r=e.all(t),i=n?$$e(n):Eee(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function _$e(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 R$e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function vee(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),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function I$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vee(e,t);const i={src:Hg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function N$e(e,t){const n={src:Hg(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 D$e(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 P$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vee(e,t);const i={href:Hg(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function L$e(e,t){const n={href:Hg(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 M$e(e,t,n){const r=e.all(t),i=n?$$e(n):Eee(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1}function F$e(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 a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=zu(t.children[1]),l=dx(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function V$e(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(oz(t.slice(i),i>0,!1)),o.join("")}function oz(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===rz||o===iz;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===rz||o===iz;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Q$e(e,t){const n={type:"text",value:W$e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Y$e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const G$e={blockquote:T$e,break:w$e,code:k$e,delete:x$e,emphasis:C$e,footnoteReference:A$e,heading:_$e,html:R$e,imageReference:I$e,image:D$e,inlineCode:N$e,linkReference:P$e,link:L$e,listItem:M$e,list:F$e,paragraph:B$e,root:U$e,strong:j$e,table:z$e,tableCell:H$e,tableRow:V$e,text:Q$e,thematicBreak:Y$e,toml:fE,yaml:fE,definition:fE,footnoteDefinition:fE};function fE(){}const See=-1,hx=0,rw=1,iw=2,_3=3,R3=4,I3=5,D3=6,Tee=7,wee=8,az=typeof self=="object"?self:globalThis,q$e=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case hx:case See:return n(a,i);case rw:{const s=n([],i);for(const l of a)s.push(r(l));return s}case iw:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case _3:return n(new Date(a),i);case R3:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case I3:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case D3:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case Tee:{const{name:s,message:l}=a;return n(new az[s](l),i)}case wee:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new az[o](a),i)};return r},sz=e=>q$e(new Map,e)(0),yh="",{toString:Z$e}={},{keys:X$e}=Object,z0=e=>{const t=typeof e;if(t!=="object"||!e)return[hx,t];const n=Z$e.call(e).slice(8,-1);switch(n){case"Array":return[rw,yh];case"Object":return[iw,yh];case"Date":return[_3,yh];case"RegExp":return[R3,yh];case"Map":return[I3,yh];case"Set":return[D3,yh]}return n.includes("Array")?[rw,n]:n.includes("Error")?[Tee,n]:[iw,n]},pE=([e,t])=>e===hx&&(t==="function"||t==="symbol"),K$e=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=z0(a);switch(s){case hx:{let c=a;switch(l){case"bigint":s=wee,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([See],a)}return i([s,c],a)}case rw:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const p of a)c.push(o(p));return d}case iw:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const p of X$e(a))(e||!pE(z0(a[p])))&&c.push([o(p),o(a[p])]);return d}case _3:return i([s,a.toISOString()],a);case R3:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case I3:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(pE(z0(p))||pE(z0(h))))&&c.push([o(p),o(h)]);return d}case D3:{const c=[],d=i([s,c],a);for(const p of a)(e||!pE(z0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},lz=(e,{json:t,lossy:n}={})=>{const r=[];return K$e(!(t||n),!!t,new Map,r)(e),r},Dp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?sz(lz(e,t)):structuredClone(e):(e,t)=>sz(lz(e,t));function J$e(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 eFe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function tFe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||J$e,r=e.options.footnoteBackLabel||eFe,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const O=c[c.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const v=O.children[O.children.length-1];v&&v.type==="text"?v.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...m)}else c.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Dp(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function $$e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function F$e(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 a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=zu(t.children[1]),l=dx(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function V$e(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(oz(t.slice(i),i>0,!1)),o.join("")}function oz(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===rz||o===iz;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===rz||o===iz;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Q$e(e,t){const n={type:"text",value:W$e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Y$e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const G$e={blockquote:T$e,break:w$e,code:k$e,delete:x$e,emphasis:C$e,footnoteReference:A$e,heading:_$e,html:R$e,imageReference:I$e,image:N$e,inlineCode:D$e,linkReference:P$e,link:L$e,listItem:M$e,list:F$e,paragraph:B$e,root:U$e,strong:j$e,table:z$e,tableCell:H$e,tableRow:V$e,text:Q$e,thematicBreak:Y$e,toml:fE,yaml:fE,definition:fE,footnoteDefinition:fE};function fE(){}const See=-1,hx=0,rw=1,iw=2,_3=3,R3=4,I3=5,N3=6,Tee=7,wee=8,az=typeof self=="object"?self:globalThis,q$e=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case hx:case See:return n(a,i);case rw:{const s=n([],i);for(const l of a)s.push(r(l));return s}case iw:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case _3:return n(new Date(a),i);case R3:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case I3:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case N3:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case Tee:{const{name:s,message:l}=a;return n(new az[s](l),i)}case wee:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new az[o](a),i)};return r},sz=e=>q$e(new Map,e)(0),yh="",{toString:Z$e}={},{keys:X$e}=Object,z0=e=>{const t=typeof e;if(t!=="object"||!e)return[hx,t];const n=Z$e.call(e).slice(8,-1);switch(n){case"Array":return[rw,yh];case"Object":return[iw,yh];case"Date":return[_3,yh];case"RegExp":return[R3,yh];case"Map":return[I3,yh];case"Set":return[N3,yh]}return n.includes("Array")?[rw,n]:n.includes("Error")?[Tee,n]:[iw,n]},pE=([e,t])=>e===hx&&(t==="function"||t==="symbol"),K$e=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=z0(a);switch(s){case hx:{let c=a;switch(l){case"bigint":s=wee,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([See],a)}return i([s,c],a)}case rw:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const p of a)c.push(o(p));return d}case iw:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const p of X$e(a))(e||!pE(z0(a[p])))&&c.push([o(p),o(a[p])]);return d}case _3:return i([s,a.toISOString()],a);case R3:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case I3:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(pE(z0(p))||pE(z0(h))))&&c.push([o(p),o(h)]);return d}case N3:{const c=[],d=i([s,c],a);for(const p of a)(e||!pE(z0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},lz=(e,{json:t,lossy:n}={})=>{const r=[];return K$e(!(t||n),!!t,new Map,r)(e),r},Np=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?sz(lz(e,t)):structuredClone(e):(e,t)=>sz(lz(e,t));function J$e(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 eFe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function tFe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||J$e,r=e.options.footnoteBackLabel||eFe,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const O=c[c.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const v=O.children[O.children.length-1];v&&v.type==="text"?v.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...m)}else c.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Np(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const SO=function(e){if(e==null)return oFe;if(typeof e=="function")return mx(e);if(typeof e=="object")return Array.isArray(e)?nFe(e):rFe(e);if(typeof e=="string")return iFe(e);throw new Error("Expected function, string, or object as test")};function nFe(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=kee,m,b,O;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=lFe(n(l,c)),h[0]===ow))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==Wb)for(b=(r?y.children.length:-1)+a,O=c.concat(y);b>-1&&b":""))+")"})}return p;function p(){let h=kee,m,b,O;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=lFe(n(l,c)),h[0]===ow))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==Wb)for(b=(r?y.children.length:-1)+a,O=c.concat(y);b>-1&&b0&&n.push({type:"text",value:` `}),n}function uz(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function cz(e,t){const n=cFe(e,t),r=n.one(e,void 0),i=tFe(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` -`},i),o}function mFe(e,t){return e&&"run"in e?async function(n,r){const i=cz(n,{file:r,...t});await e.run(i,r)}:function(n,r){return cz(n,{file:r,...t||e})}}function dz(e){if(e)throw e}var fS=Object.prototype.hasOwnProperty,Cee=Object.prototype.toString,fz=Object.defineProperty,pz=Object.getOwnPropertyDescriptor,hz=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Cee.call(t)==="[object Array]"},mz=function(t){if(!t||Cee.call(t)!=="[object Object]")return!1;var n=fS.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&fS.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||fS.call(t,i)},gz=function(t,n){fz&&n.name==="__proto__"?fz(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bz=function(t,n){if(n==="__proto__")if(fS.call(t,n)){if(pz)return pz(t,n).value}else return;return t[n]},gFe=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const au={basename:OFe,dirname:vFe,extname:EFe,join:SFe,sep:"/"};function OFe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');TO(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function vFe(e){if(TO(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 EFe(e){TO(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function SFe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function wFe(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){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=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function TO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kFe={cwd:xFe};function xFe(){return"/"}function FI(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function CFe(e){if(typeof e=="string")e=new URL(e);else if(!FI(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 AFe(e)}function AFe(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[h,...m]=c;const b=r[p][1];$I(b)&&$I(h)&&(h=r2(!0,b,h)),r[p]=[u,h,...m]}}}}const DFe=new N3().freeze();function s2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function l2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function u2(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 Oz(e){if(!$I(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vz(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hE(e){return NFe(e)?e:new Aee(e)}function NFe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function PFe(e){return typeof e=="string"||LFe(e)}function LFe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const MFe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ez=[],Sz={allowDangerousHtml:!0},$Fe=/^(https?|ircs?|mailto|xmpp)$/i,FFe=[{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 BFe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Ez,l=e.remarkPlugins||Ez,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sz}:Sz,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||UFe,h=DFe().use(S$e).use(l).use(mFe,u).use(s),m=new Aee;typeof r=="string"&&(m.value=r);for(const v of FFe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+MFe+v.id,void 0);const b=h.parse(m);let O=h.runSync(b,m);return i&&(O={type:"element",tagName:"div",properties:{className:i},children:O.type==="root"?O.children:[O]}),Na(O,y),o4e(O,{Fragment:D.Fragment,components:o,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function y(v,S,k){if(v.type==="raw"&&k&&typeof S=="number")return c?k.children.splice(S,1):k.children[S]={type:"text",value:v.value},S;if(v.type==="element"){let C;for(C in e2)if(Object.hasOwn(e2,C)&&Object.hasOwn(v.properties,C)){const w=v.properties[C],E=e2[C];(E===null||E.includes(v.tagName))&&(v.properties[C]=p(String(w||""),C,v))}}if(v.type==="element"){let C=t?!t.includes(v.tagName):a?a.includes(v.tagName):!1;if(!C&&n&&typeof S=="number"&&(C=!n(v,S,k)),C&&k&&typeof S=="number")return d&&v.children?k.children.splice(S,1,...v.children):k.children.splice(S,1),S}}}function UFe(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||$Fe.test(e.slice(0,t))?e:""}function Tz(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 jFe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zFe(e,t,n){const i=SO((n||{}).ignore||[]),o=VFe(t);let a=-1;for(;++a0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=k+1:(m!==k&&v.push({type:"text",value:u.value.slice(m,k)}),Array.isArray(w)?v.push(...w):w&&v.push(w),m=k+S[0].length,y=!0),!p.global)break;S=p.exec(u.value)}return y?(m?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Tz(e,"(");let o=Tz(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function _ee(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ip(n)||fx(n))&&(!t||n!==47)}Ree.peek=h6e;function i6e(){return{enter:{gfmFootnoteDefinition:a6e,gfmFootnoteDefinitionLabelString:s6e,gfmFootnoteCall:c6e,gfmFootnoteCallString:d6e},exit:{gfmFootnoteDefinition:u6e,gfmFootnoteDefinitionLabelString:l6e,gfmFootnoteCall:p6e,gfmFootnoteCallString:f6e}}}function o6e(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:m6e,footnoteReference:Ree}}}function a6e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function s6e(){this.buffer()}function l6e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Il(this.sliceSerialize(e)).toLowerCase()}function u6e(e){this.exit(e)}function c6e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function d6e(){this.buffer()}function f6e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Il(this.sliceSerialize(e)).toLowerCase()}function p6e(e){this.exit(e)}function Ree(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function h6e(){return"["}function m6e(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),g6e)),a(),o}function g6e(e,t,n){return t===0?e:(n?"":" ")+e}const b6e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Iee.peek=S6e;function y6e(){return{canContainEols:["delete"],enter:{strikethrough:v6e},exit:{strikethrough:E6e}}}function O6e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:b6e}],handlers:{delete:Iee}}}function v6e(e){this.enter({type:"delete",children:[]},e)}function E6e(e){this.exit(e)}function Iee(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function S6e(){return"~"}function T6e(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||k6e,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Os[O])&&(s[O]=v)}m.push(y)}o[u]=m,a[u]=b}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=y),p[c]=y),d[c]=v}o.splice(1,0,d),a.splice(1,0,p),u=-1;const h=[];for(;++u"u"||fS.call(t,i)},gz=function(t,n){fz&&n.name==="__proto__"?fz(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bz=function(t,n){if(n==="__proto__")if(fS.call(t,n)){if(pz)return pz(t,n).value}else return;return t[n]},gFe=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const au={basename:OFe,dirname:vFe,extname:EFe,join:SFe,sep:"/"};function OFe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');TO(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function vFe(e){if(TO(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 EFe(e){TO(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function SFe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function wFe(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){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=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function TO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kFe={cwd:xFe};function xFe(){return"/"}function FI(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function CFe(e){if(typeof e=="string")e=new URL(e);else if(!FI(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 AFe(e)}function AFe(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[h,...m]=c;const b=r[p][1];$I(b)&&$I(h)&&(h=r2(!0,b,h)),r[p]=[u,h,...m]}}}}const NFe=new D3().freeze();function s2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function l2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function u2(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 Oz(e){if(!$I(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vz(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hE(e){return DFe(e)?e:new Aee(e)}function DFe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function PFe(e){return typeof e=="string"||LFe(e)}function LFe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const MFe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ez=[],Sz={allowDangerousHtml:!0},$Fe=/^(https?|ircs?|mailto|xmpp)$/i,FFe=[{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 BFe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Ez,l=e.remarkPlugins||Ez,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sz}:Sz,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||UFe,h=NFe().use(S$e).use(l).use(mFe,u).use(s),m=new Aee;typeof r=="string"&&(m.value=r);for(const v of FFe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+MFe+v.id,void 0);const b=h.parse(m);let O=h.runSync(b,m);return i&&(O={type:"element",tagName:"div",properties:{className:i},children:O.type==="root"?O.children:[O]}),Da(O,y),o4e(O,{Fragment:N.Fragment,components:o,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function y(v,S,k){if(v.type==="raw"&&k&&typeof S=="number")return c?k.children.splice(S,1):k.children[S]={type:"text",value:v.value},S;if(v.type==="element"){let C;for(C in e2)if(Object.hasOwn(e2,C)&&Object.hasOwn(v.properties,C)){const w=v.properties[C],E=e2[C];(E===null||E.includes(v.tagName))&&(v.properties[C]=p(String(w||""),C,v))}}if(v.type==="element"){let C=t?!t.includes(v.tagName):a?a.includes(v.tagName):!1;if(!C&&n&&typeof S=="number"&&(C=!n(v,S,k)),C&&k&&typeof S=="number")return d&&v.children?k.children.splice(S,1,...v.children):k.children.splice(S,1),S}}}function UFe(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||$Fe.test(e.slice(0,t))?e:""}function Tz(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 jFe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zFe(e,t,n){const i=SO((n||{}).ignore||[]),o=VFe(t);let a=-1;for(;++a0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=k+1:(m!==k&&v.push({type:"text",value:u.value.slice(m,k)}),Array.isArray(w)?v.push(...w):w&&v.push(w),m=k+S[0].length,y=!0),!p.global)break;S=p.exec(u.value)}return y?(m?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Tz(e,"(");let o=Tz(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function _ee(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ip(n)||fx(n))&&(!t||n!==47)}Ree.peek=h6e;function i6e(){return{enter:{gfmFootnoteDefinition:a6e,gfmFootnoteDefinitionLabelString:s6e,gfmFootnoteCall:c6e,gfmFootnoteCallString:d6e},exit:{gfmFootnoteDefinition:u6e,gfmFootnoteDefinitionLabelString:l6e,gfmFootnoteCall:p6e,gfmFootnoteCallString:f6e}}}function o6e(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:m6e,footnoteReference:Ree}}}function a6e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function s6e(){this.buffer()}function l6e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Il(this.sliceSerialize(e)).toLowerCase()}function u6e(e){this.exit(e)}function c6e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function d6e(){this.buffer()}function f6e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Il(this.sliceSerialize(e)).toLowerCase()}function p6e(e){this.exit(e)}function Ree(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function h6e(){return"["}function m6e(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),g6e)),a(),o}function g6e(e,t,n){return t===0?e:(n?"":" ")+e}const b6e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Iee.peek=S6e;function y6e(){return{canContainEols:["delete"],enter:{strikethrough:v6e},exit:{strikethrough:E6e}}}function O6e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:b6e}],handlers:{delete:Iee}}}function v6e(e){this.enter({type:"delete",children:[]},e)}function E6e(e){this.exit(e)}function Iee(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function S6e(){return"~"}function T6e(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||k6e,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Os[O])&&(s[O]=v)}m.push(y)}o[u]=m,a[u]=b}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=y),p[c]=y),d[c]=v}o.splice(1,0,d),a.splice(1,0,p),u=-1;const h=[];for(;++u "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),C6e);return i(),a}function C6e(e,t,n){return">"+(n?"":" ")+e}function A6e(e,t){return xz(e,t.inConstruct,!0)&&!xz(e,t.notInConstruct,!1)}function xz(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ra&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function R6e(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 I6e(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 D6e(e,t,n,r){const i=I6e(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(R6e(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,N6e);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(_6e(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:` +`}function _6e(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function R6e(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 I6e(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 N6e(e,t,n,r){const i=I6e(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(R6e(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,D6e);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(_6e(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:` `,encode:["`"],...s.current()})),d()}return c+=s.move(` `),o&&(c+=s.move(o+` -`)),c+=s.move(l),u(),c}function N6e(e,t,n){return(n?"":" ")+e}function L3(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 P6e(e,t,n,r){const i=L3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` -`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function L6e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Dee.peek=M6e;function Dee(e,t,n,r){const i=L6e(n),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function M6e(e,t,n){return n.options.emphasis||"*"}function $6e(e,t){let n=!1;return Na(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ow}),!!((!e.depth||e.depth<3)&&C3(e)&&(t.options.setext||n))}function F6e(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if($6e(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:` +`)),c+=s.move(l),u(),c}function D6e(e,t,n){return(n?"":" ")+e}function L3(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 P6e(e,t,n,r){const i=L3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function L6e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Nee.peek=M6e;function Nee(e,t,n,r){const i=L6e(n),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function M6e(e,t,n){return n.options.emphasis||"*"}function $6e(e,t){let n=!1;return Da(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ow}),!!((!e.depth||e.depth<3)&&C3(e)&&(t.options.setext||n))}function F6e(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if($6e(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:` `,after:` `});return d(),c(),p+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:` -`,...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}Nee.peek=B6e;function Nee(e){return e.value||""}function B6e(){return"<"}Pee.peek=U6e;function Pee(e,t,n,r){const i=L3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function U6e(){return"!"}Lee.peek=j6e;function Lee(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function j6e(){return"!"}Mee.peek=z6e;function Mee(e,t,n){let r=e.value||"",i="`",o=-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+" ");++o\u007F]/.test(e.url))}Fee.peek=V6e;function Fee(e,t,n,r){const i=L3(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if($ee(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function V6e(e,t,n){return $ee(e,n)?"<":"["}Bee.peek=H6e;function Bee(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function H6e(){return"["}function M3(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 W6e(e){const t=M3(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 Q6e(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 Uee(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 Y6e(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?Q6e(n):M3(n);const s=e.ordered?a==="."?")":".":W6e(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.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),Uee(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,p,h){return p?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}function Z6e(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const X6e=SO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function K6e(e,t,n,r){return(e.children.some(function(a){return X6e(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function J6e(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}jee.peek=eBe;function jee(e,t,n,r){const i=J6e(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}function eBe(e,t,n){return n.options.strong||"*"}function tBe(e,t,n,r){return n.safe(e.value,r)}function nBe(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 rBe(e,t,n){const r=(Uee(n)+(n.options.ruleSpaces?" ":"")).repeat(nBe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const zee={blockquote:x6e,break:Cz,code:D6e,definition:P6e,emphasis:Dee,hardBreak:Cz,heading:F6e,html:Nee,image:Pee,imageReference:Lee,inlineCode:Mee,link:Fee,linkReference:Bee,list:Y6e,listItem:q6e,paragraph:Z6e,root:K6e,strong:jee,text:tBe,thematicBreak:rBe};function iBe(){return{enter:{table:oBe,tableData:Az,tableHeader:Az,tableRow:sBe},exit:{codeText:lBe,table:aBe,tableData:p2,tableHeader:p2,tableRow:p2}}}function oBe(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 aBe(e){this.exit(e),this.data.inTable=void 0}function sBe(e){this.enter({type:"tableRow",children:[]},e)}function p2(e){this.exit(e)}function Az(e){this.enter({type:"tableCell",children:[]},e)}function lBe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,uBe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function uBe(e,t){return t==="|"?t:e}function cBe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}Dee.peek=B6e;function Dee(e){return e.value||""}function B6e(){return"<"}Pee.peek=U6e;function Pee(e,t,n,r){const i=L3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function U6e(){return"!"}Lee.peek=j6e;function Lee(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function j6e(){return"!"}Mee.peek=z6e;function Mee(e,t,n){let r=e.value||"",i="`",o=-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+" ");++o\u007F]/.test(e.url))}Fee.peek=V6e;function Fee(e,t,n,r){const i=L3(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if($ee(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function V6e(e,t,n){return $ee(e,n)?"<":"["}Bee.peek=H6e;function Bee(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function H6e(){return"["}function M3(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 W6e(e){const t=M3(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 Q6e(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 Uee(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 Y6e(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?Q6e(n):M3(n);const s=e.ordered?a==="."?")":".":W6e(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.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),Uee(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,p,h){return p?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}function Z6e(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const X6e=SO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function K6e(e,t,n,r){return(e.children.some(function(a){return X6e(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function J6e(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}jee.peek=eBe;function jee(e,t,n,r){const i=J6e(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}function eBe(e,t,n){return n.options.strong||"*"}function tBe(e,t,n,r){return n.safe(e.value,r)}function nBe(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 rBe(e,t,n){const r=(Uee(n)+(n.options.ruleSpaces?" ":"")).repeat(nBe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const zee={blockquote:x6e,break:Cz,code:N6e,definition:P6e,emphasis:Nee,hardBreak:Cz,heading:F6e,html:Dee,image:Pee,imageReference:Lee,inlineCode:Mee,link:Fee,linkReference:Bee,list:Y6e,listItem:q6e,paragraph:Z6e,root:K6e,strong:jee,text:tBe,thematicBreak:rBe};function iBe(){return{enter:{table:oBe,tableData:Az,tableHeader:Az,tableRow:sBe},exit:{codeText:lBe,table:aBe,tableData:p2,tableHeader:p2,tableRow:p2}}}function oBe(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 aBe(e){this.exit(e),this.data.inTable=void 0}function sBe(e){this.enter({type:"tableRow",children:[]},e)}function p2(e){this.exit(e)}function Az(e){this.enter({type:"tableCell",children:[]},e)}function lBe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,uBe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function uBe(e,t){return t==="|"?t:e}function cBe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=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:a,tableCell:l,tableRow:s}};function a(h,m,b,O){return u(c(h,b,O),h.align)}function s(h,m,b,O){const y=d(h,b,O),v=u([y]);return v.slice(0,v.indexOf(` -`))}function l(h,m,b,O){const y=b.enter("tableCell"),v=b.enter("phrasing"),S=b.containerPhrasing(h,{...O,before:o,after:o});return v(),y(),S}function u(h,m){return T6e(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(h,m,b){const O=h.children;let y=-1;const v=[],S=m.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const ABe={tokenize:MBe,partial:!0};function _Be(){return{document:{91:{tokenize:NBe,continuation:{tokenize:PBe},exit:LBe}},text:{91:{tokenize:DBe},93:{add:"after",tokenize:RBe,resolveTo:IBe}}}}function RBe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Il(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function IBe(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function DBe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||vr(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Il(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vr(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function NBe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(a>999||m===93&&!s||m===null||m===91||vr(m))return n(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=Il(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return vr(m)||(s=!0),a++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Jn(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function PBe(e,t,n){return e.check(EO,t,e.attempt(ABe,t,n))}function LBe(e){e.exit("gfmFootnoteDefinition")}function MBe(e,t,n){const r=this;return Jn(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function $Be(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(m):(a.consume(m),d++,h);if(d<2&&!n)return l(m);const O=a.exit("strikethroughSequenceTemporary"),y=nw(m);return O._open=!y||y===2&&!!b,O._close=!b||b===2&&!!y,s(m)}}}class FBe{constructor(){this.map=[]}add(t,n,r){BBe(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[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 BBe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const z=r.events[B][1].type;if(z==="lineEnding"||z==="linePrefix")B--;else break}const U=B>-1?r.events[B][1].type:null,V=U==="tableHead"||U==="tableRow"?w:l;return V===w&&r.parser.lazy[r.now().line]?n(_):V(_)}function l(_){return e.enter("tableHead"),e.enter("tableRow"),u(_)}function u(_){return _===124||(a=!0,o+=1),c(_)}function c(_){return _===null?n(_):gn(_)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),h):n(_):Un(_)?Jn(e,c,"whitespace")(_):(o+=1,a&&(a=!1,i+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(_)))}function d(_){return _===null||_===124||vr(_)?(e.exit("data"),c(_)):(e.consume(_),_===92?p:d)}function p(_){return _===92||_===124?(e.consume(_),d):d(_)}function h(_){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(_):(e.enter("tableDelimiterRow"),a=!1,Un(_)?Jn(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):m(_))}function m(_){return _===45||_===58?O(_):_===124?(a=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),b):C(_)}function b(_){return Un(_)?Jn(e,O,"whitespace")(_):O(_)}function O(_){return _===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),y):_===45?(o+=1,y(_)):_===null||gn(_)?k(_):C(_)}function y(_){return _===45?(e.enter("tableDelimiterFiller"),v(_)):C(_)}function v(_){return _===45?(e.consume(_),v):_===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(_))}function S(_){return Un(_)?Jn(e,k,"whitespace")(_):k(_)}function k(_){return _===124?m(_):_===null||gn(_)?!a||i!==o?C(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):C(_)}function C(_){return n(_)}function w(_){return e.enter("tableRow"),E(_)}function E(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),E):_===null||gn(_)?(e.exit("tableRow"),t(_)):Un(_)?Jn(e,E,"whitespace")(_):(e.enter("data"),$(_))}function $(_){return _===null||_===124||vr(_)?(e.exit("data"),E(_)):(e.consume(_),_===92?P:$)}function P(_){return _===92||_===124?(e.consume(_),$):$(_)}}function VBe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const p=new FBe;for(;++nn[2]+1){const m=n[2]+1,b=n[3]-n[2]-1;e.add(m,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Ih(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Rz(e,t,n,r,i){const o=[],a=Ih(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ih(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const HBe={tokenize:QBe};function WBe(){return{text:{91:HBe}}}function QBe(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"),o)}function o(l){return vr(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return gn(l)?t(l):Un(l)?e.check({tokenize:YBe},t,n)(l):n(l)}}function YBe(e,t,n){return Jn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function GBe(e){return aee([OBe(),_Be(),$Be(e),jBe(),WBe()])}const qBe={};function ZBe(e){const t=this,n=e||qBe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(GBe(n)),o.push(mBe()),a.push(gBe(n))}const Iz=/[#.]/g;function XBe(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&oo)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o}}}function i(o){const a=o&&o.line,s=o&&o.column;if(typeof a=="number"&&typeof s=="number"&&!Number.isNaN(a)&&!Number.isNaN(s)&&a-1 in n){const l=(n[a-2]||0)+s-1||0;if(l>-1&&l=55296&&e<=57343}function T8e(e){return e>=56320&&e<=57343}function w8e(e,t){return(e-55296)*1024+9216+t}function nte(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function rte(e){return e>=64976&&e<=65007||S8e.has(e)}var Xe;(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"})(Xe=Xe||(Xe={}));const k8e=65536;class x8e{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=k8e,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(T8e(n))return this.pos++,this._addGap(),w8e(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Xe.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,ne.EOF;const r=this.html.charCodeAt(n);return r===ne.CARRIAGE_RETURN?ne.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,ne.EOF;let t=this.html.charCodeAt(this.pos);return t===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):t===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,tte(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ne.LINE_FEED||t===ne.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){nte(t)?this._err(Xe.controlCharacterInInputStream):rte(t)&&this._err(Xe.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 Zc=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))),C8e=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var m2;const A8e=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]]),_8e=(m2=String.fromCodePoint)!==null&&m2!==void 0?m2: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 R8e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=A8e.get(e))!==null&&t!==void 0?t:e}var Xi;(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"})(Xi||(Xi={}));const I8e=32;var Su;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Su||(Su={}));function zI(e){return e>=Xi.ZERO&&e<=Xi.NINE}function D8e(e){return e>=Xi.UPPER_A&&e<=Xi.UPPER_F||e>=Xi.LOWER_A&&e<=Xi.LOWER_F}function N8e(e){return e>=Xi.UPPER_A&&e<=Xi.UPPER_Z||e>=Xi.LOWER_A&&e<=Xi.LOWER_Z||zI(e)}function P8e(e){return e===Xi.EQUALS||N8e(e)}var Qi;(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"})(Qi||(Qi={}));var Bf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Bf||(Bf={}));class L8e{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Qi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Bf.Strict}startEntity(t){this.decodeMode=t,this.state=Qi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Qi.EntityStart:return t.charCodeAt(n)===Xi.NUM?(this.state=Qi.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Qi.NamedEntity,this.stateNamedEntity(t,n));case Qi.NumericStart:return this.stateNumericStart(t,n);case Qi.NumericDecimal:return this.stateNumericDecimal(t,n);case Qi.NumericHex:return this.stateNumericHex(t,n);case Qi.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|I8e)===Xi.LOWER_X?(this.state=Qi.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Qi.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===Xi.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Bf.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]&Su.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]&~Su.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Qi.NamedEntity:return this.result!==0&&(this.decodeMode!==Bf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qi.NumericDecimal:return this.emitNumericEntity(0,2);case Qi.NumericHex:return this.emitNumericEntity(0,3);case Qi.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qi.EntityStart:return 0}}}function ote(e){let t="";const n=new L8e(e,r=>t+=_8e(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function ate(e,t,n,r){const i=(t&Su.BRANCH_LENGTH)>>7,o=t&Su.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}ote(Zc);ote(C8e);var st;(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/"})(st=st||(st={}));var $d;(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"})($d=$d||($d={}));var ns;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ns=ns||(ns={}));var Fe;(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"})(Fe=Fe||(Fe={}));var N;(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"})(N=N||(N={}));const M8e=new Map([[Fe.A,N.A],[Fe.ADDRESS,N.ADDRESS],[Fe.ANNOTATION_XML,N.ANNOTATION_XML],[Fe.APPLET,N.APPLET],[Fe.AREA,N.AREA],[Fe.ARTICLE,N.ARTICLE],[Fe.ASIDE,N.ASIDE],[Fe.B,N.B],[Fe.BASE,N.BASE],[Fe.BASEFONT,N.BASEFONT],[Fe.BGSOUND,N.BGSOUND],[Fe.BIG,N.BIG],[Fe.BLOCKQUOTE,N.BLOCKQUOTE],[Fe.BODY,N.BODY],[Fe.BR,N.BR],[Fe.BUTTON,N.BUTTON],[Fe.CAPTION,N.CAPTION],[Fe.CENTER,N.CENTER],[Fe.CODE,N.CODE],[Fe.COL,N.COL],[Fe.COLGROUP,N.COLGROUP],[Fe.DD,N.DD],[Fe.DESC,N.DESC],[Fe.DETAILS,N.DETAILS],[Fe.DIALOG,N.DIALOG],[Fe.DIR,N.DIR],[Fe.DIV,N.DIV],[Fe.DL,N.DL],[Fe.DT,N.DT],[Fe.EM,N.EM],[Fe.EMBED,N.EMBED],[Fe.FIELDSET,N.FIELDSET],[Fe.FIGCAPTION,N.FIGCAPTION],[Fe.FIGURE,N.FIGURE],[Fe.FONT,N.FONT],[Fe.FOOTER,N.FOOTER],[Fe.FOREIGN_OBJECT,N.FOREIGN_OBJECT],[Fe.FORM,N.FORM],[Fe.FRAME,N.FRAME],[Fe.FRAMESET,N.FRAMESET],[Fe.H1,N.H1],[Fe.H2,N.H2],[Fe.H3,N.H3],[Fe.H4,N.H4],[Fe.H5,N.H5],[Fe.H6,N.H6],[Fe.HEAD,N.HEAD],[Fe.HEADER,N.HEADER],[Fe.HGROUP,N.HGROUP],[Fe.HR,N.HR],[Fe.HTML,N.HTML],[Fe.I,N.I],[Fe.IMG,N.IMG],[Fe.IMAGE,N.IMAGE],[Fe.INPUT,N.INPUT],[Fe.IFRAME,N.IFRAME],[Fe.KEYGEN,N.KEYGEN],[Fe.LABEL,N.LABEL],[Fe.LI,N.LI],[Fe.LINK,N.LINK],[Fe.LISTING,N.LISTING],[Fe.MAIN,N.MAIN],[Fe.MALIGNMARK,N.MALIGNMARK],[Fe.MARQUEE,N.MARQUEE],[Fe.MATH,N.MATH],[Fe.MENU,N.MENU],[Fe.META,N.META],[Fe.MGLYPH,N.MGLYPH],[Fe.MI,N.MI],[Fe.MO,N.MO],[Fe.MN,N.MN],[Fe.MS,N.MS],[Fe.MTEXT,N.MTEXT],[Fe.NAV,N.NAV],[Fe.NOBR,N.NOBR],[Fe.NOFRAMES,N.NOFRAMES],[Fe.NOEMBED,N.NOEMBED],[Fe.NOSCRIPT,N.NOSCRIPT],[Fe.OBJECT,N.OBJECT],[Fe.OL,N.OL],[Fe.OPTGROUP,N.OPTGROUP],[Fe.OPTION,N.OPTION],[Fe.P,N.P],[Fe.PARAM,N.PARAM],[Fe.PLAINTEXT,N.PLAINTEXT],[Fe.PRE,N.PRE],[Fe.RB,N.RB],[Fe.RP,N.RP],[Fe.RT,N.RT],[Fe.RTC,N.RTC],[Fe.RUBY,N.RUBY],[Fe.S,N.S],[Fe.SCRIPT,N.SCRIPT],[Fe.SECTION,N.SECTION],[Fe.SELECT,N.SELECT],[Fe.SOURCE,N.SOURCE],[Fe.SMALL,N.SMALL],[Fe.SPAN,N.SPAN],[Fe.STRIKE,N.STRIKE],[Fe.STRONG,N.STRONG],[Fe.STYLE,N.STYLE],[Fe.SUB,N.SUB],[Fe.SUMMARY,N.SUMMARY],[Fe.SUP,N.SUP],[Fe.TABLE,N.TABLE],[Fe.TBODY,N.TBODY],[Fe.TEMPLATE,N.TEMPLATE],[Fe.TEXTAREA,N.TEXTAREA],[Fe.TFOOT,N.TFOOT],[Fe.TD,N.TD],[Fe.TH,N.TH],[Fe.THEAD,N.THEAD],[Fe.TITLE,N.TITLE],[Fe.TR,N.TR],[Fe.TRACK,N.TRACK],[Fe.TT,N.TT],[Fe.U,N.U],[Fe.UL,N.UL],[Fe.SVG,N.SVG],[Fe.VAR,N.VAR],[Fe.WBR,N.WBR],[Fe.XMP,N.XMP]]);function Qg(e){var t;return(t=M8e.get(e))!==null&&t!==void 0?t:N.UNKNOWN}const bt=N,$8e={[st.HTML]:new Set([bt.ADDRESS,bt.APPLET,bt.AREA,bt.ARTICLE,bt.ASIDE,bt.BASE,bt.BASEFONT,bt.BGSOUND,bt.BLOCKQUOTE,bt.BODY,bt.BR,bt.BUTTON,bt.CAPTION,bt.CENTER,bt.COL,bt.COLGROUP,bt.DD,bt.DETAILS,bt.DIR,bt.DIV,bt.DL,bt.DT,bt.EMBED,bt.FIELDSET,bt.FIGCAPTION,bt.FIGURE,bt.FOOTER,bt.FORM,bt.FRAME,bt.FRAMESET,bt.H1,bt.H2,bt.H3,bt.H4,bt.H5,bt.H6,bt.HEAD,bt.HEADER,bt.HGROUP,bt.HR,bt.HTML,bt.IFRAME,bt.IMG,bt.INPUT,bt.LI,bt.LINK,bt.LISTING,bt.MAIN,bt.MARQUEE,bt.MENU,bt.META,bt.NAV,bt.NOEMBED,bt.NOFRAMES,bt.NOSCRIPT,bt.OBJECT,bt.OL,bt.P,bt.PARAM,bt.PLAINTEXT,bt.PRE,bt.SCRIPT,bt.SECTION,bt.SELECT,bt.SOURCE,bt.STYLE,bt.SUMMARY,bt.TABLE,bt.TBODY,bt.TD,bt.TEMPLATE,bt.TEXTAREA,bt.TFOOT,bt.TH,bt.THEAD,bt.TITLE,bt.TR,bt.TRACK,bt.UL,bt.WBR,bt.XMP]),[st.MATHML]:new Set([bt.MI,bt.MO,bt.MN,bt.MS,bt.MTEXT,bt.ANNOTATION_XML]),[st.SVG]:new Set([bt.TITLE,bt.FOREIGN_OBJECT,bt.DESC]),[st.XLINK]:new Set,[st.XML]:new Set,[st.XMLNS]:new Set};function ste(e){return e===bt.H1||e===bt.H2||e===bt.H3||e===bt.H4||e===bt.H5||e===bt.H6}Fe.STYLE,Fe.SCRIPT,Fe.XMP,Fe.IFRAME,Fe.NOEMBED,Fe.NOFRAMES,Fe.PLAINTEXT;const F8e=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 ae;(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"})(ae||(ae={}));const yi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function Qb(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function hb(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function B8e(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Xc(e){return B8e(e)||hb(e)}function VI(e){return Xc(e)||Qb(e)}function lte(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function ute(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function U8e(e){return Qb(e)||lte(e)||ute(e)}function gE(e){return e+32}function cte(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function j8e(e){return e===ne.EQUALS_SIGN||VI(e)}function Pz(e){return cte(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class z8e{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=ae.DATA,this.returnState=ae.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new x8e(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(Xe.endTagWithAttributes),t.selfClosing&&this._err(Xe.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 Pn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Pn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Pn.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:Pn.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=cte(t)?Pn.WHITESPACE_CHARACTER:t===ne.NULL?Pn.NULL_CHARACTER:Pn.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Pn.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let o=0,a=Zc[0];o>=0&&(o=ate(Zc,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=Zc[o];const s=a&Su.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==ne.SEMICOLON&&this._isCharacterReferenceInAttribute()&&j8e(this.preprocessor.peek(1))?(n=[ne.AMPERSAND],o+=l):(n=l===0?[Zc[o]&~Su.VALUE_LENGTH]:l===1?[Zc[++o]]:[Zc[++o],Zc[++o]],r=0,i=t!==ne.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Xe.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ae.DATA:{this._stateData(t);break}case ae.RCDATA:{this._stateRcdata(t);break}case ae.RAWTEXT:{this._stateRawtext(t);break}case ae.SCRIPT_DATA:{this._stateScriptData(t);break}case ae.PLAINTEXT:{this._statePlaintext(t);break}case ae.TAG_OPEN:{this._stateTagOpen(t);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ae.TAG_NAME:{this._stateTagName(t);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ae.COMMENT_START:{this._stateCommentStart(t);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ae.COMMENT:{this._stateComment(t);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ae.COMMENT_END:{this._stateCommentEnd(t);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ae.DOCTYPE:{this._stateDoctype(t);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ae.CDATA_SECTION:{this._stateCdataSection(t);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ae.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ae.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ae.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ae.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this.returnState=ae.DATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitCodePoint(t);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ne.AMPERSAND:{this.returnState=ae.RCDATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Xc(t))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Xe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(t);break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Xe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Xc(t))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.GREATER_THAN_SIGN:{this._err(Xe.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Hr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Xc(t)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Xc(t)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Hr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ma.SCRIPT,!1)&&Pz(this.preprocessor.peek(ma.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(tte(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(rte(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(nte(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=F8e.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const dte=new Set([N.DD,N.DT,N.LI,N.OPTGROUP,N.OPTION,N.P,N.RB,N.RP,N.RT,N.RTC]),Lz=new Set([...dte,N.CAPTION,N.COLGROUP,N.TBODY,N.TD,N.TFOOT,N.TH,N.THEAD,N.TR]),bE=new Map([[N.APPLET,st.HTML],[N.CAPTION,st.HTML],[N.HTML,st.HTML],[N.MARQUEE,st.HTML],[N.OBJECT,st.HTML],[N.TABLE,st.HTML],[N.TD,st.HTML],[N.TEMPLATE,st.HTML],[N.TH,st.HTML],[N.ANNOTATION_XML,st.MATHML],[N.MI,st.MATHML],[N.MN,st.MATHML],[N.MO,st.MATHML],[N.MS,st.MATHML],[N.MTEXT,st.MATHML],[N.DESC,st.SVG],[N.FOREIGN_OBJECT,st.SVG],[N.TITLE,st.SVG]]),V8e=[N.H1,N.H2,N.H3,N.H4,N.H5,N.H6],H8e=[N.TR,N.TEMPLATE,N.HTML],W8e=[N.TBODY,N.TFOOT,N.THEAD,N.TEMPLATE,N.HTML],Q8e=[N.TABLE,N.TEMPLATE,N.HTML],Y8e=[N.TD,N.TH];class G8e{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=N.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===N.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===st.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])!==st.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(Q8e,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(W8e,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(H8e,st.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]===N.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]===N.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===st.HTML)return!0;if(bE.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(ste(n)&&r===st.HTML)return!0;if(bE.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===st.HTML)return!0;if((r===N.UL||r===N.OL)&&i===st.HTML||bE.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===st.HTML)return!0;if(r===N.BUTTON&&i===st.HTML||bE.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])===st.HTML){if(r===t)return!0;if(r===N.TABLE||r===N.TEMPLATE||r===N.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])===st.HTML){if(n===N.TBODY||n===N.THEAD||n===N.TFOOT)return!0;if(n===N.TABLE||n===N.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])===st.HTML){if(r===t)return!0;if(r!==N.OPTION&&r!==N.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;dte.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Lz.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Lz.has(this.currentTagId);)this.pop()}}const g2=3;var Ol;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ol=Ol||(Ol={}));const Mz={type:Ol.Marker};class q8e{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=g2&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Mz)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ol.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ol.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(Mz);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Ol.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Ol.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ol.Element&&n.element===t)}}function $z(e){return{nodeName:"#text",value:e,parentNode:null}}const Dh={createDocument(){return{nodeName:"#document",mode:ns.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(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Dh.appendChild(e,o)}},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(Dh.isTextNode(n)){n.value+=t;return}}Dh.appendChild(e,$z(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Dh.isTextNode(r)?r.value+=t:Dh.insertBefore(e,$z(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function t7e(e){return e.name===fte&&e.publicId===null&&(e.systemId===null||e.systemId===Z8e)}function n7e(e){if(e.name!==fte)return ns.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===X8e)return ns.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),J8e.has(n))return ns.QUIRKS;let r=t===null?K8e:pte;if(Fz(n,r))return ns.QUIRKS;if(r=t===null?hte:e7e,Fz(n,r))return ns.LIMITED_QUIRKS}return ns.NO_QUIRKS}const Bz={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},r7e="definitionurl",i7e="definitionURL",o7e=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])),a7e=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:st.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:st.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:st.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:st.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:st.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:st.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:st.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:st.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:st.XML}],["xml:space",{prefix:"xml",name:"space",namespace:st.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:st.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:st.XMLNS}]]),s7e=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])),l7e=new Set([N.B,N.BIG,N.BLOCKQUOTE,N.BODY,N.BR,N.CENTER,N.CODE,N.DD,N.DIV,N.DL,N.DT,N.EM,N.EMBED,N.H1,N.H2,N.H3,N.H4,N.H5,N.H6,N.HEAD,N.HR,N.I,N.IMG,N.LI,N.LISTING,N.MENU,N.META,N.NOBR,N.OL,N.P,N.PRE,N.RUBY,N.S,N.SMALL,N.SPAN,N.STRONG,N.STRIKE,N.SUB,N.SUP,N.TABLE,N.TT,N.U,N.UL,N.VAR]);function u7e(e){const t=e.tagID;return t===N.FONT&&e.attrs.some(({name:r})=>r===$d.COLOR||r===$d.SIZE||r===$d.FACE)||l7e.has(t)}function mte(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 o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===st.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,st.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=me.TEXT}switchToPlaintextParsing(){this.insertionMode=me.TEXT,this.originalInsertionMode=me.IN_BODY,this.tokenizer.state=yi.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)===Fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==st.HTML))switch(this.fragmentContextID){case N.TITLE:case N.TEXTAREA:{this.tokenizer.state=yi.RCDATA;break}case N.STYLE:case N.XMP:case N.IFRAME:case N.NOEMBED:case N.NOFRAMES:case N.NOSCRIPT:{this.tokenizer.state=yi.RAWTEXT;break}case N.SCRIPT:{this.tokenizer.state=yi.SCRIPT_DATA;break}case N.PLAINTEXT:{this.tokenizer.state=yi.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 a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,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,st.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,st.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(Fe.HTML,st.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,N.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),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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),o=n.type===Pn.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,o)}}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===N.SVG&&this.treeAdapter.getTagName(n)===Fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===st.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===N.MGLYPH||t.tagID===N.MALIGNMARK)&&!this._isIntegrationPoint(r,n,st.HTML)}_processToken(t){switch(t.type){case Pn.CHARACTER:{this.onCharacter(t);break}case Pn.NULL_CHARACTER:{this.onNullCharacter(t);break}case Pn.COMMENT:{this.onComment(t);break}case Pn.DOCTYPE:{this.onDoctype(t);break}case Pn.START_TAG:{this._processStartTag(t);break}case Pn.END_TAG:{this.onEndTag(t);break}case Pn.EOF:{this.onEof(t);break}case Pn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return p7e(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Ol.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=me.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(N.P),this.openElements.popUntilTagNamePopped(N.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case N.TR:{this.insertionMode=me.IN_ROW;return}case N.TBODY:case N.THEAD:case N.TFOOT:{this.insertionMode=me.IN_TABLE_BODY;return}case N.CAPTION:{this.insertionMode=me.IN_CAPTION;return}case N.COLGROUP:{this.insertionMode=me.IN_COLUMN_GROUP;return}case N.TABLE:{this.insertionMode=me.IN_TABLE;return}case N.BODY:{this.insertionMode=me.IN_BODY;return}case N.FRAMESET:{this.insertionMode=me.IN_FRAMESET;return}case N.SELECT:{this._resetInsertionModeForSelect(t);return}case N.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case N.HTML:{this.insertionMode=this.headElement?me.AFTER_HEAD:me.BEFORE_HEAD;return}case N.TD:case N.TH:{if(t>0){this.insertionMode=me.IN_CELL;return}break}case N.HEAD:{if(t>0){this.insertionMode=me.IN_HEAD;return}break}}this.insertionMode=me.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===N.TEMPLATE)break;if(r===N.TABLE){this.insertionMode=me.IN_SELECT_IN_TABLE;return}}this.insertionMode=me.IN_SELECT}_isElementCausesFosterParenting(t){return bte.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 N.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===st.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case N.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 $8e[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){YUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{Yb(this,t);break}case me.BEFORE_HEAD:{Gb(this,t);break}case me.IN_HEAD:{qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Zb(this,t);break}case me.AFTER_HEAD:{Xb(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{Ote(this,t);break}case me.TEXT:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{b2(this,t);break}case me.IN_TABLE_TEXT:{kte(this,t);break}case me.IN_COLUMN_GROUP:{aw(this,t);break}case me.AFTER_BODY:{sw(this,t);break}case me.AFTER_AFTER_BODY:{hS(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){QUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{Yb(this,t);break}case me.BEFORE_HEAD:{Gb(this,t);break}case me.IN_HEAD:{qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Zb(this,t);break}case me.AFTER_HEAD:{Xb(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{b2(this,t);break}case me.IN_COLUMN_GROUP:{aw(this,t);break}case me.AFTER_BODY:{sw(this,t);break}case me.AFTER_AFTER_BODY:{hS(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){HI(this,t);return}switch(this.insertionMode){case me.INITIAL:case me.BEFORE_HTML:case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_TEMPLATE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{HI(this,t);break}case me.IN_TABLE_TEXT:{H0(this,t);break}case me.AFTER_BODY:{w7e(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{k7e(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{x7e(this,t);break}case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:{this._err(t,Xe.misplacedDoctype);break}case me.IN_TABLE_TEXT:{H0(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Xe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?GUe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{C7e(this,t);break}case me.BEFORE_HEAD:{_7e(this,t);break}case me.IN_HEAD:{Vl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{D7e(this,t);break}case me.AFTER_HEAD:{P7e(this,t);break}case me.IN_BODY:{Wo(this,t);break}case me.IN_TABLE:{yg(this,t);break}case me.IN_TABLE_TEXT:{H0(this,t);break}case me.IN_CAPTION:{RUe(this,t);break}case me.IN_COLUMN_GROUP:{V3(this,t);break}case me.IN_TABLE_BODY:{yx(this,t);break}case me.IN_ROW:{Ox(this,t);break}case me.IN_CELL:{NUe(this,t);break}case me.IN_SELECT:{Ate(this,t);break}case me.IN_SELECT_IN_TABLE:{LUe(this,t);break}case me.IN_TEMPLATE:{$Ue(this,t);break}case me.AFTER_BODY:{BUe(this,t);break}case me.IN_FRAMESET:{UUe(this,t);break}case me.AFTER_FRAMESET:{zUe(this,t);break}case me.AFTER_AFTER_BODY:{HUe(this,t);break}case me.AFTER_AFTER_FRAMESET:{WUe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?qUe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{A7e(this,t);break}case me.BEFORE_HEAD:{R7e(this,t);break}case me.IN_HEAD:{I7e(this,t);break}case me.IN_HEAD_NO_SCRIPT:{N7e(this,t);break}case me.AFTER_HEAD:{L7e(this,t);break}case me.IN_BODY:{bx(this,t);break}case me.TEXT:{vUe(this,t);break}case me.IN_TABLE:{f1(this,t);break}case me.IN_TABLE_TEXT:{H0(this,t);break}case me.IN_CAPTION:{IUe(this,t);break}case me.IN_COLUMN_GROUP:{DUe(this,t);break}case me.IN_TABLE_BODY:{WI(this,t);break}case me.IN_ROW:{Cte(this,t);break}case me.IN_CELL:{PUe(this,t);break}case me.IN_SELECT:{_te(this,t);break}case me.IN_SELECT_IN_TABLE:{MUe(this,t);break}case me.IN_TEMPLATE:{FUe(this,t);break}case me.AFTER_BODY:{Ite(this,t);break}case me.IN_FRAMESET:{jUe(this,t);break}case me.AFTER_FRAMESET:{VUe(this,t);break}case me.AFTER_AFTER_BODY:{hS(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{Yb(this,t);break}case me.BEFORE_HEAD:{Gb(this,t);break}case me.IN_HEAD:{qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Zb(this,t);break}case me.AFTER_HEAD:{Xb(this,t);break}case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{Tte(this,t);break}case me.TEXT:{EUe(this,t);break}case me.IN_TABLE_TEXT:{H0(this,t);break}case me.IN_TEMPLATE:{Rte(this,t);break}case me.AFTER_BODY:case me.IN_FRAMESET:case me.AFTER_FRAMESET:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{z3(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ne.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 me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.TEXT:case me.IN_COLUMN_GROUP:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{this._insertCharacters(t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:case me.AFTER_BODY:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{yte(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{b2(this,t);break}case me.IN_TABLE_TEXT:{wte(this,t);break}}}}function y7e(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):Ste(e,t),n}function O7e(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 v7e(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=g7e;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=E7e(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function E7e(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 S7e(e,t,n){const r=e.treeAdapter.getTagName(t),i=Qg(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===N.TEMPLATE&&o===st.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function T7e(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function j3(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 o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function x7e(e,t){e._setDocumentType(t);const n=t.forceQuirks?ns.QUIRKS:n7e(t);t7e(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function V0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ns.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function C7e(e,t){t.tagID===N.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):Yb(e,t)}function A7e(e,t){const n=t.tagID;(n===N.HTML||n===N.HEAD||n===N.BODY||n===N.BR)&&Yb(e,t)}function Yb(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function _7e(e,t){switch(t.tagID){case N.HTML:{Wo(e,t);break}case N.HEAD:{e._insertElement(t,st.HTML),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD;break}default:Gb(e,t)}}function R7e(e,t){const n=t.tagID;n===N.HEAD||n===N.BODY||n===N.HTML||n===N.BR?Gb(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Gb(e,t){e._insertFakeElement(Fe.HEAD,N.HEAD),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD,e._processToken(t)}function Vl(e,t){switch(t.tagID){case N.HTML:{Wo(e,t);break}case N.BASE:case N.BASEFONT:case N.BGSOUND:case N.LINK:case N.META:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case N.TITLE:{e._switchToTextParsing(t,yi.RCDATA);break}case N.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,yi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case N.NOFRAMES:case N.STYLE:{e._switchToTextParsing(t,yi.RAWTEXT);break}case N.SCRIPT:{e._switchToTextParsing(t,yi.SCRIPT_DATA);break}case N.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=me.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(me.IN_TEMPLATE);break}case N.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:qb(e,t)}}function I7e(e,t){switch(t.tagID){case N.HEAD:{e.openElements.pop(),e.insertionMode=me.AFTER_HEAD;break}case N.BODY:case N.BR:case N.HTML:{qb(e,t);break}case N.TEMPLATE:{zp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function zp(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==N.TEMPLATE&&e._err(t,Xe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(N.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function qb(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function D7e(e,t){switch(t.tagID){case N.HTML:{Wo(e,t);break}case N.BASEFONT:case N.BGSOUND:case N.HEAD:case N.LINK:case N.META:case N.NOFRAMES:case N.STYLE:{Vl(e,t);break}case N.NOSCRIPT:{e._err(t,Xe.nestedNoscriptInHead);break}default:Zb(e,t)}}function N7e(e,t){switch(t.tagID){case N.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case N.BR:{Zb(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Zb(e,t){const n=t.type===Pn.EOF?Xe.openElementsLeftAfterEof:Xe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=me.IN_HEAD,e._processToken(t)}function P7e(e,t){switch(t.tagID){case N.HTML:{Wo(e,t);break}case N.BODY:{e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_BODY;break}case N.FRAMESET:{e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET;break}case N.BASE:case N.BASEFONT:case N.BGSOUND:case N.LINK:case N.META:case N.NOFRAMES:case N.SCRIPT:case N.STYLE:case N.TEMPLATE:case N.TITLE:{e._err(t,Xe.abandonedHeadElementChild),e.openElements.push(e.headElement,N.HEAD),Vl(e,t),e.openElements.remove(e.headElement);break}case N.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:Xb(e,t)}}function L7e(e,t){switch(t.tagID){case N.BODY:case N.HTML:case N.BR:{Xb(e,t);break}case N.TEMPLATE:{zp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Xb(e,t){e._insertFakeElement(Fe.BODY,N.BODY),e.insertionMode=me.IN_BODY,gx(e,t)}function gx(e,t){switch(t.type){case Pn.CHARACTER:{Ote(e,t);break}case Pn.WHITESPACE_CHARACTER:{yte(e,t);break}case Pn.COMMENT:{HI(e,t);break}case Pn.START_TAG:{Wo(e,t);break}case Pn.END_TAG:{bx(e,t);break}case Pn.EOF:{Tte(e,t);break}}}function yte(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ote(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function M7e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function $7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function F7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET)}function B7e(e,t){e.openElements.hasInButtonScope(N.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function U7e(e,t){e.openElements.hasInButtonScope(N.P)&&e._closePElement(),ste(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function j7e(e,t){e.openElements.hasInButtonScope(N.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function z7e(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(N.P)&&e._closePElement(),e._insertElement(t,st.HTML),n||(e.formElement=e.openElements.current))}function V7e(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===N.LI&&i===N.LI||(n===N.DD||n===N.DT)&&(i===N.DD||i===N.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==N.ADDRESS&&i!==N.DIV&&i!==N.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(N.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function H7e(e,t){e.openElements.hasInButtonScope(N.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=yi.PLAINTEXT}function W7e(e,t){e.openElements.hasInScope(N.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(N.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1}function Q7e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(j3(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Y7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function G7e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(N.NOBR)&&(j3(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function q7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Z7e(e,t){e.treeAdapter.getDocumentMode(e.document)!==ns.QUIRKS&&e.openElements.hasInButtonScope(N.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_TABLE}function vte(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ete(e){const t=ite(e,$d.TYPE);return t!=null&&t.toLowerCase()===h7e}function X7e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),Ete(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function K7e(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function J7e(e,t){e.openElements.hasInButtonScope(N.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function eUe(e,t){t.tagName=Fe.IMG,t.tagID=N.IMG,vte(e,t)}function tUe(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=yi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function nUe(e,t){e.openElements.hasInButtonScope(N.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,yi.RAWTEXT)}function rUe(e,t){e.framesetOk=!1,e._switchToTextParsing(t,yi.RAWTEXT)}function zz(e,t){e._switchToTextParsing(t,yi.RAWTEXT)}function iUe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===me.IN_TABLE||e.insertionMode===me.IN_CAPTION||e.insertionMode===me.IN_TABLE_BODY||e.insertionMode===me.IN_ROW||e.insertionMode===me.IN_CELL?me.IN_SELECT_IN_TABLE:me.IN_SELECT}function oUe(e,t){e.openElements.currentTagId===N.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function aUe(e,t){e.openElements.hasInScope(N.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function sUe(e,t){e.openElements.hasInScope(N.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(N.RTC),e._insertElement(t,st.HTML)}function lUe(e,t){e._reconstructActiveFormattingElements(),mte(t),U3(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function uUe(e,t){e._reconstructActiveFormattingElements(),gte(t),U3(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function Vz(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function Wo(e,t){switch(t.tagID){case N.I:case N.S:case N.B:case N.U:case N.EM:case N.TT:case N.BIG:case N.CODE:case N.FONT:case N.SMALL:case N.STRIKE:case N.STRONG:{Y7e(e,t);break}case N.A:{Q7e(e,t);break}case N.H1:case N.H2:case N.H3:case N.H4:case N.H5:case N.H6:{U7e(e,t);break}case N.P:case N.DL:case N.OL:case N.UL:case N.DIV:case N.DIR:case N.NAV:case N.MAIN:case N.MENU:case N.ASIDE:case N.CENTER:case N.FIGURE:case N.FOOTER:case N.HEADER:case N.HGROUP:case N.DIALOG:case N.DETAILS:case N.ADDRESS:case N.ARTICLE:case N.SECTION:case N.SUMMARY:case N.FIELDSET:case N.BLOCKQUOTE:case N.FIGCAPTION:{B7e(e,t);break}case N.LI:case N.DD:case N.DT:{V7e(e,t);break}case N.BR:case N.IMG:case N.WBR:case N.AREA:case N.EMBED:case N.KEYGEN:{vte(e,t);break}case N.HR:{J7e(e,t);break}case N.RB:case N.RTC:{aUe(e,t);break}case N.RT:case N.RP:{sUe(e,t);break}case N.PRE:case N.LISTING:{j7e(e,t);break}case N.XMP:{nUe(e,t);break}case N.SVG:{uUe(e,t);break}case N.HTML:{M7e(e,t);break}case N.BASE:case N.LINK:case N.META:case N.STYLE:case N.TITLE:case N.SCRIPT:case N.BGSOUND:case N.BASEFONT:case N.TEMPLATE:{Vl(e,t);break}case N.BODY:{$7e(e,t);break}case N.FORM:{z7e(e,t);break}case N.NOBR:{G7e(e,t);break}case N.MATH:{lUe(e,t);break}case N.TABLE:{Z7e(e,t);break}case N.INPUT:{X7e(e,t);break}case N.PARAM:case N.TRACK:case N.SOURCE:{K7e(e,t);break}case N.IMAGE:{eUe(e,t);break}case N.BUTTON:{W7e(e,t);break}case N.APPLET:case N.OBJECT:case N.MARQUEE:{q7e(e,t);break}case N.IFRAME:{rUe(e,t);break}case N.SELECT:{iUe(e,t);break}case N.OPTION:case N.OPTGROUP:{oUe(e,t);break}case N.NOEMBED:{zz(e,t);break}case N.FRAMESET:{F7e(e,t);break}case N.TEXTAREA:{tUe(e,t);break}case N.NOSCRIPT:{e.options.scriptingEnabled?zz(e,t):Vz(e,t);break}case N.PLAINTEXT:{H7e(e,t);break}case N.COL:case N.TH:case N.TD:case N.TR:case N.HEAD:case N.FRAME:case N.TBODY:case N.TFOOT:case N.THEAD:case N.CAPTION:case N.COLGROUP:break;default:Vz(e,t)}}function cUe(e,t){if(e.openElements.hasInScope(N.BODY)&&(e.insertionMode=me.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function dUe(e,t){e.openElements.hasInScope(N.BODY)&&(e.insertionMode=me.AFTER_BODY,Ite(e,t))}function fUe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function pUe(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(N.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(N.FORM):n&&e.openElements.remove(n))}function hUe(e){e.openElements.hasInButtonScope(N.P)||e._insertFakeElement(Fe.P,N.P),e._closePElement()}function mUe(e){e.openElements.hasInListItemScope(N.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(N.LI),e.openElements.popUntilTagNamePopped(N.LI))}function gUe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function bUe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function yUe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function OUe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,N.BR),e.openElements.pop(),e.framesetOk=!1}function Ste(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==N.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function bx(e,t){switch(t.tagID){case N.A:case N.B:case N.I:case N.S:case N.U:case N.EM:case N.TT:case N.BIG:case N.CODE:case N.FONT:case N.NOBR:case N.SMALL:case N.STRIKE:case N.STRONG:{j3(e,t);break}case N.P:{hUe(e);break}case N.DL:case N.UL:case N.OL:case N.DIR:case N.DIV:case N.NAV:case N.PRE:case N.MAIN:case N.MENU:case N.ASIDE:case N.BUTTON:case N.CENTER:case N.FIGURE:case N.FOOTER:case N.HEADER:case N.HGROUP:case N.DIALOG:case N.ADDRESS:case N.ARTICLE:case N.DETAILS:case N.SECTION:case N.SUMMARY:case N.LISTING:case N.FIELDSET:case N.BLOCKQUOTE:case N.FIGCAPTION:{fUe(e,t);break}case N.LI:{mUe(e);break}case N.DD:case N.DT:{gUe(e,t);break}case N.H1:case N.H2:case N.H3:case N.H4:case N.H5:case N.H6:{bUe(e);break}case N.BR:{OUe(e);break}case N.BODY:{cUe(e,t);break}case N.HTML:{dUe(e,t);break}case N.FORM:{pUe(e);break}case N.APPLET:case N.OBJECT:case N.MARQUEE:{yUe(e,t);break}case N.TEMPLATE:{zp(e,t);break}default:Ste(e,t)}}function Tte(e,t){e.tmplInsertionModeStack.length>0?Rte(e,t):z3(e,t)}function vUe(e,t){var n;t.tagID===N.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function EUe(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function b2(e,t){if(bte.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=me.IN_TABLE_TEXT,t.type){case Pn.CHARACTER:{kte(e,t);break}case Pn.WHITESPACE_CHARACTER:{wte(e,t);break}}else wO(e,t)}function SUe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function TUe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function wUe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,N.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,V3(e,t)}function kUe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function xUe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,N.TBODY),e.insertionMode=me.IN_TABLE_BODY,yx(e,t)}function CUe(e,t){e.openElements.hasInTableScope(N.TABLE)&&(e.openElements.popUntilTagNamePopped(N.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function AUe(e,t){Ete(t)?e._appendElement(t,st.HTML):wO(e,t),t.ackSelfClosing=!0}function _Ue(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function yg(e,t){switch(t.tagID){case N.TD:case N.TH:case N.TR:{xUe(e,t);break}case N.STYLE:case N.SCRIPT:case N.TEMPLATE:{Vl(e,t);break}case N.COL:{wUe(e,t);break}case N.FORM:{_Ue(e,t);break}case N.TABLE:{CUe(e,t);break}case N.TBODY:case N.TFOOT:case N.THEAD:{kUe(e,t);break}case N.INPUT:{AUe(e,t);break}case N.CAPTION:{SUe(e,t);break}case N.COLGROUP:{TUe(e,t);break}default:wO(e,t)}}function f1(e,t){switch(t.tagID){case N.TABLE:{e.openElements.hasInTableScope(N.TABLE)&&(e.openElements.popUntilTagNamePopped(N.TABLE),e._resetInsertionMode());break}case N.TEMPLATE:{zp(e,t);break}case N.BODY:case N.CAPTION:case N.COL:case N.COLGROUP:case N.HTML:case N.TBODY:case N.TD:case N.TFOOT:case N.TH:case N.THEAD:case N.TR:break;default:wO(e,t)}}function wO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,gx(e,t),e.fosterParentingEnabled=n}function wte(e,t){e.pendingCharacterTokens.push(t)}function kte(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function H0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===N.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===N.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===N.OPTGROUP&&e.openElements.pop();break}case N.OPTION:{e.openElements.currentTagId===N.OPTION&&e.openElements.pop();break}case N.SELECT:{e.openElements.hasInSelectScope(N.SELECT)&&(e.openElements.popUntilTagNamePopped(N.SELECT),e._resetInsertionMode());break}case N.TEMPLATE:{zp(e,t);break}}}function LUe(e,t){const n=t.tagID;n===N.CAPTION||n===N.TABLE||n===N.TBODY||n===N.TFOOT||n===N.THEAD||n===N.TR||n===N.TD||n===N.TH?(e.openElements.popUntilTagNamePopped(N.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ate(e,t)}function MUe(e,t){const n=t.tagID;n===N.CAPTION||n===N.TABLE||n===N.TBODY||n===N.TFOOT||n===N.THEAD||n===N.TR||n===N.TD||n===N.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(N.SELECT),e._resetInsertionMode(),e.onEndTag(t)):_te(e,t)}function $Ue(e,t){switch(t.tagID){case N.BASE:case N.BASEFONT:case N.BGSOUND:case N.LINK:case N.META:case N.NOFRAMES:case N.SCRIPT:case N.STYLE:case N.TEMPLATE:case N.TITLE:{Vl(e,t);break}case N.CAPTION:case N.COLGROUP:case N.TBODY:case N.TFOOT:case N.THEAD:{e.tmplInsertionModeStack[0]=me.IN_TABLE,e.insertionMode=me.IN_TABLE,yg(e,t);break}case N.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,V3(e,t);break}case N.TR:{e.tmplInsertionModeStack[0]=me.IN_TABLE_BODY,e.insertionMode=me.IN_TABLE_BODY,yx(e,t);break}case N.TD:case N.TH:{e.tmplInsertionModeStack[0]=me.IN_ROW,e.insertionMode=me.IN_ROW,Ox(e,t);break}default:e.tmplInsertionModeStack[0]=me.IN_BODY,e.insertionMode=me.IN_BODY,Wo(e,t)}}function FUe(e,t){t.tagID===N.TEMPLATE&&zp(e,t)}function Rte(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(N.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):z3(e,t)}function BUe(e,t){t.tagID===N.HTML?Wo(e,t):sw(e,t)}function Ite(e,t){var n;if(t.tagID===N.HTML){if(e.fragmentContext||(e.insertionMode=me.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===N.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 sw(e,t)}function sw(e,t){e.insertionMode=me.IN_BODY,gx(e,t)}function UUe(e,t){switch(t.tagID){case N.HTML:{Wo(e,t);break}case N.FRAMESET:{e._insertElement(t,st.HTML);break}case N.FRAME:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case N.NOFRAMES:{Vl(e,t);break}}}function jUe(e,t){t.tagID===N.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==N.FRAMESET&&(e.insertionMode=me.AFTER_FRAMESET))}function zUe(e,t){switch(t.tagID){case N.HTML:{Wo(e,t);break}case N.NOFRAMES:{Vl(e,t);break}}}function VUe(e,t){t.tagID===N.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function HUe(e,t){t.tagID===N.HTML?Wo(e,t):hS(e,t)}function hS(e,t){e.insertionMode=me.IN_BODY,gx(e,t)}function WUe(e,t){switch(t.tagID){case N.HTML:{Wo(e,t);break}case N.NOFRAMES:{Vl(e,t);break}}}function QUe(e,t){t.chars=Hr,e._insertCharacters(t)}function YUe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Dte(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function GUe(e,t){if(u7e(t))Dte(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?mte(t):r===st.SVG&&(c7e(t),gte(t)),U3(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function qUe(e,t){if(t.tagID===N.P||t.tagID===N.BR){Dte(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)===st.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Fe.AREA,Fe.BASE,Fe.BASEFONT,Fe.BGSOUND,Fe.BR,Fe.COL,Fe.EMBED,Fe.FRAME,Fe.HR,Fe.IMG,Fe.INPUT,Fe.KEYGEN,Fe.LINK,Fe.META,Fe.PARAM,Fe.SOURCE,Fe.TRACK,Fe.WBR;const ZUe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Hz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Nte(e,t){const n=a9e(e),r=P3("type",{handlers:{root:XUe,element:KUe,text:JUe,comment:Lte,doctype:e9e,raw:n9e},unknown:r9e}),i={parser:n?new jz(Hz):jz.getFragmentParser(void 0,Hz),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Yg(i,zu());const o=n?i.parser.document:i.parser.getFragment(),a=l8e(o,{file:i.options.file});return i.stitches&&Na(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function Pte(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 Fte(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Fte(t.parentElement):null}function u9e(e){var t=n=>{var r=Fte(n.target);r&&(r.classList.add("active"),l9e(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};I.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 c9e=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],d9e=e=>e;const f9e=Qt.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:a=!1,skipHtml:s=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:p={},urlTransform:h}=e,m=Ye(e,c9e),b=Qt.useRef(null);I.useImperativeHandle(t,()=>L({},e,{mdp:b}),[b,e]);var O=(n||"")+" "+(r||"");u9e(b);var y=[...m.rehypePlugins||[]],v={allowElement:(C,w,E)=>m.allowElement?m.allowElement(C,w,E):/^[A-Za-z0-9]+$/.test(C.tagName)};s&&y.push($te);var S=[...m.remarkPlugins||[],ZBe],k=L({},p,d);return D.jsx("div",L({ref:b,onScroll:l,onMouseOver:u},k,{className:O,style:o,children:D.jsx(BFe,L({},v,m,{skipHtml:s,urlTransform:h||d9e,rehypePlugins:c?c("rehype",y):y,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function nm(e){return"children"in e?Bte(e):"value"in e?e.value:""}function p9e(e){return e.type==="text"?e.value:"children"in e?Bte(e):""}function Bte(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)h9e.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function g9e(e){return"children"in e&&e.children!==void 0}var QI={exports:{}};(function(e,t){function n(r){let i=[],o;for(let a of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(a))i.push(parseInt(a,10));else if(o=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,l,u,c]=o;if(l&&c){l=parseInt(l),c=parseInt(c);const d=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Hl.displayName="c";Hl.aliases=[];function Hl(e){e.register(jn),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}Vp.displayName="cpp";Vp.aliases=[];function Vp(e){e.register(Hl),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)}vx.displayName="arduino";vx.aliases=["ino"];function vx(e){e.register(Vp),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}xO.displayName="bash";xO.aliases=["sh","shell"];function xO(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 o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=i.variable[1].inside,s=0;s>/g,function(ve,G){return"(?:"+se[+G]+")"})}function r(j,se,ve){return RegExp(n(j,se),ve||"")}function i(j,se){for(var ve=0;ve>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var o={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 a(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var s=a(o.typeDeclaration),l=RegExp(a(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=a(o.typeDeclaration+" "+o.contextual+" "+o.other),c=a(o.type+" "+o.typeDeclaration+" "+o.other),d=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[h,d]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,m]),O=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,O]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,p,O]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),k=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,b,O]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,m]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,h]),inside:C}],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,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),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:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,b]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,d]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"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,[s,m,h,k,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(k),greedy:!0,inside:C},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 P=E+"|"+w,_=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[P]),B=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,B]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[B]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),q=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[P]),2),Y=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,z]);function Z(j,se){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[se,z]),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,[X]),lookbehind:!0,greedy:!0,inside:Z(X,W)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Y]),lookbehind:!0,greedy:!0,inside:Z(Y,q)}],char:{pattern:RegExp(w),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}io.displayName="markup";io.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function io(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 o={"included-cdata":{pattern://i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",a)}}),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}hf.displayName="css";hf.aliases=[];function hf(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)}Ex.displayName="diff";Ex.aliases=[];function Ex(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],o=[];/^\w+$/.test(r)||o.push(/\w+/.exec(r)[0]),r==="diff"&&o.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`))}function l(h,m,b,O){const y=b.enter("tableCell"),v=b.enter("phrasing"),S=b.containerPhrasing(h,{...O,before:o,after:o});return v(),y(),S}function u(h,m){return T6e(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(h,m,b){const O=h.children;let y=-1;const v=[],S=m.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const ABe={tokenize:MBe,partial:!0};function _Be(){return{document:{91:{tokenize:DBe,continuation:{tokenize:PBe},exit:LBe}},text:{91:{tokenize:NBe},93:{add:"after",tokenize:RBe,resolveTo:IBe}}}}function RBe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Il(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function IBe(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function NBe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||vr(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Il(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vr(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function DBe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(a>999||m===93&&!s||m===null||m===91||vr(m))return n(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=Il(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return vr(m)||(s=!0),a++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Jn(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function PBe(e,t,n){return e.check(EO,t,e.attempt(ABe,t,n))}function LBe(e){e.exit("gfmFootnoteDefinition")}function MBe(e,t,n){const r=this;return Jn(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function $Be(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(m):(a.consume(m),d++,h);if(d<2&&!n)return l(m);const O=a.exit("strikethroughSequenceTemporary"),y=nw(m);return O._open=!y||y===2&&!!b,O._close=!b||b===2&&!!y,s(m)}}}class FBe{constructor(){this.map=[]}add(t,n,r){BBe(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[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 BBe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const z=r.events[B][1].type;if(z==="lineEnding"||z==="linePrefix")B--;else break}const U=B>-1?r.events[B][1].type:null,V=U==="tableHead"||U==="tableRow"?w:l;return V===w&&r.parser.lazy[r.now().line]?n(_):V(_)}function l(_){return e.enter("tableHead"),e.enter("tableRow"),u(_)}function u(_){return _===124||(a=!0,o+=1),c(_)}function c(_){return _===null?n(_):gn(_)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),h):n(_):Un(_)?Jn(e,c,"whitespace")(_):(o+=1,a&&(a=!1,i+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(_)))}function d(_){return _===null||_===124||vr(_)?(e.exit("data"),c(_)):(e.consume(_),_===92?p:d)}function p(_){return _===92||_===124?(e.consume(_),d):d(_)}function h(_){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(_):(e.enter("tableDelimiterRow"),a=!1,Un(_)?Jn(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):m(_))}function m(_){return _===45||_===58?O(_):_===124?(a=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),b):C(_)}function b(_){return Un(_)?Jn(e,O,"whitespace")(_):O(_)}function O(_){return _===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),y):_===45?(o+=1,y(_)):_===null||gn(_)?k(_):C(_)}function y(_){return _===45?(e.enter("tableDelimiterFiller"),v(_)):C(_)}function v(_){return _===45?(e.consume(_),v):_===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(_))}function S(_){return Un(_)?Jn(e,k,"whitespace")(_):k(_)}function k(_){return _===124?m(_):_===null||gn(_)?!a||i!==o?C(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):C(_)}function C(_){return n(_)}function w(_){return e.enter("tableRow"),E(_)}function E(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),E):_===null||gn(_)?(e.exit("tableRow"),t(_)):Un(_)?Jn(e,E,"whitespace")(_):(e.enter("data"),$(_))}function $(_){return _===null||_===124||vr(_)?(e.exit("data"),E(_)):(e.consume(_),_===92?P:$)}function P(_){return _===92||_===124?(e.consume(_),$):$(_)}}function VBe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const p=new FBe;for(;++nn[2]+1){const m=n[2]+1,b=n[3]-n[2]-1;e.add(m,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Ih(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Rz(e,t,n,r,i){const o=[],a=Ih(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ih(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const HBe={tokenize:QBe};function WBe(){return{text:{91:HBe}}}function QBe(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"),o)}function o(l){return vr(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return gn(l)?t(l):Un(l)?e.check({tokenize:YBe},t,n)(l):n(l)}}function YBe(e,t,n){return Jn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function GBe(e){return aee([OBe(),_Be(),$Be(e),jBe(),WBe()])}const qBe={};function ZBe(e){const t=this,n=e||qBe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(GBe(n)),o.push(mBe()),a.push(gBe(n))}const Iz=/[#.]/g;function XBe(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&oo)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o}}}function i(o){const a=o&&o.line,s=o&&o.column;if(typeof a=="number"&&typeof s=="number"&&!Number.isNaN(a)&&!Number.isNaN(s)&&a-1 in n){const l=(n[a-2]||0)+s-1||0;if(l>-1&&l=55296&&e<=57343}function T8e(e){return e>=56320&&e<=57343}function w8e(e,t){return(e-55296)*1024+9216+t}function nte(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function rte(e){return e>=64976&&e<=65007||S8e.has(e)}var Xe;(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"})(Xe=Xe||(Xe={}));const k8e=65536;class x8e{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=k8e,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(T8e(n))return this.pos++,this._addGap(),w8e(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Xe.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,ne.EOF;const r=this.html.charCodeAt(n);return r===ne.CARRIAGE_RETURN?ne.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,ne.EOF;let t=this.html.charCodeAt(this.pos);return t===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):t===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,tte(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ne.LINE_FEED||t===ne.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){nte(t)?this._err(Xe.controlCharacterInInputStream):rte(t)&&this._err(Xe.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 Zc=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))),C8e=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var m2;const A8e=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]]),_8e=(m2=String.fromCodePoint)!==null&&m2!==void 0?m2: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 R8e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=A8e.get(e))!==null&&t!==void 0?t:e}var Xi;(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"})(Xi||(Xi={}));const I8e=32;var Su;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Su||(Su={}));function zI(e){return e>=Xi.ZERO&&e<=Xi.NINE}function N8e(e){return e>=Xi.UPPER_A&&e<=Xi.UPPER_F||e>=Xi.LOWER_A&&e<=Xi.LOWER_F}function D8e(e){return e>=Xi.UPPER_A&&e<=Xi.UPPER_Z||e>=Xi.LOWER_A&&e<=Xi.LOWER_Z||zI(e)}function P8e(e){return e===Xi.EQUALS||D8e(e)}var Qi;(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"})(Qi||(Qi={}));var Bf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Bf||(Bf={}));class L8e{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Qi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Bf.Strict}startEntity(t){this.decodeMode=t,this.state=Qi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Qi.EntityStart:return t.charCodeAt(n)===Xi.NUM?(this.state=Qi.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Qi.NamedEntity,this.stateNamedEntity(t,n));case Qi.NumericStart:return this.stateNumericStart(t,n);case Qi.NumericDecimal:return this.stateNumericDecimal(t,n);case Qi.NumericHex:return this.stateNumericHex(t,n);case Qi.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|I8e)===Xi.LOWER_X?(this.state=Qi.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Qi.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===Xi.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Bf.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]&Su.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]&~Su.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Qi.NamedEntity:return this.result!==0&&(this.decodeMode!==Bf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qi.NumericDecimal:return this.emitNumericEntity(0,2);case Qi.NumericHex:return this.emitNumericEntity(0,3);case Qi.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qi.EntityStart:return 0}}}function ote(e){let t="";const n=new L8e(e,r=>t+=_8e(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function ate(e,t,n,r){const i=(t&Su.BRANCH_LENGTH)>>7,o=t&Su.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}ote(Zc);ote(C8e);var st;(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/"})(st=st||(st={}));var $d;(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"})($d=$d||($d={}));var ns;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ns=ns||(ns={}));var Fe;(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"})(Fe=Fe||(Fe={}));var D;(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"})(D=D||(D={}));const M8e=new Map([[Fe.A,D.A],[Fe.ADDRESS,D.ADDRESS],[Fe.ANNOTATION_XML,D.ANNOTATION_XML],[Fe.APPLET,D.APPLET],[Fe.AREA,D.AREA],[Fe.ARTICLE,D.ARTICLE],[Fe.ASIDE,D.ASIDE],[Fe.B,D.B],[Fe.BASE,D.BASE],[Fe.BASEFONT,D.BASEFONT],[Fe.BGSOUND,D.BGSOUND],[Fe.BIG,D.BIG],[Fe.BLOCKQUOTE,D.BLOCKQUOTE],[Fe.BODY,D.BODY],[Fe.BR,D.BR],[Fe.BUTTON,D.BUTTON],[Fe.CAPTION,D.CAPTION],[Fe.CENTER,D.CENTER],[Fe.CODE,D.CODE],[Fe.COL,D.COL],[Fe.COLGROUP,D.COLGROUP],[Fe.DD,D.DD],[Fe.DESC,D.DESC],[Fe.DETAILS,D.DETAILS],[Fe.DIALOG,D.DIALOG],[Fe.DIR,D.DIR],[Fe.DIV,D.DIV],[Fe.DL,D.DL],[Fe.DT,D.DT],[Fe.EM,D.EM],[Fe.EMBED,D.EMBED],[Fe.FIELDSET,D.FIELDSET],[Fe.FIGCAPTION,D.FIGCAPTION],[Fe.FIGURE,D.FIGURE],[Fe.FONT,D.FONT],[Fe.FOOTER,D.FOOTER],[Fe.FOREIGN_OBJECT,D.FOREIGN_OBJECT],[Fe.FORM,D.FORM],[Fe.FRAME,D.FRAME],[Fe.FRAMESET,D.FRAMESET],[Fe.H1,D.H1],[Fe.H2,D.H2],[Fe.H3,D.H3],[Fe.H4,D.H4],[Fe.H5,D.H5],[Fe.H6,D.H6],[Fe.HEAD,D.HEAD],[Fe.HEADER,D.HEADER],[Fe.HGROUP,D.HGROUP],[Fe.HR,D.HR],[Fe.HTML,D.HTML],[Fe.I,D.I],[Fe.IMG,D.IMG],[Fe.IMAGE,D.IMAGE],[Fe.INPUT,D.INPUT],[Fe.IFRAME,D.IFRAME],[Fe.KEYGEN,D.KEYGEN],[Fe.LABEL,D.LABEL],[Fe.LI,D.LI],[Fe.LINK,D.LINK],[Fe.LISTING,D.LISTING],[Fe.MAIN,D.MAIN],[Fe.MALIGNMARK,D.MALIGNMARK],[Fe.MARQUEE,D.MARQUEE],[Fe.MATH,D.MATH],[Fe.MENU,D.MENU],[Fe.META,D.META],[Fe.MGLYPH,D.MGLYPH],[Fe.MI,D.MI],[Fe.MO,D.MO],[Fe.MN,D.MN],[Fe.MS,D.MS],[Fe.MTEXT,D.MTEXT],[Fe.NAV,D.NAV],[Fe.NOBR,D.NOBR],[Fe.NOFRAMES,D.NOFRAMES],[Fe.NOEMBED,D.NOEMBED],[Fe.NOSCRIPT,D.NOSCRIPT],[Fe.OBJECT,D.OBJECT],[Fe.OL,D.OL],[Fe.OPTGROUP,D.OPTGROUP],[Fe.OPTION,D.OPTION],[Fe.P,D.P],[Fe.PARAM,D.PARAM],[Fe.PLAINTEXT,D.PLAINTEXT],[Fe.PRE,D.PRE],[Fe.RB,D.RB],[Fe.RP,D.RP],[Fe.RT,D.RT],[Fe.RTC,D.RTC],[Fe.RUBY,D.RUBY],[Fe.S,D.S],[Fe.SCRIPT,D.SCRIPT],[Fe.SECTION,D.SECTION],[Fe.SELECT,D.SELECT],[Fe.SOURCE,D.SOURCE],[Fe.SMALL,D.SMALL],[Fe.SPAN,D.SPAN],[Fe.STRIKE,D.STRIKE],[Fe.STRONG,D.STRONG],[Fe.STYLE,D.STYLE],[Fe.SUB,D.SUB],[Fe.SUMMARY,D.SUMMARY],[Fe.SUP,D.SUP],[Fe.TABLE,D.TABLE],[Fe.TBODY,D.TBODY],[Fe.TEMPLATE,D.TEMPLATE],[Fe.TEXTAREA,D.TEXTAREA],[Fe.TFOOT,D.TFOOT],[Fe.TD,D.TD],[Fe.TH,D.TH],[Fe.THEAD,D.THEAD],[Fe.TITLE,D.TITLE],[Fe.TR,D.TR],[Fe.TRACK,D.TRACK],[Fe.TT,D.TT],[Fe.U,D.U],[Fe.UL,D.UL],[Fe.SVG,D.SVG],[Fe.VAR,D.VAR],[Fe.WBR,D.WBR],[Fe.XMP,D.XMP]]);function Qg(e){var t;return(t=M8e.get(e))!==null&&t!==void 0?t:D.UNKNOWN}const bt=D,$8e={[st.HTML]:new Set([bt.ADDRESS,bt.APPLET,bt.AREA,bt.ARTICLE,bt.ASIDE,bt.BASE,bt.BASEFONT,bt.BGSOUND,bt.BLOCKQUOTE,bt.BODY,bt.BR,bt.BUTTON,bt.CAPTION,bt.CENTER,bt.COL,bt.COLGROUP,bt.DD,bt.DETAILS,bt.DIR,bt.DIV,bt.DL,bt.DT,bt.EMBED,bt.FIELDSET,bt.FIGCAPTION,bt.FIGURE,bt.FOOTER,bt.FORM,bt.FRAME,bt.FRAMESET,bt.H1,bt.H2,bt.H3,bt.H4,bt.H5,bt.H6,bt.HEAD,bt.HEADER,bt.HGROUP,bt.HR,bt.HTML,bt.IFRAME,bt.IMG,bt.INPUT,bt.LI,bt.LINK,bt.LISTING,bt.MAIN,bt.MARQUEE,bt.MENU,bt.META,bt.NAV,bt.NOEMBED,bt.NOFRAMES,bt.NOSCRIPT,bt.OBJECT,bt.OL,bt.P,bt.PARAM,bt.PLAINTEXT,bt.PRE,bt.SCRIPT,bt.SECTION,bt.SELECT,bt.SOURCE,bt.STYLE,bt.SUMMARY,bt.TABLE,bt.TBODY,bt.TD,bt.TEMPLATE,bt.TEXTAREA,bt.TFOOT,bt.TH,bt.THEAD,bt.TITLE,bt.TR,bt.TRACK,bt.UL,bt.WBR,bt.XMP]),[st.MATHML]:new Set([bt.MI,bt.MO,bt.MN,bt.MS,bt.MTEXT,bt.ANNOTATION_XML]),[st.SVG]:new Set([bt.TITLE,bt.FOREIGN_OBJECT,bt.DESC]),[st.XLINK]:new Set,[st.XML]:new Set,[st.XMLNS]:new Set};function ste(e){return e===bt.H1||e===bt.H2||e===bt.H3||e===bt.H4||e===bt.H5||e===bt.H6}Fe.STYLE,Fe.SCRIPT,Fe.XMP,Fe.IFRAME,Fe.NOEMBED,Fe.NOFRAMES,Fe.PLAINTEXT;const F8e=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 ae;(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"})(ae||(ae={}));const yi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function Qb(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function hb(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function B8e(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Xc(e){return B8e(e)||hb(e)}function VI(e){return Xc(e)||Qb(e)}function lte(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function ute(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function U8e(e){return Qb(e)||lte(e)||ute(e)}function gE(e){return e+32}function cte(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function j8e(e){return e===ne.EQUALS_SIGN||VI(e)}function Pz(e){return cte(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class z8e{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=ae.DATA,this.returnState=ae.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new x8e(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(Xe.endTagWithAttributes),t.selfClosing&&this._err(Xe.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 Pn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Pn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Pn.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:Pn.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=cte(t)?Pn.WHITESPACE_CHARACTER:t===ne.NULL?Pn.NULL_CHARACTER:Pn.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Pn.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let o=0,a=Zc[0];o>=0&&(o=ate(Zc,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=Zc[o];const s=a&Su.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==ne.SEMICOLON&&this._isCharacterReferenceInAttribute()&&j8e(this.preprocessor.peek(1))?(n=[ne.AMPERSAND],o+=l):(n=l===0?[Zc[o]&~Su.VALUE_LENGTH]:l===1?[Zc[++o]]:[Zc[++o],Zc[++o]],r=0,i=t!==ne.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Xe.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ae.DATA:{this._stateData(t);break}case ae.RCDATA:{this._stateRcdata(t);break}case ae.RAWTEXT:{this._stateRawtext(t);break}case ae.SCRIPT_DATA:{this._stateScriptData(t);break}case ae.PLAINTEXT:{this._statePlaintext(t);break}case ae.TAG_OPEN:{this._stateTagOpen(t);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ae.TAG_NAME:{this._stateTagName(t);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ae.COMMENT_START:{this._stateCommentStart(t);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ae.COMMENT:{this._stateComment(t);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ae.COMMENT_END:{this._stateCommentEnd(t);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ae.DOCTYPE:{this._stateDoctype(t);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ae.CDATA_SECTION:{this._stateCdataSection(t);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ae.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ae.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ae.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ae.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this.returnState=ae.DATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitCodePoint(t);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ne.AMPERSAND:{this.returnState=ae.RCDATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Xc(t))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Xe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(t);break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Xe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Xc(t))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.GREATER_THAN_SIGN:{this._err(Xe.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Hr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Xc(t)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Xc(t)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Hr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ma.SCRIPT,!1)&&Pz(this.preprocessor.peek(ma.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(tte(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(rte(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(nte(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=F8e.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const dte=new Set([D.DD,D.DT,D.LI,D.OPTGROUP,D.OPTION,D.P,D.RB,D.RP,D.RT,D.RTC]),Lz=new Set([...dte,D.CAPTION,D.COLGROUP,D.TBODY,D.TD,D.TFOOT,D.TH,D.THEAD,D.TR]),bE=new Map([[D.APPLET,st.HTML],[D.CAPTION,st.HTML],[D.HTML,st.HTML],[D.MARQUEE,st.HTML],[D.OBJECT,st.HTML],[D.TABLE,st.HTML],[D.TD,st.HTML],[D.TEMPLATE,st.HTML],[D.TH,st.HTML],[D.ANNOTATION_XML,st.MATHML],[D.MI,st.MATHML],[D.MN,st.MATHML],[D.MO,st.MATHML],[D.MS,st.MATHML],[D.MTEXT,st.MATHML],[D.DESC,st.SVG],[D.FOREIGN_OBJECT,st.SVG],[D.TITLE,st.SVG]]),V8e=[D.H1,D.H2,D.H3,D.H4,D.H5,D.H6],H8e=[D.TR,D.TEMPLATE,D.HTML],W8e=[D.TBODY,D.TFOOT,D.THEAD,D.TEMPLATE,D.HTML],Q8e=[D.TABLE,D.TEMPLATE,D.HTML],Y8e=[D.TD,D.TH];class G8e{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=D.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===D.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===st.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])!==st.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(Q8e,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(W8e,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(H8e,st.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]===D.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]===D.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===st.HTML)return!0;if(bE.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(ste(n)&&r===st.HTML)return!0;if(bE.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===st.HTML)return!0;if((r===D.UL||r===D.OL)&&i===st.HTML||bE.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===st.HTML)return!0;if(r===D.BUTTON&&i===st.HTML||bE.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])===st.HTML){if(r===t)return!0;if(r===D.TABLE||r===D.TEMPLATE||r===D.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])===st.HTML){if(n===D.TBODY||n===D.THEAD||n===D.TFOOT)return!0;if(n===D.TABLE||n===D.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])===st.HTML){if(r===t)return!0;if(r!==D.OPTION&&r!==D.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;dte.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Lz.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Lz.has(this.currentTagId);)this.pop()}}const g2=3;var Ol;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ol=Ol||(Ol={}));const Mz={type:Ol.Marker};class q8e{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=g2&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Mz)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ol.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ol.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(Mz);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Ol.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Ol.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ol.Element&&n.element===t)}}function $z(e){return{nodeName:"#text",value:e,parentNode:null}}const Nh={createDocument(){return{nodeName:"#document",mode:ns.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(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Nh.appendChild(e,o)}},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(Nh.isTextNode(n)){n.value+=t;return}}Nh.appendChild(e,$z(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Nh.isTextNode(r)?r.value+=t:Nh.insertBefore(e,$z(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function t7e(e){return e.name===fte&&e.publicId===null&&(e.systemId===null||e.systemId===Z8e)}function n7e(e){if(e.name!==fte)return ns.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===X8e)return ns.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),J8e.has(n))return ns.QUIRKS;let r=t===null?K8e:pte;if(Fz(n,r))return ns.QUIRKS;if(r=t===null?hte:e7e,Fz(n,r))return ns.LIMITED_QUIRKS}return ns.NO_QUIRKS}const Bz={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},r7e="definitionurl",i7e="definitionURL",o7e=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])),a7e=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:st.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:st.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:st.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:st.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:st.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:st.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:st.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:st.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:st.XML}],["xml:space",{prefix:"xml",name:"space",namespace:st.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:st.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:st.XMLNS}]]),s7e=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])),l7e=new Set([D.B,D.BIG,D.BLOCKQUOTE,D.BODY,D.BR,D.CENTER,D.CODE,D.DD,D.DIV,D.DL,D.DT,D.EM,D.EMBED,D.H1,D.H2,D.H3,D.H4,D.H5,D.H6,D.HEAD,D.HR,D.I,D.IMG,D.LI,D.LISTING,D.MENU,D.META,D.NOBR,D.OL,D.P,D.PRE,D.RUBY,D.S,D.SMALL,D.SPAN,D.STRONG,D.STRIKE,D.SUB,D.SUP,D.TABLE,D.TT,D.U,D.UL,D.VAR]);function u7e(e){const t=e.tagID;return t===D.FONT&&e.attrs.some(({name:r})=>r===$d.COLOR||r===$d.SIZE||r===$d.FACE)||l7e.has(t)}function mte(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 o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===st.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,st.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=me.TEXT}switchToPlaintextParsing(){this.insertionMode=me.TEXT,this.originalInsertionMode=me.IN_BODY,this.tokenizer.state=yi.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)===Fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==st.HTML))switch(this.fragmentContextID){case D.TITLE:case D.TEXTAREA:{this.tokenizer.state=yi.RCDATA;break}case D.STYLE:case D.XMP:case D.IFRAME:case D.NOEMBED:case D.NOFRAMES:case D.NOSCRIPT:{this.tokenizer.state=yi.RAWTEXT;break}case D.SCRIPT:{this.tokenizer.state=yi.SCRIPT_DATA;break}case D.PLAINTEXT:{this.tokenizer.state=yi.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 a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,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,st.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,st.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(Fe.HTML,st.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,D.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),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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),o=n.type===Pn.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,o)}}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===D.SVG&&this.treeAdapter.getTagName(n)===Fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===st.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===D.MGLYPH||t.tagID===D.MALIGNMARK)&&!this._isIntegrationPoint(r,n,st.HTML)}_processToken(t){switch(t.type){case Pn.CHARACTER:{this.onCharacter(t);break}case Pn.NULL_CHARACTER:{this.onNullCharacter(t);break}case Pn.COMMENT:{this.onComment(t);break}case Pn.DOCTYPE:{this.onDoctype(t);break}case Pn.START_TAG:{this._processStartTag(t);break}case Pn.END_TAG:{this.onEndTag(t);break}case Pn.EOF:{this.onEof(t);break}case Pn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return p7e(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Ol.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=me.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(D.P),this.openElements.popUntilTagNamePopped(D.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case D.TR:{this.insertionMode=me.IN_ROW;return}case D.TBODY:case D.THEAD:case D.TFOOT:{this.insertionMode=me.IN_TABLE_BODY;return}case D.CAPTION:{this.insertionMode=me.IN_CAPTION;return}case D.COLGROUP:{this.insertionMode=me.IN_COLUMN_GROUP;return}case D.TABLE:{this.insertionMode=me.IN_TABLE;return}case D.BODY:{this.insertionMode=me.IN_BODY;return}case D.FRAMESET:{this.insertionMode=me.IN_FRAMESET;return}case D.SELECT:{this._resetInsertionModeForSelect(t);return}case D.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case D.HTML:{this.insertionMode=this.headElement?me.AFTER_HEAD:me.BEFORE_HEAD;return}case D.TD:case D.TH:{if(t>0){this.insertionMode=me.IN_CELL;return}break}case D.HEAD:{if(t>0){this.insertionMode=me.IN_HEAD;return}break}}this.insertionMode=me.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===D.TEMPLATE)break;if(r===D.TABLE){this.insertionMode=me.IN_SELECT_IN_TABLE;return}}this.insertionMode=me.IN_SELECT}_isElementCausesFosterParenting(t){return bte.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 D.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===st.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case D.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 $8e[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){YUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{Yb(this,t);break}case me.BEFORE_HEAD:{Gb(this,t);break}case me.IN_HEAD:{qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Zb(this,t);break}case me.AFTER_HEAD:{Xb(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{Ote(this,t);break}case me.TEXT:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{b2(this,t);break}case me.IN_TABLE_TEXT:{kte(this,t);break}case me.IN_COLUMN_GROUP:{aw(this,t);break}case me.AFTER_BODY:{sw(this,t);break}case me.AFTER_AFTER_BODY:{hS(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){QUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{Yb(this,t);break}case me.BEFORE_HEAD:{Gb(this,t);break}case me.IN_HEAD:{qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Zb(this,t);break}case me.AFTER_HEAD:{Xb(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{b2(this,t);break}case me.IN_COLUMN_GROUP:{aw(this,t);break}case me.AFTER_BODY:{sw(this,t);break}case me.AFTER_AFTER_BODY:{hS(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){HI(this,t);return}switch(this.insertionMode){case me.INITIAL:case me.BEFORE_HTML:case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_TEMPLATE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{HI(this,t);break}case me.IN_TABLE_TEXT:{H0(this,t);break}case me.AFTER_BODY:{w7e(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{k7e(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{x7e(this,t);break}case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:{this._err(t,Xe.misplacedDoctype);break}case me.IN_TABLE_TEXT:{H0(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Xe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?GUe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{C7e(this,t);break}case me.BEFORE_HEAD:{_7e(this,t);break}case me.IN_HEAD:{Vl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{N7e(this,t);break}case me.AFTER_HEAD:{P7e(this,t);break}case me.IN_BODY:{Wo(this,t);break}case me.IN_TABLE:{yg(this,t);break}case me.IN_TABLE_TEXT:{H0(this,t);break}case me.IN_CAPTION:{RUe(this,t);break}case me.IN_COLUMN_GROUP:{V3(this,t);break}case me.IN_TABLE_BODY:{yx(this,t);break}case me.IN_ROW:{Ox(this,t);break}case me.IN_CELL:{DUe(this,t);break}case me.IN_SELECT:{Ate(this,t);break}case me.IN_SELECT_IN_TABLE:{LUe(this,t);break}case me.IN_TEMPLATE:{$Ue(this,t);break}case me.AFTER_BODY:{BUe(this,t);break}case me.IN_FRAMESET:{UUe(this,t);break}case me.AFTER_FRAMESET:{zUe(this,t);break}case me.AFTER_AFTER_BODY:{HUe(this,t);break}case me.AFTER_AFTER_FRAMESET:{WUe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?qUe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{A7e(this,t);break}case me.BEFORE_HEAD:{R7e(this,t);break}case me.IN_HEAD:{I7e(this,t);break}case me.IN_HEAD_NO_SCRIPT:{D7e(this,t);break}case me.AFTER_HEAD:{L7e(this,t);break}case me.IN_BODY:{bx(this,t);break}case me.TEXT:{vUe(this,t);break}case me.IN_TABLE:{f1(this,t);break}case me.IN_TABLE_TEXT:{H0(this,t);break}case me.IN_CAPTION:{IUe(this,t);break}case me.IN_COLUMN_GROUP:{NUe(this,t);break}case me.IN_TABLE_BODY:{WI(this,t);break}case me.IN_ROW:{Cte(this,t);break}case me.IN_CELL:{PUe(this,t);break}case me.IN_SELECT:{_te(this,t);break}case me.IN_SELECT_IN_TABLE:{MUe(this,t);break}case me.IN_TEMPLATE:{FUe(this,t);break}case me.AFTER_BODY:{Ite(this,t);break}case me.IN_FRAMESET:{jUe(this,t);break}case me.AFTER_FRAMESET:{VUe(this,t);break}case me.AFTER_AFTER_BODY:{hS(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{V0(this,t);break}case me.BEFORE_HTML:{Yb(this,t);break}case me.BEFORE_HEAD:{Gb(this,t);break}case me.IN_HEAD:{qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Zb(this,t);break}case me.AFTER_HEAD:{Xb(this,t);break}case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{Tte(this,t);break}case me.TEXT:{EUe(this,t);break}case me.IN_TABLE_TEXT:{H0(this,t);break}case me.IN_TEMPLATE:{Rte(this,t);break}case me.AFTER_BODY:case me.IN_FRAMESET:case me.AFTER_FRAMESET:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{z3(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ne.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 me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.TEXT:case me.IN_COLUMN_GROUP:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{this._insertCharacters(t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:case me.AFTER_BODY:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{yte(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{b2(this,t);break}case me.IN_TABLE_TEXT:{wte(this,t);break}}}}function y7e(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):Ste(e,t),n}function O7e(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 v7e(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=g7e;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=E7e(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function E7e(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 S7e(e,t,n){const r=e.treeAdapter.getTagName(t),i=Qg(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===D.TEMPLATE&&o===st.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function T7e(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function j3(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 o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function x7e(e,t){e._setDocumentType(t);const n=t.forceQuirks?ns.QUIRKS:n7e(t);t7e(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function V0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ns.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function C7e(e,t){t.tagID===D.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):Yb(e,t)}function A7e(e,t){const n=t.tagID;(n===D.HTML||n===D.HEAD||n===D.BODY||n===D.BR)&&Yb(e,t)}function Yb(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function _7e(e,t){switch(t.tagID){case D.HTML:{Wo(e,t);break}case D.HEAD:{e._insertElement(t,st.HTML),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD;break}default:Gb(e,t)}}function R7e(e,t){const n=t.tagID;n===D.HEAD||n===D.BODY||n===D.HTML||n===D.BR?Gb(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Gb(e,t){e._insertFakeElement(Fe.HEAD,D.HEAD),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD,e._processToken(t)}function Vl(e,t){switch(t.tagID){case D.HTML:{Wo(e,t);break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case D.TITLE:{e._switchToTextParsing(t,yi.RCDATA);break}case D.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,yi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case D.NOFRAMES:case D.STYLE:{e._switchToTextParsing(t,yi.RAWTEXT);break}case D.SCRIPT:{e._switchToTextParsing(t,yi.SCRIPT_DATA);break}case D.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=me.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(me.IN_TEMPLATE);break}case D.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:qb(e,t)}}function I7e(e,t){switch(t.tagID){case D.HEAD:{e.openElements.pop(),e.insertionMode=me.AFTER_HEAD;break}case D.BODY:case D.BR:case D.HTML:{qb(e,t);break}case D.TEMPLATE:{zp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function zp(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==D.TEMPLATE&&e._err(t,Xe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function qb(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function N7e(e,t){switch(t.tagID){case D.HTML:{Wo(e,t);break}case D.BASEFONT:case D.BGSOUND:case D.HEAD:case D.LINK:case D.META:case D.NOFRAMES:case D.STYLE:{Vl(e,t);break}case D.NOSCRIPT:{e._err(t,Xe.nestedNoscriptInHead);break}default:Zb(e,t)}}function D7e(e,t){switch(t.tagID){case D.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case D.BR:{Zb(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Zb(e,t){const n=t.type===Pn.EOF?Xe.openElementsLeftAfterEof:Xe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=me.IN_HEAD,e._processToken(t)}function P7e(e,t){switch(t.tagID){case D.HTML:{Wo(e,t);break}case D.BODY:{e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_BODY;break}case D.FRAMESET:{e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET;break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{e._err(t,Xe.abandonedHeadElementChild),e.openElements.push(e.headElement,D.HEAD),Vl(e,t),e.openElements.remove(e.headElement);break}case D.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:Xb(e,t)}}function L7e(e,t){switch(t.tagID){case D.BODY:case D.HTML:case D.BR:{Xb(e,t);break}case D.TEMPLATE:{zp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Xb(e,t){e._insertFakeElement(Fe.BODY,D.BODY),e.insertionMode=me.IN_BODY,gx(e,t)}function gx(e,t){switch(t.type){case Pn.CHARACTER:{Ote(e,t);break}case Pn.WHITESPACE_CHARACTER:{yte(e,t);break}case Pn.COMMENT:{HI(e,t);break}case Pn.START_TAG:{Wo(e,t);break}case Pn.END_TAG:{bx(e,t);break}case Pn.EOF:{Tte(e,t);break}}}function yte(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ote(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function M7e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function $7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function F7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET)}function B7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function U7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),ste(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function j7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function z7e(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),n||(e.formElement=e.openElements.current))}function V7e(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===D.LI&&i===D.LI||(n===D.DD||n===D.DT)&&(i===D.DD||i===D.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==D.ADDRESS&&i!==D.DIV&&i!==D.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function H7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=yi.PLAINTEXT}function W7e(e,t){e.openElements.hasInScope(D.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(D.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1}function Q7e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(j3(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Y7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function G7e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(D.NOBR)&&(j3(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function q7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Z7e(e,t){e.treeAdapter.getDocumentMode(e.document)!==ns.QUIRKS&&e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_TABLE}function vte(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ete(e){const t=ite(e,$d.TYPE);return t!=null&&t.toLowerCase()===h7e}function X7e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),Ete(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function K7e(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function J7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function eUe(e,t){t.tagName=Fe.IMG,t.tagID=D.IMG,vte(e,t)}function tUe(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=yi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function nUe(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,yi.RAWTEXT)}function rUe(e,t){e.framesetOk=!1,e._switchToTextParsing(t,yi.RAWTEXT)}function zz(e,t){e._switchToTextParsing(t,yi.RAWTEXT)}function iUe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===me.IN_TABLE||e.insertionMode===me.IN_CAPTION||e.insertionMode===me.IN_TABLE_BODY||e.insertionMode===me.IN_ROW||e.insertionMode===me.IN_CELL?me.IN_SELECT_IN_TABLE:me.IN_SELECT}function oUe(e,t){e.openElements.currentTagId===D.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function aUe(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function sUe(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(D.RTC),e._insertElement(t,st.HTML)}function lUe(e,t){e._reconstructActiveFormattingElements(),mte(t),U3(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function uUe(e,t){e._reconstructActiveFormattingElements(),gte(t),U3(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function Vz(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function Wo(e,t){switch(t.tagID){case D.I:case D.S:case D.B:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.SMALL:case D.STRIKE:case D.STRONG:{Y7e(e,t);break}case D.A:{Q7e(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{U7e(e,t);break}case D.P:case D.DL:case D.OL:case D.UL:case D.DIV:case D.DIR:case D.NAV:case D.MAIN:case D.MENU:case D.ASIDE:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.DETAILS:case D.ADDRESS:case D.ARTICLE:case D.SECTION:case D.SUMMARY:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{B7e(e,t);break}case D.LI:case D.DD:case D.DT:{V7e(e,t);break}case D.BR:case D.IMG:case D.WBR:case D.AREA:case D.EMBED:case D.KEYGEN:{vte(e,t);break}case D.HR:{J7e(e,t);break}case D.RB:case D.RTC:{aUe(e,t);break}case D.RT:case D.RP:{sUe(e,t);break}case D.PRE:case D.LISTING:{j7e(e,t);break}case D.XMP:{nUe(e,t);break}case D.SVG:{uUe(e,t);break}case D.HTML:{M7e(e,t);break}case D.BASE:case D.LINK:case D.META:case D.STYLE:case D.TITLE:case D.SCRIPT:case D.BGSOUND:case D.BASEFONT:case D.TEMPLATE:{Vl(e,t);break}case D.BODY:{$7e(e,t);break}case D.FORM:{z7e(e,t);break}case D.NOBR:{G7e(e,t);break}case D.MATH:{lUe(e,t);break}case D.TABLE:{Z7e(e,t);break}case D.INPUT:{X7e(e,t);break}case D.PARAM:case D.TRACK:case D.SOURCE:{K7e(e,t);break}case D.IMAGE:{eUe(e,t);break}case D.BUTTON:{W7e(e,t);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{q7e(e,t);break}case D.IFRAME:{rUe(e,t);break}case D.SELECT:{iUe(e,t);break}case D.OPTION:case D.OPTGROUP:{oUe(e,t);break}case D.NOEMBED:{zz(e,t);break}case D.FRAMESET:{F7e(e,t);break}case D.TEXTAREA:{tUe(e,t);break}case D.NOSCRIPT:{e.options.scriptingEnabled?zz(e,t):Vz(e,t);break}case D.PLAINTEXT:{H7e(e,t);break}case D.COL:case D.TH:case D.TD:case D.TR:case D.HEAD:case D.FRAME:case D.TBODY:case D.TFOOT:case D.THEAD:case D.CAPTION:case D.COLGROUP:break;default:Vz(e,t)}}function cUe(e,t){if(e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function dUe(e,t){e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,Ite(e,t))}function fUe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function pUe(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(D.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(D.FORM):n&&e.openElements.remove(n))}function hUe(e){e.openElements.hasInButtonScope(D.P)||e._insertFakeElement(Fe.P,D.P),e._closePElement()}function mUe(e){e.openElements.hasInListItemScope(D.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(D.LI),e.openElements.popUntilTagNamePopped(D.LI))}function gUe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function bUe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function yUe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function OUe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,D.BR),e.openElements.pop(),e.framesetOk=!1}function Ste(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==D.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function bx(e,t){switch(t.tagID){case D.A:case D.B:case D.I:case D.S:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.NOBR:case D.SMALL:case D.STRIKE:case D.STRONG:{j3(e,t);break}case D.P:{hUe(e);break}case D.DL:case D.UL:case D.OL:case D.DIR:case D.DIV:case D.NAV:case D.PRE:case D.MAIN:case D.MENU:case D.ASIDE:case D.BUTTON:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.ADDRESS:case D.ARTICLE:case D.DETAILS:case D.SECTION:case D.SUMMARY:case D.LISTING:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{fUe(e,t);break}case D.LI:{mUe(e);break}case D.DD:case D.DT:{gUe(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{bUe(e);break}case D.BR:{OUe(e);break}case D.BODY:{cUe(e,t);break}case D.HTML:{dUe(e,t);break}case D.FORM:{pUe(e);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{yUe(e,t);break}case D.TEMPLATE:{zp(e,t);break}default:Ste(e,t)}}function Tte(e,t){e.tmplInsertionModeStack.length>0?Rte(e,t):z3(e,t)}function vUe(e,t){var n;t.tagID===D.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function EUe(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function b2(e,t){if(bte.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=me.IN_TABLE_TEXT,t.type){case Pn.CHARACTER:{kte(e,t);break}case Pn.WHITESPACE_CHARACTER:{wte(e,t);break}}else wO(e,t)}function SUe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function TUe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function wUe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,D.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,V3(e,t)}function kUe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function xUe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,D.TBODY),e.insertionMode=me.IN_TABLE_BODY,yx(e,t)}function CUe(e,t){e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function AUe(e,t){Ete(t)?e._appendElement(t,st.HTML):wO(e,t),t.ackSelfClosing=!0}function _Ue(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function yg(e,t){switch(t.tagID){case D.TD:case D.TH:case D.TR:{xUe(e,t);break}case D.STYLE:case D.SCRIPT:case D.TEMPLATE:{Vl(e,t);break}case D.COL:{wUe(e,t);break}case D.FORM:{_Ue(e,t);break}case D.TABLE:{CUe(e,t);break}case D.TBODY:case D.TFOOT:case D.THEAD:{kUe(e,t);break}case D.INPUT:{AUe(e,t);break}case D.CAPTION:{SUe(e,t);break}case D.COLGROUP:{TUe(e,t);break}default:wO(e,t)}}function f1(e,t){switch(t.tagID){case D.TABLE:{e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode());break}case D.TEMPLATE:{zp(e,t);break}case D.BODY:case D.CAPTION:case D.COL:case D.COLGROUP:case D.HTML:case D.TBODY:case D.TD:case D.TFOOT:case D.TH:case D.THEAD:case D.TR:break;default:wO(e,t)}}function wO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,gx(e,t),e.fosterParentingEnabled=n}function wte(e,t){e.pendingCharacterTokens.push(t)}function kte(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function H0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===D.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===D.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===D.OPTGROUP&&e.openElements.pop();break}case D.OPTION:{e.openElements.currentTagId===D.OPTION&&e.openElements.pop();break}case D.SELECT:{e.openElements.hasInSelectScope(D.SELECT)&&(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode());break}case D.TEMPLATE:{zp(e,t);break}}}function LUe(e,t){const n=t.tagID;n===D.CAPTION||n===D.TABLE||n===D.TBODY||n===D.TFOOT||n===D.THEAD||n===D.TR||n===D.TD||n===D.TH?(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ate(e,t)}function MUe(e,t){const n=t.tagID;n===D.CAPTION||n===D.TABLE||n===D.TBODY||n===D.TFOOT||n===D.THEAD||n===D.TR||n===D.TD||n===D.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode(),e.onEndTag(t)):_te(e,t)}function $Ue(e,t){switch(t.tagID){case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{Vl(e,t);break}case D.CAPTION:case D.COLGROUP:case D.TBODY:case D.TFOOT:case D.THEAD:{e.tmplInsertionModeStack[0]=me.IN_TABLE,e.insertionMode=me.IN_TABLE,yg(e,t);break}case D.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,V3(e,t);break}case D.TR:{e.tmplInsertionModeStack[0]=me.IN_TABLE_BODY,e.insertionMode=me.IN_TABLE_BODY,yx(e,t);break}case D.TD:case D.TH:{e.tmplInsertionModeStack[0]=me.IN_ROW,e.insertionMode=me.IN_ROW,Ox(e,t);break}default:e.tmplInsertionModeStack[0]=me.IN_BODY,e.insertionMode=me.IN_BODY,Wo(e,t)}}function FUe(e,t){t.tagID===D.TEMPLATE&&zp(e,t)}function Rte(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):z3(e,t)}function BUe(e,t){t.tagID===D.HTML?Wo(e,t):sw(e,t)}function Ite(e,t){var n;if(t.tagID===D.HTML){if(e.fragmentContext||(e.insertionMode=me.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===D.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 sw(e,t)}function sw(e,t){e.insertionMode=me.IN_BODY,gx(e,t)}function UUe(e,t){switch(t.tagID){case D.HTML:{Wo(e,t);break}case D.FRAMESET:{e._insertElement(t,st.HTML);break}case D.FRAME:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case D.NOFRAMES:{Vl(e,t);break}}}function jUe(e,t){t.tagID===D.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==D.FRAMESET&&(e.insertionMode=me.AFTER_FRAMESET))}function zUe(e,t){switch(t.tagID){case D.HTML:{Wo(e,t);break}case D.NOFRAMES:{Vl(e,t);break}}}function VUe(e,t){t.tagID===D.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function HUe(e,t){t.tagID===D.HTML?Wo(e,t):hS(e,t)}function hS(e,t){e.insertionMode=me.IN_BODY,gx(e,t)}function WUe(e,t){switch(t.tagID){case D.HTML:{Wo(e,t);break}case D.NOFRAMES:{Vl(e,t);break}}}function QUe(e,t){t.chars=Hr,e._insertCharacters(t)}function YUe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Nte(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function GUe(e,t){if(u7e(t))Nte(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?mte(t):r===st.SVG&&(c7e(t),gte(t)),U3(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function qUe(e,t){if(t.tagID===D.P||t.tagID===D.BR){Nte(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)===st.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Fe.AREA,Fe.BASE,Fe.BASEFONT,Fe.BGSOUND,Fe.BR,Fe.COL,Fe.EMBED,Fe.FRAME,Fe.HR,Fe.IMG,Fe.INPUT,Fe.KEYGEN,Fe.LINK,Fe.META,Fe.PARAM,Fe.SOURCE,Fe.TRACK,Fe.WBR;const ZUe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Hz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Dte(e,t){const n=a9e(e),r=P3("type",{handlers:{root:XUe,element:KUe,text:JUe,comment:Lte,doctype:e9e,raw:n9e},unknown:r9e}),i={parser:n?new jz(Hz):jz.getFragmentParser(void 0,Hz),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Yg(i,zu());const o=n?i.parser.document:i.parser.getFragment(),a=l8e(o,{file:i.options.file});return i.stitches&&Da(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function Pte(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 Fte(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Fte(t.parentElement):null}function u9e(e){var t=n=>{var r=Fte(n.target);r&&(r.classList.add("active"),l9e(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};I.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 c9e=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],d9e=e=>e;const f9e=Qt.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:a=!1,skipHtml:s=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:p={},urlTransform:h}=e,m=Ye(e,c9e),b=Qt.useRef(null);I.useImperativeHandle(t,()=>L({},e,{mdp:b}),[b,e]);var O=(n||"")+" "+(r||"");u9e(b);var y=[...m.rehypePlugins||[]],v={allowElement:(C,w,E)=>m.allowElement?m.allowElement(C,w,E):/^[A-Za-z0-9]+$/.test(C.tagName)};s&&y.push($te);var S=[...m.remarkPlugins||[],ZBe],k=L({},p,d);return N.jsx("div",L({ref:b,onScroll:l,onMouseOver:u},k,{className:O,style:o,children:N.jsx(BFe,L({},v,m,{skipHtml:s,urlTransform:h||d9e,rehypePlugins:c?c("rehype",y):y,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function nm(e){return"children"in e?Bte(e):"value"in e?e.value:""}function p9e(e){return e.type==="text"?e.value:"children"in e?Bte(e):""}function Bte(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)h9e.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function g9e(e){return"children"in e&&e.children!==void 0}var QI={exports:{}};(function(e,t){function n(r){let i=[],o;for(let a of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(a))i.push(parseInt(a,10));else if(o=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,l,u,c]=o;if(l&&c){l=parseInt(l),c=parseInt(c);const d=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Hl.displayName="c";Hl.aliases=[];function Hl(e){e.register(jn),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}Vp.displayName="cpp";Vp.aliases=[];function Vp(e){e.register(Hl),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)}vx.displayName="arduino";vx.aliases=["ino"];function vx(e){e.register(Vp),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}xO.displayName="bash";xO.aliases=["sh","shell"];function xO(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 o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=i.variable[1].inside,s=0;s>/g,function(ve,G){return"(?:"+se[+G]+")"})}function r(j,se,ve){return RegExp(n(j,se),ve||"")}function i(j,se){for(var ve=0;ve>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var o={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 a(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var s=a(o.typeDeclaration),l=RegExp(a(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=a(o.typeDeclaration+" "+o.contextual+" "+o.other),c=a(o.type+" "+o.typeDeclaration+" "+o.other),d=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[h,d]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,m]),O=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,O]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,p,O]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),k=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,b,O]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,m]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,h]),inside:C}],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,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),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:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,b]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,d]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"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,[s,m,h,k,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(k),greedy:!0,inside:C},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 P=E+"|"+w,_=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[P]),B=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,B]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[B]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),q=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[P]),2),Y=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,z]);function Z(j,se){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[se,z]),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,[X]),lookbehind:!0,greedy:!0,inside:Z(X,W)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Y]),lookbehind:!0,greedy:!0,inside:Z(Y,q)}],char:{pattern:RegExp(w),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}io.displayName="markup";io.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function io(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 o={"included-cdata":{pattern://i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",a)}}),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}hf.displayName="css";hf.aliases=[];function hf(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)}Ex.displayName="diff";Ex.aliases=[];function Ex(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],o=[];/^\w+$/.test(r)||o.push(/\w+/.exec(r)[0]),r==="diff"&&o.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:o,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)}Sx.displayName="go";Sx.aliases=[];function Sx(e){e.register(jn),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"]}Tx.displayName="ini";Tx.aliases=[];function Tx(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:/=/}}Wp.displayName="java";Wp.aliases=[];function Wp(e){e.register(jn),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)}wx.displayName="regex";wx.aliases=[];function wx(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"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a="(?:[^\\\\-]|"+r.source+")",s=RegExp(a+"-"+a),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:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,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}Gg.displayName="json";Gg.aliases=["webmanifest"];function Gg(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}kx.displayName="kotlin";kx.aliases=["kt","kts"];function kx(e){e.register(jn),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)}xx.displayName="less";xx.aliases=[];function xx(e){e.register(hf),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"}})}CO.displayName="lua";CO.aliases=[];function CO(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:/[\[\](){},;]|\.+|:+/}}Cx.displayName="makefile";Cx.aliases=[];function Cx(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:/[:;(){}]/}}AO.displayName="yaml";AO.aliases=["yml"];function AO(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\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}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(c,u)}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"(?:"+o+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\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:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(a),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?: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)}Ax.displayName="markdown";Ax.aliases=["md"];function Ax(e){e.register(io),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),a=/\|?[ \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("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),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(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}Rx.displayName="perl";Rx.aliases=[];function Rx(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)}To.displayName="markup-templating";To.aliases=[];function To(e){e.register(io),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,o,a){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(o,function(l){if(typeof a=="function"&&!a(l))return l;for(var u=s.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return s[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var o=0,a=Object.keys(r.tokenStack);function s(l){for(var u=0;u=a.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=a[o],p=r.tokenStack[d],h=typeof c=="string"?c:c.content,m=n(i,d),b=h.indexOf(m);if(b>-1){++o;var O=h.substring(0,b),y=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),v=h.substring(b+m.length),S=[];O&&S.push.apply(S,s([O])),S.push(y),v&&S.push.apply(S,s([v])),typeof c=="string"?l.splice.apply(l,[u,1].concat(S)):c.content=S}}else c.content&&s(c.content)}return l}s(r.tokens)}}})}(e)}Qp.displayName="php";Qp.aliases=[];function Qp(e){e.register(To),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,o=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;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:o,punctuation:a};var s={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:s}},{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:s}}];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:o,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}_O.displayName="python";_O.aliases=["py"];function _O(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}Ix.displayName="r";Ix.aliases=[];function Ix(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:/[(){}\[\],;]/}}Yp.displayName="ruby";Yp.aliases=["rb"];function Yp(e){e.register(jn),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)}Dx.displayName="rust";Dx.aliases=[];function Dx(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)}Nx.displayName="sass";Nx.aliases=[];function Nx(e){e.register(hf),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)}Px.displayName="scss";Px.aliases=[];function Px(e){e.register(hf),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}qg.displayName="sql";qg.aliases=[];function qg(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:/[;[\]()`,.]/}}Lx.displayName="swift";Lx.aliases=[];function Lx(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})}Zg.displayName="typescript";Zg.aliases=["ts"];function Zg(e){e.register(So),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)}RO.displayName="basic";RO.aliases=[];function RO(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:/[,;:()]/}}IO.displayName="vbnet";IO.aliases=[];function IO(e){e.register(RO),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 Wz=/[#.]/g;function O9e(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function A9e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function _9e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Gz(e){return _9e(e)||Ute(e)}const Oh=String.fromCharCode,R9e=["","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 I9e(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,o=-1,a="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let u=(s?s.line:0)||1,c=(s?s.column:0)||1,d=h(),p;for(i--;++i<=e.length;)if(p===10&&(c=(l?l[o]:0)||1),p=e.charCodeAt(i),p===38){const O=e.charCodeAt(i+1);if(O===9||O===10||O===12||O===32||O===38||O===60||Number.isNaN(O)||n&&O===n){a+=Oh(p),c++;continue}const y=i+1;let v=y,S=y,k;if(O===35){S=++v;const U=e.charCodeAt(S);U===88||U===120?(k="hexadecimal",S=++v):k="decimal"}else k="named";let C="",w="",E="";const $=k==="named"?Gz:k==="decimal"?Ute:A9e;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!$(U))break;E+=Oh(U),k==="named"&&C9e.includes(E)&&(C=E,w=d1(E))}let P=e.charCodeAt(S)===59;if(P){S++;const U=k==="named"?d1(E):!1;U&&(C=E,w=U)}let _=1+S-y,B="";if(!(!P&&t.nonTerminated===!1))if(!E)k!=="named"&&m(4,_);else if(k==="named"){if(P&&!w)m(5,1);else if(C!==E&&(S=v+C.length,_=1+S-v,P=!1),!P){const U=C?1:3;if(t.attribute){const V=e.charCodeAt(S);V===61?(m(U,_),w=""):Gz(V)?w="":m(U,_)}else m(U,_)}B=w}else{P||m(2,_);let U=Number.parseInt(E,k==="hexadecimal"?16:10);if(D9e(U))m(7,_),B=Oh(65533);else if(U in Yz)m(6,_),B=Yz[U];else{let V="";N9e(U)&&m(6,_),U>65535&&(U-=65536,V+=Oh(U>>>10|55296),U=56320|U&1023),B=V+Oh(U)}}if(B){b(),d=h(),i=S-1,c+=S-y+1,r.push(B);const U=h();U.offset++,t.reference&&t.reference.call(t.referenceContext,B,{start:d,end:U},e.slice(y-1,S)),d=U}else E=e.slice(y-1,S),a+=E,c+=E.length,i=S-1}else p===10&&(u++,o++,c=0),Number.isNaN(p)?b():(a+=Oh(p),c++);return r.join("");function h(){return{line:u,column:c,offset:i+((s?s.offset:0)||0)}}function m(O,y){let v;t.warning&&(v=h(),v.column+=y,v.offset+=y,t.warning.call(t.warningContext,R9e[O],v,O))}function b(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function D9e(e){return e>=55296&&e<=57343||e>1114111}function N9e(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 P9e=0,yE={},Yi={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++P9e}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Yi.util.type(t)){case"Object":if(i=Yi.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var o in t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=Yi.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(a,s){r[s]=e(a,n)}),r);default:return t}}},languages:{plain:yE,plaintext:yE,text:yE,txt:yE,extend:function(e,t){var n=Yi.util.clone(Yi.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Yi.languages;var i=r[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[e];return r[e]=o,Yi.languages.DFS(Yi.languages,function(u,c){c===l&&u!=e&&(this[u]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=Yi.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=Yi.util.type(s);l==="Object"&&!i[o(s)]?(i[o(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[o(s)]&&(i[o(s)]=!0,e(s,n,a,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Yi.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Yi.tokenize(r.code,r.grammar),Yi.hooks.run("after-tokenize",r),Kb.stringify(Yi.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 L9e;return mS(i,i.head,e),jte(e,i,t,i.head,0),$9e(i)},hooks:{all:{},add:function(e,t){var n=Yi.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Yi.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Kb};function Kb(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function qz(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function jte(e,t,n,r,i,o){for(var a in n)if(!(!n.hasOwnProperty(a)||!n[a])){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l=o.reach);y+=O.value.length,O=O.next){var v=O.value;if(t.length>e.length)return;if(!(v instanceof Kb)){var S=1,k;if(p){if(k=qz(b,y,e,d),!k||k.index>=e.length)break;var $=k.index,C=k.index+k[0].length,w=y;for(w+=O.value.length;$>=w;)O=O.next,w+=O.value.length;if(w-=O.value.length,y=w,O.value instanceof Kb)continue;for(var E=O;E!==t.tail&&(wo.reach&&(o.reach=U);var V=O.prev;_&&(V=mS(t,V,_),y+=_.length),M9e(t,V,S);var z=new Kb(a,c?Yi.tokenize(P,c):P,h,P);if(O=mS(t,V,z),B&&mS(t,O,B),S>1){var W={cause:a+","+l,reach:U};jte(e,t,n,O.prev,y,W),o&&W.reach>o.reach&&(o.reach=W.reach)}}}}}}function L9e(){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 mS(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 M9e(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:/[,.:()]/}}W3.displayName="abnf";W3.aliases=[];function W3(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)}Q3.displayName="actionscript";Q3.aliases=[];function Q3(e){e.register(So),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}})}Y3.displayName="ada";Y3.aliases=[];function Y3(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}}G3.displayName="agda";G3.aliases=[];function G3(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)}q3.displayName="al";q3.aliases=[];function q3(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:/[()\[\]{}:.;,]/}}Z3.displayName="antlr4";Z3.aliases=["g4"];function Z3(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}X3.displayName="apacheconf";X3.aliases=[];function X3(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:/\^?.*\$|\^.*\$?/}}K3.displayName="apex";K3.aliases=[];function K3(e){e.register(jn),e.register(qg),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(a){return RegExp(a.replace(//g,function(){return r}),"i")}var o={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:o},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:o},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:o}],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)}J3.displayName="apl";J3.aliases=[];function J3(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"}}}eL.displayName="applescript";eL.aliases=[];function eL(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:/[{}():,¬«»《》]/}}tL.displayName="aql";tL.aliases=[];function tL(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:/::|[?.:,;()[\]{}]/}}nL.displayName="arff";nL.aliases=[];function nL(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:/[{},]/}}rL.displayName="armasm";rL.aliases=["arm-asm"];function rL(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}iL.displayName="arturo";iL.aliases=["art"];function iL(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)}oL.displayName="asciidoc";oL.aliases=["adoc"];function oL(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(o){o=o.split(" ");for(var a={},s=0,l=o.length;s/,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||{}}})}sL.displayName="asm6502";sL.aliases=[];function sL(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:/[(),:]/}}lL.displayName="asmatmel";lL.aliases=[];function lL(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:/[(),:]/}}uL.displayName="autohotkey";uL.aliases=[];function uL(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:/[{}[\]():,]/}}cL.displayName="autoit";cL.aliases=[];function cL(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:/[\[\]().,:]/}}dL.displayName="avisynth";dL.aliases=["avs"];function dL(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(d,p){return c[+p]})}function r(u,c,d){return RegExp(n(u,c),d||"")}var i=/bool|clip|float|int|string|val/.source,o=[/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("|"),a=[/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("|"),s=[/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=[o,a,s].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)}fL.displayName="avro-idl";fL.aliases=["avdl"];function fL(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"]}pL.displayName="awk";pL.aliases=["gawk"];function pL(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}hL.displayName="batch";hL.aliases=[];function hL(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\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:o,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:o,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:o,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:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}mL.displayName="bbcode";mL.aliases=["shortcode"];function mL(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}gL.displayName="bbj";gL.aliases=[];function gL(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)}bL.displayName="bicep";bL.aliases=[];function bL(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}yL.displayName="birb";yL.aliases=[];function yL(e){e.register(jn),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"}})}OL.displayName="bison";OL.aliases=[];function OL(e){e.register(Hl),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:/%[%?]|[|:;\[\]<>]/}}})}vL.displayName="bnf";vL.aliases=["rbnf"];function vL(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}EL.displayName="bqn";EL.aliases=[];function EL(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}SL.displayName="brainfuck";SL.aliases=[];function SL(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}TL.displayName="brightscript";TL.aliases=[];function TL(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}wL.displayName="bro";wL.aliases=[];function wL(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:/[{}[\];(),.:]/}}kL.displayName="bsl";kL.aliases=["oscript"];function kL(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}xL.displayName="cfscript";xL.aliases=["cfc"];function xL(e){e.register(jn),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}CL.displayName="chaiscript";CL.aliases=[];function CL(e){e.register(jn),e.register(Vp),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]+/}}})}AL.displayName="cil";AL.aliases=[];function AL(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]+/}}_L.displayName="cilkc";_L.aliases=["cilk-c"];function _L(e){e.register(Hl),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}RL.displayName="cilkcpp";RL.aliases=["cilk","cilk-cpp"];function RL(e){e.register(Vp),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}IL.displayName="clojure";IL.aliases=[];function IL(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:/[{}\[\](),]/}}DL.displayName="cmake";DL.aliases=[];function DL(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:/[()>}]|\$[<{]/}}NL.displayName="cobol";NL.aliases=[];function NL(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:/[.:,()]/}}PL.displayName="coffeescript";PL.aliases=["coffee"];function PL(e){e.register(So),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)}LL.displayName="concurnas";LL.aliases=["conc"];function LL(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}ML.displayName="csp";ML.aliases=[];function ML(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)}$L.displayName="cooklang";$L.aliases=[];function $L(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,o=r+i,a=/(?:h|hours|hrs|m|min|minutes)/.source,s={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("#(?:"+o+"|"+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("@(?:"+o+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+a+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}FL.displayName="coq";FL.aliases=[];function FL(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)}BL.displayName="crystal";BL.aliases=[];function BL(e){e.register(Yp),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)}UL.displayName="css-extras";UL.aliases=[];function UL(e){e.register(hf),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},o={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:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})}(e)}jL.displayName="csv";jL.aliases=[];function jL(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}zL.displayName="cue";zL.aliases=[];function zL(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)}VL.displayName="cypher";VL.aliases=[];function VL(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:/[()[\]{},;.]/}}HL.displayName="d";HL.aliases=[];function HL(e){e.register(jn),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"}})}WL.displayName="dart";WL.aliases=[];function WL(e){e.register(jn),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)}QL.displayName="dataweave";QL.aliases=[];function QL(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)}YL.displayName="dax";YL.aliases=[];function YL(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:/[;\[\](){}`,.]/}}GL.displayName="dhall";GL.aliases=[];function GL(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}qL.displayName="django";qL.aliases=["jinja2"];function qL(e){e.register(To),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)}ZL.displayName="dns-zone-file";ZL.aliases=["dns-zone"];function ZL(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"]}XL.displayName="docker";XL.aliases=["dockerfile"];function XL(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,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),a={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return o}).replace(//g,function(){return r}),RegExp(u,c)}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:[a,{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:s,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}KL.displayName="dot";KL.aliases=["gv"];function KL(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(o,a){return RegExp(o.replace(//g,function(){return n}),a)}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)}JL.displayName="ebnf";JL.aliases=[];function JL(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:/[-=|*/!]/}}eM.displayName="editorconfig";eM.aliases=[];function eM(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:/^=/}}}}tM.displayName="eiffel";tM.aliases=[];function tM(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}nM.displayName="ejs";nM.aliases=["eta"];function nM(e){e.register(So),e.register(To),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)}rM.displayName="elixir";rM.aliases=[];function rM(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}}}})}iM.displayName="elm";iM.aliases=[];function iM(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:/[{}[\]|(),.:]/}}oM.displayName="etlua";oM.aliases=[];function oM(e){e.register(CO),e.register(To),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)}aM.displayName="erb";aM.aliases=[];function aM(e){e.register(To),e.register(Yp),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)}sM.displayName="erlang";sM.aliases=[];function sM(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:/[()[\]{}:;,.#|]|<<|>>/}}lM.displayName="excel-formula";lM.aliases=["xls","xlsx"];function lM(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"]}uM.displayName="fsharp";uM.aliases=[];function uM(e){e.register(jn),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}})}cM.displayName="factor";cM.aliases=[];function cM(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}},o=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},a=function(u){return new RegExp("(^|\\s)(?:"+u.map(o).join("|")+")(?=\\s|$)")},s={"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(s).forEach(function(u){i[u].pattern=a(s[u])});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=a(l),t.languages.factor=i})(e)}dM.displayName="false";dM.aliases=[];function dM(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:/,/}}})}pM.displayName="flow";pM.aliases=[];function pM(e){e.register(So),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)}hM.displayName="fortran";hM.aliases=[];function hM(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:/\(\/|\/\)|[(),;:&]/}}mM.displayName="ftl";mM.aliases=[];function mM(e){e.register(To),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(o){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(o,"ftl",a)}),t.hooks.add("after-tokenize",function(o){t.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})}(e)}gM.displayName="gml";gM.aliases=["gamemakerlanguage"];function gM(e){e.register(jn),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/})}bM.displayName="gap";bM.aliases=[];function bM(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}yM.displayName="gcode";yM.aliases=[];function yM(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:/[:*]/}}OM.displayName="gdscript";OM.aliases=[];function OM(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:/[.:,;()[\]{}]/}}vM.displayName="gedcom";vM.aliases=[];function vM(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"}}}EM.displayName="gettext";EM.aliases=["po"];function EM(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}SM.displayName="gherkin";SM.aliases=[];function SM(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)}TM.displayName="git";TM.aliases=[];function TM(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}}wM.displayName="glsl";wM.aliases=[];function wM(e){e.register(Hl),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/})}kM.displayName="gn";kM.aliases=["gni"];function kM(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}xM.displayName="linker-script";xM.aliases=["ld"];function xM(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"]}CM.displayName="go-module";CM.aliases=["go-mod"];function CM(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:/[()[\],]/}}AM.displayName="gradle";AM.aliases=[];function AM(e){e.register(jn),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)}_M.displayName="graphql";_M.aliases=[];function _M(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(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return r[i+O]}function a(O,y){y=y||0;for(var v=0;v0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=i;m=0&&l(b,"variable-input")}}}}})}RM.displayName="groovy";RM.aliases=[];function RM(e){e.register(jn),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)}IM.displayName="textile";IM.aliases=[];function IM(e){e.register(io),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(d,p){return RegExp(d.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var o={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/},a=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:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},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:o},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:o},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:o},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:/[()]/}}}}}),s=a.phrase.inside,l={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=s.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=s.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}DM.displayName="haml";DM.aliases=[];function DM(e){e.register(Yp),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={},o=0,a=r.length;o@\[\\\]^`{|}~]/,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)}DO.displayName="haskell";DO.aliases=["hs"];function DO(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}PM.displayName="haxe";PM.aliases=[];function PM(e){e.register(jn),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"}})}LM.displayName="hcl";LM.aliases=[];function LM(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:/[=\[\]{}]/}}MM.displayName="hlsl";MM.aliases=[];function MM(e){e.register(Hl),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/})}$M.displayName="hoon";$M.aliases=[];function $M(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}FM.displayName="hpkp";FM.aliases=[];function FM(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}BM.displayName="hsts";BM.aliases=[];function BM(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}UM.displayName="uri";UM.aliases=["url"];function UM(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}jM.displayName="http";jM.aliases=[];function jM(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","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},o={"application/json":!0,"application/xml":!0};function a(c){var d=c.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+p+")"}var s;for(var l in i)if(i[l]){s=s||{};var u=o[l]?a(l):l;s[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}s&&t.languages.insertBefore("http","header",s)})(e)}zM.displayName="ichigojam";zM.aliases=[];function zM(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:/[\[,;:()\]]/}}VM.displayName="icon";VM.aliases=[];function VM(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:/[\[\](){},;]/}}HM.displayName="icu-message-format";HM.aliases=[];function HM(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:r,greedy:!0,inside:{escape:i}},a=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(a),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":s,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":s,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:o},s.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)}WM.displayName="idris";WM.aliases=["idr"];function WM(e){e.register(DO),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}QM.displayName="ignore";QM.aliases=["gitignore","hgignore","npmignore"];function QM(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)}YM.displayName="inform7";YM.aliases=[];function YM(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"}}GM.displayName="io";GM.aliases=[];function GM(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:/[()]/}}Kg.displayName="javadoclike";Kg.aliases=[];function Kg(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(o,a){var s="doc-comment",l=t.languages[o];if(l){var u=l[s];if(!u){var c={};c[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(o,"comment",c),u=l[s]}if(u instanceof RegExp&&(u=l[s]={pattern:u}),Array.isArray(u))for(var d=0,p=u.length;d|\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}XM.displayName="javadoc";XM.aliases=[];function XM(e){e.register(Wp),e.register(Kg),e.register(io),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)}KM.displayName="javastacktrace";KM.aliases=[];function KM(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/}}}}JM.displayName="jexl";JM.aliases=[];function JM(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:/[{}[\](),.]/}}e4.displayName="jolie";e4.aliases=[];function e4(e){e.register(jn),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]*:)/}})}t4.displayName="jq";t4.aliases=[];function t4(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:/^\\\(|\)$/}}},o=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=o})(e)}n4.displayName="js-templates";n4.aliases=[];function n4(e){e.register(So),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,o=i.inside["interpolation-punctuation"],a=i.pattern.source;function s(m,b){if(t.languages[m])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function l(m,b){return"___"+b.toUpperCase()+"_"+m+"___"}function u(m,b,O){var y={code:m,grammar:b,language:O};return t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function c(m){var b={};b["interpolation-punctuation"]=o;var O=t.tokenize(m,b);if(O.length===3){var y=[1,1];y.push.apply(y,u(O[1],t.languages.javascript,"javascript")),O.splice.apply(O,y)}return new t.Token("interpolation",O,i.alias,m)}function d(m,b,O){var y=t.tokenize(m,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),v=0,S={},k=y.map(function($){if(typeof $=="string")return $;for(var P=$.content,_;m.indexOf(_=l(v++,O))!==-1;);return S[_]=P,_}).join(""),C=u(k,b,O),w=Object.keys(S);v=0;function E($){for(var P=0;P<$.length;P++){if(v>=w.length)return;var _=$[P];if(typeof _=="string"||typeof _.content=="string"){var B=w[v],U=typeof _=="string"?_:_.content,V=U.indexOf(B);if(V!==-1){++v;var z=U.substring(0,V),W=c(S[B]),X=U.substring(V+B.length),q=[];if(z&&q.push(z),q.push(W),X){var Y=[X];E(Y),q.push.apply(q,Y)}typeof _=="string"?($.splice.apply($,[P,1].concat(q)),P+=q.length-1):_.content=q}}else{var Z=_.content;Array.isArray(Z)?E(Z):E([Z])}}}return E(C),new t.Token(O,C,"language-"+O,m)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(m){if(!(m.language in p))return;function b(O){for(var y=0,v=O.length;y\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)}i4.displayName="n4js";i4.aliases=["n4jsd"];function i4(e){e.register(So),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}o4.displayName="js-extras";o4.aliases=[];function o4(e){e.register(So),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,u){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}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:/:/}}}}}}u4.displayName="julia";u4.aliases=[];function u4(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|[πℯ]/}}c4.displayName="keepalived";c4.aliases=[];function c4(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:/[\{\}]/}}d4.displayName="keyman";d4.aliases=[];function d4(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:/[()=,]/}}f4.displayName="kumir";f4.aliases=["kum"];function f4(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,o){return RegExp(i.replace(//g,n),o)}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)}p4.displayName="kusto";p4.aliases=[];function p4(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:/[()\[\]{},;.:]/}}h4.displayName="latex";h4.aliases=["context","tex"];function h4(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)}m4.displayName="latte";m4.aliases=[];function m4(e){e.register(jn),e.register(To),e.register(Qp),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)}NO.displayName="scheme";NO.aliases=[];function NO(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(o){return"(?:"+r[o].trim()+")"});return r[i]}})(e)}g4.displayName="lilypond";g4.aliases=["ly"];function g4(e){e.register(NO),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 o=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/};o["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=o,t.languages.ly=o}(e)}b4.displayName="liquid";b4.aliases=[];function b4(e){e.register(To),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 o=/^\{%-?\s*(\w+)/.exec(i);if(o){var a=o[1];if(a==="raw"&&!r)return r=!0,!0;if(a==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}y4.displayName="lisp";y4.aliases=["elisp","emacs","emacs-lisp"];function y4(e){(function(t){function n(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function r(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,a="(\\()",s="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={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(a+"(?: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(a+"(?: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(a+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(a+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(a+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(a+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},p="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(a+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:d},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=h,c.defun.inside.arguments=t.util.clone(h),c.defun.inside.arguments.inside.sublist=h,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}O4.displayName="livescript";O4.aliases=[];function O4(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}v4.displayName="llvm";v4.aliases=[];function v4(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)}E4.displayName="log";E4.aliases=[];function E4(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:/[\[\].,]/}}S4.displayName="lolcode";S4.aliases=[];function S4(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}|…|,|!/}}T4.displayName="magma";T4.aliases=[];function T4(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:/[()[\]{}<>,;.:]/}}Mx.displayName="mata";Mx.aliases=[];function Mx(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)}w4.displayName="matlab";w4.aliases=[];function w4(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}|[.,;\[\](){}!]/}}k4.displayName="maxscript";k4.aliases=[];function k4(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)}x4.displayName="mel";x4.aliases=[];function x4(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}C4.displayName="mermaid";C4.aliases=[];function C4(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:/[(){};]/}}A4.displayName="metafont";A4.aliases=[];function A4(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}}}_4.displayName="mizar";_4.aliases=[];function _4(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:/\(#|#\)|[,:;\[\](){}]/}}R4.displayName="mongodb";R4.aliases=[];function R4(e){e.register(So),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(o){return o.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)}I4.displayName="monkey";I4.aliases=[];function I4(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:/[.,:;()\[\]]/}}D4.displayName="moonscript";D4.aliases=["moon"];function D4(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}N4.displayName="n1ql";N4.aliases=[];function N4(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:/[;[\](),.{}:]/}}P4.displayName="nand2tetris-hdl";P4.aliases=[];function P4(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:/[{}[\];(),:]/}}L4.displayName="naniscript";L4.aliases=["nani"];function L4(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(a){var s=a.tokens;s.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=o(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(a){for(var s="[]{}",l=[],u=0;u=&|$!]/}}$4.displayName="neon";$4.aliases=[];function $4(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:/[,:=[\]{}()-]/}}F4.displayName="nevod";F4.aliases=[];function F4(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\-.]+/}}B4.displayName="nginx";B4.aliases=[];function B4(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)}U4.displayName="nim";U4.aliases=[];function U4(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}j4.displayName="nix";j4.aliases=[];function j4(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}z4.displayName="nsis";z4.aliases=[];function z4(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}}}V4.displayName="ocaml";V4.aliases=[];function V4(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/}}H4.displayName="odin";H4.aliases=[];function H4(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)}W4.displayName="opencl";W4.aliases=[];function W4(e){e.register(Hl),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)}Q4.displayName="openqasm";Q4.aliases=["qasm"];function Q4(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}Y4.displayName="oz";Y4.aliases=[];function Y4(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:/[\[\](){}.:;?]/}}G4.displayName="parigp";G4.aliases=[];function G4(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:/[\[\]{}().,:;|]/}}q4.displayName="parser";q4.aliases=[];function q4(e){e.register(io),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)}Z4.displayName="pascal";Z4.aliases=["objectpascal"];function Z4(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}X4.displayName="pascaligo";X4.aliases=[];function X4(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:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(a,s){return a[s]=i[s],a},{});i["class-name"].forEach(function(a){a.inside=o})})(e)}K4.displayName="psl";K4.aliases=[];function K4(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:/[(){}\[\];,]/}}J4.displayName="pcaxis";J4.aliases=["px"];function J4(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}e5.displayName="peoplecode";e5.aliases=["pcode"];function e5(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}t5.displayName="phpdoc";t5.aliases=[];function t5(e){e.register(Kg),e.register(Qp),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)}n5.displayName="php-extras";n5.aliases=[];function n5(e){e.register(Qp),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:/::|\\/}}})}r5.displayName="plant-uml";r5.aliases=["plantuml"];function r5(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,o="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",a=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+o+s+"|"+a+o+"(?:"+s+")?)"+u;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+c+/(?![-.<>?|\\\]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)}i5.displayName="plsql";i5.aliases=[];function i5(e){e.register(qg),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"}})}o5.displayName="powerquery";o5.aliases=["mscript","pq"];function o5(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}a5.displayName="powershell";a5.aliases=[];function a5(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)}s5.displayName="processing";s5.aliases=[];function s5(e){e.register(jn),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"}})}l5.displayName="prolog";l5.aliases=[];function l5(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:/[(){}\[\],]/}}u5.displayName="promql";u5.aliases=[];function u5(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"],o=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(?:"+o.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)}c5.displayName="properties";c5.aliases=[];function c5(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:/[=:]/}}d5.displayName="protobuf";d5.aliases=[];function d5(e){e.register(jn),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)}f5.displayName="stylus";f5.aliases=[];function f5(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)}p5.displayName="twig";p5.aliases=[];function p5(e){e.register(To),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")})}h5.displayName="pug";h5.aliases=[];function h5(e){e.register(So),e.register(io),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={},o=0,a=r.length;o",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}m5.displayName="puppet";m5.aliases=[];function m5(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)}g5.displayName="pure";g5.aliases=[];function g5(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 o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),t.languages[o]){var a={};a["inline-lang-"+o]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},a["inline-lang-"+o].inside.rest=t.util.clone(t.languages[o]),t.languages.insertBefore("pure","inline-lang",a)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}b5.displayName="purebasic";b5.aliases=["pbfasm"];function b5(e){e.register(jn),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}y5.displayName="purescript";y5.aliases=["purs"];function y5(e){e.register(DO),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}O5.displayName="qsharp";O5.aliases=["qs"];function O5(e){e.register(jn),function(t){function n(h,m){return h.replace(/<<(\d+)>>/g,function(b,O){return"(?:"+m[+O]+")"})}function r(h,m,b){return RegExp(n(h,m),b||"")}function i(h,m){for(var b=0;b>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var o={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 a(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(a(o.type+" "+o.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:s,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:s,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,[d]),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}v5.displayName="q";v5.aliases=[];function v5(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:/[(){}\[\];.]/}}E5.displayName="qml";E5.aliases=[];function E5(e){e.register(So),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}),o=0;o<2;o++)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)}S5.displayName="qore";S5.aliases=[];function S5(e){e.register(jn),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/})}T5.displayName="racket";T5.aliases=["rkt"];function T5(e){e.register(NO),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}w5.displayName="cshtml";w5.aliases=["razor"];function w5(e){e.register(Hp),e.register(io),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,S){for(var k=0;k/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var o=i(/\((?:[^()'"@/]|||)*\)/.source,2),a=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+o+"|"+a+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),h=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function a(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(u,c)}o=a(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=a(/<\/?(?:[\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:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(s).join(""):""},l=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===s(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:s(p.content[0].content[1]),openedBraces:0}):c.length>0&&p.type==="punctuation"&&p.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?c[c.length-1].openedBraces--:h=!0),(h||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var m=s(p);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(m=s(u[d-1])+m,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",m,null,m)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}k5.displayName="tsx";k5.aliases=[];function k5(e){e.register($x),e.register(Zg),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)}x5.displayName="reason";x5.aliases=[];function x5(e){e.register(jn),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}C5.displayName="rego";C5.aliases=[];function C5(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:/[,;.\[\]{}()]/}}A5.displayName="renpy";A5.aliases=["rpy"];function A5(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}_5.displayName="rescript";_5.aliases=["res"];function _5(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}R5.displayName="rest";R5.aliases=[];function R5(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}}}I5.displayName="rip";I5.aliases=[];function I5(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`'",.:;#\/\\()<>\[\]{}]*/}}D5.displayName="roboconf";D5.aliases=[];function D5(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:/[{},.;:=]/}}N5.displayName="robotframework";N5.aliases=["robot"];function N5(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,u){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in u)c[d]=u[d];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:c}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},a={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={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":a,documentation:o,property:s}),keywords:i("Keywords",{"keyword-name":a,documentation:o,property:s}),tasks:i("Tasks",{"task-name":a,documentation:o,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}P5.displayName="sas";P5.aliases=[];function P5(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"},o={pattern:/&[a-z_]\w*/i},a={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"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={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"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/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,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:d,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},S={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":b,"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:c,string:u}},"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:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"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:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"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":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:s,keyword:S,function:d,format:h,altformat:m,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":a,"macro-variable":o,"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":a,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"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":v,comment:l,function:d,format:h,altformat:m,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:S,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}L5.displayName="shell-session";L5.aliases=["sh-session","shellsession"];function L5(e){e.register(xO),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)}M5.displayName="smali";M5.aliases=[];function M5(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:/[{}(),;:]/}}$5.displayName="smalltalk";$5.aliases=[];function $5(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:/[.;:?\[\](){}]/}}F5.displayName="smarty";F5.aliases=[];function F5(e){e.register(To),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 o="{literal}",a="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===a&&(s=!1),s?!1:(l===o&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}B5.displayName="sml";B5.aliases=["smlnj"];function B5(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)}U5.displayName="solidity";U5.aliases=["sol"];function U5(e){e.register(jn),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}j5.displayName="solution-file";j5.aliases=["sln"];function j5(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)}z5.displayName="soy";z5.aliases=[];function z5(e){e.register(To),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 o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,a="{literal}",s="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",o,function(u){return u===s&&(l=!1),l?!1:(u===a&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}Fx.displayName="turtle";Fx.aliases=["trig"];function Fx(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}V5.displayName="sparql";V5.aliases=["rq"];function V5(e){e.register(Fx),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}H5.displayName="splunk-spl";H5.aliases=[];function H5(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:/[()[\],]/}}W5.displayName="sqf";W5.aliases=[];function W5(e){e.register(jn),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"]}Q5.displayName="squirrel";Q5.aliases=[];function Q5(e){e.register(jn),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"}})}Y5.displayName="stan";Y5.aliases=[];function Y5(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)}G5.displayName="stata";G5.aliases=[];function G5(e){e.register(Wp),e.register(Mx),e.register(_O),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}q5.displayName="iecst";q5.aliases=[];function q5(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:/[()[\].,;]/}}Z5.displayName="supercollider";Z5.aliases=["sclang"];function Z5(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}X5.displayName="systemd";X5.aliases=[];function X5(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)}PO.displayName="t4-templating";PO.aliases=[];function PO(e){(function(t){function n(i,o,a){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:a}}}}function r(i){var o=t.languages[i],a="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("=",o,a),"class-feature":n("\\+",o,a),standard:n("",o,a)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}K5.displayName="t4-cs";K5.aliases=["t4"];function K5(e){e.register(Hp),e.register(PO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}J5.displayName="t4-vb";J5.aliases=[];function J5(e){e.register(PO),e.register(IO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}e$.displayName="tap";e$.aliases=[];function e$(e){e.register(AO),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"}}}t$.displayName="tcl";t$.aliases=[];function t$(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:/[{}()\[\]]/}}n$.displayName="tt2";n$.aliases=[];function n$(e){e.register(jn),e.register(To),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)}r$.displayName="toml";r$.aliases=[];function r$(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)}i$.displayName="tremor";i$.aliases=["trickle","troy"];function i$(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)}o$.displayName="typoscript";o$.aliases=["tsconfig"];function o$(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)}a$.displayName="unrealscript";a$.aliases=["uc","uscript"];function a$(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}s$.displayName="uorazor";s$.aliases=[];function s$(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:/[()\[\]{}:.,]/}}l$.displayName="v";l$.aliases=[];function l$(e){e.register(jn),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)}u$.displayName="vala";u$.aliases=[];function u$(e){e.register(jn),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]+$/}}})}c$.displayName="velocity";c$.aliases=[];function c$(e){e.register(io),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)}d$.displayName="verilog";d$.aliases=[];function d$(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:/[[\];(),.:]/}}f$.displayName="vhdl";f$.aliases=[];function f$(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:/[{}[\];(),.:]/}}p$.displayName="vim";p$.aliases=[];function p$(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:/[{}[\](),;:]/}}h$.displayName="visual-basic";h$.aliases=["vb","vba"];function h$(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"]}m$.displayName="warpscript";m$.aliases=[];function m$(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/}}g$.displayName="wasm";g$.aliases=[];function g$(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:/[()]/}}b$.displayName="web-idl";b$.aliases=["webidl"];function b$(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 o in t.languages["web-idl"])o!=="class-name"&&(i[o]=t.languages["web-idl"][o]);t.languages.webidl=t.languages["web-idl"]})(e)}y$.displayName="wgsl";y$.aliases=[];function y$(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:/[@(){}[\],;<>:.]/}}O$.displayName="wiki";O$.aliases=[];function O$(e){e.register(io),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}}}})}v$.displayName="wolfram";v$.aliases=["mathematica","nb","wl"];function v$(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}E$.displayName="wren";E$.aliases=[];function E$(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]+/}}}S$.displayName="xeora";S$.aliases=["xeoracube"];function S$(e){e.register(io),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)}T$.displayName="xml-doc";T$.aliases=[];function T$(e){e.register(io),function(t){function n(a,s){t.languages[a]&&t.languages.insertBefore(a,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",o)}(e)}w$.displayName="xojo";w$.aliases=[];function w$(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:/[.,;:()]/}}k$.displayName="xquery";k$.aliases=[];function k$(e){e.register(io),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 o=[],a=0;a0&&o[o.length-1].tagName===n(s.content[0].content[1])&&o.pop():s.content[s.content.length-1].content==="/>"||o.push({tagName:n(s.content[0].content[1]),openedBraces:0}):o.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[a+1]||i[a+1].type!=="punctuation"||i[a+1].content!=="{")&&(!i[a-1]||i[a-1].type!=="plain-text"||i[a-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?o[o.length-1].openedBraces--:s.type!=="comment"&&(l=!0)),(l||typeof s=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var u=n(s);a0&&(typeof i[a-1]=="string"||i[a-1].type==="plain-text")&&(u=n(i[a-1])+u,i.splice(a-1,1),a--),/^\s+$/.test(u)?i[a]=u:i[a]=new t.Token("plain-text",u,null,u)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}x$.displayName="yang";x$.aliases=[];function x$(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:/[{};:]/}}C$.displayName="zig";C$.aliases=[];function C$(e){(function(t){function n(u){return function(){return u}}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",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,a=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+a+"\\s*)*"+s+")+";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(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(o))),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(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}te.register(io);te.register(hf);te.register(jn);te.register(wx);te.register(So);te.register(H3);te.register(W3);te.register(Q3);te.register(Y3);te.register(G3);te.register(q3);te.register(Z3);te.register(X3);te.register(qg);te.register(K3);te.register(J3);te.register(eL);te.register(tL);te.register(Hl);te.register(Vp);te.register(vx);te.register(nL);te.register(rL);te.register(xO);te.register(AO);te.register(Ax);te.register(iL);te.register(oL);te.register(Hp);te.register(aL);te.register(sL);te.register(lL);te.register(uL);te.register(cL);te.register(dL);te.register(fL);te.register(pL);te.register(RO);te.register(hL);te.register(mL);te.register(gL);te.register(bL);te.register(yL);te.register(OL);te.register(vL);te.register(EL);te.register(SL);te.register(TL);te.register(wL);te.register(kL);te.register(xL);te.register(CL);te.register(AL);te.register(_L);te.register(RL);te.register(IL);te.register(DL);te.register(NL);te.register(PL);te.register(LL);te.register(ML);te.register($L);te.register(FL);te.register(Yp);te.register(BL);te.register(UL);te.register(jL);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(YL);te.register(GL);te.register(Ex);te.register(To);te.register(qL);te.register(ZL);te.register(XL);te.register(KL);te.register(JL);te.register(eM);te.register(tM);te.register(nM);te.register(rM);te.register(iM);te.register(CO);te.register(oM);te.register(aM);te.register(sM);te.register(lM);te.register(uM);te.register(cM);te.register(dM);te.register(fM);te.register(pM);te.register(hM);te.register(mM);te.register(gM);te.register(bM);te.register(yM);te.register(OM);te.register(vM);te.register(EM);te.register(SM);te.register(TM);te.register(wM);te.register(kM);te.register(xM);te.register(Sx);te.register(CM);te.register(AM);te.register(_M);te.register(RM);te.register(xx);te.register(Px);te.register(IM);te.register(DM);te.register(NM);te.register(DO);te.register(PM);te.register(LM);te.register(MM);te.register($M);te.register(FM);te.register(BM);te.register(Gg);te.register(UM);te.register(jM);te.register(zM);te.register(VM);te.register(HM);te.register(WM);te.register(QM);te.register(YM);te.register(Tx);te.register(GM);te.register(qM);te.register(Wp);te.register(Qp);te.register(Kg);te.register(ZM);te.register(XM);te.register(KM);te.register(JM);te.register(e4);te.register(t4);te.register(n4);te.register(Zg);te.register(r4);te.register(i4);te.register(o4);te.register(a4);te.register(s4);te.register(l4);te.register(u4);te.register(c4);te.register(d4);te.register(kx);te.register(f4);te.register(p4);te.register(h4);te.register(m4);te.register(NO);te.register(g4);te.register(b4);te.register(y4);te.register(O4);te.register(v4);te.register(E4);te.register(S4);te.register(T4);te.register(Cx);te.register(Mx);te.register(w4);te.register(k4);te.register(x4);te.register(C4);te.register(A4);te.register(_4);te.register(R4);te.register(I4);te.register(D4);te.register(N4);te.register(P4);te.register(L4);te.register(M4);te.register($4);te.register(F4);te.register(B4);te.register(U4);te.register(j4);te.register(z4);te.register(_x);te.register(V4);te.register(H4);te.register(W4);te.register(Q4);te.register(Y4);te.register(G4);te.register(q4);te.register(Z4);te.register(X4);te.register(K4);te.register(J4);te.register(e5);te.register(Rx);te.register(t5);te.register(n5);te.register(r5);te.register(i5);te.register(o5);te.register(a5);te.register(s5);te.register(l5);te.register(u5);te.register(c5);te.register(d5);te.register(f5);te.register(p5);te.register(h5);te.register(m5);te.register(g5);te.register(b5);te.register(y5);te.register(_O);te.register(O5);te.register(v5);te.register(E5);te.register(S5);te.register(Ix);te.register(T5);te.register(w5);te.register($x);te.register(k5);te.register(x5);te.register(C5);te.register(A5);te.register(_5);te.register(R5);te.register(I5);te.register(D5);te.register(N5);te.register(Dx);te.register(P5);te.register(Nx);te.register(L5);te.register(M5);te.register($5);te.register(F5);te.register(B5);te.register(U5);te.register(j5);te.register(z5);te.register(Fx);te.register(V5);te.register(H5);te.register(W5);te.register(Q5);te.register(Y5);te.register(G5);te.register(q5);te.register(Z5);te.register(Lx);te.register(X5);te.register(PO);te.register(K5);te.register(IO);te.register(J5);te.register(e$);te.register(t$);te.register(n$);te.register(r$);te.register(i$);te.register(o$);te.register(a$);te.register(s$);te.register(l$);te.register(u$);te.register(c$);te.register(d$);te.register(f$);te.register(p$);te.register(h$);te.register(m$);te.register(g$);te.register(b$);te.register(y$);te.register(O$);te.register(v$);te.register(E$);te.register(S$);te.register(T$);te.register(w$);te.register(k$);te.register(x$);te.register(C$);function ZI(){ZI=function(i,o){return new n(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function n(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),lw(s,n.prototype)}function r(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,l){var u=a[l];if(typeof u=="number")s[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=a[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=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,s)),o.apply(this,l)})}return e[Symbol.replace].call(this,i,o)},ZI.apply(this,arguments)}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},lw(e,t)}function Zz(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 W9e=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){Na(r,"element",n)};function n(r,i,o){var a,s;if(o&&o.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(a=r.data)==null?void 0:a.meta)||(r==null||(s=r.properties)==null?void 0:s.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 u,c,d=function(C){for(var w,E=y2(C.properties.className);!(w=E()).done;){var $=w.value;if($.slice(0,9)==="language-")return $.slice(9).toLowerCase()}return null}(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var p,h;h=(p=d)!=null&&p.includes("diff-")?d.split("-")[1]:d,u=e.highlight(nm(r),h),o.properties.className=(o.properties.className||[]).concat("language-"+h)}catch(C){if(!t.ignoreMissing||!/Unknown language/.test(C.message))throw C;u=r}else u=r;u.children=(c=1,function C(w){return w.reduce(function(E,$){if($.type==="text"){var P=$.value,_=(P.match(/\n/g)||"").length;if(_===0)$.position={start:{line:c,column:1},end:{line:c,column:1}},E.push($);else for(var B,U=P.split(` +|(?![\\s\\S])))+`,"m"),alias:o,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)}Sx.displayName="go";Sx.aliases=[];function Sx(e){e.register(jn),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"]}Tx.displayName="ini";Tx.aliases=[];function Tx(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:/=/}}Wp.displayName="java";Wp.aliases=[];function Wp(e){e.register(jn),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)}wx.displayName="regex";wx.aliases=[];function wx(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"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a="(?:[^\\\\-]|"+r.source+")",s=RegExp(a+"-"+a),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:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,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}Gg.displayName="json";Gg.aliases=["webmanifest"];function Gg(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}kx.displayName="kotlin";kx.aliases=["kt","kts"];function kx(e){e.register(jn),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)}xx.displayName="less";xx.aliases=[];function xx(e){e.register(hf),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"}})}CO.displayName="lua";CO.aliases=[];function CO(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:/[\[\](){},;]|\.+|:+/}}Cx.displayName="makefile";Cx.aliases=[];function Cx(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:/[:;(){}]/}}AO.displayName="yaml";AO.aliases=["yml"];function AO(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\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}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(c,u)}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"(?:"+o+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\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:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(a),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?: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)}Ax.displayName="markdown";Ax.aliases=["md"];function Ax(e){e.register(io),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),a=/\|?[ \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("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),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(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}Rx.displayName="perl";Rx.aliases=[];function Rx(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)}To.displayName="markup-templating";To.aliases=[];function To(e){e.register(io),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,o,a){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(o,function(l){if(typeof a=="function"&&!a(l))return l;for(var u=s.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return s[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var o=0,a=Object.keys(r.tokenStack);function s(l){for(var u=0;u=a.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=a[o],p=r.tokenStack[d],h=typeof c=="string"?c:c.content,m=n(i,d),b=h.indexOf(m);if(b>-1){++o;var O=h.substring(0,b),y=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),v=h.substring(b+m.length),S=[];O&&S.push.apply(S,s([O])),S.push(y),v&&S.push.apply(S,s([v])),typeof c=="string"?l.splice.apply(l,[u,1].concat(S)):c.content=S}}else c.content&&s(c.content)}return l}s(r.tokens)}}})}(e)}Qp.displayName="php";Qp.aliases=[];function Qp(e){e.register(To),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,o=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;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:o,punctuation:a};var s={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:s}},{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:s}}];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:o,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}_O.displayName="python";_O.aliases=["py"];function _O(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}Ix.displayName="r";Ix.aliases=[];function Ix(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:/[(){}\[\],;]/}}Yp.displayName="ruby";Yp.aliases=["rb"];function Yp(e){e.register(jn),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)}Nx.displayName="rust";Nx.aliases=[];function Nx(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)}Dx.displayName="sass";Dx.aliases=[];function Dx(e){e.register(hf),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)}Px.displayName="scss";Px.aliases=[];function Px(e){e.register(hf),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}qg.displayName="sql";qg.aliases=[];function qg(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:/[;[\]()`,.]/}}Lx.displayName="swift";Lx.aliases=[];function Lx(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})}Zg.displayName="typescript";Zg.aliases=["ts"];function Zg(e){e.register(So),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)}RO.displayName="basic";RO.aliases=[];function RO(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:/[,;:()]/}}IO.displayName="vbnet";IO.aliases=[];function IO(e){e.register(RO),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 Wz=/[#.]/g;function O9e(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function A9e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function _9e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Gz(e){return _9e(e)||Ute(e)}const Oh=String.fromCharCode,R9e=["","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 I9e(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,o=-1,a="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let u=(s?s.line:0)||1,c=(s?s.column:0)||1,d=h(),p;for(i--;++i<=e.length;)if(p===10&&(c=(l?l[o]:0)||1),p=e.charCodeAt(i),p===38){const O=e.charCodeAt(i+1);if(O===9||O===10||O===12||O===32||O===38||O===60||Number.isNaN(O)||n&&O===n){a+=Oh(p),c++;continue}const y=i+1;let v=y,S=y,k;if(O===35){S=++v;const U=e.charCodeAt(S);U===88||U===120?(k="hexadecimal",S=++v):k="decimal"}else k="named";let C="",w="",E="";const $=k==="named"?Gz:k==="decimal"?Ute:A9e;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!$(U))break;E+=Oh(U),k==="named"&&C9e.includes(E)&&(C=E,w=d1(E))}let P=e.charCodeAt(S)===59;if(P){S++;const U=k==="named"?d1(E):!1;U&&(C=E,w=U)}let _=1+S-y,B="";if(!(!P&&t.nonTerminated===!1))if(!E)k!=="named"&&m(4,_);else if(k==="named"){if(P&&!w)m(5,1);else if(C!==E&&(S=v+C.length,_=1+S-v,P=!1),!P){const U=C?1:3;if(t.attribute){const V=e.charCodeAt(S);V===61?(m(U,_),w=""):Gz(V)?w="":m(U,_)}else m(U,_)}B=w}else{P||m(2,_);let U=Number.parseInt(E,k==="hexadecimal"?16:10);if(N9e(U))m(7,_),B=Oh(65533);else if(U in Yz)m(6,_),B=Yz[U];else{let V="";D9e(U)&&m(6,_),U>65535&&(U-=65536,V+=Oh(U>>>10|55296),U=56320|U&1023),B=V+Oh(U)}}if(B){b(),d=h(),i=S-1,c+=S-y+1,r.push(B);const U=h();U.offset++,t.reference&&t.reference.call(t.referenceContext,B,{start:d,end:U},e.slice(y-1,S)),d=U}else E=e.slice(y-1,S),a+=E,c+=E.length,i=S-1}else p===10&&(u++,o++,c=0),Number.isNaN(p)?b():(a+=Oh(p),c++);return r.join("");function h(){return{line:u,column:c,offset:i+((s?s.offset:0)||0)}}function m(O,y){let v;t.warning&&(v=h(),v.column+=y,v.offset+=y,t.warning.call(t.warningContext,R9e[O],v,O))}function b(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function N9e(e){return e>=55296&&e<=57343||e>1114111}function D9e(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 P9e=0,yE={},Yi={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++P9e}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Yi.util.type(t)){case"Object":if(i=Yi.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var o in t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=Yi.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(a,s){r[s]=e(a,n)}),r);default:return t}}},languages:{plain:yE,plaintext:yE,text:yE,txt:yE,extend:function(e,t){var n=Yi.util.clone(Yi.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Yi.languages;var i=r[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[e];return r[e]=o,Yi.languages.DFS(Yi.languages,function(u,c){c===l&&u!=e&&(this[u]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=Yi.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=Yi.util.type(s);l==="Object"&&!i[o(s)]?(i[o(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[o(s)]&&(i[o(s)]=!0,e(s,n,a,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Yi.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Yi.tokenize(r.code,r.grammar),Yi.hooks.run("after-tokenize",r),Kb.stringify(Yi.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 L9e;return mS(i,i.head,e),jte(e,i,t,i.head,0),$9e(i)},hooks:{all:{},add:function(e,t){var n=Yi.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Yi.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Kb};function Kb(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function qz(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function jte(e,t,n,r,i,o){for(var a in n)if(!(!n.hasOwnProperty(a)||!n[a])){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l=o.reach);y+=O.value.length,O=O.next){var v=O.value;if(t.length>e.length)return;if(!(v instanceof Kb)){var S=1,k;if(p){if(k=qz(b,y,e,d),!k||k.index>=e.length)break;var $=k.index,C=k.index+k[0].length,w=y;for(w+=O.value.length;$>=w;)O=O.next,w+=O.value.length;if(w-=O.value.length,y=w,O.value instanceof Kb)continue;for(var E=O;E!==t.tail&&(wo.reach&&(o.reach=U);var V=O.prev;_&&(V=mS(t,V,_),y+=_.length),M9e(t,V,S);var z=new Kb(a,c?Yi.tokenize(P,c):P,h,P);if(O=mS(t,V,z),B&&mS(t,O,B),S>1){var W={cause:a+","+l,reach:U};jte(e,t,n,O.prev,y,W),o&&W.reach>o.reach&&(o.reach=W.reach)}}}}}}function L9e(){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 mS(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 M9e(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:/[,.:()]/}}W3.displayName="abnf";W3.aliases=[];function W3(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)}Q3.displayName="actionscript";Q3.aliases=[];function Q3(e){e.register(So),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}})}Y3.displayName="ada";Y3.aliases=[];function Y3(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}}G3.displayName="agda";G3.aliases=[];function G3(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)}q3.displayName="al";q3.aliases=[];function q3(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:/[()\[\]{}:.;,]/}}Z3.displayName="antlr4";Z3.aliases=["g4"];function Z3(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}X3.displayName="apacheconf";X3.aliases=[];function X3(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:/\^?.*\$|\^.*\$?/}}K3.displayName="apex";K3.aliases=[];function K3(e){e.register(jn),e.register(qg),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(a){return RegExp(a.replace(//g,function(){return r}),"i")}var o={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:o},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:o},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:o}],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)}J3.displayName="apl";J3.aliases=[];function J3(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"}}}eL.displayName="applescript";eL.aliases=[];function eL(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:/[{}():,¬«»《》]/}}tL.displayName="aql";tL.aliases=[];function tL(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:/::|[?.:,;()[\]{}]/}}nL.displayName="arff";nL.aliases=[];function nL(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:/[{},]/}}rL.displayName="armasm";rL.aliases=["arm-asm"];function rL(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}iL.displayName="arturo";iL.aliases=["art"];function iL(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)}oL.displayName="asciidoc";oL.aliases=["adoc"];function oL(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(o){o=o.split(" ");for(var a={},s=0,l=o.length;s/,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||{}}})}sL.displayName="asm6502";sL.aliases=[];function sL(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:/[(),:]/}}lL.displayName="asmatmel";lL.aliases=[];function lL(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:/[(),:]/}}uL.displayName="autohotkey";uL.aliases=[];function uL(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:/[{}[\]():,]/}}cL.displayName="autoit";cL.aliases=[];function cL(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:/[\[\]().,:]/}}dL.displayName="avisynth";dL.aliases=["avs"];function dL(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(d,p){return c[+p]})}function r(u,c,d){return RegExp(n(u,c),d||"")}var i=/bool|clip|float|int|string|val/.source,o=[/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("|"),a=[/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("|"),s=[/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=[o,a,s].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)}fL.displayName="avro-idl";fL.aliases=["avdl"];function fL(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"]}pL.displayName="awk";pL.aliases=["gawk"];function pL(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}hL.displayName="batch";hL.aliases=[];function hL(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\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:o,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:o,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:o,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:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}mL.displayName="bbcode";mL.aliases=["shortcode"];function mL(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}gL.displayName="bbj";gL.aliases=[];function gL(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)}bL.displayName="bicep";bL.aliases=[];function bL(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}yL.displayName="birb";yL.aliases=[];function yL(e){e.register(jn),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"}})}OL.displayName="bison";OL.aliases=[];function OL(e){e.register(Hl),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:/%[%?]|[|:;\[\]<>]/}}})}vL.displayName="bnf";vL.aliases=["rbnf"];function vL(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}EL.displayName="bqn";EL.aliases=[];function EL(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}SL.displayName="brainfuck";SL.aliases=[];function SL(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}TL.displayName="brightscript";TL.aliases=[];function TL(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}wL.displayName="bro";wL.aliases=[];function wL(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:/[{}[\];(),.:]/}}kL.displayName="bsl";kL.aliases=["oscript"];function kL(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}xL.displayName="cfscript";xL.aliases=["cfc"];function xL(e){e.register(jn),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}CL.displayName="chaiscript";CL.aliases=[];function CL(e){e.register(jn),e.register(Vp),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]+/}}})}AL.displayName="cil";AL.aliases=[];function AL(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]+/}}_L.displayName="cilkc";_L.aliases=["cilk-c"];function _L(e){e.register(Hl),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}RL.displayName="cilkcpp";RL.aliases=["cilk","cilk-cpp"];function RL(e){e.register(Vp),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}IL.displayName="clojure";IL.aliases=[];function IL(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:/[{}\[\](),]/}}NL.displayName="cmake";NL.aliases=[];function NL(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:/[()>}]|\$[<{]/}}DL.displayName="cobol";DL.aliases=[];function DL(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:/[.:,()]/}}PL.displayName="coffeescript";PL.aliases=["coffee"];function PL(e){e.register(So),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)}LL.displayName="concurnas";LL.aliases=["conc"];function LL(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}ML.displayName="csp";ML.aliases=[];function ML(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)}$L.displayName="cooklang";$L.aliases=[];function $L(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,o=r+i,a=/(?:h|hours|hrs|m|min|minutes)/.source,s={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("#(?:"+o+"|"+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("@(?:"+o+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+a+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}FL.displayName="coq";FL.aliases=[];function FL(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)}BL.displayName="crystal";BL.aliases=[];function BL(e){e.register(Yp),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)}UL.displayName="css-extras";UL.aliases=[];function UL(e){e.register(hf),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},o={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:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})}(e)}jL.displayName="csv";jL.aliases=[];function jL(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}zL.displayName="cue";zL.aliases=[];function zL(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)}VL.displayName="cypher";VL.aliases=[];function VL(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:/[()[\]{},;.]/}}HL.displayName="d";HL.aliases=[];function HL(e){e.register(jn),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"}})}WL.displayName="dart";WL.aliases=[];function WL(e){e.register(jn),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)}QL.displayName="dataweave";QL.aliases=[];function QL(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)}YL.displayName="dax";YL.aliases=[];function YL(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:/[;\[\](){}`,.]/}}GL.displayName="dhall";GL.aliases=[];function GL(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}qL.displayName="django";qL.aliases=["jinja2"];function qL(e){e.register(To),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)}ZL.displayName="dns-zone-file";ZL.aliases=["dns-zone"];function ZL(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"]}XL.displayName="docker";XL.aliases=["dockerfile"];function XL(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,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),a={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return o}).replace(//g,function(){return r}),RegExp(u,c)}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:[a,{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:s,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}KL.displayName="dot";KL.aliases=["gv"];function KL(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(o,a){return RegExp(o.replace(//g,function(){return n}),a)}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)}JL.displayName="ebnf";JL.aliases=[];function JL(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:/[-=|*/!]/}}eM.displayName="editorconfig";eM.aliases=[];function eM(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:/^=/}}}}tM.displayName="eiffel";tM.aliases=[];function tM(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}nM.displayName="ejs";nM.aliases=["eta"];function nM(e){e.register(So),e.register(To),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)}rM.displayName="elixir";rM.aliases=[];function rM(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}}}})}iM.displayName="elm";iM.aliases=[];function iM(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:/[{}[\]|(),.:]/}}oM.displayName="etlua";oM.aliases=[];function oM(e){e.register(CO),e.register(To),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)}aM.displayName="erb";aM.aliases=[];function aM(e){e.register(To),e.register(Yp),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)}sM.displayName="erlang";sM.aliases=[];function sM(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:/[()[\]{}:;,.#|]|<<|>>/}}lM.displayName="excel-formula";lM.aliases=["xls","xlsx"];function lM(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"]}uM.displayName="fsharp";uM.aliases=[];function uM(e){e.register(jn),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}})}cM.displayName="factor";cM.aliases=[];function cM(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}},o=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},a=function(u){return new RegExp("(^|\\s)(?:"+u.map(o).join("|")+")(?=\\s|$)")},s={"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(s).forEach(function(u){i[u].pattern=a(s[u])});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=a(l),t.languages.factor=i})(e)}dM.displayName="false";dM.aliases=[];function dM(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:/,/}}})}pM.displayName="flow";pM.aliases=[];function pM(e){e.register(So),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)}hM.displayName="fortran";hM.aliases=[];function hM(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:/\(\/|\/\)|[(),;:&]/}}mM.displayName="ftl";mM.aliases=[];function mM(e){e.register(To),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(o){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(o,"ftl",a)}),t.hooks.add("after-tokenize",function(o){t.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})}(e)}gM.displayName="gml";gM.aliases=["gamemakerlanguage"];function gM(e){e.register(jn),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/})}bM.displayName="gap";bM.aliases=[];function bM(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}yM.displayName="gcode";yM.aliases=[];function yM(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:/[:*]/}}OM.displayName="gdscript";OM.aliases=[];function OM(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:/[.:,;()[\]{}]/}}vM.displayName="gedcom";vM.aliases=[];function vM(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"}}}EM.displayName="gettext";EM.aliases=["po"];function EM(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}SM.displayName="gherkin";SM.aliases=[];function SM(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)}TM.displayName="git";TM.aliases=[];function TM(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}}wM.displayName="glsl";wM.aliases=[];function wM(e){e.register(Hl),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/})}kM.displayName="gn";kM.aliases=["gni"];function kM(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}xM.displayName="linker-script";xM.aliases=["ld"];function xM(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"]}CM.displayName="go-module";CM.aliases=["go-mod"];function CM(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:/[()[\],]/}}AM.displayName="gradle";AM.aliases=[];function AM(e){e.register(jn),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)}_M.displayName="graphql";_M.aliases=[];function _M(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(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return r[i+O]}function a(O,y){y=y||0;for(var v=0;v0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=i;m=0&&l(b,"variable-input")}}}}})}RM.displayName="groovy";RM.aliases=[];function RM(e){e.register(jn),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)}IM.displayName="textile";IM.aliases=[];function IM(e){e.register(io),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(d,p){return RegExp(d.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var o={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/},a=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:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},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:o},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:o},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:o},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:/[()]/}}}}}),s=a.phrase.inside,l={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=s.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=s.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}NM.displayName="haml";NM.aliases=[];function NM(e){e.register(Yp),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={},o=0,a=r.length;o@\[\\\]^`{|}~]/,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)}NO.displayName="haskell";NO.aliases=["hs"];function NO(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}PM.displayName="haxe";PM.aliases=[];function PM(e){e.register(jn),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"}})}LM.displayName="hcl";LM.aliases=[];function LM(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:/[=\[\]{}]/}}MM.displayName="hlsl";MM.aliases=[];function MM(e){e.register(Hl),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/})}$M.displayName="hoon";$M.aliases=[];function $M(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}FM.displayName="hpkp";FM.aliases=[];function FM(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}BM.displayName="hsts";BM.aliases=[];function BM(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}UM.displayName="uri";UM.aliases=["url"];function UM(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}jM.displayName="http";jM.aliases=[];function jM(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","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},o={"application/json":!0,"application/xml":!0};function a(c){var d=c.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+p+")"}var s;for(var l in i)if(i[l]){s=s||{};var u=o[l]?a(l):l;s[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}s&&t.languages.insertBefore("http","header",s)})(e)}zM.displayName="ichigojam";zM.aliases=[];function zM(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:/[\[,;:()\]]/}}VM.displayName="icon";VM.aliases=[];function VM(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:/[\[\](){},;]/}}HM.displayName="icu-message-format";HM.aliases=[];function HM(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:r,greedy:!0,inside:{escape:i}},a=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(a),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":s,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":s,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:o},s.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)}WM.displayName="idris";WM.aliases=["idr"];function WM(e){e.register(NO),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}QM.displayName="ignore";QM.aliases=["gitignore","hgignore","npmignore"];function QM(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)}YM.displayName="inform7";YM.aliases=[];function YM(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"}}GM.displayName="io";GM.aliases=[];function GM(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:/[()]/}}Kg.displayName="javadoclike";Kg.aliases=[];function Kg(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(o,a){var s="doc-comment",l=t.languages[o];if(l){var u=l[s];if(!u){var c={};c[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(o,"comment",c),u=l[s]}if(u instanceof RegExp&&(u=l[s]={pattern:u}),Array.isArray(u))for(var d=0,p=u.length;d|\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}XM.displayName="javadoc";XM.aliases=[];function XM(e){e.register(Wp),e.register(Kg),e.register(io),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)}KM.displayName="javastacktrace";KM.aliases=[];function KM(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/}}}}JM.displayName="jexl";JM.aliases=[];function JM(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:/[{}[\](),.]/}}e4.displayName="jolie";e4.aliases=[];function e4(e){e.register(jn),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]*:)/}})}t4.displayName="jq";t4.aliases=[];function t4(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:/^\\\(|\)$/}}},o=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=o})(e)}n4.displayName="js-templates";n4.aliases=[];function n4(e){e.register(So),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,o=i.inside["interpolation-punctuation"],a=i.pattern.source;function s(m,b){if(t.languages[m])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function l(m,b){return"___"+b.toUpperCase()+"_"+m+"___"}function u(m,b,O){var y={code:m,grammar:b,language:O};return t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function c(m){var b={};b["interpolation-punctuation"]=o;var O=t.tokenize(m,b);if(O.length===3){var y=[1,1];y.push.apply(y,u(O[1],t.languages.javascript,"javascript")),O.splice.apply(O,y)}return new t.Token("interpolation",O,i.alias,m)}function d(m,b,O){var y=t.tokenize(m,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),v=0,S={},k=y.map(function($){if(typeof $=="string")return $;for(var P=$.content,_;m.indexOf(_=l(v++,O))!==-1;);return S[_]=P,_}).join(""),C=u(k,b,O),w=Object.keys(S);v=0;function E($){for(var P=0;P<$.length;P++){if(v>=w.length)return;var _=$[P];if(typeof _=="string"||typeof _.content=="string"){var B=w[v],U=typeof _=="string"?_:_.content,V=U.indexOf(B);if(V!==-1){++v;var z=U.substring(0,V),W=c(S[B]),X=U.substring(V+B.length),q=[];if(z&&q.push(z),q.push(W),X){var Y=[X];E(Y),q.push.apply(q,Y)}typeof _=="string"?($.splice.apply($,[P,1].concat(q)),P+=q.length-1):_.content=q}}else{var Z=_.content;Array.isArray(Z)?E(Z):E([Z])}}}return E(C),new t.Token(O,C,"language-"+O,m)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(m){if(!(m.language in p))return;function b(O){for(var y=0,v=O.length;y\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)}i4.displayName="n4js";i4.aliases=["n4jsd"];function i4(e){e.register(So),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}o4.displayName="js-extras";o4.aliases=[];function o4(e){e.register(So),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,u){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}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:/:/}}}}}}u4.displayName="julia";u4.aliases=[];function u4(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|[πℯ]/}}c4.displayName="keepalived";c4.aliases=[];function c4(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:/[\{\}]/}}d4.displayName="keyman";d4.aliases=[];function d4(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:/[()=,]/}}f4.displayName="kumir";f4.aliases=["kum"];function f4(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,o){return RegExp(i.replace(//g,n),o)}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)}p4.displayName="kusto";p4.aliases=[];function p4(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:/[()\[\]{},;.:]/}}h4.displayName="latex";h4.aliases=["context","tex"];function h4(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)}m4.displayName="latte";m4.aliases=[];function m4(e){e.register(jn),e.register(To),e.register(Qp),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)}DO.displayName="scheme";DO.aliases=[];function DO(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(o){return"(?:"+r[o].trim()+")"});return r[i]}})(e)}g4.displayName="lilypond";g4.aliases=["ly"];function g4(e){e.register(DO),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 o=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/};o["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=o,t.languages.ly=o}(e)}b4.displayName="liquid";b4.aliases=[];function b4(e){e.register(To),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 o=/^\{%-?\s*(\w+)/.exec(i);if(o){var a=o[1];if(a==="raw"&&!r)return r=!0,!0;if(a==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}y4.displayName="lisp";y4.aliases=["elisp","emacs","emacs-lisp"];function y4(e){(function(t){function n(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function r(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,a="(\\()",s="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={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(a+"(?: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(a+"(?: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(a+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(a+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(a+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(a+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},p="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(a+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:d},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=h,c.defun.inside.arguments=t.util.clone(h),c.defun.inside.arguments.inside.sublist=h,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}O4.displayName="livescript";O4.aliases=[];function O4(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}v4.displayName="llvm";v4.aliases=[];function v4(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)}E4.displayName="log";E4.aliases=[];function E4(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:/[\[\].,]/}}S4.displayName="lolcode";S4.aliases=[];function S4(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}|…|,|!/}}T4.displayName="magma";T4.aliases=[];function T4(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:/[()[\]{}<>,;.:]/}}Mx.displayName="mata";Mx.aliases=[];function Mx(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)}w4.displayName="matlab";w4.aliases=[];function w4(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}|[.,;\[\](){}!]/}}k4.displayName="maxscript";k4.aliases=[];function k4(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)}x4.displayName="mel";x4.aliases=[];function x4(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}C4.displayName="mermaid";C4.aliases=[];function C4(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:/[(){};]/}}A4.displayName="metafont";A4.aliases=[];function A4(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}}}_4.displayName="mizar";_4.aliases=[];function _4(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:/\(#|#\)|[,:;\[\](){}]/}}R4.displayName="mongodb";R4.aliases=[];function R4(e){e.register(So),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(o){return o.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)}I4.displayName="monkey";I4.aliases=[];function I4(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:/[.,:;()\[\]]/}}N4.displayName="moonscript";N4.aliases=["moon"];function N4(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}D4.displayName="n1ql";D4.aliases=[];function D4(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:/[;[\](),.{}:]/}}P4.displayName="nand2tetris-hdl";P4.aliases=[];function P4(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:/[{}[\];(),:]/}}L4.displayName="naniscript";L4.aliases=["nani"];function L4(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(a){var s=a.tokens;s.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=o(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(a){for(var s="[]{}",l=[],u=0;u=&|$!]/}}$4.displayName="neon";$4.aliases=[];function $4(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:/[,:=[\]{}()-]/}}F4.displayName="nevod";F4.aliases=[];function F4(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\-.]+/}}B4.displayName="nginx";B4.aliases=[];function B4(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)}U4.displayName="nim";U4.aliases=[];function U4(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}j4.displayName="nix";j4.aliases=[];function j4(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}z4.displayName="nsis";z4.aliases=[];function z4(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}}}V4.displayName="ocaml";V4.aliases=[];function V4(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/}}H4.displayName="odin";H4.aliases=[];function H4(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)}W4.displayName="opencl";W4.aliases=[];function W4(e){e.register(Hl),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)}Q4.displayName="openqasm";Q4.aliases=["qasm"];function Q4(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}Y4.displayName="oz";Y4.aliases=[];function Y4(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:/[\[\](){}.:;?]/}}G4.displayName="parigp";G4.aliases=[];function G4(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:/[\[\]{}().,:;|]/}}q4.displayName="parser";q4.aliases=[];function q4(e){e.register(io),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)}Z4.displayName="pascal";Z4.aliases=["objectpascal"];function Z4(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}X4.displayName="pascaligo";X4.aliases=[];function X4(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:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(a,s){return a[s]=i[s],a},{});i["class-name"].forEach(function(a){a.inside=o})})(e)}K4.displayName="psl";K4.aliases=[];function K4(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:/[(){}\[\];,]/}}J4.displayName="pcaxis";J4.aliases=["px"];function J4(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}e5.displayName="peoplecode";e5.aliases=["pcode"];function e5(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}t5.displayName="phpdoc";t5.aliases=[];function t5(e){e.register(Kg),e.register(Qp),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)}n5.displayName="php-extras";n5.aliases=[];function n5(e){e.register(Qp),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:/::|\\/}}})}r5.displayName="plant-uml";r5.aliases=["plantuml"];function r5(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,o="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",a=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+o+s+"|"+a+o+"(?:"+s+")?)"+u;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+c+/(?![-.<>?|\\\]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)}i5.displayName="plsql";i5.aliases=[];function i5(e){e.register(qg),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"}})}o5.displayName="powerquery";o5.aliases=["mscript","pq"];function o5(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}a5.displayName="powershell";a5.aliases=[];function a5(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)}s5.displayName="processing";s5.aliases=[];function s5(e){e.register(jn),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"}})}l5.displayName="prolog";l5.aliases=[];function l5(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:/[(){}\[\],]/}}u5.displayName="promql";u5.aliases=[];function u5(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"],o=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(?:"+o.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)}c5.displayName="properties";c5.aliases=[];function c5(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:/[=:]/}}d5.displayName="protobuf";d5.aliases=[];function d5(e){e.register(jn),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)}f5.displayName="stylus";f5.aliases=[];function f5(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)}p5.displayName="twig";p5.aliases=[];function p5(e){e.register(To),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")})}h5.displayName="pug";h5.aliases=[];function h5(e){e.register(So),e.register(io),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={},o=0,a=r.length;o",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}m5.displayName="puppet";m5.aliases=[];function m5(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)}g5.displayName="pure";g5.aliases=[];function g5(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 o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),t.languages[o]){var a={};a["inline-lang-"+o]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},a["inline-lang-"+o].inside.rest=t.util.clone(t.languages[o]),t.languages.insertBefore("pure","inline-lang",a)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}b5.displayName="purebasic";b5.aliases=["pbfasm"];function b5(e){e.register(jn),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}y5.displayName="purescript";y5.aliases=["purs"];function y5(e){e.register(NO),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}O5.displayName="qsharp";O5.aliases=["qs"];function O5(e){e.register(jn),function(t){function n(h,m){return h.replace(/<<(\d+)>>/g,function(b,O){return"(?:"+m[+O]+")"})}function r(h,m,b){return RegExp(n(h,m),b||"")}function i(h,m){for(var b=0;b>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var o={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 a(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(a(o.type+" "+o.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:s,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:s,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,[d]),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}v5.displayName="q";v5.aliases=[];function v5(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:/[(){}\[\];.]/}}E5.displayName="qml";E5.aliases=[];function E5(e){e.register(So),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}),o=0;o<2;o++)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)}S5.displayName="qore";S5.aliases=[];function S5(e){e.register(jn),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/})}T5.displayName="racket";T5.aliases=["rkt"];function T5(e){e.register(DO),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}w5.displayName="cshtml";w5.aliases=["razor"];function w5(e){e.register(Hp),e.register(io),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,S){for(var k=0;k/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var o=i(/\((?:[^()'"@/]|||)*\)/.source,2),a=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+o+"|"+a+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),h=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function a(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(u,c)}o=a(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=a(/<\/?(?:[\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:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(s).join(""):""},l=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===s(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:s(p.content[0].content[1]),openedBraces:0}):c.length>0&&p.type==="punctuation"&&p.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?c[c.length-1].openedBraces--:h=!0),(h||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var m=s(p);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(m=s(u[d-1])+m,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",m,null,m)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}k5.displayName="tsx";k5.aliases=[];function k5(e){e.register($x),e.register(Zg),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)}x5.displayName="reason";x5.aliases=[];function x5(e){e.register(jn),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}C5.displayName="rego";C5.aliases=[];function C5(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:/[,;.\[\]{}()]/}}A5.displayName="renpy";A5.aliases=["rpy"];function A5(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}_5.displayName="rescript";_5.aliases=["res"];function _5(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}R5.displayName="rest";R5.aliases=[];function R5(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}}}I5.displayName="rip";I5.aliases=[];function I5(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`'",.:;#\/\\()<>\[\]{}]*/}}N5.displayName="roboconf";N5.aliases=[];function N5(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:/[{},.;:=]/}}D5.displayName="robotframework";D5.aliases=["robot"];function D5(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,u){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in u)c[d]=u[d];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:c}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},a={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={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":a,documentation:o,property:s}),keywords:i("Keywords",{"keyword-name":a,documentation:o,property:s}),tasks:i("Tasks",{"task-name":a,documentation:o,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}P5.displayName="sas";P5.aliases=[];function P5(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"},o={pattern:/&[a-z_]\w*/i},a={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"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={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"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/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,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:d,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},S={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":b,"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:c,string:u}},"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:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"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:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"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":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:s,keyword:S,function:d,format:h,altformat:m,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":a,"macro-variable":o,"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":a,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"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":v,comment:l,function:d,format:h,altformat:m,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:S,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}L5.displayName="shell-session";L5.aliases=["sh-session","shellsession"];function L5(e){e.register(xO),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)}M5.displayName="smali";M5.aliases=[];function M5(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:/[{}(),;:]/}}$5.displayName="smalltalk";$5.aliases=[];function $5(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:/[.;:?\[\](){}]/}}F5.displayName="smarty";F5.aliases=[];function F5(e){e.register(To),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 o="{literal}",a="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===a&&(s=!1),s?!1:(l===o&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}B5.displayName="sml";B5.aliases=["smlnj"];function B5(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)}U5.displayName="solidity";U5.aliases=["sol"];function U5(e){e.register(jn),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}j5.displayName="solution-file";j5.aliases=["sln"];function j5(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)}z5.displayName="soy";z5.aliases=[];function z5(e){e.register(To),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 o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,a="{literal}",s="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",o,function(u){return u===s&&(l=!1),l?!1:(u===a&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}Fx.displayName="turtle";Fx.aliases=["trig"];function Fx(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}V5.displayName="sparql";V5.aliases=["rq"];function V5(e){e.register(Fx),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}H5.displayName="splunk-spl";H5.aliases=[];function H5(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:/[()[\],]/}}W5.displayName="sqf";W5.aliases=[];function W5(e){e.register(jn),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"]}Q5.displayName="squirrel";Q5.aliases=[];function Q5(e){e.register(jn),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"}})}Y5.displayName="stan";Y5.aliases=[];function Y5(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)}G5.displayName="stata";G5.aliases=[];function G5(e){e.register(Wp),e.register(Mx),e.register(_O),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}q5.displayName="iecst";q5.aliases=[];function q5(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:/[()[\].,;]/}}Z5.displayName="supercollider";Z5.aliases=["sclang"];function Z5(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}X5.displayName="systemd";X5.aliases=[];function X5(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)}PO.displayName="t4-templating";PO.aliases=[];function PO(e){(function(t){function n(i,o,a){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:a}}}}function r(i){var o=t.languages[i],a="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("=",o,a),"class-feature":n("\\+",o,a),standard:n("",o,a)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}K5.displayName="t4-cs";K5.aliases=["t4"];function K5(e){e.register(Hp),e.register(PO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}J5.displayName="t4-vb";J5.aliases=[];function J5(e){e.register(PO),e.register(IO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}e$.displayName="tap";e$.aliases=[];function e$(e){e.register(AO),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"}}}t$.displayName="tcl";t$.aliases=[];function t$(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:/[{}()\[\]]/}}n$.displayName="tt2";n$.aliases=[];function n$(e){e.register(jn),e.register(To),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)}r$.displayName="toml";r$.aliases=[];function r$(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)}i$.displayName="tremor";i$.aliases=["trickle","troy"];function i$(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)}o$.displayName="typoscript";o$.aliases=["tsconfig"];function o$(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)}a$.displayName="unrealscript";a$.aliases=["uc","uscript"];function a$(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}s$.displayName="uorazor";s$.aliases=[];function s$(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:/[()\[\]{}:.,]/}}l$.displayName="v";l$.aliases=[];function l$(e){e.register(jn),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)}u$.displayName="vala";u$.aliases=[];function u$(e){e.register(jn),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]+$/}}})}c$.displayName="velocity";c$.aliases=[];function c$(e){e.register(io),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)}d$.displayName="verilog";d$.aliases=[];function d$(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:/[[\];(),.:]/}}f$.displayName="vhdl";f$.aliases=[];function f$(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:/[{}[\];(),.:]/}}p$.displayName="vim";p$.aliases=[];function p$(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:/[{}[\](),;:]/}}h$.displayName="visual-basic";h$.aliases=["vb","vba"];function h$(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"]}m$.displayName="warpscript";m$.aliases=[];function m$(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/}}g$.displayName="wasm";g$.aliases=[];function g$(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:/[()]/}}b$.displayName="web-idl";b$.aliases=["webidl"];function b$(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 o in t.languages["web-idl"])o!=="class-name"&&(i[o]=t.languages["web-idl"][o]);t.languages.webidl=t.languages["web-idl"]})(e)}y$.displayName="wgsl";y$.aliases=[];function y$(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:/[@(){}[\],;<>:.]/}}O$.displayName="wiki";O$.aliases=[];function O$(e){e.register(io),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}}}})}v$.displayName="wolfram";v$.aliases=["mathematica","nb","wl"];function v$(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}E$.displayName="wren";E$.aliases=[];function E$(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]+/}}}S$.displayName="xeora";S$.aliases=["xeoracube"];function S$(e){e.register(io),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)}T$.displayName="xml-doc";T$.aliases=[];function T$(e){e.register(io),function(t){function n(a,s){t.languages[a]&&t.languages.insertBefore(a,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",o)}(e)}w$.displayName="xojo";w$.aliases=[];function w$(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:/[.,;:()]/}}k$.displayName="xquery";k$.aliases=[];function k$(e){e.register(io),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 o=[],a=0;a0&&o[o.length-1].tagName===n(s.content[0].content[1])&&o.pop():s.content[s.content.length-1].content==="/>"||o.push({tagName:n(s.content[0].content[1]),openedBraces:0}):o.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[a+1]||i[a+1].type!=="punctuation"||i[a+1].content!=="{")&&(!i[a-1]||i[a-1].type!=="plain-text"||i[a-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?o[o.length-1].openedBraces--:s.type!=="comment"&&(l=!0)),(l||typeof s=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var u=n(s);a0&&(typeof i[a-1]=="string"||i[a-1].type==="plain-text")&&(u=n(i[a-1])+u,i.splice(a-1,1),a--),/^\s+$/.test(u)?i[a]=u:i[a]=new t.Token("plain-text",u,null,u)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}x$.displayName="yang";x$.aliases=[];function x$(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:/[{};:]/}}C$.displayName="zig";C$.aliases=[];function C$(e){(function(t){function n(u){return function(){return u}}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",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,a=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+a+"\\s*)*"+s+")+";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(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(o))),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(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}te.register(io);te.register(hf);te.register(jn);te.register(wx);te.register(So);te.register(H3);te.register(W3);te.register(Q3);te.register(Y3);te.register(G3);te.register(q3);te.register(Z3);te.register(X3);te.register(qg);te.register(K3);te.register(J3);te.register(eL);te.register(tL);te.register(Hl);te.register(Vp);te.register(vx);te.register(nL);te.register(rL);te.register(xO);te.register(AO);te.register(Ax);te.register(iL);te.register(oL);te.register(Hp);te.register(aL);te.register(sL);te.register(lL);te.register(uL);te.register(cL);te.register(dL);te.register(fL);te.register(pL);te.register(RO);te.register(hL);te.register(mL);te.register(gL);te.register(bL);te.register(yL);te.register(OL);te.register(vL);te.register(EL);te.register(SL);te.register(TL);te.register(wL);te.register(kL);te.register(xL);te.register(CL);te.register(AL);te.register(_L);te.register(RL);te.register(IL);te.register(NL);te.register(DL);te.register(PL);te.register(LL);te.register(ML);te.register($L);te.register(FL);te.register(Yp);te.register(BL);te.register(UL);te.register(jL);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(YL);te.register(GL);te.register(Ex);te.register(To);te.register(qL);te.register(ZL);te.register(XL);te.register(KL);te.register(JL);te.register(eM);te.register(tM);te.register(nM);te.register(rM);te.register(iM);te.register(CO);te.register(oM);te.register(aM);te.register(sM);te.register(lM);te.register(uM);te.register(cM);te.register(dM);te.register(fM);te.register(pM);te.register(hM);te.register(mM);te.register(gM);te.register(bM);te.register(yM);te.register(OM);te.register(vM);te.register(EM);te.register(SM);te.register(TM);te.register(wM);te.register(kM);te.register(xM);te.register(Sx);te.register(CM);te.register(AM);te.register(_M);te.register(RM);te.register(xx);te.register(Px);te.register(IM);te.register(NM);te.register(DM);te.register(NO);te.register(PM);te.register(LM);te.register(MM);te.register($M);te.register(FM);te.register(BM);te.register(Gg);te.register(UM);te.register(jM);te.register(zM);te.register(VM);te.register(HM);te.register(WM);te.register(QM);te.register(YM);te.register(Tx);te.register(GM);te.register(qM);te.register(Wp);te.register(Qp);te.register(Kg);te.register(ZM);te.register(XM);te.register(KM);te.register(JM);te.register(e4);te.register(t4);te.register(n4);te.register(Zg);te.register(r4);te.register(i4);te.register(o4);te.register(a4);te.register(s4);te.register(l4);te.register(u4);te.register(c4);te.register(d4);te.register(kx);te.register(f4);te.register(p4);te.register(h4);te.register(m4);te.register(DO);te.register(g4);te.register(b4);te.register(y4);te.register(O4);te.register(v4);te.register(E4);te.register(S4);te.register(T4);te.register(Cx);te.register(Mx);te.register(w4);te.register(k4);te.register(x4);te.register(C4);te.register(A4);te.register(_4);te.register(R4);te.register(I4);te.register(N4);te.register(D4);te.register(P4);te.register(L4);te.register(M4);te.register($4);te.register(F4);te.register(B4);te.register(U4);te.register(j4);te.register(z4);te.register(_x);te.register(V4);te.register(H4);te.register(W4);te.register(Q4);te.register(Y4);te.register(G4);te.register(q4);te.register(Z4);te.register(X4);te.register(K4);te.register(J4);te.register(e5);te.register(Rx);te.register(t5);te.register(n5);te.register(r5);te.register(i5);te.register(o5);te.register(a5);te.register(s5);te.register(l5);te.register(u5);te.register(c5);te.register(d5);te.register(f5);te.register(p5);te.register(h5);te.register(m5);te.register(g5);te.register(b5);te.register(y5);te.register(_O);te.register(O5);te.register(v5);te.register(E5);te.register(S5);te.register(Ix);te.register(T5);te.register(w5);te.register($x);te.register(k5);te.register(x5);te.register(C5);te.register(A5);te.register(_5);te.register(R5);te.register(I5);te.register(N5);te.register(D5);te.register(Nx);te.register(P5);te.register(Dx);te.register(L5);te.register(M5);te.register($5);te.register(F5);te.register(B5);te.register(U5);te.register(j5);te.register(z5);te.register(Fx);te.register(V5);te.register(H5);te.register(W5);te.register(Q5);te.register(Y5);te.register(G5);te.register(q5);te.register(Z5);te.register(Lx);te.register(X5);te.register(PO);te.register(K5);te.register(IO);te.register(J5);te.register(e$);te.register(t$);te.register(n$);te.register(r$);te.register(i$);te.register(o$);te.register(a$);te.register(s$);te.register(l$);te.register(u$);te.register(c$);te.register(d$);te.register(f$);te.register(p$);te.register(h$);te.register(m$);te.register(g$);te.register(b$);te.register(y$);te.register(O$);te.register(v$);te.register(E$);te.register(S$);te.register(T$);te.register(w$);te.register(k$);te.register(x$);te.register(C$);function ZI(){ZI=function(i,o){return new n(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function n(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),lw(s,n.prototype)}function r(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,l){var u=a[l];if(typeof u=="number")s[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=a[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=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,s)),o.apply(this,l)})}return e[Symbol.replace].call(this,i,o)},ZI.apply(this,arguments)}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},lw(e,t)}function Zz(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 W9e=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){Da(r,"element",n)};function n(r,i,o){var a,s;if(o&&o.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(a=r.data)==null?void 0:a.meta)||(r==null||(s=r.properties)==null?void 0:s.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 u,c,d=function(C){for(var w,E=y2(C.properties.className);!(w=E()).done;){var $=w.value;if($.slice(0,9)==="language-")return $.slice(9).toLowerCase()}return null}(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var p,h;h=(p=d)!=null&&p.includes("diff-")?d.split("-")[1]:d,u=e.highlight(nm(r),h),o.properties.className=(o.properties.className||[]).concat("language-"+h)}catch(C){if(!t.ignoreMissing||!/Unknown language/.test(C.message))throw C;u=r}else u=r;u.children=(c=1,function C(w){return w.reduce(function(E,$){if($.type==="text"){var P=$.value,_=(P.match(/\n/g)||"").length;if(_===0)$.position={start:{line:c,column:1},end:{line:c,column:1}},E.push($);else for(var B,U=P.split(` `),V=y2(U.entries());!(B=V()).done;){var z=B.value,W=z[0],X=z[1];E.push({type:"text",value:W===U.length-1?X:X+` -`,position:{start:{line:c+W,column:1},end:{line:c+W,column:1}}})}return c+=_,E}if(Object.prototype.hasOwnProperty.call($,"children")){var q=c;return $.children=C($.children),E.push($),$.position={start:{line:q,column:1},end:{line:c,column:1}},E}return E.push($),E},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var m,b=function(C){var w=/{([\d,-]+)}/,E=C.split(",").map(function(_){return _.trim()}).join();if(w.test(E)){var $=w.exec(E)[1],P=y9e($);return function(_){return P.includes(_+1)}}return function(){return!1}}(l),O=function(C){var w=ZI(/showLineNumbers=(\d+)/i,{lines:1});if(w.test(C)){var E=w.exec(C);return Number(E.groups.lines)}return 1}(l),y=function(C){for(var w=new Array(C),E=0;E=$+1});P.children=_.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return l.toLowerCase().includes(B)})||(P.properties.line=[($+O).toString()],P.properties.className.push("line-number")),b($)&&P.properties.className.push("highlight-line"),(d==="diff"||(C=d)!=null&&C.includes("diff-"))&&nm(P).substring(0,1)==="-"?P.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&nm(P).substring(0,1)==="+"&&P.properties.className.push("inserted")},k=y2(y.entries());!(m=k()).done;)S();y.length>0&&nm(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},Q9e=W9e(te),gS={},XI={};function Y9e(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"]}}}),JI=LO(Wte,{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"]}}}),eD=LO(JI,{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"]}}}),tje=LO(eD,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),nV={css1:Hte,css2:Wte,css3:JI,"selectors-3":JI,"selectors-4":eD,latest:eD,progressive:tje};function W0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function nje(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Q0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var rje={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},ije={'"':!0,"'":!0},v2={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},oje=6,E2="css-selector-parser parse error: ";function aje(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,o=i===void 0?!0:i,a=typeof n=="object"?n:nV[n];a.baseSyntax&&(a=LO(nV[a.baseSyntax],a));var s=a.tag?[!0,!!K9e(a.tag).wildcard]:[!1,!1],l=s[0],u=s[1],c=!!a.ids,d=!!a.classNames,p=!!a.namespace,h=a.namespace&&(a.namespace===!0||a.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(E2,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,b=a.combinators?Xz(a.combinators):gS,O=a.attributes?[!0,a.attributes.operators?Xz(a.attributes.operators):gS,a.attributes.caseSensitivityModifiers?G9e(a.attributes.caseSensitivityModifiers):XI,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,gS,XI,!1],y=O[0],v=O[1],S=O[2],k=O[3],C=k||Object.keys(S).length>0,w=a.pseudoClasses?[!0,a.pseudoClasses.definitions?Jz(a.pseudoClasses.definitions):OE,a.pseudoClasses.unknown==="accept"]:[!1,OE,!1],E=w[0],$=w[1],P=w[2],_=a.pseudoElements?[!0,a.pseudoElements.notation==="singleColon"||a.pseudoElements.notation==="both",!a.pseudoElements.notation||a.pseudoElements.notation==="doubleColon"||a.pseudoElements.notation==="both",a.pseudoElements.definitions?Jz(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):OE,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,OE,!1],B=_[0],U=_[1],V=_[2],z=_[3],W=_[4],X="",q=X.length,Y=0,Z="",j=function(de){return Z===de},se=function(){return j("*")||W0(Z)},ve=function(de){Y=de,Z=X.charAt(Y)},G=function(){Y++,Z=X.charAt(Y)},ce=function(){var de=Z;return Y++,Z=X.charAt(Y),de};function ge(de){var Oe=Math.min(q-1,Y),Te=new Error("".concat(E2).concat(de," Pos: ").concat(Oe,"."));throw Te.position=Oe,Te.name="ParserError",Te}function ue(de,Oe){if(!de)return ge(Oe)}var xe=function(){ue(Y=q},Ve=function(de){ue(Y0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var m,b=function(C){var w=/{([\d,-]+)}/,E=C.split(",").map(function(_){return _.trim()}).join();if(w.test(E)){var $=w.exec(E)[1],P=y9e($);return function(_){return P.includes(_+1)}}return function(){return!1}}(l),O=function(C){var w=ZI(/showLineNumbers=(\d+)/i,{lines:1});if(w.test(C)){var E=w.exec(C);return Number(E.groups.lines)}return 1}(l),y=function(C){for(var w=new Array(C),E=0;E=$+1});P.children=_.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return l.toLowerCase().includes(B)})||(P.properties.line=[($+O).toString()],P.properties.className.push("line-number")),b($)&&P.properties.className.push("highlight-line"),(d==="diff"||(C=d)!=null&&C.includes("diff-"))&&nm(P).substring(0,1)==="-"?P.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&nm(P).substring(0,1)==="+"&&P.properties.className.push("inserted")},k=y2(y.entries());!(m=k()).done;)S();y.length>0&&nm(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},Q9e=W9e(te),gS={},XI={};function Y9e(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"]}}}),JI=LO(Wte,{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"]}}}),eN=LO(JI,{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"]}}}),tje=LO(eN,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),nV={css1:Hte,css2:Wte,css3:JI,"selectors-3":JI,"selectors-4":eN,latest:eN,progressive:tje};function W0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function nje(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Q0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var rje={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},ije={'"':!0,"'":!0},v2={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},oje=6,E2="css-selector-parser parse error: ";function aje(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,o=i===void 0?!0:i,a=typeof n=="object"?n:nV[n];a.baseSyntax&&(a=LO(nV[a.baseSyntax],a));var s=a.tag?[!0,!!K9e(a.tag).wildcard]:[!1,!1],l=s[0],u=s[1],c=!!a.ids,d=!!a.classNames,p=!!a.namespace,h=a.namespace&&(a.namespace===!0||a.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(E2,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,b=a.combinators?Xz(a.combinators):gS,O=a.attributes?[!0,a.attributes.operators?Xz(a.attributes.operators):gS,a.attributes.caseSensitivityModifiers?G9e(a.attributes.caseSensitivityModifiers):XI,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,gS,XI,!1],y=O[0],v=O[1],S=O[2],k=O[3],C=k||Object.keys(S).length>0,w=a.pseudoClasses?[!0,a.pseudoClasses.definitions?Jz(a.pseudoClasses.definitions):OE,a.pseudoClasses.unknown==="accept"]:[!1,OE,!1],E=w[0],$=w[1],P=w[2],_=a.pseudoElements?[!0,a.pseudoElements.notation==="singleColon"||a.pseudoElements.notation==="both",!a.pseudoElements.notation||a.pseudoElements.notation==="doubleColon"||a.pseudoElements.notation==="both",a.pseudoElements.definitions?Jz(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):OE,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,OE,!1],B=_[0],U=_[1],V=_[2],z=_[3],W=_[4],X="",q=X.length,Y=0,Z="",j=function(de){return Z===de},se=function(){return j("*")||W0(Z)},ve=function(de){Y=de,Z=X.charAt(Y)},G=function(){Y++,Z=X.charAt(Y)},ce=function(){var de=Z;return Y++,Z=X.charAt(Y),de};function ge(de){var Oe=Math.min(q-1,Y),Te=new Error("".concat(E2).concat(de," Pos: ").concat(Oe,"."));throw Te.position=Oe,Te.name="ParserError",Te}function ue(de,Oe){if(!de)return ge(Oe)}var xe=function(){ue(Y=q},Ve=function(de){ue(Y=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),v2[Z]&&ge("Identifiers cannot start with hyphens followed by digits.");Y=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),v2[Z]&&ge("Identifiers cannot start with hyphens followed by digits.");Y0)return(t.commaSeparated?E3:T3)(e)}else return String(e)}const mje=[];function gje(e,t){return(t.properties.className||mje).includes(e.name)}function bje(e,t){return t.properties.id===e.name}function yje(e,t){return e.name===t.tagName}function Oje(e,t){return function(n,r){let i=iV(n,"tag");const o=iV(r??"*","range"),a=[];let s=-1;for(;++s=oV&&e.charCodeAt(t)<=Tje;)u=u*10+(e.charCodeAt(t)-oV),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?aV.trueFunc:o=>o>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?o=>o>=n&&o%r===i:o=>o<=n&&o%r===i}function sV(e){return xje(wje(e))}const Cje=sV.default||sV,Aje=P3("name",{handlers:{"any-link":_je,blank:Rje,checked:Ije,dir:Dje,disabled:Gte,empty:Nje,enabled:Pje,"first-child":Lje,"first-of-type":Mje,has:$je,is:qte,lang:Bje,"last-child":Uje,"last-of-type":jje,not:zje,"nth-child":Vje,"nth-last-child":Hje,"nth-last-of-type":Wje,"nth-of-type":Qje,"only-child":Yje,"only-of-type":Gje,optional:qje,"read-only":Zje,"read-write":Zte,required:Xte,root:Xje,scope:Kje},invalid:Fje,unknown:Jje});function _je(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Np(t,"href")}function Hu(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Rje(e,t){return!Kte(t,n);function n(r){return r.type==="element"||r.type==="text"&&!HJ(r)}}function Ije(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Np(t,"checked")):t.tagName==="option"?Np(t,"selected"):!1}function Dje(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function Gte(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")&&Np(t,"disabled")}function Nje(e,t){return!Kte(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Pje(e,t){return!Gte(e,t)}function Lje(e,t,n,r,i){return Hu(i,e),i.elementIndex===0}function Mje(e,t,n,r,i){return Hu(i,e),i.typeIndex===0}function Bx(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=Cje(n.a+"n+"+n.b),e._cachedFn=t}return t}function $je(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return A$(o,{type:"root",children:t.children}),o.results.length>0}function Fje(){}function qte(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return A$(o,t),o.results[0]===t}function Bje(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&vje(i.language,l1(e.argument.value)).length>0}function Uje(e,t,n,r,i){return Hu(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function jje(e,t,n,r,i){return Hu(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function zje(e,t,n,r,i){return!qte(e,t,n,r,i)}function Vje(e,t,n,r,i){const o=Bx(e);return Hu(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function Hje(e,t,n,r,i){const o=Bx(e);return Hu(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function Wje(e,t,n,r,i){const o=Bx(e);return Hu(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function Qje(e,t,n,r,i){const o=Bx(e);return Hu(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function Yje(e,t,n,r,i){return Hu(i,e),i.elementCount===1}function Gje(e,t,n,r,i){return Hu(i,e),i.typeCount===1}function qje(e,t){return!Xte(e,t)}function Zje(e,t,n,r,i){return!Zte(e,t,n,r,i)}function Zte(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Np(t,"readOnly")&&!Np(t,"disabled"):!!i.editableOrEditingHost}function Xte(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Np(t,"required")}function Xje(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 Kje(e,t,n,r,i){return i.scopeElements.includes(t)}function Kte(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";T2(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?T2(o,"descendant",s):s.combinator==="~"&&T2(o,"generalSibling",s)}return o}function bS(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:tze}function lV(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 Jte(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=fje(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==o&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===o)),a=rze(e,bS(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&nze(e,a,n,o),s(),a}function ize(e,t,n){const r=oze(e,t,n);return A$(r,t||void 0),r.results}function oze(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:lje(e),schema:n==="svg"?ju:jp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const ene=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=ene(n.children))}),t),aze=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=ize(t,r);i&&i.length>0&&Na(r,i,(o,a,s)=>{n(o,a,s)});return}Na(r,(i,o,a)=>{n(i,o,a)})}}},sze=aze,lze=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),uze=(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]}},tne=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?tne(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},uV=({value:e=""})=>{const t=lze(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},cV=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},cze=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Na(r,"element",(i,o,a)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&a&&Array.isArray(a.children)&&a.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof o=="number"){const l=uze(a.children,o);if(l){const u=uV(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=cV(s.properties,u,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)&&a&&Array.isArray(a.children)&&typeof o=="number"){const s=tne(a.children,o,"",n);if(s){const l=uV(s);Object.keys(l).length>0&&(i.properties=cV(i.properties,l,t))}}})}},dze=cze;var fze=function(t){return n=>{Na(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=L({},r.properties,{"data-meta":String(r.data.meta)}))})}},pze=function(t){return n=>{Na(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 hze=/[\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,mze=Object.hasOwnProperty;class gze{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=bze(t,n===!0);const o=i;for(;mze.call(r.occurrences,i);)r.occurrences[o]++,i=o+"-"+r.occurrences[o];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function bze(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(hze,"").replace(/ /g,"-"))}function nne(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 yze={},dV=new gze;function Oze(e){const n=(e||yze).prefix||"";return function(r){dV.reset(),Na(r,"element",function(i){nne(i)&&!i.properties.id&&(i.properties.id=n+dV.slug(nm(i)))})}}const rne=function(e){if(e==null)return Sze;if(typeof e=="string")return Eze(e);if(typeof e=="object")return vze(e);if(typeof e=="function")return _$(e);throw new Error("Expected function, string, or array as `test`")};function vze(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Na(r,(i,o,a)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return s=!0,!1;if(u===n)return s=!1,!1}return!s})}})}},Cze=xze;var Aze={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 _ze(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 Rze=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=L({class:"anchor"},o.properties),o.children=[Aze])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=ene(n.children);n.children.push(_ze(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},Ize=[Oze,kze,Cze];const Dze=Qt.forwardRef((e,t)=>{var n,r=[fze,$te,pze,[Q9e,{ignoreMissing:!0}],...Ize,[sze,{rewrite:Rze((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[dze,{properties:"attr"}],...e.rehypePlugins||[]];return D.jsx(f9e,L({},e,{rehypePlugins:r,ref:t}))});function hV(){const e=v3(),t=Bl(Zk),[n,r]=I.useState("");return I.useEffect(()=>{var o,a;if(!t.doc)return;r(((a=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:a.toString())||"");const i=t.doc.subscribe("$.content",()=>{var s;r((s=t.doc)==null?void 0:s.getRoot().content.toString())});return()=>{i(),r("")}},[t.doc]),t!=null&&t.doc?D.jsx(Dze,{source:n,wrapperElement:{"data-color-mode":e}}):D.jsx(cr,{direction:"row",justifyContent:"center",children:D.jsx(uf,{sx:{mt:2}})})}function one(){const e=Bl(Zk),t=kCe();return!e.doc||!e.client?D.jsx(X1,{open:!0,children:D.jsx(uf,{color:"inherit"})}):D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&D.jsx(yCe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>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(Pj,{})}),D.jsx(zo,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),D.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:D.jsx($o,{sx:{p:4},height:"100%",children:D.jsx(hV,{})})})]})}),e.mode==="read"&&D.jsx($o,{sx:{p:4,overflow:"auto"},height:"100%",children:D.jsx(hV,{})}),e.mode==="edit"&&D.jsx(Pj,{})]})}var ane={exports:{}},Nze={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]},sne={exports:{}},Pze=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")},Lze=Pze,Mze=Array.prototype.concat,$ze=Array.prototype.slice,mV=sne.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+")"};us.to.keyword=function(e){return une[e.slice(0,3)]};function Fd(e,t,n){return Math.min(Math.max(t,e),n)}function EE(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Bze=ane.exports,Uze={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 p1=Uze,cne={};for(const e of Object.keys(p1))cne[p1[e]]=e;const nn={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 dne=nn;for(const e of Object.keys(nn)){if(!("channels"in nn[e]))throw new Error("missing channels property: "+e);if(!("labels"in nn[e]))throw new Error("missing channel labels property: "+e);if(nn[e].labels.length!==nn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=nn[e];delete nn[e].channels,delete nn[e].labels,Object.defineProperty(nn[e],"channels",{value:t}),Object.defineProperty(nn[e],"labels",{value:n})}nn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(i+o)/2;return o===i?l=0:u<=.5?l=a/(o+i):l=a/(2-o-i),[s,l*100,u*100]};nn.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),d=function(p){return(u-p)/6/c+1/2};return c===0?(i=0,o=0):(o=c/u,t=d(a),n=d(s),r=d(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};nn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=nn.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]};nn.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),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function jze(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}nn.rgb.keyword=function(e){const t=cne[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(p1)){const o=p1[i],a=jze(e,o);a.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,o=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};nn.rgb.lab=function(e){const t=nn.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 o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]};nn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(n===0)return a=r*255,[a,a,a];r<.5?i=r*(1+n):i=r+n-r*n;const s=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,l[u]=a*255;return l};nn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=r===0?2*i/(o+i):2*n/(r+n);return[t,s*100,a*100]};nn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};nn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};nn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,a&1&&(o=1-o);const l=n+o*(s-n);let u,c,d;switch(a){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l;break}return[u*255,c*255,d*255]};nn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[o*255,a*255,s*255]};nn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=t*3.2406+n*-1.5372+r*-.4986,o=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};nn.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,o=500*(t-n),a=200*(n-r);return[i,o,a]};nn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};nn.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 a=Math.sqrt(n*n+r*r);return[t,a,i]};nn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]};nn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?nn.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(a+=60),a};nn.hsv.ansi16=function(e){return nn.rgb.ansi16(nn.hsv.rgb(e),e[2])};nn.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)};nn.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,o=(t>>2&1)*n*255;return[r,i,o]};nn.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}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]};nn.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};nn.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(s=>s+s).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};nn.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),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return a<1?s=o/(1-a):s=0,a<=0?l=0:i===t?l=(n-r)/a%6:i===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};nn.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]};nn.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]};nn.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],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};nn.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]};nn.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]};nn.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]};nn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]};nn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};nn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};nn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};nn.gray.hsl=function(e){return[0,0,e[0]]};nn.gray.hsv=nn.gray.hsl;nn.gray.hwb=function(e){return[0,100,e[0]]};nn.gray.cmyk=function(e){return[0,0,0,e[0]]};nn.gray.lab=function(e){return[e[0],0,0]};nn.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};nn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const cw=dne;function zze(){const e={},t=Object.keys(cw);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Zze(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 o=i.length,a=0;a{Nh[e]={},Object.defineProperty(Nh[e],"channels",{value:tD[e].channels}),Object.defineProperty(Nh[e],"labels",{value:tD[e].labels});const t=Yze(e);Object.keys(t).forEach(r=>{const i=t[r];Nh[e][r]=Zze(i),Nh[e][r].raw=qze(i)})});var Xze=Nh;const Ph=Bze,os=Xze,fne=["keyword","gray","hex"],nD={};for(const e of Object.keys(os))nD[[...os[e].labels].sort().join("")]=e;const dw={};function Zi(e,t){if(!(this instanceof Zi))return new Zi(e,t);if(t&&t in fne&&(t=null),t&&!(t in os))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 Zi)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ph.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=os[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=os[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=rD(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 o=i.sort().join("");if(!(o in nD))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=nD[o];const{labels:a}=os[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ri("hsl",1,Ai(100)),lightness:ri("hsl",2,Ai(100)),saturationv:ri("hsv",1,Ai(100)),value:ri("hsv",2,Ai(100)),chroma:ri("hcg",1,Ai(100)),gray:ri("hcg",2,Ai(100)),white:ri("hwb",1,Ai(100)),wblack:ri("hwb",2,Ai(100)),cyan:ri("cmyk",0,Ai(100)),magenta:ri("cmyk",1,Ai(100)),yellow:ri("cmyk",2,Ai(100)),black:ri("cmyk",3,Ai(100)),x:ri("xyz",0,Ai(95.047)),y:ri("xyz",1,Ai(100)),z:ri("xyz",2,Ai(108.833)),l:ri("lab",0,Ai(100)),a:ri("lab",1),b:ri("lab",2),keyword(e){return e!==void 0?new Zi(e):os[this.model].keyword(this.color)},hex(e){return e!==void 0?new Zi(e):Ph.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Zi(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Ph.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 Zi.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,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return Zi.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(os)){if(fne.includes(e))continue;const{channels:t}=os[e];Zi.prototype[e]=function(...n){return this.model===e?new Zi(this):n.length>0?new Zi(n,e):new Zi([...eVe(os[this.model][e].raw(this.color)),this.valpha],e)},Zi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=rD(n,t)),new Zi(r,e)}}function Kze(e,t){return Number(e.toFixed(t))}function Jze(e){return function(t){return Kze(t,e)}}function ri(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(dw[r]||(dw[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 Ai(e){return function(t){return Math.max(0,Math.min(e,t))}}function eVe(e){return Array.isArray(e)?e:[e]}function rD(e,t){for(let n=0;nU.length;){var z=o(E);n!==null&&(E.seed=n),U.push(z)}return E.count=B,U}return $=a(E),P=s($,E),_=l($,P,E),u([$,P,_],E)};function a(E){if(i.length>0){var $=w(E.hue),P=m($),_=($[1]-$[0])/i.length,B=parseInt((P-$[0])/_);i[B]===!0?B=(B+2)%i.length:i[B]=!0;var U=($[0]+B*_)%359,V=($[0]+(B+1)*_)%359;return $=[U,V],P=m($),P<0&&(P=360+P),P}else{var $=d(E.hue);return P=m($),P<0&&(P=360+P),P}}function s(E,$){if($.hue==="monochrome")return 0;if($.luminosity==="random")return m([0,100]);var P=p(E),_=P[0],B=P[1];switch($.luminosity){case"bright":_=55;break;case"dark":_=B-10;break;case"light":B=55;break}return m([_,B])}function l(E,$,P){var _=c(E,$),B=100;switch(P.luminosity){case"dark":B=_+20;break;case"light":_=(B+_)/2;break;case"random":_=0,B=100;break}return m([_,B])}function u(E,$){switch($.format){case"hsvArray":return E;case"hslArray":return k(E);case"hsl":var P=k(E);return"hsl("+P[0]+", "+P[1]+"%, "+P[2]+"%)";case"hsla":var _=k(E),V=$.alpha||Math.random();return"hsla("+_[0]+", "+_[1]+"%, "+_[2]+"%, "+V+")";case"rgbArray":return v(E);case"rgb":var B=v(E);return"rgb("+B.join(", ")+")";case"rgba":var U=v(E),V=$.alpha||Math.random();return"rgba("+U.join(", ")+", "+V+")";default:return b(E)}}function c(E,$){for(var P=h(E).lowerBounds,_=0;_=B&&$<=V){var W=(z-U)/(V-B),X=U-W*B;return W*$+X}}return 0}function d(E){if(typeof parseInt(E)=="number"){var $=parseInt(E);if($<360&&$>0)return[$,$]}if(typeof E=="string"){if(r[E]){var P=r[E];if(P.hueRange)return P.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var _=S(E)[0];return[_,_]}}return[0,360]}function p(E){return h(E).saturationRange}function h(E){E>=334&&E<=360&&(E-=360);for(var $ in r){var P=r[$];if(P.hueRange&&E>=P.hueRange[0]&&E<=P.hueRange[1])return r[$]}return"Color not found"}function m(E){if(n===null){var $=.618033988749895,P=Math.random();return P+=$,P%=1,Math.floor(E[0]+P*(E[1]+1-E[0]))}else{var _=E[1]||1,B=E[0]||0;n=(n*9301+49297)%233280;var U=n/233280;return Math.floor(B+U*(_-B))}}function b(E){var $=v(E);function P(B){var U=B.toString(16);return U.length==1?"0"+U:U}var _="#"+P($[0])+P($[1])+P($[2]);return _}function O(E,$,P){var _=P[0][0],B=P[P.length-1][0],U=P[P.length-1][1],V=P[0][1];r[E]={hueRange:$,lowerBounds:P,saturationRange:[_,B],brightnessRange:[U,V]}}function y(){O("monochrome",null,[[0,0],[100,0]]),O("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),O("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),O("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),O("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),O("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),O("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),O("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function v(E){var $=E[0];$===0&&($=1),$===360&&($=359),$=$/360;var P=E[1]/100,_=E[2]/100,B=Math.floor($*6),U=$*6-B,V=_*(1-P),z=_*(1-U*P),W=_*(1-(1-U)*P),X=256,q=256,Y=256;switch(B){case 0:X=_,q=W,Y=V;break;case 1:X=z,q=_,Y=V;break;case 2:X=V,q=_,Y=W;break;case 3:X=V,q=z,Y=_;break;case 4:X=W,q=V,Y=_;break;case 5:X=_,q=V,Y=z;break}var Z=[Math.floor(X*255),Math.floor(q*255),Math.floor(Y*255)];return Z}function S(E){E=E.replace(/^#/,""),E=E.length===3?E.replace(/(.)/g,"$1$1"):E;var $=parseInt(E.substr(0,2),16)/255,P=parseInt(E.substr(2,2),16)/255,_=parseInt(E.substr(4,2),16)/255,B=Math.max($,P,_),U=B-Math.min($,P,_),V=B?U/B:0;switch(B){case $:return[60*((P-_)/U%6)||0,V,B];case P:return[60*((_-$)/U+2)||0,V,B];case _:return[60*(($-P)/U+4)||0,V,B]}}function k(E){var $=E[0],P=E[1]/100,_=E[2]/100,B=(2-P)*_;return[$,Math.round(P*_/(B<1?B:2-B)*1e4)/100,B/2*100]}function C(E){for(var $=0,P=0;P!==E.length&&!($>=Number.MAX_SAFE_INTEGER);P++)$+=E.charCodeAt(P);return $}function w(E){if(isNaN(E)){if(typeof E=="string"){if(r[E]){var P=r[E];if(P.hueRange)return P.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var _=S(E)[0];return h(_).hueRange}}}else{var $=parseInt(E);if($<360&&$>0)return h(E).hueRange}return[0,360]}return o})})(iD,iD.exports);var rVe=iD.exports;const iVe=tf(rVe),pne=(e,t)=>{const[n,r]=I.useState(null),[i,o]=I.useState(null),a=I.useCallback(async()=>{!n||!i||(await(n==null?void 0:n.detach(i)),await(n==null?void 0:n.deactivate()))},[n,i]);return I.useEffect(()=>{if(!e||!t||i||n)return;(async()=>{const l=new II.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"});await l.activate();const u=new II.Document(e);await l.attach(u,{initialPresence:{name:t,color:nVe(iVe()).fade(.15).toString(),selection:null}}),r(l),o(u)})()},[t,e,i,n]),{client:n,doc:i,cleanUpYorkieDocument:a}};function oVe(){var l;const e=Fp(),t=cf(),n=Bl(kP),{data:r}=lO(t.workspaceSlug),{data:i}=Cq(r==null?void 0:r.id,t.documentId),{doc:o,client:a,cleanUpYorkieDocument:s}=pne(i==null?void 0:i.yorkieDocumentId,(l=n.data)==null?void 0:l.nickname);return I.useEffect(()=>{if(!(!o||!a))return e(vT(o)),e(ET(a)),()=>{s(),e(vT(null)),e(ET(null))}},[s,e,a,o]),D.jsx($o,{height:"calc(100% - 64px)",children:D.jsx(one,{})})}var I$={},hne={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})(hne);var Ui=hne.exports,x2={};const aVe=rae(wfe);var gV;function ji(){return gV||(gV=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=aVe}(x2)),x2}var sVe=Ui;Object.defineProperty(I$,"__esModule",{value:!0});var mne=I$.default=void 0,lVe=sVe(ji()),uVe=D;mne=I$.default=(0,lVe.default)((0,uVe.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 D$={},cVe=Ui;Object.defineProperty(D$,"__esModule",{value:!0});var gne=D$.default=void 0,dVe=cVe(ji()),fVe=D;gne=D$.default=(0,dVe.default)((0,fVe.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 N$(){const e=Fp(),t=v3(),n=()=>{e(oke(t=="light"?"dark":"light"))};return D.jsx(eo,{onClick:n,color:"inherit",children:t==="light"?D.jsx(gne,{}):D.jsx(mne,{})})}function bne(e){return D.jsx(Hd,{...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 pVe(){const e=Pc(),t=()=>{e("/login")};return D.jsx(fY,{position:"static",sx:{zIndex:100},children:D.jsx(rG,{children:D.jsxs(cr,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[D.jsx(bne,{}),D.jsxs(cr,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(wl,{color:"inherit",onClick:t,children:"Login"}),D.jsx(N$,{})]})]})})})}function hVe(){return D.jsxs(cr,{sx:{flexGrow:1,height:"100vh"},children:[D.jsx(pVe,{}),D.jsx(fP,{})]})}var mVe=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,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},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=I},function(e,t,n){var r=n(3);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function a(u,c,d,p,h,m){if(m!==r){var b=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 b.name="Invariant Violation",b}}function s(){return a}a.isRequired=a;var l={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,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 q}),n.d(t,"GoogleLoginButton",function(){return j}),n.d(t,"GithubLoginButton",function(){return G}),n.d(t,"TwitterLoginButton",function(){return ue}),n.d(t,"AmazonLoginButton",function(){return Ve}),n.d(t,"InstagramLoginButton",function(){return Ge}),n.d(t,"LinkedInLoginButton",function(){return $e}),n.d(t,"MicrosoftLoginButton",function(){return Be}),n.d(t,"BufferLoginButton",function(){return J}),n.d(t,"TelegramLoginButton",function(){return De}),n.d(t,"AppleLoginButton",function(){return de}),n.d(t,"DiscordLoginButton",function(){return rt}),n.d(t,"OktaLoginButton",function(){return et}),n.d(t,"SlackLoginButton",function(){return it}),n.d(t,"YahooLoginButton",function(){return on}),n.d(t,"createButton",function(){return V}),n.d(t,"createSvgIcon",function(){return W}),n.d(t,"ZaloLoginButton",function(){return zn}),n.d(t,"TikTokLoginButton",function(){return pe}),n.d(t,"MetamaskLoginButton",function(){return $t});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return q}),n.d(r,"GoogleLoginButton",function(){return j}),n.d(r,"GithubLoginButton",function(){return G}),n.d(r,"TwitterLoginButton",function(){return ue}),n.d(r,"AmazonLoginButton",function(){return Ve}),n.d(r,"InstagramLoginButton",function(){return Ge}),n.d(r,"LinkedInLoginButton",function(){return $e}),n.d(r,"MicrosoftLoginButton",function(){return Be}),n.d(r,"BufferLoginButton",function(){return J}),n.d(r,"TelegramLoginButton",function(){return De}),n.d(r,"AppleLoginButton",function(){return de}),n.d(r,"DiscordLoginButton",function(){return rt}),n.d(r,"OktaLoginButton",function(){return et}),n.d(r,"SlackLoginButton",function(){return it}),n.d(r,"YahooLoginButton",function(){return on}),n.d(r,"createButton",function(){return V}),n.d(r,"createSvgIcon",function(){return W}),n.d(r,"ZaloLoginButton",function(){return zn}),n.d(r,"TikTokLoginButton",function(){return pe}),n.d(r,"MetamaskLoginButton",function(){return $t});var i=n(1),o=n.n(i),a=n(0),s=n.n(a),l=function(Ie){var we=Ie.name,Qe=Ie.size,ot=Ie.format;return o.a.createElement("i",{className:ot(we),style:{fontSize:Qe}})};l.propTypes={format:s.a.func,name:s.a.string.isRequired,size:s.a.oneOfType([s.a.string,s.a.number]).isRequired},l.defaultProps={format:function(Ie){return"demo-icon icon-".concat(Ie)},size:26};var u=l,c=function(Ie){var we=Ie.type,Qe=Ie.size,ot=Ie.format,rn=Ie.color,Wt=rn===void 0?"#FFFFFF":rn;return typeof we=="string"?o.a.createElement(u,{format:ot,name:we,size:Qe}):o.a.createElement(we,{size:Qe,color:Wt})};c.propTypes={format:s.a.func,size:s.a.oneOfType([s.a.number,s.a.string]),type:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),color:s.a.string};var d=c;function p(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function h(Ie){for(var we=1;we"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 Qe,ot=C(Ie);if(we){var rn=C(this).constructor;Qe=Reflect.construct(ot,arguments,rn)}else Qe=ot.apply(this,arguments);return k(this,Qe)}}function k(Ie,we){return!we||b(we)!=="object"&&typeof we!="function"?function(Qe){if(Qe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Qe}(Ie):we}function C(Ie){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(we){return we.__proto__||Object.getPrototypeOf(we)})(Ie)}var w=function(Ie){(function(Wt,mn){if(typeof mn!="function"&&mn!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(mn&&mn.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),mn&&v(Wt,mn)})(rn,Ie);var we,Qe,ot=S(rn);function rn(Wt){var mn;return function(nr,Ue){if(!(nr instanceof Ue))throw new TypeError("Cannot call a class as a function")}(this,rn),(mn=ot.call(this,Wt)).state={focused:!1,hovered:!1},mn.handleMouseEnter=function(){mn.setState({hovered:!0}),typeof mn.props.onMouseEnter=="function"&&mn.props.onMouseEnter()},mn.handleMouseLeave=function(){mn.setState({hovered:!1}),typeof mn.props.onMouseLeave=="function"&&mn.props.onMouseLeave()},mn.handleFocus=function(){mn.setState({focused:!0})},mn.handleBlur=function(){mn.setState({focused:!1})},mn.handleClick=function(nr){typeof mn.props.onClick=="function"&&mn.props.onClick(nr)},mn}return we=rn,(Qe=[{key:"render",value:function(){var Wt=this.props,mn=Wt.activeStyle,nr=Wt.align,Ue=Wt.text,Ce=Wt.children,gt=Ce===void 0?Ue:Ce,Dt=Wt.className,tn=Wt.icon,Mn=Wt.iconFormat,Dn=Wt.iconSize,Kt=Wt.iconColor,bn=Kt===void 0?"#FFFFFF":Kt,Qn=Wt.preventActiveStyles,Yn=Wt.size,ht=Wt.style,Gr=Wt.disabled,En=this.state,An=En.focused,ca=En.hovered,Xp=$(P.button,{activeStyle:Qn?ht:mn,customStyle:ht,active:ca||An,size:Yn});return o.a.createElement("button",O({type:"button",style:Xp,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:Dt},{disabled:Gr}),o.a.createElement("div",{style:P.flex},!E(Dn)&&o.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Dn}},o.a.createElement(d,{type:tn,size:Dn,format:Mn,color:bn})),!E(Dn)&&o.a.createElement("div",{style:P.divider}),o.a.createElement("div",{style:{textAlign:nr,width:"100%"}},gt)))}}])&&y(we.prototype,Qe),rn}(i.Component),E=function(Ie){return Ie==="0"||Ie==="0px"||Ie===0},$=function(Ie,we){var Qe=we.size,ot=we.customStyle,rn=we.active,Wt=we.activeStyle;return h(h(h({},Ie),{},{height:Qe},ot),rn&&Wt)};w.propTypes={activeStyle:s.a.object,align:s.a.oneOf(["left","right","center"]),children:s.a.node,className:s.a.string,icon:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),iconFormat:s.a.func,iconSize:s.a.string,iconColor:s.a.string,onClick:s.a.func,onMouseEnter:s.a.func,onMouseLeave:s.a.func,preventActiveStyles:s.a.bool,size:s.a.string,style:s.a.object,text:s.a.string,disabled:s.a.bool},w.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var P={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 _(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function B(Ie){for(var we=1;we{window.location.href=`${gVe.VITE_API_ADDR}/auth/login/${t}`};return D.jsx(ube,{sx:{height:1},children:D.jsx(cr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:D.jsx(zo,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:D.jsxs(cr,{gap:4,children:[D.jsxs($o,{children:[D.jsxs(cr,{direction:"row",gap:1,children:[D.jsx(bne,{}),D.jsx(dr,{variant:"h6",children:"Login"})]}),D.jsx(dr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),D.jsxs(cr,{gap:2,children:[D.jsxs(qh,{container:!0,spacing:1,alignItems:"center",children:[D.jsx(qh,{item:!0,xs:!0,children:D.jsx(dc,{sx:{width:1}})}),D.jsx(qh,{item:!0,xs:"auto",children:D.jsx(dr,{variant:"body2",color:"text.secondary",children:"Login with"})}),D.jsx(qh,{item:!0,xs:!0,children:D.jsx(dc,{sx:{width:1}})})]}),bVe.map(({SocailLoginComponent:t,provider:n})=>D.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const OVe={accessToken:null},yne=Hk({name:"auth",initialState:OVe,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:P$}=yne.actions,One=e=>e.auth,vVe=yne.reducer;function EVe(){const e=Fp(),t=Pc(),[n]=xG();return I.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(P$(r))},[e,t,n]),D.jsx($o,{})}function SVe(){return D.jsx(fP,{})}const L$=Qt.createContext({isLoading:!0,isLoggedIn:!1}),TVe=e=>{var o;const{children:t}=e,{isLoggedIn:n}=I.useContext(L$),r=Bp(),i=Bl(kP);return n?D.jsx(dP,{to:`/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},wVe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=I.useContext(L$),i=Bp();return r?D.jsx(X1,{open:!0,children:D.jsx(uf,{color:"inherit"})}):n?t:D.jsx(dP,{to:"/",state:{from:i},replace:!0})};var M$={},kVe=Ui;Object.defineProperty(M$,"__esModule",{value:!0});var vne=M$.default=void 0,xVe=kVe(ji()),CVe=D;vne=M$.default=(0,xVe.default)((0,CVe.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 $$={},AVe=Ui;Object.defineProperty($$,"__esModule",{value:!0});var Ene=$$.default=void 0,_Ve=AVe(ji()),RVe=D;Ene=$$.default=(0,_Ve.default)((0,RVe.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 IVe(e){const t=Fp(),n=()=>{t(P$(null)),t(dR(null))};return D.jsx(nP,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:D.jsx(K1,{children:D.jsxs(Sp,{onClick:n,children:[D.jsx(tP,{children:D.jsx(Ene,{fontSize:"small"})}),D.jsx(dp,{children:"Logout"})]})})})}var F$={},DVe=Ui;Object.defineProperty(F$,"__esModule",{value:!0});var Sne=F$.default=void 0,NVe=DVe(ji()),PVe=D;Sne=F$.default=(0,NVe.default)((0,PVe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var B$={},LVe=Ui;Object.defineProperty(B$,"__esModule",{value:!0});var Tne=B$.default=void 0,MVe=LVe(ji()),$Ve=D;Tne=B$.default=(0,MVe.default)((0,$Ve.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class h1 extends I.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 o=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:o.scrollTop;this.props.isReverse?i=a:i=this.calculateOffset(t,a)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=y,c&&c(y)};const O=[n];return i&&(s?a?O.unshift(s):O.push(s):this.defaultLoader&&(a?O.unshift(this.defaultLoader):O.push(this.defaultLoader))),Qt.createElement(r,b,O)}}Ko(h1,"propTypes",{children:Q.node.isRequired,element:Q.node,hasMore:Q.bool,initialLoad:Q.bool,isReverse:Q.bool,loader:Q.node,loadMore:Q.func.isRequired,pageStart:Q.number,ref:Q.func,getScrollParent:Q.func,threshold:Q.number,useCapture:Q.bool,useWindow:Q.bool}),Ko(h1,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var U$={},FVe=Ui;Object.defineProperty(U$,"__esModule",{value:!0});var wne=U$.default=void 0,BVe=FVe(ji()),UVe=D;wne=U$.default=(0,BVe.default)((0,UVe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var j$={},jVe=Ui;Object.defineProperty(j$,"__esModule",{value:!0});var z$=j$.default=void 0,zVe=jVe(ji()),VVe=D;z$=j$.default=(0,zVe.default)((0,VVe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var $O=e=>e.type==="checkbox",rm=e=>e instanceof Date,ra=e=>e==null;const kne=e=>typeof e=="object";var Fi=e=>!ra(e)&&!Array.isArray(e)&&kne(e)&&!rm(e),xne=e=>Fi(e)&&e.target?$O(e.target)?e.target.checked:e.target.value:e,HVe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Cne=(e,t)=>e.has(HVe(t)),WVe=e=>{const t=e.constructor&&e.constructor.prototype;return Fi(t)&&t.hasOwnProperty("isPrototypeOf")},V$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ya(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(!(V$&&(e instanceof Blob||e instanceof FileList))&&(n||Fi(e)))if(t=n?[]:{},!n&&!WVe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ya(e[r]));else return e;return t}var FO=e=>Array.isArray(e)?e.filter(Boolean):[],ui=e=>e===void 0,Ut=(e,t,n)=>{if(!t||!Fi(e))return n;const r=FO(t.split(/[,[\].]+?/)).reduce((i,o)=>ra(i)?i:i[o],e);return ui(r)||r===e?ui(e[t])?n:e[t]:r},vl=e=>typeof e=="boolean";const fw={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Tl={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Zu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ane=Qt.createContext(null),H$=()=>Qt.useContext(Ane),_ne=e=>{const{children:t,...n}=e;return Qt.createElement(Ane.Provider,{value:n},t)};var Rne=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Tl.all&&(t._proxyFormState[a]=!r||Tl.all),n&&(n[a]=!0),e[a]}});return i},Ds=e=>Fi(e)&&!Object.keys(e).length,Ine=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Ds(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Tl.all))},yS=e=>Array.isArray(e)?e:[e],Dne=(e,t,n)=>!e||!t||e===t||yS(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function W$(e){const t=Qt.useRef(e);t.current=e,Qt.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function QVe(e){const t=H$(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=Qt.useState(n._formState),l=Qt.useRef(!0),u=Qt.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Qt.useRef(i);return c.current=i,W$({disabled:r,next:d=>l.current&&Dne(c.current,d.name,o)&&Ine(d,u.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),Qt.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Rne(a,n,u.current,!1)}var Tu=e=>typeof e=="string",Nne=(e,t,n,r,i)=>Tu(e)?(r&&t.watch.add(e),Ut(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ut(n,o))):(r&&(t.watchAll=!0),n);function Pne(e){const t=H$(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=Qt.useRef(r);s.current=r,W$({disabled:o,subject:n._subjects.values,next:c=>{Dne(s.current,c.name,a)&&u(ya(Nne(s.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=Qt.useState(n._getWatch(r,i));return Qt.useEffect(()=>n._removeUnmounted()),l}var Q$=e=>/^\w*$/.test(e),Lne=e=>FO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tr=(e,t,n)=>{let r=-1;const i=Q$(t)?[t]:Lne(t),o=i.length,a=o-1;for(;++r{const c=i._options.shouldUnregister||o,d=(p,h)=>{const m=Ut(i._fields,p);m&&(m._f.mount=h)};if(d(n,!0),c){const p=ya(Ut(i._options.defaultValues,n));Tr(i._defaultValues,n,p),ui(Ut(i._formValues,n))&&Tr(i._formValues,n,p)}return()=>{(a?c&&!i._state.action:c)?i.unregister(n):d(n,!1)}},[n,i,a,o]),Qt.useEffect(()=>{Ut(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Ut(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...vl(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:Qt.useCallback(c=>u.current.onChange({target:{value:xne(c),name:n},type:fw.CHANGE}),[n]),onBlur:Qt.useCallback(()=>u.current.onBlur({target:{value:Ut(i._formValues,n),name:n},type:fw.BLUR}),[n,i]),ref:c=>{const d=Ut(i._fields,n);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ut(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ut(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ut(l.touchedFields,n)},error:{enumerable:!0,get:()=>Ut(l.errors,n)}})}}var YVe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},bV=e=>({isOnSubmit:!e||e===Tl.onSubmit,isOnBlur:e===Tl.onBlur,isOnChange:e===Tl.onChange,isOnAll:e===Tl.all,isOnTouch:e===Tl.onTouched}),yV=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ey=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ut(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)break;if(a.ref&&t(a.ref,a.name)&&!r)break;ey(s,t)}else Fi(s)&&ey(s,t)}}};var GVe=(e,t,n)=>{const r=FO(Ut(e,n));return Tr(r,"root",t[n]),Tr(e,n,r),e},Y$=e=>e.type==="file",Sd=e=>typeof e=="function",pw=e=>{if(!V$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},OS=e=>Tu(e),G$=e=>e.type==="radio",hw=e=>e instanceof RegExp;const OV={value:!1,isValid:!1},vV={value:!0,isValid:!0};var Mne=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&&!ui(e[0].attributes.value)?ui(e[0].value)||e[0].value===""?vV:{value:e[0].value,isValid:!0}:vV:OV}return OV};const EV={isValid:!1,value:null};var $ne=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,EV):EV;function SV(e,t,n="validate"){if(OS(e)||Array.isArray(e)&&e.every(OS)||vl(e)&&!e)return{type:n,message:OS(e)?e:"",ref:t}}var Eh=e=>Fi(e)&&!hw(e)?e:{value:e,message:""},TV=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:b,mount:O,disabled:y}=e._f,v=Ut(t,m);if(!O||y)return{};const S=a?a[0]:o,k=U=>{r&&S.reportValidity&&(S.setCustomValidity(vl(U)?"":U||""),S.reportValidity())},C={},w=G$(o),E=$O(o),$=w||E,P=(b||Y$(o))&&ui(o.value)&&ui(v)||pw(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,_=YVe.bind(null,m,n,C),B=(U,V,z,W=Zu.maxLength,X=Zu.minLength)=>{const q=U?V:z;C[m]={type:U?W:X,message:q,ref:o,..._(U?W:X,q)}};if(i?!Array.isArray(v)||!v.length:s&&(!$&&(P||ra(v))||vl(v)&&!v||E&&!Mne(a).isValid||w&&!$ne(a).isValid)){const{value:U,message:V}=OS(s)?{value:!!s,message:s}:Eh(s);if(U&&(C[m]={type:Zu.required,message:V,ref:S,..._(Zu.required,V)},!n))return k(V),C}if(!P&&(!ra(c)||!ra(d))){let U,V;const z=Eh(d),W=Eh(c);if(!ra(v)&&!isNaN(v)){const X=o.valueAsNumber||v&&+v;ra(z.value)||(U=X>z.value),ra(W.value)||(V=Xnew Date(new Date().toDateString()+" "+j),Y=o.type=="time",Z=o.type=="week";Tu(z.value)&&v&&(U=Y?q(v)>q(z.value):Z?v>z.value:X>new Date(z.value)),Tu(W.value)&&v&&(V=Y?q(v)+U.value,W=!ra(V.value)&&v.length<+V.value;if((z||W)&&(B(z,U.message,V.message),!n))return k(C[m].message),C}if(p&&!P&&Tu(v)){const{value:U,message:V}=Eh(p);if(hw(U)&&!v.match(U)&&(C[m]={type:Zu.pattern,message:V,ref:o,..._(Zu.pattern,V)},!n))return k(V),C}if(h){if(Sd(h)){const U=await h(v,t),V=SV(U,S);if(V&&(C[m]={...V,..._(Zu.validate,V.message)},!n))return k(V.message),C}else if(Fi(h)){let U={};for(const V in h){if(!Ds(U)&&!n)break;const z=SV(await h[V](v,t),S,V);z&&(U={...z,..._(V,z.message)},k(z.message),n&&(C[m]=U))}if(!Ds(U)&&(C[m]={ref:S,...U},!n))return C}}return k(!0),C};function qVe(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 o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},mw=e=>ra(e)||!kne(e);function Zf(e,t){if(mw(e)||mw(t))return e===t;if(rm(e)&&rm(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 o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(rm(o)&&rm(a)||Fi(o)&&Fi(a)||Array.isArray(o)&&Array.isArray(a)?!Zf(o,a):o!==a)return!1}}return!0}var Fne=e=>e.type==="select-multiple",XVe=e=>G$(e)||$O(e),A2=e=>pw(e)&&e.isConnected,Bne=e=>{for(const t in e)if(Sd(e[t]))return!0;return!1};function gw(e,t={}){const n=Array.isArray(e);if(Fi(e)||n)for(const r in e)Array.isArray(e[r])||Fi(e[r])&&!Bne(e[r])?(t[r]=Array.isArray(e[r])?[]:{},gw(e[r],t[r])):ra(e[r])||(t[r]=!0);return t}function Une(e,t,n){const r=Array.isArray(e);if(Fi(e)||r)for(const i in e)Array.isArray(e[i])||Fi(e[i])&&!Bne(e[i])?ui(t)||mw(n[i])?n[i]=Array.isArray(e[i])?gw(e[i],[]):{...gw(e[i])}:Une(e[i],ra(t)?{}:t[i],n[i]):n[i]=!Zf(e[i],t[i]);return n}var _2=(e,t)=>Une(e,t,gw(t)),jne=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ui(e)?e:t?e===""?NaN:e&&+e:n&&Tu(e)?new Date(e):r?r(e):e;function R2(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Y$(t)?t.files:G$(t)?$ne(e.refs).value:Fne(t)?[...t.selectedOptions].map(({value:n})=>n):$O(t)?Mne(e.refs).value:jne(ui(t.value)?e.ref.value:t.value,e)}var KVe=(e,t,n,r)=>{const i={};for(const o of e){const a=Ut(t,o);a&&Tr(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Y0=e=>ui(e)?e:hw(e)?e.source:Fi(e)?hw(e.value)?e.value.source:e.value:e,JVe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function wV(e,t,n){const r=Ut(e,n);if(r||Q$(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ut(t,o),s=Ut(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var eHe=(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,tHe=(e,t)=>!FO(Ut(e,t)).length&&uo(e,t);const nHe={mode:Tl.onSubmit,reValidateMode:Tl.onChange,shouldFocusError:!0};function rHe(e={},t){let n={...nHe,...e},r={submitCount:0,isDirty:!1,isLoading:Sd(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=Fi(n.defaultValues)||Fi(n.values)?ya(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:ya(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:C2(),array:C2(),state:C2()},h=bV(n.mode),m=bV(n.reValidateMode),b=n.criteriaMode===Tl.all,O=re=>ee=>{clearTimeout(c),c=setTimeout(re,ee)},y=async re=>{if(d.isValid||re){const ee=n.resolver?Ds((await P()).errors):await B(i,!0);ee!==r.isValid&&p.state.next({isValid:ee})}},v=re=>d.isValidating&&p.state.next({isValidating:re}),S=(re,ee=[],J,Re,Le=!0,De=!0)=>{if(Re&&J){if(s.action=!0,De&&Array.isArray(Ut(i,re))){const ie=J(Ut(i,re),Re.argA,Re.argB);Le&&Tr(i,re,ie)}if(De&&Array.isArray(Ut(r.errors,re))){const ie=J(Ut(r.errors,re),Re.argA,Re.argB);Le&&Tr(r.errors,re,ie),tHe(r.errors,re)}if(d.touchedFields&&De&&Array.isArray(Ut(r.touchedFields,re))){const ie=J(Ut(r.touchedFields,re),Re.argA,Re.argB);Le&&Tr(r.touchedFields,re,ie)}d.dirtyFields&&(r.dirtyFields=_2(o,a)),p.state.next({name:re,isDirty:V(re,ee),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Tr(a,re,ee)},k=(re,ee)=>{Tr(r.errors,re,ee),p.state.next({errors:r.errors})},C=re=>{r.errors=re,p.state.next({errors:r.errors,isValid:!1})},w=(re,ee,J,Re)=>{const Le=Ut(i,re);if(Le){const De=Ut(a,re,ui(J)?Ut(o,re):J);ui(De)||Re&&Re.defaultChecked||ee?Tr(a,re,ee?De:R2(Le._f)):X(re,De),s.mount&&y()}},E=(re,ee,J,Re,Le)=>{let De=!1,ie=!1;const fe={name:re},de=!!(Ut(i,re)&&Ut(i,re)._f.disabled);if(!J||Re){d.isDirty&&(ie=r.isDirty,r.isDirty=fe.isDirty=V(),De=ie!==fe.isDirty);const Oe=de||Zf(Ut(o,re),ee);ie=!!(!de&&Ut(r.dirtyFields,re)),Oe||de?uo(r.dirtyFields,re):Tr(r.dirtyFields,re,!0),fe.dirtyFields=r.dirtyFields,De=De||d.dirtyFields&&ie!==!Oe}if(J){const Oe=Ut(r.touchedFields,re);Oe||(Tr(r.touchedFields,re,J),fe.touchedFields=r.touchedFields,De=De||d.touchedFields&&Oe!==J)}return De&&Le&&p.state.next(fe),De?fe:{}},$=(re,ee,J,Re)=>{const Le=Ut(r.errors,re),De=d.isValid&&vl(ee)&&r.isValid!==ee;if(e.delayError&&J?(u=O(()=>k(re,J)),u(e.delayError)):(clearTimeout(c),u=null,J?Tr(r.errors,re,J):uo(r.errors,re)),(J?!Zf(Le,J):Le)||!Ds(Re)||De){const ie={...Re,...De&&vl(ee)?{isValid:ee}:{},errors:r.errors,name:re};r={...r,...ie},p.state.next(ie)}v(!1)},P=async re=>n.resolver(a,n.context,KVe(re||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),_=async re=>{const{errors:ee}=await P(re);if(re)for(const J of re){const Re=Ut(ee,J);Re?Tr(r.errors,J,Re):uo(r.errors,J)}else r.errors=ee;return ee},B=async(re,ee,J={valid:!0})=>{for(const Re in re){const Le=re[Re];if(Le){const{_f:De,...ie}=Le;if(De){const fe=l.array.has(De.name),de=await TV(Le,a,b,n.shouldUseNativeValidation&&!ee,fe);if(de[De.name]&&(J.valid=!1,ee))break;!ee&&(Ut(de,De.name)?fe?GVe(r.errors,de,De.name):Tr(r.errors,De.name,de[De.name]):uo(r.errors,De.name))}ie&&await B(ie,ee,J)}}return J.valid},U=()=>{for(const re of l.unMount){const ee=Ut(i,re);ee&&(ee._f.refs?ee._f.refs.every(J=>!A2(J)):!A2(ee._f.ref))&&xe(re)}l.unMount=new Set},V=(re,ee)=>(re&&ee&&Tr(a,re,ee),!Zf(ve(),o)),z=(re,ee,J)=>Nne(re,l,{...s.mount?a:ui(ee)?o:Tu(re)?{[re]:ee}:ee},J,ee),W=re=>FO(Ut(s.mount?a:o,re,e.shouldUnregister?Ut(o,re,[]):[])),X=(re,ee,J={})=>{const Re=Ut(i,re);let Le=ee;if(Re){const De=Re._f;De&&(!De.disabled&&Tr(a,re,jne(ee,De)),Le=pw(De.ref)&&ra(ee)?"":ee,Fne(De.ref)?[...De.ref.options].forEach(ie=>ie.selected=Le.includes(ie.value)):De.refs?$O(De.ref)?De.refs.length>1?De.refs.forEach(ie=>(!ie.defaultChecked||!ie.disabled)&&(ie.checked=Array.isArray(Le)?!!Le.find(fe=>fe===ie.value):Le===ie.value)):De.refs[0]&&(De.refs[0].checked=!!Le):De.refs.forEach(ie=>ie.checked=ie.value===Le):Y$(De.ref)?De.ref.value="":(De.ref.value=Le,De.ref.type||p.values.next({name:re,values:{...a}})))}(J.shouldDirty||J.shouldTouch)&&E(re,Le,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&se(re)},q=(re,ee,J)=>{for(const Re in ee){const Le=ee[Re],De=`${re}.${Re}`,ie=Ut(i,De);(l.array.has(re)||!mw(Le)||ie&&!ie._f)&&!rm(Le)?q(De,Le,J):X(De,Le,J)}},Y=(re,ee,J={})=>{const Re=Ut(i,re),Le=l.array.has(re),De=ya(ee);Tr(a,re,De),Le?(p.array.next({name:re,values:{...a}}),(d.isDirty||d.dirtyFields)&&J.shouldDirty&&p.state.next({name:re,dirtyFields:_2(o,a),isDirty:V(re,De)})):Re&&!Re._f&&!ra(De)?q(re,De,J):X(re,De,J),yV(re,l)&&p.state.next({...r}),p.values.next({name:re,values:{...a}}),!s.mount&&t()},Z=async re=>{const ee=re.target;let J=ee.name,Re=!0;const Le=Ut(i,J),De=()=>ee.type?R2(Le._f):xne(re),ie=fe=>{Re=Number.isNaN(fe)||fe===Ut(a,J,fe)};if(Le){let fe,de;const Oe=De(),Te=re.type===fw.BLUR||re.type===fw.FOCUS_OUT,rt=!JVe(Le._f)&&!n.resolver&&!Ut(r.errors,J)&&!Le._f.deps||eHe(Te,Ut(r.touchedFields,J),r.isSubmitted,m,h),pt=yV(J,l,Te);Tr(a,J,Oe),Te?(Le._f.onBlur&&Le._f.onBlur(re),u&&u(0)):Le._f.onChange&&Le._f.onChange(re);const xt=E(J,Oe,Te,!1),et=!Ds(xt)||pt;if(!Te&&p.values.next({name:J,type:re.type,values:{...a}}),rt)return d.isValid&&y(),et&&p.state.next({name:J,...pt?{}:xt});if(!Te&&pt&&p.state.next({...r}),v(!0),n.resolver){const{errors:vt}=await P([J]);if(ie(Oe),Re){const qe=wV(r.errors,i,J),it=wV(vt,i,qe.name||J);fe=it.error,J=it.name,de=Ds(vt)}}else fe=(await TV(Le,a,b,n.shouldUseNativeValidation))[J],ie(Oe),Re&&(fe?de=!1:d.isValid&&(de=await B(i,!0)));Re&&(Le._f.deps&&se(Le._f.deps),$(J,de,fe,xt))}},j=(re,ee)=>{if(Ut(r.errors,ee)&&re.focus)return re.focus(),1},se=async(re,ee={})=>{let J,Re;const Le=yS(re);if(v(!0),n.resolver){const De=await _(ui(re)?re:Le);J=Ds(De),Re=re?!Le.some(ie=>Ut(De,ie)):J}else re?(Re=(await Promise.all(Le.map(async De=>{const ie=Ut(i,De);return await B(ie&&ie._f?{[De]:ie}:ie)}))).every(Boolean),!(!Re&&!r.isValid)&&y()):Re=J=await B(i);return p.state.next({...!Tu(re)||d.isValid&&J!==r.isValid?{}:{name:re},...n.resolver||!re?{isValid:J}:{},errors:r.errors,isValidating:!1}),ee.shouldFocus&&!Re&&ey(i,j,re?Le:l.mount),Re},ve=re=>{const ee={...o,...s.mount?a:{}};return ui(re)?ee:Tu(re)?Ut(ee,re):re.map(J=>Ut(ee,J))},G=(re,ee)=>({invalid:!!Ut((ee||r).errors,re),isDirty:!!Ut((ee||r).dirtyFields,re),isTouched:!!Ut((ee||r).touchedFields,re),error:Ut((ee||r).errors,re)}),ce=re=>{re&&yS(re).forEach(ee=>uo(r.errors,ee)),p.state.next({errors:re?r.errors:{}})},ge=(re,ee,J)=>{const Re=(Ut(i,re,{_f:{}})._f||{}).ref;Tr(r.errors,re,{...ee,ref:Re}),p.state.next({name:re,errors:r.errors,isValid:!1}),J&&J.shouldFocus&&Re&&Re.focus&&Re.focus()},ue=(re,ee)=>Sd(re)?p.values.subscribe({next:J=>re(z(void 0,ee),J)}):z(re,ee,!0),xe=(re,ee={})=>{for(const J of re?yS(re):l.mount)l.mount.delete(J),l.array.delete(J),ee.keepValue||(uo(i,J),uo(a,J)),!ee.keepError&&uo(r.errors,J),!ee.keepDirty&&uo(r.dirtyFields,J),!ee.keepTouched&&uo(r.touchedFields,J),!n.shouldUnregister&&!ee.keepDefaultValue&&uo(o,J);p.values.next({values:{...a}}),p.state.next({...r,...ee.keepDirty?{isDirty:V()}:{}}),!ee.keepIsValid&&y()},Ne=({disabled:re,name:ee,field:J,fields:Re,value:Le})=>{if(vl(re)){const De=re?void 0:ui(Le)?R2(J?J._f:Ut(Re,ee)._f):Le;Tr(a,ee,De),E(ee,De,!1,!1,!0)}},Ve=(re,ee={})=>{let J=Ut(i,re);const Re=vl(ee.disabled);return Tr(i,re,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:re}},name:re,mount:!0,...ee}}),l.mount.add(re),J?Ne({field:J,disabled:ee.disabled,name:re,value:ee.value}):w(re,!0,ee.value),{...Re?{disabled:ee.disabled}:{},...n.progressive?{required:!!ee.required,min:Y0(ee.min),max:Y0(ee.max),minLength:Y0(ee.minLength),maxLength:Y0(ee.maxLength),pattern:Y0(ee.pattern)}:{},name:re,onChange:Z,onBlur:Z,ref:Le=>{if(Le){Ve(re,ee),J=Ut(i,re);const De=ui(Le.value)&&Le.querySelectorAll&&Le.querySelectorAll("input,select,textarea")[0]||Le,ie=XVe(De),fe=J._f.refs||[];if(ie?fe.find(de=>de===De):De===J._f.ref)return;Tr(i,re,{_f:{...J._f,...ie?{refs:[...fe.filter(A2),De,...Array.isArray(Ut(o,re))?[{}]:[]],ref:{type:De.type,name:re}}:{ref:De}}}),w(re,!1,void 0,De)}else J=Ut(i,re,{}),J._f&&(J._f.mount=!1),(n.shouldUnregister||ee.shouldUnregister)&&!(Cne(l.array,re)&&s.action)&&l.unMount.add(re)}}},Je=()=>n.shouldFocusError&&ey(i,j,l.mount),Me=re=>{vl(re)&&(p.state.next({disabled:re}),ey(i,(ee,J)=>{let Re=re;const Le=Ut(i,J);Le&&vl(Le._f.disabled)&&(Re||(Re=Le._f.disabled)),ee.disabled=Re},0,!1))},Ge=(re,ee)=>async J=>{J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let Re=ya(a);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:Le,values:De}=await P();r.errors=Le,Re=De}else await B(i);uo(r.errors,"root"),Ds(r.errors)?(p.state.next({errors:{}}),await re(Re,J)):(ee&&await ee({...r.errors},J),Je(),setTimeout(Je)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ds(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ye=(re,ee={})=>{Ut(i,re)&&(ui(ee.defaultValue)?Y(re,ya(Ut(o,re))):(Y(re,ee.defaultValue),Tr(o,re,ya(ee.defaultValue))),ee.keepTouched||uo(r.touchedFields,re),ee.keepDirty||(uo(r.dirtyFields,re),r.isDirty=ee.defaultValue?V(re,ya(Ut(o,re))):V()),ee.keepError||(uo(r.errors,re),d.isValid&&y()),p.state.next({...r}))},ze=(re,ee={})=>{const J=re?ya(re):o,Re=ya(J),Le=re&&!Ds(re)?Re:o;if(ee.keepDefaultValues||(o=J),!ee.keepValues){if(ee.keepDirtyValues)for(const De of l.mount)Ut(r.dirtyFields,De)?Tr(Le,De,Ut(a,De)):Y(De,Ut(Le,De));else{if(V$&&ui(re))for(const De of l.mount){const ie=Ut(i,De);if(ie&&ie._f){const fe=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(pw(fe)){const de=fe.closest("form");if(de){de.reset();break}}}}i={}}a=e.shouldUnregister?ee.keepDefaultValues?ya(o):{}:ya(Le),p.array.next({values:{...Le}}),p.values.next({values:{...Le}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!ee.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:ee.keepSubmitCount?r.submitCount:0,isDirty:ee.keepDirty?r.isDirty:!!(ee.keepDefaultValues&&!Zf(re,o)),isSubmitted:ee.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ee.keepDirtyValues?r.dirtyFields:ee.keepDefaultValues&&re?_2(o,re):{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(re,ee)=>ze(Sd(re)?re(a):re,ee);return{control:{register:Ve,unregister:xe,getFieldState:G,handleSubmit:Ge,setError:ge,_executeSchema:P,_getWatch:z,_getDirty:V,_updateValid:y,_removeUnmounted:U,_updateFieldArray:S,_updateDisabledField:Ne,_getFieldArray:W,_reset:ze,_resetDefaultValues:()=>Sd(n.defaultValues)&&n.defaultValues().then(re=>{$e(re,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:re=>{r={...r,...re}},_disableForm:Me,_subjects:p,_proxyFormState:d,_setErrors:C,get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(re){s=re},get _defaultValues(){return o},get _names(){return l},set _names(re){l=re},get _formState(){return r},set _formState(re){r=re},get _options(){return n},set _options(re){n={...n,...re}}},trigger:se,register:Ve,handleSubmit:Ge,watch:ue,setValue:Y,getValues:ve,reset:$e,resetField:ye,clearErrors:ce,unregister:xe,setError:ge,setFocus:(re,ee={})=>{const J=Ut(i,re),Re=J&&J._f;if(Re){const Le=Re.refs?Re.refs[0]:Re.ref;Le.focus&&(Le.focus(),ee.shouldSelect&&Le.select())}},getFieldState:G}}function iHe(e={}){const t=Qt.useRef(),n=Qt.useRef(),[r,i]=Qt.useState({isDirty:!1,isValidating:!1,isLoading:Sd(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Sd(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...rHe(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,W$({subject:o._subjects.state,next:a=>{Ine(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),Qt.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Qt.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),Qt.useEffect(()=>{e.values&&!Zf(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),Qt.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Qt.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Rne(r,o),t.current}const gu=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),q$=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(e!=null)o=e;else if(i.includes(t))o=t;else if(i.length>0)o=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:o}},ty=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=a.startOfDay(a.dateWithTimezone(void 0,s));n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,i)&&(u=i,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,i)&&(c=null),u){if(!o(u))return u;u=a.addDays(u,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},oHe=(e,t)=>t==null||!e.isValid(t)?null:t,jo=(e,t,n)=>t==null||!e.isValid(t)?n:t,aHe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Z$=(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},oD=(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},X$=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),xl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},sHe=["year","month","day"],Tm=e=>sHe.includes(e),m1=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return gu(n,["year"])?i.year:gu(n,["month"])?i.month:gu(n,["day"])?i.dayOfMonth:gu(n,["month","year"])?`${i.month} ${i.year}`:gu(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},lHe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},zne=["hours","minutes","seconds"],Og=e=>zne.includes(e),Kc=e=>zne.includes(e)||e==="meridiem",uHe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,g1=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,cHe=(e,t,n,r)=>{const i=g1(r.getHours(e),t,n);return r.setHours(e,i)},kV=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),BO=(e,t)=>(n,r)=>e?t.isAfter(n,r):kV(n,t)>kV(r,t),bw=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return gu(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:gu(n,["minutes"])?i.minutes:gu(n,["seconds"])?i.seconds:gu(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:gu(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}`},El={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},dHe=e=>Math.max(...e.map(t=>{var n;return(n=El[t.type])!=null?n:1})),G0=(e,t,n)=>{if(t===El.year)return e.startOfYear(n);if(t===El.month)return e.startOfMonth(n);if(t===El.day)return e.startOfDay(n);let r=n;return t{var o;let a=i?i():G0(t,n,X$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=G0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=G0(t,n,e.maxDate));const s=BO((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=G0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:oD(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=G0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:oD(t,a,e.maxTime))),a},Vne=(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}},pHe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ux=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},Hne=(e,t,n,r)=>{switch(n){case"month":return Z$(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return Ux(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(o=>e.formatByString(o,r))}default:return[]}},Wne=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const a=e.setDate(r.longestMonth,n);return e.formatByString(a,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?Wne(e,o,i.maxLength):o},hHe=(e,t,n,r,i,o,a)=>{const s=pHe(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const h=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),m=v=>Qne(e,t,v,h,n),b=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let y=parseInt(n.value,10)+s*b;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?y=h.minimum:y=h.maximum}return y%b!==0&&((s<0||l)&&(y+=b-(b+y)%b),(s>0||u)&&(y-=y%b)),y>h.maximum?m(h.minimum+(y-h.maximum-1)%(h.maximum-h.minimum+1)):y{const h=Hne(e,t,n.type,n.format);if(h.length===0)return n.value;if(c)return s>0||l?h[0]:h[h.length-1];const b=(h.indexOf(n.value)+h.length+s)%h.length;return h[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():p()},K$=(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},im=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Yne=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let o=0;o{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}},xV=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Gne=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,qne=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return Gne(e,t,i)?e.formatByString(e.setYear(o,1),i)==="0001":e.formatByString(e.setYear(o,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(o),i).length>1;case"day":return e.formatByString(e.startOfMonth(o),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),i).length>1;case"hours":return e.formatByString(e.setHours(o,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error("Invalid section type")}},gHe=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n},CV=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=S=>{if(S==="")return null;const k=Vne(e,S),C=qne(e,t,k.contentType,k.type,S),w=a?C:k.contentType==="digit",E=i!=null&&e.isValid(i);let $=E?e.formatByString(i,S):"",P=null;if(w)if(C)P=$===""?e.formatByString(c,S).length:$.length;else{if(k.maxLength==null)throw new Error(`MUI: The token ${S} should have a 'maxDigitNumber' property on it's adapter`);P=k.maxLength,E&&($=Wne(e,$,P))}return u.push(L({},k,{format:S,maxLength:P,value:$,placeholder:mHe(e,t,n,k,S),hasLeadingZeros:C,hasLeadingZerosInFormat:C,hasLeadingZerosInInput:w,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,h=r,m=e.expandFormat(r);for(;m!==h;)if(h=m,m=e.expandFormat(h),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 b=m,O=gHe(e,b),y=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,k)=>k.length-S.length).join("|")})`,"g");let v="";for(let S=0;SP.start<=S&&P.end>=S),C=b[S],w=k!=null,E=`${v}${b.slice(S)}`,$=y.test(E);!w&&C.match(/([A-Za-z]+)/)&&$?(v=E.slice(0,y.lastIndex),S+=y.lastIndex-1):w&&(k==null?void 0:k.start)===S||(k==null?void 0:k.end)===S||(d(v),v="",u.length===0?l+=C:u[u.length-1].endSeparator+=C)}return d(v),u.map(S=>{const k=C=>{let w=C;return s&&w!==null&&w.includes(" ")&&(w=`⁩${w}⁦`),o==="spacious"&&["/",".","-"].includes(w)&&(w=` ${w} `),w};return S.startSeparator=k(S.startSeparator),S.endSeparator=k(S.endSeparator),S})},bHe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=K$(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},OHe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=Z$(e,n).reduce((s,l)=>{const u=e.getDaysInMonth(l);return u>s.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:Gne(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):o,longestMonth:a}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const u=Ux(e,t,s).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},vHe=(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 o=Ux(e,t,n.format),a=e.formatByString(r,n.format),s=o.indexOf(a),u=o.indexOf(n.value)-s;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const o=e.getHours(r)<12,a=e.getHours(i);return o&&a>=12?e.addHours(i,-12):!o&&a<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}},AV={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},_V=(e,t,n,r,i,o)=>[...r].sort((a,s)=>AV[a.type]-AV[s.type]).reduce((a,s)=>!o||s.modified?vHe(e,t,s,n,a):a,i),EHe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,SHe=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,d=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=o&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=o;l-=1)i[l]=s,r[s]=l,s-=1;o=a+1}return e.forEach((l,u)=>{const c=i[u],d=c===0?null:r[c-1],p=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},THe=["value","referenceDate"],Bi={emptyValue:null,getTodayValue:X$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ye(e,THe);return t!=null&&r.utils.isValid(t)?t:n??fHe(r)},cleanValue:oHe,areValuesEqual:aHe,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)},J$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:Yne(i(t),r),getValueStrFromSections:yHe,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)},wHe=["localeText"],aD=I.createContext(null),Zne=function(t){var n;const{localeText:r}=t,i=Ye(t,wHe),{utils:o,localeText:a}=(n=I.useContext(aD))!=null?n:{utils:void 0,localeText:void 0},s=mt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:p,localeText:h}=s,m=I.useMemo(()=>L({},h,a,r),[h,a,r]),b=I.useMemo(()=>{if(!u)return o||null;const v=new u({locale:p,formats:c,instance:d});if(!v.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 v},[u,p,c,d,o]),O=I.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),y=I.useMemo(()=>({utils:b,defaultDates:O,localeText:m}),[O,b,m]);return D.jsx(aD.Provider,{value:y,children:l})},kHe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:L({},e)}}}}),Xne={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"},xHe=Xne;kHe(Xne);const Wl=()=>{const e=I.useContext(aD);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(` +`&&G()}function dt(){for(;rje[Z];)G()}function Be(de){de===void 0&&(de=!1),dt();for(var Oe=[fe(de)];j(",");)G(),dt(),Oe.push(fe(de));return{type:"Selector",rules:Oe}}function re(){Ve("["),dt();var de;if(j("|")){ue(p,"Namespaces are not enabled."),G();var Oe=ze();ue(Oe,"Expected attribute name."),de={type:"Attribute",name:Oe,namespace:{type:"NoNamespace"}}}else if(j("*")){ue(p,"Namespaces are not enabled."),ue(h,"Wildcard namespace is not enabled."),G(),Ve("|");var Te=ze();ue(Te,"Expected attribute name."),de={type:"Attribute",name:Te,namespace:{type:"WildcardNamespace"}}}else{var rt=ze();if(ue(rt,"Expected attribute name."),de={type:"Attribute",name:rt},j("|")){var pt=Y;if(G(),W0(Z)){ue(p,"Namespaces are not enabled.");var xt=ze();ue(xt,"Expected attribute name."),de={type:"Attribute",name:xt,namespace:{type:"NamespaceName",name:rt}}}else ve(pt)}}if(ue(de.name,"Expected attribute name."),dt(),De()&&!o)return de;if(j("]"))G();else{if(de.operator=Je(v),ue(de.operator,"Expected a valid attribute selector operator."),dt(),xe(),ije[Z])de.value={type:"String",value:ye(Z)};else if(m&&j("$")){G();var et=ze();ue(et,"Expected substitute name."),de.value={type:"Substitution",name:et}}else{var vt=ze();ue(vt,"Expected attribute value."),de.value={type:"String",value:vt}}if(dt(),De()&&!o)return de;if(!j("]")){var qe=ze();if(ue(qe,"Expected end of attribute selector."),de.caseSensitivityModifier=qe,ue(C,"Attribute case sensitivity modifiers are not enabled."),ue(k||S[de.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),dt(),De()&&!o)return de}Ve("]")}return de}function ee(){for(var de="";v2[Z];)de+=ce();return ue(de!=="","Formula parse error."),parseInt(de)}var J=function(){return j("-")||j("+")||v2[Z]};function Re(){if(j("e")||j("o")){var de=ze();if(de==="even")return dt(),[2,0];if(de==="odd")return dt(),[2,1]}var Oe=null,Te=1;if(j("-")&&(G(),Te=-1),J()&&(j("+")&&G(),Oe=ee(),!j("\\")&&!j("n")))return[0,Oe*Te];Oe===null&&(Oe=1),Oe*=Te;var rt;if(j("\\")?(G(),Q0(Z)?rt=Ge():rt=ce()):rt=ce(),ue(rt==="n",'Formula parse error: expected "n".'),dt(),j("+")||j("-")){var pt=j("+")?1:-1;return G(),dt(),[Oe,pt*ee()]}else return[Oe,0]}function Le(de,Oe,Te){var rt;if(j("(")){if(G(),dt(),m&&j("$")){G();var pt=ze();ue(pt,"Expected substitute name."),rt={type:"Substitution",name:pt}}else if(Te.type==="String")rt={type:"String",value:$e()},ue(rt.value,"Expected ".concat(Oe," argument value."));else if(Te.type==="Selector")rt=Be(!0);else if(Te.type==="Formula"){var xt=Re(),et=xt[0],vt=xt[1];if(rt={type:"Formula",a:et,b:vt},Te.ofSelector&&(dt(),j("o")||j("\\"))){var qe=ze();ue(qe==="of","Formula of selector parse error."),dt(),rt={type:"FormulaOfSelector",a:et,b:vt,selector:fe()}}}else return ge("Invalid ".concat(Oe," signature."));if(dt(),De()&&!o)return rt;Ve(")")}else ue(Te.optional,"Argument is required for ".concat(Oe,' "').concat(de,'".'));return rt}function Ne(){if(j("*"))return ue(u,"Wildcard tag name is not enabled."),G(),{type:"WildcardTag"};if(W0(Z)){ue(l,"Tag names are not enabled.");var de=ze();return ue(de,"Expected tag name."),{type:"TagName",name:de}}else return ge("Expected tag name.")}function ie(){if(j("*")){var de=Y;if(G(),!j("|")||(G(),!se()))return ve(de),Ne();ue(p,"Namespaces are not enabled."),ue(h,"Wildcard namespace is not enabled.");var Oe=Ne();return Oe.namespace={type:"WildcardNamespace"},Oe}else if(j("|")){ue(p,"Namespaces are not enabled."),G();var Oe=Ne();return Oe.namespace={type:"NoNamespace"},Oe}else if(W0(Z)){var Te=ze();if(ue(Te,"Expected tag name."),!j("|"))return ue(l,"Tag names are not enabled."),{type:"TagName",name:Te};var de=Y;if(G(),!se())return ve(de),{type:"TagName",name:Te};ue(p,"Namespaces are not enabled.");var Oe=Ne();return Oe.namespace={type:"NamespaceName",name:Te},Oe}else return ge("Expected tag name.")}function fe(de){var Oe,Te;de===void 0&&(de=!1);var rt={type:"Rule",items:[]};if(de){var pt=Je(b);pt&&(rt.combinator=pt,dt())}for(;Y0)return(t.commaSeparated?E3:T3)(e)}else return String(e)}const mje=[];function gje(e,t){return(t.properties.className||mje).includes(e.name)}function bje(e,t){return t.properties.id===e.name}function yje(e,t){return e.name===t.tagName}function Oje(e,t){return function(n,r){let i=iV(n,"tag");const o=iV(r??"*","range"),a=[];let s=-1;for(;++s=oV&&e.charCodeAt(t)<=Tje;)u=u*10+(e.charCodeAt(t)-oV),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?aV.trueFunc:o=>o>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?o=>o>=n&&o%r===i:o=>o<=n&&o%r===i}function sV(e){return xje(wje(e))}const Cje=sV.default||sV,Aje=P3("name",{handlers:{"any-link":_je,blank:Rje,checked:Ije,dir:Nje,disabled:Gte,empty:Dje,enabled:Pje,"first-child":Lje,"first-of-type":Mje,has:$je,is:qte,lang:Bje,"last-child":Uje,"last-of-type":jje,not:zje,"nth-child":Vje,"nth-last-child":Hje,"nth-last-of-type":Wje,"nth-of-type":Qje,"only-child":Yje,"only-of-type":Gje,optional:qje,"read-only":Zje,"read-write":Zte,required:Xte,root:Xje,scope:Kje},invalid:Fje,unknown:Jje});function _je(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Dp(t,"href")}function Hu(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Rje(e,t){return!Kte(t,n);function n(r){return r.type==="element"||r.type==="text"&&!HJ(r)}}function Ije(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Dp(t,"checked")):t.tagName==="option"?Dp(t,"selected"):!1}function Nje(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function Gte(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")&&Dp(t,"disabled")}function Dje(e,t){return!Kte(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Pje(e,t){return!Gte(e,t)}function Lje(e,t,n,r,i){return Hu(i,e),i.elementIndex===0}function Mje(e,t,n,r,i){return Hu(i,e),i.typeIndex===0}function Bx(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=Cje(n.a+"n+"+n.b),e._cachedFn=t}return t}function $je(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return A$(o,{type:"root",children:t.children}),o.results.length>0}function Fje(){}function qte(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return A$(o,t),o.results[0]===t}function Bje(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&vje(i.language,l1(e.argument.value)).length>0}function Uje(e,t,n,r,i){return Hu(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function jje(e,t,n,r,i){return Hu(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function zje(e,t,n,r,i){return!qte(e,t,n,r,i)}function Vje(e,t,n,r,i){const o=Bx(e);return Hu(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function Hje(e,t,n,r,i){const o=Bx(e);return Hu(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function Wje(e,t,n,r,i){const o=Bx(e);return Hu(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function Qje(e,t,n,r,i){const o=Bx(e);return Hu(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function Yje(e,t,n,r,i){return Hu(i,e),i.elementCount===1}function Gje(e,t,n,r,i){return Hu(i,e),i.typeCount===1}function qje(e,t){return!Xte(e,t)}function Zje(e,t,n,r,i){return!Zte(e,t,n,r,i)}function Zte(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Dp(t,"readOnly")&&!Dp(t,"disabled"):!!i.editableOrEditingHost}function Xte(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Dp(t,"required")}function Xje(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 Kje(e,t,n,r,i){return i.scopeElements.includes(t)}function Kte(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";T2(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?T2(o,"descendant",s):s.combinator==="~"&&T2(o,"generalSibling",s)}return o}function bS(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:tze}function lV(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 Jte(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=fje(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==o&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===o)),a=rze(e,bS(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&nze(e,a,n,o),s(),a}function ize(e,t,n){const r=oze(e,t,n);return A$(r,t||void 0),r.results}function oze(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:lje(e),schema:n==="svg"?ju:jp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const ene=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=ene(n.children))}),t),aze=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=ize(t,r);i&&i.length>0&&Da(r,i,(o,a,s)=>{n(o,a,s)});return}Da(r,(i,o,a)=>{n(i,o,a)})}}},sze=aze,lze=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),uze=(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]}},tne=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?tne(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},uV=({value:e=""})=>{const t=lze(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},cV=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},cze=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Da(r,"element",(i,o,a)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&a&&Array.isArray(a.children)&&a.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof o=="number"){const l=uze(a.children,o);if(l){const u=uV(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=cV(s.properties,u,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)&&a&&Array.isArray(a.children)&&typeof o=="number"){const s=tne(a.children,o,"",n);if(s){const l=uV(s);Object.keys(l).length>0&&(i.properties=cV(i.properties,l,t))}}})}},dze=cze;var fze=function(t){return n=>{Da(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=L({},r.properties,{"data-meta":String(r.data.meta)}))})}},pze=function(t){return n=>{Da(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 hze=/[\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,mze=Object.hasOwnProperty;class gze{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=bze(t,n===!0);const o=i;for(;mze.call(r.occurrences,i);)r.occurrences[o]++,i=o+"-"+r.occurrences[o];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function bze(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(hze,"").replace(/ /g,"-"))}function nne(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 yze={},dV=new gze;function Oze(e){const n=(e||yze).prefix||"";return function(r){dV.reset(),Da(r,"element",function(i){nne(i)&&!i.properties.id&&(i.properties.id=n+dV.slug(nm(i)))})}}const rne=function(e){if(e==null)return Sze;if(typeof e=="string")return Eze(e);if(typeof e=="object")return vze(e);if(typeof e=="function")return _$(e);throw new Error("Expected function, string, or array as `test`")};function vze(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Da(r,(i,o,a)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return s=!0,!1;if(u===n)return s=!1,!1}return!s})}})}},Cze=xze;var Aze={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 _ze(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 Rze=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=L({class:"anchor"},o.properties),o.children=[Aze])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=ene(n.children);n.children.push(_ze(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},Ize=[Oze,kze,Cze];const Nze=Qt.forwardRef((e,t)=>{var n,r=[fze,$te,pze,[Q9e,{ignoreMissing:!0}],...Ize,[sze,{rewrite:Rze((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[dze,{properties:"attr"}],...e.rehypePlugins||[]];return N.jsx(f9e,L({},e,{rehypePlugins:r,ref:t}))});function hV(){const e=v3(),t=Bl(Zk),[n,r]=I.useState("");return I.useEffect(()=>{var o,a;if(!t.doc)return;r(((a=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:a.toString())||"");const i=t.doc.subscribe("$.content",()=>{var s;r((s=t.doc)==null?void 0:s.getRoot().content.toString())});return()=>{i(),r("")}},[t.doc]),t!=null&&t.doc?N.jsx(Nze,{source:n,wrapperElement:{"data-color-mode":e}}):N.jsx(cr,{direction:"row",justifyContent:"center",children:N.jsx(uf,{sx:{mt:2}})})}function one(){const e=Bl(Zk),t=kCe();return!e.doc||!e.client?N.jsx(X1,{open:!0,children:N.jsx(uf,{color:"inherit"})}):N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&N.jsx(yCe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>N.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[N.jsx("div",{id:"left-block",style:{width:n},children:N.jsx(Pj,{})}),N.jsx(zo,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),N.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:N.jsx($o,{sx:{p:4},height:"100%",children:N.jsx(hV,{})})})]})}),e.mode==="read"&&N.jsx($o,{sx:{p:4,overflow:"auto"},height:"100%",children:N.jsx(hV,{})}),e.mode==="edit"&&N.jsx(Pj,{})]})}var ane={exports:{}},Dze={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]},sne={exports:{}},Pze=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")},Lze=Pze,Mze=Array.prototype.concat,$ze=Array.prototype.slice,mV=sne.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+")"};us.to.keyword=function(e){return une[e.slice(0,3)]};function Fd(e,t,n){return Math.min(Math.max(t,e),n)}function EE(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Bze=ane.exports,Uze={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 p1=Uze,cne={};for(const e of Object.keys(p1))cne[p1[e]]=e;const nn={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 dne=nn;for(const e of Object.keys(nn)){if(!("channels"in nn[e]))throw new Error("missing channels property: "+e);if(!("labels"in nn[e]))throw new Error("missing channel labels property: "+e);if(nn[e].labels.length!==nn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=nn[e];delete nn[e].channels,delete nn[e].labels,Object.defineProperty(nn[e],"channels",{value:t}),Object.defineProperty(nn[e],"labels",{value:n})}nn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(i+o)/2;return o===i?l=0:u<=.5?l=a/(o+i):l=a/(2-o-i),[s,l*100,u*100]};nn.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),d=function(p){return(u-p)/6/c+1/2};return c===0?(i=0,o=0):(o=c/u,t=d(a),n=d(s),r=d(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};nn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=nn.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]};nn.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),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function jze(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}nn.rgb.keyword=function(e){const t=cne[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(p1)){const o=p1[i],a=jze(e,o);a.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,o=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};nn.rgb.lab=function(e){const t=nn.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 o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]};nn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(n===0)return a=r*255,[a,a,a];r<.5?i=r*(1+n):i=r+n-r*n;const s=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,l[u]=a*255;return l};nn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=r===0?2*i/(o+i):2*n/(r+n);return[t,s*100,a*100]};nn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};nn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};nn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,a&1&&(o=1-o);const l=n+o*(s-n);let u,c,d;switch(a){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l;break}return[u*255,c*255,d*255]};nn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[o*255,a*255,s*255]};nn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=t*3.2406+n*-1.5372+r*-.4986,o=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};nn.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,o=500*(t-n),a=200*(n-r);return[i,o,a]};nn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};nn.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 a=Math.sqrt(n*n+r*r);return[t,a,i]};nn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]};nn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?nn.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(a+=60),a};nn.hsv.ansi16=function(e){return nn.rgb.ansi16(nn.hsv.rgb(e),e[2])};nn.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)};nn.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,o=(t>>2&1)*n*255;return[r,i,o]};nn.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}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]};nn.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};nn.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(s=>s+s).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};nn.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),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return a<1?s=o/(1-a):s=0,a<=0?l=0:i===t?l=(n-r)/a%6:i===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};nn.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]};nn.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]};nn.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],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};nn.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]};nn.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]};nn.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]};nn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]};nn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};nn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};nn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};nn.gray.hsl=function(e){return[0,0,e[0]]};nn.gray.hsv=nn.gray.hsl;nn.gray.hwb=function(e){return[0,100,e[0]]};nn.gray.cmyk=function(e){return[0,0,0,e[0]]};nn.gray.lab=function(e){return[e[0],0,0]};nn.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};nn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const cw=dne;function zze(){const e={},t=Object.keys(cw);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Zze(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 o=i.length,a=0;a{Dh[e]={},Object.defineProperty(Dh[e],"channels",{value:tN[e].channels}),Object.defineProperty(Dh[e],"labels",{value:tN[e].labels});const t=Yze(e);Object.keys(t).forEach(r=>{const i=t[r];Dh[e][r]=Zze(i),Dh[e][r].raw=qze(i)})});var Xze=Dh;const Ph=Bze,os=Xze,fne=["keyword","gray","hex"],nN={};for(const e of Object.keys(os))nN[[...os[e].labels].sort().join("")]=e;const dw={};function Zi(e,t){if(!(this instanceof Zi))return new Zi(e,t);if(t&&t in fne&&(t=null),t&&!(t in os))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 Zi)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ph.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=os[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=os[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=rN(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 o=i.sort().join("");if(!(o in nN))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=nN[o];const{labels:a}=os[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ri("hsl",1,Ai(100)),lightness:ri("hsl",2,Ai(100)),saturationv:ri("hsv",1,Ai(100)),value:ri("hsv",2,Ai(100)),chroma:ri("hcg",1,Ai(100)),gray:ri("hcg",2,Ai(100)),white:ri("hwb",1,Ai(100)),wblack:ri("hwb",2,Ai(100)),cyan:ri("cmyk",0,Ai(100)),magenta:ri("cmyk",1,Ai(100)),yellow:ri("cmyk",2,Ai(100)),black:ri("cmyk",3,Ai(100)),x:ri("xyz",0,Ai(95.047)),y:ri("xyz",1,Ai(100)),z:ri("xyz",2,Ai(108.833)),l:ri("lab",0,Ai(100)),a:ri("lab",1),b:ri("lab",2),keyword(e){return e!==void 0?new Zi(e):os[this.model].keyword(this.color)},hex(e){return e!==void 0?new Zi(e):Ph.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Zi(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Ph.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 Zi.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,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return Zi.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(os)){if(fne.includes(e))continue;const{channels:t}=os[e];Zi.prototype[e]=function(...n){return this.model===e?new Zi(this):n.length>0?new Zi(n,e):new Zi([...eVe(os[this.model][e].raw(this.color)),this.valpha],e)},Zi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=rN(n,t)),new Zi(r,e)}}function Kze(e,t){return Number(e.toFixed(t))}function Jze(e){return function(t){return Kze(t,e)}}function ri(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(dw[r]||(dw[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 Ai(e){return function(t){return Math.max(0,Math.min(e,t))}}function eVe(e){return Array.isArray(e)?e:[e]}function rN(e,t){for(let n=0;nU.length;){var z=o(E);n!==null&&(E.seed=n),U.push(z)}return E.count=B,U}return $=a(E),P=s($,E),_=l($,P,E),u([$,P,_],E)};function a(E){if(i.length>0){var $=w(E.hue),P=m($),_=($[1]-$[0])/i.length,B=parseInt((P-$[0])/_);i[B]===!0?B=(B+2)%i.length:i[B]=!0;var U=($[0]+B*_)%359,V=($[0]+(B+1)*_)%359;return $=[U,V],P=m($),P<0&&(P=360+P),P}else{var $=d(E.hue);return P=m($),P<0&&(P=360+P),P}}function s(E,$){if($.hue==="monochrome")return 0;if($.luminosity==="random")return m([0,100]);var P=p(E),_=P[0],B=P[1];switch($.luminosity){case"bright":_=55;break;case"dark":_=B-10;break;case"light":B=55;break}return m([_,B])}function l(E,$,P){var _=c(E,$),B=100;switch(P.luminosity){case"dark":B=_+20;break;case"light":_=(B+_)/2;break;case"random":_=0,B=100;break}return m([_,B])}function u(E,$){switch($.format){case"hsvArray":return E;case"hslArray":return k(E);case"hsl":var P=k(E);return"hsl("+P[0]+", "+P[1]+"%, "+P[2]+"%)";case"hsla":var _=k(E),V=$.alpha||Math.random();return"hsla("+_[0]+", "+_[1]+"%, "+_[2]+"%, "+V+")";case"rgbArray":return v(E);case"rgb":var B=v(E);return"rgb("+B.join(", ")+")";case"rgba":var U=v(E),V=$.alpha||Math.random();return"rgba("+U.join(", ")+", "+V+")";default:return b(E)}}function c(E,$){for(var P=h(E).lowerBounds,_=0;_=B&&$<=V){var W=(z-U)/(V-B),X=U-W*B;return W*$+X}}return 0}function d(E){if(typeof parseInt(E)=="number"){var $=parseInt(E);if($<360&&$>0)return[$,$]}if(typeof E=="string"){if(r[E]){var P=r[E];if(P.hueRange)return P.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var _=S(E)[0];return[_,_]}}return[0,360]}function p(E){return h(E).saturationRange}function h(E){E>=334&&E<=360&&(E-=360);for(var $ in r){var P=r[$];if(P.hueRange&&E>=P.hueRange[0]&&E<=P.hueRange[1])return r[$]}return"Color not found"}function m(E){if(n===null){var $=.618033988749895,P=Math.random();return P+=$,P%=1,Math.floor(E[0]+P*(E[1]+1-E[0]))}else{var _=E[1]||1,B=E[0]||0;n=(n*9301+49297)%233280;var U=n/233280;return Math.floor(B+U*(_-B))}}function b(E){var $=v(E);function P(B){var U=B.toString(16);return U.length==1?"0"+U:U}var _="#"+P($[0])+P($[1])+P($[2]);return _}function O(E,$,P){var _=P[0][0],B=P[P.length-1][0],U=P[P.length-1][1],V=P[0][1];r[E]={hueRange:$,lowerBounds:P,saturationRange:[_,B],brightnessRange:[U,V]}}function y(){O("monochrome",null,[[0,0],[100,0]]),O("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),O("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),O("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),O("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),O("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),O("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),O("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function v(E){var $=E[0];$===0&&($=1),$===360&&($=359),$=$/360;var P=E[1]/100,_=E[2]/100,B=Math.floor($*6),U=$*6-B,V=_*(1-P),z=_*(1-U*P),W=_*(1-(1-U)*P),X=256,q=256,Y=256;switch(B){case 0:X=_,q=W,Y=V;break;case 1:X=z,q=_,Y=V;break;case 2:X=V,q=_,Y=W;break;case 3:X=V,q=z,Y=_;break;case 4:X=W,q=V,Y=_;break;case 5:X=_,q=V,Y=z;break}var Z=[Math.floor(X*255),Math.floor(q*255),Math.floor(Y*255)];return Z}function S(E){E=E.replace(/^#/,""),E=E.length===3?E.replace(/(.)/g,"$1$1"):E;var $=parseInt(E.substr(0,2),16)/255,P=parseInt(E.substr(2,2),16)/255,_=parseInt(E.substr(4,2),16)/255,B=Math.max($,P,_),U=B-Math.min($,P,_),V=B?U/B:0;switch(B){case $:return[60*((P-_)/U%6)||0,V,B];case P:return[60*((_-$)/U+2)||0,V,B];case _:return[60*(($-P)/U+4)||0,V,B]}}function k(E){var $=E[0],P=E[1]/100,_=E[2]/100,B=(2-P)*_;return[$,Math.round(P*_/(B<1?B:2-B)*1e4)/100,B/2*100]}function C(E){for(var $=0,P=0;P!==E.length&&!($>=Number.MAX_SAFE_INTEGER);P++)$+=E.charCodeAt(P);return $}function w(E){if(isNaN(E)){if(typeof E=="string"){if(r[E]){var P=r[E];if(P.hueRange)return P.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var _=S(E)[0];return h(_).hueRange}}}else{var $=parseInt(E);if($<360&&$>0)return h(E).hueRange}return[0,360]}return o})})(iN,iN.exports);var rVe=iN.exports;const iVe=tf(rVe),pne=(e,t)=>{const[n,r]=I.useState(null),[i,o]=I.useState(null),a=I.useCallback(async()=>{!n||!i||(await(n==null?void 0:n.detach(i)),await(n==null?void 0:n.deactivate()))},[n,i]);return I.useEffect(()=>{if(!e||!t||i||n)return;(async()=>{const l=new II.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"});await l.activate();const u=new II.Document(e);await l.attach(u,{initialPresence:{name:t,color:nVe(iVe()).fade(.15).toString(),selection:null}}),r(l),o(u)})()},[t,e,i,n]),{client:n,doc:i,cleanUpYorkieDocument:a}};function oVe(){var l;const e=Fp(),t=cf(),n=Bl(kP),{data:r}=lO(t.workspaceSlug),{data:i}=Cq(r==null?void 0:r.id,t.documentId),{doc:o,client:a,cleanUpYorkieDocument:s}=pne(i==null?void 0:i.yorkieDocumentId,(l=n.data)==null?void 0:l.nickname);return I.useEffect(()=>{if(!(!o||!a))return e(vT(o)),e(ET(a)),()=>{s(),e(vT(null)),e(ET(null))}},[s,e,a,o]),N.jsx($o,{height:"calc(100% - 64px)",children:N.jsx(one,{})})}var I$={},hne={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})(hne);var Ui=hne.exports,x2={};const aVe=rae(wfe);var gV;function ji(){return gV||(gV=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=aVe}(x2)),x2}var sVe=Ui;Object.defineProperty(I$,"__esModule",{value:!0});var mne=I$.default=void 0,lVe=sVe(ji()),uVe=N;mne=I$.default=(0,lVe.default)((0,uVe.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 N$={},cVe=Ui;Object.defineProperty(N$,"__esModule",{value:!0});var gne=N$.default=void 0,dVe=cVe(ji()),fVe=N;gne=N$.default=(0,dVe.default)((0,fVe.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 D$(){const e=Fp(),t=v3(),n=()=>{e(oke(t=="light"?"dark":"light"))};return N.jsx(eo,{onClick:n,color:"inherit",children:t==="light"?N.jsx(gne,{}):N.jsx(mne,{})})}function bne(e){return N.jsx(Hd,{...e,children:N.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:[N.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"}),N.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"}),N.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 pVe(){const e=Pc(),t=()=>{e("/login")};return N.jsx(fY,{position:"static",sx:{zIndex:100},children:N.jsx(rG,{children:N.jsxs(cr,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[N.jsx(bne,{}),N.jsxs(cr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx(wl,{color:"inherit",onClick:t,children:"Login"}),N.jsx(D$,{})]})]})})})}function hVe(){return N.jsxs(cr,{sx:{flexGrow:1,height:"100vh"},children:[N.jsx(pVe,{}),N.jsx(fP,{})]})}var mVe=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,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},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=I},function(e,t,n){var r=n(3);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function a(u,c,d,p,h,m){if(m!==r){var b=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 b.name="Invariant Violation",b}}function s(){return a}a.isRequired=a;var l={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,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 q}),n.d(t,"GoogleLoginButton",function(){return j}),n.d(t,"GithubLoginButton",function(){return G}),n.d(t,"TwitterLoginButton",function(){return ue}),n.d(t,"AmazonLoginButton",function(){return Ve}),n.d(t,"InstagramLoginButton",function(){return Ge}),n.d(t,"LinkedInLoginButton",function(){return $e}),n.d(t,"MicrosoftLoginButton",function(){return Be}),n.d(t,"BufferLoginButton",function(){return J}),n.d(t,"TelegramLoginButton",function(){return Ne}),n.d(t,"AppleLoginButton",function(){return de}),n.d(t,"DiscordLoginButton",function(){return rt}),n.d(t,"OktaLoginButton",function(){return et}),n.d(t,"SlackLoginButton",function(){return it}),n.d(t,"YahooLoginButton",function(){return on}),n.d(t,"createButton",function(){return V}),n.d(t,"createSvgIcon",function(){return W}),n.d(t,"ZaloLoginButton",function(){return zn}),n.d(t,"TikTokLoginButton",function(){return pe}),n.d(t,"MetamaskLoginButton",function(){return $t});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return q}),n.d(r,"GoogleLoginButton",function(){return j}),n.d(r,"GithubLoginButton",function(){return G}),n.d(r,"TwitterLoginButton",function(){return ue}),n.d(r,"AmazonLoginButton",function(){return Ve}),n.d(r,"InstagramLoginButton",function(){return Ge}),n.d(r,"LinkedInLoginButton",function(){return $e}),n.d(r,"MicrosoftLoginButton",function(){return Be}),n.d(r,"BufferLoginButton",function(){return J}),n.d(r,"TelegramLoginButton",function(){return Ne}),n.d(r,"AppleLoginButton",function(){return de}),n.d(r,"DiscordLoginButton",function(){return rt}),n.d(r,"OktaLoginButton",function(){return et}),n.d(r,"SlackLoginButton",function(){return it}),n.d(r,"YahooLoginButton",function(){return on}),n.d(r,"createButton",function(){return V}),n.d(r,"createSvgIcon",function(){return W}),n.d(r,"ZaloLoginButton",function(){return zn}),n.d(r,"TikTokLoginButton",function(){return pe}),n.d(r,"MetamaskLoginButton",function(){return $t});var i=n(1),o=n.n(i),a=n(0),s=n.n(a),l=function(Ie){var we=Ie.name,Qe=Ie.size,ot=Ie.format;return o.a.createElement("i",{className:ot(we),style:{fontSize:Qe}})};l.propTypes={format:s.a.func,name:s.a.string.isRequired,size:s.a.oneOfType([s.a.string,s.a.number]).isRequired},l.defaultProps={format:function(Ie){return"demo-icon icon-".concat(Ie)},size:26};var u=l,c=function(Ie){var we=Ie.type,Qe=Ie.size,ot=Ie.format,rn=Ie.color,Wt=rn===void 0?"#FFFFFF":rn;return typeof we=="string"?o.a.createElement(u,{format:ot,name:we,size:Qe}):o.a.createElement(we,{size:Qe,color:Wt})};c.propTypes={format:s.a.func,size:s.a.oneOfType([s.a.number,s.a.string]),type:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),color:s.a.string};var d=c;function p(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function h(Ie){for(var we=1;we"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 Qe,ot=C(Ie);if(we){var rn=C(this).constructor;Qe=Reflect.construct(ot,arguments,rn)}else Qe=ot.apply(this,arguments);return k(this,Qe)}}function k(Ie,we){return!we||b(we)!=="object"&&typeof we!="function"?function(Qe){if(Qe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Qe}(Ie):we}function C(Ie){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(we){return we.__proto__||Object.getPrototypeOf(we)})(Ie)}var w=function(Ie){(function(Wt,mn){if(typeof mn!="function"&&mn!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(mn&&mn.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),mn&&v(Wt,mn)})(rn,Ie);var we,Qe,ot=S(rn);function rn(Wt){var mn;return function(nr,Ue){if(!(nr instanceof Ue))throw new TypeError("Cannot call a class as a function")}(this,rn),(mn=ot.call(this,Wt)).state={focused:!1,hovered:!1},mn.handleMouseEnter=function(){mn.setState({hovered:!0}),typeof mn.props.onMouseEnter=="function"&&mn.props.onMouseEnter()},mn.handleMouseLeave=function(){mn.setState({hovered:!1}),typeof mn.props.onMouseLeave=="function"&&mn.props.onMouseLeave()},mn.handleFocus=function(){mn.setState({focused:!0})},mn.handleBlur=function(){mn.setState({focused:!1})},mn.handleClick=function(nr){typeof mn.props.onClick=="function"&&mn.props.onClick(nr)},mn}return we=rn,(Qe=[{key:"render",value:function(){var Wt=this.props,mn=Wt.activeStyle,nr=Wt.align,Ue=Wt.text,Ce=Wt.children,gt=Ce===void 0?Ue:Ce,Nt=Wt.className,tn=Wt.icon,Mn=Wt.iconFormat,Nn=Wt.iconSize,Kt=Wt.iconColor,bn=Kt===void 0?"#FFFFFF":Kt,Qn=Wt.preventActiveStyles,Yn=Wt.size,ht=Wt.style,Gr=Wt.disabled,En=this.state,An=En.focused,ca=En.hovered,Xp=$(P.button,{activeStyle:Qn?ht:mn,customStyle:ht,active:ca||An,size:Yn});return o.a.createElement("button",O({type:"button",style:Xp,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:Nt},{disabled:Gr}),o.a.createElement("div",{style:P.flex},!E(Nn)&&o.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Nn}},o.a.createElement(d,{type:tn,size:Nn,format:Mn,color:bn})),!E(Nn)&&o.a.createElement("div",{style:P.divider}),o.a.createElement("div",{style:{textAlign:nr,width:"100%"}},gt)))}}])&&y(we.prototype,Qe),rn}(i.Component),E=function(Ie){return Ie==="0"||Ie==="0px"||Ie===0},$=function(Ie,we){var Qe=we.size,ot=we.customStyle,rn=we.active,Wt=we.activeStyle;return h(h(h({},Ie),{},{height:Qe},ot),rn&&Wt)};w.propTypes={activeStyle:s.a.object,align:s.a.oneOf(["left","right","center"]),children:s.a.node,className:s.a.string,icon:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),iconFormat:s.a.func,iconSize:s.a.string,iconColor:s.a.string,onClick:s.a.func,onMouseEnter:s.a.func,onMouseLeave:s.a.func,preventActiveStyles:s.a.bool,size:s.a.string,style:s.a.object,text:s.a.string,disabled:s.a.bool},w.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var P={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 _(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function B(Ie){for(var we=1;we{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return N.jsx(ube,{sx:{height:1},children:N.jsx(cr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:N.jsx(zo,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:N.jsxs(cr,{gap:4,children:[N.jsxs($o,{children:[N.jsxs(cr,{direction:"row",gap:1,children:[N.jsx(bne,{}),N.jsx(dr,{variant:"h6",children:"Login"})]}),N.jsx(dr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),N.jsxs(cr,{gap:2,children:[N.jsxs(qh,{container:!0,spacing:1,alignItems:"center",children:[N.jsx(qh,{item:!0,xs:!0,children:N.jsx(dc,{sx:{width:1}})}),N.jsx(qh,{item:!0,xs:"auto",children:N.jsx(dr,{variant:"body2",color:"text.secondary",children:"Login with"})}),N.jsx(qh,{item:!0,xs:!0,children:N.jsx(dc,{sx:{width:1}})})]}),gVe.map(({SocailLoginComponent:t,provider:n})=>N.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const yVe={accessToken:null},yne=Hk({name:"auth",initialState:yVe,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:P$}=yne.actions,One=e=>e.auth,OVe=yne.reducer;function vVe(){const e=Fp(),t=Pc(),[n]=xG();return I.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(P$(r))},[e,t,n]),N.jsx($o,{})}function EVe(){return N.jsx(fP,{})}const L$=Qt.createContext({isLoading:!0,isLoggedIn:!1}),SVe=e=>{var o;const{children:t}=e,{isLoggedIn:n}=I.useContext(L$),r=Bp(),i=Bl(kP);return n?N.jsx(dP,{to:`/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},TVe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=I.useContext(L$),i=Bp();return r?N.jsx(X1,{open:!0,children:N.jsx(uf,{color:"inherit"})}):n?t:N.jsx(dP,{to:"/",state:{from:i},replace:!0})};var M$={},wVe=Ui;Object.defineProperty(M$,"__esModule",{value:!0});var vne=M$.default=void 0,kVe=wVe(ji()),xVe=N;vne=M$.default=(0,kVe.default)((0,xVe.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 $$={},CVe=Ui;Object.defineProperty($$,"__esModule",{value:!0});var Ene=$$.default=void 0,AVe=CVe(ji()),_Ve=N;Ene=$$.default=(0,AVe.default)((0,_Ve.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 RVe(e){const t=Fp(),n=()=>{t(P$(null)),t(dR(null))};return N.jsx(nP,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:N.jsx(K1,{children:N.jsxs(Sp,{onClick:n,children:[N.jsx(tP,{children:N.jsx(Ene,{fontSize:"small"})}),N.jsx(dp,{children:"Logout"})]})})})}var F$={},IVe=Ui;Object.defineProperty(F$,"__esModule",{value:!0});var Sne=F$.default=void 0,NVe=IVe(ji()),DVe=N;Sne=F$.default=(0,NVe.default)((0,DVe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var B$={},PVe=Ui;Object.defineProperty(B$,"__esModule",{value:!0});var Tne=B$.default=void 0,LVe=PVe(ji()),MVe=N;Tne=B$.default=(0,LVe.default)((0,MVe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class h1 extends I.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 o=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:o.scrollTop;this.props.isReverse?i=a:i=this.calculateOffset(t,a)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=y,c&&c(y)};const O=[n];return i&&(s?a?O.unshift(s):O.push(s):this.defaultLoader&&(a?O.unshift(this.defaultLoader):O.push(this.defaultLoader))),Qt.createElement(r,b,O)}}Ko(h1,"propTypes",{children:Q.node.isRequired,element:Q.node,hasMore:Q.bool,initialLoad:Q.bool,isReverse:Q.bool,loader:Q.node,loadMore:Q.func.isRequired,pageStart:Q.number,ref:Q.func,getScrollParent:Q.func,threshold:Q.number,useCapture:Q.bool,useWindow:Q.bool}),Ko(h1,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var U$={},$Ve=Ui;Object.defineProperty(U$,"__esModule",{value:!0});var wne=U$.default=void 0,FVe=$Ve(ji()),BVe=N;wne=U$.default=(0,FVe.default)((0,BVe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var j$={},UVe=Ui;Object.defineProperty(j$,"__esModule",{value:!0});var z$=j$.default=void 0,jVe=UVe(ji()),zVe=N;z$=j$.default=(0,jVe.default)((0,zVe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var $O=e=>e.type==="checkbox",rm=e=>e instanceof Date,ra=e=>e==null;const kne=e=>typeof e=="object";var Fi=e=>!ra(e)&&!Array.isArray(e)&&kne(e)&&!rm(e),xne=e=>Fi(e)&&e.target?$O(e.target)?e.target.checked:e.target.value:e,VVe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Cne=(e,t)=>e.has(VVe(t)),HVe=e=>{const t=e.constructor&&e.constructor.prototype;return Fi(t)&&t.hasOwnProperty("isPrototypeOf")},V$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ya(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(!(V$&&(e instanceof Blob||e instanceof FileList))&&(n||Fi(e)))if(t=n?[]:{},!n&&!HVe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ya(e[r]));else return e;return t}var FO=e=>Array.isArray(e)?e.filter(Boolean):[],ui=e=>e===void 0,Ut=(e,t,n)=>{if(!t||!Fi(e))return n;const r=FO(t.split(/[,[\].]+?/)).reduce((i,o)=>ra(i)?i:i[o],e);return ui(r)||r===e?ui(e[t])?n:e[t]:r},vl=e=>typeof e=="boolean";const fw={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Tl={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Zu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ane=Qt.createContext(null),H$=()=>Qt.useContext(Ane),_ne=e=>{const{children:t,...n}=e;return Qt.createElement(Ane.Provider,{value:n},t)};var Rne=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Tl.all&&(t._proxyFormState[a]=!r||Tl.all),n&&(n[a]=!0),e[a]}});return i},Ns=e=>Fi(e)&&!Object.keys(e).length,Ine=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Ns(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Tl.all))},yS=e=>Array.isArray(e)?e:[e],Nne=(e,t,n)=>!e||!t||e===t||yS(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function W$(e){const t=Qt.useRef(e);t.current=e,Qt.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function WVe(e){const t=H$(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=Qt.useState(n._formState),l=Qt.useRef(!0),u=Qt.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Qt.useRef(i);return c.current=i,W$({disabled:r,next:d=>l.current&&Nne(c.current,d.name,o)&&Ine(d,u.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),Qt.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Rne(a,n,u.current,!1)}var Tu=e=>typeof e=="string",Dne=(e,t,n,r,i)=>Tu(e)?(r&&t.watch.add(e),Ut(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ut(n,o))):(r&&(t.watchAll=!0),n);function Pne(e){const t=H$(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=Qt.useRef(r);s.current=r,W$({disabled:o,subject:n._subjects.values,next:c=>{Nne(s.current,c.name,a)&&u(ya(Dne(s.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=Qt.useState(n._getWatch(r,i));return Qt.useEffect(()=>n._removeUnmounted()),l}var Q$=e=>/^\w*$/.test(e),Lne=e=>FO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tr=(e,t,n)=>{let r=-1;const i=Q$(t)?[t]:Lne(t),o=i.length,a=o-1;for(;++r{const c=i._options.shouldUnregister||o,d=(p,h)=>{const m=Ut(i._fields,p);m&&(m._f.mount=h)};if(d(n,!0),c){const p=ya(Ut(i._options.defaultValues,n));Tr(i._defaultValues,n,p),ui(Ut(i._formValues,n))&&Tr(i._formValues,n,p)}return()=>{(a?c&&!i._state.action:c)?i.unregister(n):d(n,!1)}},[n,i,a,o]),Qt.useEffect(()=>{Ut(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Ut(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...vl(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:Qt.useCallback(c=>u.current.onChange({target:{value:xne(c),name:n},type:fw.CHANGE}),[n]),onBlur:Qt.useCallback(()=>u.current.onBlur({target:{value:Ut(i._formValues,n),name:n},type:fw.BLUR}),[n,i]),ref:c=>{const d=Ut(i._fields,n);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ut(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ut(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ut(l.touchedFields,n)},error:{enumerable:!0,get:()=>Ut(l.errors,n)}})}}var QVe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},bV=e=>({isOnSubmit:!e||e===Tl.onSubmit,isOnBlur:e===Tl.onBlur,isOnChange:e===Tl.onChange,isOnAll:e===Tl.all,isOnTouch:e===Tl.onTouched}),yV=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ey=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ut(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)break;if(a.ref&&t(a.ref,a.name)&&!r)break;ey(s,t)}else Fi(s)&&ey(s,t)}}};var YVe=(e,t,n)=>{const r=FO(Ut(e,n));return Tr(r,"root",t[n]),Tr(e,n,r),e},Y$=e=>e.type==="file",Sd=e=>typeof e=="function",pw=e=>{if(!V$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},OS=e=>Tu(e),G$=e=>e.type==="radio",hw=e=>e instanceof RegExp;const OV={value:!1,isValid:!1},vV={value:!0,isValid:!0};var Mne=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&&!ui(e[0].attributes.value)?ui(e[0].value)||e[0].value===""?vV:{value:e[0].value,isValid:!0}:vV:OV}return OV};const EV={isValid:!1,value:null};var $ne=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,EV):EV;function SV(e,t,n="validate"){if(OS(e)||Array.isArray(e)&&e.every(OS)||vl(e)&&!e)return{type:n,message:OS(e)?e:"",ref:t}}var Eh=e=>Fi(e)&&!hw(e)?e:{value:e,message:""},TV=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:b,mount:O,disabled:y}=e._f,v=Ut(t,m);if(!O||y)return{};const S=a?a[0]:o,k=U=>{r&&S.reportValidity&&(S.setCustomValidity(vl(U)?"":U||""),S.reportValidity())},C={},w=G$(o),E=$O(o),$=w||E,P=(b||Y$(o))&&ui(o.value)&&ui(v)||pw(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,_=QVe.bind(null,m,n,C),B=(U,V,z,W=Zu.maxLength,X=Zu.minLength)=>{const q=U?V:z;C[m]={type:U?W:X,message:q,ref:o,..._(U?W:X,q)}};if(i?!Array.isArray(v)||!v.length:s&&(!$&&(P||ra(v))||vl(v)&&!v||E&&!Mne(a).isValid||w&&!$ne(a).isValid)){const{value:U,message:V}=OS(s)?{value:!!s,message:s}:Eh(s);if(U&&(C[m]={type:Zu.required,message:V,ref:S,..._(Zu.required,V)},!n))return k(V),C}if(!P&&(!ra(c)||!ra(d))){let U,V;const z=Eh(d),W=Eh(c);if(!ra(v)&&!isNaN(v)){const X=o.valueAsNumber||v&&+v;ra(z.value)||(U=X>z.value),ra(W.value)||(V=Xnew Date(new Date().toDateString()+" "+j),Y=o.type=="time",Z=o.type=="week";Tu(z.value)&&v&&(U=Y?q(v)>q(z.value):Z?v>z.value:X>new Date(z.value)),Tu(W.value)&&v&&(V=Y?q(v)+U.value,W=!ra(V.value)&&v.length<+V.value;if((z||W)&&(B(z,U.message,V.message),!n))return k(C[m].message),C}if(p&&!P&&Tu(v)){const{value:U,message:V}=Eh(p);if(hw(U)&&!v.match(U)&&(C[m]={type:Zu.pattern,message:V,ref:o,..._(Zu.pattern,V)},!n))return k(V),C}if(h){if(Sd(h)){const U=await h(v,t),V=SV(U,S);if(V&&(C[m]={...V,..._(Zu.validate,V.message)},!n))return k(V.message),C}else if(Fi(h)){let U={};for(const V in h){if(!Ns(U)&&!n)break;const z=SV(await h[V](v,t),S,V);z&&(U={...z,..._(V,z.message)},k(z.message),n&&(C[m]=U))}if(!Ns(U)&&(C[m]={ref:S,...U},!n))return C}}return k(!0),C};function GVe(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 o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},mw=e=>ra(e)||!kne(e);function Zf(e,t){if(mw(e)||mw(t))return e===t;if(rm(e)&&rm(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 o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(rm(o)&&rm(a)||Fi(o)&&Fi(a)||Array.isArray(o)&&Array.isArray(a)?!Zf(o,a):o!==a)return!1}}return!0}var Fne=e=>e.type==="select-multiple",ZVe=e=>G$(e)||$O(e),A2=e=>pw(e)&&e.isConnected,Bne=e=>{for(const t in e)if(Sd(e[t]))return!0;return!1};function gw(e,t={}){const n=Array.isArray(e);if(Fi(e)||n)for(const r in e)Array.isArray(e[r])||Fi(e[r])&&!Bne(e[r])?(t[r]=Array.isArray(e[r])?[]:{},gw(e[r],t[r])):ra(e[r])||(t[r]=!0);return t}function Une(e,t,n){const r=Array.isArray(e);if(Fi(e)||r)for(const i in e)Array.isArray(e[i])||Fi(e[i])&&!Bne(e[i])?ui(t)||mw(n[i])?n[i]=Array.isArray(e[i])?gw(e[i],[]):{...gw(e[i])}:Une(e[i],ra(t)?{}:t[i],n[i]):n[i]=!Zf(e[i],t[i]);return n}var _2=(e,t)=>Une(e,t,gw(t)),jne=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ui(e)?e:t?e===""?NaN:e&&+e:n&&Tu(e)?new Date(e):r?r(e):e;function R2(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Y$(t)?t.files:G$(t)?$ne(e.refs).value:Fne(t)?[...t.selectedOptions].map(({value:n})=>n):$O(t)?Mne(e.refs).value:jne(ui(t.value)?e.ref.value:t.value,e)}var XVe=(e,t,n,r)=>{const i={};for(const o of e){const a=Ut(t,o);a&&Tr(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Y0=e=>ui(e)?e:hw(e)?e.source:Fi(e)?hw(e.value)?e.value.source:e.value:e,KVe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function wV(e,t,n){const r=Ut(e,n);if(r||Q$(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ut(t,o),s=Ut(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var JVe=(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,eHe=(e,t)=>!FO(Ut(e,t)).length&&uo(e,t);const tHe={mode:Tl.onSubmit,reValidateMode:Tl.onChange,shouldFocusError:!0};function nHe(e={},t){let n={...tHe,...e},r={submitCount:0,isDirty:!1,isLoading:Sd(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=Fi(n.defaultValues)||Fi(n.values)?ya(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:ya(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:C2(),array:C2(),state:C2()},h=bV(n.mode),m=bV(n.reValidateMode),b=n.criteriaMode===Tl.all,O=re=>ee=>{clearTimeout(c),c=setTimeout(re,ee)},y=async re=>{if(d.isValid||re){const ee=n.resolver?Ns((await P()).errors):await B(i,!0);ee!==r.isValid&&p.state.next({isValid:ee})}},v=re=>d.isValidating&&p.state.next({isValidating:re}),S=(re,ee=[],J,Re,Le=!0,Ne=!0)=>{if(Re&&J){if(s.action=!0,Ne&&Array.isArray(Ut(i,re))){const ie=J(Ut(i,re),Re.argA,Re.argB);Le&&Tr(i,re,ie)}if(Ne&&Array.isArray(Ut(r.errors,re))){const ie=J(Ut(r.errors,re),Re.argA,Re.argB);Le&&Tr(r.errors,re,ie),eHe(r.errors,re)}if(d.touchedFields&&Ne&&Array.isArray(Ut(r.touchedFields,re))){const ie=J(Ut(r.touchedFields,re),Re.argA,Re.argB);Le&&Tr(r.touchedFields,re,ie)}d.dirtyFields&&(r.dirtyFields=_2(o,a)),p.state.next({name:re,isDirty:V(re,ee),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Tr(a,re,ee)},k=(re,ee)=>{Tr(r.errors,re,ee),p.state.next({errors:r.errors})},C=re=>{r.errors=re,p.state.next({errors:r.errors,isValid:!1})},w=(re,ee,J,Re)=>{const Le=Ut(i,re);if(Le){const Ne=Ut(a,re,ui(J)?Ut(o,re):J);ui(Ne)||Re&&Re.defaultChecked||ee?Tr(a,re,ee?Ne:R2(Le._f)):X(re,Ne),s.mount&&y()}},E=(re,ee,J,Re,Le)=>{let Ne=!1,ie=!1;const fe={name:re},de=!!(Ut(i,re)&&Ut(i,re)._f.disabled);if(!J||Re){d.isDirty&&(ie=r.isDirty,r.isDirty=fe.isDirty=V(),Ne=ie!==fe.isDirty);const Oe=de||Zf(Ut(o,re),ee);ie=!!(!de&&Ut(r.dirtyFields,re)),Oe||de?uo(r.dirtyFields,re):Tr(r.dirtyFields,re,!0),fe.dirtyFields=r.dirtyFields,Ne=Ne||d.dirtyFields&&ie!==!Oe}if(J){const Oe=Ut(r.touchedFields,re);Oe||(Tr(r.touchedFields,re,J),fe.touchedFields=r.touchedFields,Ne=Ne||d.touchedFields&&Oe!==J)}return Ne&&Le&&p.state.next(fe),Ne?fe:{}},$=(re,ee,J,Re)=>{const Le=Ut(r.errors,re),Ne=d.isValid&&vl(ee)&&r.isValid!==ee;if(e.delayError&&J?(u=O(()=>k(re,J)),u(e.delayError)):(clearTimeout(c),u=null,J?Tr(r.errors,re,J):uo(r.errors,re)),(J?!Zf(Le,J):Le)||!Ns(Re)||Ne){const ie={...Re,...Ne&&vl(ee)?{isValid:ee}:{},errors:r.errors,name:re};r={...r,...ie},p.state.next(ie)}v(!1)},P=async re=>n.resolver(a,n.context,XVe(re||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),_=async re=>{const{errors:ee}=await P(re);if(re)for(const J of re){const Re=Ut(ee,J);Re?Tr(r.errors,J,Re):uo(r.errors,J)}else r.errors=ee;return ee},B=async(re,ee,J={valid:!0})=>{for(const Re in re){const Le=re[Re];if(Le){const{_f:Ne,...ie}=Le;if(Ne){const fe=l.array.has(Ne.name),de=await TV(Le,a,b,n.shouldUseNativeValidation&&!ee,fe);if(de[Ne.name]&&(J.valid=!1,ee))break;!ee&&(Ut(de,Ne.name)?fe?YVe(r.errors,de,Ne.name):Tr(r.errors,Ne.name,de[Ne.name]):uo(r.errors,Ne.name))}ie&&await B(ie,ee,J)}}return J.valid},U=()=>{for(const re of l.unMount){const ee=Ut(i,re);ee&&(ee._f.refs?ee._f.refs.every(J=>!A2(J)):!A2(ee._f.ref))&&xe(re)}l.unMount=new Set},V=(re,ee)=>(re&&ee&&Tr(a,re,ee),!Zf(ve(),o)),z=(re,ee,J)=>Dne(re,l,{...s.mount?a:ui(ee)?o:Tu(re)?{[re]:ee}:ee},J,ee),W=re=>FO(Ut(s.mount?a:o,re,e.shouldUnregister?Ut(o,re,[]):[])),X=(re,ee,J={})=>{const Re=Ut(i,re);let Le=ee;if(Re){const Ne=Re._f;Ne&&(!Ne.disabled&&Tr(a,re,jne(ee,Ne)),Le=pw(Ne.ref)&&ra(ee)?"":ee,Fne(Ne.ref)?[...Ne.ref.options].forEach(ie=>ie.selected=Le.includes(ie.value)):Ne.refs?$O(Ne.ref)?Ne.refs.length>1?Ne.refs.forEach(ie=>(!ie.defaultChecked||!ie.disabled)&&(ie.checked=Array.isArray(Le)?!!Le.find(fe=>fe===ie.value):Le===ie.value)):Ne.refs[0]&&(Ne.refs[0].checked=!!Le):Ne.refs.forEach(ie=>ie.checked=ie.value===Le):Y$(Ne.ref)?Ne.ref.value="":(Ne.ref.value=Le,Ne.ref.type||p.values.next({name:re,values:{...a}})))}(J.shouldDirty||J.shouldTouch)&&E(re,Le,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&se(re)},q=(re,ee,J)=>{for(const Re in ee){const Le=ee[Re],Ne=`${re}.${Re}`,ie=Ut(i,Ne);(l.array.has(re)||!mw(Le)||ie&&!ie._f)&&!rm(Le)?q(Ne,Le,J):X(Ne,Le,J)}},Y=(re,ee,J={})=>{const Re=Ut(i,re),Le=l.array.has(re),Ne=ya(ee);Tr(a,re,Ne),Le?(p.array.next({name:re,values:{...a}}),(d.isDirty||d.dirtyFields)&&J.shouldDirty&&p.state.next({name:re,dirtyFields:_2(o,a),isDirty:V(re,Ne)})):Re&&!Re._f&&!ra(Ne)?q(re,Ne,J):X(re,Ne,J),yV(re,l)&&p.state.next({...r}),p.values.next({name:re,values:{...a}}),!s.mount&&t()},Z=async re=>{const ee=re.target;let J=ee.name,Re=!0;const Le=Ut(i,J),Ne=()=>ee.type?R2(Le._f):xne(re),ie=fe=>{Re=Number.isNaN(fe)||fe===Ut(a,J,fe)};if(Le){let fe,de;const Oe=Ne(),Te=re.type===fw.BLUR||re.type===fw.FOCUS_OUT,rt=!KVe(Le._f)&&!n.resolver&&!Ut(r.errors,J)&&!Le._f.deps||JVe(Te,Ut(r.touchedFields,J),r.isSubmitted,m,h),pt=yV(J,l,Te);Tr(a,J,Oe),Te?(Le._f.onBlur&&Le._f.onBlur(re),u&&u(0)):Le._f.onChange&&Le._f.onChange(re);const xt=E(J,Oe,Te,!1),et=!Ns(xt)||pt;if(!Te&&p.values.next({name:J,type:re.type,values:{...a}}),rt)return d.isValid&&y(),et&&p.state.next({name:J,...pt?{}:xt});if(!Te&&pt&&p.state.next({...r}),v(!0),n.resolver){const{errors:vt}=await P([J]);if(ie(Oe),Re){const qe=wV(r.errors,i,J),it=wV(vt,i,qe.name||J);fe=it.error,J=it.name,de=Ns(vt)}}else fe=(await TV(Le,a,b,n.shouldUseNativeValidation))[J],ie(Oe),Re&&(fe?de=!1:d.isValid&&(de=await B(i,!0)));Re&&(Le._f.deps&&se(Le._f.deps),$(J,de,fe,xt))}},j=(re,ee)=>{if(Ut(r.errors,ee)&&re.focus)return re.focus(),1},se=async(re,ee={})=>{let J,Re;const Le=yS(re);if(v(!0),n.resolver){const Ne=await _(ui(re)?re:Le);J=Ns(Ne),Re=re?!Le.some(ie=>Ut(Ne,ie)):J}else re?(Re=(await Promise.all(Le.map(async Ne=>{const ie=Ut(i,Ne);return await B(ie&&ie._f?{[Ne]:ie}:ie)}))).every(Boolean),!(!Re&&!r.isValid)&&y()):Re=J=await B(i);return p.state.next({...!Tu(re)||d.isValid&&J!==r.isValid?{}:{name:re},...n.resolver||!re?{isValid:J}:{},errors:r.errors,isValidating:!1}),ee.shouldFocus&&!Re&&ey(i,j,re?Le:l.mount),Re},ve=re=>{const ee={...o,...s.mount?a:{}};return ui(re)?ee:Tu(re)?Ut(ee,re):re.map(J=>Ut(ee,J))},G=(re,ee)=>({invalid:!!Ut((ee||r).errors,re),isDirty:!!Ut((ee||r).dirtyFields,re),isTouched:!!Ut((ee||r).touchedFields,re),error:Ut((ee||r).errors,re)}),ce=re=>{re&&yS(re).forEach(ee=>uo(r.errors,ee)),p.state.next({errors:re?r.errors:{}})},ge=(re,ee,J)=>{const Re=(Ut(i,re,{_f:{}})._f||{}).ref;Tr(r.errors,re,{...ee,ref:Re}),p.state.next({name:re,errors:r.errors,isValid:!1}),J&&J.shouldFocus&&Re&&Re.focus&&Re.focus()},ue=(re,ee)=>Sd(re)?p.values.subscribe({next:J=>re(z(void 0,ee),J)}):z(re,ee,!0),xe=(re,ee={})=>{for(const J of re?yS(re):l.mount)l.mount.delete(J),l.array.delete(J),ee.keepValue||(uo(i,J),uo(a,J)),!ee.keepError&&uo(r.errors,J),!ee.keepDirty&&uo(r.dirtyFields,J),!ee.keepTouched&&uo(r.touchedFields,J),!n.shouldUnregister&&!ee.keepDefaultValue&&uo(o,J);p.values.next({values:{...a}}),p.state.next({...r,...ee.keepDirty?{isDirty:V()}:{}}),!ee.keepIsValid&&y()},De=({disabled:re,name:ee,field:J,fields:Re,value:Le})=>{if(vl(re)){const Ne=re?void 0:ui(Le)?R2(J?J._f:Ut(Re,ee)._f):Le;Tr(a,ee,Ne),E(ee,Ne,!1,!1,!0)}},Ve=(re,ee={})=>{let J=Ut(i,re);const Re=vl(ee.disabled);return Tr(i,re,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:re}},name:re,mount:!0,...ee}}),l.mount.add(re),J?De({field:J,disabled:ee.disabled,name:re,value:ee.value}):w(re,!0,ee.value),{...Re?{disabled:ee.disabled}:{},...n.progressive?{required:!!ee.required,min:Y0(ee.min),max:Y0(ee.max),minLength:Y0(ee.minLength),maxLength:Y0(ee.maxLength),pattern:Y0(ee.pattern)}:{},name:re,onChange:Z,onBlur:Z,ref:Le=>{if(Le){Ve(re,ee),J=Ut(i,re);const Ne=ui(Le.value)&&Le.querySelectorAll&&Le.querySelectorAll("input,select,textarea")[0]||Le,ie=ZVe(Ne),fe=J._f.refs||[];if(ie?fe.find(de=>de===Ne):Ne===J._f.ref)return;Tr(i,re,{_f:{...J._f,...ie?{refs:[...fe.filter(A2),Ne,...Array.isArray(Ut(o,re))?[{}]:[]],ref:{type:Ne.type,name:re}}:{ref:Ne}}}),w(re,!1,void 0,Ne)}else J=Ut(i,re,{}),J._f&&(J._f.mount=!1),(n.shouldUnregister||ee.shouldUnregister)&&!(Cne(l.array,re)&&s.action)&&l.unMount.add(re)}}},Je=()=>n.shouldFocusError&&ey(i,j,l.mount),Me=re=>{vl(re)&&(p.state.next({disabled:re}),ey(i,(ee,J)=>{let Re=re;const Le=Ut(i,J);Le&&vl(Le._f.disabled)&&(Re||(Re=Le._f.disabled)),ee.disabled=Re},0,!1))},Ge=(re,ee)=>async J=>{J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let Re=ya(a);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:Le,values:Ne}=await P();r.errors=Le,Re=Ne}else await B(i);uo(r.errors,"root"),Ns(r.errors)?(p.state.next({errors:{}}),await re(Re,J)):(ee&&await ee({...r.errors},J),Je(),setTimeout(Je)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ns(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ye=(re,ee={})=>{Ut(i,re)&&(ui(ee.defaultValue)?Y(re,ya(Ut(o,re))):(Y(re,ee.defaultValue),Tr(o,re,ya(ee.defaultValue))),ee.keepTouched||uo(r.touchedFields,re),ee.keepDirty||(uo(r.dirtyFields,re),r.isDirty=ee.defaultValue?V(re,ya(Ut(o,re))):V()),ee.keepError||(uo(r.errors,re),d.isValid&&y()),p.state.next({...r}))},ze=(re,ee={})=>{const J=re?ya(re):o,Re=ya(J),Le=re&&!Ns(re)?Re:o;if(ee.keepDefaultValues||(o=J),!ee.keepValues){if(ee.keepDirtyValues)for(const Ne of l.mount)Ut(r.dirtyFields,Ne)?Tr(Le,Ne,Ut(a,Ne)):Y(Ne,Ut(Le,Ne));else{if(V$&&ui(re))for(const Ne of l.mount){const ie=Ut(i,Ne);if(ie&&ie._f){const fe=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(pw(fe)){const de=fe.closest("form");if(de){de.reset();break}}}}i={}}a=e.shouldUnregister?ee.keepDefaultValues?ya(o):{}:ya(Le),p.array.next({values:{...Le}}),p.values.next({values:{...Le}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!ee.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:ee.keepSubmitCount?r.submitCount:0,isDirty:ee.keepDirty?r.isDirty:!!(ee.keepDefaultValues&&!Zf(re,o)),isSubmitted:ee.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ee.keepDirtyValues?r.dirtyFields:ee.keepDefaultValues&&re?_2(o,re):{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(re,ee)=>ze(Sd(re)?re(a):re,ee);return{control:{register:Ve,unregister:xe,getFieldState:G,handleSubmit:Ge,setError:ge,_executeSchema:P,_getWatch:z,_getDirty:V,_updateValid:y,_removeUnmounted:U,_updateFieldArray:S,_updateDisabledField:De,_getFieldArray:W,_reset:ze,_resetDefaultValues:()=>Sd(n.defaultValues)&&n.defaultValues().then(re=>{$e(re,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:re=>{r={...r,...re}},_disableForm:Me,_subjects:p,_proxyFormState:d,_setErrors:C,get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(re){s=re},get _defaultValues(){return o},get _names(){return l},set _names(re){l=re},get _formState(){return r},set _formState(re){r=re},get _options(){return n},set _options(re){n={...n,...re}}},trigger:se,register:Ve,handleSubmit:Ge,watch:ue,setValue:Y,getValues:ve,reset:$e,resetField:ye,clearErrors:ce,unregister:xe,setError:ge,setFocus:(re,ee={})=>{const J=Ut(i,re),Re=J&&J._f;if(Re){const Le=Re.refs?Re.refs[0]:Re.ref;Le.focus&&(Le.focus(),ee.shouldSelect&&Le.select())}},getFieldState:G}}function rHe(e={}){const t=Qt.useRef(),n=Qt.useRef(),[r,i]=Qt.useState({isDirty:!1,isValidating:!1,isLoading:Sd(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Sd(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...nHe(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,W$({subject:o._subjects.state,next:a=>{Ine(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),Qt.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Qt.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),Qt.useEffect(()=>{e.values&&!Zf(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),Qt.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Qt.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Rne(r,o),t.current}const gu=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),q$=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(e!=null)o=e;else if(i.includes(t))o=t;else if(i.length>0)o=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:o}},ty=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=a.startOfDay(a.dateWithTimezone(void 0,s));n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,i)&&(u=i,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,i)&&(c=null),u){if(!o(u))return u;u=a.addDays(u,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},iHe=(e,t)=>t==null||!e.isValid(t)?null:t,jo=(e,t,n)=>t==null||!e.isValid(t)?n:t,oHe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Z$=(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},oN=(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},X$=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),xl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},aHe=["year","month","day"],Tm=e=>aHe.includes(e),m1=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return gu(n,["year"])?i.year:gu(n,["month"])?i.month:gu(n,["day"])?i.dayOfMonth:gu(n,["month","year"])?`${i.month} ${i.year}`:gu(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},sHe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},zne=["hours","minutes","seconds"],Og=e=>zne.includes(e),Kc=e=>zne.includes(e)||e==="meridiem",lHe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,g1=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,uHe=(e,t,n,r)=>{const i=g1(r.getHours(e),t,n);return r.setHours(e,i)},kV=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),BO=(e,t)=>(n,r)=>e?t.isAfter(n,r):kV(n,t)>kV(r,t),bw=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return gu(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:gu(n,["minutes"])?i.minutes:gu(n,["seconds"])?i.seconds:gu(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:gu(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}`},El={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},cHe=e=>Math.max(...e.map(t=>{var n;return(n=El[t.type])!=null?n:1})),G0=(e,t,n)=>{if(t===El.year)return e.startOfYear(n);if(t===El.month)return e.startOfMonth(n);if(t===El.day)return e.startOfDay(n);let r=n;return t{var o;let a=i?i():G0(t,n,X$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=G0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=G0(t,n,e.maxDate));const s=BO((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=G0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:oN(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=G0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:oN(t,a,e.maxTime))),a},Vne=(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}},fHe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ux=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},Hne=(e,t,n,r)=>{switch(n){case"month":return Z$(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return Ux(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(o=>e.formatByString(o,r))}default:return[]}},Wne=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const a=e.setDate(r.longestMonth,n);return e.formatByString(a,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?Wne(e,o,i.maxLength):o},pHe=(e,t,n,r,i,o,a)=>{const s=fHe(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const h=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),m=v=>Qne(e,t,v,h,n),b=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let y=parseInt(n.value,10)+s*b;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?y=h.minimum:y=h.maximum}return y%b!==0&&((s<0||l)&&(y+=b-(b+y)%b),(s>0||u)&&(y-=y%b)),y>h.maximum?m(h.minimum+(y-h.maximum-1)%(h.maximum-h.minimum+1)):y{const h=Hne(e,t,n.type,n.format);if(h.length===0)return n.value;if(c)return s>0||l?h[0]:h[h.length-1];const b=(h.indexOf(n.value)+h.length+s)%h.length;return h[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():p()},K$=(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},im=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Yne=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let o=0;o{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}},xV=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Gne=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,qne=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return Gne(e,t,i)?e.formatByString(e.setYear(o,1),i)==="0001":e.formatByString(e.setYear(o,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(o),i).length>1;case"day":return e.formatByString(e.startOfMonth(o),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),i).length>1;case"hours":return e.formatByString(e.setHours(o,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error("Invalid section type")}},mHe=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n},CV=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=S=>{if(S==="")return null;const k=Vne(e,S),C=qne(e,t,k.contentType,k.type,S),w=a?C:k.contentType==="digit",E=i!=null&&e.isValid(i);let $=E?e.formatByString(i,S):"",P=null;if(w)if(C)P=$===""?e.formatByString(c,S).length:$.length;else{if(k.maxLength==null)throw new Error(`MUI: The token ${S} should have a 'maxDigitNumber' property on it's adapter`);P=k.maxLength,E&&($=Wne(e,$,P))}return u.push(L({},k,{format:S,maxLength:P,value:$,placeholder:hHe(e,t,n,k,S),hasLeadingZeros:C,hasLeadingZerosInFormat:C,hasLeadingZerosInInput:w,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,h=r,m=e.expandFormat(r);for(;m!==h;)if(h=m,m=e.expandFormat(h),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 b=m,O=mHe(e,b),y=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,k)=>k.length-S.length).join("|")})`,"g");let v="";for(let S=0;SP.start<=S&&P.end>=S),C=b[S],w=k!=null,E=`${v}${b.slice(S)}`,$=y.test(E);!w&&C.match(/([A-Za-z]+)/)&&$?(v=E.slice(0,y.lastIndex),S+=y.lastIndex-1):w&&(k==null?void 0:k.start)===S||(k==null?void 0:k.end)===S||(d(v),v="",u.length===0?l+=C:u[u.length-1].endSeparator+=C)}return d(v),u.map(S=>{const k=C=>{let w=C;return s&&w!==null&&w.includes(" ")&&(w=`⁩${w}⁦`),o==="spacious"&&["/",".","-"].includes(w)&&(w=` ${w} `),w};return S.startSeparator=k(S.startSeparator),S.endSeparator=k(S.endSeparator),S})},gHe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=K$(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},yHe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=Z$(e,n).reduce((s,l)=>{const u=e.getDaysInMonth(l);return u>s.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:Gne(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):o,longestMonth:a}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const u=Ux(e,t,s).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},OHe=(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 o=Ux(e,t,n.format),a=e.formatByString(r,n.format),s=o.indexOf(a),u=o.indexOf(n.value)-s;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const o=e.getHours(r)<12,a=e.getHours(i);return o&&a>=12?e.addHours(i,-12):!o&&a<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}},AV={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},_V=(e,t,n,r,i,o)=>[...r].sort((a,s)=>AV[a.type]-AV[s.type]).reduce((a,s)=>!o||s.modified?OHe(e,t,s,n,a):a,i),vHe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,EHe=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,d=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=o&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=o;l-=1)i[l]=s,r[s]=l,s-=1;o=a+1}return e.forEach((l,u)=>{const c=i[u],d=c===0?null:r[c-1],p=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},SHe=["value","referenceDate"],Bi={emptyValue:null,getTodayValue:X$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ye(e,SHe);return t!=null&&r.utils.isValid(t)?t:n??dHe(r)},cleanValue:iHe,areValuesEqual:oHe,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)},J$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:Yne(i(t),r),getValueStrFromSections:bHe,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)},THe=["localeText"],aN=I.createContext(null),Zne=function(t){var n;const{localeText:r}=t,i=Ye(t,THe),{utils:o,localeText:a}=(n=I.useContext(aN))!=null?n:{utils:void 0,localeText:void 0},s=mt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:p,localeText:h}=s,m=I.useMemo(()=>L({},h,a,r),[h,a,r]),b=I.useMemo(()=>{if(!u)return o||null;const v=new u({locale:p,formats:c,instance:d});if(!v.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 v},[u,p,c,d,o]),O=I.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),y=I.useMemo(()=>({utils:b,defaultDates:O,localeText:m}),[O,b,m]);return N.jsx(aN.Provider,{value:y,children:l})},wHe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:L({},e)}}}}),Xne={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"},kHe=Xne;wHe(Xne);const Wl=()=>{const e=I.useContext(aN);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=I.useMemo(()=>L({},xHe,e.localeText),[e.localeText]);return I.useMemo(()=>L({},e,{localeText:t}),[e,t])},Rn=()=>Wl().utils,Gp=()=>Wl().defaultDates,zi=()=>Wl().localeText,mf=e=>{const t=Rn(),n=I.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Kne(e){return At("MuiPickersToolbar",e)}_t("MuiPickersToolbar",["root","content"]);const CHe=e=>{const{classes:t,isLandscape:n}=e;return wt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Kne,t)},AHe=Ee("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>L({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"})),_He=Ee("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"}}),eF=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:s,titleId:l}=r,u=r,c=CHe(u);return s?null:D.jsxs(AHe,{ref:n,className:Ke(c.root,o),ownerState:u,children:[D.jsx(dr,{color:"text.secondary",variant:"overline",id:l,children:a}),D.jsx(_He,{className:c.content,ownerState:u,children:i})]})});function RHe(e){return At("MuiDatePickerToolbar",e)}_t("MuiDatePickerToolbar",["root","title"]);const IHe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],DHe=e=>{const{classes:t}=e;return wt({root:["root"],title:["title"]},RHe,t)},NHe=Ee(eF,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PHe=Ee(dr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>L({},e.isLandscape&&{margin:"auto 16px auto auto"})),LHe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l}=r,u=Ye(r,IHe),c=Rn(),d=zi(),p=DHe(r),h=I.useMemo(()=>{if(!i)return s;const b=m1(c,{format:a,views:l},!0);return c.formatByString(i,b)},[i,a,s,c,l]),m=r;return D.jsx(NHe,L({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:D.jsx(PHe,{variant:"h4",align:o?"left":"center",ownerState:m,className:p.title,children:h})}))}),UO=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>L({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Jne(e,t){var n,r,i,o;const a=Rn(),s=Gp(),l=mt({props:e,name:t}),u=I.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:L({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:UO(l.components);return L({},l,{localeText:u},q$({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:jo(a,l.minDate,s.minDate),maxDate:jo(a,l.maxDate,s.maxDate),slots:L({toolbar:LHe},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const MHe=ki(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$He=ki(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),FHe=ki(D.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),ere=ki(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"),BHe=ki(D.jsxs(I.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"),UHe=ki(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"),jHe=ki(D.jsxs(I.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"),zHe=ki(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 VHe(e){return At("MuiPickersArrowSwitcher",e)}_t("MuiPickersArrowSwitcher",["root","spacer","button"]);const HHe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],WHe=["ownerState"],QHe=["ownerState"],YHe=Ee("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),GHe=Ee("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),RV=Ee(eo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>L({},e.hidden&&{visibility:"hidden"})),qHe=e=>{const{classes:t}=e;return wt({root:["root"],spacer:["spacer"],button:["button"]},VHe,t)},tre=I.forwardRef(function(t,n){var r,i,o,a;const l=ci().direction==="rtl",u=mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:p,slotProps:h,isNextDisabled:m,isNextHidden:b,onGoToNext:O,nextLabel:y,isPreviousDisabled:v,isPreviousHidden:S,onGoToPrevious:k,previousLabel:C}=u,w=Ye(u,HHe),E=u,$=qHe(E),P={isDisabled:m,isHidden:b,goTo:O,label:y},_={isDisabled:v,isHidden:S,goTo:k,label:C},B=(r=p==null?void 0:p.previousIconButton)!=null?r:RV,U=kn({elementType:B,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:_.label,"aria-label":_.label,disabled:_.isDisabled,edge:"end",onClick:_.goTo},ownerState:L({},E,{hidden:_.isHidden}),className:$.button}),V=(i=p==null?void 0:p.nextIconButton)!=null?i:RV,z=kn({elementType:V,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:L({},E,{hidden:P.isHidden}),className:$.button}),W=(o=p==null?void 0:p.leftArrowIcon)!=null?o:$He,X=kn({elementType:W,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),q=Ye(X,WHe),Y=(a=p==null?void 0:p.rightArrowIcon)!=null?a:FHe,Z=kn({elementType:Y,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=Ye(Z,QHe);return D.jsxs(YHe,L({ref:n,className:Ke($.root,d),ownerState:E},w,{children:[D.jsx(B,L({},U,{children:l?D.jsx(Y,L({},j)):D.jsx(W,L({},q))})),c?D.jsx(dr,{variant:"subtitle1",component:"span",children:c}):D.jsx(GHe,{className:$.spacer,ownerState:E}),D.jsx(V,L({},z,{children:l?D.jsx(W,L({},q)):D.jsx(Y,L({},j))}))]}))}),b1=36,jx=2,zx=320,ZHe=280,Vx=334,nre=232,mb=48,XHe=Ee(Rbe)({[`& .${Db.container}`]:{outline:0},[`& .${Db.paper}`]:{outline:0,minWidth:zx}}),KHe=Ee(Hbe)({"&:first-of-type":{padding:0}});function JHe(e){var t,n;const{children:r,onDismiss:i,open:o,slots:a,slotProps:s}=e,l=(t=a==null?void 0:a.dialog)!=null?t:XHe,u=(n=a==null?void 0:a.mobileTransition)!=null?n:_g;return D.jsx(l,L({open:o,onClose:i},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:D.jsx(KHe,{children:r})}))}function eWe(e){return At("MuiPickersPopper",e)}_t("MuiPickersPopper",["root","paper"]);function Lh(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const tWe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},yw=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?yw(t.shadowRoot):t:null},tF="@media (pointer: fine)",nWe="@media (prefers-reduced-motion: reduce)",wm=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),IV=wm&&wm[1]?parseInt(wm[1],10):null,DV=wm&&wm[2]?parseInt(wm[2],10):null,rWe=IV&&IV<10||DV&&DV<13||!1,rre=()=>Ig(nWe,{defaultMatches:!1})||rWe,iWe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],oWe=e=>{const{classes:t}=e;return wt({root:["root"],paper:["paper"]},eWe,t)},aWe=Ee(Z1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),sWe=Ee(zo,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>L({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function lWe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=jt(l=>{if(!o.current)return;const u=r.current;r.current=!1;const c=Or(i.current);if(!i.current||"clientX"in l&&lWe(l,c))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!c.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!u&&t(l)}),s=()=>{r.current=!0};return I.useEffect(()=>{if(e){const l=Or(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),I.useEffect(()=>{if(e){const l=Or(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const cWe=I.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=Ye(e,iWe),d=L({},i,{placement:r}),p=kn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return D.jsx(n,L({},c,p,{onClick:h=>{var m;l(h),(m=p.onClick)==null||m.call(p,h)},onTouchStart:h=>{var m;u(h),(m=p.onTouchStart)==null||m.call(p,h)},ownerState:d,children:o}))});function dWe(e){var t,n,r,i;const o=mt({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:p,role:h,placement:m,slots:b,slotProps:O,reduceAnimations:y}=o;I.useEffect(()=>{function Z(j){p&&(j.key==="Escape"||j.key==="Esc")&&d()}return document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)}},[d,p]);const v=I.useRef(null);I.useEffect(()=>{h==="tooltip"||u&&!u()||(p?v.current=yw(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[p,h,u]);const[S,k,C]=uWe(p,c??d),w=I.useRef(null),E=yn(w,l),$=yn(E,S),P=o,_=oWe(P),B=rre(),U=y??B,V=Z=>{Z.key==="Escape"&&(Z.stopPropagation(),d())},z=((t=b==null?void 0:b.desktopTransition)!=null?t:U)?_g:cT,W=(n=b==null?void 0:b.desktopTrapFocus)!=null?n:mY,X=(r=b==null?void 0:b.desktopPaper)!=null?r:sWe,q=(i=b==null?void 0:b.popper)!=null?i:aWe,Y=kn({elementType:q,externalSlotProps:O==null?void 0:O.popper,additionalProps:{transition:!0,role:h,open:p,anchorEl:a,placement:m,onKeyDown:V},className:_.root,ownerState:o});return D.jsx(q,L({},Y,{children:({TransitionProps:Z,placement:j})=>D.jsx(W,L({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},O==null?void 0:O.desktopTrapFocus,{children:D.jsx(z,L({},Z,O==null?void 0:O.desktopTransition,{children:D.jsx(cWe,{PaperComponent:X,ownerState:P,popperPlacement:j,ref:$,onPaperClick:k,onPaperTouchStart:C,paperClasses:_.paper,paperSlotProps:O==null?void 0:O.desktopPaper,children:s})}))}))}))}function fWe(e){return At("MuiPickersToolbarText",e)}const NV=_t("MuiPickersToolbarText",["root","selected"]),pWe=["className","selected","value"],hWe=e=>{const{classes:t,selected:n}=e;return wt({root:["root",n&&"selected"]},fWe,t)},mWe=Ee(dr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${NV.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${NV.selected}`]:{color:(e.vars||e).palette.text.primary}})),nF=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Ye(r,pWe),s=hWe(r);return D.jsx(mWe,L({ref:n,className:Ke(i,s.root),component:"span"},a,{children:o}))}),gWe=["align","className","selected","typographyClassName","value","variant","width"],bWe=e=>{const{classes:t}=e;return wt({root:["root"]},Kne,t)},yWe=Ee(wl,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ka=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:u,width:c}=r,d=Ye(r,gWe),p=bWe(r);return D.jsx(yWe,L({variant:"text",ref:n,className:Ke(o,p.root)},c?{sx:{width:c}}:{},d,{children:D.jsx(nF,{align:i,className:s,variant:u,value:l,selected:a})}))}),rF=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var o,a;const s=Rn(),l=I.useRef(n),u=(o=t??l.current)!=null?o:i.emptyValue,c=I.useMemo(()=>i.getTimezone(s,u),[s,i,u]),d=jt(b=>c==null?b:i.setTimezone(s,c,b)),p=(a=e??c)!=null?a:"default",h=I.useMemo(()=>i.setTimezone(s,p,u),[i,s,p,u]),m=jt((b,...O)=>{const y=d(b);r==null||r(y,...O)});return{value:h,handleValueChange:m,timezone:p}},Jg=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[a,s]=Ji({name:e,state:"value",controlled:n,default:r??o.emptyValue}),l=jt((u,...c)=>{s(u),i==null||i(u,...c)});return rF({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function ire(e,t,n,r){const{value:i,onError:o}=e,a=Wl(),s=I.useRef(r),l=t({adapter:a,value:i,props:e});return I.useEffect(()=>{o&&!n(l,s.current)&&o(l,i),s.current=l},[n,o,s,l,i]),l}const OWe=e=>{const t=Rn(),n=zi(),r=Wl(),o=ci().direction==="rtl",{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:p,referenceDate:h,onChange:m,format:b,formatDensity:O="dense",selectedSections:y,onSelectedSectionsChange:v,shouldRespectLeadingZeros:S=!1,timezone:k}}=e,{timezone:C,value:w,handleValueChange:E}=rF({timezone:k,value:d,defaultValue:p,onChange:m,valueManager:a}),$=I.useMemo(()=>OHe(t,C),[t,C]),P=I.useCallback((ce,ge=null)=>s.getSectionsFromValue(t,ce,ge,o,ue=>CV(t,C,n,b,ue,O,S,o)),[s,b,n,o,S,t,O,C]),_=I.useMemo(()=>s.getValueStrFromSections(P(a.emptyValue),o),[s,P,a.emptyValue,o]),[B,U]=I.useState(()=>{const ce=P(w),ge={sections:ce,value:w,referenceValue:a.emptyValue,tempValueStrAndroid:null},ue=dHe(ce),xe=a.getInitialReferenceValue({referenceDate:h,value:w,utils:t,props:c,granularity:ue,timezone:C});return L({},ge,{referenceValue:xe})}),[V,z]=Ji({controlled:y,default:null,name:"useField",state:"selectedSectionIndexes"}),W=ce=>{z(ce),v==null||v(ce),U(ge=>L({},ge,{selectedSectionQuery:null}))},X=I.useMemo(()=>{if(V==null)return null;if(V==="all")return{startIndex:0,endIndex:B.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof V=="number")return{startIndex:V,endIndex:V};if(typeof V=="string"){const ce=B.sections.findIndex(ge=>ge.type===V);return{startIndex:ce,endIndex:ce}}return V},[V,B.sections]),q=({value:ce,referenceValue:ge,sections:ue})=>{if(U(Ne=>L({},Ne,{sections:ue,value:ce,referenceValue:ge,tempValueStrAndroid:null})),a.areValuesEqual(t,B.value,ce))return;const xe={validationError:u({adapter:r,value:ce,props:L({},c,{value:ce,timezone:C})})};E(ce,xe)},Y=(ce,ge)=>{const ue=[...B.sections];return ue[ce]=L({},ue[ce],{value:ge,modified:!0}),Yne(ue,o)},Z=()=>{q({value:a.emptyValue,referenceValue:B.referenceValue,sections:P(a.emptyValue)})},j=()=>{if(X==null)return;const ce=B.sections[X.startIndex],ge=s.getActiveDateManager(t,B,ce),xe=ge.getSections(B.sections).filter(Me=>Me.value!=="").length===(ce.value===""?0:1),Ne=Y(X.startIndex,""),Ve=xe?null:t.date(new Date("")),Je=ge.getNewValuesFromNewActiveDate(Ve);(Ve!=null&&!t.isValid(Ve))!=(ge.date!=null&&!t.isValid(ge.date))?q(L({},Je,{sections:Ne})):U(Me=>L({},Me,Je,{sections:Ne,tempValueStrAndroid:null}))},se=ce=>{const ge=(Ne,Ve)=>{const Je=t.parse(Ne,b);if(Je==null||!t.isValid(Je))return null;const Me=CV(t,C,n,b,Je,O,S,o);return _V(t,C,Je,Me,Ve,!1)},ue=s.parseValueStr(ce,B.referenceValue,ge),xe=s.updateReferenceValue(t,ue,B.referenceValue);q({value:ue,referenceValue:xe,sections:P(ue,B.sections)})},ve=({activeSection:ce,newSectionValue:ge,shouldGoToNextSection:ue})=>{ue&&X&&X.startIndexL({},ye,Me,{sections:Ne,tempValueStrAndroid:null}))},G=ce=>U(ge=>L({},ge,{tempValueStrAndroid:ce}));return I.useEffect(()=>{const ce=P(B.value);U(ge=>L({},ge,{sections:ce}))},[b,t.locale]),I.useEffect(()=>{let ce=!1;a.areValuesEqual(t,B.value,w)?ce=a.getTimezone(t,B.value)!==a.getTimezone(t,w):ce=!0,ce&&U(ge=>L({},ge,{value:w,referenceValue:s.updateReferenceValue(t,w,ge.referenceValue),sections:P(w)}))},[w]),{state:B,selectedSectionIndexes:X,setSelectedSections:W,clearValue:Z,clearActiveSection:j,updateSectionValue:ve,updateValueFromValueStr:se,setTempAndroidValueStr:G,sectionsValueBoundaries:$,placeholder:_,timezone:C}},vWe=5e3,Sh=e=>e.saveQuery!=null,EWe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const o=Rn(),[a,s]=I.useState(null),l=jt(()=>s(null));I.useEffect(()=>{var h;a!=null&&((h=e[a.sectionIndex])==null?void 0:h.type)!==a.sectionType&&l()},[e,a,l]),I.useEffect(()=>{if(a!=null){const h=setTimeout(()=>l(),vWe);return()=>{window.clearTimeout(h)}}return()=>{}},[a,l]);const u=({keyPressed:h,sectionIndex:m},b,O)=>{const y=h.toLowerCase(),v=e[m];if(a!=null&&(!O||O(a.value))&&a.sectionIndex===m){const k=`${a.value}${y}`,C=b(k,v);if(!Sh(C))return s({sectionIndex:m,value:k,sectionType:v.type}),C}const S=b(y,v);return Sh(S)&&!S.saveQuery?(l(),null):(s({sectionIndex:m,value:y,sectionType:v.type}),Sh(S)?null:S)},c=h=>{const m=(y,v,S)=>{const k=v.filter(C=>C.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},b=(y,v,S,k)=>{const C=w=>Hne(o,i,v.type,w);if(v.contentType==="letter")return m(v.format,C(v.format),y);if(S&&k!=null&&Vne(o,S).contentType==="letter"){const w=C(S),E=m(S,w,y);return Sh(E)?{saveQuery:!1}:L({},E,{sectionValue:k(E.sectionValue,w)})}return{saveQuery:!1}};return u(h,(y,v)=>{switch(v.type){case"month":{const S=k=>xV(o,k,o.formats.month,v.format);return b(y,v,o.formats.month,S)}case"weekDay":{const S=(k,C)=>C.indexOf(k).toString();return b(y,v,o.formats.weekday,S)}case"meridiem":return b(y,v);default:return{saveQuery:!1}}})},d=h=>{const m=(O,y)=>{const v=+`${O}`,S=n[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(v>S.maximum)return{saveQuery:!1};if(vS.maximum||O.length===S.maximum.toString().length;return{sectionValue:Qne(o,i,v,S,y),shouldGoToNextSection:k}};return u(h,(O,y)=>{if(y.contentType==="digit"||y.contentType==="digit-with-letter")return m(O,y);if(y.type==="month"){const v=qne(o,i,"digit","month","MM"),S=m(O,{type:y.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Sh(S))return S;const k=xV(o,S.sectionValue,"MM",y.format);return L({},S,{sectionValue:k})}if(y.type==="weekDay"){const v=m(O,y);if(Sh(v))return v;const S=Ux(o,i,y.format)[Number(v.sectionValue)-1];return L({},v,{sectionValue:S})}return{saveQuery:!1}},O=>!Number.isNaN(Number(O)))};return{applyCharacterEditing:jt(h=>{const m=e[h.sectionIndex],O=!Number.isNaN(Number(h.keyPressed))?d(h):c(h);O==null?r(null):t({activeSection:m,newSectionValue:O.sectionValue,shouldGoToNextSection:O.shouldGoToNextSection})}),resetCharacterQuery:l}},SWe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],iF=e=>{const t=Rn(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:o,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:p}=OWe(e),{inputRef:h,internalProps:m,internalProps:{readOnly:b=!1,unstableFieldRef:O,minutesStep:y},forwardedProps:{onClick:v,onKeyDown:S,onFocus:k,onBlur:C,onMouseUp:w,onPaste:E,error:$,clearable:P,onClear:_,disabled:B},fieldValueManager:U,valueManager:V,validator:z}=e,W=Ye(e.forwardedProps,SWe),{applyCharacterEditing:X,resetCharacterQuery:q}=EWe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:p}),Y=I.useRef(null),Z=yn(h,Y),j=I.useRef(void 0),ve=ci().direction==="rtl",G=I.useMemo(()=>SHe(n.sections,ve),[n.sections,ve]),ce=()=>{var ee;if(b){i(null);return}const J=(ee=Y.current.selectionStart)!=null?ee:0;let Re;J<=n.sections[0].startInInput||J>=n.sections[n.sections.length-1].endInInput?Re=1:Re=n.sections.findIndex(De=>De.startInInput-De.startSeparator.length>J);const Le=Re===-1?n.sections.length-1:Re-1;i(Le)},ge=jt((ee,...J)=>{ee.isDefaultPrevented()||(v==null||v(ee,...J),ce())}),ue=jt(ee=>{w==null||w(ee),ee.preventDefault()}),xe=jt((...ee)=>{k==null||k(...ee);const J=Y.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!J||J!==Y.current||r!=null||b||(J.value.length&&Number(J.selectionEnd)-Number(J.selectionStart)===J.value.length?i("all"):ce())})}),Ne=jt((...ee)=>{C==null||C(...ee),i(null)}),Ve=jt(ee=>{if(E==null||E(ee),b){ee.preventDefault();return}const J=ee.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Re=n.sections[r.startIndex],Le=/^[a-zA-Z]+$/.test(J),De=/^[0-9]+$/.test(J),ie=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(J);if(Re.contentType==="letter"&&Le||Re.contentType==="digit"&&De||Re.contentType==="digit-with-letter"&&ie){q(),s({activeSection:Re,newSectionValue:J,shouldGoToNextSection:!0}),ee.preventDefault();return}if(Le||De){ee.preventDefault();return}}ee.preventDefault(),q(),l(J)}),Je=jt(ee=>{if(b)return;const J=ee.target.value;if(J===""){q(),o();return}const Re=ee.nativeEvent.data,Le=Re&&Re.length>1,De=Le?Re:J,ie=im(De);if(r==null||Le){l(Le?Re:ie);return}let fe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&ie.length===1)fe=ie;else{const de=im(U.getValueStrFromSections(n.sections,ve));let Oe=-1,Te=-1;for(let et=0;etrt.end)return;const xt=ie.length-de.length+rt.end-im(rt.endSeparator||"").length;fe=ie.slice(rt.start+im(rt.startSeparator||"").length,xt)}if(fe.length===0){EHe()?u(De):(q(),a());return}X({keyPressed:fe,sectionIndex:r.startIndex})}),Me=jt(ee=>{switch(S==null||S(ee),!0){case(ee.key==="a"&&(ee.ctrlKey||ee.metaKey)):{ee.preventDefault(),i("all");break}case ee.key==="ArrowRight":{if(ee.preventDefault(),r==null)i(G.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const J=G.neighbors[r.startIndex].rightIndex;J!==null&&i(J)}break}case ee.key==="ArrowLeft":{if(ee.preventDefault(),r==null)i(G.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const J=G.neighbors[r.startIndex].leftIndex;J!==null&&i(J)}break}case ee.key==="Delete":{if(ee.preventDefault(),b)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?o():a(),q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ee.key):{if(ee.preventDefault(),b||r==null)break;const J=n.sections[r.startIndex],Re=U.getActiveDateManager(t,n,J),Le=hHe(t,p,J,ee.key,c,Re.date,{minutesStep:y});s({activeSection:J,newSectionValue:Le,shouldGoToNextSection:!1});break}}});Jr(()=>{if(!Y.current)return;if(r==null){Y.current.scrollLeft&&(Y.current.scrollLeft=0);return}const ee=n.sections[r.startIndex],J=n.sections[r.endIndex];let Re=ee.startInInput,Le=J.endInInput;if(r.shouldSelectBoundarySelectors&&(Re-=ee.startSeparator.length,Le+=J.endSeparator.length),Re!==Y.current.selectionStart||Le!==Y.current.selectionEnd){const De=Y.current.scrollTop;Y.current===yw(document)&&Y.current.setSelectionRange(Re,Le),Y.current.scrollTop=De}});const Ge=ire(L({},m,{value:n.value,timezone:p}),z,V.isSameError,V.defaultErrorState),ye=I.useMemo(()=>$!==void 0?$:V.hasError(Ge),[V,Ge,$]);I.useEffect(()=>{!ye&&!r&&q()},[n.referenceValue,r,ye]),I.useEffect(()=>(Y.current&&Y.current===document.activeElement&&i("all"),()=>window.clearTimeout(j.current)),[]),I.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(q(),a())},[n.tempValueStrAndroid]);const ze=I.useMemo(()=>{var ee;return(ee=n.tempValueStrAndroid)!=null?ee:U.getValueStrFromSections(n.sections,ve)},[n.sections,U,n.tempValueStrAndroid,ve]),$e=I.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),We=Y.current&&Y.current===yw(document),dt=V.areValuesEqual(t,n.value,V.emptyValue),Be=!We&&dt;I.useImperativeHandle(O,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ee,J;const Re=(ee=Y.current.selectionStart)!=null?ee:0,Le=(J=Y.current.selectionEnd)!=null?J:0;if(Re===0&&Le===0)return null;const De=Re<=n.sections[0].startInInput?1:n.sections.findIndex(ie=>ie.startInInput-ie.startSeparator.length>Re);return De===-1?n.sections.length-1:De-1},setSelectedSections:ee=>i(ee)}));const re=jt((ee,...J)=>{var Re;ee.preventDefault(),_==null||_(ee,...J),o(),Y==null||(Re=Y.current)==null||Re.focus(),i(0)});return L({placeholder:d,autoComplete:"off",disabled:!!B},W,{value:Be?"":ze,inputMode:$e,readOnly:b,onClick:ge,onFocus:xe,onBlur:Ne,onPaste:Ve,onChange:Je,onKeyDown:Me,onMouseUp:ue,onClear:re,error:ye,ref:Z,clearable:!!(P&&!dt&&!b&&!B)})},TWe=({open:e,onOpen:t,onClose:n})=>{const r=I.useRef(typeof e=="boolean").current,[i,o]=I.useState(!1);I.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const a=I.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},wWe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},kWe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},xWe=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},CWe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:d,timezone:p}=e,{current:h}=I.useRef(l),{current:m}=I.useRef(s!==void 0),b=Rn(),O=Wl(),[y,v]=Ji({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:k}=TWe(e),[C,w]=I.useState(()=>{let xe;return s!==void 0?xe=s:h!==void 0?xe=h:xe=t.emptyValue,{draft:xe,lastPublishedValue:xe,lastCommittedValue:xe,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:$}=rF({timezone:p,value:s,defaultValue:h,onChange:a,valueManager:t});ire(L({},e,{value:C.draft,timezone:E}),i,t.isSameError,t.defaultErrorState);const P=jt(xe=>{const Ne={action:xe,dateState:C,hasChanged:Ge=>!t.areValuesEqual(b,xe.value,Ge),isControlled:m,closeOnSelect:u},Ve=wWe(Ne),Je=kWe(Ne),Me=xWe(Ne);if(w(Ge=>L({},Ge,{draft:xe.value,lastPublishedValue:Ve?xe.value:Ge.lastPublishedValue,lastCommittedValue:Je?xe.value:Ge.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ve){const ye={validationError:xe.name==="setValueFromField"?xe.context.validationError:i({adapter:O,value:xe.value,props:L({},e,{value:xe.value,timezone:E})})};xe.name==="setValueFromShortcut"&&xe.shortcut!=null&&(ye.shortcut=xe.shortcut),$(xe.value,ye)}Je&&o&&o(xe.value),Me&&k(!1)});if(s!==void 0&&(C.lastControlledValue===void 0||!t.areValuesEqual(b,C.lastControlledValue,s))){const xe=t.areValuesEqual(b,C.draft,s);w(Ne=>L({},Ne,{lastControlledValue:s},xe?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const _=jt(()=>{P({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=jt(()=>{P({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=jt(()=>{P({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),V=jt(()=>{P({value:C.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=jt(()=>{P({value:t.getTodayValue(b,E,n),name:"setValueFromAction",pickerAction:"today"})}),W=jt(()=>k(!0)),X=jt(()=>k(!1)),q=jt((xe,Ne="partial")=>P({name:"setValueFromView",value:xe,selectionState:Ne})),Y=jt((xe,Ne,Ve)=>P({name:"setValueFromShortcut",value:xe,changeImportance:Ne??"accept",shortcut:Ve})),Z=jt((xe,Ne)=>P({name:"setValueFromField",value:xe,context:Ne})),j=jt(xe=>{v(xe),d==null||d(xe)}),se={onClear:_,onAccept:B,onDismiss:U,onCancel:V,onSetToday:z,onOpen:W,onClose:X},ve={value:C.draft,onChange:Z,selectedSections:y,onSelectedSectionsChange:j},G=I.useMemo(()=>t.cleanValue(b,C.draft),[b,t,C.draft]),ce={value:G,onChange:q,onClose:X,open:S,onSelectedSectionsChange:j},ue=L({},se,{value:G,onChange:q,onSelectShortcut:Y,isValid:xe=>{const Ne=i({adapter:O,value:xe,props:L({},e,{value:xe,timezone:E})});return!t.hasError(Ne)}});return{open:S,fieldProps:ve,viewProps:ce,layoutProps:ue,actions:se}};function jO({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){var l,u;const c=I.useRef(n),d=I.useRef(i),p=I.useRef(i.includes(n)?n:i[0]),[h,m]=Ji({name:"useViews",state:"view",controlled:r,default:p.current}),b=I.useRef(o?h:null),[O,y]=Ji({name:"useViews",state:"focusedView",controlled:a,default:b.current});I.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(P=>!i.includes(P)))&&(m(i.includes(n)?n:i[0]),d.current=i,c.current=n)},[n,m,h,i]);const v=i.indexOf(h),S=(l=i[v-1])!=null?l:null,k=(u=i[v+1])!=null?u:null,C=jt((P,_)=>{y(_?P:B=>P===B?null:B),s==null||s(P,_)}),w=jt(P=>{C(P,!0),P!==h&&(m(P),t&&t(P))}),E=jt(()=>{k&&w(k)}),$=jt((P,_,B)=>{const U=_==="finish",V=B?i.indexOf(B){const{onChange:o,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:p,viewRenderers:h,timezone:m}=e,b=Ye(e,AWe),{view:O,setView:y,defaultView:v,focusedView:S,setFocusedView:k,setValueAndGoToNextView:C}=jO({view:void 0,views:u,openTo:c,onChange:o,onViewChange:d,autoFocus:i}),{hasUIView:w,viewModeLookup:E}=I.useMemo(()=>u.reduce((z,W)=>{let X;return p?X="field":h[W]!=null?X="UI":X="field",z.viewModeLookup[W]=X,X==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,h,u]),$=I.useMemo(()=>u.reduce((z,W)=>h[W]!=null&&Og(W)?z+1:z,0),[h,u]),P=E[O],_=jt(()=>P==="UI"),[B,U]=I.useState(P==="UI"?O:null);return B!==O&&E[O]==="UI"&&U(O),Jr(()=>{P==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(O)}))},[O]),Jr(()=>{if(!a)return;let z=O;P==="field"&&B!=null&&(z=B),z!==v&&E[z]==="UI"&&E[v]==="UI"&&(z=v),z!==O&&y(z),k(z,!0)},[a]),{hasUIView:w,shouldRestoreFocus:_,layoutProps:{views:u,view:B,onViewChange:y},renderCurrentView:()=>{if(B==null)return null;const z=h[B];return z==null?null:z(L({},b,n,t,{views:u,timezone:m,onChange:C,view:B,onViewChange:y,focusedView:S,onFocusedViewChange:k,showViewSwitcher:$>1,timeViewsCount:$}))}}};function PV(){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 RWe=(e,t)=>{const[n,r]=I.useState(PV);return Jr(()=>{const o=()=>{r(PV())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Lh(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},IWe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=RWe(n.views,i);return{layoutProps:L({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},DWe=(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))}};DWe(["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 ore=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=CWe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=_We({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=IWe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function are(e){return At("MuiPickersLayout",e)}const I2=_t("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),NWe=["onAccept","onClear","onCancel","onSetToday","actions"];function PWe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Ye(e,NWe),s=zi();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return D.jsx(wl,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return D.jsx(wl,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return D.jsx(wl,{onClick:t,children:s.okButtonLabel},u);case"today":return D.jsx(wl,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return D.jsx(Mbe,L({},a,{children:l}))}const LWe=["items","changeImportance","isLandscape","onChange","isValid"],MWe=["getValue"];function $We(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=Ye(e,LWe);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=Ye(s,MWe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return D.jsx(WY,L({dense:!0,sx:[{maxHeight:Vx,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>D.jsx(Ah,{children:D.jsx(ZN,L({},s))},s.label))}))}function FWe(e){return e.view!==null}const BWe=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"]},are,t)},UWe=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:d,onChange:p,onSelectShortcut:h,isValid:m,isLandscape:b,disabled:O,readOnly:y,children:v,components:S,componentsProps:k,slots:C,slotProps:w}=e,E=C??UO(S),$=w??k,P=BWe(e),_=(t=E==null?void 0:E.actionBar)!=null?t:PWe,B=kn({elementType:_,externalSlotProps:$==null?void 0:$.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:P.actionBar},ownerState:L({},e,{wrapperVariant:r})}),U=D.jsx(_,L({},B)),V=E==null?void 0:E.toolbar,z=kn({elementType:V,externalSlotProps:$==null?void 0:$.toolbar,additionalProps:{isLandscape:b,onChange:p,value:d,view:l,onViewChange:c,views:u,disabled:O,readOnly:y,className:P.toolbar},ownerState:L({},e,{wrapperVariant:r})}),W=FWe(z)&&V?D.jsx(V,L({},z)):null,X=v,q=E==null?void 0:E.tabs,Y=l&&q?D.jsx(q,L({view:l,onViewChange:c},$==null?void 0:$.tabs)):null,Z=(n=E==null?void 0:E.shortcuts)!=null?n:$We,j=kn({elementType:Z,externalSlotProps:$==null?void 0:$.shortcuts,additionalProps:{isValid:m,isLandscape:b,onChange:h,className:P.shortcuts},ownerState:{isValid:m,isLandscape:b,onChange:h,className:P.shortcuts,wrapperVariant:r}}),se=l&&Z?D.jsx(Z,L({},j)):null;return{toolbar:W,content:X,tabs:Y,actionBar:U,shortcuts:se}},jWe=e=>{const{isLandscape:t,classes:n}=e;return wt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},are,n)},sre=Ee("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",[`& .${I2.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${I2.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${I2.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));sre.propTypes={as:Q.elementType,ownerState:Q.shape({isLandscape:Q.bool.isRequired}).isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const zWe=Ee("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),lre=function(t){const n=mt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=UWe(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,h=n,m=jWe(h);return D.jsxs(sre,{ref:d,sx:l,className:Ke(u,m.root),ownerState:h,children:[c?s:r,c?r:s,D.jsx(zWe,{className:m.contentWrapper,children:p==="desktop"?D.jsxs(I.Fragment,{children:[i,o]}):D.jsxs(I.Fragment,{children:[o,i]})}),a]})};function VWe(e,{disableFuture:t,maxDate:n,timezone:r}){const i=Rn();return I.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)},[t,n,e,i,r])}function HWe(e,{disablePast:t,minDate:n,timezone:r}){const i=Rn();return I.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)},[t,n,e,i,r])}function Hx(e,t,n,r){const i=Rn(),o=uHe(e,i),a=I.useCallback(s=>{const l=e==null?null:cHe(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const sD=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],lD=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],ure=["minDateTime","maxDateTime"],WWe=[...sD,...lD,...ure],e0=e=>WWe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),QWe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],oF=(e,t)=>{const n=L({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return QWe.forEach(i),t==="date"?sD.forEach(i):t==="time"?lD.forEach(i):t==="date-time"&&(sD.forEach(i),lD.forEach(i),ure.forEach(i)),{forwardedProps:n,internalProps:r}},qp=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:o,disablePast:a,disableFuture:s,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=jo(n.utils,e.minDate,n.defaultDates.minDate),d=jo(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!!(o&&o(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(a&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},zO=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:d}=n,p=e.utils.dateWithTimezone(void 0,d),h=BO(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&h(r,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,p)):return"disableFuture";case!!(u&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(o&&e.utils.getMinutes(t)%o!==0):return"minutesStep";default:return null}},Wx=({props:e,value:t,adapter:n})=>{const r=qp({adapter:n,value:t,props:e});return r!==null?r:zO({adapter:n,value:t,props:e})};function YWe(e){return At("MuiPickersDay",e)}const xf=_t("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),GWe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],qWe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return wt({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},YWe,l)},cre=({theme:e,ownerState:t})=>L({},e.typography.caption,{width:b1,height:b1,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})`:cn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${xf.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xf.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}},[`&.${xf.disabled}:not(.${xf.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${xf.disabled}&.${xf.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${jx}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${xf.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),dre=(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]},ZWe=Ee(hs,{name:"MuiPickersDay",slot:"Root",overridesResolver:dre})(cre),XWe=Ee("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:dre})(({theme:e,ownerState:t})=>L({},cre({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),q0=()=>{},KWe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:p,onFocus:h=q0,onBlur:m=q0,onKeyDown:b=q0,onMouseDown:O=q0,onMouseEnter:y=q0,outsideCurrentMonth:v,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:C,today:w=!1}=r,E=Ye(r,GWe),$=L({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:w}),P=qWe($),_=Rn(),B=I.useRef(null),U=yn(B,n);Jr(()=>{i&&!s&&!c&&!v&&B.current.focus()},[i,s,c,v]);const V=W=>{O(W),v&&W.preventDefault()},z=W=>{s||p(a),v&&W.currentTarget.focus(),d&&d(W)};return v&&!k?D.jsx(XWe,{className:Ke(P.root,P.hiddenDaySpacingFiller,o),ownerState:$,role:E.role}):D.jsx(ZWe,L({className:Ke(P.root,o),ref:U,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:W=>b(W,a),onFocus:W=>h(W,a),onBlur:W=>m(W,a),onMouseEnter:W=>y(W,a),onClick:z,onMouseDown:V},E,{ownerState:$,children:C||_.format(a,"dayOfMonth")}))}),JWe=I.memo(KWe),eQe=e=>At("MuiPickersSlideTransition",e),xs=_t("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),tQe=["children","className","reduceAnimations","slideDirection","transKey","classes"],nQe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return wt(r,eQe,t)},rQe=Ee(jN,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${xs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${xs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${xs.slideEnterActive}`]:t.slideEnterActive},{[`.${xs.slideExit}`]:t.slideExit},{[`.${xs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${xs["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},[`& .${xs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${xs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${xs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${xs.slideExit}`]:{transform:"translate(0%)"},[`& .${xs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${xs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function iQe(e){const t=mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Ye(t,tQe),s=nQe(t),l=ci();if(i)return D.jsx("div",{className:Ke(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return D.jsx(rQe,{className:Ke(s.root,r),childFactory:c=>I.cloneElement(c,{classNames:u}),role:"presentation",children:D.jsx(_fe,L({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const fre=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Wl();return I.useCallback(u=>qp({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s}})!==null,[l,e,t,n,r,i,o,a,s])},oQe=e=>At("MuiDayCalendar",e);_t("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const aQe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],sQe=["ownerState"],lQe=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"]},oQe,t)},pre=(b1+jx*2)*6,uQe=Ee("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cQe=Ee("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),dQe=Ee(dr,{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})),fQe=Ee(dr,{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})),pQe=Ee(dr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>L({},e.typography.caption,{width:b1,height:b1,padding:0,margin:`0 ${jx}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),hQe=Ee("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:pre}),mQe=Ee(iQe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:pre}),gQe=Ee("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),bQe=Ee("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${jx}px 0`,display:"flex",justifyContent:"center"});function yQe(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=Ye(e,aQe);const{disabled:p,disableHighlightToday:h,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:b,components:O,componentsProps:y,slots:v,slotProps:S,timezone:k}=i,C=Rn(),w=mf(k),E=a!==null&&C.isSameDay(o,a),$=s.some(q=>C.isSameDay(q,o)),P=C.isSameDay(o,w),_=(t=(n=v==null?void 0:v.day)!=null?n:O==null?void 0:O.Day)!=null?t:JWe,B=kn({elementType:_,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:y==null?void 0:y.day,additionalProps:L({disableHighlightToday:h,showDaysOutsideCurrentMonth:b,role:"gridcell",isAnimating:m,"data-timestamp":C.toJsDate(o).valueOf()},d),ownerState:L({},i,{day:o,selected:$})}),U=Ye(B,sQe),V=I.useMemo(()=>p||l(o),[p,l,o]),z=I.useMemo(()=>C.getMonth(o)!==u,[C,o,u]),W=I.useMemo(()=>{const q=C.startOfMonth(C.setMonth(o,u));return b?C.isSameDay(o,C.startOfWeek(q)):C.isSameDay(o,q)},[u,o,b,C]),X=I.useMemo(()=>{const q=C.endOfMonth(C.setMonth(o,u));return b?C.isSameDay(o,C.endOfWeek(q)):C.isSameDay(o,q)},[u,o,b,C]);return D.jsx(_,L({},U,{day:o,disabled:V,autoFocus:c&&E,today:P,outsideCurrentMonth:z,isFirstVisibleCell:W,isLastVisibleCell:X,selected:$,tabIndex:E?0:-1,"aria-selected":$,"aria-current":P?"date":void 0}))}function OQe(e){const t=mt({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:o,focusedDay:a,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:d,renderLoading:p=()=>D.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:m,disablePast:b,disableFuture:O,minDate:y,maxDate:v,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,dayOfWeekFormatter:w,hasFocus:E,onFocusedViewChange:$,gridLabelId:P,displayWeekNumber:_,fixedWeekNumber:B,autoFocus:U,timezone:V}=t,z=mf(V),W=Rn(),X=lQe(t),Y=ci().direction==="rtl",Z=w||((Be,re)=>W.format(re,"weekdayShort").charAt(0).toUpperCase()),j=fre({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,minDate:y,maxDate:v,disablePast:b,disableFuture:O,timezone:V}),se=zi(),[ve,G]=Ji({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[ce,ge]=I.useState(()=>a||z),ue=jt(Be=>{c||l(Be)}),xe=Be=>{j(Be)||(n(Be),ge(Be),$==null||$(!0),G(!0))},Ne=jt((Be,re)=>{switch(Be.key){case"ArrowUp":xe(W.addDays(re,-7)),Be.preventDefault();break;case"ArrowDown":xe(W.addDays(re,7)),Be.preventDefault();break;case"ArrowLeft":{const ee=W.addDays(re,Y?1:-1),J=W.addMonths(re,Y?1:-1),Re=ty({utils:W,date:ee,minDate:Y?ee:W.startOfMonth(J),maxDate:Y?W.endOfMonth(J):ee,isDateDisabled:j,timezone:V});xe(Re||ee),Be.preventDefault();break}case"ArrowRight":{const ee=W.addDays(re,Y?-1:1),J=W.addMonths(re,Y?-1:1),Re=ty({utils:W,date:ee,minDate:Y?W.startOfMonth(J):ee,maxDate:Y?ee:W.endOfMonth(J),isDateDisabled:j,timezone:V});xe(Re||ee),Be.preventDefault();break}case"Home":xe(W.startOfWeek(re)),Be.preventDefault();break;case"End":xe(W.endOfWeek(re)),Be.preventDefault();break;case"PageUp":xe(W.addMonths(re,1)),Be.preventDefault();break;case"PageDown":xe(W.addMonths(re,-1)),Be.preventDefault();break}}),Ve=jt((Be,re)=>xe(re)),Je=jt((Be,re)=>{ve&&W.isSameDay(ce,re)&&($==null||$(!1))}),Me=W.getMonth(i),Ge=I.useMemo(()=>o.filter(Be=>!!Be).map(Be=>W.startOfDay(Be)),[W,o]),ye=Me,ze=I.useMemo(()=>I.createRef(),[ye]),$e=W.startOfWeek(z),We=I.useMemo(()=>{const Be=W.startOfMonth(i),re=W.endOfMonth(i);return j(ce)||W.isAfterDay(ce,re)||W.isBeforeDay(ce,Be)?ty({utils:W,date:ce,minDate:Be,maxDate:re,disablePast:b,disableFuture:O,isDateDisabled:j,timezone:V}):ce},[i,O,b,ce,j,W,V]),dt=I.useMemo(()=>{const Be=W.setTimezone(i,V),re=W.getWeekArray(Be);let ee=W.addMonths(Be,1);for(;B&&re.length{re.length{var ee;const J=W.format(Be,"weekdayShort");return D.jsx(dQe,{variant:"caption",role:"columnheader","aria-label":W.format(W.addDays($e,re),"weekday"),className:X.weekDayLabel,children:(ee=Z==null?void 0:Z(J,Be))!=null?ee:J},J+re.toString())})]}),s?D.jsx(hQe,{className:X.loadingContainer,children:p()}):D.jsx(mQe,L({transKey:ye,onExited:u,reduceAnimations:d,slideDirection:h,className:Ke(r,X.slideTransition)},m,{nodeRef:ze,children:D.jsx(gQe,{ref:ze,role:"rowgroup",className:X.monthContainer,children:dt.map((Be,re)=>D.jsxs(bQe,{role:"row",className:X.weekContainer,"aria-rowindex":re+1,children:[_&&D.jsx(pQe,{className:X.weekNumber,role:"rowheader","aria-label":se.calendarWeekNumberAriaLabelText(W.getWeekNumber(Be[0])),children:se.calendarWeekNumberText(W.getWeekNumber(Be[0]))}),Be.map((ee,J)=>D.jsx(yQe,{parentProps:t,day:ee,selectedDays:Ge,focusableDay:We,onKeyDown:Ne,onFocus:Ve,onBlur:Je,onDaySelect:ue,isDateDisabled:j,currentMonthNumber:Me,isViewFocused:ve,"aria-colindex":J+1},ee.toString()))]},`week-${Be[0]}`))})}))]})}const vQe=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return L({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return L({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return L({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},EQe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:d,timezone:p}=e,h=mf(p),m=Rn(),b=I.useRef(vQe(!!c,a,m)).current,O=I.useMemo(()=>{let $=null;return n?$=n:r&&($=m.startOfMonth(r)),Bi.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:$,granularity:El.day})},[]),[y,v]=I.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:m.isValid(t)?t:h,currentMonth:m.startOfMonth(O),slideDirection:"left"}),S=I.useCallback($=>{v(L({type:"changeMonth"},$)),u&&u($.newMonth)},[u]),k=I.useCallback($=>{const P=$;m.isSameMonth(P,y.currentMonth)||S({newMonth:m.startOfMonth(P),direction:m.isAfterDay(P,y.currentMonth)?"left":"right"})},[y.currentMonth,S,m]),C=fre({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:p}),w=I.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),E=jt(($,P)=>{C($)||v({type:"changeFocusedDay",focusedDay:$,withoutMonthSwitchingAnimation:P})});return{referenceDate:O,calendarState:y,changeMonth:k,changeFocusedDay:E,isDateDisabled:C,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}},SQe=["props","getOpenDialogAriaText"],TQe=["ownerState"],wQe=["ownerState"],aF=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=Ye(e,SQe);const{slots:u,slotProps:c,className:d,sx:p,format:h,formatDensity:m,timezone:b,name:O,label:y,inputRef:v,readOnly:S,disabled:k,autoFocus:C,localeText:w,reduceAnimations:E}=a,$=Rn(),P=I.useRef(null),_=I.useRef(null),B=Fl(),U=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:V,actions:z,hasUIView:W,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:Z}=ore(L({},l,{props:a,inputRef:P,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=u.inputAdornment)!=null?r:eP,se=kn({elementType:j,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),ve=Ye(se,TQe),G=(i=u.openPickerButton)!=null?i:eo,ce=kn({elementType:G,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:k||S,onClick:V?z.onClose:z.onOpen,"aria-label":s(Z.value,$),edge:ve.position},ownerState:a}),ge=Ye(ce,wQe),ue=u.openPickerIcon,xe=u.field,Ne=kn({elementType:xe,externalSlotProps:c==null?void 0:c.field,additionalProps:L({},Z,U&&{id:B},{readOnly:S,disabled:k,className:d,sx:p,format:h,formatDensity:m,timezone:b,label:y,name:O,autoFocus:C&&!a.open,focused:V?!0:void 0}),ownerState:a});W&&(Ne.InputProps=L({},Ne.InputProps,{ref:_,[`${ve.position}Adornment`]:D.jsx(j,L({},ve,{children:D.jsx(G,L({},ge,{children:D.jsx(ue,L({},c==null?void 0:c.openPickerIcon))}))}))}));const Ve=L({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Ne.slots),Je=(o=u.layout)!=null?o:lre,Me=yn(P,Ne.inputRef,v);let Ge=B;U&&(y?Ge=`${B}-label`:Ge=void 0);const ye=L({},c,{toolbar:L({},c==null?void 0:c.toolbar,{titleId:B}),popper:L({"aria-labelledby":Ge},c==null?void 0:c.popper)});return{renderPicker:()=>D.jsxs(Zne,{localeText:w,children:[D.jsx(xe,L({},Ne,{slots:Ve,slotProps:ye,inputRef:Me})),D.jsx(dWe,L({role:"dialog",placement:"bottom-start",anchorEl:_.current},z,{open:V,slots:u,slotProps:ye,shouldRestoreFocus:Y,reduceAnimations:E,children:D.jsx(Je,L({},X,ye==null?void 0:ye.layout,{slots:u,slotProps:ye,children:q()}))}))]})}},kQe=e=>{var t,n,r;const i=Rn(),o=Gp();return L({},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:jo(i,e.minDate,o.minDate),maxDate:jo(i,e.maxDate,o.maxDate)})},xQe=({props:e,inputRef:t})=>{const n=kQe(e),{forwardedProps:r,internalProps:i}=oF(n,"date");return iF({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:J$,validator:qp,valueType:"date"})},CQe=["ownerState"],sF=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:o,components:a,componentsProps:s})=>{var l,u,c,d,p,h;const m=zi(),b=(l=(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.ClearButton)!=null?l:eo,O=kn({elementType:b,externalSlotProps:(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:m.fieldClearLabel}}),y=Ye(O,CQe),v=(d=(p=i==null?void 0:i.clearIcon)!=null?p:a==null?void 0:a.ClearIcon)!=null?d:zHe,S=kn({elementType:v,externalSlotProps:(h=o==null?void 0:o.clearIcon)!=null?h:s==null?void 0:s.clearIcon,ownerState:{}}),k=L({},n,{endAdornment:D.jsxs(I.Fragment,{children:[e&&D.jsx(eP,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:D.jsx(b,L({},y,{onClick:r,children:D.jsx(v,L({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]})}),C=L({},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:k,fieldProps:C}},AQe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],_Qe=["inputRef"],RQe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],hre=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ye(a,AQe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:$p,O=kn({elementType:b,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ye(O,_Qe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=xQe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:P,onClear:_}=S,B=Ye(S,RQe),{InputProps:U,fieldProps:V}=sF({onClear:_,clearable:P,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return D.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))}),IQe=e=>At("MuiPickersFadeTransitionGroup",e);_t("MuiPickersFadeTransitionGroup",["root"]);const DQe=e=>{const{classes:t}=e;return wt({root:["root"]},IQe,t)},NQe=Ee(jN,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function mre(e){const t=mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=DQe(t),s=ci();return i?n:D.jsx(NQe,{className:Ke(a.root,r),children:D.jsx(_g,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function PQe(e){return At("MuiPickersMonth",e)}const SE=_t("MuiPickersMonth",["root","monthButton","disabled","selected"]),LQe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],MQe=e=>{const{disabled:t,selected:n,classes:r}=e;return wt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},PQe,r)},$Qe=Ee("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"})),FQe=Ee("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${SE.disabled}`]:t.disabled},{[`&.${SE.selected}`]:t.selected}]})(({theme:e})=>L({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})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${SE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${SE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),BQe=I.memo(function(t){const n=mt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:p,"aria-current":h,"aria-label":m}=n,b=Ye(n,LQe),O=I.useRef(null),y=MQe(n);return Jr(()=>{if(r){var v;(v=O.current)==null||v.focus()}},[r]),D.jsx($Qe,L({className:y.root,ownerState:n},b,{children:D.jsx(FQe,{ref:O,disabled:o,type:"button",role:"radio",tabIndex:o?-1:l,"aria-current":h,"aria-checked":a,"aria-label":m,onClick:v=>u(v,s),onKeyDown:v=>c(v,s),onFocus:v=>d(v,s),onBlur:v=>p(v,s),className:y.monthButton,ownerState:n,children:i})}))});function UQe(e){return At("MuiMonthCalendar",e)}_t("MuiMonthCalendar",["root"]);const jQe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],zQe=e=>{const{classes:t}=e;return wt({root:["root"]},UQe,t)};function VQe(e,t){const n=Rn(),r=Gp(),i=mt({props:e,name:t});return L({disableFuture:!1,disablePast:!1},i,{minDate:jo(n,i.minDate,r.minDate),maxDate:jo(n,i.maxDate,r.maxDate)})}const HQe=Ee("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:zx,boxSizing:"border-box"}),WQe=I.forwardRef(function(t,n){const r=VQe(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:p,onChange:h,shouldDisableMonth:m,readOnly:b,disableHighlightToday:O,autoFocus:y=!1,onMonthFocus:v,hasFocus:S,onFocusedViewChange:k,monthsPerRow:C=3,timezone:w,gridLabelId:E}=r,$=Ye(r,jQe),{value:P,handleValueChange:_,timezone:B}=Jg({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,onChange:h,valueManager:Bi}),U=mf(B),V=Ag(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:P,utils:z,props:r,timezone:B,referenceDate:s,granularity:El.month}),[]),X=r,q=zQe(X),Y=I.useMemo(()=>z.getMonth(U),[z,U]),Z=I.useMemo(()=>P!=null?z.getMonth(P):O?null:z.getMonth(W),[P,z,O,W]),[j,se]=I.useState(()=>Z||Y),[ve,G]=Ji({name:"MonthCalendar",state:"hasFocus",controlled:S,default:y??!1}),ce=jt(Me=>{G(Me),k&&k(Me)}),ge=I.useCallback(Me=>{const Ge=z.startOfMonth(c&&z.isAfter(U,p)?U:p),ye=z.startOfMonth(u&&z.isBefore(U,d)?U:d),ze=z.startOfMonth(Me);return z.isBefore(ze,Ge)||z.isAfter(ze,ye)?!0:m?m(ze):!1},[u,c,d,p,U,m,z]),ue=jt((Me,Ge)=>{if(b)return;const ye=z.setMonth(P??W,Ge);_(ye)}),xe=jt(Me=>{ge(z.setMonth(P??W,Me))||(se(Me),ce(!0),v&&v(Me))});I.useEffect(()=>{se(Me=>Z!==null&&Me!==Z?Z:Me)},[Z]);const Ne=jt((Me,Ge)=>{switch(Me.key){case"ArrowUp":xe((12+Ge-3)%12),Me.preventDefault();break;case"ArrowDown":xe((12+Ge+3)%12),Me.preventDefault();break;case"ArrowLeft":xe((12+Ge+(V.direction==="ltr"?-1:1))%12),Me.preventDefault();break;case"ArrowRight":xe((12+Ge+(V.direction==="ltr"?1:-1))%12),Me.preventDefault();break}}),Ve=jt((Me,Ge)=>{xe(Ge)}),Je=jt((Me,Ge)=>{j===Ge&&ce(!1)});return D.jsx(HQe,L({ref:n,className:Ke(q.root,i),ownerState:X,role:"radiogroup","aria-labelledby":E},$,{children:Z$(z,P??W).map(Me=>{const Ge=z.getMonth(Me),ye=z.format(Me,"monthShort"),ze=z.format(Me,"month"),$e=Ge===Z,We=l||ge(Me);return D.jsx(BQe,{selected:$e,value:Ge,onClick:ue,onKeyDown:Ne,autoFocus:ve&&Ge===j,disabled:We,tabIndex:Ge===j?0:-1,onFocus:Ve,onBlur:Je,"aria-current":Y===Ge?"date":void 0,"aria-label":ze,monthsPerRow:C,children:ye},ye)})}))});function QQe(e){return At("MuiPickersYear",e)}const TE=_t("MuiPickersYear",["root","yearButton","selected","disabled"]),YQe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],GQe=e=>{const{disabled:t,selected:n,classes:r}=e;return wt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},QQe,r)},qQe=Ee("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"})),ZQe=Ee("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${TE.disabled}`]:t.disabled},{[`&.${TE.selected}`]:t.selected}]})(({theme:e})=>L({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})`:cn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${TE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${TE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),XQe=I.memo(function(t){const n=mt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":m}=n,b=Ye(n,YQe),O=I.useRef(null),y=GQe(n);return I.useEffect(()=>{r&&O.current.focus()},[r]),D.jsx(qQe,L({className:Ke(y.root,i),ownerState:n},b,{children:D.jsx(ZQe,{ref:O,disabled:a,type:"button",role:"radio",tabIndex:a?-1:u,"aria-current":m,"aria-checked":s,onClick:v=>c(v,l),onKeyDown:v=>d(v,l),onFocus:v=>p(v,l),onBlur:v=>h(v,l),className:y.yearButton,ownerState:n,children:o})}))});function KQe(e){return At("MuiYearCalendar",e)}_t("MuiYearCalendar",["root"]);const JQe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],eYe=e=>{const{classes:t}=e;return wt({root:["root"]},KQe,t)};function tYe(e,t){var n;const r=Rn(),i=Gp(),o=mt({props:e,name:t});return L({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:jo(r,o.minDate,i.minDate),maxDate:jo(r,o.maxDate,i.maxDate)})}const nYe=Ee("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:zx,maxHeight:ZHe,boxSizing:"border-box",position:"relative"}),rYe=I.forwardRef(function(t,n){const r=tYe(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:p,minDate:h,onChange:m,readOnly:b,shouldDisableYear:O,disableHighlightToday:y,onYearFocus:v,hasFocus:S,onFocusedViewChange:k,yearsPerRow:C,timezone:w,gridLabelId:E}=r,$=Ye(r,JQe),{value:P,handleValueChange:_,timezone:B}=Jg({name:"YearCalendar",timezone:w,value:a,defaultValue:s,onChange:m,valueManager:Bi}),U=mf(B),V=Ag(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:P,utils:z,props:r,timezone:B,referenceDate:l,granularity:El.year}),[]),X=r,q=eYe(X),Y=I.useMemo(()=>z.getYear(U),[z,U]),Z=I.useMemo(()=>P!=null?z.getYear(P):y?null:z.getYear(W),[P,z,y,W]),[j,se]=I.useState(()=>Z||Y),[ve,G]=Ji({name:"YearCalendar",state:"hasFocus",controlled:S,default:i??!1}),ce=jt(ye=>{G(ye),k&&k(ye)}),ge=I.useCallback(ye=>{if(d&&z.isBeforeYear(ye,U)||c&&z.isAfterYear(ye,U)||h&&z.isBeforeYear(ye,h)||p&&z.isAfterYear(ye,p))return!0;if(!O)return!1;const ze=z.startOfYear(ye);return O(ze)},[c,d,p,h,U,O,z]),ue=jt((ye,ze)=>{if(b)return;const $e=z.setYear(P??W,ze);_($e)}),xe=jt(ye=>{ge(z.setYear(P??W,ye))||(se(ye),ce(!0),v==null||v(ye))});I.useEffect(()=>{se(ye=>Z!==null&&ye!==Z?Z:ye)},[Z]);const Ne=jt((ye,ze)=>{switch(ye.key){case"ArrowUp":xe(ze-C),ye.preventDefault();break;case"ArrowDown":xe(ze+C),ye.preventDefault();break;case"ArrowLeft":xe(ze+(V.direction==="ltr"?-1:1)),ye.preventDefault();break;case"ArrowRight":xe(ze+(V.direction==="ltr"?1:-1)),ye.preventDefault();break}}),Ve=jt((ye,ze)=>{xe(ze)}),Je=jt((ye,ze)=>{j===ze&&ce(!1)}),Me=I.useRef(null),Ge=yn(n,Me);return I.useEffect(()=>{if(i||Me.current===null)return;const ye=Me.current.querySelector('[tabindex="0"]');if(!ye)return;const ze=ye.offsetHeight,$e=ye.offsetTop,We=Me.current.clientHeight,dt=Me.current.scrollTop,Be=$e+ze;ze>We||$e{const ze=z.getYear(ye),$e=ze===Z,We=u||ge(ye);return D.jsx(XQe,{selected:$e,value:ze,onClick:ue,onKeyDown:Ne,autoFocus:ve&&ze===j,disabled:We,tabIndex:ze===j?0:-1,onFocus:Ve,onBlur:Je,"aria-current":Y===ze?"date":void 0,yearsPerRow:C,children:z.format(ye,"year")},z.format(ye,"year"))})}))}),iYe=e=>At("MuiPickersCalendarHeader",e),oYe=_t("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),aYe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],sYe=["ownerState"],lYe=e=>{const{classes:t}=e;return wt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},iYe,t)},uYe=Ee("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}),cYe=Ee("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>L({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),dYe=Ee("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),fYe=Ee(eo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>L({marginRight:"auto"},e.view==="year"&&{[`.${oYe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),pYe=Ee(MHe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),hYe=I.forwardRef(function(t,n){var r,i,o,a;const s=zi(),l=Rn(),u=mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:d,components:p,currentMonth:h,disabled:m,disableFuture:b,disablePast:O,maxDate:y,minDate:v,onMonthChange:S,onViewChange:k,view:C,reduceAnimations:w,views:E,labelId:$,className:P,timezone:_}=u,B=Ye(u,aYe),U=u,V=lYe(u),z=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:fYe,W=kn({elementType:z,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(C)},ownerState:U,className:V.switchViewButton}),X=(o=(a=c==null?void 0:c.switchViewIcon)!=null?a:p==null?void 0:p.SwitchViewIcon)!=null?o:pYe,q=kn({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:V.switchViewIcon}),Y=Ye(q,sYe),Z=()=>S(l.addMonths(h,1),"left"),j=()=>S(l.addMonths(h,-1),"right"),se=VWe(h,{disableFuture:b,maxDate:y,timezone:_}),ve=HWe(h,{disablePast:O,minDate:v,timezone:_}),G=()=>{if(!(E.length===1||!k||m))if(E.length===2)k(E.find(ce=>ce!==C)||E[0]);else{const ce=E.indexOf(C)!==0?0:1;k(E[ce])}};return E.length===1&&E[0]==="year"?null:D.jsxs(uYe,L({},B,{ownerState:U,className:Ke(P,V.root),ref:n,children:[D.jsxs(cYe,{role:"presentation",onClick:G,ownerState:U,"aria-live":"polite",className:V.labelContainer,children:[D.jsx(mre,{reduceAnimations:w,transKey:l.format(h,"monthAndYear"),children:D.jsx(dYe,{id:$,ownerState:U,className:V.label,children:l.format(h,"monthAndYear")})}),E.length>1&&!m&&D.jsx(z,L({},W,{children:D.jsx(X,L({},Y))}))]}),D.jsx(_g,{in:C==="day",children:D.jsx(tre,{slots:c,slotProps:d,onGoToPrevious:j,isPreviousDisabled:ve,previousLabel:s.previousMonth,onGoToNext:Z,isNextDisabled:se,nextLabel:s.nextMonth})})]}))}),Qx=Ee("div")({overflow:"hidden",width:zx,maxHeight:Vx,display:"flex",flexDirection:"column",margin:"0 auto"}),mYe=e=>At("MuiDateCalendar",e);_t("MuiDateCalendar",["root","viewTransitionContainer"]);const gYe=["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"],bYe=e=>{const{classes:t}=e;return wt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},mYe,t)};function yYe(e,t){var n,r,i,o,a,s,l;const u=Rn(),c=Gp(),d=rre(),p=mt({props:e,name:t});return L({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(i=p.disableFuture)!=null?i:!1,openTo:(o=p.openTo)!=null?o:"day",views:(a=p.views)!=null?a:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:d,renderLoading:(l=p.renderLoading)!=null?l:()=>D.jsx("span",{children:"..."}),minDate:jo(u,p.minDate,c.minDate),maxDate:jo(u,p.maxDate,c.maxDate)})}const OYe=Ee(Qx,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Vx}),vYe=Ee(mre,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),gre=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=Fl(),l=yYe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:p,referenceDate:h,disableFuture:m,disablePast:b,defaultCalendarMonth:O,onChange:y,onYearChange:v,onMonthChange:S,reduceAnimations:k,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,view:$,views:P,openTo:_,className:B,disabled:U,readOnly:V,minDate:z,maxDate:W,disableHighlightToday:X,focusedView:q,onFocusedViewChange:Y,showDaysOutsideCurrentMonth:Z,fixedWeekNumber:j,dayOfWeekFormatter:se,components:ve,componentsProps:G,slots:ce,slotProps:ge,loading:ue,renderLoading:xe,displayWeekNumber:Ne,yearsPerRow:Ve,monthsPerRow:Je,timezone:Me}=l,Ge=Ye(l,gYe),{value:ye,handleValueChange:ze,timezone:$e}=Jg({name:"DateCalendar",timezone:Me,value:d,defaultValue:p,onChange:y,valueManager:Bi}),{view:We,setView:dt,focusedView:Be,setFocusedView:re,goToNextView:ee,setValueAndGoToNextView:J}=jO({view:$,views:P,openTo:_,onChange:ze,onViewChange:c,autoFocus:u,focusedView:q,onFocusedViewChange:Y}),{referenceDate:Re,calendarState:Le,changeFocusedDay:De,changeMonth:ie,handleChangeMonth:fe,isDateDisabled:de,onMonthSwitchingAnimationEnd:Oe}=EQe({value:ye,defaultCalendarMonth:O,referenceDate:h,reduceAnimations:k,onMonthChange:S,minDate:z,maxDate:W,shouldDisableDate:C,disablePast:b,disableFuture:m,timezone:$e}),Te=U&&ye||z,rt=U&&ye||W,pt=`${s}-grid-label`,xt=Be!==null,et=(r=(i=ce==null?void 0:ce.calendarHeader)!=null?i:ve==null?void 0:ve.CalendarHeader)!=null?r:hYe,vt=kn({elementType:et,externalSlotProps:(o=ge==null?void 0:ge.calendarHeader)!=null?o:G==null?void 0:G.calendarHeader,additionalProps:{views:P,view:We,currentMonth:Le.currentMonth,onViewChange:dt,onMonthChange:(_e,pe)=>fe({newMonth:_e,direction:pe}),minDate:Te,maxDate:rt,disabled:U,disablePast:b,disableFuture:m,reduceAnimations:k,timezone:$e,labelId:pt,slots:ce,slotProps:ge},ownerState:l}),qe=jt(_e=>{const pe=a.startOfMonth(_e),lt=a.endOfMonth(_e),at=de(_e)?ty({utils:a,date:_e,minDate:a.isBefore(z,pe)?pe:z,maxDate:a.isAfter(W,lt)?lt:W,disablePast:b,disableFuture:m,isDateDisabled:de,timezone:$e}):_e;at?(J(at,"finish"),S==null||S(pe)):(ee(),ie(pe)),De(at,!0)}),it=jt(_e=>{const pe=a.startOfYear(_e),lt=a.endOfYear(_e),at=de(_e)?ty({utils:a,date:_e,minDate:a.isBefore(z,pe)?pe:z,maxDate:a.isAfter(W,lt)?lt:W,disablePast:b,disableFuture:m,isDateDisabled:de,timezone:$e}):_e;at?(J(at,"finish"),v==null||v(at)):(ee(),ie(pe)),De(at,!0)}),Et=jt(_e=>ze(_e&&oD(a,_e,ye??Re),"finish",We));I.useEffect(()=>{ye!=null&&a.isValid(ye)&&ie(ye)},[ye]);const Nt=l,on=bYe(Nt),dn={disablePast:b,disableFuture:m,maxDate:W,minDate:z},pn={disableHighlightToday:X,readOnly:V,disabled:U,timezone:$e,gridLabelId:pt},zn=I.useRef(We);I.useEffect(()=>{zn.current!==We&&(Be===zn.current&&re(We,!0),zn.current=We)},[Be,re,We]);const Se=I.useMemo(()=>[ye],[ye]);return D.jsxs(OYe,L({ref:n,className:Ke(on.root,B),ownerState:Nt},Ge,{children:[D.jsx(et,L({},vt)),D.jsx(vYe,{reduceAnimations:k,className:on.viewTransitionContainer,transKey:We,ownerState:Nt,children:D.jsxs("div",{children:[We==="year"&&D.jsx(rYe,L({},dn,pn,{value:ye,onChange:it,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("year",_e),yearsPerRow:Ve,referenceDate:Re})),We==="month"&&D.jsx(WQe,L({},dn,pn,{hasFocus:xt,className:B,value:ye,onChange:qe,shouldDisableMonth:w,onFocusedViewChange:_e=>re("month",_e),monthsPerRow:Je,referenceDate:Re})),We==="day"&&D.jsx(OQe,L({},Le,dn,pn,{onMonthSwitchingAnimationEnd:Oe,onFocusedDayChange:De,reduceAnimations:k,selectedDays:Se,onSelectedDaysChange:Et,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("day",_e),showDaysOutsideCurrentMonth:Z,fixedWeekNumber:j,dayOfWeekFormatter:se,displayWeekNumber:Ne,components:ve,componentsProps:G,slots:ce,slotProps:ge,loading:ue,renderLoading:xe}))]})})]}))}),Zs=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:y,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:P,slots:_,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:W,disabled:X,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:Y,sx:Z,autoFocus:j,fixedWeekNumber:se,displayWeekNumber:ve,timezone:G})=>D.jsx(gre,{view:e,onViewChange:t,views:n.filter(Tm),focusedView:r&&Tm(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:y,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:P,slots:_,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:W,disabled:X,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:Y,sx:Z,autoFocus:j,fixedWeekNumber:se,displayWeekNumber:ve,timezone:G}),bre=I.forwardRef(function(t,n){var r,i,o,a;const s=zi(),l=Rn(),u=Jne(t,"MuiDesktopDatePicker"),c=L({day:Zs,month:Zs,year:Zs},u.viewRenderers),d=L({},u,{viewRenderers:c,format:m1(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:L({openPickerIcon:ere,field:hre},u.slots),slotProps:L({},u.slotProps,{field:h=>{var m;return L({},af((m=u.slotProps)==null?void 0:m.field,h),e0(u),{ref:n})},toolbar:L({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=aF({props:d,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:qp});return p()});bre.propTypes={autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,minDate:Q.any,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","month","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","month","year"]),viewRenderers:Q.shape({day:Q.func,month:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","month","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const EYe=["props","getOpenDialogAriaText"],lF=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=Ye(e,EYe);const{slots:s,slotProps:l,className:u,sx:c,format:d,formatDensity:p,timezone:h,name:m,label:b,inputRef:O,readOnly:y,disabled:v,localeText:S}=i,k=Rn(),C=I.useRef(null),w=Fl(),E=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:P,layoutProps:_,renderCurrentView:B,fieldProps:U}=ore(L({},a,{props:i,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=s.field,z=kn({elementType:V,externalSlotProps:l==null?void 0:l.field,additionalProps:L({},U,E&&{id:w},!(v||y)&&{onClick:P.onOpen,onKeyDown:tWe(P.onOpen)},{readOnly:y??!0,disabled:v,className:u,sx:c,format:d,formatDensity:p,timezone:h,label:b,name:m}),ownerState:i});z.inputProps=L({},z.inputProps,{"aria-label":o(U.value,k)});const W=L({textField:s.textField},z.slots),X=(r=s.layout)!=null?r:lre,q=yn(C,z.inputRef,O);let Y=w;E&&(b?Y=`${w}-label`:Y=void 0);const Z=L({},l,{toolbar:L({},l==null?void 0:l.toolbar,{titleId:w}),mobilePaper:L({"aria-labelledby":Y},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>D.jsxs(Zne,{localeText:S,children:[D.jsx(V,L({},z,{slots:W,slotProps:Z,inputRef:q})),D.jsx(JHe,L({},P,{open:$,slots:s,slotProps:Z,children:D.jsx(X,L({},_,Z==null?void 0:Z.layout,{slots:s,slotProps:Z,children:B()}))}))]})}},uF=I.forwardRef(function(t,n){var r,i,o;const a=zi(),s=Rn(),l=Jne(t,"MuiMobileDatePicker"),u=L({day:Zs,month:Zs,year:Zs},l.viewRenderers),c=L({},l,{viewRenderers:u,format:m1(s,l,!1),slots:L({field:hre},l.slots),slotProps:L({},l.slotProps,{field:p=>{var h;return L({},af((h=l.slotProps)==null?void 0:h.field,p),e0(l),{ref:n})},toolbar:L({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=lF({props:c,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:qp});return d()});uF.propTypes={autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,minDate:Q.any,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","month","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","month","year"]),viewRenderers:Q.shape({day:Q.func,month:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","month","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const SYe=["desktopModeMediaQuery"],TYe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=tF}=r,o=Ye(r,SYe);return Ig(i,{defaultMatches:!0})?D.jsx(bre,L({ref:n},o)):D.jsx(uF,L({ref:n},o))}),wYe=e=>{var t,n,r,i,o,a,s,l;const u=Rn(),c=Gp(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return L({},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:jo(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:jo(u,(a=e.maxDateTime)!=null?a:e.maxDate,c.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},kYe=({props:e,inputRef:t})=>{const n=wYe(e),{forwardedProps:r,internalProps:i}=oF(n,"date-time");return iF({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:J$,validator:Wx,valueType:"date-time"})},xYe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],CYe=["inputRef"],AYe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],yre=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ye(a,xYe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:$p,O=kn({elementType:b,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ye(O,CYe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=kYe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:P,onClear:_}=S,B=Ye(S,AYe),{InputProps:U,fieldProps:V}=sF({onClear:_,clearable:P,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return D.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function _Ye(e){return At("MuiDateTimePickerTabs",e)}_t("MuiDateTimePickerTabs",["root"]);const RYe=e=>Tm(e)?"date":"time",IYe=e=>e==="date"?"day":"hours",DYe=e=>{const{classes:t}=e;return wt({root:["root"]},_Ye,t)},NYe=Ee(eSe,{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}`,[`& .${QE.indicator}`]:{bottom:"auto",top:0}}})),PYe=function(t){const n=mt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=D.jsx(UHe,{}),onViewChange:i,timeIcon:o=D.jsx(jHe,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=zi(),u=DYe(n),c=(d,p)=>{i(IYe(p))};return s?null:D.jsxs(NYe,{ownerState:n,variant:"fullWidth",value:RYe(a),onChange:c,className:u.root,children:[D.jsx(r7,{value:"date","aria-label":l.dateTableLabel,icon:D.jsx(I.Fragment,{children:r})}),D.jsx(r7,{value:"time","aria-label":l.timeTableLabel,icon:D.jsx(I.Fragment,{children:o})})]})};function LYe(e){return At("MuiDateTimePickerToolbar",e)}const D2=_t("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),MYe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],$Ye=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,LYe,t)},Ore=Ee(eF,{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"}));Ore.propTypes={as:Q.elementType,classes:Q.object,className:Q.string,isLandscape:Q.bool.isRequired,isMobileKeyboardViewOpen:Q.bool,landscapeDirection:Q.oneOf(["column","row"]),ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),toggleMobileKeyboardView:Q.func,toolbarTitle:Q.node,viewType:Q.oneOf(["date","time"])};const FYe=Ee("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),vre=Ee("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return L({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&L({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),BYe=Ee("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>L({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));vre.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const LV=Ee(nF,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),UYe=Ee("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${D2.ampmLabel}`]:t.ampmLabel},{[`&.${D2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${D2.ampmLabel}`]:{fontSize:17}}));function jYe(e){const t=mt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:d,disabled:p,readOnly:h,toolbarVariant:m="mobile"}=t,b=Ye(t,MYe),O=t,y=Rn(),{meridiemMode:v,handleMeridiemChange:S}=Hx(i,n,o),k=!!(n&&!r),C=m==="desktop",w=zi(),E=ci(),$=$Ye(L({},O,{theme:E})),P=B=>n?y.format(B,"hours12h"):y.format(B,"hours24h"),_=I.useMemo(()=>i?u?y.formatByString(i,u):y.format(i,"shortDate"):c,[i,u,c,y]);return D.jsxs(Ore,L({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:s,className:$.root},b,{ownerState:O,children:[D.jsxs(FYe,{className:$.dateContainer,ownerState:O,children:[d.includes("year")&&D.jsx(Ka,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?y.format(i,"year"):"–"}),d.includes("day")&&D.jsx(Ka,{tabIndex:-1,variant:C?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:_})]}),D.jsxs(vre,{className:$.timeContainer,ownerState:O,children:[D.jsxs(BYe,{className:$.timeDigitsContainer,ownerState:O,children:[d.includes("hours")&&D.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?mb:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?P(i):"--"}),d.includes("minutes")&&D.jsxs(I.Fragment,{children:[D.jsx(LV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),D.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?mb:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?y.format(i,"minutes"):"--"})]}),d.includes("seconds")&&D.jsxs(I.Fragment,{children:[D.jsx(LV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),D.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?mb:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?y.format(i,"seconds"):"--"})]})]}),k&&!C&&D.jsxs(UYe,{className:$.ampmSelection,ownerState:O,children:[D.jsx(Ka,{variant:"subtitle2",selected:v==="am",typographyClassName:$.ampmLabel,value:xl(y,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),D.jsx(Ka,{variant:"subtitle2",selected:v==="pm",typographyClassName:$.ampmLabel,value:xl(y,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&C&&D.jsx(Ka,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&v?xl(y,v):"--",width:mb})]})]}))}function Ere(e,t){var n,r,i,o,a,s,l,u,c,d,p;const h=Rn(),m=Gp(),b=mt({props:e,name:t}),O=(n=b.ampm)!=null?n:h.is12HourCycleInCurrentLocale(),y=I.useMemo(()=>{var k;return((k=b.localeText)==null?void 0:k.toolbarTitle)==null?b.localeText:L({},b.localeText,{dateTimePickerToolbarTitle:b.localeText.toolbarTitle})},[b.localeText]),v=(r=b.slots)!=null?r:UO(b.components),S=(i=b.slotProps)!=null?i:b.componentsProps;return L({},b,q$({views:b.views,openTo:b.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:O,localeText:y,orientation:(o=b.orientation)!=null?o:"portrait",disableIgnoringDatePartForTimeValidation:(a=b.disableIgnoringDatePartForTimeValidation)!=null?a:!!(b.minDateTime||b.maxDateTime||b.disablePast||b.disableFuture),disableFuture:(s=b.disableFuture)!=null?s:!1,disablePast:(l=b.disablePast)!=null?l:!1,minDate:jo(h,(u=b.minDateTime)!=null?u:b.minDate,m.minDate),maxDate:jo(h,(c=b.maxDateTime)!=null?c:b.maxDate,m.maxDate),minTime:(d=b.minDateTime)!=null?d:b.minTime,maxTime:(p=b.maxDateTime)!=null?p:b.maxTime,slots:L({toolbar:jYe,tabs:PYe},v),slotProps:L({},S,{toolbar:L({ampm:O},S==null?void 0:S.toolbar)})})}function zYe(e){return At("MuiMultiSectionDigitalClock",e)}_t("MuiMultiSectionDigitalClock",["root"]);function VYe(e){return At("MuiMultiSectionDigitalClockSection",e)}const HYe=_t("MuiMultiSectionDigitalClockSection",["root","item"]),WYe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],QYe=e=>{const{classes:t}=e;return wt({root:["root"],item:["item"]},VYe,t)},YYe=Ee(K1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:nre,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)"}})),GYe=Ee(Sp,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:mb,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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})`:cn(e.palette.primary.main,e.palette.action.focusOpacity)}})),qYe=I.forwardRef(function(t,n){var r;const i=I.useRef(null),o=yn(n,i),a=I.useRef(null),s=mt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:d,readOnly:p,items:h,active:m,slots:b,slotProps:O,skipDisabled:y}=s,v=Ye(s,WYe),S=I.useMemo(()=>L({},s,{alreadyRendered:!!i.current}),[s]),k=QYe(S),C=(r=b==null?void 0:b.digitalClockSectionItem)!=null?r:GYe;return I.useEffect(()=>{if(i.current===null)return;const w=i.current.querySelector('[role="option"][aria-selected="true"]');if(m&&l&&w&&w.focus(),!w||a.current===w)return;a.current=w;const E=w.offsetTop;i.current.scrollTop=E-4}),D.jsx(YYe,L({ref:o,className:Ke(k.root,c),ownerState:S,autoFocusItem:l&&m,role:"listbox"},v,{children:h.map(w=>{var E,$;if(y&&(E=w.isDisabled)!=null&&E.call(w,w.value))return null;const P=w.isSelected(w.value);return D.jsx(C,L({onClick:()=>!p&&u(w.value),selected:P,disabled:d||(($=w.isDisabled)==null?void 0:$.call(w,w.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":w.ariaLabel,"aria-selected":P,className:k.item},O==null?void 0:O.digitalClockSectionItem,{children:w.label}),w.label)})}))}),ZYe=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],u=d=>s===null?!1:r?d===12?s===12||s===0:s===d||s-12===d:s===d,c=r?11:23;for(let d=0;d<=c;d+=a){let p=n.format(n.setHours(e,d),r?"hours12h":"hours24h");const h=o(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:d,label:p,isSelected:u,isDisabled:i,ariaLabel:h})}return l},MV=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=l=>e===null?!1:a&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,u)=>{const c=r*u;return{value:c,label:t.formatNumber(i(c)),isDisabled:n,isSelected:s,ariaLabel:o(c.toString())}})]},cF=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=I.useMemo(()=>Bi.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:El.day,timezone:i,getTodayDate:()=>X$(n,i,"date")}),[]);return e??o},XYe=["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"],KYe=e=>{const{classes:t}=e;return wt({root:["root"]},zYe,t)},JYe=Ee(Qx,{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}`})),eGe=I.forwardRef(function(t,n){const r=Rn(),i=mt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:O,minTime:y,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,onChange:E,view:$,views:P=["hours","minutes"],openTo:_,onViewChange:B,focusedView:U,onFocusedViewChange:V,className:z,disabled:W,readOnly:X,skipDisabled:q=!1,timezone:Y}=i,Z=Ye(i,XYe),{value:j,handleValueChange:se,timezone:ve}=Jg({name:"MultiSectionDigitalClock",timezone:Y,value:p,defaultValue:h,onChange:E,valueManager:Bi}),G=zi(),ce=mf(ve),ge=I.useMemo(()=>L({hours:1,minutes:5,seconds:5},a),[a]),ue=cF({value:j,referenceDate:m,utils:r,props:i,timezone:ve}),xe=jt((ee,J,Re)=>se(ee,J,Re)),Ne=I.useMemo(()=>!o||!P.includes("hours")||P.includes("meridiem")?P:[...P,"meridiem"],[o,P]),{view:Ve,setValueAndGoToNextView:Je,focusedView:Me}=jO({view:$,views:Ne,openTo:_,onViewChange:B,onChange:xe,focusedView:U,onFocusedViewChange:V}),Ge=jt(ee=>{Je(ee,"finish","meridiem")}),{meridiemMode:ye,handleMeridiemChange:ze}=Hx(ue,o,Ge,"finish"),$e=I.useCallback((ee,J)=>{const Re=BO(b,r),Le=J==="hours"||J==="minutes"&&Ne.includes("seconds"),De=({start:fe,end:de})=>!(y&&Re(y,de)||O&&Re(fe,O)||v&&Re(fe,ce)||S&&Re(ce,Le?de:fe)),ie=(fe,de=1)=>{if(fe%de!==0||C!=null&&C(fe,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ue,fe),"hours");case"minutes":return!w(r.setMinutes(ue,fe),"minutes");case"seconds":return!w(r.setSeconds(ue,fe),"seconds");default:return!1}return!0};switch(J){case"hours":{const fe=g1(ee,ye,o),de=r.setHours(ue,fe),Oe=r.setSeconds(r.setMinutes(de,0),0),Te=r.setSeconds(r.setMinutes(de,59),59);return!De({start:Oe,end:Te})||!ie(fe)}case"minutes":{const fe=r.setMinutes(ue,ee),de=r.setSeconds(fe,0),Oe=r.setSeconds(fe,59);return!De({start:de,end:Oe})||!ie(ee,k)}case"seconds":{const fe=r.setSeconds(ue,ee);return!De({start:fe,end:fe})||!ie(ee)}default:throw new Error("not supported")}},[o,ue,b,O,ye,y,k,C,w,r,v,S,ce,Ne]),We=I.useCallback(ee=>{switch(ee){case"hours":return{onChange:J=>{const Re=g1(J,ye,o);Je(r.setHours(ue,Re),"finish","hours")},items:ZYe({now:ce,value:j,ampm:o,utils:r,isDisabled:J=>W||$e(J,"hours"),timeStep:ge.hours,resolveAriaLabel:G.hoursClockNumberText})};case"minutes":return{onChange:J=>{Je(r.setMinutes(ue,J),"finish","minutes")},items:MV({value:r.getMinutes(ue),utils:r,isDisabled:J=>W||$e(J,"minutes"),resolveLabel:J=>r.format(r.setMinutes(ce,J),"minutes"),timeStep:ge.minutes,hasValue:!!j,resolveAriaLabel:G.minutesClockNumberText})};case"seconds":return{onChange:J=>{Je(r.setSeconds(ue,J),"finish","seconds")},items:MV({value:r.getSeconds(ue),utils:r,isDisabled:J=>W||$e(J,"seconds"),resolveLabel:J=>r.format(r.setSeconds(ce,J),"seconds"),timeStep:ge.seconds,hasValue:!!j,resolveAriaLabel:G.secondsClockNumberText})};case"meridiem":{const J=xl(r,"am"),Re=xl(r,"pm");return{onChange:ze,items:[{value:"am",label:J,isSelected:()=>!!j&&ye==="am",ariaLabel:J},{value:"pm",label:Re,isSelected:()=>!!j&&ye==="pm",ariaLabel:Re}]}}default:throw new Error(`Unknown view: ${ee} found.`)}},[ce,j,o,r,ge.hours,ge.minutes,ge.seconds,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,ye,Je,ue,W,$e,ze]),dt=I.useMemo(()=>Ne.reduce((ee,J)=>L({},ee,{[J]:We(J)}),{}),[Ne,We]),Be=i,re=KYe(Be);return D.jsx(JYe,L({ref:n,className:Ke(re.root,z),ownerState:Be,role:"group"},Z,{children:Object.entries(dt).map(([ee,J])=>D.jsx(qYe,{items:J.items,onChange:J.onChange,active:Ve===ee,autoFocus:s??Me===ee,disabled:W,readOnly:X,slots:c??l,slotProps:d??u,skipDisabled:q,"aria-label":G.selectViewText(ee)},ee))}))}),tGe=Ee("div")({display:"flex",margin:"0 auto"});function nGe(e){return At("MuiTimeClock",e)}_t("MuiTimeClock",["root","arrowSwitcher"]);const vg=220,Iu=36,y1={x:vg/2,y:vg/2},Sre={x:y1.x,y:0},rGe=Sre.x-y1.x,iGe=Sre.y-y1.y,oGe=e=>e*(180/Math.PI),Tre=(e,t,n)=>{const r=t-y1.x,i=n-y1.y,o=Math.atan2(rGe,iGe)-Math.atan2(r,i);let a=oGe(o);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:s,distance:u}},aGe=(e,t,n=1)=>{const r=n*6;let{value:i}=Tre(r,e,t);return i=i*n%60,i},sGe=(e,t,n)=>{const{value:r,distance:i}=Tre(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return wt({root:["root"],thumb:["thumb"]},lGe,t)},dGe=Ee("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>L({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"])})),fGe=Ee("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>L({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Iu/2}px)`,border:`${(Iu-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function pGe(e){const t=mt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Ye(t,uGe),s=I.useRef(i);I.useEffect(()=>{s.current=i},[i]);const l=L({},t,{shouldAnimate:s.current!==i}),u=cGe(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*vg),transform:`rotateZ(${p}deg)`}};return D.jsx(dGe,L({style:c(),className:Ke(n,u.root),ownerState:l},a,{children:D.jsx(fGe,{ownerState:l,className:u.thumb})}))}function hGe(e){return At("MuiClock",e)}_t("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const mGe=e=>{const{classes:t}=e;return wt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},hGe,t)},gGe=Ee("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),bGe=Ee("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"}),yGe=Ee("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),OGe=Ee("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>L({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"}})),vGe=Ee("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%)"})),EGe=Ee(eo,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>L({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Iu},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}})),SGe=Ee(eo,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>L({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Iu},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}})),$V=Ee(dr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function TGe(e){const t=mt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:d,selectedId:p,type:h,viewValue:m,disabled:b,readOnly:O,className:y}=t,v=t,S=Rn(),k=zi(),C=I.useRef(!1),w=mGe(v),E=l(m,h),$=!n&&h==="hours"&&(m<1||m>12),P=(Z,j)=>{b||O||l(Z,h)||d(Z,j)},_=(Z,j)=>{let{offsetX:se,offsetY:ve}=Z;if(se===void 0){const ce=Z.target.getBoundingClientRect();se=Z.changedTouches[0].clientX-ce.left,ve=Z.changedTouches[0].clientY-ce.top}const G=h==="seconds"||h==="minutes"?aGe(se,ve,c):sGe(se,ve,!!n);P(G,j)},B=Z=>{C.current=!0,_(Z,"shallow")},U=Z=>{C.current&&(_(Z,"finish"),C.current=!1)},V=Z=>{Z.buttons>0&&_(Z.nativeEvent,"shallow")},z=Z=>{C.current&&(C.current=!1),_(Z.nativeEvent,"finish")},W=I.useMemo(()=>h==="hours"?!0:m%5===0,[h,m]),X=h==="minutes"?c:1,q=I.useRef(null);Jr(()=>{i&&q.current.focus()},[i]);const Y=Z=>{if(!C.current)switch(Z.key){case"Home":P(0,"partial"),Z.preventDefault();break;case"End":P(h==="minutes"?59:23,"partial"),Z.preventDefault();break;case"ArrowUp":P(m+X,"partial"),Z.preventDefault();break;case"ArrowDown":P(m-X,"partial"),Z.preventDefault();break}};return D.jsxs(gGe,{className:Ke(y,w.root),children:[D.jsxs(bGe,{className:w.clock,children:[D.jsx(OGe,{onTouchMove:B,onTouchEnd:U,onMouseUp:z,onMouseMove:V,ownerState:{disabled:b},className:w.squareMask}),!E&&D.jsxs(I.Fragment,{children:[D.jsx(vGe,{className:w.pin}),a!=null&&D.jsx(pGe,{type:h,viewValue:m,isInner:$,hasSelected:W})]}),D.jsx(yGe,{"aria-activedescendant":p,"aria-label":k.clockLabelText(h,a,S),ref:q,role:"listbox",onKeyDown:Y,tabIndex:0,className:w.wrapper,children:o})]}),n&&r&&D.jsxs(I.Fragment,{children:[D.jsx(EGe,{onClick:O?void 0:()=>s("am"),disabled:b||u===null,ownerState:v,className:w.amButton,title:xl(S,"am"),children:D.jsx($V,{variant:"caption",className:w.meridiemText,children:xl(S,"am")})}),D.jsx(SGe,{disabled:b||u===null,onClick:O?void 0:()=>s("pm"),ownerState:v,className:w.pmButton,title:xl(S,"pm"),children:D.jsx($V,{variant:"caption",className:w.meridiemText,children:xl(S,"pm")})})]})]})}function wGe(e){return At("MuiClockNumber",e)}const wE=_t("MuiClockNumber",["root","selected","disabled"]),kGe=["className","disabled","index","inner","label","selected"],xGe=e=>{const{classes:t,selected:n,disabled:r}=e;return wt({root:["root",n&&"selected",r&&"disabled"]},wGe,t)},CGe=Ee("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wE.disabled}`]:t.disabled},{[`&.${wE.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>L({height:Iu,width:Iu,position:"absolute",left:`calc((100% - ${Iu}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},[`&.${wE.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${wE.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function wre(e){const t=mt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Ye(t,kGe),u=t,c=xGe(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(vg-Iu-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return D.jsx(CGe,L({className:Ke(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${m+(vg-Iu)/2}px`},ownerState:u},l,{children:a}))}const AGe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?1:0,u=e?12:23,c=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=u;d+=1){let p=d.toString();d===0&&(p="00");const h=!e&&(d===0||d>12);p=o.formatNumber(p);const m=c(d);s.push(D.jsx(wre,{id:m?i:void 0,index:d,inner:h,selected:m,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},FV=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,s],l)=>{const u=a===t;return D.jsx(wre,{label:s,id:u?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},_Ge=["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"],RGe=e=>{const{classes:t}=e;return wt({root:["root"],arrowSwitcher:["arrowSwitcher"]},nGe,t)},IGe=Ee(Qx,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),DGe=Ee(tre,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),NGe=["hours","minutes"],PGe=I.forwardRef(function(t,n){const r=Rn(),i=mt({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:O,minTime:y,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,showViewSwitcher:E,onChange:$,view:P,views:_=NGe,openTo:B,onViewChange:U,focusedView:V,onFocusedViewChange:z,className:W,disabled:X,readOnly:q,timezone:Y}=i,Z=Ye(i,_Ge),j=c??UO(l),se=d??u,{value:ve,handleValueChange:G,timezone:ce}=Jg({name:"TimeClock",timezone:Y,value:p,defaultValue:h,onChange:$,valueManager:Bi}),ge=cF({value:ve,referenceDate:m,utils:r,props:i,timezone:ce}),ue=zi(),xe=mf(ce),{view:Ne,setView:Ve,previousView:Je,nextView:Me,setValueAndGoToNextView:Ge}=jO({view:P,views:_,openTo:B,onViewChange:U,onChange:G,focusedView:V,onFocusedViewChange:z}),{meridiemMode:ye,handleMeridiemChange:ze}=Hx(ge,o,Ge),$e=I.useCallback((ee,J)=>{const Re=BO(b,r),Le=J==="hours"||J==="minutes"&&_.includes("seconds"),De=({start:fe,end:de})=>!(y&&Re(y,de)||O&&Re(fe,O)||v&&Re(fe,xe)||S&&Re(xe,Le?de:fe)),ie=(fe,de=1)=>{if(fe%de!==0||C!=null&&C(fe,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ge,fe),"hours");case"minutes":return!w(r.setMinutes(ge,fe),"minutes");case"seconds":return!w(r.setSeconds(ge,fe),"seconds");default:return!1}return!0};switch(J){case"hours":{const fe=g1(ee,ye,o),de=r.setHours(ge,fe),Oe=r.setSeconds(r.setMinutes(de,0),0),Te=r.setSeconds(r.setMinutes(de,59),59);return!De({start:Oe,end:Te})||!ie(fe)}case"minutes":{const fe=r.setMinutes(ge,ee),de=r.setSeconds(fe,0),Oe=r.setSeconds(fe,59);return!De({start:de,end:Oe})||!ie(ee,k)}case"seconds":{const fe=r.setSeconds(ge,ee);return!De({start:fe,end:fe})||!ie(ee)}default:throw new Error("not supported")}},[o,ge,b,O,ye,y,k,C,w,r,v,S,xe,_]),We=Fl(),dt=I.useMemo(()=>{switch(Ne){case"hours":{const ee=(J,Re)=>{const Le=g1(J,ye,o);Ge(r.setHours(ge,Le),Re)};return{onChange:ee,viewValue:r.getHours(ge),children:AGe({value:ve,utils:r,ampm:o,onChange:ee,getClockNumberText:ue.hoursClockNumberText,isDisabled:J=>X||$e(J,"hours"),selectedId:We})}}case"minutes":{const ee=r.getMinutes(ge),J=(Re,Le)=>{Ge(r.setMinutes(ge,Re),Le)};return{viewValue:ee,onChange:J,children:FV({utils:r,value:ee,onChange:J,getClockNumberText:ue.minutesClockNumberText,isDisabled:Re=>X||$e(Re,"minutes"),selectedId:We})}}case"seconds":{const ee=r.getSeconds(ge),J=(Re,Le)=>{Ge(r.setSeconds(ge,Re),Le)};return{viewValue:ee,onChange:J,children:FV({utils:r,value:ee,onChange:J,getClockNumberText:ue.secondsClockNumberText,isDisabled:Re=>X||$e(Re,"seconds"),selectedId:We})}}default:throw new Error("You must provide the type for ClockView")}},[Ne,r,ve,o,ue.hoursClockNumberText,ue.minutesClockNumberText,ue.secondsClockNumberText,ye,Ge,ge,$e,We,X]),Be=i,re=RGe(Be);return D.jsxs(IGe,L({ref:n,className:Ke(re.root,W),ownerState:Be},Z,{children:[D.jsx(TGe,L({autoFocus:s??!!V,ampmInClock:a&&_.includes("hours"),value:ve,type:Ne,ampm:o,minutesStep:k,isTimeDisabled:$e,meridiemMode:ye,handleMeridiemChange:ze,selectedId:We,disabled:X,readOnly:q},dt)),E&&D.jsx(DGe,{className:re.arrowSwitcher,slots:j,slotProps:se,onGoToPrevious:()=>Ve(Je),isPreviousDisabled:!Je,previousLabel:ue.openPreviousView,onGoToNext:()=>Ve(Me),isNextDisabled:!Me,nextLabel:ue.openNextView,ownerState:Be})]}))});function LGe(e){return At("MuiDigitalClock",e)}const MGe=_t("MuiDigitalClock",["root","list","item"]),$Ge=["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"],FGe=e=>{const{classes:t}=e;return wt({root:["root"],list:["list"],item:["item"]},LGe,t)},BGe=Ee(Qx,{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:nre})),UGe=Ee(K1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),jGe=Ee(Sp,{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})`:cn(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})`:cn(e.palette.primary.main,e.palette.action.focusOpacity)}})),zGe=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=I.useRef(null),l=yn(n,s),u=mt({props:t,name:"MuiDigitalClock"}),{ampm:c=a.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:p,components:h,componentsProps:m,slots:b,slotProps:O,value:y,defaultValue:v,referenceDate:S,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:C,minTime:w,disableFuture:E,disablePast:$,minutesStep:P=1,shouldDisableClock:_,shouldDisableTime:B,onChange:U,view:V,openTo:z,onViewChange:W,focusedView:X,onFocusedViewChange:q,className:Y,disabled:Z,readOnly:j,views:se=["hours"],skipDisabled:ve=!1,timezone:G}=u,ce=Ye(u,$Ge),{value:ge,handleValueChange:ue,timezone:xe}=Jg({name:"DigitalClock",timezone:G,value:y,defaultValue:v,onChange:U,valueManager:Bi}),Ne=zi(),Ve=mf(xe),Je=I.useMemo(()=>L({},u,{alreadyRendered:!!s.current}),[u]),Me=FGe(Je),Ge=(r=(i=b==null?void 0:b.digitalClockItem)!=null?i:h==null?void 0:h.DigitalClockItem)!=null?r:jGe,ye=kn({elementType:Ge,externalSlotProps:(o=O==null?void 0:O.digitalClockItem)!=null?o:m==null?void 0:m.digitalClockItem,ownerState:{},className:Me.item}),ze=cF({value:ge,referenceDate:S,utils:a,props:u,timezone:xe}),$e=jt(ee=>ue(ee,"finish","hours")),{setValueAndGoToNextView:We}=jO({view:V,views:se,openTo:z,onViewChange:W,onChange:$e,focusedView:X,onFocusedViewChange:q}),dt=jt(ee=>{We(ee,"finish")});I.useEffect(()=>{if(s.current===null)return;const ee=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ee)return;const J=ee.offsetTop;s.current.scrollTop=J-4});const Be=I.useCallback(ee=>{const J=BO(k,a),Re=()=>!(w&&J(w,ee)||C&&J(ee,C)||E&&J(ee,Ve)||$&&J(Ve,ee)),Le=()=>a.getMinutes(ee)%P!==0||_!=null&&_(a.toJsDate(ee).getTime(),"hours")?!1:B?!B(ee,"hours"):!0;return!Re()||!Le()},[k,a,w,C,E,Ve,$,P,_,B]),re=I.useMemo(()=>{const ee=a.startOfDay(ze);return[ee,...Array.from({length:Math.ceil(24*60/d)-1},(J,Re)=>a.addMinutes(ee,d*(Re+1)))]},[ze,d,a]);return D.jsx(BGe,L({ref:l,className:Ke(Me.root,Y),ownerState:Je},ce,{children:D.jsx(UGe,{autoFocusItem:p||!!X,role:"listbox","aria-label":Ne.timePickerToolbarTitle,className:Me.list,children:re.map(ee=>{if(ve&&Be(ee))return null;const J=a.isEqual(ee,ge);return D.jsx(Ge,L({onClick:()=>!j&&dt(ee),selected:J,disabled:Z||Be(ee),disableRipple:j,role:"option","aria-disabled":j,"aria-selected":J},ye,{children:a.format(ee,c?"fullTime12h":"fullTime24h")}),a.toISO(ee))})})}))}),km=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:P,sx:_,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z})=>D.jsx(PGe,{view:e,onViewChange:t,focusedView:n&&Og(n)?n:null,onFocusedViewChange:r,views:i.filter(Og),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:P,sx:_,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z}),kre=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:P,autoFocus:_,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>D.jsx(zGe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Og),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:P,autoFocus:_,disableIgnoringDatePartForTimeValidation:B,timeStep:U==null?void 0:U.minutes,skipDisabled:V,timezone:z}),uD=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:P,autoFocus:_,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>D.jsx(eGe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Og),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:P,autoFocus:_,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z}),Cf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,minTime:m,maxDate:b,maxTime:O,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:S,shouldDisableTime:k,shouldDisableClock:C,reduceAnimations:w,minutesStep:E,ampm:$,onMonthChange:P,monthsPerRow:_,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:W,slots:X,slotProps:q,loading:Y,renderLoading:Z,disableHighlightToday:j,readOnly:se,disabled:ve,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ce,sx:ge,autoFocus:ue,fixedWeekNumber:xe,displayWeekNumber:Ne,timezone:Ve,disableIgnoringDatePartForTimeValidation:Je,timeSteps:Me,skipDisabled:Ge,timeViewsCount:ye,shouldRenderTimeInASingleColumn:ze})=>{var $e,We;const dt=!!(($e=af((We=q==null?void 0:q.actionBar)!=null?We:W==null?void 0:W.actionBar,{}))!=null&&($e=$e.actions)!=null&&$e.length),Be={view:Kc(e)?e:"hours",onViewChange:t,focusedView:r&&Kc(r)?r:null,onFocusedViewChange:i,views:n.filter(Kc),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:O,shouldDisableTime:k,shouldDisableClock:C,minutesStep:E,ampm:$,components:z,componentsProps:W,slots:X,slotProps:q,readOnly:se,disabled:ve,autoFocus:ue,disableIgnoringDatePartForTimeValidation:Je,timeSteps:Me,skipDisabled:Ge,timezone:Ve};return D.jsxs(I.Fragment,{children:[D.jsxs(tGe,{children:[D.jsx(gre,{view:Tm(e)?e:"day",onViewChange:t,views:n.filter(Tm),focusedView:r&&Tm(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:b,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:w,onMonthChange:P,monthsPerRow:_,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:W,slots:X,slotProps:q,loading:Y,renderLoading:Z,disableHighlightToday:j,readOnly:se,disabled:ve,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ce,sx:ge,autoFocus:ue,fixedWeekNumber:xe,displayWeekNumber:Ne,timezone:Ve}),ye>0&&D.jsxs(I.Fragment,{children:[D.jsx(dc,{orientation:"vertical"}),ze?kre(L({},Be,{view:"hours",views:["hours"],focusedView:r&&Kc(r)?"hours":null,sx:L({width:"auto",[`&.${MGe.root}`]:{maxHeight:Vx}},Array.isArray(ge)?ge:[ge])})):uD(L({},Be,{view:Kc(e)?e:"hours",views:n.filter(Kc),focusedView:r&&Kc(r)?r:null,sx:L({borderBottom:0,width:"auto",[`.${HYe.root}`]:{maxHeight:"100%"}},Array.isArray(ge)?ge:[ge])}))]})]}),dt&&D.jsx(dc,{})]})},VGe=["views","format"],xre=(e,t)=>{let{views:n,format:r}=t,i=Ye(t,VGe);if(r)return r;const o=[],a=[];if(n.forEach(u=>{Og(u)?a.push(u):o.push(u)}),a.length===0)return m1(e,L({views:o},i),!1);if(o.length===0)return bw(e,L({views:a},i));const s=bw(e,L({views:a},i));return`${m1(e,L({views:o},i),!1)} ${s}`},HGe=(e,t,n)=>n?t.filter(r=>!Kc(r)||r==="hours"):e?[...t,"meridiem"]:t,WGe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Cre({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=L({hours:1,minutes:5,seconds:5},n),a=WGe(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:HGe(t,r,a)}}const Are=I.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=zi(),d=Rn(),p=Ere(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:m,views:b,timeSteps:O}=Cre(p),y=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,v=y?{day:Cf,month:Cf,year:Cf,hours:Cf,minutes:Cf,seconds:Cf,meridiem:Cf}:L({day:Zs,month:Zs,year:Zs,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),S=(r=p.ampmInClock)!=null?r:!0,k=y?["accept"]:[],C=L({},p,{viewRenderers:v,format:xre(d,p),views:b,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:S,timeSteps:O,thresholdToRenderTimeInASingleColumn:m,shouldRenderTimeInASingleColumn:h,slots:L({field:yre,openPickerIcon:ere},p.slots),slotProps:L({},p.slotProps,{field:E=>{var $;return L({},af(($=p.slotProps)==null?void 0:$.field,E),e0(p),{ref:n})},toolbar:L({hidden:!0,ampmInClock:S,toolbarVariant:y?"desktop":"mobile"},(o=p.slotProps)==null?void 0:o.toolbar),tabs:L({hidden:!0},(a=p.slotProps)==null?void 0:a.tabs),actionBar:L({actions:k},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:w}=aF({props:C,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(l=(u=C.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:Wx});return w()});Are.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,maxDateTime:Q.any,maxTime:Q.any,minDate:Q.any,minDateTime:Q.any,minTime:Q.any,minutesStep:Q.number,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableTime:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,skipDisabled:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),thresholdToRenderTimeInASingleColumn:Q.number,timeSteps:Q.shape({hours:Q.number,minutes:Q.number,seconds:Q.number}),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Q.shape({day:Q.func,hours:Q.func,meridiem:Q.func,minutes:Q.func,month:Q.func,seconds:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const _re=I.forwardRef(function(t,n){var r,i,o,a,s;const l=zi(),u=Rn(),c=Ere(t,"MuiMobileDateTimePicker"),d=L({day:Zs,month:Zs,year:Zs,hours:km,minutes:km,seconds:km},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,h=L({},c,{viewRenderers:d,format:xre(u,c),ampmInClock:p,slots:L({field:yre},c.slots),slotProps:L({},c.slotProps,{field:b=>{var O;return L({},af((O=c.slotProps)==null?void 0:O.field,b),e0(c),{ref:n})},toolbar:L({hidden:!1,ampmInClock:p},(i=c.slotProps)==null?void 0:i.toolbar),tabs:L({hidden:!1},(o=c.slotProps)==null?void 0:o.tabs)})}),{renderPicker:m}=lF({props:h,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:l.openDatePickerDialogue,validator:Wx});return m()});_re.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,maxDateTime:Q.any,maxTime:Q.any,minDate:Q.any,minDateTime:Q.any,minTime:Q.any,minutesStep:Q.number,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableTime:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Q.shape({day:Q.func,hours:Q.func,minutes:Q.func,month:Q.func,seconds:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const QGe=["desktopModeMediaQuery"],YGe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=tF}=r,o=Ye(r,QGe);return Ig(i,{defaultMatches:!0})?D.jsx(Are,L({ref:n},o)):D.jsx(_re,L({ref:n},o))}),GGe=e=>{var t,n,r,i;const o=Rn(),s=((t=e.ampm)!=null?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return L({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:s})},qGe=({props:e,inputRef:t})=>{const n=GGe(e),{forwardedProps:r,internalProps:i}=oF(n,"time");return iF({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:J$,validator:zO,valueType:"time"})},ZGe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],XGe=["inputRef"],KGe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Rre=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:u,componentsProps:c,InputProps:d,inputProps:p}=a,h=Ye(a,ZGe),m=a,b=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:$p,O=kn({elementType:b,externalSlotProps:(o=l==null?void 0:l.textField)!=null?o:c==null?void 0:c.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ye(O,XGe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=qGe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:P,onClear:_}=S,B=Ye(S,KGe),{InputProps:U,fieldProps:V}=sF({onClear:_,clearable:P,fieldProps:B,InputProps:B.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return D.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function JGe(e){return At("MuiTimePickerToolbar",e)}const ny=_t("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),eqe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],tqe=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,JGe,r)},nqe=Ee(eF,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rqe=Ee(nF,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Ire=Ee("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ny.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ny.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Ire.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const Dre=Ee("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ny.ampmLabel}`]:t.ampmLabel},{[`&.${ny.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ny.ampmLabel}`]:{fontSize:17}}));Dre.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};function iqe(e){const t=mt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:s,onViewChange:l,views:u,disabled:c,readOnly:d}=t,p=Ye(t,eqe),h=Rn(),m=zi(),b=ci(),O=!!(n&&!r&&u.includes("hours")),{meridiemMode:y,handleMeridiemChange:v}=Hx(i,n,a),S=E=>n?h.format(E,"hours12h"):h.format(E,"hours24h"),k=t,C=tqe(L({},k,{theme:b})),w=D.jsx(rqe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return D.jsxs(nqe,L({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:C.root},p,{children:[D.jsxs(Ire,{className:C.hourMinuteLabel,ownerState:k,children:[Lh(u,"hours")&&D.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?S(i):"--"}),Lh(u,["hours","minutes"])&&w,Lh(u,"minutes")&&D.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?h.format(i,"minutes"):"--"}),Lh(u,["minutes","seconds"])&&w,Lh(u,"seconds")&&D.jsx(Ka,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?h.format(i,"seconds"):"--"})]}),O&&D.jsxs(Dre,{className:C.ampmSelection,ownerState:k,children:[D.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="am",typographyClassName:C.ampmLabel,value:xl(h,"am"),onClick:d?void 0:()=>v("am"),disabled:c}),D.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="pm",typographyClassName:C.ampmLabel,value:xl(h,"pm"),onClick:d?void 0:()=>v("pm"),disabled:c})]})]}))}function Nre(e,t){var n,r,i,o,a;const s=Rn(),l=mt({props:e,name:t}),u=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),c=I.useMemo(()=>{var h;return((h=l.localeText)==null?void 0:h.toolbarTitle)==null?l.localeText:L({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(r=l.slots)!=null?r:UO(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return L({},l,{ampm:u,localeText:c},q$({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(o=l.disableFuture)!=null?o:!1,disablePast:(a=l.disablePast)!=null?a:!1,slots:L({toolbar:iqe},d),slotProps:L({},p,{toolbar:L({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Pre=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=zi(),c=Rn(),d=Nre(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:h,timeSteps:m}=Cre(d),b=p?kre:uD,O=L({hours:b,minutes:b,seconds:b,meridiem:b},d.viewRenderers),y=(r=d.ampmInClock)!=null?r:!0,v=p?[]:["accept"],k=((i=O.hours)==null?void 0:i.name)===uD.name?h:h.filter(E=>E!=="meridiem"),C=L({},d,{ampmInClock:y,timeSteps:m,viewRenderers:O,format:bw(c,d),views:p?["hours"]:k,slots:L({field:Rre,openPickerIcon:BHe},d.slots),slotProps:L({},d.slotProps,{field:E=>{var $;return L({},af(($=d.slotProps)==null?void 0:$.field,E),e0(d),{ref:n})},toolbar:L({hidden:!0,ampmInClock:y},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:L({actions:v},(a=d.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:w}=aF({props:C,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(s=(l=C.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:zO});return w()});Pre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,localeText:Q.object,maxTime:Q.any,minTime:Q.any,minutesStep:Q.number,name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,open:Q.bool,openTo:Q.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableTime:Q.func,skipDisabled:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),thresholdToRenderTimeInASingleColumn:Q.number,timeSteps:Q.shape({hours:Q.number,minutes:Q.number,seconds:Q.number}),timezone:Q.string,value:Q.any,view:Q.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Q.shape({hours:Q.func,meridiem:Q.func,minutes:Q.func,seconds:Q.func}),views:Q.arrayOf(Q.oneOf(["hours","minutes","seconds"]).isRequired)};const Lre=I.forwardRef(function(t,n){var r,i,o,a;const s=zi(),l=Rn(),u=Nre(t,"MuiMobileTimePicker"),c=L({hours:km,minutes:km,seconds:km},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=L({},u,{ampmInClock:d,viewRenderers:c,format:bw(l,u),slots:L({field:Rre},u.slots),slotProps:L({},u.slotProps,{field:m=>{var b;return L({},af((b=u.slotProps)==null?void 0:b.field,m),e0(u),{ref:n})},toolbar:L({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=lF({props:p,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(o=(a=p.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:zO});return h()});Lre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,localeText:Q.object,maxTime:Q.any,minTime:Q.any,minutesStep:Q.number,name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,open:Q.bool,openTo:Q.oneOf(["hours","minutes","seconds"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableTime:Q.func,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["hours","minutes","seconds"]),viewRenderers:Q.shape({hours:Q.func,minutes:Q.func,seconds:Q.func}),views:Q.arrayOf(Q.oneOf(["hours","minutes","seconds"]).isRequired)};const oqe=["desktopModeMediaQuery"],aqe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=tF}=r,o=Ye(r,oqe);return Ig(i,{defaultMatches:!0})?D.jsx(Pre,L({ref:n},o)):D.jsx(Lre,L({ref:n},o))});var dF={},sqe=Ui;Object.defineProperty(dF,"__esModule",{value:!0});var Mre=dF.default=void 0,lqe=sqe(ji()),uqe=D;Mre=dF.default=(0,lqe.default)((0,uqe.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 fF={},cqe=Ui;Object.defineProperty(fF,"__esModule",{value:!0});var pF=fF.default=void 0,dqe=cqe(ji()),fqe=D;pF=fF.default=(0,dqe.default)((0,fqe.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 hF={},pqe=Ui;Object.defineProperty(hF,"__esModule",{value:!0});var $re=hF.default=void 0,hqe=pqe(ji()),mqe=D;$re=hF.default=(0,hqe.default)((0,mqe.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 cD(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 wqe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function kqe(e,t){return gqe(e)||vqe(e,t)||Fre(e,t)||Eqe()}function ef(e){return bqe(e)||Oqe(e)||Fre(e)||Sqe()}function xqe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Fre(e,t){if(e){if(typeof e=="string")return cD(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 cD(e,t)}}var Cqe=I.createContext({onError:function(e){return e==null?void 0:e.message}}),Es=function(){var e;return(e=I.useContext(Cqe))===null||e===void 0?void 0:e.onError};function La(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"}}),y=Pa({name:s,control:l,disabled:h.disabled,rules:O}),v=y.field,S=y.fieldState,k=S.error,C=La({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(P){return P||""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(P){var _=P.target.value;return o==="number"&&_?+_:_}}}),w=C.value,E=C.onChange,$=yn(v.ref,d);return D.jsx(c,Cn(Vt({},h),{name:v.name,value:w,onChange:function(P){E(P),typeof h.onChange=="function"&&h.onChange(P)},onBlur:v.onBlur,required:a,type:o,error:!!k,helperText:k?typeof b=="function"?b(k):k.message:h.helperText,ref:t,inputRef:$}))});Bre.displayName="TextFieldElement";var mF=Bre;function Yx(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=wo(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof o=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),D.jsx(_ne,Cn(Vt({},i),{children:D.jsx("form",Cn(Vt({noValidate:!0},r),{onSubmit:t||(o?i.handleSubmit(o,a):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):D.jsx(Aqe,Vt({onSuccess:o,onError:a,FormProps:r,children:n},s))}function Aqe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=wo(e,["onSuccess","onError","FormProps","children"]),a=iHe(Vt({},o)),s=a.handleSubmit;return D.jsx(_ne,Cn(Vt({},a),{children:D.jsx("form",Cn(Vt({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Ure={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"},_qe=I.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,o=e.validation,a=o===void 0?{}:o,s=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,d=e.overwriteErrorMessages,p=e.inputRef,h=e.transform,m=wo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),b=Wl(),O=Es(),y=n||O,v=Vt({},Ure,d),S=Cn(Vt({},a,i&&!a.required&&{required:"This field is required"}),{validate:Vt({internal:function(V){var z,W,X=V==null||!b.utils.isValid(V)?null:b.utils.getTimezone(V),q=qp({props:{shouldDisableDate:m.shouldDisableDate,shouldDisableMonth:m.shouldDisableMonth,shouldDisableYear:m.shouldDisableYear,disablePast:!!m.disablePast,disableFuture:!!m.disableFuture,minDate:m.minDate,maxDate:m.maxDate,timezone:(W=(z=m.timezone)!==null&&z!==void 0?z:X)!==null&&W!==void 0?W:"default"},value:V,adapter:b});return q==null||v[q]}},a.validate)}),k=Pa({name:r,control:l,rules:S,disabled:m.disabled,defaultValue:null}),C=k.field,w=k.fieldState,E=w.error,$=La({value:C.value,onChange:C.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(V){return V&&V==="string"?new Date(V):V},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(V){return V}}}),P=$.value,_=$.onChange,B=yn(C.ref,p),U=E?typeof y=="function"?y(E):E.message:null;return D.jsx(TYe,Cn(Vt({},m,C),{value:P,ref:t,inputRef:B,onClose:function(){for(var V=arguments.length,z=new Array(V),W=0;W"u"?"undefined":xqe(V))<"u"&&(S.InputLabelProps=S.InputLabelProps||{},S.InputLabelProps.shrink=!0),D.jsxs($p,Cn(Vt({},S),{name:r,value:V,onBlur:P.onBlur,ref:t,onChange:function(X){if(z(X),typeof S.onChange=="function"){var q=X.target.value;p==="number"&&q&&(q=Number(q)),h&&(q=c.find(function(Y){return Y[a]===q})),S.onChange(q)}},select:!0,required:i,error:!!B,helperText:B?typeof C=="function"?C(B):B.message:S.helperText,inputRef:W,children:[w&&D.jsx("option",{}),c.map(function(X){var q,Y={key:"".concat(r,"_").concat(X[a]),value:(q=X==null?void 0:X[a])!==null&&q!==void 0?q:X,disabled:Ta(X,"disabled")?!!X.disabled:!1,children:X[l]};return w?D.jsx("option",Vt({},Y)):D.jsx(Sp,Vt({},Y))})]}))});jre.displayName="SelectElement";var dD=jre,Mqe=I.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,d=c===void 0?"id":c,p=e.returnObject,h=e.disabled,m=e.row,b=e.control,O=e.checkboxColor,y=e.rules,v=e.labelProps,S=e.transform,k=e.defaultValue,C=k===void 0?[]:k,w=wo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),E=ci(),$=Es(),P=a||$,_=Pa({name:o,rules:s?{required:"This field is required"}:y,disabled:h,control:b,defaultValue:C}),B=_.field,U=_.fieldState,V=U.error,z=U.invalid,W=La({value:B.value,onChange:B.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(j){return Array.isArray(j)?j:[]},output:S==null?void 0:S.output}}),X=W.value,q=W.onChange,Y=function(j){var se=Ta(j,d)?j[d]:j,ve=X.findIndex(function(ce){var ge=Ta(ce,d)?ce[d]:ce;return se===ge}),G=(ve===-1?ef(X).concat([j]):X.filter(function(ce,ge){return ve!==ge})).map(function(ce){return p||!Ta(ce,d)?ce:ce[d]});q(G),typeof w.onChange=="function"&&w.onChange(G)},Z=V?typeof P=="function"?P(V):V.message:n;return D.jsxs(Lu,{error:z,required:s,ref:t,children:[i?D.jsx($k,{children:i}):null,D.jsx(JN,{row:m,children:r.map(function(j){var se=Ta(j,d)?j[d]:j,ve=Ta(j,u)?j[u]:j,G=X.some(function(ce){return(Ta(ce,d)?ce[d]:ce)===se});return I.createElement(Ry,Cn(Vt({},v),{control:D.jsx(Lk,{sx:{color:V?E.palette.error.main:void 0},color:O,value:se,checked:G,disabled:h,onChange:function(){return Y(j)}}),label:"".concat(ve),key:"".concat(se)}))})}),Z&&D.jsx(Rg,{children:Z})]})});Mqe.displayName="CheckboxButtonGroup";var $qe=48,Fqe=8,Bqe=I.forwardRef(function(e,t){var n,r,i,o,a,s=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,d=c===void 0?"id":c,p=e.itemValue,h=p===void 0?"":p,m=e.itemLabel,b=m===void 0?"label":m,O=e.required,y=O===void 0?!1:O,v=e.validation,S=v===void 0?{}:v,k=e.parseError,C=e.name,w=e.menuMaxHeight,E=w===void 0?$qe*4.5+Fqe:w,$=e.menuMaxWidth,P=$===void 0?250:$,_=e.minWidth,B=_===void 0?120:_,U=e.helperText,V=e.showChips,z=e.preserveOrder,W=e.control,X=e.showCheckbox,q=e.formControlProps,Y=e.inputRef,Z=e.transform,j=wo(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),se=Es(),ve=k||se,G=function($e){var We,dt;return(dt=(We=s.find(function(Be){var re;return((re=Be[h||d])!==null&&re!==void 0?re:Be)===$e}))===null||We===void 0?void 0:We[b])!==null&&dt!==void 0?dt:$e},ce=Vt({},S,y&&!S.required&&{required:"This field is required"}),ge=Pa({name:C,rules:ce,disabled:j.disabled,control:W}),ue=ge.field,xe=ge.fieldState,Ne=xe.error,Ve=La({value:ue.value,onChange:ue.onChange,transform:{input:typeof(Z==null?void 0:Z.input)=="function"?Z.input:function($e){return Array.isArray($e)?$e:[]},output:Z==null?void 0:Z.output}}),Je=Ve.value,Me=Ve.onChange,Ge=yn(ue.ref,Y),ye=Ne?typeof ve=="function"?ve(Ne):Ne.message:U,ze;return D.jsxs(Lu,Cn(Vt({},q),{style:Vt({minWidth:B},q==null?void 0:q.style),variant:j.variant,fullWidth:j.fullWidth,error:!!Ne,size:j.size,ref:t,children:[u&&D.jsx(HY,{size:j.size==="small"?"small":void 0,error:!!Ne,htmlFor:j.id||"select-multi-select-".concat(C),required:y,children:u}),D.jsx(nG,Cn(Vt({},j),{id:j.id||"select-multi-select-".concat(C),multiple:!0,label:u||void 0,error:!!Ne,value:Je,required:y,onChange:Me,onBlur:ue.onBlur,MenuProps:Cn(Vt({},j.MenuProps),{slotProps:Cn(Vt({},(n=j.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:Vt({},(ze=(i=j.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&ze!==void 0?ze:{style:Vt({maxHeight:E,width:P},Ta((a=j.MenuProps)===null||a===void 0||(o=a.slotProps)===null||o===void 0?void 0:o.paper,"style")&&typeof j.MenuProps.slotProps.paper.style=="object"&&Vt({},j.MenuProps.slotProps.paper.style))})})}),renderValue:typeof j.renderValue=="function"?j.renderValue:V?function($e){return D.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(z?s.filter(function(We){return $e.includes(We)}):$e||[]).map(function(We){return D.jsx(ZN,{label:G(We),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(Je)?Je:[]).filter(function(dt){return dt!==We}))},deleteIcon:D.jsx(Mre,{onMouseDown:function(dt){dt.stopPropagation()}})},We)})})}:function($e){return Array.isArray($e)?$e.map(G).join(", "):""},inputRef:Ge,children:s.map(function($e){var We=$e[h||d]||$e,dt=Array.isArray(Je)?Je.some(function(Be){return Be===We}):!1;return D.jsxs(Sp,{value:We,sx:{fontWeight:function(Be){return dt?Be.typography.fontWeightBold:Be.typography.fontWeightRegular}},children:[X&&D.jsx(Lk,{checked:dt}),D.jsx(dp,{primary:$e[b]||$e})]},We)})})),ye&&D.jsx(Rg,{error:!!Ne,children:ye})]}))});Bqe.displayName="MultiSelectElement";var zre=I.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?D.jsx(pF,{}):D.jsx($re,{})}:r,o=wo(e,["iconColor","renderIcon"]),a=kqe(I.useState(!0),2),s=a[0],l=a[1];return D.jsx(mF,Cn(Vt({},o),{ref:t,InputProps:{endAdornment:D.jsx(eP,{position:"end",children:D.jsx(eo,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});zre.displayName="PasswordElement";var Uqe=zre,jqe=I.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.labelKey,l=s===void 0?"label":s,u=e.valueKey,c=u===void 0?"id":u,d=e.required,p=e.emptyOptionLabel,h=e.returnObject,m=e.row,b=e.control,O=e.type,y=e.labelProps,v=e.disabled,S=e.formLabelProps,k=e.transform,C=wo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),w=ci(),E=Es(),$=a||E,P=Pa({name:o,rules:d?{required:"This field is required"}:void 0,disabled:v,control:b}),_=P.field,B=P.fieldState,U=B.error,V=La({value:_.value,onChange:_.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(Y){return Y||""},output:typeof(k==null?void 0:k.output)=="function"?k==null?void 0:k.output:function(Y,Z){return Z}}}),z=V.value,W=V.onChange,X=U?typeof $=="function"?$(U):U.message:n,q=function(Y,Z){var j=h?r.find(function(se){return se[c]===Z}):Z;W(Y,j),typeof C.onChange=="function"&&C.onChange(j)};return D.jsxs(Lu,{error:!!U,ref:t,children:[i&&D.jsx($k,Cn(Vt({},S),{required:d,error:!!U,children:i})),D.jsxs(Eve,{onChange:q,name:o,row:m,value:z,children:[p&&D.jsx(Ry,Cn(Vt({},y),{control:D.jsx(J8,{sx:{color:U?w.palette.error.main:void 0},checked:!z}),label:p,value:""})),r.map(function(Y){var Z=Y[c];Z||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),Y);var j=h?z==null?void 0:z[c]:z;O==="number"&&(j=Number(j));var se=j===Z;return I.createElement(Ry,Cn(Vt({},y),{control:D.jsx(J8,{sx:{color:U?w.palette.error.main:void 0},disabled:v,checked:se}),value:Z,label:Y[l],key:Z}))})]}),X&&D.jsx(Rg,{children:X})]})});jqe.displayName="RadioButtonGroup";var zqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=wo(e,["name","control","switchProps","transform"]),s=Pa({name:n,control:r,disabled:a.disabled}),l=s.field,u=La({value:l.value,onChange:l.onChange,transform:{input:o==null?void 0:o.input,output:typeof(o==null?void 0:o.output)=="function"?o.output:function(h,m){return m}}}),c=u.value,d=u.onChange,p=yn(l.ref,i==null?void 0:i.ref);return D.jsx(Ry,Vt({ref:t,control:D.jsx(bEe,Cn(Vt({},i),{name:l.name,value:c,onChange:function(h,m){d(h,m),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(h,m)},onBlur:function(h){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(h))},ref:p,checked:!!c}))},a))});zqe.displayName="SwitchElement";var Vqe=I.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=wo(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=Pne({name:n,control:i});return D.jsx(Uqe,Cn(Vt({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});Vqe.displayName="PasswordRepeatElement";var Hqe=I.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,o=e.control,a=e.options,s=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,d=e.required,p=e.multiple,h=e.label,m=e.parseError,b=e.transform,O=e.matchId,y=Es(),v=m||y,S=Vt({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),k=Pa({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:S}),C=k.field,w=k.fieldState,E=w.error,$=function(q){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(q):Ta(q,"label")?"".concat(q==null?void 0:q.label):"".concat(q)},P=function(q,Y){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(q,Y);var Z=Ta(q,"id")?q.id:q,j=Ta(Y,"id")?Y.id:Y;return Z===j},_=function(q){return a.find(function(Y){return O&&Ta(Y,"id")?Y.id===q:P(Y,q)})},B=La({value:C.value,onChange:C.onChange,transform:{input:typeof(b==null?void 0:b.input)=="function"?b.input:function(q){var Y;return p?(Array.isArray(q)?q:[]).map(_):(Y=_(q))!==null&&Y!==void 0?Y:null},output:typeof(b==null?void 0:b.output)=="function"?b.output:function(q,Y){if(p){var Z=Array.isArray(Y)?Y:[];return O?Z.map(function(j){return Ta(j,"id")?j.id:j}):Z}return O&&Ta(Y,"id")?Y.id:Y}}}),U=B.value,V=B.onChange,z=yn(C.ref,n==null?void 0:n.inputRef),W=c||D.jsx(uf,{color:"inherit",size:20}),X;return D.jsx(wge,Cn(Vt({},r),{value:U,loading:s,multiple:p,options:a,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:P,getOptionLabel:$,onChange:function(q,Y,Z,j){V(q,Y,Z,j),r!=null&&r.onChange&&r.onChange(q,Y,Z,j)},ref:t,renderOption:(X=r==null?void 0:r.renderOption)!==null&&X!==void 0?X:l?function(q,Y,Z){var j=Z.selected;return D.jsxs("li",Cn(Vt({},q),{children:[D.jsx(Lk,{sx:{marginRight:1},checked:j}),$(Y)]}))}:void 0,onBlur:function(q){C.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(q)},renderInput:function(q){return D.jsx($p,Cn(Vt({name:i,required:u!=null&&u.required?!0:d,label:h},n,q),{error:!!E,InputLabelProps:Vt({},q.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:Vt(Cn(Vt({},q.InputProps),{endAdornment:D.jsxs(D.Fragment,{children:[s?W:null,q.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:Vt({},q.inputProps,n==null?void 0:n.inputProps),helperText:E?typeof v=="function"?v(E):E.message:n==null?void 0:n.helperText,inputRef:z}))}}))});Hqe.displayName="AutocompleteElement";var Wqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,o=e.rules,a=o===void 0?{}:o,s=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,d=wo(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Es(),h=s||p,m=Vt({},a,l&&!a.required&&{required:"This field is required"}),b=Pa({name:n,control:r,disabled:d.disabled,rules:m}),O=b.field,y=b.fieldState,v=y.error,S=y.invalid,k=La({value:O.value,onChange:O.onChange,transform:c}),C=k.value,w=k.onChange,E=v?typeof h=="function"?h(v):v.message:null;return D.jsxs(Lu,Cn(Vt({error:S,required:l,fullWidth:!0},u),{ref:t,children:[i&&D.jsx($k,{component:"legend",error:S,children:i}),D.jsx(Kve,Cn(Vt({},d),{value:C,onChange:w,valueLabelDisplay:d.valueLabelDisplay||"auto"})),E&&D.jsx(Rg,{error:S,children:E})]}))});Wqe.displayName="SliderElement";var Qqe=I.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,o=e.required,a=e.name,s=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,d=e.inputProps,p=e.transform,h=wo(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),m=Es(),b=i||m,O=Vt({},r,o&&!r.required&&{required:"This field is required"}),y=Pa({name:a,control:s,rules:O,disabled:h.disabled}),v=y.field,S=y.fieldState,k=S.error,C=La({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(P){return P??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(P){return P.target.value}}}),w=C.value,E=C.onChange,$=yn(v.ref,c);return D.jsx($p,Cn(Vt({},h),{name:a,value:w,onChange:function(P){E(P),typeof h.onChange=="function"&&h.onChange(P)},onBlur:v.onBlur,required:o,error:!!k,helperText:k?typeof b=="function"?b(k):k.message:h.helperText,inputRef:$,multiline:!0,InputProps:{inputComponent:AY,inputProps:Vt({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});Qqe.displayName="TextareaAutosizeElement";var gF={},Yqe=Ui;Object.defineProperty(gF,"__esModule",{value:!0});var Gx=gF.default=void 0,Gqe=Yqe(ji()),qqe=D;Gx=gF.default=(0,Gqe.default)((0,qqe.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 Zqe=e=>["check","name-conflict",e],Vre=e=>sO({queryKey:Zqe(e||""),enabled:!!e,queryFn:async()=>(await Hn.post("/check/name-conflict",{name:e})).data});var Xqe=function(e){return(e+1)%1e6};function Kqe(){var e=I.useReducer(Xqe,0),t=e[1];return t}function N2(e,t){return typeof e=="function"?e.length?e(t):e():e}function Jqe(e,t){t===void 0&&(t=0);var n=I.useRef(!1),r=I.useRef(),i=I.useRef(e),o=I.useCallback(function(){return n.current},[]),a=I.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),s=I.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return I.useEffect(function(){i.current=e},[e]),I.useEffect(function(){return a(),s},[t]),[o,s,a]}function Hre(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=Jqe(e,t),i=r[0],o=r[1],a=r[2];return I.useEffect(a,n),[i,o]}function eZe(e){e===void 0&&(e=[]);var t=I.useRef(N2(e)),n=Kqe(),r=I.useMemo(function(){var i={set:function(o){t.current=N2(o,t.current),n()},push:function(){for(var o=[],a=0;al.length?l[o]=a:l.splice(o,0,a),l})},update:function(o,a){r.set(function(s){return s.map(function(l){return o(l,a)?a:l})})},updateFirst:function(o,a){var s=t.current.findIndex(function(l){return o(l,a)});s>=0&&r.updateAt(s,a)},upsert:function(o,a){var s=t.current.findIndex(function(l){return o(l,a)});s>=0?r.updateAt(s,a):r.push(a)},sort:function(o){r.set(function(a){return a.slice().sort(o)})},filter:function(o,a){r.set(function(s){return s.slice().filter(o,a)})},removeAt:function(o){r.set(function(a){var s=a.slice();return s.splice(o,1),s})},clear:function(){r.set([])},reset:function(){r.set(N2(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}function Wre(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[o,a]=I.useState(""),[s,l]=I.useState(""),{data:u}=Vre(s),c=I.useMemo(()=>u!=null&&u.conflict?"Already Exists":null,[u==null?void 0:u.conflict]);Hre(()=>{l(o)},500,[o]);const d=()=>{var m;(m=i==null?void 0:i.onClose)==null||m.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async m=>{await n(m),d()},h=m=>{r&&a(m.target.value)};return D.jsx(Mp,{disableAutoFocus:!0,...i,children:D.jsxs(zo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx(eo,{sx:{position:"absolute",top:28,right:28},onClick:d,children:D.jsx(Gx,{})}),D.jsxs(cr,{gap:4,children:[D.jsxs(dr,{variant:"h5",children:["Create New ",t]}),D.jsx(Lu,{children:D.jsx(Yx,{defaultValues:{title:""},onSuccess:p,children:D.jsxs(cr,{gap:4,alignItems:"flex-end",children:[D.jsx(mF,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:h,error:!!c,helperText:c}),D.jsx(wl,{type:"submit",variant:"contained",size:"large",disabled:!!c,children:"OK"})]})})})]})]})})}function tZe(e){const{width:t,...n}=e,r=Pc(),i=cf(),{data:o,hasNextPage:a,fetchNextPage:s}=cCe(),{mutateAsync:l}=dCe(),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((O,y)=>O.concat(y.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=I.useState(!1),p=O=>{r(`/${O}`)},h=O=>{var y;i.workspaceSlug!==O&&(p(O),(y=n==null?void 0:n.onClose)==null||y.call(n,new Event("Close Popover"),"backdropClick"))},m=()=>{var O;d(y=>!y),n.open&&((O=n==null?void 0:n.onClose)==null||O.call(n,new Event("Close Popover"),"backdropClick"))},b=async O=>{const y=await l(O);p(y.slug)};return D.jsxs(D.Fragment,{children:[D.jsx(nP,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:D.jsxs(K1,{sx:{width:t},children:[D.jsx($o,{style:{maxHeight:300,overflow:"auto"},children:D.jsx(h1,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:D.jsx($o,{className:"loader",children:D.jsx(uf,{size:"sm"})},0),useWindow:!1,children:u.map(O=>D.jsxs(Sp,{onClick:()=>h(O.slug),children:[D.jsx(dp,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:O.title}),i.workspaceSlug===O.slug&&D.jsx(dT,{children:D.jsx(wne,{fontSize:"small"})})]},O.id))})}),D.jsx(dc,{}),D.jsxs(Sp,{onClick:m,children:[D.jsx(tP,{children:D.jsx(z$,{fontSize:"small"})}),D.jsx(dp,{children:"Create Workspace"})]})]})}),D.jsx(Wre,{open:c,title:"Workspace",onClose:m,onSuccess:b,enableConflictCheck:!0})]})}var bF={},nZe=Ui;Object.defineProperty(bF,"__esModule",{value:!0});var Qre=bF.default=void 0,rZe=nZe(ji()),iZe=D;Qre=bF.default=(0,rZe.default)((0,iZe.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 oZe=e=>["workspaces",e,"users"],aZe=e=>AP({queryKey:oZe(e||""),queryFn:async({pageParam:t})=>(await Hn.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}),xm=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];//! moment.js +`));const t=I.useMemo(()=>L({},kHe,e.localeText),[e.localeText]);return I.useMemo(()=>L({},e,{localeText:t}),[e,t])},Rn=()=>Wl().utils,Gp=()=>Wl().defaultDates,zi=()=>Wl().localeText,mf=e=>{const t=Rn(),n=I.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Kne(e){return At("MuiPickersToolbar",e)}_t("MuiPickersToolbar",["root","content"]);const xHe=e=>{const{classes:t,isLandscape:n}=e;return wt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Kne,t)},CHe=Ee("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>L({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"})),AHe=Ee("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"}}),eF=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:s,titleId:l}=r,u=r,c=xHe(u);return s?null:N.jsxs(CHe,{ref:n,className:Ke(c.root,o),ownerState:u,children:[N.jsx(dr,{color:"text.secondary",variant:"overline",id:l,children:a}),N.jsx(AHe,{className:c.content,ownerState:u,children:i})]})});function _He(e){return At("MuiDatePickerToolbar",e)}_t("MuiDatePickerToolbar",["root","title"]);const RHe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],IHe=e=>{const{classes:t}=e;return wt({root:["root"],title:["title"]},_He,t)},NHe=Ee(eF,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DHe=Ee(dr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>L({},e.isLandscape&&{margin:"auto 16px auto auto"})),PHe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l}=r,u=Ye(r,RHe),c=Rn(),d=zi(),p=IHe(r),h=I.useMemo(()=>{if(!i)return s;const b=m1(c,{format:a,views:l},!0);return c.formatByString(i,b)},[i,a,s,c,l]),m=r;return N.jsx(NHe,L({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:N.jsx(DHe,{variant:"h4",align:o?"left":"center",ownerState:m,className:p.title,children:h})}))}),UO=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>L({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Jne(e,t){var n,r,i,o;const a=Rn(),s=Gp(),l=mt({props:e,name:t}),u=I.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:L({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:UO(l.components);return L({},l,{localeText:u},q$({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:jo(a,l.minDate,s.minDate),maxDate:jo(a,l.maxDate,s.maxDate),slots:L({toolbar:PHe},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const LHe=ki(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),MHe=ki(N.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),$He=ki(N.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),ere=ki(N.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"),FHe=ki(N.jsxs(I.Fragment,{children:[N.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"}),N.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),BHe=ki(N.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"),UHe=ki(N.jsxs(I.Fragment,{children:[N.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"}),N.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),jHe=ki(N.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 zHe(e){return At("MuiPickersArrowSwitcher",e)}_t("MuiPickersArrowSwitcher",["root","spacer","button"]);const VHe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],HHe=["ownerState"],WHe=["ownerState"],QHe=Ee("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),YHe=Ee("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),RV=Ee(eo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>L({},e.hidden&&{visibility:"hidden"})),GHe=e=>{const{classes:t}=e;return wt({root:["root"],spacer:["spacer"],button:["button"]},zHe,t)},tre=I.forwardRef(function(t,n){var r,i,o,a;const l=ci().direction==="rtl",u=mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:p,slotProps:h,isNextDisabled:m,isNextHidden:b,onGoToNext:O,nextLabel:y,isPreviousDisabled:v,isPreviousHidden:S,onGoToPrevious:k,previousLabel:C}=u,w=Ye(u,VHe),E=u,$=GHe(E),P={isDisabled:m,isHidden:b,goTo:O,label:y},_={isDisabled:v,isHidden:S,goTo:k,label:C},B=(r=p==null?void 0:p.previousIconButton)!=null?r:RV,U=kn({elementType:B,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:_.label,"aria-label":_.label,disabled:_.isDisabled,edge:"end",onClick:_.goTo},ownerState:L({},E,{hidden:_.isHidden}),className:$.button}),V=(i=p==null?void 0:p.nextIconButton)!=null?i:RV,z=kn({elementType:V,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:L({},E,{hidden:P.isHidden}),className:$.button}),W=(o=p==null?void 0:p.leftArrowIcon)!=null?o:MHe,X=kn({elementType:W,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),q=Ye(X,HHe),Y=(a=p==null?void 0:p.rightArrowIcon)!=null?a:$He,Z=kn({elementType:Y,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=Ye(Z,WHe);return N.jsxs(QHe,L({ref:n,className:Ke($.root,d),ownerState:E},w,{children:[N.jsx(B,L({},U,{children:l?N.jsx(Y,L({},j)):N.jsx(W,L({},q))})),c?N.jsx(dr,{variant:"subtitle1",component:"span",children:c}):N.jsx(YHe,{className:$.spacer,ownerState:E}),N.jsx(V,L({},z,{children:l?N.jsx(W,L({},q)):N.jsx(Y,L({},j))}))]}))}),b1=36,jx=2,zx=320,qHe=280,Vx=334,nre=232,mb=48,ZHe=Ee(Rbe)({[`& .${Nb.container}`]:{outline:0},[`& .${Nb.paper}`]:{outline:0,minWidth:zx}}),XHe=Ee(Hbe)({"&:first-of-type":{padding:0}});function KHe(e){var t,n;const{children:r,onDismiss:i,open:o,slots:a,slotProps:s}=e,l=(t=a==null?void 0:a.dialog)!=null?t:ZHe,u=(n=a==null?void 0:a.mobileTransition)!=null?n:_g;return N.jsx(l,L({open:o,onClose:i},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:N.jsx(XHe,{children:r})}))}function JHe(e){return At("MuiPickersPopper",e)}_t("MuiPickersPopper",["root","paper"]);function Lh(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const eWe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},yw=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?yw(t.shadowRoot):t:null},tF="@media (pointer: fine)",tWe="@media (prefers-reduced-motion: reduce)",wm=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),IV=wm&&wm[1]?parseInt(wm[1],10):null,NV=wm&&wm[2]?parseInt(wm[2],10):null,nWe=IV&&IV<10||NV&&NV<13||!1,rre=()=>Ig(tWe,{defaultMatches:!1})||nWe,rWe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],iWe=e=>{const{classes:t}=e;return wt({root:["root"],paper:["paper"]},JHe,t)},oWe=Ee(Z1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),aWe=Ee(zo,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>L({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function sWe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=jt(l=>{if(!o.current)return;const u=r.current;r.current=!1;const c=Or(i.current);if(!i.current||"clientX"in l&&sWe(l,c))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!c.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!u&&t(l)}),s=()=>{r.current=!0};return I.useEffect(()=>{if(e){const l=Or(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),I.useEffect(()=>{if(e){const l=Or(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const uWe=I.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=Ye(e,rWe),d=L({},i,{placement:r}),p=kn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return N.jsx(n,L({},c,p,{onClick:h=>{var m;l(h),(m=p.onClick)==null||m.call(p,h)},onTouchStart:h=>{var m;u(h),(m=p.onTouchStart)==null||m.call(p,h)},ownerState:d,children:o}))});function cWe(e){var t,n,r,i;const o=mt({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:p,role:h,placement:m,slots:b,slotProps:O,reduceAnimations:y}=o;I.useEffect(()=>{function Z(j){p&&(j.key==="Escape"||j.key==="Esc")&&d()}return document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)}},[d,p]);const v=I.useRef(null);I.useEffect(()=>{h==="tooltip"||u&&!u()||(p?v.current=yw(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[p,h,u]);const[S,k,C]=lWe(p,c??d),w=I.useRef(null),E=yn(w,l),$=yn(E,S),P=o,_=iWe(P),B=rre(),U=y??B,V=Z=>{Z.key==="Escape"&&(Z.stopPropagation(),d())},z=((t=b==null?void 0:b.desktopTransition)!=null?t:U)?_g:cT,W=(n=b==null?void 0:b.desktopTrapFocus)!=null?n:mY,X=(r=b==null?void 0:b.desktopPaper)!=null?r:aWe,q=(i=b==null?void 0:b.popper)!=null?i:oWe,Y=kn({elementType:q,externalSlotProps:O==null?void 0:O.popper,additionalProps:{transition:!0,role:h,open:p,anchorEl:a,placement:m,onKeyDown:V},className:_.root,ownerState:o});return N.jsx(q,L({},Y,{children:({TransitionProps:Z,placement:j})=>N.jsx(W,L({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},O==null?void 0:O.desktopTrapFocus,{children:N.jsx(z,L({},Z,O==null?void 0:O.desktopTransition,{children:N.jsx(uWe,{PaperComponent:X,ownerState:P,popperPlacement:j,ref:$,onPaperClick:k,onPaperTouchStart:C,paperClasses:_.paper,paperSlotProps:O==null?void 0:O.desktopPaper,children:s})}))}))}))}function dWe(e){return At("MuiPickersToolbarText",e)}const DV=_t("MuiPickersToolbarText",["root","selected"]),fWe=["className","selected","value"],pWe=e=>{const{classes:t,selected:n}=e;return wt({root:["root",n&&"selected"]},dWe,t)},hWe=Ee(dr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${DV.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${DV.selected}`]:{color:(e.vars||e).palette.text.primary}})),nF=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Ye(r,fWe),s=pWe(r);return N.jsx(hWe,L({ref:n,className:Ke(i,s.root),component:"span"},a,{children:o}))}),mWe=["align","className","selected","typographyClassName","value","variant","width"],gWe=e=>{const{classes:t}=e;return wt({root:["root"]},Kne,t)},bWe=Ee(wl,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ka=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:u,width:c}=r,d=Ye(r,mWe),p=gWe(r);return N.jsx(bWe,L({variant:"text",ref:n,className:Ke(o,p.root)},c?{sx:{width:c}}:{},d,{children:N.jsx(nF,{align:i,className:s,variant:u,value:l,selected:a})}))}),rF=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var o,a;const s=Rn(),l=I.useRef(n),u=(o=t??l.current)!=null?o:i.emptyValue,c=I.useMemo(()=>i.getTimezone(s,u),[s,i,u]),d=jt(b=>c==null?b:i.setTimezone(s,c,b)),p=(a=e??c)!=null?a:"default",h=I.useMemo(()=>i.setTimezone(s,p,u),[i,s,p,u]),m=jt((b,...O)=>{const y=d(b);r==null||r(y,...O)});return{value:h,handleValueChange:m,timezone:p}},Jg=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[a,s]=Ji({name:e,state:"value",controlled:n,default:r??o.emptyValue}),l=jt((u,...c)=>{s(u),i==null||i(u,...c)});return rF({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function ire(e,t,n,r){const{value:i,onError:o}=e,a=Wl(),s=I.useRef(r),l=t({adapter:a,value:i,props:e});return I.useEffect(()=>{o&&!n(l,s.current)&&o(l,i),s.current=l},[n,o,s,l,i]),l}const yWe=e=>{const t=Rn(),n=zi(),r=Wl(),o=ci().direction==="rtl",{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:p,referenceDate:h,onChange:m,format:b,formatDensity:O="dense",selectedSections:y,onSelectedSectionsChange:v,shouldRespectLeadingZeros:S=!1,timezone:k}}=e,{timezone:C,value:w,handleValueChange:E}=rF({timezone:k,value:d,defaultValue:p,onChange:m,valueManager:a}),$=I.useMemo(()=>yHe(t,C),[t,C]),P=I.useCallback((ce,ge=null)=>s.getSectionsFromValue(t,ce,ge,o,ue=>CV(t,C,n,b,ue,O,S,o)),[s,b,n,o,S,t,O,C]),_=I.useMemo(()=>s.getValueStrFromSections(P(a.emptyValue),o),[s,P,a.emptyValue,o]),[B,U]=I.useState(()=>{const ce=P(w),ge={sections:ce,value:w,referenceValue:a.emptyValue,tempValueStrAndroid:null},ue=cHe(ce),xe=a.getInitialReferenceValue({referenceDate:h,value:w,utils:t,props:c,granularity:ue,timezone:C});return L({},ge,{referenceValue:xe})}),[V,z]=Ji({controlled:y,default:null,name:"useField",state:"selectedSectionIndexes"}),W=ce=>{z(ce),v==null||v(ce),U(ge=>L({},ge,{selectedSectionQuery:null}))},X=I.useMemo(()=>{if(V==null)return null;if(V==="all")return{startIndex:0,endIndex:B.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof V=="number")return{startIndex:V,endIndex:V};if(typeof V=="string"){const ce=B.sections.findIndex(ge=>ge.type===V);return{startIndex:ce,endIndex:ce}}return V},[V,B.sections]),q=({value:ce,referenceValue:ge,sections:ue})=>{if(U(De=>L({},De,{sections:ue,value:ce,referenceValue:ge,tempValueStrAndroid:null})),a.areValuesEqual(t,B.value,ce))return;const xe={validationError:u({adapter:r,value:ce,props:L({},c,{value:ce,timezone:C})})};E(ce,xe)},Y=(ce,ge)=>{const ue=[...B.sections];return ue[ce]=L({},ue[ce],{value:ge,modified:!0}),Yne(ue,o)},Z=()=>{q({value:a.emptyValue,referenceValue:B.referenceValue,sections:P(a.emptyValue)})},j=()=>{if(X==null)return;const ce=B.sections[X.startIndex],ge=s.getActiveDateManager(t,B,ce),xe=ge.getSections(B.sections).filter(Me=>Me.value!=="").length===(ce.value===""?0:1),De=Y(X.startIndex,""),Ve=xe?null:t.date(new Date("")),Je=ge.getNewValuesFromNewActiveDate(Ve);(Ve!=null&&!t.isValid(Ve))!=(ge.date!=null&&!t.isValid(ge.date))?q(L({},Je,{sections:De})):U(Me=>L({},Me,Je,{sections:De,tempValueStrAndroid:null}))},se=ce=>{const ge=(De,Ve)=>{const Je=t.parse(De,b);if(Je==null||!t.isValid(Je))return null;const Me=CV(t,C,n,b,Je,O,S,o);return _V(t,C,Je,Me,Ve,!1)},ue=s.parseValueStr(ce,B.referenceValue,ge),xe=s.updateReferenceValue(t,ue,B.referenceValue);q({value:ue,referenceValue:xe,sections:P(ue,B.sections)})},ve=({activeSection:ce,newSectionValue:ge,shouldGoToNextSection:ue})=>{ue&&X&&X.startIndexL({},ye,Me,{sections:De,tempValueStrAndroid:null}))},G=ce=>U(ge=>L({},ge,{tempValueStrAndroid:ce}));return I.useEffect(()=>{const ce=P(B.value);U(ge=>L({},ge,{sections:ce}))},[b,t.locale]),I.useEffect(()=>{let ce=!1;a.areValuesEqual(t,B.value,w)?ce=a.getTimezone(t,B.value)!==a.getTimezone(t,w):ce=!0,ce&&U(ge=>L({},ge,{value:w,referenceValue:s.updateReferenceValue(t,w,ge.referenceValue),sections:P(w)}))},[w]),{state:B,selectedSectionIndexes:X,setSelectedSections:W,clearValue:Z,clearActiveSection:j,updateSectionValue:ve,updateValueFromValueStr:se,setTempAndroidValueStr:G,sectionsValueBoundaries:$,placeholder:_,timezone:C}},OWe=5e3,Sh=e=>e.saveQuery!=null,vWe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const o=Rn(),[a,s]=I.useState(null),l=jt(()=>s(null));I.useEffect(()=>{var h;a!=null&&((h=e[a.sectionIndex])==null?void 0:h.type)!==a.sectionType&&l()},[e,a,l]),I.useEffect(()=>{if(a!=null){const h=setTimeout(()=>l(),OWe);return()=>{window.clearTimeout(h)}}return()=>{}},[a,l]);const u=({keyPressed:h,sectionIndex:m},b,O)=>{const y=h.toLowerCase(),v=e[m];if(a!=null&&(!O||O(a.value))&&a.sectionIndex===m){const k=`${a.value}${y}`,C=b(k,v);if(!Sh(C))return s({sectionIndex:m,value:k,sectionType:v.type}),C}const S=b(y,v);return Sh(S)&&!S.saveQuery?(l(),null):(s({sectionIndex:m,value:y,sectionType:v.type}),Sh(S)?null:S)},c=h=>{const m=(y,v,S)=>{const k=v.filter(C=>C.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},b=(y,v,S,k)=>{const C=w=>Hne(o,i,v.type,w);if(v.contentType==="letter")return m(v.format,C(v.format),y);if(S&&k!=null&&Vne(o,S).contentType==="letter"){const w=C(S),E=m(S,w,y);return Sh(E)?{saveQuery:!1}:L({},E,{sectionValue:k(E.sectionValue,w)})}return{saveQuery:!1}};return u(h,(y,v)=>{switch(v.type){case"month":{const S=k=>xV(o,k,o.formats.month,v.format);return b(y,v,o.formats.month,S)}case"weekDay":{const S=(k,C)=>C.indexOf(k).toString();return b(y,v,o.formats.weekday,S)}case"meridiem":return b(y,v);default:return{saveQuery:!1}}})},d=h=>{const m=(O,y)=>{const v=+`${O}`,S=n[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(v>S.maximum)return{saveQuery:!1};if(vS.maximum||O.length===S.maximum.toString().length;return{sectionValue:Qne(o,i,v,S,y),shouldGoToNextSection:k}};return u(h,(O,y)=>{if(y.contentType==="digit"||y.contentType==="digit-with-letter")return m(O,y);if(y.type==="month"){const v=qne(o,i,"digit","month","MM"),S=m(O,{type:y.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Sh(S))return S;const k=xV(o,S.sectionValue,"MM",y.format);return L({},S,{sectionValue:k})}if(y.type==="weekDay"){const v=m(O,y);if(Sh(v))return v;const S=Ux(o,i,y.format)[Number(v.sectionValue)-1];return L({},v,{sectionValue:S})}return{saveQuery:!1}},O=>!Number.isNaN(Number(O)))};return{applyCharacterEditing:jt(h=>{const m=e[h.sectionIndex],O=!Number.isNaN(Number(h.keyPressed))?d(h):c(h);O==null?r(null):t({activeSection:m,newSectionValue:O.sectionValue,shouldGoToNextSection:O.shouldGoToNextSection})}),resetCharacterQuery:l}},EWe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],iF=e=>{const t=Rn(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:o,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:p}=yWe(e),{inputRef:h,internalProps:m,internalProps:{readOnly:b=!1,unstableFieldRef:O,minutesStep:y},forwardedProps:{onClick:v,onKeyDown:S,onFocus:k,onBlur:C,onMouseUp:w,onPaste:E,error:$,clearable:P,onClear:_,disabled:B},fieldValueManager:U,valueManager:V,validator:z}=e,W=Ye(e.forwardedProps,EWe),{applyCharacterEditing:X,resetCharacterQuery:q}=vWe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:p}),Y=I.useRef(null),Z=yn(h,Y),j=I.useRef(void 0),ve=ci().direction==="rtl",G=I.useMemo(()=>EHe(n.sections,ve),[n.sections,ve]),ce=()=>{var ee;if(b){i(null);return}const J=(ee=Y.current.selectionStart)!=null?ee:0;let Re;J<=n.sections[0].startInInput||J>=n.sections[n.sections.length-1].endInInput?Re=1:Re=n.sections.findIndex(Ne=>Ne.startInInput-Ne.startSeparator.length>J);const Le=Re===-1?n.sections.length-1:Re-1;i(Le)},ge=jt((ee,...J)=>{ee.isDefaultPrevented()||(v==null||v(ee,...J),ce())}),ue=jt(ee=>{w==null||w(ee),ee.preventDefault()}),xe=jt((...ee)=>{k==null||k(...ee);const J=Y.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!J||J!==Y.current||r!=null||b||(J.value.length&&Number(J.selectionEnd)-Number(J.selectionStart)===J.value.length?i("all"):ce())})}),De=jt((...ee)=>{C==null||C(...ee),i(null)}),Ve=jt(ee=>{if(E==null||E(ee),b){ee.preventDefault();return}const J=ee.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Re=n.sections[r.startIndex],Le=/^[a-zA-Z]+$/.test(J),Ne=/^[0-9]+$/.test(J),ie=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(J);if(Re.contentType==="letter"&&Le||Re.contentType==="digit"&&Ne||Re.contentType==="digit-with-letter"&&ie){q(),s({activeSection:Re,newSectionValue:J,shouldGoToNextSection:!0}),ee.preventDefault();return}if(Le||Ne){ee.preventDefault();return}}ee.preventDefault(),q(),l(J)}),Je=jt(ee=>{if(b)return;const J=ee.target.value;if(J===""){q(),o();return}const Re=ee.nativeEvent.data,Le=Re&&Re.length>1,Ne=Le?Re:J,ie=im(Ne);if(r==null||Le){l(Le?Re:ie);return}let fe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&ie.length===1)fe=ie;else{const de=im(U.getValueStrFromSections(n.sections,ve));let Oe=-1,Te=-1;for(let et=0;etrt.end)return;const xt=ie.length-de.length+rt.end-im(rt.endSeparator||"").length;fe=ie.slice(rt.start+im(rt.startSeparator||"").length,xt)}if(fe.length===0){vHe()?u(Ne):(q(),a());return}X({keyPressed:fe,sectionIndex:r.startIndex})}),Me=jt(ee=>{switch(S==null||S(ee),!0){case(ee.key==="a"&&(ee.ctrlKey||ee.metaKey)):{ee.preventDefault(),i("all");break}case ee.key==="ArrowRight":{if(ee.preventDefault(),r==null)i(G.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const J=G.neighbors[r.startIndex].rightIndex;J!==null&&i(J)}break}case ee.key==="ArrowLeft":{if(ee.preventDefault(),r==null)i(G.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const J=G.neighbors[r.startIndex].leftIndex;J!==null&&i(J)}break}case ee.key==="Delete":{if(ee.preventDefault(),b)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?o():a(),q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ee.key):{if(ee.preventDefault(),b||r==null)break;const J=n.sections[r.startIndex],Re=U.getActiveDateManager(t,n,J),Le=pHe(t,p,J,ee.key,c,Re.date,{minutesStep:y});s({activeSection:J,newSectionValue:Le,shouldGoToNextSection:!1});break}}});Jr(()=>{if(!Y.current)return;if(r==null){Y.current.scrollLeft&&(Y.current.scrollLeft=0);return}const ee=n.sections[r.startIndex],J=n.sections[r.endIndex];let Re=ee.startInInput,Le=J.endInInput;if(r.shouldSelectBoundarySelectors&&(Re-=ee.startSeparator.length,Le+=J.endSeparator.length),Re!==Y.current.selectionStart||Le!==Y.current.selectionEnd){const Ne=Y.current.scrollTop;Y.current===yw(document)&&Y.current.setSelectionRange(Re,Le),Y.current.scrollTop=Ne}});const Ge=ire(L({},m,{value:n.value,timezone:p}),z,V.isSameError,V.defaultErrorState),ye=I.useMemo(()=>$!==void 0?$:V.hasError(Ge),[V,Ge,$]);I.useEffect(()=>{!ye&&!r&&q()},[n.referenceValue,r,ye]),I.useEffect(()=>(Y.current&&Y.current===document.activeElement&&i("all"),()=>window.clearTimeout(j.current)),[]),I.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(q(),a())},[n.tempValueStrAndroid]);const ze=I.useMemo(()=>{var ee;return(ee=n.tempValueStrAndroid)!=null?ee:U.getValueStrFromSections(n.sections,ve)},[n.sections,U,n.tempValueStrAndroid,ve]),$e=I.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),We=Y.current&&Y.current===yw(document),dt=V.areValuesEqual(t,n.value,V.emptyValue),Be=!We&&dt;I.useImperativeHandle(O,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ee,J;const Re=(ee=Y.current.selectionStart)!=null?ee:0,Le=(J=Y.current.selectionEnd)!=null?J:0;if(Re===0&&Le===0)return null;const Ne=Re<=n.sections[0].startInInput?1:n.sections.findIndex(ie=>ie.startInInput-ie.startSeparator.length>Re);return Ne===-1?n.sections.length-1:Ne-1},setSelectedSections:ee=>i(ee)}));const re=jt((ee,...J)=>{var Re;ee.preventDefault(),_==null||_(ee,...J),o(),Y==null||(Re=Y.current)==null||Re.focus(),i(0)});return L({placeholder:d,autoComplete:"off",disabled:!!B},W,{value:Be?"":ze,inputMode:$e,readOnly:b,onClick:ge,onFocus:xe,onBlur:De,onPaste:Ve,onChange:Je,onKeyDown:Me,onMouseUp:ue,onClear:re,error:ye,ref:Z,clearable:!!(P&&!dt&&!b&&!B)})},SWe=({open:e,onOpen:t,onClose:n})=>{const r=I.useRef(typeof e=="boolean").current,[i,o]=I.useState(!1);I.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const a=I.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},TWe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},wWe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},kWe=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},xWe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:d,timezone:p}=e,{current:h}=I.useRef(l),{current:m}=I.useRef(s!==void 0),b=Rn(),O=Wl(),[y,v]=Ji({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:k}=SWe(e),[C,w]=I.useState(()=>{let xe;return s!==void 0?xe=s:h!==void 0?xe=h:xe=t.emptyValue,{draft:xe,lastPublishedValue:xe,lastCommittedValue:xe,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:$}=rF({timezone:p,value:s,defaultValue:h,onChange:a,valueManager:t});ire(L({},e,{value:C.draft,timezone:E}),i,t.isSameError,t.defaultErrorState);const P=jt(xe=>{const De={action:xe,dateState:C,hasChanged:Ge=>!t.areValuesEqual(b,xe.value,Ge),isControlled:m,closeOnSelect:u},Ve=TWe(De),Je=wWe(De),Me=kWe(De);if(w(Ge=>L({},Ge,{draft:xe.value,lastPublishedValue:Ve?xe.value:Ge.lastPublishedValue,lastCommittedValue:Je?xe.value:Ge.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ve){const ye={validationError:xe.name==="setValueFromField"?xe.context.validationError:i({adapter:O,value:xe.value,props:L({},e,{value:xe.value,timezone:E})})};xe.name==="setValueFromShortcut"&&xe.shortcut!=null&&(ye.shortcut=xe.shortcut),$(xe.value,ye)}Je&&o&&o(xe.value),Me&&k(!1)});if(s!==void 0&&(C.lastControlledValue===void 0||!t.areValuesEqual(b,C.lastControlledValue,s))){const xe=t.areValuesEqual(b,C.draft,s);w(De=>L({},De,{lastControlledValue:s},xe?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const _=jt(()=>{P({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=jt(()=>{P({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=jt(()=>{P({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),V=jt(()=>{P({value:C.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=jt(()=>{P({value:t.getTodayValue(b,E,n),name:"setValueFromAction",pickerAction:"today"})}),W=jt(()=>k(!0)),X=jt(()=>k(!1)),q=jt((xe,De="partial")=>P({name:"setValueFromView",value:xe,selectionState:De})),Y=jt((xe,De,Ve)=>P({name:"setValueFromShortcut",value:xe,changeImportance:De??"accept",shortcut:Ve})),Z=jt((xe,De)=>P({name:"setValueFromField",value:xe,context:De})),j=jt(xe=>{v(xe),d==null||d(xe)}),se={onClear:_,onAccept:B,onDismiss:U,onCancel:V,onSetToday:z,onOpen:W,onClose:X},ve={value:C.draft,onChange:Z,selectedSections:y,onSelectedSectionsChange:j},G=I.useMemo(()=>t.cleanValue(b,C.draft),[b,t,C.draft]),ce={value:G,onChange:q,onClose:X,open:S,onSelectedSectionsChange:j},ue=L({},se,{value:G,onChange:q,onSelectShortcut:Y,isValid:xe=>{const De=i({adapter:O,value:xe,props:L({},e,{value:xe,timezone:E})});return!t.hasError(De)}});return{open:S,fieldProps:ve,viewProps:ce,layoutProps:ue,actions:se}};function jO({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){var l,u;const c=I.useRef(n),d=I.useRef(i),p=I.useRef(i.includes(n)?n:i[0]),[h,m]=Ji({name:"useViews",state:"view",controlled:r,default:p.current}),b=I.useRef(o?h:null),[O,y]=Ji({name:"useViews",state:"focusedView",controlled:a,default:b.current});I.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(P=>!i.includes(P)))&&(m(i.includes(n)?n:i[0]),d.current=i,c.current=n)},[n,m,h,i]);const v=i.indexOf(h),S=(l=i[v-1])!=null?l:null,k=(u=i[v+1])!=null?u:null,C=jt((P,_)=>{y(_?P:B=>P===B?null:B),s==null||s(P,_)}),w=jt(P=>{C(P,!0),P!==h&&(m(P),t&&t(P))}),E=jt(()=>{k&&w(k)}),$=jt((P,_,B)=>{const U=_==="finish",V=B?i.indexOf(B){const{onChange:o,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:p,viewRenderers:h,timezone:m}=e,b=Ye(e,CWe),{view:O,setView:y,defaultView:v,focusedView:S,setFocusedView:k,setValueAndGoToNextView:C}=jO({view:void 0,views:u,openTo:c,onChange:o,onViewChange:d,autoFocus:i}),{hasUIView:w,viewModeLookup:E}=I.useMemo(()=>u.reduce((z,W)=>{let X;return p?X="field":h[W]!=null?X="UI":X="field",z.viewModeLookup[W]=X,X==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,h,u]),$=I.useMemo(()=>u.reduce((z,W)=>h[W]!=null&&Og(W)?z+1:z,0),[h,u]),P=E[O],_=jt(()=>P==="UI"),[B,U]=I.useState(P==="UI"?O:null);return B!==O&&E[O]==="UI"&&U(O),Jr(()=>{P==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(O)}))},[O]),Jr(()=>{if(!a)return;let z=O;P==="field"&&B!=null&&(z=B),z!==v&&E[z]==="UI"&&E[v]==="UI"&&(z=v),z!==O&&y(z),k(z,!0)},[a]),{hasUIView:w,shouldRestoreFocus:_,layoutProps:{views:u,view:B,onViewChange:y},renderCurrentView:()=>{if(B==null)return null;const z=h[B];return z==null?null:z(L({},b,n,t,{views:u,timezone:m,onChange:C,view:B,onViewChange:y,focusedView:S,onFocusedViewChange:k,showViewSwitcher:$>1,timeViewsCount:$}))}}};function PV(){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 _We=(e,t)=>{const[n,r]=I.useState(PV);return Jr(()=>{const o=()=>{r(PV())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Lh(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},RWe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=_We(n.views,i);return{layoutProps:L({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},IWe=(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))}};IWe(["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 ore=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=xWe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=AWe({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=RWe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function are(e){return At("MuiPickersLayout",e)}const I2=_t("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),NWe=["onAccept","onClear","onCancel","onSetToday","actions"];function DWe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Ye(e,NWe),s=zi();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return N.jsx(wl,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return N.jsx(wl,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return N.jsx(wl,{onClick:t,children:s.okButtonLabel},u);case"today":return N.jsx(wl,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return N.jsx(Mbe,L({},a,{children:l}))}const PWe=["items","changeImportance","isLandscape","onChange","isValid"],LWe=["getValue"];function MWe(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=Ye(e,PWe);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=Ye(s,LWe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return N.jsx(WY,L({dense:!0,sx:[{maxHeight:Vx,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>N.jsx(Ah,{children:N.jsx(ZD,L({},s))},s.label))}))}function $We(e){return e.view!==null}const FWe=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"]},are,t)},BWe=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:d,onChange:p,onSelectShortcut:h,isValid:m,isLandscape:b,disabled:O,readOnly:y,children:v,components:S,componentsProps:k,slots:C,slotProps:w}=e,E=C??UO(S),$=w??k,P=FWe(e),_=(t=E==null?void 0:E.actionBar)!=null?t:DWe,B=kn({elementType:_,externalSlotProps:$==null?void 0:$.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:P.actionBar},ownerState:L({},e,{wrapperVariant:r})}),U=N.jsx(_,L({},B)),V=E==null?void 0:E.toolbar,z=kn({elementType:V,externalSlotProps:$==null?void 0:$.toolbar,additionalProps:{isLandscape:b,onChange:p,value:d,view:l,onViewChange:c,views:u,disabled:O,readOnly:y,className:P.toolbar},ownerState:L({},e,{wrapperVariant:r})}),W=$We(z)&&V?N.jsx(V,L({},z)):null,X=v,q=E==null?void 0:E.tabs,Y=l&&q?N.jsx(q,L({view:l,onViewChange:c},$==null?void 0:$.tabs)):null,Z=(n=E==null?void 0:E.shortcuts)!=null?n:MWe,j=kn({elementType:Z,externalSlotProps:$==null?void 0:$.shortcuts,additionalProps:{isValid:m,isLandscape:b,onChange:h,className:P.shortcuts},ownerState:{isValid:m,isLandscape:b,onChange:h,className:P.shortcuts,wrapperVariant:r}}),se=l&&Z?N.jsx(Z,L({},j)):null;return{toolbar:W,content:X,tabs:Y,actionBar:U,shortcuts:se}},UWe=e=>{const{isLandscape:t,classes:n}=e;return wt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},are,n)},sre=Ee("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",[`& .${I2.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${I2.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${I2.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));sre.propTypes={as:Q.elementType,ownerState:Q.shape({isLandscape:Q.bool.isRequired}).isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const jWe=Ee("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),lre=function(t){const n=mt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=BWe(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,h=n,m=UWe(h);return N.jsxs(sre,{ref:d,sx:l,className:Ke(u,m.root),ownerState:h,children:[c?s:r,c?r:s,N.jsx(jWe,{className:m.contentWrapper,children:p==="desktop"?N.jsxs(I.Fragment,{children:[i,o]}):N.jsxs(I.Fragment,{children:[o,i]})}),a]})};function zWe(e,{disableFuture:t,maxDate:n,timezone:r}){const i=Rn();return I.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)},[t,n,e,i,r])}function VWe(e,{disablePast:t,minDate:n,timezone:r}){const i=Rn();return I.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)},[t,n,e,i,r])}function Hx(e,t,n,r){const i=Rn(),o=lHe(e,i),a=I.useCallback(s=>{const l=e==null?null:uHe(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const sN=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],lN=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],ure=["minDateTime","maxDateTime"],HWe=[...sN,...lN,...ure],e0=e=>HWe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),WWe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],oF=(e,t)=>{const n=L({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return WWe.forEach(i),t==="date"?sN.forEach(i):t==="time"?lN.forEach(i):t==="date-time"&&(sN.forEach(i),lN.forEach(i),ure.forEach(i)),{forwardedProps:n,internalProps:r}},qp=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:o,disablePast:a,disableFuture:s,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=jo(n.utils,e.minDate,n.defaultDates.minDate),d=jo(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!!(o&&o(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(a&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},zO=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:d}=n,p=e.utils.dateWithTimezone(void 0,d),h=BO(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&h(r,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,p)):return"disableFuture";case!!(u&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(o&&e.utils.getMinutes(t)%o!==0):return"minutesStep";default:return null}},Wx=({props:e,value:t,adapter:n})=>{const r=qp({adapter:n,value:t,props:e});return r!==null?r:zO({adapter:n,value:t,props:e})};function QWe(e){return At("MuiPickersDay",e)}const xf=_t("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),YWe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],GWe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return wt({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},QWe,l)},cre=({theme:e,ownerState:t})=>L({},e.typography.caption,{width:b1,height:b1,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})`:cn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${xf.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xf.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}},[`&.${xf.disabled}:not(.${xf.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${xf.disabled}&.${xf.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${jx}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${xf.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),dre=(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]},qWe=Ee(hs,{name:"MuiPickersDay",slot:"Root",overridesResolver:dre})(cre),ZWe=Ee("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:dre})(({theme:e,ownerState:t})=>L({},cre({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),q0=()=>{},XWe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:p,onFocus:h=q0,onBlur:m=q0,onKeyDown:b=q0,onMouseDown:O=q0,onMouseEnter:y=q0,outsideCurrentMonth:v,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:C,today:w=!1}=r,E=Ye(r,YWe),$=L({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:w}),P=GWe($),_=Rn(),B=I.useRef(null),U=yn(B,n);Jr(()=>{i&&!s&&!c&&!v&&B.current.focus()},[i,s,c,v]);const V=W=>{O(W),v&&W.preventDefault()},z=W=>{s||p(a),v&&W.currentTarget.focus(),d&&d(W)};return v&&!k?N.jsx(ZWe,{className:Ke(P.root,P.hiddenDaySpacingFiller,o),ownerState:$,role:E.role}):N.jsx(qWe,L({className:Ke(P.root,o),ref:U,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:W=>b(W,a),onFocus:W=>h(W,a),onBlur:W=>m(W,a),onMouseEnter:W=>y(W,a),onClick:z,onMouseDown:V},E,{ownerState:$,children:C||_.format(a,"dayOfMonth")}))}),KWe=I.memo(XWe),JWe=e=>At("MuiPickersSlideTransition",e),xs=_t("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),eQe=["children","className","reduceAnimations","slideDirection","transKey","classes"],tQe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return wt(r,JWe,t)},nQe=Ee(jD,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${xs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${xs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${xs.slideEnterActive}`]:t.slideEnterActive},{[`.${xs.slideExit}`]:t.slideExit},{[`.${xs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${xs["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},[`& .${xs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${xs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${xs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${xs.slideExit}`]:{transform:"translate(0%)"},[`& .${xs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${xs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function rQe(e){const t=mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Ye(t,eQe),s=tQe(t),l=ci();if(i)return N.jsx("div",{className:Ke(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return N.jsx(nQe,{className:Ke(s.root,r),childFactory:c=>I.cloneElement(c,{classNames:u}),role:"presentation",children:N.jsx(_fe,L({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const fre=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Wl();return I.useCallback(u=>qp({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s}})!==null,[l,e,t,n,r,i,o,a,s])},iQe=e=>At("MuiDayCalendar",e);_t("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const oQe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],aQe=["ownerState"],sQe=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"]},iQe,t)},pre=(b1+jx*2)*6,lQe=Ee("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uQe=Ee("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),cQe=Ee(dr,{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})),dQe=Ee(dr,{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})),fQe=Ee(dr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>L({},e.typography.caption,{width:b1,height:b1,padding:0,margin:`0 ${jx}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),pQe=Ee("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:pre}),hQe=Ee(rQe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:pre}),mQe=Ee("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),gQe=Ee("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${jx}px 0`,display:"flex",justifyContent:"center"});function bQe(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=Ye(e,oQe);const{disabled:p,disableHighlightToday:h,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:b,components:O,componentsProps:y,slots:v,slotProps:S,timezone:k}=i,C=Rn(),w=mf(k),E=a!==null&&C.isSameDay(o,a),$=s.some(q=>C.isSameDay(q,o)),P=C.isSameDay(o,w),_=(t=(n=v==null?void 0:v.day)!=null?n:O==null?void 0:O.Day)!=null?t:KWe,B=kn({elementType:_,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:y==null?void 0:y.day,additionalProps:L({disableHighlightToday:h,showDaysOutsideCurrentMonth:b,role:"gridcell",isAnimating:m,"data-timestamp":C.toJsDate(o).valueOf()},d),ownerState:L({},i,{day:o,selected:$})}),U=Ye(B,aQe),V=I.useMemo(()=>p||l(o),[p,l,o]),z=I.useMemo(()=>C.getMonth(o)!==u,[C,o,u]),W=I.useMemo(()=>{const q=C.startOfMonth(C.setMonth(o,u));return b?C.isSameDay(o,C.startOfWeek(q)):C.isSameDay(o,q)},[u,o,b,C]),X=I.useMemo(()=>{const q=C.endOfMonth(C.setMonth(o,u));return b?C.isSameDay(o,C.endOfWeek(q)):C.isSameDay(o,q)},[u,o,b,C]);return N.jsx(_,L({},U,{day:o,disabled:V,autoFocus:c&&E,today:P,outsideCurrentMonth:z,isFirstVisibleCell:W,isLastVisibleCell:X,selected:$,tabIndex:E?0:-1,"aria-selected":$,"aria-current":P?"date":void 0}))}function yQe(e){const t=mt({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:o,focusedDay:a,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:d,renderLoading:p=()=>N.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:m,disablePast:b,disableFuture:O,minDate:y,maxDate:v,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,dayOfWeekFormatter:w,hasFocus:E,onFocusedViewChange:$,gridLabelId:P,displayWeekNumber:_,fixedWeekNumber:B,autoFocus:U,timezone:V}=t,z=mf(V),W=Rn(),X=sQe(t),Y=ci().direction==="rtl",Z=w||((Be,re)=>W.format(re,"weekdayShort").charAt(0).toUpperCase()),j=fre({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,minDate:y,maxDate:v,disablePast:b,disableFuture:O,timezone:V}),se=zi(),[ve,G]=Ji({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[ce,ge]=I.useState(()=>a||z),ue=jt(Be=>{c||l(Be)}),xe=Be=>{j(Be)||(n(Be),ge(Be),$==null||$(!0),G(!0))},De=jt((Be,re)=>{switch(Be.key){case"ArrowUp":xe(W.addDays(re,-7)),Be.preventDefault();break;case"ArrowDown":xe(W.addDays(re,7)),Be.preventDefault();break;case"ArrowLeft":{const ee=W.addDays(re,Y?1:-1),J=W.addMonths(re,Y?1:-1),Re=ty({utils:W,date:ee,minDate:Y?ee:W.startOfMonth(J),maxDate:Y?W.endOfMonth(J):ee,isDateDisabled:j,timezone:V});xe(Re||ee),Be.preventDefault();break}case"ArrowRight":{const ee=W.addDays(re,Y?-1:1),J=W.addMonths(re,Y?-1:1),Re=ty({utils:W,date:ee,minDate:Y?W.startOfMonth(J):ee,maxDate:Y?ee:W.endOfMonth(J),isDateDisabled:j,timezone:V});xe(Re||ee),Be.preventDefault();break}case"Home":xe(W.startOfWeek(re)),Be.preventDefault();break;case"End":xe(W.endOfWeek(re)),Be.preventDefault();break;case"PageUp":xe(W.addMonths(re,1)),Be.preventDefault();break;case"PageDown":xe(W.addMonths(re,-1)),Be.preventDefault();break}}),Ve=jt((Be,re)=>xe(re)),Je=jt((Be,re)=>{ve&&W.isSameDay(ce,re)&&($==null||$(!1))}),Me=W.getMonth(i),Ge=I.useMemo(()=>o.filter(Be=>!!Be).map(Be=>W.startOfDay(Be)),[W,o]),ye=Me,ze=I.useMemo(()=>I.createRef(),[ye]),$e=W.startOfWeek(z),We=I.useMemo(()=>{const Be=W.startOfMonth(i),re=W.endOfMonth(i);return j(ce)||W.isAfterDay(ce,re)||W.isBeforeDay(ce,Be)?ty({utils:W,date:ce,minDate:Be,maxDate:re,disablePast:b,disableFuture:O,isDateDisabled:j,timezone:V}):ce},[i,O,b,ce,j,W,V]),dt=I.useMemo(()=>{const Be=W.setTimezone(i,V),re=W.getWeekArray(Be);let ee=W.addMonths(Be,1);for(;B&&re.length{re.length{var ee;const J=W.format(Be,"weekdayShort");return N.jsx(cQe,{variant:"caption",role:"columnheader","aria-label":W.format(W.addDays($e,re),"weekday"),className:X.weekDayLabel,children:(ee=Z==null?void 0:Z(J,Be))!=null?ee:J},J+re.toString())})]}),s?N.jsx(pQe,{className:X.loadingContainer,children:p()}):N.jsx(hQe,L({transKey:ye,onExited:u,reduceAnimations:d,slideDirection:h,className:Ke(r,X.slideTransition)},m,{nodeRef:ze,children:N.jsx(mQe,{ref:ze,role:"rowgroup",className:X.monthContainer,children:dt.map((Be,re)=>N.jsxs(gQe,{role:"row",className:X.weekContainer,"aria-rowindex":re+1,children:[_&&N.jsx(fQe,{className:X.weekNumber,role:"rowheader","aria-label":se.calendarWeekNumberAriaLabelText(W.getWeekNumber(Be[0])),children:se.calendarWeekNumberText(W.getWeekNumber(Be[0]))}),Be.map((ee,J)=>N.jsx(bQe,{parentProps:t,day:ee,selectedDays:Ge,focusableDay:We,onKeyDown:De,onFocus:Ve,onBlur:Je,onDaySelect:ue,isDateDisabled:j,currentMonthNumber:Me,isViewFocused:ve,"aria-colindex":J+1},ee.toString()))]},`week-${Be[0]}`))})}))]})}const OQe=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return L({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return L({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return L({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},vQe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:d,timezone:p}=e,h=mf(p),m=Rn(),b=I.useRef(OQe(!!c,a,m)).current,O=I.useMemo(()=>{let $=null;return n?$=n:r&&($=m.startOfMonth(r)),Bi.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:$,granularity:El.day})},[]),[y,v]=I.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:m.isValid(t)?t:h,currentMonth:m.startOfMonth(O),slideDirection:"left"}),S=I.useCallback($=>{v(L({type:"changeMonth"},$)),u&&u($.newMonth)},[u]),k=I.useCallback($=>{const P=$;m.isSameMonth(P,y.currentMonth)||S({newMonth:m.startOfMonth(P),direction:m.isAfterDay(P,y.currentMonth)?"left":"right"})},[y.currentMonth,S,m]),C=fre({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:p}),w=I.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),E=jt(($,P)=>{C($)||v({type:"changeFocusedDay",focusedDay:$,withoutMonthSwitchingAnimation:P})});return{referenceDate:O,calendarState:y,changeMonth:k,changeFocusedDay:E,isDateDisabled:C,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}},EQe=["props","getOpenDialogAriaText"],SQe=["ownerState"],TQe=["ownerState"],aF=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=Ye(e,EQe);const{slots:u,slotProps:c,className:d,sx:p,format:h,formatDensity:m,timezone:b,name:O,label:y,inputRef:v,readOnly:S,disabled:k,autoFocus:C,localeText:w,reduceAnimations:E}=a,$=Rn(),P=I.useRef(null),_=I.useRef(null),B=Fl(),U=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:V,actions:z,hasUIView:W,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:Z}=ore(L({},l,{props:a,inputRef:P,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=u.inputAdornment)!=null?r:eP,se=kn({elementType:j,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),ve=Ye(se,SQe),G=(i=u.openPickerButton)!=null?i:eo,ce=kn({elementType:G,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:k||S,onClick:V?z.onClose:z.onOpen,"aria-label":s(Z.value,$),edge:ve.position},ownerState:a}),ge=Ye(ce,TQe),ue=u.openPickerIcon,xe=u.field,De=kn({elementType:xe,externalSlotProps:c==null?void 0:c.field,additionalProps:L({},Z,U&&{id:B},{readOnly:S,disabled:k,className:d,sx:p,format:h,formatDensity:m,timezone:b,label:y,name:O,autoFocus:C&&!a.open,focused:V?!0:void 0}),ownerState:a});W&&(De.InputProps=L({},De.InputProps,{ref:_,[`${ve.position}Adornment`]:N.jsx(j,L({},ve,{children:N.jsx(G,L({},ge,{children:N.jsx(ue,L({},c==null?void 0:c.openPickerIcon))}))}))}));const Ve=L({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},De.slots),Je=(o=u.layout)!=null?o:lre,Me=yn(P,De.inputRef,v);let Ge=B;U&&(y?Ge=`${B}-label`:Ge=void 0);const ye=L({},c,{toolbar:L({},c==null?void 0:c.toolbar,{titleId:B}),popper:L({"aria-labelledby":Ge},c==null?void 0:c.popper)});return{renderPicker:()=>N.jsxs(Zne,{localeText:w,children:[N.jsx(xe,L({},De,{slots:Ve,slotProps:ye,inputRef:Me})),N.jsx(cWe,L({role:"dialog",placement:"bottom-start",anchorEl:_.current},z,{open:V,slots:u,slotProps:ye,shouldRestoreFocus:Y,reduceAnimations:E,children:N.jsx(Je,L({},X,ye==null?void 0:ye.layout,{slots:u,slotProps:ye,children:q()}))}))]})}},wQe=e=>{var t,n,r;const i=Rn(),o=Gp();return L({},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:jo(i,e.minDate,o.minDate),maxDate:jo(i,e.maxDate,o.maxDate)})},kQe=({props:e,inputRef:t})=>{const n=wQe(e),{forwardedProps:r,internalProps:i}=oF(n,"date");return iF({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:J$,validator:qp,valueType:"date"})},xQe=["ownerState"],sF=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:o,components:a,componentsProps:s})=>{var l,u,c,d,p,h;const m=zi(),b=(l=(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.ClearButton)!=null?l:eo,O=kn({elementType:b,externalSlotProps:(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:m.fieldClearLabel}}),y=Ye(O,xQe),v=(d=(p=i==null?void 0:i.clearIcon)!=null?p:a==null?void 0:a.ClearIcon)!=null?d:jHe,S=kn({elementType:v,externalSlotProps:(h=o==null?void 0:o.clearIcon)!=null?h:s==null?void 0:s.clearIcon,ownerState:{}}),k=L({},n,{endAdornment:N.jsxs(I.Fragment,{children:[e&&N.jsx(eP,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:N.jsx(b,L({},y,{onClick:r,children:N.jsx(v,L({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]})}),C=L({},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:k,fieldProps:C}},CQe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],AQe=["inputRef"],_Qe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],hre=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ye(a,CQe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:$p,O=kn({elementType:b,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ye(O,AQe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=kQe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:P,onClear:_}=S,B=Ye(S,_Qe),{InputProps:U,fieldProps:V}=sF({onClear:_,clearable:P,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return N.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))}),RQe=e=>At("MuiPickersFadeTransitionGroup",e);_t("MuiPickersFadeTransitionGroup",["root"]);const IQe=e=>{const{classes:t}=e;return wt({root:["root"]},RQe,t)},NQe=Ee(jD,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function mre(e){const t=mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=IQe(t),s=ci();return i?n:N.jsx(NQe,{className:Ke(a.root,r),children:N.jsx(_g,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function DQe(e){return At("MuiPickersMonth",e)}const SE=_t("MuiPickersMonth",["root","monthButton","disabled","selected"]),PQe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],LQe=e=>{const{disabled:t,selected:n,classes:r}=e;return wt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},DQe,r)},MQe=Ee("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"})),$Qe=Ee("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${SE.disabled}`]:t.disabled},{[`&.${SE.selected}`]:t.selected}]})(({theme:e})=>L({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})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${SE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${SE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),FQe=I.memo(function(t){const n=mt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:p,"aria-current":h,"aria-label":m}=n,b=Ye(n,PQe),O=I.useRef(null),y=LQe(n);return Jr(()=>{if(r){var v;(v=O.current)==null||v.focus()}},[r]),N.jsx(MQe,L({className:y.root,ownerState:n},b,{children:N.jsx($Qe,{ref:O,disabled:o,type:"button",role:"radio",tabIndex:o?-1:l,"aria-current":h,"aria-checked":a,"aria-label":m,onClick:v=>u(v,s),onKeyDown:v=>c(v,s),onFocus:v=>d(v,s),onBlur:v=>p(v,s),className:y.monthButton,ownerState:n,children:i})}))});function BQe(e){return At("MuiMonthCalendar",e)}_t("MuiMonthCalendar",["root"]);const UQe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],jQe=e=>{const{classes:t}=e;return wt({root:["root"]},BQe,t)};function zQe(e,t){const n=Rn(),r=Gp(),i=mt({props:e,name:t});return L({disableFuture:!1,disablePast:!1},i,{minDate:jo(n,i.minDate,r.minDate),maxDate:jo(n,i.maxDate,r.maxDate)})}const VQe=Ee("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:zx,boxSizing:"border-box"}),HQe=I.forwardRef(function(t,n){const r=zQe(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:p,onChange:h,shouldDisableMonth:m,readOnly:b,disableHighlightToday:O,autoFocus:y=!1,onMonthFocus:v,hasFocus:S,onFocusedViewChange:k,monthsPerRow:C=3,timezone:w,gridLabelId:E}=r,$=Ye(r,UQe),{value:P,handleValueChange:_,timezone:B}=Jg({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,onChange:h,valueManager:Bi}),U=mf(B),V=Ag(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:P,utils:z,props:r,timezone:B,referenceDate:s,granularity:El.month}),[]),X=r,q=jQe(X),Y=I.useMemo(()=>z.getMonth(U),[z,U]),Z=I.useMemo(()=>P!=null?z.getMonth(P):O?null:z.getMonth(W),[P,z,O,W]),[j,se]=I.useState(()=>Z||Y),[ve,G]=Ji({name:"MonthCalendar",state:"hasFocus",controlled:S,default:y??!1}),ce=jt(Me=>{G(Me),k&&k(Me)}),ge=I.useCallback(Me=>{const Ge=z.startOfMonth(c&&z.isAfter(U,p)?U:p),ye=z.startOfMonth(u&&z.isBefore(U,d)?U:d),ze=z.startOfMonth(Me);return z.isBefore(ze,Ge)||z.isAfter(ze,ye)?!0:m?m(ze):!1},[u,c,d,p,U,m,z]),ue=jt((Me,Ge)=>{if(b)return;const ye=z.setMonth(P??W,Ge);_(ye)}),xe=jt(Me=>{ge(z.setMonth(P??W,Me))||(se(Me),ce(!0),v&&v(Me))});I.useEffect(()=>{se(Me=>Z!==null&&Me!==Z?Z:Me)},[Z]);const De=jt((Me,Ge)=>{switch(Me.key){case"ArrowUp":xe((12+Ge-3)%12),Me.preventDefault();break;case"ArrowDown":xe((12+Ge+3)%12),Me.preventDefault();break;case"ArrowLeft":xe((12+Ge+(V.direction==="ltr"?-1:1))%12),Me.preventDefault();break;case"ArrowRight":xe((12+Ge+(V.direction==="ltr"?1:-1))%12),Me.preventDefault();break}}),Ve=jt((Me,Ge)=>{xe(Ge)}),Je=jt((Me,Ge)=>{j===Ge&&ce(!1)});return N.jsx(VQe,L({ref:n,className:Ke(q.root,i),ownerState:X,role:"radiogroup","aria-labelledby":E},$,{children:Z$(z,P??W).map(Me=>{const Ge=z.getMonth(Me),ye=z.format(Me,"monthShort"),ze=z.format(Me,"month"),$e=Ge===Z,We=l||ge(Me);return N.jsx(FQe,{selected:$e,value:Ge,onClick:ue,onKeyDown:De,autoFocus:ve&&Ge===j,disabled:We,tabIndex:Ge===j?0:-1,onFocus:Ve,onBlur:Je,"aria-current":Y===Ge?"date":void 0,"aria-label":ze,monthsPerRow:C,children:ye},ye)})}))});function WQe(e){return At("MuiPickersYear",e)}const TE=_t("MuiPickersYear",["root","yearButton","selected","disabled"]),QQe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],YQe=e=>{const{disabled:t,selected:n,classes:r}=e;return wt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},WQe,r)},GQe=Ee("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"})),qQe=Ee("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${TE.disabled}`]:t.disabled},{[`&.${TE.selected}`]:t.selected}]})(({theme:e})=>L({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})`:cn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${TE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${TE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),ZQe=I.memo(function(t){const n=mt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":m}=n,b=Ye(n,QQe),O=I.useRef(null),y=YQe(n);return I.useEffect(()=>{r&&O.current.focus()},[r]),N.jsx(GQe,L({className:Ke(y.root,i),ownerState:n},b,{children:N.jsx(qQe,{ref:O,disabled:a,type:"button",role:"radio",tabIndex:a?-1:u,"aria-current":m,"aria-checked":s,onClick:v=>c(v,l),onKeyDown:v=>d(v,l),onFocus:v=>p(v,l),onBlur:v=>h(v,l),className:y.yearButton,ownerState:n,children:o})}))});function XQe(e){return At("MuiYearCalendar",e)}_t("MuiYearCalendar",["root"]);const KQe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],JQe=e=>{const{classes:t}=e;return wt({root:["root"]},XQe,t)};function eYe(e,t){var n;const r=Rn(),i=Gp(),o=mt({props:e,name:t});return L({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:jo(r,o.minDate,i.minDate),maxDate:jo(r,o.maxDate,i.maxDate)})}const tYe=Ee("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:zx,maxHeight:qHe,boxSizing:"border-box",position:"relative"}),nYe=I.forwardRef(function(t,n){const r=eYe(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:p,minDate:h,onChange:m,readOnly:b,shouldDisableYear:O,disableHighlightToday:y,onYearFocus:v,hasFocus:S,onFocusedViewChange:k,yearsPerRow:C,timezone:w,gridLabelId:E}=r,$=Ye(r,KQe),{value:P,handleValueChange:_,timezone:B}=Jg({name:"YearCalendar",timezone:w,value:a,defaultValue:s,onChange:m,valueManager:Bi}),U=mf(B),V=Ag(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:P,utils:z,props:r,timezone:B,referenceDate:l,granularity:El.year}),[]),X=r,q=JQe(X),Y=I.useMemo(()=>z.getYear(U),[z,U]),Z=I.useMemo(()=>P!=null?z.getYear(P):y?null:z.getYear(W),[P,z,y,W]),[j,se]=I.useState(()=>Z||Y),[ve,G]=Ji({name:"YearCalendar",state:"hasFocus",controlled:S,default:i??!1}),ce=jt(ye=>{G(ye),k&&k(ye)}),ge=I.useCallback(ye=>{if(d&&z.isBeforeYear(ye,U)||c&&z.isAfterYear(ye,U)||h&&z.isBeforeYear(ye,h)||p&&z.isAfterYear(ye,p))return!0;if(!O)return!1;const ze=z.startOfYear(ye);return O(ze)},[c,d,p,h,U,O,z]),ue=jt((ye,ze)=>{if(b)return;const $e=z.setYear(P??W,ze);_($e)}),xe=jt(ye=>{ge(z.setYear(P??W,ye))||(se(ye),ce(!0),v==null||v(ye))});I.useEffect(()=>{se(ye=>Z!==null&&ye!==Z?Z:ye)},[Z]);const De=jt((ye,ze)=>{switch(ye.key){case"ArrowUp":xe(ze-C),ye.preventDefault();break;case"ArrowDown":xe(ze+C),ye.preventDefault();break;case"ArrowLeft":xe(ze+(V.direction==="ltr"?-1:1)),ye.preventDefault();break;case"ArrowRight":xe(ze+(V.direction==="ltr"?1:-1)),ye.preventDefault();break}}),Ve=jt((ye,ze)=>{xe(ze)}),Je=jt((ye,ze)=>{j===ze&&ce(!1)}),Me=I.useRef(null),Ge=yn(n,Me);return I.useEffect(()=>{if(i||Me.current===null)return;const ye=Me.current.querySelector('[tabindex="0"]');if(!ye)return;const ze=ye.offsetHeight,$e=ye.offsetTop,We=Me.current.clientHeight,dt=Me.current.scrollTop,Be=$e+ze;ze>We||$e{const ze=z.getYear(ye),$e=ze===Z,We=u||ge(ye);return N.jsx(ZQe,{selected:$e,value:ze,onClick:ue,onKeyDown:De,autoFocus:ve&&ze===j,disabled:We,tabIndex:ze===j?0:-1,onFocus:Ve,onBlur:Je,"aria-current":Y===ze?"date":void 0,yearsPerRow:C,children:z.format(ye,"year")},z.format(ye,"year"))})}))}),rYe=e=>At("MuiPickersCalendarHeader",e),iYe=_t("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),oYe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],aYe=["ownerState"],sYe=e=>{const{classes:t}=e;return wt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},rYe,t)},lYe=Ee("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}),uYe=Ee("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>L({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),cYe=Ee("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),dYe=Ee(eo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>L({marginRight:"auto"},e.view==="year"&&{[`.${iYe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),fYe=Ee(LHe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),pYe=I.forwardRef(function(t,n){var r,i,o,a;const s=zi(),l=Rn(),u=mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:d,components:p,currentMonth:h,disabled:m,disableFuture:b,disablePast:O,maxDate:y,minDate:v,onMonthChange:S,onViewChange:k,view:C,reduceAnimations:w,views:E,labelId:$,className:P,timezone:_}=u,B=Ye(u,oYe),U=u,V=sYe(u),z=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:dYe,W=kn({elementType:z,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(C)},ownerState:U,className:V.switchViewButton}),X=(o=(a=c==null?void 0:c.switchViewIcon)!=null?a:p==null?void 0:p.SwitchViewIcon)!=null?o:fYe,q=kn({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:V.switchViewIcon}),Y=Ye(q,aYe),Z=()=>S(l.addMonths(h,1),"left"),j=()=>S(l.addMonths(h,-1),"right"),se=zWe(h,{disableFuture:b,maxDate:y,timezone:_}),ve=VWe(h,{disablePast:O,minDate:v,timezone:_}),G=()=>{if(!(E.length===1||!k||m))if(E.length===2)k(E.find(ce=>ce!==C)||E[0]);else{const ce=E.indexOf(C)!==0?0:1;k(E[ce])}};return E.length===1&&E[0]==="year"?null:N.jsxs(lYe,L({},B,{ownerState:U,className:Ke(P,V.root),ref:n,children:[N.jsxs(uYe,{role:"presentation",onClick:G,ownerState:U,"aria-live":"polite",className:V.labelContainer,children:[N.jsx(mre,{reduceAnimations:w,transKey:l.format(h,"monthAndYear"),children:N.jsx(cYe,{id:$,ownerState:U,className:V.label,children:l.format(h,"monthAndYear")})}),E.length>1&&!m&&N.jsx(z,L({},W,{children:N.jsx(X,L({},Y))}))]}),N.jsx(_g,{in:C==="day",children:N.jsx(tre,{slots:c,slotProps:d,onGoToPrevious:j,isPreviousDisabled:ve,previousLabel:s.previousMonth,onGoToNext:Z,isNextDisabled:se,nextLabel:s.nextMonth})})]}))}),Qx=Ee("div")({overflow:"hidden",width:zx,maxHeight:Vx,display:"flex",flexDirection:"column",margin:"0 auto"}),hYe=e=>At("MuiDateCalendar",e);_t("MuiDateCalendar",["root","viewTransitionContainer"]);const mYe=["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"],gYe=e=>{const{classes:t}=e;return wt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},hYe,t)};function bYe(e,t){var n,r,i,o,a,s,l;const u=Rn(),c=Gp(),d=rre(),p=mt({props:e,name:t});return L({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(i=p.disableFuture)!=null?i:!1,openTo:(o=p.openTo)!=null?o:"day",views:(a=p.views)!=null?a:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:d,renderLoading:(l=p.renderLoading)!=null?l:()=>N.jsx("span",{children:"..."}),minDate:jo(u,p.minDate,c.minDate),maxDate:jo(u,p.maxDate,c.maxDate)})}const yYe=Ee(Qx,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Vx}),OYe=Ee(mre,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),gre=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=Fl(),l=bYe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:p,referenceDate:h,disableFuture:m,disablePast:b,defaultCalendarMonth:O,onChange:y,onYearChange:v,onMonthChange:S,reduceAnimations:k,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,view:$,views:P,openTo:_,className:B,disabled:U,readOnly:V,minDate:z,maxDate:W,disableHighlightToday:X,focusedView:q,onFocusedViewChange:Y,showDaysOutsideCurrentMonth:Z,fixedWeekNumber:j,dayOfWeekFormatter:se,components:ve,componentsProps:G,slots:ce,slotProps:ge,loading:ue,renderLoading:xe,displayWeekNumber:De,yearsPerRow:Ve,monthsPerRow:Je,timezone:Me}=l,Ge=Ye(l,mYe),{value:ye,handleValueChange:ze,timezone:$e}=Jg({name:"DateCalendar",timezone:Me,value:d,defaultValue:p,onChange:y,valueManager:Bi}),{view:We,setView:dt,focusedView:Be,setFocusedView:re,goToNextView:ee,setValueAndGoToNextView:J}=jO({view:$,views:P,openTo:_,onChange:ze,onViewChange:c,autoFocus:u,focusedView:q,onFocusedViewChange:Y}),{referenceDate:Re,calendarState:Le,changeFocusedDay:Ne,changeMonth:ie,handleChangeMonth:fe,isDateDisabled:de,onMonthSwitchingAnimationEnd:Oe}=vQe({value:ye,defaultCalendarMonth:O,referenceDate:h,reduceAnimations:k,onMonthChange:S,minDate:z,maxDate:W,shouldDisableDate:C,disablePast:b,disableFuture:m,timezone:$e}),Te=U&&ye||z,rt=U&&ye||W,pt=`${s}-grid-label`,xt=Be!==null,et=(r=(i=ce==null?void 0:ce.calendarHeader)!=null?i:ve==null?void 0:ve.CalendarHeader)!=null?r:pYe,vt=kn({elementType:et,externalSlotProps:(o=ge==null?void 0:ge.calendarHeader)!=null?o:G==null?void 0:G.calendarHeader,additionalProps:{views:P,view:We,currentMonth:Le.currentMonth,onViewChange:dt,onMonthChange:(_e,pe)=>fe({newMonth:_e,direction:pe}),minDate:Te,maxDate:rt,disabled:U,disablePast:b,disableFuture:m,reduceAnimations:k,timezone:$e,labelId:pt,slots:ce,slotProps:ge},ownerState:l}),qe=jt(_e=>{const pe=a.startOfMonth(_e),lt=a.endOfMonth(_e),at=de(_e)?ty({utils:a,date:_e,minDate:a.isBefore(z,pe)?pe:z,maxDate:a.isAfter(W,lt)?lt:W,disablePast:b,disableFuture:m,isDateDisabled:de,timezone:$e}):_e;at?(J(at,"finish"),S==null||S(pe)):(ee(),ie(pe)),Ne(at,!0)}),it=jt(_e=>{const pe=a.startOfYear(_e),lt=a.endOfYear(_e),at=de(_e)?ty({utils:a,date:_e,minDate:a.isBefore(z,pe)?pe:z,maxDate:a.isAfter(W,lt)?lt:W,disablePast:b,disableFuture:m,isDateDisabled:de,timezone:$e}):_e;at?(J(at,"finish"),v==null||v(at)):(ee(),ie(pe)),Ne(at,!0)}),Et=jt(_e=>ze(_e&&oN(a,_e,ye??Re),"finish",We));I.useEffect(()=>{ye!=null&&a.isValid(ye)&&ie(ye)},[ye]);const Dt=l,on=gYe(Dt),dn={disablePast:b,disableFuture:m,maxDate:W,minDate:z},pn={disableHighlightToday:X,readOnly:V,disabled:U,timezone:$e,gridLabelId:pt},zn=I.useRef(We);I.useEffect(()=>{zn.current!==We&&(Be===zn.current&&re(We,!0),zn.current=We)},[Be,re,We]);const Se=I.useMemo(()=>[ye],[ye]);return N.jsxs(yYe,L({ref:n,className:Ke(on.root,B),ownerState:Dt},Ge,{children:[N.jsx(et,L({},vt)),N.jsx(OYe,{reduceAnimations:k,className:on.viewTransitionContainer,transKey:We,ownerState:Dt,children:N.jsxs("div",{children:[We==="year"&&N.jsx(nYe,L({},dn,pn,{value:ye,onChange:it,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("year",_e),yearsPerRow:Ve,referenceDate:Re})),We==="month"&&N.jsx(HQe,L({},dn,pn,{hasFocus:xt,className:B,value:ye,onChange:qe,shouldDisableMonth:w,onFocusedViewChange:_e=>re("month",_e),monthsPerRow:Je,referenceDate:Re})),We==="day"&&N.jsx(yQe,L({},Le,dn,pn,{onMonthSwitchingAnimationEnd:Oe,onFocusedDayChange:Ne,reduceAnimations:k,selectedDays:Se,onSelectedDaysChange:Et,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("day",_e),showDaysOutsideCurrentMonth:Z,fixedWeekNumber:j,dayOfWeekFormatter:se,displayWeekNumber:De,components:ve,componentsProps:G,slots:ce,slotProps:ge,loading:ue,renderLoading:xe}))]})})]}))}),Zs=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:y,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:P,slots:_,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:W,disabled:X,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:Y,sx:Z,autoFocus:j,fixedWeekNumber:se,displayWeekNumber:ve,timezone:G})=>N.jsx(gre,{view:e,onViewChange:t,views:n.filter(Tm),focusedView:r&&Tm(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:y,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:P,slots:_,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:W,disabled:X,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:Y,sx:Z,autoFocus:j,fixedWeekNumber:se,displayWeekNumber:ve,timezone:G}),bre=I.forwardRef(function(t,n){var r,i,o,a;const s=zi(),l=Rn(),u=Jne(t,"MuiDesktopDatePicker"),c=L({day:Zs,month:Zs,year:Zs},u.viewRenderers),d=L({},u,{viewRenderers:c,format:m1(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:L({openPickerIcon:ere,field:hre},u.slots),slotProps:L({},u.slotProps,{field:h=>{var m;return L({},af((m=u.slotProps)==null?void 0:m.field,h),e0(u),{ref:n})},toolbar:L({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=aF({props:d,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:qp});return p()});bre.propTypes={autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,minDate:Q.any,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","month","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","month","year"]),viewRenderers:Q.shape({day:Q.func,month:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","month","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const vYe=["props","getOpenDialogAriaText"],lF=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=Ye(e,vYe);const{slots:s,slotProps:l,className:u,sx:c,format:d,formatDensity:p,timezone:h,name:m,label:b,inputRef:O,readOnly:y,disabled:v,localeText:S}=i,k=Rn(),C=I.useRef(null),w=Fl(),E=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:P,layoutProps:_,renderCurrentView:B,fieldProps:U}=ore(L({},a,{props:i,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=s.field,z=kn({elementType:V,externalSlotProps:l==null?void 0:l.field,additionalProps:L({},U,E&&{id:w},!(v||y)&&{onClick:P.onOpen,onKeyDown:eWe(P.onOpen)},{readOnly:y??!0,disabled:v,className:u,sx:c,format:d,formatDensity:p,timezone:h,label:b,name:m}),ownerState:i});z.inputProps=L({},z.inputProps,{"aria-label":o(U.value,k)});const W=L({textField:s.textField},z.slots),X=(r=s.layout)!=null?r:lre,q=yn(C,z.inputRef,O);let Y=w;E&&(b?Y=`${w}-label`:Y=void 0);const Z=L({},l,{toolbar:L({},l==null?void 0:l.toolbar,{titleId:w}),mobilePaper:L({"aria-labelledby":Y},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>N.jsxs(Zne,{localeText:S,children:[N.jsx(V,L({},z,{slots:W,slotProps:Z,inputRef:q})),N.jsx(KHe,L({},P,{open:$,slots:s,slotProps:Z,children:N.jsx(X,L({},_,Z==null?void 0:Z.layout,{slots:s,slotProps:Z,children:B()}))}))]})}},uF=I.forwardRef(function(t,n){var r,i,o;const a=zi(),s=Rn(),l=Jne(t,"MuiMobileDatePicker"),u=L({day:Zs,month:Zs,year:Zs},l.viewRenderers),c=L({},l,{viewRenderers:u,format:m1(s,l,!1),slots:L({field:hre},l.slots),slotProps:L({},l.slotProps,{field:p=>{var h;return L({},af((h=l.slotProps)==null?void 0:h.field,p),e0(l),{ref:n})},toolbar:L({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=lF({props:c,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:qp});return d()});uF.propTypes={autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,minDate:Q.any,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","month","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","month","year"]),viewRenderers:Q.shape({day:Q.func,month:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","month","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const EYe=["desktopModeMediaQuery"],SYe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=tF}=r,o=Ye(r,EYe);return Ig(i,{defaultMatches:!0})?N.jsx(bre,L({ref:n},o)):N.jsx(uF,L({ref:n},o))}),TYe=e=>{var t,n,r,i,o,a,s,l;const u=Rn(),c=Gp(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return L({},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:jo(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:jo(u,(a=e.maxDateTime)!=null?a:e.maxDate,c.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},wYe=({props:e,inputRef:t})=>{const n=TYe(e),{forwardedProps:r,internalProps:i}=oF(n,"date-time");return iF({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:J$,validator:Wx,valueType:"date-time"})},kYe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],xYe=["inputRef"],CYe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],yre=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ye(a,kYe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:$p,O=kn({elementType:b,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ye(O,xYe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=wYe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:P,onClear:_}=S,B=Ye(S,CYe),{InputProps:U,fieldProps:V}=sF({onClear:_,clearable:P,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return N.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function AYe(e){return At("MuiDateTimePickerTabs",e)}_t("MuiDateTimePickerTabs",["root"]);const _Ye=e=>Tm(e)?"date":"time",RYe=e=>e==="date"?"day":"hours",IYe=e=>{const{classes:t}=e;return wt({root:["root"]},AYe,t)},NYe=Ee(eSe,{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}`,[`& .${QE.indicator}`]:{bottom:"auto",top:0}}})),DYe=function(t){const n=mt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=N.jsx(BHe,{}),onViewChange:i,timeIcon:o=N.jsx(UHe,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=zi(),u=IYe(n),c=(d,p)=>{i(RYe(p))};return s?null:N.jsxs(NYe,{ownerState:n,variant:"fullWidth",value:_Ye(a),onChange:c,className:u.root,children:[N.jsx(r7,{value:"date","aria-label":l.dateTableLabel,icon:N.jsx(I.Fragment,{children:r})}),N.jsx(r7,{value:"time","aria-label":l.timeTableLabel,icon:N.jsx(I.Fragment,{children:o})})]})};function PYe(e){return At("MuiDateTimePickerToolbar",e)}const N2=_t("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),LYe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],MYe=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,PYe,t)},Ore=Ee(eF,{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"}));Ore.propTypes={as:Q.elementType,classes:Q.object,className:Q.string,isLandscape:Q.bool.isRequired,isMobileKeyboardViewOpen:Q.bool,landscapeDirection:Q.oneOf(["column","row"]),ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),toggleMobileKeyboardView:Q.func,toolbarTitle:Q.node,viewType:Q.oneOf(["date","time"])};const $Ye=Ee("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),vre=Ee("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return L({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&L({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),FYe=Ee("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>L({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));vre.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const LV=Ee(nF,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),BYe=Ee("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${N2.ampmLabel}`]:t.ampmLabel},{[`&.${N2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${N2.ampmLabel}`]:{fontSize:17}}));function UYe(e){const t=mt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:d,disabled:p,readOnly:h,toolbarVariant:m="mobile"}=t,b=Ye(t,LYe),O=t,y=Rn(),{meridiemMode:v,handleMeridiemChange:S}=Hx(i,n,o),k=!!(n&&!r),C=m==="desktop",w=zi(),E=ci(),$=MYe(L({},O,{theme:E})),P=B=>n?y.format(B,"hours12h"):y.format(B,"hours24h"),_=I.useMemo(()=>i?u?y.formatByString(i,u):y.format(i,"shortDate"):c,[i,u,c,y]);return N.jsxs(Ore,L({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:s,className:$.root},b,{ownerState:O,children:[N.jsxs($Ye,{className:$.dateContainer,ownerState:O,children:[d.includes("year")&&N.jsx(Ka,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?y.format(i,"year"):"–"}),d.includes("day")&&N.jsx(Ka,{tabIndex:-1,variant:C?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:_})]}),N.jsxs(vre,{className:$.timeContainer,ownerState:O,children:[N.jsxs(FYe,{className:$.timeDigitsContainer,ownerState:O,children:[d.includes("hours")&&N.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?mb:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?P(i):"--"}),d.includes("minutes")&&N.jsxs(I.Fragment,{children:[N.jsx(LV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),N.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?mb:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?y.format(i,"minutes"):"--"})]}),d.includes("seconds")&&N.jsxs(I.Fragment,{children:[N.jsx(LV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),N.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?mb:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?y.format(i,"seconds"):"--"})]})]}),k&&!C&&N.jsxs(BYe,{className:$.ampmSelection,ownerState:O,children:[N.jsx(Ka,{variant:"subtitle2",selected:v==="am",typographyClassName:$.ampmLabel,value:xl(y,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),N.jsx(Ka,{variant:"subtitle2",selected:v==="pm",typographyClassName:$.ampmLabel,value:xl(y,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&C&&N.jsx(Ka,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&v?xl(y,v):"--",width:mb})]})]}))}function Ere(e,t){var n,r,i,o,a,s,l,u,c,d,p;const h=Rn(),m=Gp(),b=mt({props:e,name:t}),O=(n=b.ampm)!=null?n:h.is12HourCycleInCurrentLocale(),y=I.useMemo(()=>{var k;return((k=b.localeText)==null?void 0:k.toolbarTitle)==null?b.localeText:L({},b.localeText,{dateTimePickerToolbarTitle:b.localeText.toolbarTitle})},[b.localeText]),v=(r=b.slots)!=null?r:UO(b.components),S=(i=b.slotProps)!=null?i:b.componentsProps;return L({},b,q$({views:b.views,openTo:b.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:O,localeText:y,orientation:(o=b.orientation)!=null?o:"portrait",disableIgnoringDatePartForTimeValidation:(a=b.disableIgnoringDatePartForTimeValidation)!=null?a:!!(b.minDateTime||b.maxDateTime||b.disablePast||b.disableFuture),disableFuture:(s=b.disableFuture)!=null?s:!1,disablePast:(l=b.disablePast)!=null?l:!1,minDate:jo(h,(u=b.minDateTime)!=null?u:b.minDate,m.minDate),maxDate:jo(h,(c=b.maxDateTime)!=null?c:b.maxDate,m.maxDate),minTime:(d=b.minDateTime)!=null?d:b.minTime,maxTime:(p=b.maxDateTime)!=null?p:b.maxTime,slots:L({toolbar:UYe,tabs:DYe},v),slotProps:L({},S,{toolbar:L({ampm:O},S==null?void 0:S.toolbar)})})}function jYe(e){return At("MuiMultiSectionDigitalClock",e)}_t("MuiMultiSectionDigitalClock",["root"]);function zYe(e){return At("MuiMultiSectionDigitalClockSection",e)}const VYe=_t("MuiMultiSectionDigitalClockSection",["root","item"]),HYe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],WYe=e=>{const{classes:t}=e;return wt({root:["root"],item:["item"]},zYe,t)},QYe=Ee(K1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:nre,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)"}})),YYe=Ee(Sp,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:mb,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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})`:cn(e.palette.primary.main,e.palette.action.focusOpacity)}})),GYe=I.forwardRef(function(t,n){var r;const i=I.useRef(null),o=yn(n,i),a=I.useRef(null),s=mt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:d,readOnly:p,items:h,active:m,slots:b,slotProps:O,skipDisabled:y}=s,v=Ye(s,HYe),S=I.useMemo(()=>L({},s,{alreadyRendered:!!i.current}),[s]),k=WYe(S),C=(r=b==null?void 0:b.digitalClockSectionItem)!=null?r:YYe;return I.useEffect(()=>{if(i.current===null)return;const w=i.current.querySelector('[role="option"][aria-selected="true"]');if(m&&l&&w&&w.focus(),!w||a.current===w)return;a.current=w;const E=w.offsetTop;i.current.scrollTop=E-4}),N.jsx(QYe,L({ref:o,className:Ke(k.root,c),ownerState:S,autoFocusItem:l&&m,role:"listbox"},v,{children:h.map(w=>{var E,$;if(y&&(E=w.isDisabled)!=null&&E.call(w,w.value))return null;const P=w.isSelected(w.value);return N.jsx(C,L({onClick:()=>!p&&u(w.value),selected:P,disabled:d||(($=w.isDisabled)==null?void 0:$.call(w,w.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":w.ariaLabel,"aria-selected":P,className:k.item},O==null?void 0:O.digitalClockSectionItem,{children:w.label}),w.label)})}))}),qYe=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],u=d=>s===null?!1:r?d===12?s===12||s===0:s===d||s-12===d:s===d,c=r?11:23;for(let d=0;d<=c;d+=a){let p=n.format(n.setHours(e,d),r?"hours12h":"hours24h");const h=o(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:d,label:p,isSelected:u,isDisabled:i,ariaLabel:h})}return l},MV=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=l=>e===null?!1:a&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,u)=>{const c=r*u;return{value:c,label:t.formatNumber(i(c)),isDisabled:n,isSelected:s,ariaLabel:o(c.toString())}})]},cF=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=I.useMemo(()=>Bi.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:El.day,timezone:i,getTodayDate:()=>X$(n,i,"date")}),[]);return e??o},ZYe=["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"],XYe=e=>{const{classes:t}=e;return wt({root:["root"]},jYe,t)},KYe=Ee(Qx,{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}`})),JYe=I.forwardRef(function(t,n){const r=Rn(),i=mt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:O,minTime:y,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,onChange:E,view:$,views:P=["hours","minutes"],openTo:_,onViewChange:B,focusedView:U,onFocusedViewChange:V,className:z,disabled:W,readOnly:X,skipDisabled:q=!1,timezone:Y}=i,Z=Ye(i,ZYe),{value:j,handleValueChange:se,timezone:ve}=Jg({name:"MultiSectionDigitalClock",timezone:Y,value:p,defaultValue:h,onChange:E,valueManager:Bi}),G=zi(),ce=mf(ve),ge=I.useMemo(()=>L({hours:1,minutes:5,seconds:5},a),[a]),ue=cF({value:j,referenceDate:m,utils:r,props:i,timezone:ve}),xe=jt((ee,J,Re)=>se(ee,J,Re)),De=I.useMemo(()=>!o||!P.includes("hours")||P.includes("meridiem")?P:[...P,"meridiem"],[o,P]),{view:Ve,setValueAndGoToNextView:Je,focusedView:Me}=jO({view:$,views:De,openTo:_,onViewChange:B,onChange:xe,focusedView:U,onFocusedViewChange:V}),Ge=jt(ee=>{Je(ee,"finish","meridiem")}),{meridiemMode:ye,handleMeridiemChange:ze}=Hx(ue,o,Ge,"finish"),$e=I.useCallback((ee,J)=>{const Re=BO(b,r),Le=J==="hours"||J==="minutes"&&De.includes("seconds"),Ne=({start:fe,end:de})=>!(y&&Re(y,de)||O&&Re(fe,O)||v&&Re(fe,ce)||S&&Re(ce,Le?de:fe)),ie=(fe,de=1)=>{if(fe%de!==0||C!=null&&C(fe,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ue,fe),"hours");case"minutes":return!w(r.setMinutes(ue,fe),"minutes");case"seconds":return!w(r.setSeconds(ue,fe),"seconds");default:return!1}return!0};switch(J){case"hours":{const fe=g1(ee,ye,o),de=r.setHours(ue,fe),Oe=r.setSeconds(r.setMinutes(de,0),0),Te=r.setSeconds(r.setMinutes(de,59),59);return!Ne({start:Oe,end:Te})||!ie(fe)}case"minutes":{const fe=r.setMinutes(ue,ee),de=r.setSeconds(fe,0),Oe=r.setSeconds(fe,59);return!Ne({start:de,end:Oe})||!ie(ee,k)}case"seconds":{const fe=r.setSeconds(ue,ee);return!Ne({start:fe,end:fe})||!ie(ee)}default:throw new Error("not supported")}},[o,ue,b,O,ye,y,k,C,w,r,v,S,ce,De]),We=I.useCallback(ee=>{switch(ee){case"hours":return{onChange:J=>{const Re=g1(J,ye,o);Je(r.setHours(ue,Re),"finish","hours")},items:qYe({now:ce,value:j,ampm:o,utils:r,isDisabled:J=>W||$e(J,"hours"),timeStep:ge.hours,resolveAriaLabel:G.hoursClockNumberText})};case"minutes":return{onChange:J=>{Je(r.setMinutes(ue,J),"finish","minutes")},items:MV({value:r.getMinutes(ue),utils:r,isDisabled:J=>W||$e(J,"minutes"),resolveLabel:J=>r.format(r.setMinutes(ce,J),"minutes"),timeStep:ge.minutes,hasValue:!!j,resolveAriaLabel:G.minutesClockNumberText})};case"seconds":return{onChange:J=>{Je(r.setSeconds(ue,J),"finish","seconds")},items:MV({value:r.getSeconds(ue),utils:r,isDisabled:J=>W||$e(J,"seconds"),resolveLabel:J=>r.format(r.setSeconds(ce,J),"seconds"),timeStep:ge.seconds,hasValue:!!j,resolveAriaLabel:G.secondsClockNumberText})};case"meridiem":{const J=xl(r,"am"),Re=xl(r,"pm");return{onChange:ze,items:[{value:"am",label:J,isSelected:()=>!!j&&ye==="am",ariaLabel:J},{value:"pm",label:Re,isSelected:()=>!!j&&ye==="pm",ariaLabel:Re}]}}default:throw new Error(`Unknown view: ${ee} found.`)}},[ce,j,o,r,ge.hours,ge.minutes,ge.seconds,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,ye,Je,ue,W,$e,ze]),dt=I.useMemo(()=>De.reduce((ee,J)=>L({},ee,{[J]:We(J)}),{}),[De,We]),Be=i,re=XYe(Be);return N.jsx(KYe,L({ref:n,className:Ke(re.root,z),ownerState:Be,role:"group"},Z,{children:Object.entries(dt).map(([ee,J])=>N.jsx(GYe,{items:J.items,onChange:J.onChange,active:Ve===ee,autoFocus:s??Me===ee,disabled:W,readOnly:X,slots:c??l,slotProps:d??u,skipDisabled:q,"aria-label":G.selectViewText(ee)},ee))}))}),eGe=Ee("div")({display:"flex",margin:"0 auto"});function tGe(e){return At("MuiTimeClock",e)}_t("MuiTimeClock",["root","arrowSwitcher"]);const vg=220,Iu=36,y1={x:vg/2,y:vg/2},Sre={x:y1.x,y:0},nGe=Sre.x-y1.x,rGe=Sre.y-y1.y,iGe=e=>e*(180/Math.PI),Tre=(e,t,n)=>{const r=t-y1.x,i=n-y1.y,o=Math.atan2(nGe,rGe)-Math.atan2(r,i);let a=iGe(o);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:s,distance:u}},oGe=(e,t,n=1)=>{const r=n*6;let{value:i}=Tre(r,e,t);return i=i*n%60,i},aGe=(e,t,n)=>{const{value:r,distance:i}=Tre(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return wt({root:["root"],thumb:["thumb"]},sGe,t)},cGe=Ee("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>L({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"])})),dGe=Ee("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>L({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Iu/2}px)`,border:`${(Iu-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function fGe(e){const t=mt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Ye(t,lGe),s=I.useRef(i);I.useEffect(()=>{s.current=i},[i]);const l=L({},t,{shouldAnimate:s.current!==i}),u=uGe(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*vg),transform:`rotateZ(${p}deg)`}};return N.jsx(cGe,L({style:c(),className:Ke(n,u.root),ownerState:l},a,{children:N.jsx(dGe,{ownerState:l,className:u.thumb})}))}function pGe(e){return At("MuiClock",e)}_t("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const hGe=e=>{const{classes:t}=e;return wt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},pGe,t)},mGe=Ee("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),gGe=Ee("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"}),bGe=Ee("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),yGe=Ee("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>L({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"}})),OGe=Ee("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%)"})),vGe=Ee(eo,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>L({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Iu},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}})),EGe=Ee(eo,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>L({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Iu},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}})),$V=Ee(dr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function SGe(e){const t=mt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:d,selectedId:p,type:h,viewValue:m,disabled:b,readOnly:O,className:y}=t,v=t,S=Rn(),k=zi(),C=I.useRef(!1),w=hGe(v),E=l(m,h),$=!n&&h==="hours"&&(m<1||m>12),P=(Z,j)=>{b||O||l(Z,h)||d(Z,j)},_=(Z,j)=>{let{offsetX:se,offsetY:ve}=Z;if(se===void 0){const ce=Z.target.getBoundingClientRect();se=Z.changedTouches[0].clientX-ce.left,ve=Z.changedTouches[0].clientY-ce.top}const G=h==="seconds"||h==="minutes"?oGe(se,ve,c):aGe(se,ve,!!n);P(G,j)},B=Z=>{C.current=!0,_(Z,"shallow")},U=Z=>{C.current&&(_(Z,"finish"),C.current=!1)},V=Z=>{Z.buttons>0&&_(Z.nativeEvent,"shallow")},z=Z=>{C.current&&(C.current=!1),_(Z.nativeEvent,"finish")},W=I.useMemo(()=>h==="hours"?!0:m%5===0,[h,m]),X=h==="minutes"?c:1,q=I.useRef(null);Jr(()=>{i&&q.current.focus()},[i]);const Y=Z=>{if(!C.current)switch(Z.key){case"Home":P(0,"partial"),Z.preventDefault();break;case"End":P(h==="minutes"?59:23,"partial"),Z.preventDefault();break;case"ArrowUp":P(m+X,"partial"),Z.preventDefault();break;case"ArrowDown":P(m-X,"partial"),Z.preventDefault();break}};return N.jsxs(mGe,{className:Ke(y,w.root),children:[N.jsxs(gGe,{className:w.clock,children:[N.jsx(yGe,{onTouchMove:B,onTouchEnd:U,onMouseUp:z,onMouseMove:V,ownerState:{disabled:b},className:w.squareMask}),!E&&N.jsxs(I.Fragment,{children:[N.jsx(OGe,{className:w.pin}),a!=null&&N.jsx(fGe,{type:h,viewValue:m,isInner:$,hasSelected:W})]}),N.jsx(bGe,{"aria-activedescendant":p,"aria-label":k.clockLabelText(h,a,S),ref:q,role:"listbox",onKeyDown:Y,tabIndex:0,className:w.wrapper,children:o})]}),n&&r&&N.jsxs(I.Fragment,{children:[N.jsx(vGe,{onClick:O?void 0:()=>s("am"),disabled:b||u===null,ownerState:v,className:w.amButton,title:xl(S,"am"),children:N.jsx($V,{variant:"caption",className:w.meridiemText,children:xl(S,"am")})}),N.jsx(EGe,{disabled:b||u===null,onClick:O?void 0:()=>s("pm"),ownerState:v,className:w.pmButton,title:xl(S,"pm"),children:N.jsx($V,{variant:"caption",className:w.meridiemText,children:xl(S,"pm")})})]})]})}function TGe(e){return At("MuiClockNumber",e)}const wE=_t("MuiClockNumber",["root","selected","disabled"]),wGe=["className","disabled","index","inner","label","selected"],kGe=e=>{const{classes:t,selected:n,disabled:r}=e;return wt({root:["root",n&&"selected",r&&"disabled"]},TGe,t)},xGe=Ee("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wE.disabled}`]:t.disabled},{[`&.${wE.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>L({height:Iu,width:Iu,position:"absolute",left:`calc((100% - ${Iu}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},[`&.${wE.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${wE.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function wre(e){const t=mt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Ye(t,wGe),u=t,c=kGe(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(vg-Iu-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return N.jsx(xGe,L({className:Ke(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${m+(vg-Iu)/2}px`},ownerState:u},l,{children:a}))}const CGe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?1:0,u=e?12:23,c=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=u;d+=1){let p=d.toString();d===0&&(p="00");const h=!e&&(d===0||d>12);p=o.formatNumber(p);const m=c(d);s.push(N.jsx(wre,{id:m?i:void 0,index:d,inner:h,selected:m,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},FV=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,s],l)=>{const u=a===t;return N.jsx(wre,{label:s,id:u?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},AGe=["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"],_Ge=e=>{const{classes:t}=e;return wt({root:["root"],arrowSwitcher:["arrowSwitcher"]},tGe,t)},RGe=Ee(Qx,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),IGe=Ee(tre,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),NGe=["hours","minutes"],DGe=I.forwardRef(function(t,n){const r=Rn(),i=mt({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:O,minTime:y,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,showViewSwitcher:E,onChange:$,view:P,views:_=NGe,openTo:B,onViewChange:U,focusedView:V,onFocusedViewChange:z,className:W,disabled:X,readOnly:q,timezone:Y}=i,Z=Ye(i,AGe),j=c??UO(l),se=d??u,{value:ve,handleValueChange:G,timezone:ce}=Jg({name:"TimeClock",timezone:Y,value:p,defaultValue:h,onChange:$,valueManager:Bi}),ge=cF({value:ve,referenceDate:m,utils:r,props:i,timezone:ce}),ue=zi(),xe=mf(ce),{view:De,setView:Ve,previousView:Je,nextView:Me,setValueAndGoToNextView:Ge}=jO({view:P,views:_,openTo:B,onViewChange:U,onChange:G,focusedView:V,onFocusedViewChange:z}),{meridiemMode:ye,handleMeridiemChange:ze}=Hx(ge,o,Ge),$e=I.useCallback((ee,J)=>{const Re=BO(b,r),Le=J==="hours"||J==="minutes"&&_.includes("seconds"),Ne=({start:fe,end:de})=>!(y&&Re(y,de)||O&&Re(fe,O)||v&&Re(fe,xe)||S&&Re(xe,Le?de:fe)),ie=(fe,de=1)=>{if(fe%de!==0||C!=null&&C(fe,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ge,fe),"hours");case"minutes":return!w(r.setMinutes(ge,fe),"minutes");case"seconds":return!w(r.setSeconds(ge,fe),"seconds");default:return!1}return!0};switch(J){case"hours":{const fe=g1(ee,ye,o),de=r.setHours(ge,fe),Oe=r.setSeconds(r.setMinutes(de,0),0),Te=r.setSeconds(r.setMinutes(de,59),59);return!Ne({start:Oe,end:Te})||!ie(fe)}case"minutes":{const fe=r.setMinutes(ge,ee),de=r.setSeconds(fe,0),Oe=r.setSeconds(fe,59);return!Ne({start:de,end:Oe})||!ie(ee,k)}case"seconds":{const fe=r.setSeconds(ge,ee);return!Ne({start:fe,end:fe})||!ie(ee)}default:throw new Error("not supported")}},[o,ge,b,O,ye,y,k,C,w,r,v,S,xe,_]),We=Fl(),dt=I.useMemo(()=>{switch(De){case"hours":{const ee=(J,Re)=>{const Le=g1(J,ye,o);Ge(r.setHours(ge,Le),Re)};return{onChange:ee,viewValue:r.getHours(ge),children:CGe({value:ve,utils:r,ampm:o,onChange:ee,getClockNumberText:ue.hoursClockNumberText,isDisabled:J=>X||$e(J,"hours"),selectedId:We})}}case"minutes":{const ee=r.getMinutes(ge),J=(Re,Le)=>{Ge(r.setMinutes(ge,Re),Le)};return{viewValue:ee,onChange:J,children:FV({utils:r,value:ee,onChange:J,getClockNumberText:ue.minutesClockNumberText,isDisabled:Re=>X||$e(Re,"minutes"),selectedId:We})}}case"seconds":{const ee=r.getSeconds(ge),J=(Re,Le)=>{Ge(r.setSeconds(ge,Re),Le)};return{viewValue:ee,onChange:J,children:FV({utils:r,value:ee,onChange:J,getClockNumberText:ue.secondsClockNumberText,isDisabled:Re=>X||$e(Re,"seconds"),selectedId:We})}}default:throw new Error("You must provide the type for ClockView")}},[De,r,ve,o,ue.hoursClockNumberText,ue.minutesClockNumberText,ue.secondsClockNumberText,ye,Ge,ge,$e,We,X]),Be=i,re=_Ge(Be);return N.jsxs(RGe,L({ref:n,className:Ke(re.root,W),ownerState:Be},Z,{children:[N.jsx(SGe,L({autoFocus:s??!!V,ampmInClock:a&&_.includes("hours"),value:ve,type:De,ampm:o,minutesStep:k,isTimeDisabled:$e,meridiemMode:ye,handleMeridiemChange:ze,selectedId:We,disabled:X,readOnly:q},dt)),E&&N.jsx(IGe,{className:re.arrowSwitcher,slots:j,slotProps:se,onGoToPrevious:()=>Ve(Je),isPreviousDisabled:!Je,previousLabel:ue.openPreviousView,onGoToNext:()=>Ve(Me),isNextDisabled:!Me,nextLabel:ue.openNextView,ownerState:Be})]}))});function PGe(e){return At("MuiDigitalClock",e)}const LGe=_t("MuiDigitalClock",["root","list","item"]),MGe=["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"],$Ge=e=>{const{classes:t}=e;return wt({root:["root"],list:["list"],item:["item"]},PGe,t)},FGe=Ee(Qx,{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:nre})),BGe=Ee(K1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),UGe=Ee(Sp,{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})`:cn(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})`:cn(e.palette.primary.main,e.palette.action.focusOpacity)}})),jGe=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=I.useRef(null),l=yn(n,s),u=mt({props:t,name:"MuiDigitalClock"}),{ampm:c=a.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:p,components:h,componentsProps:m,slots:b,slotProps:O,value:y,defaultValue:v,referenceDate:S,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:C,minTime:w,disableFuture:E,disablePast:$,minutesStep:P=1,shouldDisableClock:_,shouldDisableTime:B,onChange:U,view:V,openTo:z,onViewChange:W,focusedView:X,onFocusedViewChange:q,className:Y,disabled:Z,readOnly:j,views:se=["hours"],skipDisabled:ve=!1,timezone:G}=u,ce=Ye(u,MGe),{value:ge,handleValueChange:ue,timezone:xe}=Jg({name:"DigitalClock",timezone:G,value:y,defaultValue:v,onChange:U,valueManager:Bi}),De=zi(),Ve=mf(xe),Je=I.useMemo(()=>L({},u,{alreadyRendered:!!s.current}),[u]),Me=$Ge(Je),Ge=(r=(i=b==null?void 0:b.digitalClockItem)!=null?i:h==null?void 0:h.DigitalClockItem)!=null?r:UGe,ye=kn({elementType:Ge,externalSlotProps:(o=O==null?void 0:O.digitalClockItem)!=null?o:m==null?void 0:m.digitalClockItem,ownerState:{},className:Me.item}),ze=cF({value:ge,referenceDate:S,utils:a,props:u,timezone:xe}),$e=jt(ee=>ue(ee,"finish","hours")),{setValueAndGoToNextView:We}=jO({view:V,views:se,openTo:z,onViewChange:W,onChange:$e,focusedView:X,onFocusedViewChange:q}),dt=jt(ee=>{We(ee,"finish")});I.useEffect(()=>{if(s.current===null)return;const ee=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ee)return;const J=ee.offsetTop;s.current.scrollTop=J-4});const Be=I.useCallback(ee=>{const J=BO(k,a),Re=()=>!(w&&J(w,ee)||C&&J(ee,C)||E&&J(ee,Ve)||$&&J(Ve,ee)),Le=()=>a.getMinutes(ee)%P!==0||_!=null&&_(a.toJsDate(ee).getTime(),"hours")?!1:B?!B(ee,"hours"):!0;return!Re()||!Le()},[k,a,w,C,E,Ve,$,P,_,B]),re=I.useMemo(()=>{const ee=a.startOfDay(ze);return[ee,...Array.from({length:Math.ceil(24*60/d)-1},(J,Re)=>a.addMinutes(ee,d*(Re+1)))]},[ze,d,a]);return N.jsx(FGe,L({ref:l,className:Ke(Me.root,Y),ownerState:Je},ce,{children:N.jsx(BGe,{autoFocusItem:p||!!X,role:"listbox","aria-label":De.timePickerToolbarTitle,className:Me.list,children:re.map(ee=>{if(ve&&Be(ee))return null;const J=a.isEqual(ee,ge);return N.jsx(Ge,L({onClick:()=>!j&&dt(ee),selected:J,disabled:Z||Be(ee),disableRipple:j,role:"option","aria-disabled":j,"aria-selected":J},ye,{children:a.format(ee,c?"fullTime12h":"fullTime24h")}),a.toISO(ee))})})}))}),km=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:P,sx:_,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z})=>N.jsx(DGe,{view:e,onViewChange:t,focusedView:n&&Og(n)?n:null,onFocusedViewChange:r,views:i.filter(Og),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:P,sx:_,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z}),kre=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:P,autoFocus:_,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>N.jsx(jGe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Og),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:P,autoFocus:_,disableIgnoringDatePartForTimeValidation:B,timeStep:U==null?void 0:U.minutes,skipDisabled:V,timezone:z}),uN=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:P,autoFocus:_,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>N.jsx(JYe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Og),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:P,autoFocus:_,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z}),Cf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,minTime:m,maxDate:b,maxTime:O,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:S,shouldDisableTime:k,shouldDisableClock:C,reduceAnimations:w,minutesStep:E,ampm:$,onMonthChange:P,monthsPerRow:_,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:W,slots:X,slotProps:q,loading:Y,renderLoading:Z,disableHighlightToday:j,readOnly:se,disabled:ve,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ce,sx:ge,autoFocus:ue,fixedWeekNumber:xe,displayWeekNumber:De,timezone:Ve,disableIgnoringDatePartForTimeValidation:Je,timeSteps:Me,skipDisabled:Ge,timeViewsCount:ye,shouldRenderTimeInASingleColumn:ze})=>{var $e,We;const dt=!!(($e=af((We=q==null?void 0:q.actionBar)!=null?We:W==null?void 0:W.actionBar,{}))!=null&&($e=$e.actions)!=null&&$e.length),Be={view:Kc(e)?e:"hours",onViewChange:t,focusedView:r&&Kc(r)?r:null,onFocusedViewChange:i,views:n.filter(Kc),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:O,shouldDisableTime:k,shouldDisableClock:C,minutesStep:E,ampm:$,components:z,componentsProps:W,slots:X,slotProps:q,readOnly:se,disabled:ve,autoFocus:ue,disableIgnoringDatePartForTimeValidation:Je,timeSteps:Me,skipDisabled:Ge,timezone:Ve};return N.jsxs(I.Fragment,{children:[N.jsxs(eGe,{children:[N.jsx(gre,{view:Tm(e)?e:"day",onViewChange:t,views:n.filter(Tm),focusedView:r&&Tm(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:b,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:w,onMonthChange:P,monthsPerRow:_,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:W,slots:X,slotProps:q,loading:Y,renderLoading:Z,disableHighlightToday:j,readOnly:se,disabled:ve,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ce,sx:ge,autoFocus:ue,fixedWeekNumber:xe,displayWeekNumber:De,timezone:Ve}),ye>0&&N.jsxs(I.Fragment,{children:[N.jsx(dc,{orientation:"vertical"}),ze?kre(L({},Be,{view:"hours",views:["hours"],focusedView:r&&Kc(r)?"hours":null,sx:L({width:"auto",[`&.${LGe.root}`]:{maxHeight:Vx}},Array.isArray(ge)?ge:[ge])})):uN(L({},Be,{view:Kc(e)?e:"hours",views:n.filter(Kc),focusedView:r&&Kc(r)?r:null,sx:L({borderBottom:0,width:"auto",[`.${VYe.root}`]:{maxHeight:"100%"}},Array.isArray(ge)?ge:[ge])}))]})]}),dt&&N.jsx(dc,{})]})},zGe=["views","format"],xre=(e,t)=>{let{views:n,format:r}=t,i=Ye(t,zGe);if(r)return r;const o=[],a=[];if(n.forEach(u=>{Og(u)?a.push(u):o.push(u)}),a.length===0)return m1(e,L({views:o},i),!1);if(o.length===0)return bw(e,L({views:a},i));const s=bw(e,L({views:a},i));return`${m1(e,L({views:o},i),!1)} ${s}`},VGe=(e,t,n)=>n?t.filter(r=>!Kc(r)||r==="hours"):e?[...t,"meridiem"]:t,HGe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Cre({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=L({hours:1,minutes:5,seconds:5},n),a=HGe(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:VGe(t,r,a)}}const Are=I.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=zi(),d=Rn(),p=Ere(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:m,views:b,timeSteps:O}=Cre(p),y=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,v=y?{day:Cf,month:Cf,year:Cf,hours:Cf,minutes:Cf,seconds:Cf,meridiem:Cf}:L({day:Zs,month:Zs,year:Zs,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),S=(r=p.ampmInClock)!=null?r:!0,k=y?["accept"]:[],C=L({},p,{viewRenderers:v,format:xre(d,p),views:b,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:S,timeSteps:O,thresholdToRenderTimeInASingleColumn:m,shouldRenderTimeInASingleColumn:h,slots:L({field:yre,openPickerIcon:ere},p.slots),slotProps:L({},p.slotProps,{field:E=>{var $;return L({},af(($=p.slotProps)==null?void 0:$.field,E),e0(p),{ref:n})},toolbar:L({hidden:!0,ampmInClock:S,toolbarVariant:y?"desktop":"mobile"},(o=p.slotProps)==null?void 0:o.toolbar),tabs:L({hidden:!0},(a=p.slotProps)==null?void 0:a.tabs),actionBar:L({actions:k},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:w}=aF({props:C,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(l=(u=C.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:Wx});return w()});Are.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,maxDateTime:Q.any,maxTime:Q.any,minDate:Q.any,minDateTime:Q.any,minTime:Q.any,minutesStep:Q.number,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableTime:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,skipDisabled:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),thresholdToRenderTimeInASingleColumn:Q.number,timeSteps:Q.shape({hours:Q.number,minutes:Q.number,seconds:Q.number}),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Q.shape({day:Q.func,hours:Q.func,meridiem:Q.func,minutes:Q.func,month:Q.func,seconds:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const _re=I.forwardRef(function(t,n){var r,i,o,a,s;const l=zi(),u=Rn(),c=Ere(t,"MuiMobileDateTimePicker"),d=L({day:Zs,month:Zs,year:Zs,hours:km,minutes:km,seconds:km},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,h=L({},c,{viewRenderers:d,format:xre(u,c),ampmInClock:p,slots:L({field:yre},c.slots),slotProps:L({},c.slotProps,{field:b=>{var O;return L({},af((O=c.slotProps)==null?void 0:O.field,b),e0(c),{ref:n})},toolbar:L({hidden:!1,ampmInClock:p},(i=c.slotProps)==null?void 0:i.toolbar),tabs:L({hidden:!1},(o=c.slotProps)==null?void 0:o.tabs)})}),{renderPicker:m}=lF({props:h,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:l.openDatePickerDialogue,validator:Wx});return m()});_re.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,maxDateTime:Q.any,maxTime:Q.any,minDate:Q.any,minDateTime:Q.any,minTime:Q.any,minutesStep:Q.number,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableTime:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Q.shape({day:Q.func,hours:Q.func,minutes:Q.func,month:Q.func,seconds:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const WGe=["desktopModeMediaQuery"],QGe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=tF}=r,o=Ye(r,WGe);return Ig(i,{defaultMatches:!0})?N.jsx(Are,L({ref:n},o)):N.jsx(_re,L({ref:n},o))}),YGe=e=>{var t,n,r,i;const o=Rn(),s=((t=e.ampm)!=null?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return L({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:s})},GGe=({props:e,inputRef:t})=>{const n=YGe(e),{forwardedProps:r,internalProps:i}=oF(n,"time");return iF({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:J$,validator:zO,valueType:"time"})},qGe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],ZGe=["inputRef"],XGe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Rre=I.forwardRef(function(t,n){var r,i,o;const a=mt({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:u,componentsProps:c,InputProps:d,inputProps:p}=a,h=Ye(a,qGe),m=a,b=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:$p,O=kn({elementType:b,externalSlotProps:(o=l==null?void 0:l.textField)!=null?o:c==null?void 0:c.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ye(O,ZGe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=GGe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:P,onClear:_}=S,B=Ye(S,XGe),{InputProps:U,fieldProps:V}=sF({onClear:_,clearable:P,fieldProps:B,InputProps:B.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return N.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function KGe(e){return At("MuiTimePickerToolbar",e)}const ny=_t("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),JGe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],eqe=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,KGe,r)},tqe=Ee(eF,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nqe=Ee(nF,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Ire=Ee("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ny.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ny.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Ire.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const Nre=Ee("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ny.ampmLabel}`]:t.ampmLabel},{[`&.${ny.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ny.ampmLabel}`]:{fontSize:17}}));Nre.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};function rqe(e){const t=mt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:s,onViewChange:l,views:u,disabled:c,readOnly:d}=t,p=Ye(t,JGe),h=Rn(),m=zi(),b=ci(),O=!!(n&&!r&&u.includes("hours")),{meridiemMode:y,handleMeridiemChange:v}=Hx(i,n,a),S=E=>n?h.format(E,"hours12h"):h.format(E,"hours24h"),k=t,C=eqe(L({},k,{theme:b})),w=N.jsx(nqe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return N.jsxs(tqe,L({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:C.root},p,{children:[N.jsxs(Ire,{className:C.hourMinuteLabel,ownerState:k,children:[Lh(u,"hours")&&N.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?S(i):"--"}),Lh(u,["hours","minutes"])&&w,Lh(u,"minutes")&&N.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?h.format(i,"minutes"):"--"}),Lh(u,["minutes","seconds"])&&w,Lh(u,"seconds")&&N.jsx(Ka,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?h.format(i,"seconds"):"--"})]}),O&&N.jsxs(Nre,{className:C.ampmSelection,ownerState:k,children:[N.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="am",typographyClassName:C.ampmLabel,value:xl(h,"am"),onClick:d?void 0:()=>v("am"),disabled:c}),N.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="pm",typographyClassName:C.ampmLabel,value:xl(h,"pm"),onClick:d?void 0:()=>v("pm"),disabled:c})]})]}))}function Dre(e,t){var n,r,i,o,a;const s=Rn(),l=mt({props:e,name:t}),u=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),c=I.useMemo(()=>{var h;return((h=l.localeText)==null?void 0:h.toolbarTitle)==null?l.localeText:L({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(r=l.slots)!=null?r:UO(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return L({},l,{ampm:u,localeText:c},q$({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(o=l.disableFuture)!=null?o:!1,disablePast:(a=l.disablePast)!=null?a:!1,slots:L({toolbar:rqe},d),slotProps:L({},p,{toolbar:L({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Pre=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=zi(),c=Rn(),d=Dre(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:h,timeSteps:m}=Cre(d),b=p?kre:uN,O=L({hours:b,minutes:b,seconds:b,meridiem:b},d.viewRenderers),y=(r=d.ampmInClock)!=null?r:!0,v=p?[]:["accept"],k=((i=O.hours)==null?void 0:i.name)===uN.name?h:h.filter(E=>E!=="meridiem"),C=L({},d,{ampmInClock:y,timeSteps:m,viewRenderers:O,format:bw(c,d),views:p?["hours"]:k,slots:L({field:Rre,openPickerIcon:FHe},d.slots),slotProps:L({},d.slotProps,{field:E=>{var $;return L({},af(($=d.slotProps)==null?void 0:$.field,E),e0(d),{ref:n})},toolbar:L({hidden:!0,ampmInClock:y},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:L({actions:v},(a=d.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:w}=aF({props:C,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(s=(l=C.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:zO});return w()});Pre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,localeText:Q.object,maxTime:Q.any,minTime:Q.any,minutesStep:Q.number,name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,open:Q.bool,openTo:Q.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableTime:Q.func,skipDisabled:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),thresholdToRenderTimeInASingleColumn:Q.number,timeSteps:Q.shape({hours:Q.number,minutes:Q.number,seconds:Q.number}),timezone:Q.string,value:Q.any,view:Q.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Q.shape({hours:Q.func,meridiem:Q.func,minutes:Q.func,seconds:Q.func}),views:Q.arrayOf(Q.oneOf(["hours","minutes","seconds"]).isRequired)};const Lre=I.forwardRef(function(t,n){var r,i,o,a;const s=zi(),l=Rn(),u=Dre(t,"MuiMobileTimePicker"),c=L({hours:km,minutes:km,seconds:km},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=L({},u,{ampmInClock:d,viewRenderers:c,format:bw(l,u),slots:L({field:Rre},u.slots),slotProps:L({},u.slotProps,{field:m=>{var b;return L({},af((b=u.slotProps)==null?void 0:b.field,m),e0(u),{ref:n})},toolbar:L({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=lF({props:p,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(o=(a=p.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:zO});return h()});Lre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:xg,label:Q.node,localeText:Q.object,maxTime:Q.any,minTime:Q.any,minutesStep:Q.number,name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,open:Q.bool,openTo:Q.oneOf(["hours","minutes","seconds"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableTime:Q.func,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["hours","minutes","seconds"]),viewRenderers:Q.shape({hours:Q.func,minutes:Q.func,seconds:Q.func}),views:Q.arrayOf(Q.oneOf(["hours","minutes","seconds"]).isRequired)};const iqe=["desktopModeMediaQuery"],oqe=I.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=tF}=r,o=Ye(r,iqe);return Ig(i,{defaultMatches:!0})?N.jsx(Pre,L({ref:n},o)):N.jsx(Lre,L({ref:n},o))});var dF={},aqe=Ui;Object.defineProperty(dF,"__esModule",{value:!0});var Mre=dF.default=void 0,sqe=aqe(ji()),lqe=N;Mre=dF.default=(0,sqe.default)((0,lqe.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 fF={},uqe=Ui;Object.defineProperty(fF,"__esModule",{value:!0});var pF=fF.default=void 0,cqe=uqe(ji()),dqe=N;pF=fF.default=(0,cqe.default)((0,dqe.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 hF={},fqe=Ui;Object.defineProperty(hF,"__esModule",{value:!0});var $re=hF.default=void 0,pqe=fqe(ji()),hqe=N;$re=hF.default=(0,pqe.default)((0,hqe.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 cN(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 Tqe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function wqe(e,t){return mqe(e)||Oqe(e,t)||Fre(e,t)||vqe()}function ef(e){return gqe(e)||yqe(e)||Fre(e)||Eqe()}function kqe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Fre(e,t){if(e){if(typeof e=="string")return cN(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 cN(e,t)}}var xqe=I.createContext({onError:function(e){return e==null?void 0:e.message}}),Es=function(){var e;return(e=I.useContext(xqe))===null||e===void 0?void 0:e.onError};function La(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"}}),y=Pa({name:s,control:l,disabled:h.disabled,rules:O}),v=y.field,S=y.fieldState,k=S.error,C=La({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(P){return P||""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(P){var _=P.target.value;return o==="number"&&_?+_:_}}}),w=C.value,E=C.onChange,$=yn(v.ref,d);return N.jsx(c,Cn(Vt({},h),{name:v.name,value:w,onChange:function(P){E(P),typeof h.onChange=="function"&&h.onChange(P)},onBlur:v.onBlur,required:a,type:o,error:!!k,helperText:k?typeof b=="function"?b(k):k.message:h.helperText,ref:t,inputRef:$}))});Bre.displayName="TextFieldElement";var mF=Bre;function Yx(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=wo(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof o=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),N.jsx(_ne,Cn(Vt({},i),{children:N.jsx("form",Cn(Vt({noValidate:!0},r),{onSubmit:t||(o?i.handleSubmit(o,a):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):N.jsx(Cqe,Vt({onSuccess:o,onError:a,FormProps:r,children:n},s))}function Cqe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=wo(e,["onSuccess","onError","FormProps","children"]),a=rHe(Vt({},o)),s=a.handleSubmit;return N.jsx(_ne,Cn(Vt({},a),{children:N.jsx("form",Cn(Vt({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Ure={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"},Aqe=I.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,o=e.validation,a=o===void 0?{}:o,s=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,d=e.overwriteErrorMessages,p=e.inputRef,h=e.transform,m=wo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),b=Wl(),O=Es(),y=n||O,v=Vt({},Ure,d),S=Cn(Vt({},a,i&&!a.required&&{required:"This field is required"}),{validate:Vt({internal:function(V){var z,W,X=V==null||!b.utils.isValid(V)?null:b.utils.getTimezone(V),q=qp({props:{shouldDisableDate:m.shouldDisableDate,shouldDisableMonth:m.shouldDisableMonth,shouldDisableYear:m.shouldDisableYear,disablePast:!!m.disablePast,disableFuture:!!m.disableFuture,minDate:m.minDate,maxDate:m.maxDate,timezone:(W=(z=m.timezone)!==null&&z!==void 0?z:X)!==null&&W!==void 0?W:"default"},value:V,adapter:b});return q==null||v[q]}},a.validate)}),k=Pa({name:r,control:l,rules:S,disabled:m.disabled,defaultValue:null}),C=k.field,w=k.fieldState,E=w.error,$=La({value:C.value,onChange:C.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(V){return V&&V==="string"?new Date(V):V},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(V){return V}}}),P=$.value,_=$.onChange,B=yn(C.ref,p),U=E?typeof y=="function"?y(E):E.message:null;return N.jsx(SYe,Cn(Vt({},m,C),{value:P,ref:t,inputRef:B,onClose:function(){for(var V=arguments.length,z=new Array(V),W=0;W"u"?"undefined":kqe(V))<"u"&&(S.InputLabelProps=S.InputLabelProps||{},S.InputLabelProps.shrink=!0),N.jsxs($p,Cn(Vt({},S),{name:r,value:V,onBlur:P.onBlur,ref:t,onChange:function(X){if(z(X),typeof S.onChange=="function"){var q=X.target.value;p==="number"&&q&&(q=Number(q)),h&&(q=c.find(function(Y){return Y[a]===q})),S.onChange(q)}},select:!0,required:i,error:!!B,helperText:B?typeof C=="function"?C(B):B.message:S.helperText,inputRef:W,children:[w&&N.jsx("option",{}),c.map(function(X){var q,Y={key:"".concat(r,"_").concat(X[a]),value:(q=X==null?void 0:X[a])!==null&&q!==void 0?q:X,disabled:Ta(X,"disabled")?!!X.disabled:!1,children:X[l]};return w?N.jsx("option",Vt({},Y)):N.jsx(Sp,Vt({},Y))})]}))});jre.displayName="SelectElement";var dN=jre,Lqe=I.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,d=c===void 0?"id":c,p=e.returnObject,h=e.disabled,m=e.row,b=e.control,O=e.checkboxColor,y=e.rules,v=e.labelProps,S=e.transform,k=e.defaultValue,C=k===void 0?[]:k,w=wo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),E=ci(),$=Es(),P=a||$,_=Pa({name:o,rules:s?{required:"This field is required"}:y,disabled:h,control:b,defaultValue:C}),B=_.field,U=_.fieldState,V=U.error,z=U.invalid,W=La({value:B.value,onChange:B.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(j){return Array.isArray(j)?j:[]},output:S==null?void 0:S.output}}),X=W.value,q=W.onChange,Y=function(j){var se=Ta(j,d)?j[d]:j,ve=X.findIndex(function(ce){var ge=Ta(ce,d)?ce[d]:ce;return se===ge}),G=(ve===-1?ef(X).concat([j]):X.filter(function(ce,ge){return ve!==ge})).map(function(ce){return p||!Ta(ce,d)?ce:ce[d]});q(G),typeof w.onChange=="function"&&w.onChange(G)},Z=V?typeof P=="function"?P(V):V.message:n;return N.jsxs(Lu,{error:z,required:s,ref:t,children:[i?N.jsx($k,{children:i}):null,N.jsx(JD,{row:m,children:r.map(function(j){var se=Ta(j,d)?j[d]:j,ve=Ta(j,u)?j[u]:j,G=X.some(function(ce){return(Ta(ce,d)?ce[d]:ce)===se});return I.createElement(Ry,Cn(Vt({},v),{control:N.jsx(Lk,{sx:{color:V?E.palette.error.main:void 0},color:O,value:se,checked:G,disabled:h,onChange:function(){return Y(j)}}),label:"".concat(ve),key:"".concat(se)}))})}),Z&&N.jsx(Rg,{children:Z})]})});Lqe.displayName="CheckboxButtonGroup";var Mqe=48,$qe=8,Fqe=I.forwardRef(function(e,t){var n,r,i,o,a,s=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,d=c===void 0?"id":c,p=e.itemValue,h=p===void 0?"":p,m=e.itemLabel,b=m===void 0?"label":m,O=e.required,y=O===void 0?!1:O,v=e.validation,S=v===void 0?{}:v,k=e.parseError,C=e.name,w=e.menuMaxHeight,E=w===void 0?Mqe*4.5+$qe:w,$=e.menuMaxWidth,P=$===void 0?250:$,_=e.minWidth,B=_===void 0?120:_,U=e.helperText,V=e.showChips,z=e.preserveOrder,W=e.control,X=e.showCheckbox,q=e.formControlProps,Y=e.inputRef,Z=e.transform,j=wo(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),se=Es(),ve=k||se,G=function($e){var We,dt;return(dt=(We=s.find(function(Be){var re;return((re=Be[h||d])!==null&&re!==void 0?re:Be)===$e}))===null||We===void 0?void 0:We[b])!==null&&dt!==void 0?dt:$e},ce=Vt({},S,y&&!S.required&&{required:"This field is required"}),ge=Pa({name:C,rules:ce,disabled:j.disabled,control:W}),ue=ge.field,xe=ge.fieldState,De=xe.error,Ve=La({value:ue.value,onChange:ue.onChange,transform:{input:typeof(Z==null?void 0:Z.input)=="function"?Z.input:function($e){return Array.isArray($e)?$e:[]},output:Z==null?void 0:Z.output}}),Je=Ve.value,Me=Ve.onChange,Ge=yn(ue.ref,Y),ye=De?typeof ve=="function"?ve(De):De.message:U,ze;return N.jsxs(Lu,Cn(Vt({},q),{style:Vt({minWidth:B},q==null?void 0:q.style),variant:j.variant,fullWidth:j.fullWidth,error:!!De,size:j.size,ref:t,children:[u&&N.jsx(HY,{size:j.size==="small"?"small":void 0,error:!!De,htmlFor:j.id||"select-multi-select-".concat(C),required:y,children:u}),N.jsx(nG,Cn(Vt({},j),{id:j.id||"select-multi-select-".concat(C),multiple:!0,label:u||void 0,error:!!De,value:Je,required:y,onChange:Me,onBlur:ue.onBlur,MenuProps:Cn(Vt({},j.MenuProps),{slotProps:Cn(Vt({},(n=j.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:Vt({},(ze=(i=j.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&ze!==void 0?ze:{style:Vt({maxHeight:E,width:P},Ta((a=j.MenuProps)===null||a===void 0||(o=a.slotProps)===null||o===void 0?void 0:o.paper,"style")&&typeof j.MenuProps.slotProps.paper.style=="object"&&Vt({},j.MenuProps.slotProps.paper.style))})})}),renderValue:typeof j.renderValue=="function"?j.renderValue:V?function($e){return N.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(z?s.filter(function(We){return $e.includes(We)}):$e||[]).map(function(We){return N.jsx(ZD,{label:G(We),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(Je)?Je:[]).filter(function(dt){return dt!==We}))},deleteIcon:N.jsx(Mre,{onMouseDown:function(dt){dt.stopPropagation()}})},We)})})}:function($e){return Array.isArray($e)?$e.map(G).join(", "):""},inputRef:Ge,children:s.map(function($e){var We=$e[h||d]||$e,dt=Array.isArray(Je)?Je.some(function(Be){return Be===We}):!1;return N.jsxs(Sp,{value:We,sx:{fontWeight:function(Be){return dt?Be.typography.fontWeightBold:Be.typography.fontWeightRegular}},children:[X&&N.jsx(Lk,{checked:dt}),N.jsx(dp,{primary:$e[b]||$e})]},We)})})),ye&&N.jsx(Rg,{error:!!De,children:ye})]}))});Fqe.displayName="MultiSelectElement";var zre=I.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?N.jsx(pF,{}):N.jsx($re,{})}:r,o=wo(e,["iconColor","renderIcon"]),a=wqe(I.useState(!0),2),s=a[0],l=a[1];return N.jsx(mF,Cn(Vt({},o),{ref:t,InputProps:{endAdornment:N.jsx(eP,{position:"end",children:N.jsx(eo,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});zre.displayName="PasswordElement";var Bqe=zre,Uqe=I.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.labelKey,l=s===void 0?"label":s,u=e.valueKey,c=u===void 0?"id":u,d=e.required,p=e.emptyOptionLabel,h=e.returnObject,m=e.row,b=e.control,O=e.type,y=e.labelProps,v=e.disabled,S=e.formLabelProps,k=e.transform,C=wo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),w=ci(),E=Es(),$=a||E,P=Pa({name:o,rules:d?{required:"This field is required"}:void 0,disabled:v,control:b}),_=P.field,B=P.fieldState,U=B.error,V=La({value:_.value,onChange:_.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(Y){return Y||""},output:typeof(k==null?void 0:k.output)=="function"?k==null?void 0:k.output:function(Y,Z){return Z}}}),z=V.value,W=V.onChange,X=U?typeof $=="function"?$(U):U.message:n,q=function(Y,Z){var j=h?r.find(function(se){return se[c]===Z}):Z;W(Y,j),typeof C.onChange=="function"&&C.onChange(j)};return N.jsxs(Lu,{error:!!U,ref:t,children:[i&&N.jsx($k,Cn(Vt({},S),{required:d,error:!!U,children:i})),N.jsxs(Eve,{onChange:q,name:o,row:m,value:z,children:[p&&N.jsx(Ry,Cn(Vt({},y),{control:N.jsx(J8,{sx:{color:U?w.palette.error.main:void 0},checked:!z}),label:p,value:""})),r.map(function(Y){var Z=Y[c];Z||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),Y);var j=h?z==null?void 0:z[c]:z;O==="number"&&(j=Number(j));var se=j===Z;return I.createElement(Ry,Cn(Vt({},y),{control:N.jsx(J8,{sx:{color:U?w.palette.error.main:void 0},disabled:v,checked:se}),value:Z,label:Y[l],key:Z}))})]}),X&&N.jsx(Rg,{children:X})]})});Uqe.displayName="RadioButtonGroup";var jqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=wo(e,["name","control","switchProps","transform"]),s=Pa({name:n,control:r,disabled:a.disabled}),l=s.field,u=La({value:l.value,onChange:l.onChange,transform:{input:o==null?void 0:o.input,output:typeof(o==null?void 0:o.output)=="function"?o.output:function(h,m){return m}}}),c=u.value,d=u.onChange,p=yn(l.ref,i==null?void 0:i.ref);return N.jsx(Ry,Vt({ref:t,control:N.jsx(bEe,Cn(Vt({},i),{name:l.name,value:c,onChange:function(h,m){d(h,m),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(h,m)},onBlur:function(h){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(h))},ref:p,checked:!!c}))},a))});jqe.displayName="SwitchElement";var zqe=I.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=wo(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=Pne({name:n,control:i});return N.jsx(Bqe,Cn(Vt({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});zqe.displayName="PasswordRepeatElement";var Vqe=I.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,o=e.control,a=e.options,s=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,d=e.required,p=e.multiple,h=e.label,m=e.parseError,b=e.transform,O=e.matchId,y=Es(),v=m||y,S=Vt({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),k=Pa({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:S}),C=k.field,w=k.fieldState,E=w.error,$=function(q){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(q):Ta(q,"label")?"".concat(q==null?void 0:q.label):"".concat(q)},P=function(q,Y){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(q,Y);var Z=Ta(q,"id")?q.id:q,j=Ta(Y,"id")?Y.id:Y;return Z===j},_=function(q){return a.find(function(Y){return O&&Ta(Y,"id")?Y.id===q:P(Y,q)})},B=La({value:C.value,onChange:C.onChange,transform:{input:typeof(b==null?void 0:b.input)=="function"?b.input:function(q){var Y;return p?(Array.isArray(q)?q:[]).map(_):(Y=_(q))!==null&&Y!==void 0?Y:null},output:typeof(b==null?void 0:b.output)=="function"?b.output:function(q,Y){if(p){var Z=Array.isArray(Y)?Y:[];return O?Z.map(function(j){return Ta(j,"id")?j.id:j}):Z}return O&&Ta(Y,"id")?Y.id:Y}}}),U=B.value,V=B.onChange,z=yn(C.ref,n==null?void 0:n.inputRef),W=c||N.jsx(uf,{color:"inherit",size:20}),X;return N.jsx(wge,Cn(Vt({},r),{value:U,loading:s,multiple:p,options:a,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:P,getOptionLabel:$,onChange:function(q,Y,Z,j){V(q,Y,Z,j),r!=null&&r.onChange&&r.onChange(q,Y,Z,j)},ref:t,renderOption:(X=r==null?void 0:r.renderOption)!==null&&X!==void 0?X:l?function(q,Y,Z){var j=Z.selected;return N.jsxs("li",Cn(Vt({},q),{children:[N.jsx(Lk,{sx:{marginRight:1},checked:j}),$(Y)]}))}:void 0,onBlur:function(q){C.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(q)},renderInput:function(q){return N.jsx($p,Cn(Vt({name:i,required:u!=null&&u.required?!0:d,label:h},n,q),{error:!!E,InputLabelProps:Vt({},q.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:Vt(Cn(Vt({},q.InputProps),{endAdornment:N.jsxs(N.Fragment,{children:[s?W:null,q.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:Vt({},q.inputProps,n==null?void 0:n.inputProps),helperText:E?typeof v=="function"?v(E):E.message:n==null?void 0:n.helperText,inputRef:z}))}}))});Vqe.displayName="AutocompleteElement";var Hqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,o=e.rules,a=o===void 0?{}:o,s=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,d=wo(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Es(),h=s||p,m=Vt({},a,l&&!a.required&&{required:"This field is required"}),b=Pa({name:n,control:r,disabled:d.disabled,rules:m}),O=b.field,y=b.fieldState,v=y.error,S=y.invalid,k=La({value:O.value,onChange:O.onChange,transform:c}),C=k.value,w=k.onChange,E=v?typeof h=="function"?h(v):v.message:null;return N.jsxs(Lu,Cn(Vt({error:S,required:l,fullWidth:!0},u),{ref:t,children:[i&&N.jsx($k,{component:"legend",error:S,children:i}),N.jsx(Kve,Cn(Vt({},d),{value:C,onChange:w,valueLabelDisplay:d.valueLabelDisplay||"auto"})),E&&N.jsx(Rg,{error:S,children:E})]}))});Hqe.displayName="SliderElement";var Wqe=I.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,o=e.required,a=e.name,s=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,d=e.inputProps,p=e.transform,h=wo(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),m=Es(),b=i||m,O=Vt({},r,o&&!r.required&&{required:"This field is required"}),y=Pa({name:a,control:s,rules:O,disabled:h.disabled}),v=y.field,S=y.fieldState,k=S.error,C=La({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(P){return P??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(P){return P.target.value}}}),w=C.value,E=C.onChange,$=yn(v.ref,c);return N.jsx($p,Cn(Vt({},h),{name:a,value:w,onChange:function(P){E(P),typeof h.onChange=="function"&&h.onChange(P)},onBlur:v.onBlur,required:o,error:!!k,helperText:k?typeof b=="function"?b(k):k.message:h.helperText,inputRef:$,multiline:!0,InputProps:{inputComponent:AY,inputProps:Vt({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});Wqe.displayName="TextareaAutosizeElement";var gF={},Qqe=Ui;Object.defineProperty(gF,"__esModule",{value:!0});var Gx=gF.default=void 0,Yqe=Qqe(ji()),Gqe=N;Gx=gF.default=(0,Yqe.default)((0,Gqe.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 qqe=e=>["check","name-conflict",e],Vre=e=>sO({queryKey:qqe(e||""),enabled:!!e,queryFn:async()=>(await Hn.post("/check/name-conflict",{name:e})).data});var Zqe=function(e){return(e+1)%1e6};function Xqe(){var e=I.useReducer(Zqe,0),t=e[1];return t}function D2(e,t){return typeof e=="function"?e.length?e(t):e():e}function Kqe(e,t){t===void 0&&(t=0);var n=I.useRef(!1),r=I.useRef(),i=I.useRef(e),o=I.useCallback(function(){return n.current},[]),a=I.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),s=I.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return I.useEffect(function(){i.current=e},[e]),I.useEffect(function(){return a(),s},[t]),[o,s,a]}function Hre(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=Kqe(e,t),i=r[0],o=r[1],a=r[2];return I.useEffect(a,n),[i,o]}function Jqe(e){e===void 0&&(e=[]);var t=I.useRef(D2(e)),n=Xqe(),r=I.useMemo(function(){var i={set:function(o){t.current=D2(o,t.current),n()},push:function(){for(var o=[],a=0;al.length?l[o]=a:l.splice(o,0,a),l})},update:function(o,a){r.set(function(s){return s.map(function(l){return o(l,a)?a:l})})},updateFirst:function(o,a){var s=t.current.findIndex(function(l){return o(l,a)});s>=0&&r.updateAt(s,a)},upsert:function(o,a){var s=t.current.findIndex(function(l){return o(l,a)});s>=0?r.updateAt(s,a):r.push(a)},sort:function(o){r.set(function(a){return a.slice().sort(o)})},filter:function(o,a){r.set(function(s){return s.slice().filter(o,a)})},removeAt:function(o){r.set(function(a){var s=a.slice();return s.splice(o,1),s})},clear:function(){r.set([])},reset:function(){r.set(D2(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}function Wre(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[o,a]=I.useState(""),[s,l]=I.useState(""),{data:u}=Vre(s),c=I.useMemo(()=>u!=null&&u.conflict?"Already Exists":null,[u==null?void 0:u.conflict]);Hre(()=>{l(o)},500,[o]);const d=()=>{var m;(m=i==null?void 0:i.onClose)==null||m.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async m=>{await n(m),d()},h=m=>{r&&a(m.target.value)};return N.jsx(Mp,{disableAutoFocus:!0,...i,children:N.jsxs(zo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(eo,{sx:{position:"absolute",top:28,right:28},onClick:d,children:N.jsx(Gx,{})}),N.jsxs(cr,{gap:4,children:[N.jsxs(dr,{variant:"h5",children:["Create New ",t]}),N.jsx(Lu,{children:N.jsx(Yx,{defaultValues:{title:""},onSuccess:p,children:N.jsxs(cr,{gap:4,alignItems:"flex-end",children:[N.jsx(mF,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:h,error:!!c,helperText:c}),N.jsx(wl,{type:"submit",variant:"contained",size:"large",disabled:!!c,children:"OK"})]})})})]})]})})}function eZe(e){const{width:t,...n}=e,r=Pc(),i=cf(),{data:o,hasNextPage:a,fetchNextPage:s}=cCe(),{mutateAsync:l}=dCe(),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((O,y)=>O.concat(y.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=I.useState(!1),p=O=>{r(`/${O}`)},h=O=>{var y;i.workspaceSlug!==O&&(p(O),(y=n==null?void 0:n.onClose)==null||y.call(n,new Event("Close Popover"),"backdropClick"))},m=()=>{var O;d(y=>!y),n.open&&((O=n==null?void 0:n.onClose)==null||O.call(n,new Event("Close Popover"),"backdropClick"))},b=async O=>{const y=await l(O);p(y.slug)};return N.jsxs(N.Fragment,{children:[N.jsx(nP,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:N.jsxs(K1,{sx:{width:t},children:[N.jsx($o,{style:{maxHeight:300,overflow:"auto"},children:N.jsx(h1,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:N.jsx($o,{className:"loader",children:N.jsx(uf,{size:"sm"})},0),useWindow:!1,children:u.map(O=>N.jsxs(Sp,{onClick:()=>h(O.slug),children:[N.jsx(dp,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:O.title}),i.workspaceSlug===O.slug&&N.jsx(dT,{children:N.jsx(wne,{fontSize:"small"})})]},O.id))})}),N.jsx(dc,{}),N.jsxs(Sp,{onClick:m,children:[N.jsx(tP,{children:N.jsx(z$,{fontSize:"small"})}),N.jsx(dp,{children:"Create Workspace"})]})]})}),N.jsx(Wre,{open:c,title:"Workspace",onClose:m,onSuccess:b,enableConflictCheck:!0})]})}var bF={},tZe=Ui;Object.defineProperty(bF,"__esModule",{value:!0});var Qre=bF.default=void 0,nZe=tZe(ji()),rZe=N;Qre=bF.default=(0,nZe.default)((0,rZe.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 iZe=e=>["workspaces",e,"users"],oZe=e=>AP({queryKey:iZe(e||""),queryFn:async({pageParam:t})=>(await Hn.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}),xm=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var Yre;function zt(){return Yre.apply(null,arguments)}function sZe(e){Yre=e}function Ml(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function fp(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function or(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function yF(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(or(e,t))return!1;return!0}function Oa(e){return e===void 0}function _c(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function VO(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Gre(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(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var SF=/(\[[^\[]*\])|(\\)?([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,kE=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L2={},Cm={};function fn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Cm[e]=i),t&&(Cm[t[0]]=function(){return Nu(i.apply(this,arguments),t[1],t[2])}),n&&(Cm[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function fZe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function pZe(e){var t=e.match(SF),n,r;for(n=0,r=t.length;n=0&&kE.test(e);)e=e.replace(kE,r),kE.lastIndex=0,n-=1;return e}var hZe={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 mZe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(SF).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var gZe="Invalid date";function bZe(){return this._invalidDate}var yZe="%d",OZe=/\d{1,2}/;function vZe(e){return this._ordinal.replace("%d",e)}var EZe={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 SZe(e,t,n,r){var i=this._relativeTime[n];return Qu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function TZe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Qu(n)?n(t):n.replace(/%s/i,t)}var jV={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 ll(e){return typeof e=="string"?jV[e]||jV[e.toLowerCase()]:void 0}function TF(e){var t={},n,r;for(r in e)or(e,r)&&(n=ll(r),n&&(t[n]=e[r]));return t}var wZe={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 kZe(e){var t=[],n;for(n in e)or(e,n)&&t.push({unit:n,priority:wZe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Kre=/\d/,Ss=/\d\d/,Jre=/\d{3}/,wF=/\d{4}/,Zx=/[+-]?\d{6}/,Br=/\d\d?/,eie=/\d\d\d\d?/,tie=/\d\d\d\d\d\d?/,Xx=/\d{1,3}/,kF=/\d{1,4}/,Kx=/[+-]?\d{1,6}/,t0=/\d+/,Jx=/[+-]?\d+/,xZe=/Z|[+-]\d\d:?\d\d/gi,eC=/Z|[+-]\d\d(?::?\d\d)?/gi,CZe=/[+-]?\d+(\.\d{1,3})?/,WO=/[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,n0=/^[1-9]\d?/,xF=/^([1-9]\d|\d)/,Ow;Ow={};function Yt(e,t,n){Ow[e]=Qu(t)?t:function(r,i){return r&&n?n:t}}function AZe(e,t){return or(Ow,e)?Ow[e](t._strict,t._locale):new RegExp(_Ze(e))}function _Ze(e){return bc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function bc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Vn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Fs(t)),n}var mD={};function gr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),_c(t)&&(r=function(o,a){a[t]=Vn(o)}),i=e.length,n=0;n68?1900:2e3)};var nie=r0("FullYear",!0);function NZe(){return tC(this.year())}function r0(e,t){return function(n){return n!=null?(rie(this,e,n),zt.updateOffset(this,t),this):O1(this,e)}}function O1(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 rie(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!tC(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function PZe(e){return e=ll(e),Qu(this[e])?this[e]():this}function LZe(e,t){if(typeof e=="object"){e=TF(e);var n=kZe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function v1(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 vw(e,t,n){var r=7+t-n,i=(7+v1(e,0,r).getUTCDay()-t)%7;return-i+r-1}function uie(e,t,n,r,i){var o=(7+n-r)%7,a=vw(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=ry(l)+s):s>ry(e)?(l=e+1,u=s-ry(e)):(l=e,u=s),{year:l,dayOfYear:u}}function E1(e,t,n){var r=vw(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+yc(a,t,n)):i>yc(e.year(),t,n)?(o=i-yc(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function yc(e,t,n){var r=vw(e,t,n),i=vw(e+1,t,n);return(ry(e)-r+i)/7}fn("w",["ww",2],"wo","week");fn("W",["WW",2],"Wo","isoWeek");Yt("w",Br,n0);Yt("ww",Br,Ss);Yt("W",Br,n0);Yt("WW",Br,Ss);QO(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function GZe(e){return E1(e,this._week.dow,this._week.doy).week}var qZe={dow:0,doy:6};function ZZe(){return this._week.dow}function XZe(){return this._week.doy}function KZe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function JZe(e){var t=E1(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}fn("d",0,"do","day");fn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});fn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});fn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});fn("e",0,0,"weekday");fn("E",0,0,"isoWeekday");Yt("d",Br);Yt("e",Br);Yt("E",Br);Yt("dd",function(e,t){return t.weekdaysMinRegex(e)});Yt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Yt("dddd",function(e,t){return t.weekdaysRegex(e)});QO(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:_n(n).invalidWeekday=e});QO(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function eXe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function tXe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function AF(e,t){return e.slice(t,7).concat(e.slice(0,t))}var nXe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),rXe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),iXe=WO,oXe=WO,aXe=WO;function sXe(e,t){var n=Ml(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?AF(n,this._week.dow):e?n[e.day()]:n}function lXe(e){return e===!0?AF(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function uXe(e){return e===!0?AF(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function cXe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Wu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=mi.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=mi.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=mi.call(this._weekdaysParse,a),i!==-1||(i=mi.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=mi.call(this._shortWeekdaysParse,a),i!==-1||(i=mi.call(this._weekdaysParse,a),i!==-1)?i:(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=mi.call(this._minWeekdaysParse,a),i!==-1||(i=mi.call(this._weekdaysParse,a),i!==-1)?i:(i=mi.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function dXe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return cXe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Wu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&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 fXe(e){if(!this.isValid())return e!=null?this:NaN;var t=O1(this,"Day");return e!=null?(e=eXe(e,this.localeData()),this.add(e-t,"d")):t}function pXe(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 hXe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=tXe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function mXe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||_F.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(or(this,"_weekdaysRegex")||(this._weekdaysRegex=iXe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function gXe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||_F.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(or(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oXe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function bXe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||_F.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(or(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=aXe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function _F(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],i=[],o,a,s,l,u;for(o=0;o<7;o++)a=Wu([2e3,1]).day(o),s=bc(this.weekdaysMin(a,"")),l=bc(this.weekdaysShort(a,"")),u=bc(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),i.push(s),i.push(l),i.push(u);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 RF(){return this.hours()%12||12}function yXe(){return this.hours()||24}fn("H",["HH",2],0,"hour");fn("h",["hh",2],0,RF);fn("k",["kk",2],0,yXe);fn("hmm",0,0,function(){return""+RF.apply(this)+Nu(this.minutes(),2)});fn("hmmss",0,0,function(){return""+RF.apply(this)+Nu(this.minutes(),2)+Nu(this.seconds(),2)});fn("Hmm",0,0,function(){return""+this.hours()+Nu(this.minutes(),2)});fn("Hmmss",0,0,function(){return""+this.hours()+Nu(this.minutes(),2)+Nu(this.seconds(),2)});function die(e,t){fn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}die("a",!0);die("A",!1);function fie(e,t){return t._meridiemParse}Yt("a",fie);Yt("A",fie);Yt("H",Br,xF);Yt("h",Br,n0);Yt("k",Br,n0);Yt("HH",Br,Ss);Yt("hh",Br,Ss);Yt("kk",Br,Ss);Yt("hmm",eie);Yt("hmmss",tie);Yt("Hmm",eie);Yt("Hmmss",tie);gr(["H","HH"],Mi);gr(["k","kk"],function(e,t,n){var r=Vn(e);t[Mi]=r===24?0:r});gr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});gr(["h","hh"],function(e,t,n){t[Mi]=Vn(e),_n(n).bigHour=!0});gr("hmm",function(e,t,n){var r=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[Cl]=Vn(e.substr(r)),_n(n).bigHour=!0});gr("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[Cl]=Vn(e.substr(r,2)),t[pc]=Vn(e.substr(i)),_n(n).bigHour=!0});gr("Hmm",function(e,t,n){var r=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[Cl]=Vn(e.substr(r))});gr("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[Cl]=Vn(e.substr(r,2)),t[pc]=Vn(e.substr(i))});function OXe(e){return(e+"").toLowerCase().charAt(0)==="p"}var vXe=/[ap]\.?m?\.?/i,EXe=r0("Hours",!0);function SXe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var pie={calendar:cZe,longDateFormat:hZe,invalidDate:gZe,ordinal:yZe,dayOfMonthOrdinalParse:OZe,relativeTime:EZe,months:$Ze,monthsShort:iie,week:qZe,weekdays:nXe,weekdaysMin:rXe,weekdaysShort:cie,meridiemParse:vXe},Wr={},Z0={},S1;function TXe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=nC(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&TXe(o,r)>=n-1)break;n--}t++}return S1}function kXe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function nC(e){var t=null,n;if(Wr[e]===void 0&&typeof _S<"u"&&_S&&_S.exports&&kXe(e))try{t=S1._abbr,n=require,n("./locale/"+e),Bd(t)}catch{Wr[e]=null}return Wr[e]}function Bd(e,t){var n;return e&&(Oa(t)?n=Mc(e):n=IF(e,t),n?S1=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),S1._abbr}function IF(e,t){if(t!==null){var n,r=pie;if(t.abbr=e,Wr[e]!=null)Zre("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=Wr[e]._config;else if(t.parentLocale!=null)if(Wr[t.parentLocale]!=null)r=Wr[t.parentLocale]._config;else if(n=nC(t.parentLocale),n!=null)r=n._config;else return Z0[t.parentLocale]||(Z0[t.parentLocale]=[]),Z0[t.parentLocale].push({name:e,config:t}),null;return Wr[e]=new EF(pD(r,t)),Z0[e]&&Z0[e].forEach(function(i){IF(i.name,i.config)}),Bd(e),Wr[e]}else return delete Wr[e],null}function xXe(e,t){if(t!=null){var n,r,i=pie;Wr[e]!=null&&Wr[e].parentLocale!=null?Wr[e].set(pD(Wr[e]._config,t)):(r=nC(e),r!=null&&(i=r._config),t=pD(i,t),r==null&&(t.abbr=e),n=new EF(t),n.parentLocale=Wr[e],Wr[e]=n),Bd(e)}else Wr[e]!=null&&(Wr[e].parentLocale!=null?(Wr[e]=Wr[e].parentLocale,e===Bd()&&Bd(e)):Wr[e]!=null&&delete Wr[e]);return Wr[e]}function Mc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return S1;if(!Ml(e)){if(t=nC(e),t)return t;e=[e]}return wXe(e)}function CXe(){return hD(Wr)}function DF(e){var t,n=e._a;return n&&_n(e).overflow===-2&&(t=n[fc]<0||n[fc]>11?fc:n[bu]<1||n[bu]>CF(n[Bo],n[fc])?bu:n[Mi]<0||n[Mi]>24||n[Mi]===24&&(n[Cl]!==0||n[pc]!==0||n[Xf]!==0)?Mi:n[Cl]<0||n[Cl]>59?Cl:n[pc]<0||n[pc]>59?pc:n[Xf]<0||n[Xf]>999?Xf:-1,_n(e)._overflowDayOfYear&&(tbu)&&(t=bu),_n(e)._overflowWeeks&&t===-1&&(t=IZe),_n(e)._overflowWeekday&&t===-1&&(t=DZe),_n(e).overflow=t),e}var AXe=/^\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)?)?$/,_Xe=/^\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)?)?$/,RXe=/Z|[+-]\d\d(?::?\d\d)?/,xE=[["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]],M2=[["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/]],IXe=/^\/?Date\((-?\d+)/i,DXe=/^(?:(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}))$/,NXe={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 hie(e){var t,n,r=e._i,i=AXe.exec(r)||_Xe.exec(r),o,a,s,l,u=xE.length,c=M2.length;if(i){for(_n(e).iso=!0,t=0,n=u;try(a)||e._dayOfYear===0)&&(_n(e)._overflowDayOfYear=!0),n=v1(a,0,e._dayOfYear),e._a[fc]=n.getUTCMonth(),e._a[bu]=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[Mi]===24&&e._a[Cl]===0&&e._a[pc]===0&&e._a[Xf]===0&&(e._nextDay=!0,e._a[Mi]=0),e._d=(e._useUTC?v1:YZe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Mi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(_n(e).weekdayMismatch=!0)}}function jXe(e){var t,n,r,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=Mh(t.GG,e._a[Bo],E1(Fr(),1,4).year),r=Mh(t.W,1),i=Mh(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=E1(Fr(),o,a),n=Mh(t.gg,e._a[Bo],u.year),r=Mh(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>yc(n,o,a)?_n(e)._overflowWeeks=!0:l!=null?_n(e)._overflowWeekday=!0:(s=uie(n,r,i,o,a),e._a[Bo]=s.year,e._dayOfYear=s.dayOfYear)}zt.ISO_8601=function(){};zt.RFC_2822=function(){};function PF(e){if(e._f===zt.ISO_8601){hie(e);return}if(e._f===zt.RFC_2822){mie(e);return}e._a=[],_n(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,u,c;for(i=Xre(e._f,e._locale).match(SF)||[],c=i.length,n=0;n0&&_n(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Cm[o]?(r?_n(e).empty=!1:_n(e).unusedTokens.push(o),RZe(o,r,e)):e._strict&&!r&&_n(e).unusedTokens.push(o);_n(e).charsLeftOver=s-l,t.length>0&&_n(e).unusedInput.push(t),e._a[Mi]<=12&&_n(e).bigHour===!0&&e._a[Mi]>0&&(_n(e).bigHour=void 0),_n(e).parsedDateParts=e._a.slice(0),_n(e).meridiem=e._meridiem,e._a[Mi]=zXe(e._locale,e._a[Mi],e._meridiem),u=_n(e).era,u!==null&&(e._a[Bo]=e._locale.erasConvertYear(u,e._a[Bo])),NF(e),DF(e)}function zXe(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 VXe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){_n(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:qx()});function yie(e,t){var n,r;if(t.length===1&&Ml(t[0])&&(t=t[0]),!t.length)return Fr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function cKe(){if(!Oa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return vF(e,this),e=gie(e),e._a?(t=e._isUTC?Wu(e._a):Fr(e._a),this._isDSTShifted=this.isValid()&&tKe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function dKe(){return this.isValid()?!this._isUTC:!1}function fKe(){return this.isValid()?this._isUTC:!1}function vie(){return this.isValid()?this._isUTC&&this._offset===0:!1}var pKe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hKe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ql(e,t){var n=e,r=null,i,o,a;return ES(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:_c(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=pKe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Vn(r[bu])*i,h:Vn(r[Mi])*i,m:Vn(r[Cl])*i,s:Vn(r[pc])*i,ms:Vn(gD(r[Xf]*1e3))*i}):(r=hKe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Af(r[2],i),M:Af(r[3],i),w:Af(r[4],i),d:Af(r[5],i),h:Af(r[6],i),m:Af(r[7],i),s:Af(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=mKe(Fr(n.from),Fr(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new rC(n),ES(e)&&or(e,"_locale")&&(o._locale=e._locale),ES(e)&&or(e,"_isValid")&&(o._isValid=e._isValid),o}Ql.fn=rC.prototype;Ql.invalid=eKe;function Af(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function VV(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 mKe(e,t){var n;return e.isValid()&&t.isValid()?(t=MF(t,e),e.isBefore(t)?n=VV(e,t):(n=VV(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Eie(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Zre(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."),o=n,n=r,r=o),i=Ql(n,r),Sie(this,i,e),this}}function Sie(e,t,n,r){var i=t._milliseconds,o=gD(t._days),a=gD(t._months);e.isValid()&&(r=r??!0,a&&aie(e,O1(e,"Month")+a*n),o&&rie(e,"Date",O1(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&zt.updateOffset(e,o||a))}var gKe=Eie(1,"add"),bKe=Eie(-1,"subtract");function Tie(e){return typeof e=="string"||e instanceof String}function yKe(e){return $l(e)||VO(e)||Tie(e)||_c(e)||vKe(e)||OKe(e)||e===null||e===void 0}function OKe(e){var t=fp(e)&&!yF(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,o,a=r.length;for(i=0;in.valueOf():n.valueOf()9999?vS(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Qu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",vS(n,"Z")):vS(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function PKe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;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",o=t+'[")]',this.format(n+r+i+o)}function LKe(e){e||(e=this.isUtc()?zt.defaultFormatUtc:zt.defaultFormat);var t=vS(this,e);return this.localeData().postformat(t)}function MKe(e,t){return this.isValid()&&($l(e)&&e.isValid()||Fr(e).isValid())?Ql({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $Ke(e){return this.from(Fr(),e)}function FKe(e,t){return this.isValid()&&($l(e)&&e.isValid()||Fr(e).isValid())?Ql({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function BKe(e){return this.to(Fr(),e)}function wie(e){var t;return e===void 0?this._locale._abbr:(t=Mc(e),t!=null&&(this._locale=t),this)}var kie=sl("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 xie(){return this._locale}var Ew=1e3,Am=60*Ew,Sw=60*Am,Cie=(365*400+97)*24*Sw;function _m(e,t){return(e%t+t)%t}function Aie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Cie:new Date(e,t,n).valueOf()}function _ie(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Cie:Date.UTC(e,t,n)}function UKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_ie:Aie,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-=_m(t+(this._isUTC?0:this.utcOffset()*Am),Sw);break;case"minute":t=this._d.valueOf(),t-=_m(t,Am);break;case"second":t=this._d.valueOf(),t-=_m(t,Ew);break}return this._d.setTime(t),zt.updateOffset(this,!0),this}function jKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_ie:Aie,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+=Sw-_m(t+(this._isUTC?0:this.utcOffset()*Am),Sw)-1;break;case"minute":t=this._d.valueOf(),t+=Am-_m(t,Am)-1;break;case"second":t=this._d.valueOf(),t+=Ew-_m(t,Ew)-1;break}return this._d.setTime(t),zt.updateOffset(this,!0),this}function zKe(){return this._d.valueOf()-(this._offset||0)*6e4}function VKe(){return Math.floor(this.valueOf()/1e3)}function HKe(){return new Date(this.valueOf())}function WKe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function QKe(){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 YKe(){return this.isValid()?this.toISOString():null}function GKe(){return OF(this)}function qKe(){return Td({},_n(this))}function ZKe(){return _n(this).overflow}function XKe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}fn("N",0,0,"eraAbbr");fn("NN",0,0,"eraAbbr");fn("NNN",0,0,"eraAbbr");fn("NNNN",0,0,"eraName");fn("NNNNN",0,0,"eraNarrow");fn("y",["y",1],"yo","eraYear");fn("y",["yy",2],0,"eraYear");fn("y",["yyy",3],0,"eraYear");fn("y",["yyyy",4],0,"eraYear");Yt("N",$F);Yt("NN",$F);Yt("NNN",$F);Yt("NNNN",lJe);Yt("NNNNN",uJe);gr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?_n(n).era=i:_n(n).invalidEra=e});Yt("y",t0);Yt("yy",t0);Yt("yyy",t0);Yt("yyyy",t0);Yt("yo",cJe);gr(["y","yy","yyy","yyyy"],Bo);gr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Bo]=n._locale.eraYearOrdinalParse(e,i):t[Bo]=parseInt(e,10)});function KKe(e,t){var n,r,i,o=this._eras||Mc("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function eJe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?zt(e.since).year():zt(e.since).year()+(t-e.offset)*n}function tJe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),bJe.call(this,e,t,n,r,i))}function bJe(e,t,n,r,i){var o=uie(e,t,n,r,i),a=v1(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}fn("Q",0,"Qo","quarter");Yt("Q",Kre);gr("Q",function(e,t){t[fc]=(Vn(e)-1)*3});function yJe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}fn("D",["DD",2],"Do","date");Yt("D",Br,n0);Yt("DD",Br,Ss);Yt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});gr(["D","DD"],bu);gr("Do",function(e,t){t[bu]=Vn(e.match(Br)[0])});var Iie=r0("Date",!0);fn("DDD",["DDDD",3],"DDDo","dayOfYear");Yt("DDD",Xx);Yt("DDDD",Jre);gr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function OJe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}fn("m",["mm",2],0,"minute");Yt("m",Br,xF);Yt("mm",Br,Ss);gr(["m","mm"],Cl);var vJe=r0("Minutes",!1);fn("s",["ss",2],0,"second");Yt("s",Br,xF);Yt("ss",Br,Ss);gr(["s","ss"],pc);var EJe=r0("Seconds",!1);fn("S",0,0,function(){return~~(this.millisecond()/100)});fn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});fn(0,["SSS",3],0,"millisecond");fn(0,["SSSS",4],0,function(){return this.millisecond()*10});fn(0,["SSSSS",5],0,function(){return this.millisecond()*100});fn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});fn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});fn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});fn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Yt("S",Xx,Kre);Yt("SS",Xx,Ss);Yt("SSS",Xx,Jre);var wd,Die;for(wd="SSSS";wd.length<=9;wd+="S")Yt(wd,t0);function SJe(e,t){t[Xf]=Vn(("0."+e)*1e3)}for(wd="S";wd.length<=9;wd+="S")gr(wd,SJe);Die=r0("Milliseconds",!1);fn("z",0,0,"zoneAbbr");fn("zz",0,0,"zoneName");function TJe(){return this._isUTC?"UTC":""}function wJe(){return this._isUTC?"Coordinated Universal Time":""}var Tt=HO.prototype;Tt.add=gKe;Tt.calendar=TKe;Tt.clone=wKe;Tt.diff=IKe;Tt.endOf=jKe;Tt.format=LKe;Tt.from=MKe;Tt.fromNow=$Ke;Tt.to=FKe;Tt.toNow=BKe;Tt.get=PZe;Tt.invalidAt=ZKe;Tt.isAfter=kKe;Tt.isBefore=xKe;Tt.isBetween=CKe;Tt.isSame=AKe;Tt.isSameOrAfter=_Ke;Tt.isSameOrBefore=RKe;Tt.isValid=GKe;Tt.lang=kie;Tt.locale=wie;Tt.localeData=xie;Tt.max=GXe;Tt.min=YXe;Tt.parsingFlags=qKe;Tt.set=LZe;Tt.startOf=UKe;Tt.subtract=bKe;Tt.toArray=WKe;Tt.toObject=QKe;Tt.toDate=HKe;Tt.toISOString=NKe;Tt.inspect=PKe;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=YKe;Tt.toString=DKe;Tt.unix=VKe;Tt.valueOf=zKe;Tt.creationData=XKe;Tt.eraName=tJe;Tt.eraNarrow=nJe;Tt.eraAbbr=rJe;Tt.eraYear=iJe;Tt.year=nie;Tt.isLeapYear=NZe;Tt.weekYear=dJe;Tt.isoWeekYear=fJe;Tt.quarter=Tt.quarters=yJe;Tt.month=sie;Tt.daysInMonth=HZe;Tt.week=Tt.weeks=KZe;Tt.isoWeek=Tt.isoWeeks=JZe;Tt.weeksInYear=mJe;Tt.weeksInWeekYear=gJe;Tt.isoWeeksInYear=pJe;Tt.isoWeeksInISOWeekYear=hJe;Tt.date=Iie;Tt.day=Tt.days=fXe;Tt.weekday=pXe;Tt.isoWeekday=hXe;Tt.dayOfYear=OJe;Tt.hour=Tt.hours=EXe;Tt.minute=Tt.minutes=vJe;Tt.second=Tt.seconds=EJe;Tt.millisecond=Tt.milliseconds=Die;Tt.utcOffset=rKe;Tt.utc=oKe;Tt.local=aKe;Tt.parseZone=sKe;Tt.hasAlignedHourOffset=lKe;Tt.isDST=uKe;Tt.isLocal=dKe;Tt.isUtcOffset=fKe;Tt.isUtc=vie;Tt.isUTC=vie;Tt.zoneAbbr=TJe;Tt.zoneName=wJe;Tt.dates=sl("dates accessor is deprecated. Use date instead.",Iie);Tt.months=sl("months accessor is deprecated. Use month instead",sie);Tt.years=sl("years accessor is deprecated. Use year instead",nie);Tt.zone=sl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",iKe);Tt.isDSTShifted=sl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",cKe);function kJe(e){return Fr(e*1e3)}function xJe(){return Fr.apply(null,arguments).parseZone()}function Nie(e){return e}var ar=EF.prototype;ar.calendar=dZe;ar.longDateFormat=mZe;ar.invalidDate=bZe;ar.ordinal=vZe;ar.preparse=Nie;ar.postformat=Nie;ar.relativeTime=SZe;ar.pastFuture=TZe;ar.set=uZe;ar.eras=KKe;ar.erasParse=JKe;ar.erasConvertYear=eJe;ar.erasAbbrRegex=aJe;ar.erasNameRegex=oJe;ar.erasNarrowRegex=sJe;ar.months=UZe;ar.monthsShort=jZe;ar.monthsParse=VZe;ar.monthsRegex=QZe;ar.monthsShortRegex=WZe;ar.week=GZe;ar.firstDayOfYear=XZe;ar.firstDayOfWeek=ZZe;ar.weekdays=sXe;ar.weekdaysMin=uXe;ar.weekdaysShort=lXe;ar.weekdaysParse=dXe;ar.weekdaysRegex=mXe;ar.weekdaysShortRegex=gXe;ar.weekdaysMinRegex=bXe;ar.isPM=OXe;ar.meridiem=SXe;function Tw(e,t,n,r){var i=Mc(),o=Wu().set(r,t);return i[n](o,e)}function Pie(e,t,n){if(_c(e)&&(t=e,e=void 0),e=e||"",t!=null)return Tw(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Tw(e,r,n,"month");return i}function BF(e,t,n,r){typeof e=="boolean"?(_c(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,_c(t)&&(n=t,t=void 0),t=t||"");var i=Mc(),o=e?i._week.dow:0,a,s=[];if(n!=null)return Tw(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=Tw(t,(a+o)%7,r,"day");return s}function CJe(e,t){return Pie(e,t,"months")}function AJe(e,t){return Pie(e,t,"monthsShort")}function _Je(e,t,n){return BF(e,t,n,"weekdays")}function RJe(e,t,n){return BF(e,t,n,"weekdaysShort")}function IJe(e,t,n){return BF(e,t,n,"weekdaysMin")}Bd("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=Vn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});zt.lang=sl("moment.lang is deprecated. Use moment.locale instead.",Bd);zt.langData=sl("moment.langData is deprecated. Use moment.localeData instead.",Mc);var Xu=Math.abs;function DJe(){var e=this._data;return this._milliseconds=Xu(this._milliseconds),this._days=Xu(this._days),this._months=Xu(this._months),e.milliseconds=Xu(e.milliseconds),e.seconds=Xu(e.seconds),e.minutes=Xu(e.minutes),e.hours=Xu(e.hours),e.months=Xu(e.months),e.years=Xu(e.years),this}function Lie(e,t,n,r){var i=Ql(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function NJe(e,t){return Lie(this,e,t,1)}function PJe(e,t){return Lie(this,e,t,-1)}function HV(e){return e<0?Math.floor(e):Math.ceil(e)}function LJe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=HV(yD(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Fs(e/1e3),r.seconds=i%60,o=Fs(i/60),r.minutes=o%60,a=Fs(o/60),r.hours=a%24,t+=Fs(a/24),l=Fs(Mie(t)),n+=l,t-=HV(yD(l)),s=Fs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Mie(e){return e*4800/146097}function yD(e){return e*146097/4800}function MJe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ll(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Mie(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yD(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 $c(e){return function(){return this.as(e)}}var $ie=$c("ms"),$Je=$c("s"),FJe=$c("m"),BJe=$c("h"),UJe=$c("d"),jJe=$c("w"),zJe=$c("M"),VJe=$c("Q"),HJe=$c("y"),WJe=$ie;function QJe(){return Ql(this)}function YJe(e){return e=ll(e),this.isValid()?this[e+"s"]():NaN}function Zp(e){return function(){return this.isValid()?this._data[e]:NaN}}var GJe=Zp("milliseconds"),qJe=Zp("seconds"),ZJe=Zp("minutes"),XJe=Zp("hours"),KJe=Zp("days"),JJe=Zp("months"),eet=Zp("years");function tet(){return Fs(this.days()/7)}var rc=Math.round,om={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function net(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ret(e,t,n,r){var i=Ql(e).abs(),o=rc(i.as("s")),a=rc(i.as("m")),s=rc(i.as("h")),l=rc(i.as("d")),u=rc(i.as("M")),c=rc(i.as("w")),d=rc(i.as("y")),p=o<=n.ss&&["s",o]||o0,p[4]=r,net.apply(null,p)}function iet(e){return e===void 0?rc:typeof e=="function"?(rc=e,!0):!1}function oet(e,t){return om[e]===void 0?!1:t===void 0?om[e]:(om[e]=t,e==="s"&&(om.ss=t-1),!0)}function aet(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=om,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},om,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=ret(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var $2=Math.abs;function Th(e){return(e>0)-(e<0)||+e}function oC(){if(!this.isValid())return this.localeData().invalidDate();var e=$2(this._milliseconds)/1e3,t=$2(this._days),n=$2(this._months),r,i,o,a,s=this.asSeconds(),l,u,c,d;return s?(r=Fs(e/60),i=Fs(r/60),e%=60,r%=60,o=Fs(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Th(this._months)!==Th(s)?"-":"",c=Th(this._days)!==Th(s)?"-":"",d=Th(this._milliseconds)!==Th(s)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var er=rC.prototype;er.isValid=JXe;er.abs=DJe;er.add=NJe;er.subtract=PJe;er.as=MJe;er.asMilliseconds=$ie;er.asSeconds=$Je;er.asMinutes=FJe;er.asHours=BJe;er.asDays=UJe;er.asWeeks=jJe;er.asMonths=zJe;er.asQuarters=VJe;er.asYears=HJe;er.valueOf=WJe;er._bubble=LJe;er.clone=QJe;er.get=YJe;er.milliseconds=GJe;er.seconds=qJe;er.minutes=ZJe;er.hours=XJe;er.days=KJe;er.weeks=tet;er.months=JJe;er.years=eet;er.humanize=aet;er.toISOString=oC;er.toString=oC;er.toJSON=oC;er.locale=wie;er.localeData=xie;er.toIsoString=sl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oC);er.lang=kie;fn("X",0,0,"unix");fn("x",0,0,"valueOf");Yt("x",Jx);Yt("X",CZe);gr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});gr("x",function(e,t,n){n._d=new Date(Vn(e))});//! moment.js -zt.version="2.30.1";sZe(Fr);zt.fn=Tt;zt.min=qXe;zt.max=ZXe;zt.now=XXe;zt.utc=Wu;zt.unix=kJe;zt.months=CJe;zt.isDate=VO;zt.locale=Bd;zt.invalid=qx;zt.duration=Ql;zt.isMoment=$l;zt.weekdays=_Je;zt.parseZone=xJe;zt.localeData=Mc;zt.isDuration=ES;zt.monthsShort=AJe;zt.weekdaysMin=IJe;zt.defineLocale=IF;zt.updateLocale=xXe;zt.locales=CXe;zt.weekdaysShort=RJe;zt.normalizeUnits=ll;zt.relativeTimeRounding=iet;zt.relativeTimeThreshold=oet;zt.calendarFormat=SKe;zt.prototype=Tt;zt.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 UF={},set=Ui;Object.defineProperty(UF,"__esModule",{value:!0});var jF=UF.default=void 0,uet=set(ji()),cet=D;jF=UF.default=(0,uet.default)((0,cet.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");const i0={};i0.write=async e=>{await navigator.clipboard.writeText(e)};i0.read=async()=>navigator.clipboard.readText();i0.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};i0.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function Fie(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 QV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Bie=Qt.createContext(),pet={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Ku={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Kf={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:PY,transitionDuration:{enter:225,exit:195}},iy=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},het=function(t){return""+iy(t.vertical)+iy(t.horizontal)},met=function(t){return Object.keys(t).filter(function(n){return!pet.container[n]}).reduce(function(n,r){var i;return Nr({},n,(i={},i[r]=t[r],i))},{})},sd={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},TS={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+iy(n)+iy(r)},toVariant:function(t){return"variant"+iy(t)}},CE=function(t){return!!t||t===0},YV=function(t){return typeof t=="number"||t===null},get=function(t,n,r){return function(i){return i==="autoHideDuration"?YV(t.autoHideDuration)?t.autoHideDuration:YV(n.autoHideDuration)?n.autoHideDuration:Kf.autoHideDuration:t[i]||n[i]||r[i]}};function F2(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Nr({},n,{},t,{},e)}var bet="SnackbarContent",Uie={root:bet+"-root"},yet=Ee("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Uie.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),Oet=I.forwardRef(function(e,t){var n=e.className,r=Ud(e,["className"]);return Qt.createElement(yet,Object.assign({ref:t,className:T1(Uie.root,n)},r))}),GV={right:"left",left:"right",bottom:"up",top:"down"},vet=function(t){return t.horizontal!=="center"?GV[t.horizontal]:GV[t.vertical]},Eet=function(t){return Qt.createElement(Hd,Object.assign({},t),Qt.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`}))},Tet=function(t){return Qt.createElement(Hd,Object.assign({},t),Qt.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},wet=function(t){return Qt.createElement(Hd,Object.assign({},t),Qt.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, +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var UV={};function Zre(e,t){zt.deprecationHandler!=null&&zt.deprecationHandler(e,t),UV[e]||(qre(t),UV[e]=!0)}zt.suppressDeprecationWarnings=!1;zt.deprecationHandler=null;function Qu(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function lZe(e){var t,n;for(n in e)or(e,n)&&(t=e[n],Qu(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 pN(e,t){var n=Td({},e),r;for(r in t)or(t,r)&&(fp(e[r])&&fp(t[r])?(n[r]={},Td(n[r],e[r]),Td(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)or(e,r)&&!or(t,r)&&fp(e[r])&&(n[r]=Td({},n[r]));return n}function EF(e){e!=null&&this.set(e)}var hN;Object.keys?hN=Object.keys:hN=function(e){var t,n=[];for(t in e)or(e,t)&&n.push(t);return n};var uZe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function cZe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Qu(r)?r.call(t,n):r}function Du(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var SF=/(\[[^\[]*\])|(\\)?([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,kE=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L2={},Cm={};function fn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Cm[e]=i),t&&(Cm[t[0]]=function(){return Du(i.apply(this,arguments),t[1],t[2])}),n&&(Cm[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function dZe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function fZe(e){var t=e.match(SF),n,r;for(n=0,r=t.length;n=0&&kE.test(e);)e=e.replace(kE,r),kE.lastIndex=0,n-=1;return e}var pZe={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 hZe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(SF).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var mZe="Invalid date";function gZe(){return this._invalidDate}var bZe="%d",yZe=/\d{1,2}/;function OZe(e){return this._ordinal.replace("%d",e)}var vZe={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 EZe(e,t,n,r){var i=this._relativeTime[n];return Qu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function SZe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Qu(n)?n(t):n.replace(/%s/i,t)}var jV={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 ll(e){return typeof e=="string"?jV[e]||jV[e.toLowerCase()]:void 0}function TF(e){var t={},n,r;for(r in e)or(e,r)&&(n=ll(r),n&&(t[n]=e[r]));return t}var TZe={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 wZe(e){var t=[],n;for(n in e)or(e,n)&&t.push({unit:n,priority:TZe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Kre=/\d/,Ss=/\d\d/,Jre=/\d{3}/,wF=/\d{4}/,Zx=/[+-]?\d{6}/,Br=/\d\d?/,eie=/\d\d\d\d?/,tie=/\d\d\d\d\d\d?/,Xx=/\d{1,3}/,kF=/\d{1,4}/,Kx=/[+-]?\d{1,6}/,t0=/\d+/,Jx=/[+-]?\d+/,kZe=/Z|[+-]\d\d:?\d\d/gi,eC=/Z|[+-]\d\d(?::?\d\d)?/gi,xZe=/[+-]?\d+(\.\d{1,3})?/,WO=/[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,n0=/^[1-9]\d?/,xF=/^([1-9]\d|\d)/,Ow;Ow={};function Yt(e,t,n){Ow[e]=Qu(t)?t:function(r,i){return r&&n?n:t}}function CZe(e,t){return or(Ow,e)?Ow[e](t._strict,t._locale):new RegExp(AZe(e))}function AZe(e){return bc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function bc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Vn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Fs(t)),n}var mN={};function gr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),_c(t)&&(r=function(o,a){a[t]=Vn(o)}),i=e.length,n=0;n68?1900:2e3)};var nie=r0("FullYear",!0);function NZe(){return tC(this.year())}function r0(e,t){return function(n){return n!=null?(rie(this,e,n),zt.updateOffset(this,t),this):O1(this,e)}}function O1(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 rie(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!tC(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function DZe(e){return e=ll(e),Qu(this[e])?this[e]():this}function PZe(e,t){if(typeof e=="object"){e=TF(e);var n=wZe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function v1(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 vw(e,t,n){var r=7+t-n,i=(7+v1(e,0,r).getUTCDay()-t)%7;return-i+r-1}function uie(e,t,n,r,i){var o=(7+n-r)%7,a=vw(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=ry(l)+s):s>ry(e)?(l=e+1,u=s-ry(e)):(l=e,u=s),{year:l,dayOfYear:u}}function E1(e,t,n){var r=vw(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+yc(a,t,n)):i>yc(e.year(),t,n)?(o=i-yc(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function yc(e,t,n){var r=vw(e,t,n),i=vw(e+1,t,n);return(ry(e)-r+i)/7}fn("w",["ww",2],"wo","week");fn("W",["WW",2],"Wo","isoWeek");Yt("w",Br,n0);Yt("ww",Br,Ss);Yt("W",Br,n0);Yt("WW",Br,Ss);QO(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function YZe(e){return E1(e,this._week.dow,this._week.doy).week}var GZe={dow:0,doy:6};function qZe(){return this._week.dow}function ZZe(){return this._week.doy}function XZe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function KZe(e){var t=E1(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}fn("d",0,"do","day");fn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});fn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});fn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});fn("e",0,0,"weekday");fn("E",0,0,"isoWeekday");Yt("d",Br);Yt("e",Br);Yt("E",Br);Yt("dd",function(e,t){return t.weekdaysMinRegex(e)});Yt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Yt("dddd",function(e,t){return t.weekdaysRegex(e)});QO(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:_n(n).invalidWeekday=e});QO(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function JZe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function eXe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function AF(e,t){return e.slice(t,7).concat(e.slice(0,t))}var tXe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nXe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rXe=WO,iXe=WO,oXe=WO;function aXe(e,t){var n=Ml(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?AF(n,this._week.dow):e?n[e.day()]:n}function sXe(e){return e===!0?AF(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function lXe(e){return e===!0?AF(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function uXe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Wu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=mi.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=mi.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=mi.call(this._weekdaysParse,a),i!==-1||(i=mi.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=mi.call(this._shortWeekdaysParse,a),i!==-1||(i=mi.call(this._weekdaysParse,a),i!==-1)?i:(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=mi.call(this._minWeekdaysParse,a),i!==-1||(i=mi.call(this._weekdaysParse,a),i!==-1)?i:(i=mi.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function cXe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return uXe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Wu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&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 dXe(e){if(!this.isValid())return e!=null?this:NaN;var t=O1(this,"Day");return e!=null?(e=JZe(e,this.localeData()),this.add(e-t,"d")):t}function fXe(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 pXe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=eXe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function hXe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||_F.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(or(this,"_weekdaysRegex")||(this._weekdaysRegex=rXe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function mXe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||_F.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(or(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=iXe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gXe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||_F.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(or(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oXe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function _F(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],i=[],o,a,s,l,u;for(o=0;o<7;o++)a=Wu([2e3,1]).day(o),s=bc(this.weekdaysMin(a,"")),l=bc(this.weekdaysShort(a,"")),u=bc(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),i.push(s),i.push(l),i.push(u);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 RF(){return this.hours()%12||12}function bXe(){return this.hours()||24}fn("H",["HH",2],0,"hour");fn("h",["hh",2],0,RF);fn("k",["kk",2],0,bXe);fn("hmm",0,0,function(){return""+RF.apply(this)+Du(this.minutes(),2)});fn("hmmss",0,0,function(){return""+RF.apply(this)+Du(this.minutes(),2)+Du(this.seconds(),2)});fn("Hmm",0,0,function(){return""+this.hours()+Du(this.minutes(),2)});fn("Hmmss",0,0,function(){return""+this.hours()+Du(this.minutes(),2)+Du(this.seconds(),2)});function die(e,t){fn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}die("a",!0);die("A",!1);function fie(e,t){return t._meridiemParse}Yt("a",fie);Yt("A",fie);Yt("H",Br,xF);Yt("h",Br,n0);Yt("k",Br,n0);Yt("HH",Br,Ss);Yt("hh",Br,Ss);Yt("kk",Br,Ss);Yt("hmm",eie);Yt("hmmss",tie);Yt("Hmm",eie);Yt("Hmmss",tie);gr(["H","HH"],Mi);gr(["k","kk"],function(e,t,n){var r=Vn(e);t[Mi]=r===24?0:r});gr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});gr(["h","hh"],function(e,t,n){t[Mi]=Vn(e),_n(n).bigHour=!0});gr("hmm",function(e,t,n){var r=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[Cl]=Vn(e.substr(r)),_n(n).bigHour=!0});gr("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[Cl]=Vn(e.substr(r,2)),t[pc]=Vn(e.substr(i)),_n(n).bigHour=!0});gr("Hmm",function(e,t,n){var r=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[Cl]=Vn(e.substr(r))});gr("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[Cl]=Vn(e.substr(r,2)),t[pc]=Vn(e.substr(i))});function yXe(e){return(e+"").toLowerCase().charAt(0)==="p"}var OXe=/[ap]\.?m?\.?/i,vXe=r0("Hours",!0);function EXe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var pie={calendar:uZe,longDateFormat:pZe,invalidDate:mZe,ordinal:bZe,dayOfMonthOrdinalParse:yZe,relativeTime:vZe,months:MZe,monthsShort:iie,week:GZe,weekdays:tXe,weekdaysMin:nXe,weekdaysShort:cie,meridiemParse:OXe},Wr={},Z0={},S1;function SXe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=nC(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&SXe(o,r)>=n-1)break;n--}t++}return S1}function wXe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function nC(e){var t=null,n;if(Wr[e]===void 0&&typeof _S<"u"&&_S&&_S.exports&&wXe(e))try{t=S1._abbr,n=require,n("./locale/"+e),Bd(t)}catch{Wr[e]=null}return Wr[e]}function Bd(e,t){var n;return e&&(Oa(t)?n=Mc(e):n=IF(e,t),n?S1=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),S1._abbr}function IF(e,t){if(t!==null){var n,r=pie;if(t.abbr=e,Wr[e]!=null)Zre("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=Wr[e]._config;else if(t.parentLocale!=null)if(Wr[t.parentLocale]!=null)r=Wr[t.parentLocale]._config;else if(n=nC(t.parentLocale),n!=null)r=n._config;else return Z0[t.parentLocale]||(Z0[t.parentLocale]=[]),Z0[t.parentLocale].push({name:e,config:t}),null;return Wr[e]=new EF(pN(r,t)),Z0[e]&&Z0[e].forEach(function(i){IF(i.name,i.config)}),Bd(e),Wr[e]}else return delete Wr[e],null}function kXe(e,t){if(t!=null){var n,r,i=pie;Wr[e]!=null&&Wr[e].parentLocale!=null?Wr[e].set(pN(Wr[e]._config,t)):(r=nC(e),r!=null&&(i=r._config),t=pN(i,t),r==null&&(t.abbr=e),n=new EF(t),n.parentLocale=Wr[e],Wr[e]=n),Bd(e)}else Wr[e]!=null&&(Wr[e].parentLocale!=null?(Wr[e]=Wr[e].parentLocale,e===Bd()&&Bd(e)):Wr[e]!=null&&delete Wr[e]);return Wr[e]}function Mc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return S1;if(!Ml(e)){if(t=nC(e),t)return t;e=[e]}return TXe(e)}function xXe(){return hN(Wr)}function NF(e){var t,n=e._a;return n&&_n(e).overflow===-2&&(t=n[fc]<0||n[fc]>11?fc:n[bu]<1||n[bu]>CF(n[Bo],n[fc])?bu:n[Mi]<0||n[Mi]>24||n[Mi]===24&&(n[Cl]!==0||n[pc]!==0||n[Xf]!==0)?Mi:n[Cl]<0||n[Cl]>59?Cl:n[pc]<0||n[pc]>59?pc:n[Xf]<0||n[Xf]>999?Xf:-1,_n(e)._overflowDayOfYear&&(tbu)&&(t=bu),_n(e)._overflowWeeks&&t===-1&&(t=RZe),_n(e)._overflowWeekday&&t===-1&&(t=IZe),_n(e).overflow=t),e}var CXe=/^\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)?)?$/,AXe=/^\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)?)?$/,_Xe=/Z|[+-]\d\d(?::?\d\d)?/,xE=[["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]],M2=[["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/]],RXe=/^\/?Date\((-?\d+)/i,IXe=/^(?:(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}))$/,NXe={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 hie(e){var t,n,r=e._i,i=CXe.exec(r)||AXe.exec(r),o,a,s,l,u=xE.length,c=M2.length;if(i){for(_n(e).iso=!0,t=0,n=u;try(a)||e._dayOfYear===0)&&(_n(e)._overflowDayOfYear=!0),n=v1(a,0,e._dayOfYear),e._a[fc]=n.getUTCMonth(),e._a[bu]=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[Mi]===24&&e._a[Cl]===0&&e._a[pc]===0&&e._a[Xf]===0&&(e._nextDay=!0,e._a[Mi]=0),e._d=(e._useUTC?v1:QZe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Mi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(_n(e).weekdayMismatch=!0)}}function UXe(e){var t,n,r,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=Mh(t.GG,e._a[Bo],E1(Fr(),1,4).year),r=Mh(t.W,1),i=Mh(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=E1(Fr(),o,a),n=Mh(t.gg,e._a[Bo],u.year),r=Mh(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>yc(n,o,a)?_n(e)._overflowWeeks=!0:l!=null?_n(e)._overflowWeekday=!0:(s=uie(n,r,i,o,a),e._a[Bo]=s.year,e._dayOfYear=s.dayOfYear)}zt.ISO_8601=function(){};zt.RFC_2822=function(){};function PF(e){if(e._f===zt.ISO_8601){hie(e);return}if(e._f===zt.RFC_2822){mie(e);return}e._a=[],_n(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,u,c;for(i=Xre(e._f,e._locale).match(SF)||[],c=i.length,n=0;n0&&_n(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Cm[o]?(r?_n(e).empty=!1:_n(e).unusedTokens.push(o),_Ze(o,r,e)):e._strict&&!r&&_n(e).unusedTokens.push(o);_n(e).charsLeftOver=s-l,t.length>0&&_n(e).unusedInput.push(t),e._a[Mi]<=12&&_n(e).bigHour===!0&&e._a[Mi]>0&&(_n(e).bigHour=void 0),_n(e).parsedDateParts=e._a.slice(0),_n(e).meridiem=e._meridiem,e._a[Mi]=jXe(e._locale,e._a[Mi],e._meridiem),u=_n(e).era,u!==null&&(e._a[Bo]=e._locale.erasConvertYear(u,e._a[Bo])),DF(e),NF(e)}function jXe(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 zXe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){_n(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:qx()});function yie(e,t){var n,r;if(t.length===1&&Ml(t[0])&&(t=t[0]),!t.length)return Fr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uKe(){if(!Oa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return vF(e,this),e=gie(e),e._a?(t=e._isUTC?Wu(e._a):Fr(e._a),this._isDSTShifted=this.isValid()&&eKe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function cKe(){return this.isValid()?!this._isUTC:!1}function dKe(){return this.isValid()?this._isUTC:!1}function vie(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fKe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,pKe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ql(e,t){var n=e,r=null,i,o,a;return ES(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:_c(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=fKe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Vn(r[bu])*i,h:Vn(r[Mi])*i,m:Vn(r[Cl])*i,s:Vn(r[pc])*i,ms:Vn(gN(r[Xf]*1e3))*i}):(r=pKe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Af(r[2],i),M:Af(r[3],i),w:Af(r[4],i),d:Af(r[5],i),h:Af(r[6],i),m:Af(r[7],i),s:Af(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=hKe(Fr(n.from),Fr(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new rC(n),ES(e)&&or(e,"_locale")&&(o._locale=e._locale),ES(e)&&or(e,"_isValid")&&(o._isValid=e._isValid),o}Ql.fn=rC.prototype;Ql.invalid=JXe;function Af(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function VV(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 hKe(e,t){var n;return e.isValid()&&t.isValid()?(t=MF(t,e),e.isBefore(t)?n=VV(e,t):(n=VV(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Eie(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Zre(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."),o=n,n=r,r=o),i=Ql(n,r),Sie(this,i,e),this}}function Sie(e,t,n,r){var i=t._milliseconds,o=gN(t._days),a=gN(t._months);e.isValid()&&(r=r??!0,a&&aie(e,O1(e,"Month")+a*n),o&&rie(e,"Date",O1(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&zt.updateOffset(e,o||a))}var mKe=Eie(1,"add"),gKe=Eie(-1,"subtract");function Tie(e){return typeof e=="string"||e instanceof String}function bKe(e){return $l(e)||VO(e)||Tie(e)||_c(e)||OKe(e)||yKe(e)||e===null||e===void 0}function yKe(e){var t=fp(e)&&!yF(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,o,a=r.length;for(i=0;in.valueOf():n.valueOf()9999?vS(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Qu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",vS(n,"Z")):vS(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function DKe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;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",o=t+'[")]',this.format(n+r+i+o)}function PKe(e){e||(e=this.isUtc()?zt.defaultFormatUtc:zt.defaultFormat);var t=vS(this,e);return this.localeData().postformat(t)}function LKe(e,t){return this.isValid()&&($l(e)&&e.isValid()||Fr(e).isValid())?Ql({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function MKe(e){return this.from(Fr(),e)}function $Ke(e,t){return this.isValid()&&($l(e)&&e.isValid()||Fr(e).isValid())?Ql({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function FKe(e){return this.to(Fr(),e)}function wie(e){var t;return e===void 0?this._locale._abbr:(t=Mc(e),t!=null&&(this._locale=t),this)}var kie=sl("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 xie(){return this._locale}var Ew=1e3,Am=60*Ew,Sw=60*Am,Cie=(365*400+97)*24*Sw;function _m(e,t){return(e%t+t)%t}function Aie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Cie:new Date(e,t,n).valueOf()}function _ie(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Cie:Date.UTC(e,t,n)}function BKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_ie:Aie,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-=_m(t+(this._isUTC?0:this.utcOffset()*Am),Sw);break;case"minute":t=this._d.valueOf(),t-=_m(t,Am);break;case"second":t=this._d.valueOf(),t-=_m(t,Ew);break}return this._d.setTime(t),zt.updateOffset(this,!0),this}function UKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_ie:Aie,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+=Sw-_m(t+(this._isUTC?0:this.utcOffset()*Am),Sw)-1;break;case"minute":t=this._d.valueOf(),t+=Am-_m(t,Am)-1;break;case"second":t=this._d.valueOf(),t+=Ew-_m(t,Ew)-1;break}return this._d.setTime(t),zt.updateOffset(this,!0),this}function jKe(){return this._d.valueOf()-(this._offset||0)*6e4}function zKe(){return Math.floor(this.valueOf()/1e3)}function VKe(){return new Date(this.valueOf())}function HKe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function WKe(){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 QKe(){return this.isValid()?this.toISOString():null}function YKe(){return OF(this)}function GKe(){return Td({},_n(this))}function qKe(){return _n(this).overflow}function ZKe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}fn("N",0,0,"eraAbbr");fn("NN",0,0,"eraAbbr");fn("NNN",0,0,"eraAbbr");fn("NNNN",0,0,"eraName");fn("NNNNN",0,0,"eraNarrow");fn("y",["y",1],"yo","eraYear");fn("y",["yy",2],0,"eraYear");fn("y",["yyy",3],0,"eraYear");fn("y",["yyyy",4],0,"eraYear");Yt("N",$F);Yt("NN",$F);Yt("NNN",$F);Yt("NNNN",sJe);Yt("NNNNN",lJe);gr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?_n(n).era=i:_n(n).invalidEra=e});Yt("y",t0);Yt("yy",t0);Yt("yyy",t0);Yt("yyyy",t0);Yt("yo",uJe);gr(["y","yy","yyy","yyyy"],Bo);gr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Bo]=n._locale.eraYearOrdinalParse(e,i):t[Bo]=parseInt(e,10)});function XKe(e,t){var n,r,i,o=this._eras||Mc("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function JKe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?zt(e.since).year():zt(e.since).year()+(t-e.offset)*n}function eJe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),gJe.call(this,e,t,n,r,i))}function gJe(e,t,n,r,i){var o=uie(e,t,n,r,i),a=v1(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}fn("Q",0,"Qo","quarter");Yt("Q",Kre);gr("Q",function(e,t){t[fc]=(Vn(e)-1)*3});function bJe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}fn("D",["DD",2],"Do","date");Yt("D",Br,n0);Yt("DD",Br,Ss);Yt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});gr(["D","DD"],bu);gr("Do",function(e,t){t[bu]=Vn(e.match(Br)[0])});var Iie=r0("Date",!0);fn("DDD",["DDDD",3],"DDDo","dayOfYear");Yt("DDD",Xx);Yt("DDDD",Jre);gr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function yJe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}fn("m",["mm",2],0,"minute");Yt("m",Br,xF);Yt("mm",Br,Ss);gr(["m","mm"],Cl);var OJe=r0("Minutes",!1);fn("s",["ss",2],0,"second");Yt("s",Br,xF);Yt("ss",Br,Ss);gr(["s","ss"],pc);var vJe=r0("Seconds",!1);fn("S",0,0,function(){return~~(this.millisecond()/100)});fn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});fn(0,["SSS",3],0,"millisecond");fn(0,["SSSS",4],0,function(){return this.millisecond()*10});fn(0,["SSSSS",5],0,function(){return this.millisecond()*100});fn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});fn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});fn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});fn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Yt("S",Xx,Kre);Yt("SS",Xx,Ss);Yt("SSS",Xx,Jre);var wd,Nie;for(wd="SSSS";wd.length<=9;wd+="S")Yt(wd,t0);function EJe(e,t){t[Xf]=Vn(("0."+e)*1e3)}for(wd="S";wd.length<=9;wd+="S")gr(wd,EJe);Nie=r0("Milliseconds",!1);fn("z",0,0,"zoneAbbr");fn("zz",0,0,"zoneName");function SJe(){return this._isUTC?"UTC":""}function TJe(){return this._isUTC?"Coordinated Universal Time":""}var Tt=HO.prototype;Tt.add=mKe;Tt.calendar=SKe;Tt.clone=TKe;Tt.diff=RKe;Tt.endOf=UKe;Tt.format=PKe;Tt.from=LKe;Tt.fromNow=MKe;Tt.to=$Ke;Tt.toNow=FKe;Tt.get=DZe;Tt.invalidAt=qKe;Tt.isAfter=wKe;Tt.isBefore=kKe;Tt.isBetween=xKe;Tt.isSame=CKe;Tt.isSameOrAfter=AKe;Tt.isSameOrBefore=_Ke;Tt.isValid=YKe;Tt.lang=kie;Tt.locale=wie;Tt.localeData=xie;Tt.max=YXe;Tt.min=QXe;Tt.parsingFlags=GKe;Tt.set=PZe;Tt.startOf=BKe;Tt.subtract=gKe;Tt.toArray=HKe;Tt.toObject=WKe;Tt.toDate=VKe;Tt.toISOString=NKe;Tt.inspect=DKe;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=QKe;Tt.toString=IKe;Tt.unix=zKe;Tt.valueOf=jKe;Tt.creationData=ZKe;Tt.eraName=eJe;Tt.eraNarrow=tJe;Tt.eraAbbr=nJe;Tt.eraYear=rJe;Tt.year=nie;Tt.isLeapYear=NZe;Tt.weekYear=cJe;Tt.isoWeekYear=dJe;Tt.quarter=Tt.quarters=bJe;Tt.month=sie;Tt.daysInMonth=VZe;Tt.week=Tt.weeks=XZe;Tt.isoWeek=Tt.isoWeeks=KZe;Tt.weeksInYear=hJe;Tt.weeksInWeekYear=mJe;Tt.isoWeeksInYear=fJe;Tt.isoWeeksInISOWeekYear=pJe;Tt.date=Iie;Tt.day=Tt.days=dXe;Tt.weekday=fXe;Tt.isoWeekday=pXe;Tt.dayOfYear=yJe;Tt.hour=Tt.hours=vXe;Tt.minute=Tt.minutes=OJe;Tt.second=Tt.seconds=vJe;Tt.millisecond=Tt.milliseconds=Nie;Tt.utcOffset=nKe;Tt.utc=iKe;Tt.local=oKe;Tt.parseZone=aKe;Tt.hasAlignedHourOffset=sKe;Tt.isDST=lKe;Tt.isLocal=cKe;Tt.isUtcOffset=dKe;Tt.isUtc=vie;Tt.isUTC=vie;Tt.zoneAbbr=SJe;Tt.zoneName=TJe;Tt.dates=sl("dates accessor is deprecated. Use date instead.",Iie);Tt.months=sl("months accessor is deprecated. Use month instead",sie);Tt.years=sl("years accessor is deprecated. Use year instead",nie);Tt.zone=sl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rKe);Tt.isDSTShifted=sl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uKe);function wJe(e){return Fr(e*1e3)}function kJe(){return Fr.apply(null,arguments).parseZone()}function Die(e){return e}var ar=EF.prototype;ar.calendar=cZe;ar.longDateFormat=hZe;ar.invalidDate=gZe;ar.ordinal=OZe;ar.preparse=Die;ar.postformat=Die;ar.relativeTime=EZe;ar.pastFuture=SZe;ar.set=lZe;ar.eras=XKe;ar.erasParse=KKe;ar.erasConvertYear=JKe;ar.erasAbbrRegex=oJe;ar.erasNameRegex=iJe;ar.erasNarrowRegex=aJe;ar.months=BZe;ar.monthsShort=UZe;ar.monthsParse=zZe;ar.monthsRegex=WZe;ar.monthsShortRegex=HZe;ar.week=YZe;ar.firstDayOfYear=ZZe;ar.firstDayOfWeek=qZe;ar.weekdays=aXe;ar.weekdaysMin=lXe;ar.weekdaysShort=sXe;ar.weekdaysParse=cXe;ar.weekdaysRegex=hXe;ar.weekdaysShortRegex=mXe;ar.weekdaysMinRegex=gXe;ar.isPM=yXe;ar.meridiem=EXe;function Tw(e,t,n,r){var i=Mc(),o=Wu().set(r,t);return i[n](o,e)}function Pie(e,t,n){if(_c(e)&&(t=e,e=void 0),e=e||"",t!=null)return Tw(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Tw(e,r,n,"month");return i}function BF(e,t,n,r){typeof e=="boolean"?(_c(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,_c(t)&&(n=t,t=void 0),t=t||"");var i=Mc(),o=e?i._week.dow:0,a,s=[];if(n!=null)return Tw(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=Tw(t,(a+o)%7,r,"day");return s}function xJe(e,t){return Pie(e,t,"months")}function CJe(e,t){return Pie(e,t,"monthsShort")}function AJe(e,t,n){return BF(e,t,n,"weekdays")}function _Je(e,t,n){return BF(e,t,n,"weekdaysShort")}function RJe(e,t,n){return BF(e,t,n,"weekdaysMin")}Bd("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=Vn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});zt.lang=sl("moment.lang is deprecated. Use moment.locale instead.",Bd);zt.langData=sl("moment.langData is deprecated. Use moment.localeData instead.",Mc);var Xu=Math.abs;function IJe(){var e=this._data;return this._milliseconds=Xu(this._milliseconds),this._days=Xu(this._days),this._months=Xu(this._months),e.milliseconds=Xu(e.milliseconds),e.seconds=Xu(e.seconds),e.minutes=Xu(e.minutes),e.hours=Xu(e.hours),e.months=Xu(e.months),e.years=Xu(e.years),this}function Lie(e,t,n,r){var i=Ql(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function NJe(e,t){return Lie(this,e,t,1)}function DJe(e,t){return Lie(this,e,t,-1)}function HV(e){return e<0?Math.floor(e):Math.ceil(e)}function PJe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=HV(yN(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Fs(e/1e3),r.seconds=i%60,o=Fs(i/60),r.minutes=o%60,a=Fs(o/60),r.hours=a%24,t+=Fs(a/24),l=Fs(Mie(t)),n+=l,t-=HV(yN(l)),s=Fs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Mie(e){return e*4800/146097}function yN(e){return e*146097/4800}function LJe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ll(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Mie(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yN(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 $c(e){return function(){return this.as(e)}}var $ie=$c("ms"),MJe=$c("s"),$Je=$c("m"),FJe=$c("h"),BJe=$c("d"),UJe=$c("w"),jJe=$c("M"),zJe=$c("Q"),VJe=$c("y"),HJe=$ie;function WJe(){return Ql(this)}function QJe(e){return e=ll(e),this.isValid()?this[e+"s"]():NaN}function Zp(e){return function(){return this.isValid()?this._data[e]:NaN}}var YJe=Zp("milliseconds"),GJe=Zp("seconds"),qJe=Zp("minutes"),ZJe=Zp("hours"),XJe=Zp("days"),KJe=Zp("months"),JJe=Zp("years");function eet(){return Fs(this.days()/7)}var rc=Math.round,om={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function tet(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function net(e,t,n,r){var i=Ql(e).abs(),o=rc(i.as("s")),a=rc(i.as("m")),s=rc(i.as("h")),l=rc(i.as("d")),u=rc(i.as("M")),c=rc(i.as("w")),d=rc(i.as("y")),p=o<=n.ss&&["s",o]||o0,p[4]=r,tet.apply(null,p)}function ret(e){return e===void 0?rc:typeof e=="function"?(rc=e,!0):!1}function iet(e,t){return om[e]===void 0?!1:t===void 0?om[e]:(om[e]=t,e==="s"&&(om.ss=t-1),!0)}function oet(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=om,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},om,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=net(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var $2=Math.abs;function Th(e){return(e>0)-(e<0)||+e}function oC(){if(!this.isValid())return this.localeData().invalidDate();var e=$2(this._milliseconds)/1e3,t=$2(this._days),n=$2(this._months),r,i,o,a,s=this.asSeconds(),l,u,c,d;return s?(r=Fs(e/60),i=Fs(r/60),e%=60,r%=60,o=Fs(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Th(this._months)!==Th(s)?"-":"",c=Th(this._days)!==Th(s)?"-":"",d=Th(this._milliseconds)!==Th(s)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var er=rC.prototype;er.isValid=KXe;er.abs=IJe;er.add=NJe;er.subtract=DJe;er.as=LJe;er.asMilliseconds=$ie;er.asSeconds=MJe;er.asMinutes=$Je;er.asHours=FJe;er.asDays=BJe;er.asWeeks=UJe;er.asMonths=jJe;er.asQuarters=zJe;er.asYears=VJe;er.valueOf=HJe;er._bubble=PJe;er.clone=WJe;er.get=QJe;er.milliseconds=YJe;er.seconds=GJe;er.minutes=qJe;er.hours=ZJe;er.days=XJe;er.weeks=eet;er.months=KJe;er.years=JJe;er.humanize=oet;er.toISOString=oC;er.toString=oC;er.toJSON=oC;er.locale=wie;er.localeData=xie;er.toIsoString=sl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oC);er.lang=kie;fn("X",0,0,"unix");fn("x",0,0,"valueOf");Yt("x",Jx);Yt("X",xZe);gr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});gr("x",function(e,t,n){n._d=new Date(Vn(e))});//! moment.js +zt.version="2.30.1";aZe(Fr);zt.fn=Tt;zt.min=GXe;zt.max=qXe;zt.now=ZXe;zt.utc=Wu;zt.unix=wJe;zt.months=xJe;zt.isDate=VO;zt.locale=Bd;zt.invalid=qx;zt.duration=Ql;zt.isMoment=$l;zt.weekdays=AJe;zt.parseZone=kJe;zt.localeData=Mc;zt.isDuration=ES;zt.monthsShort=CJe;zt.weekdaysMin=RJe;zt.defineLocale=IF;zt.updateLocale=kXe;zt.locales=xXe;zt.weekdaysShort=_Je;zt.normalizeUnits=ll;zt.relativeTimeRounding=ret;zt.relativeTimeThreshold=iet;zt.calendarFormat=EKe;zt.prototype=Tt;zt.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 UF={},aet=Ui;Object.defineProperty(UF,"__esModule",{value:!0});var jF=UF.default=void 0,set=aet(ji()),uet=N;jF=UF.default=(0,set.default)((0,uet.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");const i0={};i0.write=async e=>{await navigator.clipboard.writeText(e)};i0.read=async()=>navigator.clipboard.readText();i0.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};i0.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function Fie(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 QV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Bie=Qt.createContext(),fet={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Ku={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Kf={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:PY,transitionDuration:{enter:225,exit:195}},iy=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},pet=function(t){return""+iy(t.vertical)+iy(t.horizontal)},het=function(t){return Object.keys(t).filter(function(n){return!fet.container[n]}).reduce(function(n,r){var i;return Dr({},n,(i={},i[r]=t[r],i))},{})},sd={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},TS={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+iy(n)+iy(r)},toVariant:function(t){return"variant"+iy(t)}},CE=function(t){return!!t||t===0},YV=function(t){return typeof t=="number"||t===null},met=function(t,n,r){return function(i){return i==="autoHideDuration"?YV(t.autoHideDuration)?t.autoHideDuration:YV(n.autoHideDuration)?n.autoHideDuration:Kf.autoHideDuration:t[i]||n[i]||r[i]}};function F2(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Dr({},n,{},t,{},e)}var get="SnackbarContent",Uie={root:get+"-root"},bet=Ee("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Uie.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),yet=I.forwardRef(function(e,t){var n=e.className,r=Ud(e,["className"]);return Qt.createElement(bet,Object.assign({ref:t,className:T1(Uie.root,n)},r))}),GV={right:"left",left:"right",bottom:"up",top:"down"},Oet=function(t){return t.horizontal!=="center"?GV[t.horizontal]:GV[t.vertical]},vet=function(t){return Qt.createElement(Hd,Object.assign({},t),Qt.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`}))},Eet=function(t){return Qt.createElement(Hd,Object.assign({},t),Qt.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Tet=function(t){return Qt.createElement(Hd,Object.assign({},t),Qt.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`}))},ket=function(t){return Qt.createElement(Hd,Object.assign({},t),Qt.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`}))},AE={fontSize:20,marginInlineEnd:8},xet={default:void 0,success:Qt.createElement(Eet,{style:AE}),warning:Qt.createElement(Tet,{style:AE}),error:Qt.createElement(wet,{style:AE}),info:Qt.createElement(ket,{style:AE})};function oy(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var o=arguments.length,a=new Array(o),s=0;s .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},U2=16,_f="SnackbarContainer",ml={root:_f+"-root",rootDense:_f+"-rootDense",top:_f+"-top",bottom:_f+"-bottom",left:_f+"-left",right:_f+"-right",center:_f+"-center"},Iet=Ee("div")(function(e){var t,n,r,i,o,a,s=e.theme;return a={},a["&."+ml.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.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[B2.container]={pointerEvents:"all"},t[B2.wrapper]={padding:Ku.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Ku.view.default*2+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+U2*2+"px)"},t),a["&."+ml.rootDense]=(n={},n[B2.wrapper]={padding:Ku.snackbar.dense+"px 0px"},n),a["&."+ml.top]={top:Ku.view.default-Ku.snackbar.default,flexDirection:"column"},a["&."+ml.bottom]={bottom:Ku.view.default-Ku.snackbar.default,flexDirection:"column-reverse"},a["&."+ml.left]=(r={left:Ku.view.default},r[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:U2+"px"},r),a["&."+ml.right]=(i={right:Ku.view.default},i[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:U2+"px"},i),a["&."+ml.center]=(o={left:"50%",transform:"translateX(-50%)"},o[s.breakpoints.up("sm")]={alignItems:"center"},o),a}),Det=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,o=Ud(t,["className","anchorOrigin","dense"]),a=T1(ml[r.vertical],ml[r.horizontal],ml.root,n,i&&ml.rootDense);return Qt.createElement(Iet,Object.assign({className:a},o))},Net=Qt.memo(Det),Pet=function(e){fet(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(o,a){a===void 0&&(a={});var s=a,l=s.key,u=s.preventDuplicate,c=Ud(s,["key","preventDuplicate"]),d=CE(l),p=d?l:new Date().getTime()+Math.random(),h=get(c,i.props,Kf),m=Nr({key:p},c,{message:o,open:!0,entered:!1,requestClose:!1,variant:h("variant"),anchorOrigin:h("anchorOrigin"),autoHideDuration:h("autoHideDuration")});return c.persist&&(m.autoHideDuration=void 0),i.setState(function(b){if(u===void 0&&i.props.preventDuplicate||u){var O=function(k){return d?k.key===l:k.message===o},y=b.queue.findIndex(O)>-1,v=b.snacks.findIndex(O)>-1;if(y||v)return b}return i.handleDisplaySnack(Nr({},b,{queue:[].concat(b.queue,[m])}))}),p},i.handleDisplaySnack=function(o){var a=o.snacks;return a.length>=i.maxSnack?i.handleDismissOldest(o):i.processQueue(o)},i.processQueue=function(o){var a=o.queue,s=o.snacks;return a.length>0?Nr({},o,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):o},i.handleDismissOldest=function(o){if(o.snacks.some(function(c){return!c.open||c.requestClose}))return o;var a=!1,s=!1,l=o.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0);l===i.maxSnack&&(s=!0);var u=o.snacks.map(function(c){return!a&&(!c.persist||s)?(a=!0,c.entered?(c.onClose&&c.onClose(null,sd.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,sd.MAXSNACK,c.key),Nr({},c,{open:!1})):Nr({},c,{requestClose:!0})):Nr({},c)});return Nr({},o,{snacks:u})},i.handleEnteredSnack=function(o,a,s){if(!CE(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.key===s?Nr({},c,{entered:!0}):Nr({},c)})}})},i.handleCloseSnack=function(o,a,s){if(i.props.onClose&&i.props.onClose(o,a,s),a!==sd.CLICKAWAY){var l=s===void 0;i.setState(function(u){var c=u.snacks,d=u.queue;return{snacks:c.map(function(p){return!l&&p.key!==s?Nr({},p):p.entered?Nr({},p,{open:!1}):Nr({},p,{requestClose:!0})}),queue:d.filter(function(p){return p.key!==s})}})}},i.closeSnackbar=function(o){var a=i.state.snacks.find(function(s){return s.key===o});CE(o)&&a&&a.onClose&&a.onClose(null,sd.INSTRUCTED,o),i.handleCloseSnack(null,sd.INSTRUCTED,o)},i.handleExitedSnack=function(o,a,s){var l=a||s;if(!CE(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(Nr({},u,{snacks:u.snacks.filter(function(d){return d.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(QV(i)),closeSnackbar:i.closeSnackbar.bind(QV(i))}},i}var n=t.prototype;return n.render=function(){var i=this,o=this.state.contextValue,a=this.props,s=a.iconVariant,l=a.dense,u=l===void 0?Kf.dense:l,c=a.hideIconVariant,d=c===void 0?Kf.hideIconVariant:c,p=a.domRoot,h=a.children,m=a.classes,b=m===void 0?{}:m,O=Ud(a,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),y=this.state.snacks.reduce(function(S,k){var C,w=het(k.anchorOrigin),E=S[w]||[];return Nr({},S,(C={},C[w]=[].concat(E,[k]),C))},{}),v=Object.keys(y).map(function(S){var k=y[S];return Qt.createElement(Net,{key:S,dense:u,anchorOrigin:k[0].anchorOrigin,className:T1(b.containerRoot,b[TS.toContainerAnchorOrigin(S)])},k.map(function(C){return Qt.createElement(Ret,Object.assign({},O,{key:C.key,snack:C,dense:u,iconVariant:s,hideIconVariant:d,classes:met(b),onClose:i.handleCloseSnack,onExited:oy([i.handleExitedSnack,i.props.onExited]),onEntered:oy([i.handleEnteredSnack,i.props.onEntered])}))}))});return Qt.createElement(Bie.Provider,{value:o},h,p?wg.createPortal(v,p):v)},det(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Kf.maxSnack}}]),t}(I.Component),zF=function(){return I.useContext(Bie)};function Let(e){const{open:t,onClose:n}=e,r=cf(),{data:i}=lO(r.workspaceSlug),{data:o,fetchNextPage:a,hasNextPage:s}=aZe(i==null?void 0:i.id),{mutateAsync:l}=fCe((i==null?void 0:i.id)||""),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((b,O)=>b.concat(O.workspaceUsers),[]))??[],[o==null?void 0:o.pages]),{enqueueSnackbar:c}=zF(),[d,p]=I.useState(null),h=async b=>{let O;if(b.expiredString===xm[0])O=null;else{const[v,S]=b.expiredString.split(" ");O=zt().add(Number(v),S).toDate()}const{invitationToken:y}=await l({expiredAt:O});p(`${window.location.origin}/join/${y}`)},m=async()=>{d&&(await i0.write(d),c("URL Copied!",{variant:"success"}))};return D.jsx(Mp,{open:t,disableAutoFocus:!0,onClose:n,children:D.jsxs(zo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx(eo,{sx:{position:"absolute",top:28,right:28},onClick:n,children:D.jsx(Gx,{})}),D.jsxs(cr,{gap:4,children:[D.jsx(dr,{variant:"h5",children:"Members"}),D.jsxs(cr,{gap:1,children:[D.jsx(dr,{variant:"subtitle1",children:"Invite Link"}),D.jsx(Lu,{children:D.jsx(Yx,{defaultValues:{expiredString:xm[0]},onSuccess:h,children:D.jsxs(cr,{direction:"row",justifyContent:"space-between",gap:2,children:[D.jsx(dD,{label:"Expired Date",name:"expiredString",options:xm.map(b=>({id:b,label:b})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(wl,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!d&&D.jsxs(cr,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(dr,{variant:"body1",children:d}),D.jsx(Lf,{title:"Copy URL",children:D.jsx(eo,{onClick:m,children:D.jsx(jF,{})})})]})]}),D.jsx($o,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:D.jsx(h1,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:D.jsx($o,{className:"loader",children:D.jsx(uf,{size:"sm"})},0),useWindow:!1,children:D.jsx(cr,{gap:2,children:u.map(b=>{var O;return D.jsx(cr,{direction:"row",alignItems:"center",children:D.jsxs(cr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(Pk,{children:(O=b.nickname)==null?void 0:O[0]}),D.jsx(dr,{children:b.nickname})]})},b.id)})})})})]})]})})}const j2=240;function Met(){var k,C,w;const e=Pc(),t=cf(),n=Bl(kP),{data:r}=lO(t.workspaceSlug),{mutateAsync:i}=sCe((r==null?void 0:r.id)||""),[o,a]=I.useState(null),[s,l]=I.useState(null),[u,c]=I.useState(!1),[d,p]=I.useState(!1),h=E=>{a(E.currentTarget)},m=()=>{a(null)},b=E=>{l(E.currentTarget)},O=()=>{l(null)},y=async E=>{const $=await i(E);e($.id)},v=()=>{c(E=>!E)},S=()=>{p(E=>!E)};return D.jsxs(cye,{sx:{width:j2,flexShrink:0,"& .MuiDrawer-paper":{width:j2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[D.jsxs(Ah,{disablePadding:!0,children:[D.jsxs(XC,{onClick:b,children:[D.jsx(dp,{primary:r==null?void 0:r.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),D.jsx(dT,{children:D.jsx(eo,{children:s?D.jsx(Tne,{}):D.jsx(Sne,{})})})]}),D.jsx(tZe,{open:!!s,anchorEl:s,onClose:O,width:j2-32})]}),D.jsx(dc,{}),D.jsx(Ah,{children:D.jsx(wl,{variant:"contained",startIcon:D.jsx(z$,{}),sx:{width:1},onClick:v,children:"New Note"})}),D.jsx(dc,{}),D.jsx(Ah,{disablePadding:!0,children:D.jsxs(XC,{onClick:S,children:[D.jsx(tP,{children:D.jsx(Qre,{})}),D.jsx(dp,{primary:"Members"})]})}),D.jsx(dc,{}),D.jsx(Ah,{sx:{mt:"auto"},children:D.jsx(cr,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:D.jsx(N$,{})})}),D.jsx(dc,{}),D.jsxs(Ah,{disablePadding:!0,children:[D.jsxs(XC,{onClick:h,children:[D.jsx(rOe,{children:D.jsx(Pk,{children:(C=(k=n.data)==null?void 0:k.nickname)==null?void 0:C.charAt(0)})}),D.jsx(dp,{primary:(w=n.data)==null?void 0:w.nickname}),D.jsx(dT,{children:D.jsx(vne,{})})]}),D.jsx(IVe,{open:!!o,anchorEl:o,onClose:m})]}),D.jsx(Wre,{open:u,title:"Note",onSuccess:y,onClose:v}),D.jsx(Let,{open:d,onClose:S})]})}var VF={},$et=Ui;Object.defineProperty(VF,"__esModule",{value:!0});var jie=VF.default=void 0,Fet=$et(ji()),ZV=D;jie=VF.default=(0,Fet.default)([(0,ZV.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,ZV.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function Bet(e){const{document:t}=e,n=Pc(),r=cf(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return D.jsx(v0e,{sx:{width:"100%"},children:D.jsx(A0e,{onClick:i,children:D.jsxs(P0e,{children:[D.jsx(dr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),D.jsxs(cr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(jie,{fontSize:"small",sx:{color:"text.secondary"}}),D.jsxs(dr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",zt(t.updatedAt).fromNow()]})]})]})})})}function Uet(){const e=cf(),{data:t}=lO(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=aCe(t==null?void 0:t.id),o=I.useMemo(()=>(n==null?void 0:n.pages.reduce((a,s)=>a.concat(s.documents),[]))??[],[n==null?void 0:n.pages]);return D.jsxs(cr,{direction:"row",children:[D.jsx(Met,{}),D.jsx($o,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:D.jsx(h1,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:D.jsx($o,{className:"loader",children:D.jsx(uf,{size:"sm"})},0),useWindow:!1,children:D.jsx($o,{p:2,width:1,children:D.jsx(qh,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>D.jsx(qh,{item:!0,xs:4,sm:4,md:4,lg:3,children:D.jsx(Bet,{document:a})},a.id))})})})})]})}function jet(){const e=kG();return D.jsx(cr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:D.jsxs(cr,{alignItems:"center",children:[D.jsx(dr,{variant:"h5",children:"Something went wrong"}),uP(e)&&D.jsxs(dr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function zet(){const e=cf(),t=Pc(),{mutateAsync:n}=pCe();return I.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),D.jsx(X1,{open:!0,children:D.jsx(uf,{color:"inherit"})})}function Vet(){return D.jsx($o,{})}var HF={},Het=Ui;Object.defineProperty(HF,"__esModule",{value:!0});var zie=HF.default=void 0,Wet=Het(ji()),Qet=D;zie=HF.default=(0,Wet.default)((0,Qet.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 WF={},Yet=Ui;Object.defineProperty(WF,"__esModule",{value:!0});var Vie=WF.default=void 0,Get=Yet(ji()),qet=D;Vie=WF.default=(0,Get.default)((0,qet.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var QF={},Zet=Ui;Object.defineProperty(QF,"__esModule",{value:!0});var Hie=QF.default=void 0,Xet=Zet(ji()),Ket=D;Hie=QF.default=(0,Xet.default)((0,Ket.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 OD=(e=>(e.READ="READ",e.EDIT="EDIT",e))(OD||{});function Jet(e){const{...t}=e,n=cf(),[r,i]=I.useState(null),{data:o}=lO(n.workspaceSlug),{data:a}=Cq(o==null?void 0:o.id,n.documentId),{mutateAsync:s}=lCe((a==null?void 0:a.workspaceId)||"",(a==null?void 0:a.id)||""),{enqueueSnackbar:l}=zF(),u=async d=>{let p;if(d.expiredString===xm[0])p=null;else{const[m,b]=d.expiredString.split(" ");p=zt().add(Number(m),b).toDate()}const{sharingToken:h}=await s({role:d.role,expiredAt:p});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${h}`)},c=async()=>{r&&(await i0.write(r),l("URL Copied!",{variant:"success"}))};return D.jsx(Mp,{disableAutoFocus:!0,...t,children:D.jsxs(zo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx(eo,{sx:{position:"absolute",top:28,right:28},onClick:d=>{var p;return(p=e.onClose)==null?void 0:p.call(e,d,"backdropClick")},children:D.jsx(Gx,{})}),D.jsxs(cr,{gap:1,children:[D.jsx(dr,{variant:"subtitle1",children:"Share Link"}),D.jsx(Lu,{children:D.jsx(Yx,{defaultValues:{expiredString:xm[0],role:Object.values(OD)[0]},onSuccess:u,children:D.jsxs(cr,{gap:2,children:[D.jsx(dD,{label:"Role",name:"role",options:Object.values(OD).map(d=>({id:d,label:d})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(dD,{label:"Expired Date",name:"expiredString",options:xm.map(d=>({id:d,label:d})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(wl,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&D.jsxs(cr,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(dr,{variant:"body1",width:1,noWrap:!0,children:r}),D.jsx(Lf,{title:"Copy URL",children:D.jsx(eo,{onClick:c,children:D.jsx(jF,{})})})]})]})]})})}function ett(){const[e,t]=I.useState(!1),n=()=>{t(r=>!r)};return D.jsxs(D.Fragment,{children:[D.jsx(eo,{onClick:n,color:"inherit",children:D.jsx(Hie,{})}),D.jsx(Jet,{open:e,onClose:n})]})}var YF={},ttt=Ui;Object.defineProperty(YF,"__esModule",{value:!0});var Wie=YF.default=void 0,ntt=ttt(ji()),rtt=D;Wie=YF.default=(0,ntt.default)((0,rtt.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");function itt(){const e=Fp(),t=Pc(),n=Bl(Zk),[r,{set:i,push:o,removeAt:a,clear:s,filter:l}]=eZe([]);I.useEffect(()=>{n.shareRole==="READ"&&e(cR("read"))},[e,n.shareRole]),I.useEffect(()=>{if(!n.doc)return;i(n.doc.getPresences());const d=n.doc.subscribe("others",p=>{p.type==="watched"&&o(p.value),p.type==="unwatched"&&l(h=>h.clientID!==p.value.clientID)});return()=>{d(),s()}},[n.doc,s,o,a,i,l]);const u=d=>{e(cR(d))},c=()=>{t(-1)};return D.jsx(fY,{position:"static",sx:{zIndex:100},children:D.jsx(rG,{children:D.jsxs(cr,{width:"100%",direction:"row",justifyContent:"space-between",children:[D.jsxs(cr,{direction:"row",spacing:1,alignItems:"center",children:[D.jsx(Lf,{title:"Back to Previous Page",children:D.jsx(eo,{color:"inherit",onClick:c,children:D.jsx(Wie,{})})}),D.jsx(zo,{children:n.shareRole!=="READ"&&D.jsxs(TSe,{value:n.mode,exclusive:!0,onChange:(d,p)=>u(p),size:"small",children:[D.jsx(tA,{value:"edit","aria-label":"edit",children:D.jsx(Lf,{title:"Edit Mode",children:D.jsx(zie,{})})}),D.jsx(tA,{value:"both","aria-label":"both",children:D.jsx(Lf,{title:"Both Mode",children:D.jsx(Vie,{})})}),D.jsx(tA,{value:"read","aria-label":"read",children:D.jsx(Lf,{title:"Read Mode",children:D.jsx(pF,{})})})]})})]}),D.jsxs(cr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(Hge,{max:4,children:r==null?void 0:r.map(d=>D.jsx(Lf,{title:d.presence.name,children:D.jsx(Pk,{alt:d.presence.name,sx:{bgcolor:d.presence.color},children:d.presence.name[0]})},d.clientID))}),!n.shareRole&&D.jsx(ett,{}),D.jsx(N$,{})]})]})})})}function ott(){return D.jsxs($o,{sx:{flexGrow:1},height:"100vh",children:[D.jsx(itt,{}),D.jsx(fP,{})]})}const att=e=>["documents","share",e],stt=e=>sO({queryKey:att(e||""),enabled:!!e,queryFn:async()=>(await Hn.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});function ltt(){const e=Fp(),t=Bp(),[n]=xG(),r=I.useMemo(()=>n.get("token"),[n]),{data:i}=stt(r),{doc:o,client:a,cleanUpYorkieDocument:s}=pne(i==null?void 0:i.yorkieDocumentId,"Anonymous");return I.useEffect(()=>{i!=null&&i.role&&(e(wxe(i.role)),i.role==="READ"&&e(cR("read")))},[e,i==null?void 0:i.role]),I.useEffect(()=>{if(!(!o||!a))return e(vT(o)),e(ET(a)),()=>{s(),e(vT(null)),e(ET(null))}},[s,e,a,o]),r?D.jsx($o,{height:"calc(100% - 64px)",children:D.jsx(one,{})}):D.jsx(dP,{to:"/",state:{from:t},replace:!0})}const utt=[{path:"",accessType:2,element:D.jsx(hVe,{}),children:[{path:"",element:D.jsx(Vet,{})},{path:"login",element:D.jsx(yVe,{})}]},{path:":workspaceSlug",accessType:1,element:D.jsx(SVe,{}),children:[{path:"",element:D.jsx(Uet,{})}]},{path:":workspaceSlug",element:D.jsx(ott,{}),children:[{path:":documentId",accessType:1,element:D.jsx(oVe,{})},{path:":documentId/share",accessType:0,element:D.jsx(ltt,{})}]},{path:"auth/callback",accessType:2,element:D.jsx(EVe,{})},{path:"join/:invitationToken",accessType:1,element:D.jsx(zet,{})}],ctt=e=>{const t=n=>(n.accessType===1?n.element=D.jsx(wVe,{children:n.element}):n.accessType===2&&(n.element=D.jsx(TVe,{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(jet,{}),n))},dtt=ctt(utt),Qie=e=>["users",e],ftt=()=>{const e=Fp(),t=Bl(One);t.accessToken&&(Hn.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=sO({queryKey:Qie(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await Hn.get("/users")).data});return I.useEffect(()=>{n.isSuccess?e(dR(n.data)):n.isError&&(e(P$(null)),e(dR(null)),Hn.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},ptt=()=>{const e=Bl(One),t=aO();return Pg({mutationFn:async n=>(await Hn.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Qie(e.accessToken||"")})}})};function htt(e){const[t,n]=I.useState(""),[r,i]=I.useState(""),{data:o}=Vre(r),{mutateAsync:a}=ptt(),s=I.useMemo(()=>o!=null&&o.conflict?"Already Exists":null,[o==null?void 0:o.conflict]);Hre(()=>{i(t)},500,[t]);const l=c=>{n(c.target.value)},u=async c=>{await a(c)};return D.jsx(Mp,{disableAutoFocus:!0,...e,children:D.jsx(zo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:D.jsxs(cr,{gap:4,children:[D.jsx(dr,{variant:"h5",children:"Create Your Nickname"}),D.jsx(Lu,{children:D.jsx(Yx,{defaultValues:{nickname:""},onSuccess:u,children:D.jsxs(cr,{gap:4,alignItems:"flex-end",children:[D.jsx(mF,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!s,helperText:s}),D.jsx(wl,{type:"submit",variant:"contained",size:"large",disabled:!!s,children:"OK"})]})})})]})})})}function mtt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=ftt(),o=I.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return D.jsx(L$.Provider,{value:{isLoggedIn:r,isLoading:i},children:o?D.jsx(htt,{open:!0}):t})}function gtt(){const{enqueueSnackbar:e}=zF();return I.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}var btt={VITE_YORKIE_API_ADDR:"https://api.yorkie.dev",VITE_YORKIE_API_KEY:"cmggkp8ksk14av0keupg",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ytt=ewe(dtt);Hn.defaults.baseURL=btt.VITE_API_ADDR;function Ott(){const e=Bl(zG),t=Ig("(prefers-color-scheme: dark)"),n=I.useMemo(()=>{const o=t?"dark":"light";return LN({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?o:e.theme}})},[e.theme,t]),r=gtt(),i=I.useMemo(()=>new zxe({queryCache:new bq({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return D.jsx(Yxe,{client:i,children:D.jsx(mtt,{children:D.jsxs(yfe,{theme:n,children:[D.jsx(pbe,{}),D.jsx($o,{minHeight:"100vh",children:D.jsx(uwe,{router:ytt})})]})})})}var GF={},qF={};qF.__esModule=!0;qF.default=Stt;function wS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wS=function(n){return typeof n}:wS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wS(e)}function z2(){}var vtt={getItem:z2,setItem:z2,removeItem:z2};function Ett(e){if((typeof self>"u"?"undefined":wS(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 Stt(e){var t="".concat(e,"Storage");return Ett(t)?self[t]:vtt}GF.__esModule=!0;GF.default=ktt;var Ttt=wtt(qF);function wtt(e){return e&&e.__esModule?e:{default:e}}function ktt(e){var t=(0,Ttt.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,a){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var Yie=void 0,xtt=Ctt(GF);function Ctt(e){return e&&e.__esModule?e:{default:e}}var Att=(0,xtt.default)("local");Yie=Att;var ZF="persist:",Gie="persist/FLUSH",XF="persist/REHYDRATE",qie="persist/PAUSE",Zie="persist/PERSIST",Xie="persist/PURGE",Kie="persist/REGISTER",_tt=-1;function kS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kS=function(n){return typeof n}:kS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kS(e)}function XV(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 Rtt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jtt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var ztt=5e3;function Vtt(e,t){var n=e.version!==void 0?e.version:_tt;e.debug;var r=e.stateReconciler===void 0?Dtt:e.stateReconciler,i=e.getStoredState||Ltt,o=e.timeout!==void 0?e.timeout:ztt,a=null,s=!1,l=!0,u=function(d){return d._persist.rehydrated&&a&&!l&&a.update(d),d};return function(c,d){var p=c||{},h=p._persist,m=Utt(p,["_persist"]),b=m;if(d.type===Zie){var O=!1,y=function($,P){O||(d.rehydrate(e.key,$,P),O=!0)};if(o&&setTimeout(function(){!O&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,a||(a=Ntt(e)),h)return ec({},t(b,d),{_persist:h});if(typeof d.rehydrate!="function"||typeof d.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 d.register(e.key),i(e).then(function(E){var $=e.migrate||function(P,_){return Promise.resolve(P)};$(E,n).then(function(P){y(P)},function(P){y(void 0,P)})},function(E){y(void 0,E)}),ec({},t(b,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Xie)return s=!0,d.result($tt(e)),ec({},t(b,d),{_persist:h});if(d.type===Gie)return d.result(a&&a.flush()),ec({},t(b,d),{_persist:h});if(d.type===qie)l=!0;else if(d.type===XF){if(s)return ec({},b,{_persist:ec({},h,{rehydrated:!0})});if(d.key===e.key){var v=t(b,d),S=d.payload,k=r!==!1&&S!==void 0?r(S,c,v,e):v,C=ec({},k,{_persist:ec({},h,{rehydrated:!0})});return u(C)}}}if(!h)return t(c,d);var w=t(b,d);return w===b?c:u(ec({},w,{_persist:h}))}}function JV(e){return Qtt(e)||Wtt(e)||Htt()}function Htt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Wtt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Qtt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Jie,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Kie:return vD({},t,{registry:[].concat(JV(t.registry),[n.key])});case XF:var r=t.registry.indexOf(n.key),i=JV(t.registry);return i.splice(r,1),vD({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function qtt(e,t,n){var r=n||!1,i=hP(Gtt,Jie,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:Kie,key:u})},a=function(u,c,d){var p={type:XF,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&s.getState().bootstrapped&&(r(),r=!1)},s=vD({},i,{purge:function(){var u=[];return e.dispatch({type:Xie,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Gie,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:qie})},persist:function(){e.dispatch({type:Zie,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const Ztt=CG({auth:vVe,config:ake,user:Cxe,editor:kxe}),Xtt={key:"root",storage:Yie,whitelist:["auth","config"]},Ktt=Vtt(Xtt,Ztt),eoe=Qwe({reducer:Ktt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient"],ignoredPaths:["editor.doc","editor.client"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client"]}})});function xS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xS=function(n){return typeof n}:xS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xS(e)}function Jtt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tH(e,t){for(var n=0;n .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},U2=16,_f="SnackbarContainer",ml={root:_f+"-root",rootDense:_f+"-rootDense",top:_f+"-top",bottom:_f+"-bottom",left:_f+"-left",right:_f+"-right",center:_f+"-center"},Ret=Ee("div")(function(e){var t,n,r,i,o,a,s=e.theme;return a={},a["&."+ml.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.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[B2.container]={pointerEvents:"all"},t[B2.wrapper]={padding:Ku.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Ku.view.default*2+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+U2*2+"px)"},t),a["&."+ml.rootDense]=(n={},n[B2.wrapper]={padding:Ku.snackbar.dense+"px 0px"},n),a["&."+ml.top]={top:Ku.view.default-Ku.snackbar.default,flexDirection:"column"},a["&."+ml.bottom]={bottom:Ku.view.default-Ku.snackbar.default,flexDirection:"column-reverse"},a["&."+ml.left]=(r={left:Ku.view.default},r[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:U2+"px"},r),a["&."+ml.right]=(i={right:Ku.view.default},i[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:U2+"px"},i),a["&."+ml.center]=(o={left:"50%",transform:"translateX(-50%)"},o[s.breakpoints.up("sm")]={alignItems:"center"},o),a}),Iet=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,o=Ud(t,["className","anchorOrigin","dense"]),a=T1(ml[r.vertical],ml[r.horizontal],ml.root,n,i&&ml.rootDense);return Qt.createElement(Ret,Object.assign({className:a},o))},Net=Qt.memo(Iet),Det=function(e){det(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(o,a){a===void 0&&(a={});var s=a,l=s.key,u=s.preventDuplicate,c=Ud(s,["key","preventDuplicate"]),d=CE(l),p=d?l:new Date().getTime()+Math.random(),h=met(c,i.props,Kf),m=Dr({key:p},c,{message:o,open:!0,entered:!1,requestClose:!1,variant:h("variant"),anchorOrigin:h("anchorOrigin"),autoHideDuration:h("autoHideDuration")});return c.persist&&(m.autoHideDuration=void 0),i.setState(function(b){if(u===void 0&&i.props.preventDuplicate||u){var O=function(k){return d?k.key===l:k.message===o},y=b.queue.findIndex(O)>-1,v=b.snacks.findIndex(O)>-1;if(y||v)return b}return i.handleDisplaySnack(Dr({},b,{queue:[].concat(b.queue,[m])}))}),p},i.handleDisplaySnack=function(o){var a=o.snacks;return a.length>=i.maxSnack?i.handleDismissOldest(o):i.processQueue(o)},i.processQueue=function(o){var a=o.queue,s=o.snacks;return a.length>0?Dr({},o,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):o},i.handleDismissOldest=function(o){if(o.snacks.some(function(c){return!c.open||c.requestClose}))return o;var a=!1,s=!1,l=o.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0);l===i.maxSnack&&(s=!0);var u=o.snacks.map(function(c){return!a&&(!c.persist||s)?(a=!0,c.entered?(c.onClose&&c.onClose(null,sd.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,sd.MAXSNACK,c.key),Dr({},c,{open:!1})):Dr({},c,{requestClose:!0})):Dr({},c)});return Dr({},o,{snacks:u})},i.handleEnteredSnack=function(o,a,s){if(!CE(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.key===s?Dr({},c,{entered:!0}):Dr({},c)})}})},i.handleCloseSnack=function(o,a,s){if(i.props.onClose&&i.props.onClose(o,a,s),a!==sd.CLICKAWAY){var l=s===void 0;i.setState(function(u){var c=u.snacks,d=u.queue;return{snacks:c.map(function(p){return!l&&p.key!==s?Dr({},p):p.entered?Dr({},p,{open:!1}):Dr({},p,{requestClose:!0})}),queue:d.filter(function(p){return p.key!==s})}})}},i.closeSnackbar=function(o){var a=i.state.snacks.find(function(s){return s.key===o});CE(o)&&a&&a.onClose&&a.onClose(null,sd.INSTRUCTED,o),i.handleCloseSnack(null,sd.INSTRUCTED,o)},i.handleExitedSnack=function(o,a,s){var l=a||s;if(!CE(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(Dr({},u,{snacks:u.snacks.filter(function(d){return d.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(QV(i)),closeSnackbar:i.closeSnackbar.bind(QV(i))}},i}var n=t.prototype;return n.render=function(){var i=this,o=this.state.contextValue,a=this.props,s=a.iconVariant,l=a.dense,u=l===void 0?Kf.dense:l,c=a.hideIconVariant,d=c===void 0?Kf.hideIconVariant:c,p=a.domRoot,h=a.children,m=a.classes,b=m===void 0?{}:m,O=Ud(a,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),y=this.state.snacks.reduce(function(S,k){var C,w=pet(k.anchorOrigin),E=S[w]||[];return Dr({},S,(C={},C[w]=[].concat(E,[k]),C))},{}),v=Object.keys(y).map(function(S){var k=y[S];return Qt.createElement(Net,{key:S,dense:u,anchorOrigin:k[0].anchorOrigin,className:T1(b.containerRoot,b[TS.toContainerAnchorOrigin(S)])},k.map(function(C){return Qt.createElement(_et,Object.assign({},O,{key:C.key,snack:C,dense:u,iconVariant:s,hideIconVariant:d,classes:het(b),onClose:i.handleCloseSnack,onExited:oy([i.handleExitedSnack,i.props.onExited]),onEntered:oy([i.handleEnteredSnack,i.props.onEntered])}))}))});return Qt.createElement(Bie.Provider,{value:o},h,p?wg.createPortal(v,p):v)},cet(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Kf.maxSnack}}]),t}(I.Component),zF=function(){return I.useContext(Bie)};function Pet(e){const{open:t,onClose:n}=e,r=cf(),{data:i}=lO(r.workspaceSlug),{data:o,fetchNextPage:a,hasNextPage:s}=oZe(i==null?void 0:i.id),{mutateAsync:l}=fCe((i==null?void 0:i.id)||""),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((b,O)=>b.concat(O.workspaceUsers),[]))??[],[o==null?void 0:o.pages]),{enqueueSnackbar:c}=zF(),[d,p]=I.useState(null),h=async b=>{let O;if(b.expiredString===xm[0])O=null;else{const[v,S]=b.expiredString.split(" ");O=zt().add(Number(v),S).toDate()}const{invitationToken:y}=await l({expiredAt:O});p(`${window.location.origin}/join/${y}`)},m=async()=>{d&&(await i0.write(d),c("URL Copied!",{variant:"success"}))};return N.jsx(Mp,{open:t,disableAutoFocus:!0,onClose:n,children:N.jsxs(zo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(eo,{sx:{position:"absolute",top:28,right:28},onClick:n,children:N.jsx(Gx,{})}),N.jsxs(cr,{gap:4,children:[N.jsx(dr,{variant:"h5",children:"Members"}),N.jsxs(cr,{gap:1,children:[N.jsx(dr,{variant:"subtitle1",children:"Invite Link"}),N.jsx(Lu,{children:N.jsx(Yx,{defaultValues:{expiredString:xm[0]},onSuccess:h,children:N.jsxs(cr,{direction:"row",justifyContent:"space-between",gap:2,children:[N.jsx(dN,{label:"Expired Date",name:"expiredString",options:xm.map(b=>({id:b,label:b})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(wl,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!d&&N.jsxs(cr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx(dr,{variant:"body1",children:d}),N.jsx(Lf,{title:"Copy URL",children:N.jsx(eo,{onClick:m,children:N.jsx(jF,{})})})]})]}),N.jsx($o,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:N.jsx(h1,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:N.jsx($o,{className:"loader",children:N.jsx(uf,{size:"sm"})},0),useWindow:!1,children:N.jsx(cr,{gap:2,children:u.map(b=>{var O;return N.jsx(cr,{direction:"row",alignItems:"center",children:N.jsxs(cr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(Pk,{children:(O=b.nickname)==null?void 0:O[0]}),N.jsx(dr,{children:b.nickname})]})},b.id)})})})})]})]})})}const j2=240;function Let(){var k,C,w;const e=Pc(),t=cf(),n=Bl(kP),{data:r}=lO(t.workspaceSlug),{mutateAsync:i}=sCe((r==null?void 0:r.id)||""),[o,a]=I.useState(null),[s,l]=I.useState(null),[u,c]=I.useState(!1),[d,p]=I.useState(!1),h=E=>{a(E.currentTarget)},m=()=>{a(null)},b=E=>{l(E.currentTarget)},O=()=>{l(null)},y=async E=>{const $=await i(E);e($.id)},v=()=>{c(E=>!E)},S=()=>{p(E=>!E)};return N.jsxs(cye,{sx:{width:j2,flexShrink:0,"& .MuiDrawer-paper":{width:j2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[N.jsxs(Ah,{disablePadding:!0,children:[N.jsxs(XC,{onClick:b,children:[N.jsx(dp,{primary:r==null?void 0:r.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),N.jsx(dT,{children:N.jsx(eo,{children:s?N.jsx(Tne,{}):N.jsx(Sne,{})})})]}),N.jsx(eZe,{open:!!s,anchorEl:s,onClose:O,width:j2-32})]}),N.jsx(dc,{}),N.jsx(Ah,{children:N.jsx(wl,{variant:"contained",startIcon:N.jsx(z$,{}),sx:{width:1},onClick:v,children:"New Note"})}),N.jsx(dc,{}),N.jsx(Ah,{disablePadding:!0,children:N.jsxs(XC,{onClick:S,children:[N.jsx(tP,{children:N.jsx(Qre,{})}),N.jsx(dp,{primary:"Members"})]})}),N.jsx(dc,{}),N.jsx(Ah,{sx:{mt:"auto"},children:N.jsx(cr,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:N.jsx(D$,{})})}),N.jsx(dc,{}),N.jsxs(Ah,{disablePadding:!0,children:[N.jsxs(XC,{onClick:h,children:[N.jsx(rOe,{children:N.jsx(Pk,{children:(C=(k=n.data)==null?void 0:k.nickname)==null?void 0:C.charAt(0)})}),N.jsx(dp,{primary:(w=n.data)==null?void 0:w.nickname}),N.jsx(dT,{children:N.jsx(vne,{})})]}),N.jsx(RVe,{open:!!o,anchorEl:o,onClose:m})]}),N.jsx(Wre,{open:u,title:"Note",onSuccess:y,onClose:v}),N.jsx(Pet,{open:d,onClose:S})]})}var VF={},Met=Ui;Object.defineProperty(VF,"__esModule",{value:!0});var jie=VF.default=void 0,$et=Met(ji()),ZV=N;jie=VF.default=(0,$et.default)([(0,ZV.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,ZV.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function Fet(e){const{document:t}=e,n=Pc(),r=cf(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return N.jsx(v0e,{sx:{width:"100%"},children:N.jsx(A0e,{onClick:i,children:N.jsxs(P0e,{children:[N.jsx(dr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),N.jsxs(cr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(jie,{fontSize:"small",sx:{color:"text.secondary"}}),N.jsxs(dr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",zt(t.updatedAt).fromNow()]})]})]})})})}function Bet(){const e=cf(),{data:t}=lO(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=aCe(t==null?void 0:t.id),o=I.useMemo(()=>(n==null?void 0:n.pages.reduce((a,s)=>a.concat(s.documents),[]))??[],[n==null?void 0:n.pages]);return N.jsxs(cr,{direction:"row",children:[N.jsx(Let,{}),N.jsx($o,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:N.jsx(h1,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:N.jsx($o,{className:"loader",children:N.jsx(uf,{size:"sm"})},0),useWindow:!1,children:N.jsx($o,{p:2,width:1,children:N.jsx(qh,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>N.jsx(qh,{item:!0,xs:4,sm:4,md:4,lg:3,children:N.jsx(Fet,{document:a})},a.id))})})})})]})}function Uet(){const e=kG();return N.jsx(cr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:N.jsxs(cr,{alignItems:"center",children:[N.jsx(dr,{variant:"h5",children:"Something went wrong"}),uP(e)&&N.jsxs(dr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function jet(){const e=cf(),t=Pc(),{mutateAsync:n}=pCe();return I.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),N.jsx(X1,{open:!0,children:N.jsx(uf,{color:"inherit"})})}function zet(){return N.jsx($o,{})}var HF={},Vet=Ui;Object.defineProperty(HF,"__esModule",{value:!0});var zie=HF.default=void 0,Het=Vet(ji()),Wet=N;zie=HF.default=(0,Het.default)((0,Wet.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 WF={},Qet=Ui;Object.defineProperty(WF,"__esModule",{value:!0});var Vie=WF.default=void 0,Yet=Qet(ji()),Get=N;Vie=WF.default=(0,Yet.default)((0,Get.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var QF={},qet=Ui;Object.defineProperty(QF,"__esModule",{value:!0});var Hie=QF.default=void 0,Zet=qet(ji()),Xet=N;Hie=QF.default=(0,Zet.default)((0,Xet.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 ON=(e=>(e.READ="READ",e.EDIT="EDIT",e))(ON||{});function Ket(e){const{...t}=e,n=cf(),[r,i]=I.useState(null),{data:o}=lO(n.workspaceSlug),{data:a}=Cq(o==null?void 0:o.id,n.documentId),{mutateAsync:s}=lCe((a==null?void 0:a.workspaceId)||"",(a==null?void 0:a.id)||""),{enqueueSnackbar:l}=zF(),u=async d=>{let p;if(d.expiredString===xm[0])p=null;else{const[m,b]=d.expiredString.split(" ");p=zt().add(Number(m),b).toDate()}const{sharingToken:h}=await s({role:d.role,expiredAt:p});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${h}`)},c=async()=>{r&&(await i0.write(r),l("URL Copied!",{variant:"success"}))};return N.jsx(Mp,{disableAutoFocus:!0,...t,children:N.jsxs(zo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(eo,{sx:{position:"absolute",top:28,right:28},onClick:d=>{var p;return(p=e.onClose)==null?void 0:p.call(e,d,"backdropClick")},children:N.jsx(Gx,{})}),N.jsxs(cr,{gap:1,children:[N.jsx(dr,{variant:"subtitle1",children:"Share Link"}),N.jsx(Lu,{children:N.jsx(Yx,{defaultValues:{expiredString:xm[0],role:Object.values(ON)[0]},onSuccess:u,children:N.jsxs(cr,{gap:2,children:[N.jsx(dN,{label:"Role",name:"role",options:Object.values(ON).map(d=>({id:d,label:d})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(dN,{label:"Expired Date",name:"expiredString",options:xm.map(d=>({id:d,label:d})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(wl,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&N.jsxs(cr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx(dr,{variant:"body1",width:1,noWrap:!0,children:r}),N.jsx(Lf,{title:"Copy URL",children:N.jsx(eo,{onClick:c,children:N.jsx(jF,{})})})]})]})]})})}function Jet(){const[e,t]=I.useState(!1),n=()=>{t(r=>!r)};return N.jsxs(N.Fragment,{children:[N.jsx(eo,{onClick:n,color:"inherit",children:N.jsx(Hie,{})}),N.jsx(Ket,{open:e,onClose:n})]})}var YF={},ett=Ui;Object.defineProperty(YF,"__esModule",{value:!0});var Wie=YF.default=void 0,ttt=ett(ji()),ntt=N;Wie=YF.default=(0,ttt.default)((0,ntt.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");function rtt(){const e=Fp(),t=Pc(),n=Bl(Zk),[r,{set:i,push:o,removeAt:a,clear:s,filter:l}]=Jqe([]);I.useEffect(()=>{n.shareRole==="READ"&&e(cR("read"))},[e,n.shareRole]),I.useEffect(()=>{if(!n.doc)return;i(n.doc.getPresences());const d=n.doc.subscribe("others",p=>{p.type==="watched"&&o(p.value),p.type==="unwatched"&&l(h=>h.clientID!==p.value.clientID)});return()=>{d(),s()}},[n.doc,s,o,a,i,l]);const u=d=>{e(cR(d))},c=()=>{t(-1)};return N.jsx(fY,{position:"static",sx:{zIndex:100},children:N.jsx(rG,{children:N.jsxs(cr,{width:"100%",direction:"row",justifyContent:"space-between",children:[N.jsxs(cr,{direction:"row",spacing:1,alignItems:"center",children:[N.jsx(Lf,{title:"Back to Previous Page",children:N.jsx(eo,{color:"inherit",onClick:c,children:N.jsx(Wie,{})})}),N.jsx(zo,{children:n.shareRole!=="READ"&&N.jsxs(TSe,{value:n.mode,exclusive:!0,onChange:(d,p)=>u(p),size:"small",children:[N.jsx(tA,{value:"edit","aria-label":"edit",children:N.jsx(Lf,{title:"Edit Mode",children:N.jsx(zie,{})})}),N.jsx(tA,{value:"both","aria-label":"both",children:N.jsx(Lf,{title:"Both Mode",children:N.jsx(Vie,{})})}),N.jsx(tA,{value:"read","aria-label":"read",children:N.jsx(Lf,{title:"Read Mode",children:N.jsx(pF,{})})})]})})]}),N.jsxs(cr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(Hge,{max:4,children:r==null?void 0:r.map(d=>N.jsx(Lf,{title:d.presence.name,children:N.jsx(Pk,{alt:d.presence.name,sx:{bgcolor:d.presence.color},children:d.presence.name[0]})},d.clientID))}),!n.shareRole&&N.jsx(Jet,{}),N.jsx(D$,{})]})]})})})}function itt(){return N.jsxs($o,{sx:{flexGrow:1},height:"100vh",children:[N.jsx(rtt,{}),N.jsx(fP,{})]})}const ott=e=>["documents","share",e],att=e=>sO({queryKey:ott(e||""),enabled:!!e,queryFn:async()=>(await Hn.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});function stt(){const e=Fp(),t=Bp(),[n]=xG(),r=I.useMemo(()=>n.get("token"),[n]),{data:i}=att(r),{doc:o,client:a,cleanUpYorkieDocument:s}=pne(i==null?void 0:i.yorkieDocumentId,"Anonymous");return I.useEffect(()=>{i!=null&&i.role&&(e(wxe(i.role)),i.role==="READ"&&e(cR("read")))},[e,i==null?void 0:i.role]),I.useEffect(()=>{if(!(!o||!a))return e(vT(o)),e(ET(a)),()=>{s(),e(vT(null)),e(ET(null))}},[s,e,a,o]),r?N.jsx($o,{height:"calc(100% - 64px)",children:N.jsx(one,{})}):N.jsx(dP,{to:"/",state:{from:t},replace:!0})}const ltt=[{path:"",accessType:2,element:N.jsx(hVe,{}),children:[{path:"",element:N.jsx(zet,{})},{path:"login",element:N.jsx(bVe,{})}]},{path:":workspaceSlug",accessType:1,element:N.jsx(EVe,{}),children:[{path:"",element:N.jsx(Bet,{})}]},{path:":workspaceSlug",element:N.jsx(itt,{}),children:[{path:":documentId",accessType:1,element:N.jsx(oVe,{})},{path:":documentId/share",accessType:0,element:N.jsx(stt,{})}]},{path:"auth/callback",accessType:2,element:N.jsx(vVe,{})},{path:"join/:invitationToken",accessType:1,element:N.jsx(jet,{})}],utt=e=>{const t=n=>(n.accessType===1?n.element=N.jsx(TVe,{children:n.element}):n.accessType===2&&(n.element=N.jsx(SVe,{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=N.jsx(Uet,{}),n))},ctt=utt(ltt),Qie=e=>["users",e],dtt=()=>{const e=Fp(),t=Bl(One);t.accessToken&&(Hn.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=sO({queryKey:Qie(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await Hn.get("/users")).data});return I.useEffect(()=>{n.isSuccess?e(dR(n.data)):n.isError&&(e(P$(null)),e(dR(null)),Hn.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},ftt=()=>{const e=Bl(One),t=aO();return Pg({mutationFn:async n=>(await Hn.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Qie(e.accessToken||"")})}})};function ptt(e){const[t,n]=I.useState(""),[r,i]=I.useState(""),{data:o}=Vre(r),{mutateAsync:a}=ftt(),s=I.useMemo(()=>o!=null&&o.conflict?"Already Exists":null,[o==null?void 0:o.conflict]);Hre(()=>{i(t)},500,[t]);const l=c=>{n(c.target.value)},u=async c=>{await a(c)};return N.jsx(Mp,{disableAutoFocus:!0,...e,children:N.jsx(zo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:N.jsxs(cr,{gap:4,children:[N.jsx(dr,{variant:"h5",children:"Create Your Nickname"}),N.jsx(Lu,{children:N.jsx(Yx,{defaultValues:{nickname:""},onSuccess:u,children:N.jsxs(cr,{gap:4,alignItems:"flex-end",children:[N.jsx(mF,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!s,helperText:s}),N.jsx(wl,{type:"submit",variant:"contained",size:"large",disabled:!!s,children:"OK"})]})})})]})})})}function htt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=dtt(),o=I.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return N.jsx(L$.Provider,{value:{isLoggedIn:r,isLoading:i},children:o?N.jsx(ptt,{open:!0}):t})}function mtt(){const{enqueueSnackbar:e}=zF();return I.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}const gtt=ewe(ctt);Hn.defaults.baseURL="https://codepair-api.yorkie.dev";function btt(){const e=Bl(zG),t=Ig("(prefers-color-scheme: dark)"),n=I.useMemo(()=>{const o=t?"dark":"light";return LD({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?o:e.theme}})},[e.theme,t]),r=mtt(),i=I.useMemo(()=>new zxe({queryCache:new bq({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return N.jsx(Yxe,{client:i,children:N.jsx(htt,{children:N.jsxs(yfe,{theme:n,children:[N.jsx(pbe,{}),N.jsx($o,{minHeight:"100vh",children:N.jsx(uwe,{router:gtt})})]})})})}var GF={},qF={};qF.__esModule=!0;qF.default=vtt;function wS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wS=function(n){return typeof n}:wS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wS(e)}function z2(){}var ytt={getItem:z2,setItem:z2,removeItem:z2};function Ott(e){if((typeof self>"u"?"undefined":wS(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 vtt(e){var t="".concat(e,"Storage");return Ott(t)?self[t]:ytt}GF.__esModule=!0;GF.default=Ttt;var Ett=Stt(qF);function Stt(e){return e&&e.__esModule?e:{default:e}}function Ttt(e){var t=(0,Ett.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,a){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var Yie=void 0,wtt=ktt(GF);function ktt(e){return e&&e.__esModule?e:{default:e}}var xtt=(0,wtt.default)("local");Yie=xtt;var ZF="persist:",Gie="persist/FLUSH",XF="persist/REHYDRATE",qie="persist/PAUSE",Zie="persist/PERSIST",Xie="persist/PURGE",Kie="persist/REGISTER",Ctt=-1;function kS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kS=function(n){return typeof n}:kS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kS(e)}function XV(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 Att(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Btt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Utt=5e3;function jtt(e,t){var n=e.version!==void 0?e.version:Ctt;e.debug;var r=e.stateReconciler===void 0?Rtt:e.stateReconciler,i=e.getStoredState||Dtt,o=e.timeout!==void 0?e.timeout:Utt,a=null,s=!1,l=!0,u=function(d){return d._persist.rehydrated&&a&&!l&&a.update(d),d};return function(c,d){var p=c||{},h=p._persist,m=Ftt(p,["_persist"]),b=m;if(d.type===Zie){var O=!1,y=function($,P){O||(d.rehydrate(e.key,$,P),O=!0)};if(o&&setTimeout(function(){!O&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,a||(a=Itt(e)),h)return ec({},t(b,d),{_persist:h});if(typeof d.rehydrate!="function"||typeof d.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 d.register(e.key),i(e).then(function(E){var $=e.migrate||function(P,_){return Promise.resolve(P)};$(E,n).then(function(P){y(P)},function(P){y(void 0,P)})},function(E){y(void 0,E)}),ec({},t(b,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Xie)return s=!0,d.result(Ltt(e)),ec({},t(b,d),{_persist:h});if(d.type===Gie)return d.result(a&&a.flush()),ec({},t(b,d),{_persist:h});if(d.type===qie)l=!0;else if(d.type===XF){if(s)return ec({},b,{_persist:ec({},h,{rehydrated:!0})});if(d.key===e.key){var v=t(b,d),S=d.payload,k=r!==!1&&S!==void 0?r(S,c,v,e):v,C=ec({},k,{_persist:ec({},h,{rehydrated:!0})});return u(C)}}}if(!h)return t(c,d);var w=t(b,d);return w===b?c:u(ec({},w,{_persist:h}))}}function JV(e){return Htt(e)||Vtt(e)||ztt()}function ztt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Vtt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Htt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Jie,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Kie:return vN({},t,{registry:[].concat(JV(t.registry),[n.key])});case XF:var r=t.registry.indexOf(n.key),i=JV(t.registry);return i.splice(r,1),vN({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Ytt(e,t,n){var r=n||!1,i=hP(Qtt,Jie,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:Kie,key:u})},a=function(u,c,d){var p={type:XF,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&s.getState().bootstrapped&&(r(),r=!1)},s=vN({},i,{purge:function(){var u=[];return e.dispatch({type:Xie,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Gie,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:qie})},persist:function(){e.dispatch({type:Zie,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const Gtt=CG({auth:OVe,config:ake,user:Cxe,editor:kxe}),qtt={key:"root",storage:Yie,whitelist:["auth","config"]},Ztt=jtt(qtt,Gtt),eoe=Qwe({reducer:Ztt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient"],ignoredPaths:["editor.doc","editor.client"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client"]}})});function xS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xS=function(n){return typeof n}:xS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xS(e)}function Xtt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tH(e,t){for(var n=0;n - +